hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b54b8e260fd3d24d705553f40c1dc5044170b381
197
py
Python
reports/admin.py
thepylot/Django-Import-Export
210d3a742a4be93b78b1b67d68f025c725447e09
[ "MIT" ]
7
2019-12-17T02:39:05.000Z
2021-06-07T21:41:29.000Z
reports/admin.py
thepylot/Django-Import-Export
210d3a742a4be93b78b1b67d68f025c725447e09
[ "MIT" ]
1
2020-07-14T08:40:59.000Z
2020-07-14T08:40:59.000Z
reports/admin.py
raszidzie/Django-Import-Export
210d3a742a4be93b78b1b67d68f025c725447e09
[ "MIT" ]
4
2020-02-04T03:46:05.000Z
2020-12-11T02:44:22.000Z
from import_export.admin import ImportExportModelAdmin from django.contrib import admin from .models import Employee @admin.register(Employee) class EmployeeAdmin(ImportExportModelAdmin): pass
28.142857
54
0.847716
d790dd9a150832fb4059e48735b74214bccade6f
1,670
py
Python
Section 4/face_datasets.py
PacktPublishing/Hands-On-Python-Deep-Learning
7562dce2f7a5f60623e68536b47a67f3c56c8445
[ "MIT" ]
10
2019-01-30T07:49:30.000Z
2021-12-19T02:17:40.000Z
Section 4/face_datasets.py
PacktPublishing/Hands-On-Python-Deep-Learning
7562dce2f7a5f60623e68536b47a67f3c56c8445
[ "MIT" ]
null
null
null
Section 4/face_datasets.py
PacktPublishing/Hands-On-Python-Deep-Learning
7562dce2f7a5f60623e68536b47a67f3c56c8445
[ "MIT" ]
6
2019-01-30T01:59:23.000Z
2021-12-19T20:14:57.000Z
# Import OpenCV2 for image processing import cv2 import os def assure_path_exists(path): dir = os.path.dirname(path) if not os.path.exists(dir): os.makedirs(dir) # Start capturing video vid_cam = cv2.VideoCapture(0) # Detect object in video stream using Haarcascade Frontal Face face...
25.30303
99
0.642515
f16223156d168d8225f1b2c13617660a28c36ef0
169
py
Python
frontendWeb/COVID/urls.py
Anthony-ferrari/OSU_Hackathon_Brute_Force
42bae7b960bd860d5065dbec782c51dc845eafa9
[ "MIT" ]
1
2020-03-28T20:27:29.000Z
2020-03-28T20:27:29.000Z
frontendWeb/COVID/urls.py
Anthony-ferrari/OSU_Hackathon_Brute_Force
42bae7b960bd860d5065dbec782c51dc845eafa9
[ "MIT" ]
null
null
null
frontendWeb/COVID/urls.py
Anthony-ferrari/OSU_Hackathon_Brute_Force
42bae7b960bd860d5065dbec782c51dc845eafa9
[ "MIT" ]
1
2020-03-28T08:29:55.000Z
2020-03-28T08:29:55.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='COVID19-home'), path('about/', views.about, name='COVID19-about'), ]
24.142857
54
0.668639
7a01ce3af54125757b65f9d451e74ff8f2d0fded
7,764
py
Python
docs/conf.py
royaso/hovercraft
2ca3e8cfd00f5e28077d37bf142e1efd55a63df3
[ "MIT" ]
1
2017-09-27T07:05:09.000Z
2017-09-27T07:05:09.000Z
docs/conf.py
azmodie/hovercraft
ad382d68e2fc0da5cccc079b76954593bf1e71e1
[ "CC0-1.0" ]
null
null
null
docs/conf.py
azmodie/hovercraft
ad382d68e2fc0da5cccc079b76954593bf1e71e1
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Hovercraft! documentation build configuration file, created by # sphinx-quickstart on Thu Feb 7 20:44:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
31.950617
80
0.714451
d641e8bbca93ee1d3332392b8e0f2d1deceb513b
12,555
py
Python
core/storage/auth/gae_models.py
mridul-netizen/oppia
ed1afe89b0971ed23ee29e1c30901ae6211d3d5a
[ "Apache-2.0" ]
null
null
null
core/storage/auth/gae_models.py
mridul-netizen/oppia
ed1afe89b0971ed23ee29e1c30901ae6211d3d5a
[ "Apache-2.0" ]
null
null
null
core/storage/auth/gae_models.py
mridul-netizen/oppia
ed1afe89b0971ed23ee29e1c30901ae6211d3d5a
[ "Apache-2.0" ]
1
2020-12-09T21:33:49.000Z
2020-12-09T21:33:49.000Z
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
35.871429
96
0.665631
5ea63dccb629f52e1612bcec6ff1abc9fba015bc
28,911
py
Python
venv/Lib/site-packages/keras/optimizers.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
3
2020-01-21T11:04:56.000Z
2021-11-09T11:27:11.000Z
venv/Lib/site-packages/keras/optimizers.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/keras/optimizers.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
5
2018-04-27T10:01:44.000Z
2021-08-18T23:22:53.000Z
"""Built-in optimizer classes. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import six import copy from six.moves import zip from . import backend as K from .utils.generic_utils import serialize_keras_object from .utils.generic_utils import deseriali...
37.841623
158
0.58559
477b114092c8a2963d33722d96818d583d74d57c
1,387
py
Python
tracerlib/launcher.py
gokceneraslan/tracer
cd59435a237a87854cbc3e6e466349e48ca2cfe9
[ "Apache-2.0" ]
104
2015-09-01T17:37:14.000Z
2021-11-15T01:32:40.000Z
tracerlib/launcher.py
gokceneraslan/tracer
cd59435a237a87854cbc3e6e466349e48ca2cfe9
[ "Apache-2.0" ]
78
2016-03-14T16:43:03.000Z
2022-01-09T19:46:53.000Z
tracerlib/launcher.py
gokceneraslan/tracer
cd59435a237a87854cbc3e6e466349e48ca2cfe9
[ "Apache-2.0" ]
55
2016-04-14T10:12:22.000Z
2022-03-16T22:02:12.000Z
from __future__ import print_function import matplotlib as mpl mpl.use('pdf') import argparse import sys from tracerlib.tasks import Assembler, Summariser, Tester, Builder def launch(): parser = argparse.ArgumentParser( description='TraCeR: reconstruction of TCR sequences from single-cell RNAseq data', ...
31.522727
106
0.625811
29d3e7b2f83368602ec09065ba1e6b23ad43461c
914
py
Python
diagrams/aws/general.py
fabriziofortino/diagrams
dfd8e0a52c8c4d1c3ce95dc7161c23bb2eaf0acb
[ "MIT" ]
3
2021-03-08T21:42:22.000Z
2021-11-14T00:58:53.000Z
diagrams/aws/general.py
fabriziofortino/diagrams
dfd8e0a52c8c4d1c3ce95dc7161c23bb2eaf0acb
[ "MIT" ]
54
2020-12-14T08:37:05.000Z
2022-01-14T14:51:59.000Z
diagrams/aws/general.py
fabriziofortino/diagrams
dfd8e0a52c8c4d1c3ce95dc7161c23bb2eaf0acb
[ "MIT" ]
1
2021-12-10T20:05:06.000Z
2021-12-10T20:05:06.000Z
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _AWS class _General(_AWS): _type = "general" _icon_dir = "resources/aws/general" class Disk(_General): _icon = "disk.png" class General(_General): _icon = "general.png" class GenericDatabase(_General): _icon ...
15.758621
68
0.708972
6f5478162adc581d2053f282128ba5ff074a484a
4,394
py
Python
lib/kubernetes/client/models/v1beta1_cron_job_status.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
lib/kubernetes/client/models/v1beta1_cron_job_status.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
lib/kubernetes/client/models/v1beta1_cron_job_status.py
splunkenizer/splunk_as_a_service_app
97c4aaf927d2171bf131126cf9b70489ac75bc5a
[ "Apache-2.0" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteri...
28.348387
106
0.565089
895774e30c2dd08c5b8c01f26f5e9c78d57cb1a6
1,623
py
Python
preprocessing.py
Arjun-Narula/Anuvadak-Sign-language-to-text-convertor
570667a88e64cb973740e7fca439d761319c4e9f
[ "OLDAP-2.5", "OLDAP-2.4" ]
null
null
null
preprocessing.py
Arjun-Narula/Anuvadak-Sign-language-to-text-convertor
570667a88e64cb973740e7fca439d761319c4e9f
[ "OLDAP-2.5", "OLDAP-2.4" ]
null
null
null
preprocessing.py
Arjun-Narula/Anuvadak-Sign-language-to-text-convertor
570667a88e64cb973740e7fca439d761319c4e9f
[ "OLDAP-2.5", "OLDAP-2.4" ]
null
null
null
import cv2 import os from image_processing import func if not os.path.exists("temp"): os.makedirs("temp") if not os.path.exists("temp/train"): os.makedirs("temp/train") if not os.path.exists("temp/test"): os.makedirs("temp/test") path="data3/train" #coloured images here path1 = "temp" #black and white ima...
28.982143
69
0.542206
f2eb3abfd3612f70bda9020835f646f82e172f8c
29,739
py
Python
cloudmesh/multipass/Provider.py
jebeckford/cloudmesh-multipass
c8bc14c5093ab599c184b2bf5f934b8a4f2b0791
[ "Apache-2.0" ]
null
null
null
cloudmesh/multipass/Provider.py
jebeckford/cloudmesh-multipass
c8bc14c5093ab599c184b2bf5f934b8a4f2b0791
[ "Apache-2.0" ]
null
null
null
cloudmesh/multipass/Provider.py
jebeckford/cloudmesh-multipass
c8bc14c5093ab599c184b2bf5f934b8a4f2b0791
[ "Apache-2.0" ]
null
null
null
import json import os from cloudmesh.abstractclass.ComputeNodeABC import ComputeNodeABC from cloudmesh.common.DateTime import DateTime from cloudmesh.common.Printer import Printer from cloudmesh.common.Shell import Shell from cloudmesh.common.console import Console from cloudmesh.common.util import banner from cloudme...
28.761122
84
0.53065
0c27f62b3bbe87d9acbd81a7c58d2247f5966795
3,647
py
Python
manage.py
BolajiOlajide/rmw-bot
6c7e37f2f977af8fe3c90b59c1242fc3180aea88
[ "MIT" ]
2
2019-11-24T21:05:00.000Z
2021-02-15T12:32:46.000Z
manage.py
BolajiOlajide/rmw-bot
6c7e37f2f977af8fe3c90b59c1242fc3180aea88
[ "MIT" ]
1
2019-12-28T07:25:12.000Z
2019-12-28T07:25:12.000Z
manage.py
BolajiOlajide/rmw-bot
6c7e37f2f977af8fe3c90b59c1242fc3180aea88
[ "MIT" ]
null
null
null
import json from threading import Thread import requests from flask import jsonify, request from flask_migrate import Migrate, MigrateCommand from flask_script import Manager from app import create_app from app.actions.bot_actions import BotActions from app.repositories.user_repo import UserRepo from app.utils import...
33.154545
101
0.700027
5d4ad9eb163eaa08df5be52e38c55dbde041fd21
4,652
py
Python
ppci/lang/c/utils.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
null
null
null
ppci/lang/c/utils.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
null
null
null
ppci/lang/c/utils.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
1
2021-11-23T14:23:04.000Z
2021-11-23T14:23:04.000Z
import re from .nodes.visitor import Visitor def required_padding(address, alignment): """ Return how many padding bytes are needed to align address """ rest = address % alignment if rest: # We need padding bytes: return alignment - rest return 0 def print_ast(ast, file=None): ""...
26.282486
75
0.474205
4fe32fa9065e7329a7d129c7926cec156ecf6bac
3,223
py
Python
examples/unsupervised/lsh.py
rueckstiess/pybrain
8fc950d700aaf9d5012911d53714afb4b18225c3
[ "BSD-3-Clause" ]
3
2015-03-21T21:42:28.000Z
2018-07-12T04:21:32.000Z
examples/unsupervised/lsh.py
bayerj/pybrain
cfef28152bd60cedfdae5390c599d4fe4d2ec095
[ "BSD-3-Clause" ]
null
null
null
examples/unsupervised/lsh.py
bayerj/pybrain
cfef28152bd60cedfdae5390c599d4fe4d2ec095
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python2.5 from __future__ import division __author__ = 'Justin Bayer, bayer.justin@googlemail.com' import logging from random import shuffle from pylab import show, plot, clf from pybrain.supervised.knn.lsh.nearoptimal import MultiDimHash from scipy import random, array, dot, zeros ...
30.990385
79
0.561278
13dc02451d64444e80dcbdb8660b261c3bd0499e
2,554
py
Python
src/richie/plugins/lti_consumer/api.py
kbneedscoffee/richie
b1961a9404eb83212e5845abffd645f86b22350e
[ "MIT" ]
null
null
null
src/richie/plugins/lti_consumer/api.py
kbneedscoffee/richie
b1961a9404eb83212e5845abffd645f86b22350e
[ "MIT" ]
null
null
null
src/richie/plugins/lti_consumer/api.py
kbneedscoffee/richie
b1961a9404eb83212e5845abffd645f86b22350e
[ "MIT" ]
null
null
null
"""Declare API endpoints for LTI Consumer Plugin""" from django.core.cache import caches from django.core.cache.backends.base import InvalidCacheBackendError from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.utils import translation from rest_framework import viewsets from...
34.986301
85
0.645262
4fd25b8f90890a1fac22c92a73fde972c0f86ce5
4,689
py
Python
test/unit/test_context.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
null
null
null
test/unit/test_context.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
null
null
null
test/unit/test_context.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
null
null
null
import mock import unittest from dbt.contracts.graph.parsed import ParsedNode from dbt.context import parser, runtime import dbt.exceptions from .mock_adapter import adapter_factory class TestVar(unittest.TestCase): def setUp(self): self.model = ParsedNode( alias='model_one', nam...
35.793893
89
0.605673
4d7ee1ea5082795149f26c05c94649ffa81815c4
1,556
py
Python
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/CreateMonitoringAgentProcessRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/CreateMonitoringAgentProcessRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-cms/aliyunsdkcms/request/v20190101/CreateMonitoringAgentProcessRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.363636
87
0.768638
67981d9835e269669e9986930d7fbcb92c76a5bc
22,255
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_express_route_cross_connection_peerings_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_express_route_cross_connection_peerings_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_express_route_cross_connection_peerings_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.755814
236
0.683981
71f92b6f4ffce77cab1bfbd4a2d6ef19216c1fe6
940
py
Python
xclib/ejabberd_io.py
gibberfishinc/xmpp-cloud-auth
9e5856f49ba1fb98fd0d5ac34d75b5ca8f9a5e2a
[ "MIT" ]
null
null
null
xclib/ejabberd_io.py
gibberfishinc/xmpp-cloud-auth
9e5856f49ba1fb98fd0d5ac34d75b5ca8f9a5e2a
[ "MIT" ]
null
null
null
xclib/ejabberd_io.py
gibberfishinc/xmpp-cloud-auth
9e5856f49ba1fb98fd0d5ac34d75b5ca8f9a5e2a
[ "MIT" ]
null
null
null
import sys import logging from struct import pack, unpack from xclib.utf8 import unutf8 class ejabberd_io: @classmethod def read_request(cls): length_field = sys.stdin.buffer.read(2) while len(length_field) == 2: (size,) = unpack('>H', length_field) if size == 0: ...
29.375
91
0.546809
132ef5d6977effe417d867e5e45e74531628d4b8
8,020
py
Python
notebooks/initial-data-analysis.py
LSDE-Flickr-ML-Classification/data-anaylsis
a8ae2c6d45274d57a9d88e3c0dc48b7715d2dfcd
[ "MIT" ]
null
null
null
notebooks/initial-data-analysis.py
LSDE-Flickr-ML-Classification/data-anaylsis
a8ae2c6d45274d57a9d88e3c0dc48b7715d2dfcd
[ "MIT" ]
null
null
null
notebooks/initial-data-analysis.py
LSDE-Flickr-ML-Classification/data-anaylsis
a8ae2c6d45274d57a9d88e3c0dc48b7715d2dfcd
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %run /group07/shared # COMMAND ---------- ### # Sampels the flicker dataset with default seed lsde in ascii numbers ### def sample_flickr_dataset(full_sample = False, prefix = "", seed = 108115100101): files_list = dbutils.fs.ls("/mnt/data/flickr") DF_SAMPLE_SIZE_FRAC = 0.0001...
34.718615
161
0.723566
0d864c4fbfbb7de747cc7ad6c2654a1bd7a18b3d
7,763
py
Python
test/benchmark.py
D3X/pysendfile
38a173ba9b827d82b19abc2ff83ead36183ffc9a
[ "MIT" ]
119
2015-01-06T10:26:35.000Z
2021-12-03T06:22:47.000Z
test/benchmark.py
D3X/pysendfile
38a173ba9b827d82b19abc2ff83ead36183ffc9a
[ "MIT" ]
11
2015-02-06T18:01:26.000Z
2022-03-14T09:51:28.000Z
test/benchmark.py
D3X/pysendfile
38a173ba9b827d82b19abc2ff83ead36183ffc9a
[ "MIT" ]
24
2015-01-13T20:08:46.000Z
2021-07-30T13:45:15.000Z
#!/usr/bin/env python # ====================================================================== # This software is distributed under the MIT license reproduced below: # # Copyright (C) 2009-2014 Giampaolo Rodola' <g.rodola@gmail.com> # # Permission to use, copy, modify, and distribute this software and # its docum...
28.435897
78
0.581863
ca10c41ae61c92a86d634aaba52857148355d2b3
5,574
py
Python
PySpectra/spectra_reader.py
pmlrsg/PySpectra
051d506ab5479a0b0cf0a9d2ec1d27eee3569d9e
[ "MIT" ]
2
2017-09-14T17:56:23.000Z
2018-07-06T11:20:49.000Z
PySpectra/spectra_reader.py
pmlrsg/PySpectra
051d506ab5479a0b0cf0a9d2ec1d27eee3569d9e
[ "MIT" ]
14
2015-11-16T09:29:06.000Z
2019-11-08T11:53:38.000Z
PySpectra/spectra_reader.py
pmlrsg/PySpectra
051d506ab5479a0b0cf0a9d2ec1d27eee3569d9e
[ "MIT" ]
2
2019-01-31T13:02:50.000Z
2019-11-28T20:02:19.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # This file has been created by ARSF Data Analysis Node and # is licensed under the MIT Licence. A copy of this # licence is available to download with this file. # # Author: Dan Clewley # Created: 27/08/2015 import datetime import numpy from scipy.interpolate import i...
31.670455
107
0.657876
697f63d0591519f2da900d9d10d8053e4fe45ad4
1,040
py
Python
bookapi/forms.py
MohamadGamal/DjangoBookstore
20f31297be1556208322f50d810f2d2f88bbb808
[ "MIT" ]
1
2017-05-01T10:04:24.000Z
2017-05-01T10:04:24.000Z
bookapi/forms.py
MohamadGamal/DjangoBookstore
20f31297be1556208322f50d810f2d2f88bbb808
[ "MIT" ]
null
null
null
bookapi/forms.py
MohamadGamal/DjangoBookstore
20f31297be1556208322f50d810f2d2f88bbb808
[ "MIT" ]
null
null
null
from django import forms from .models import User as nUser from django.contrib.auth.models import User class SignInForm(forms.ModelForm): password=forms.CharField(widget=forms.PasswordInput()) class Meta: model = User fields = ['username', 'password']#'__all__' class SignUpForm(forms.Mode...
31.515152
78
0.660577
35deaef17719da9fd0e2aeb2551c8332df38343d
953
py
Python
signal_processing/timbral_inspection/for_pres.py
sivaprakasaman/Python_Coding_Toolbox
4e9ce98651f2a1c58d743f1375edd1e0d9c9ba76
[ "MIT" ]
null
null
null
signal_processing/timbral_inspection/for_pres.py
sivaprakasaman/Python_Coding_Toolbox
4e9ce98651f2a1c58d743f1375edd1e0d9c9ba76
[ "MIT" ]
1
2022-01-09T22:52:04.000Z
2022-01-09T22:52:04.000Z
signal_processing/timbral_inspection/for_pres.py
sivaprakasaman/Python_Coding_Toolbox
4e9ce98651f2a1c58d743f1375edd1e0d9c9ba76
[ "MIT" ]
1
2022-01-06T02:25:43.000Z
2022-01-06T02:25:43.000Z
from signal_processing import pure_tone_complex, sound, magphase, get_spect import matplotlib.pyplot as plt from scipy.signal import spectrogram as sp import scipy as scip import numpy as np fs = 44100 fc = 4e3; freq_Hz = [440]; dur_sec = 1; mags = [1]; phi = [0]; F_0 = pure_tone_complex(freq_Hz, fs, dur_sec, mags, p...
24.435897
132
0.681007
839d595ed98c4902295a23662f7fc60c393977d5
22,194
py
Python
xhtml2pdf/util.py
marcelagz/xhtml2pdf
c988b0d2174c5e91ff1fd561c7a124ab7e5a1233
[ "Apache-2.0" ]
null
null
null
xhtml2pdf/util.py
marcelagz/xhtml2pdf
c988b0d2174c5e91ff1fd561c7a124ab7e5a1233
[ "Apache-2.0" ]
null
null
null
xhtml2pdf/util.py
marcelagz/xhtml2pdf
c988b0d2174c5e91ff1fd561c7a124ab7e5a1233
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 ...
33.93578
102
0.590971
07dd7cbe7b67fb5f32c3dbfce30eb29ea6e00c5c
5,391
py
Python
System/Mount Disk Image.app/Resources/mount_md_gui.py
alphamodh0/Utilities
d02caf12728bd2aa74eeed0952975798c7ac7cd1
[ "BSD-2-Clause" ]
1
2020-09-27T15:01:29.000Z
2020-09-27T15:01:29.000Z
System/Mount Disk Image.app/Resources/mount_md_gui.py
alphamodh0/Utilities
d02caf12728bd2aa74eeed0952975798c7ac7cd1
[ "BSD-2-Clause" ]
null
null
null
System/Mount Disk Image.app/Resources/mount_md_gui.py
alphamodh0/Utilities
d02caf12728bd2aa74eeed0952975798c7ac7cd1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os, sys, socket, subprocess, time # Translate this application using Qt .ts files without the need for compilation import tstranslator tstr = tstranslator.TsTranslator(os.path.dirname(__file__) + "/i18n", "") def tr(input): return tstr.tr(input) from PyQt5 import QtWidgets, QtGui, Q...
41.790698
192
0.638101
99c6c956a378afcda1247b0b075306e45a9bc8ff
27
py
Python
amnesia/modules/country/__init__.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
4
2015-05-08T10:57:56.000Z
2021-05-17T04:32:11.000Z
amnesia/modules/country/__init__.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
6
2019-12-26T16:43:41.000Z
2022-02-28T11:07:54.000Z
amnesia/modules/country/__init__.py
silenius/amnesia
ba5e3ac79a89da599c22206ad1fd17541855f74c
[ "BSD-2-Clause" ]
1
2019-09-23T14:08:11.000Z
2019-09-23T14:08:11.000Z
from .model import Country
13.5
26
0.814815
88d7054c86555619aa9610b3f2cb7c5bea91103f
7,899
py
Python
backend/betterfly_34201/settings.py
crowdbotics-apps/betterfly-34201
54aa9710bc95f9c065e1faa63e19ca5df58fda2f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/betterfly_34201/settings.py
crowdbotics-apps/betterfly-34201
54aa9710bc95f9c065e1faa63e19ca5df58fda2f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/betterfly_34201/settings.py
crowdbotics-apps/betterfly-34201
54aa9710bc95f9c065e1faa63e19ca5df58fda2f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for betterfly_34201 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
30.380769
112
0.736802
6ac96e783804f54ee5612a514605f70cc98540e4
234,780
py
Python
src/sage/combinat/words/finite_word.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/combinat/words/finite_word.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/words/finite_word.py
vbraun/sage
07d6c37d18811e2b377a9689790a7c5e24da16ba
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
# -*- coding: utf-8 -*- r""" Finite word AUTHORS: - Arnaud Bergeron - Amy Glen - Sébastien Labbé - Franco Saliola - Julien Leroy (March 2010): reduced_rauzy_graph EXAMPLES: ========================= Creation of a finite word ========================= Finite words from Python strings, lists and tuples:: sage: ...
32.52251
261
0.512122
bce18f6a38e67fcbf558a1e9df67a44fcca05551
3,444
py
Python
tests/test_django/settings/v12.py
edavis/django-override-settings
016a2ba44cf7132d3aeefbfeddaf201217b1d4b6
[ "BSD-3-Clause" ]
4
2015-02-06T14:50:12.000Z
2020-05-13T07:27:08.000Z
tests/test_django/settings/v12.py
edavis/django-override-settings
016a2ba44cf7132d3aeefbfeddaf201217b1d4b6
[ "BSD-3-Clause" ]
null
null
null
tests/test_django/settings/v12.py
edavis/django-override-settings
016a2ba44cf7132d3aeefbfeddaf201217b1d4b6
[ "BSD-3-Clause" ]
3
2015-10-04T23:05:24.000Z
2020-11-23T18:47:24.000Z
# Django settings for foo project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME'...
35.142857
122
0.694251
0352c49bfb4bcccdc512188b3249cef0fab77c14
4,704
py
Python
modules/dbnd/src/dbnd/__init__.py
hugovk/dbnd
59cd2a63a88e3bf6022bf8a4e74e6e10b183abcd
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/__init__.py
hugovk/dbnd
59cd2a63a88e3bf6022bf8a4e74e6e10b183abcd
[ "Apache-2.0" ]
null
null
null
modules/dbnd/src/dbnd/__init__.py
hugovk/dbnd
59cd2a63a88e3bf6022bf8a4e74e6e10b183abcd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from dbnd._core.access import ( get_remote_engine_name, get_task_params_defs, get_task_params_values, ) from dbnd._core.cli.main import ( dbnd_cmd, dbnd_run_cmd, dbnd_run_cmd_main, main as dbnd_main, ) from dbnd._core.configuration.config_path import ConfigPath from...
26.27933
82
0.73852
dc09e6cfa5eebe2a970cd143544704b3431139f3
958
py
Python
test/test_exporter.py
MattCzyr/EvacSim
d2fd191e8fb93d210b031794c274c54ebe3a1fe4
[ "MIT" ]
1
2019-11-03T16:58:28.000Z
2019-11-03T16:58:28.000Z
test/test_exporter.py
MattCzyr/EvacuationPlanner
d2fd191e8fb93d210b031794c274c54ebe3a1fe4
[ "MIT" ]
12
2021-03-23T04:02:04.000Z
2021-04-30T22:55:54.000Z
test/test_exporter.py
MattCzyr/EvacuationPlanner
d2fd191e8fb93d210b031794c274c54ebe3a1fe4
[ "MIT" ]
null
null
null
import unittest import os import evacsim.node import evacsim.edge import evacsim.disaster import evacsim.exporter class TestExporter(unittest.TestCase): """Tests functionality in the exporter module. There isn't much to be tested here, so it simply tests that a KML file with the proper name is created when ...
43.545455
172
0.68476
a479c9062fccbba775fed24a8245c21d9ebebf6d
192
py
Python
12_data_persistence/sqlalchemy_inventory_query_filter.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
12_data_persistence/sqlalchemy_inventory_query_filter.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
12_data_persistence/sqlalchemy_inventory_query_filter.py
lluxury/P_U_S_A
1eb9d1fef74f9ce3618ae950f5223f598510be84
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sqlalchemy_inventory_definition import session, OperatingSystem for os in session.query(OperatingSystem).filter(OperatingSystem.name.like('Lin%')): print (os)
27.428571
83
0.786458
0e8a215802959a1f51a3e288c8b58cd7535d1308
2,724
py
Python
python/time-series-visualizer/time_series_visualizer.py
dbgeek/freeCodeCamp
39a78ef914c17b751cebf46f0c28e3f75aaef2cb
[ "MIT" ]
null
null
null
python/time-series-visualizer/time_series_visualizer.py
dbgeek/freeCodeCamp
39a78ef914c17b751cebf46f0c28e3f75aaef2cb
[ "MIT" ]
12
2021-03-06T18:28:14.000Z
2022-02-27T07:23:02.000Z
python/time-series-visualizer/time_series_visualizer.py
dbgeek/freeCodeCamp
39a78ef914c17b751cebf46f0c28e3f75aaef2cb
[ "MIT" ]
null
null
null
import datetime import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from pandas.plotting import register_matplotlib_converters register_matplotlib_converters() # Import data (Make sure to parse dates. Consider setting index column to 'date'.) df = df = pd.read_csv('fcc-forum-pageviews.csv', index...
31.674419
91
0.659325
6e9334996100f25daaf534f5c27afba8272b04c3
3,775
py
Python
pandas/tests/dtypes/test_generic.py
henighan/pandas
45d8d77f27cf0dbc8cefe932f8fb64f6982b9527
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/dtypes/test_generic.py
henighan/pandas
45d8d77f27cf0dbc8cefe932f8fb64f6982b9527
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/dtypes/test_generic.py
henighan/pandas
45d8d77f27cf0dbc8cefe932f8fb64f6982b9527
[ "BSD-3-Clause" ]
null
null
null
from warnings import catch_warnings import numpy as np from pandas.core.dtypes import generic as gt import pandas as pd import pandas._testing as tm class TestABCClasses: tuples = [[1, 2, 2], ["red", "blue", "red"]] multi_index = pd.MultiIndex.from_arrays(tuples, names=("number", "color")) datetime_ind...
43.390805
81
0.654305
1ee500f09b0932da613b572cb04fd63908aa3185
3,769
py
Python
muted/config/config.py
st093186/mute-master
9247e422e543d9ee96d4df9133bed2cbed62ddd0
[ "MIT" ]
null
null
null
muted/config/config.py
st093186/mute-master
9247e422e543d9ee96d4df9133bed2cbed62ddd0
[ "MIT" ]
null
null
null
muted/config/config.py
st093186/mute-master
9247e422e543d9ee96d4df9133bed2cbed62ddd0
[ "MIT" ]
null
null
null
from __future__ import annotations import json from pathlib import Path class Config: _instance: Config = None def __init__(self, **kwargs): self._kwargs = kwargs @classmethod def instance(cls) -> Config: if not cls._instance: path = Path(f'.muted/muted.json') ...
24.633987
60
0.392677
98b7f994bc9f913b00c88f21a6e255ef0db3cf34
2,424
py
Python
userbot/plugins/fmute.py
Doom098/userbot
11f0225a75241ab9492b1c435414c77de287b8a6
[ "MIT" ]
12
2022-01-06T19:52:48.000Z
2022-03-06T09:05:08.000Z
userbot/plugins/fmute.py
Doom098/userbot
11f0225a75241ab9492b1c435414c77de287b8a6
[ "MIT" ]
null
null
null
userbot/plugins/fmute.py
Doom098/userbot
11f0225a75241ab9492b1c435414c77de287b8a6
[ "MIT" ]
64
2022-01-06T19:55:15.000Z
2022-03-29T21:03:01.000Z
import asyncio from userbot.plugins.sql_helper.mute_sql import is_muted, mute, unmute from userbot.utils import admin_cmd # @command(outgoing=True, pattern=r"^.gmute ?(\d+)?") @borg.on(admin_cmd(pattern=r"fmute ?(\d+)?")) async def startgmute(event): private = False if event.fwd_from: return elif...
31.076923
83
0.62665
9166db7ca237d853b84ea08afdd957773b2f8f83
739
py
Python
pypy/translator/cli/test/test_float.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
1
2019-05-27T00:58:46.000Z
2019-05-27T00:58:46.000Z
pypy/translator/cli/test/test_float.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
pypy/translator/cli/test/test_float.py
woodrow/pyoac
b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7
[ "MIT" ]
null
null
null
import py from pypy.translator.cli.test.runtest import CliTest from pypy.rpython.test.test_rfloat import BaseTestRfloat class TestCliFloat(CliTest, BaseTestRfloat): inf = 'Infinity' minus_inf = '-Infinity' nan = 'NaN' def test_parse_float(self): ex = ['', ' ', '0', '1', '-1.5', '1.5E2', '2...
27.37037
74
0.537212
d6d6732aa091ed2da9ad8809f8be27d92fc0ee2e
1,995
py
Python
tests/cli/test_wait.py
stsievert/htmap
70509481299edce1b38fb5cf7cf10393b6bd7392
[ "Apache-2.0" ]
null
null
null
tests/cli/test_wait.py
stsievert/htmap
70509481299edce1b38fb5cf7cf10393b6bd7392
[ "Apache-2.0" ]
null
null
null
tests/cli/test_wait.py
stsievert/htmap
70509481299edce1b38fb5cf7cf10393b6bd7392
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
24.329268
74
0.661654
41e1817354d182c76f034d4bd2e6ded328f64db2
601
py
Python
Hackerrank_problems/Modified Kaprekar Numbers/solution.py
KAHund/CompetitiveCode
6ed211a2f795569f5c2f18c2f660520d99d41ca0
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Modified Kaprekar Numbers/solution.py
KAHund/CompetitiveCode
6ed211a2f795569f5c2f18c2f660520d99d41ca0
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Modified Kaprekar Numbers/solution.py
KAHund/CompetitiveCode
6ed211a2f795569f5c2f18c2f660520d99d41ca0
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
def check(i): sq = str(i**2) # squaring the input le = len(str(i)) # calculating the length r = sq[-le:] # extracting the right hand part l = sq[:-le] or '0' # extracting the left hand part return sum(map(int,(l,r)))==i ...
46.230769
157
0.50416
da217aa3906f14cd12d0b4dc272adc542e5ec906
2,093
py
Python
Flv/utils.py
wuli133144/video_parse
0233922b20a2cd19144173ae752b070276bbc498
[ "Unlicense" ]
null
null
null
Flv/utils.py
wuli133144/video_parse
0233922b20a2cd19144173ae752b070276bbc498
[ "Unlicense" ]
null
null
null
Flv/utils.py
wuli133144/video_parse
0233922b20a2cd19144173ae752b070276bbc498
[ "Unlicense" ]
null
null
null
FLV_HEADER_SIZE =9 FLV_TAG_SIZE =11 FLV_PRE_LEN =4 FLV_FORMAT_SCRIPT =18 FLV_FORMAT_AUDEO =8 FLV_FORMAT_VIDEO =9 #############audio############################# def get_audio_type(type): if isinstance(type,int) is False: return None if type ==10: return "AAC" e...
22.505376
62
0.540373
d15f23e8b6f3e1f4e09dc73768f8ef98a1e5f6b1
12,187
py
Python
openslides/core/config_variables.py
ApolloLV/OpenSlides
ba3c5e07f7d16133a74fc6a57070f074655aa71c
[ "MIT" ]
null
null
null
openslides/core/config_variables.py
ApolloLV/OpenSlides
ba3c5e07f7d16133a74fc6a57070f074655aa71c
[ "MIT" ]
null
null
null
openslides/core/config_variables.py
ApolloLV/OpenSlides
ba3c5e07f7d16133a74fc6a57070f074655aa71c
[ "MIT" ]
null
null
null
import uuid from django.core.validators import MaxLengthValidator from openslides.core.config import ConfigVariable def get_config_variables(): """ Generator which yields all config variables of this app. There are two main groups: 'General' and 'Projector'. The group 'General' has subgroups. The g...
27.203125
105
0.556084
4e0fc622dcd57dc10e93d132d669d009da85412f
2,986
py
Python
app.py
cs01/python-online-disassembler
bf01605b591d09f4546003ced1a6c72d0e453b39
[ "MIT" ]
5
2018-08-11T06:49:59.000Z
2020-02-28T13:29:52.000Z
app.py
cs01/python-online-disassembler
bf01605b591d09f4546003ced1a6c72d0e453b39
[ "MIT" ]
null
null
null
app.py
cs01/python-online-disassembler
bf01605b591d09f4546003ced1a6c72d0e453b39
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import json import base64 import lzma import black import dis from flask import ( Flask, render_template, request, send_from_directory, render_template_string, redirect, url_for, ) app = Flask(__name__) def compress_state(data): compressed = lzma.comp...
24.677686
75
0.600469
f019dbe9fff92b432f48617630248843c0c59e53
11,065
py
Python
version_0.2.0/static_tpo_slider.py
StreamAlpha/tpo_project
08c6dfee75684be2539a53433b79525ed986fbba
[ "MIT" ]
69
2020-08-02T03:00:34.000Z
2022-03-17T20:42:28.000Z
version_0.2.0/static_tpo_slider.py
anojangra/tpo_project
08c6dfee75684be2539a53433b79525ed986fbba
[ "MIT" ]
5
2020-08-02T10:53:00.000Z
2021-09-15T07:22:05.000Z
version_0.2.0/static_tpo_slider.py
anojangra/tpo_project
08c6dfee75684be2539a53433b79525ed986fbba
[ "MIT" ]
29
2020-08-01T22:26:41.000Z
2022-03-05T08:21:01.000Z
# -*- coding: utf-8 -*- """ Created on Sun Aug 2 07:02:43 2020 @author: alex1 twitter.com/beinghorizontal """ import pandas as pd import plotly.graph_objects as go from tpo_helper2 import get_ticksize, abc, get_mean, get_rf, get_context, get_dayrank, get_ibrank import numpy as np import dash import da...
41.597744
335
0.522639
cfb8f8a41cd636d386a81b87316ea31f9f5bc9aa
2,982
py
Python
bear/utils/testing.py
tgsmith61591/bear
153fc6e8cb01427958a949eab0a270110d8044e1
[ "MIT" ]
1
2018-10-31T01:56:18.000Z
2018-10-31T01:56:18.000Z
bear/utils/testing.py
tgsmith61591/bear
153fc6e8cb01427958a949eab0a270110d8044e1
[ "MIT" ]
1
2018-10-24T18:29:14.000Z
2018-10-24T18:29:14.000Z
bear/utils/testing.py
tgsmith61591/bear
153fc6e8cb01427958a949eab0a270110d8044e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Testing utilities from __future__ import absolute_import import os import six from os.path import join import shutil from functools import wraps __all__ = ['make_and_cleanup_project_path', 'with_temporary_file', 'SimulatedNamespace'] def make_and_cleanup_project_p...
29.235294
77
0.63548
4b6a8a83bbd6dbd5fb7489c182bd42c7b78e969c
739
py
Python
Lectures_Codes/examples-11/cdecorators.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Lectures_Codes/examples-11/cdecorators.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Lectures_Codes/examples-11/cdecorators.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def prefix(class_): class_.log_prefix = 'DEBUG' return class_ @prefix class Foo: def __init__(self): print(f'{self.log_prefix}: instance created') foo = Foo() # We can also add methods via the decorator def bar(class_): def bar(self): ...
15.395833
85
0.638701
b17dea1c2a6e3f16e7a4137562bf28a44ef93c41
9,137
py
Python
icesat2_toolkit/read_ICESat2_ATL07.py
outlk/read-ICESat-2
4a1e90038548a050b4bdbcbcf9e4fb7864a52b9f
[ "MIT" ]
50
2019-07-22T14:13:28.000Z
2022-03-16T19:18:07.000Z
icesat2_toolkit/read_ICESat2_ATL07.py
outlk/read-ICESat-2
4a1e90038548a050b4bdbcbcf9e4fb7864a52b9f
[ "MIT" ]
2
2020-08-16T06:52:24.000Z
2021-07-12T23:05:07.000Z
icesat2_toolkit/read_ICESat2_ATL07.py
outlk/read-ICESat-2
4a1e90038548a050b4bdbcbcf9e4fb7864a52b9f
[ "MIT" ]
19
2019-07-01T03:01:01.000Z
2022-02-25T00:29:44.000Z
#!/usr/bin/env python u""" read_ICESat2_ATL07.py (02/2021) Read ICESat-2 ATL07 (Sea Ice Height) data files PYTHON DEPENDENCIES: numpy: Scientific Computing Tools For Python https://numpy.org https://numpy.org/doc/stable/user/numpy-for-matlab-users.html h5py: Python interface for Hierarchal Data...
41.912844
96
0.625917
e04d38da9d3cdc589b8d337923b8dcf993494b32
548
py
Python
catalog/config/urls.py
eduleones/catalog-backend-example
8938662d391daad94e73152f7291e800a360e689
[ "MIT" ]
null
null
null
catalog/config/urls.py
eduleones/catalog-backend-example
8938662d391daad94e73152f7291e800a360e689
[ "MIT" ]
6
2019-12-04T23:52:51.000Z
2022-02-10T12:30:40.000Z
catalog/config/urls.py
eduleones/catalog-backend-example
8938662d391daad94e73152f7291e800a360e689
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from drf.swagger_utils import get_swagger_view docs_view = get_swagger_view(title='Catalog') urlpatterns = [ path('admin/', admin.site.urls), path('docs/', docs_...
21.076923
59
0.686131
3910ee48f2f707a31c6dd302887668cf838acf9f
1,401
py
Python
part03-e15_inverse_series/test/test_inverse_series.py
alekshiidenhovi/Helsinki-University-Data-Analysis-with-Python
bc27fa585d22d630a38312ee7c4b2173d5b80d12
[ "MIT" ]
null
null
null
part03-e15_inverse_series/test/test_inverse_series.py
alekshiidenhovi/Helsinki-University-Data-Analysis-with-Python
bc27fa585d22d630a38312ee7c4b2173d5b80d12
[ "MIT" ]
null
null
null
part03-e15_inverse_series/test/test_inverse_series.py
alekshiidenhovi/Helsinki-University-Data-Analysis-with-Python
bc27fa585d22d630a38312ee7c4b2173d5b80d12
[ "MIT" ]
2
2022-02-14T20:07:29.000Z
2022-03-11T07:30:23.000Z
#!/usr/bin/env python3 import unittest from unittest.mock import patch import pandas as pd import numpy as np from tmc import points from tmc.utils import load, get_stdout, patch_helper module_name="src.inverse_series" inverse_series = load(module_name, "inverse_series") main = load(module_name, "main") ph = patch_...
28.02
89
0.654532
d6c83d0c8ed13c37d7f33c9b9f2386797fdbe9f2
31,962
py
Python
autopandas_v2/tests/io_featurizer_old.py
chyanju/autopandas
16080ad12f0e8e7b0a614671aea1ed57b3fed7fe
[ "BSD-3-Clause" ]
16
2019-08-13T02:49:44.000Z
2022-02-08T03:14:34.000Z
autopandas_v2/tests/io_featurizer_old.py
chyanju/autopandas
16080ad12f0e8e7b0a614671aea1ed57b3fed7fe
[ "BSD-3-Clause" ]
2
2020-09-25T22:40:40.000Z
2022-02-09T23:42:53.000Z
autopandas_v2/tests/io_featurizer_old.py
chyanju/autopandas
16080ad12f0e8e7b0a614671aea1ed57b3fed7fe
[ "BSD-3-Clause" ]
3
2021-07-06T10:30:36.000Z
2022-01-11T23:21:31.000Z
import unittest import pandas as pd import numpy as np from autopandas_v2.ml.featurization.io_featurizer_old import RelationGraphNode, RelationGraph, RelationGraphEdge, \ RelationGraphEdgeType, RelationGraphNodeType, RelationGraphOptions get_node_type = RelationGraphNodeType.get_node_type class TestRelationGrap...
52.22549
120
0.635129
05362a6e56787dea98876c6541d857156e3b3def
7,494
py
Python
Graph/GraphAPI/app.py
jennyqujy/WikiScraper
baa0d42955662396ae631e4c32c7f47610cc06c0
[ "Apache-2.0" ]
null
null
null
Graph/GraphAPI/app.py
jennyqujy/WikiScraper
baa0d42955662396ae631e4c32c7f47610cc06c0
[ "Apache-2.0" ]
null
null
null
Graph/GraphAPI/app.py
jennyqujy/WikiScraper
baa0d42955662396ae631e4c32c7f47610cc06c0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys # Add the ptdraft folder path to the sys.path list sys.path.append('/Users/Jenny/Desktop/cs242/Assignment2.0/Scraper/Graph') import pdb from flask import Flask, jsonify, abort, make_response, request from flask_restful import Api, Resource, reqparse, fields, marshal from flask_httpau...
36.735294
115
0.662663
a6c8e9e273cb2e08fc789acfdf9f92cb4e70f341
5,282
py
Python
fluid/object_detection/train.py
sladesha/models
9264e8cebb0219a9cd765511b8a7c9236f0b1da8
[ "Apache-2.0" ]
null
null
null
fluid/object_detection/train.py
sladesha/models
9264e8cebb0219a9cd765511b8a7c9236f0b1da8
[ "Apache-2.0" ]
null
null
null
fluid/object_detection/train.py
sladesha/models
9264e8cebb0219a9cd765511b8a7c9236f0b1da8
[ "Apache-2.0" ]
1
2018-09-10T02:11:21.000Z
2018-09-10T02:11:21.000Z
import paddle.v2 as paddle import paddle.fluid as fluid import reader import load_model as load_model from mobilenet_ssd import mobile_net from utility import add_arguments, print_arguments import os import numpy as np import argparse import functools parser = argparse.ArgumentParser(description=__doc__) add_arg = fun...
36.427586
79
0.60602
e5bada9a7b33379093adbf126eac537736072724
2,356
py
Python
backtest/graph_util.py
waynewan/backtest
e01ee735c373c31dc2f867ad0437ade1e29b4a22
[ "Apache-2.0" ]
null
null
null
backtest/graph_util.py
waynewan/backtest
e01ee735c373c31dc2f867ad0437ade1e29b4a22
[ "Apache-2.0" ]
null
null
null
backtest/graph_util.py
waynewan/backtest
e01ee735c373c31dc2f867ad0437ade1e29b4a22
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from jackutil.containerutil import extractValue from tqdm.auto import tqdm # -- # -- use in jupyter-notebook env (ipython) only # -- def plot_account_cumprofit(account,title=None): df0 = account.to_dataframe() df0.plot(x='exit_date',y='cumprofit',logy=True,figsize=(...
38.622951
94
0.702886
e016bc80f0e8a23635bfb107f3239ee607679a06
433
py
Python
py/_std.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-07-05T09:57:33.000Z
2017-11-14T23:05:53.000Z
py/_std.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
1
2019-03-23T08:23:21.000Z
2019-03-23T08:23:21.000Z
py/_std.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
2
2017-11-07T18:05:19.000Z
2017-11-14T18:06:55.000Z
import sys class Std(object): """ makes top-level python modules available as an attribute, importing them on first access. """ def __init__(self): self.__dict__ = sys.modules def __getattr__(self, name): try: m = __import__(name) except Import...
22.789474
71
0.570439
6a0ea10cf6314b4626ff7b9431d22bddebde78c1
2,436
py
Python
flexget/components/pending_approval/db.py
guillaumelamirand/Flexget
51945105c253a64c079eb5a62680392ce9013794
[ "MIT" ]
2
2017-03-25T10:39:25.000Z
2019-12-11T03:46:26.000Z
flexget/components/pending_approval/db.py
guillaumelamirand/Flexget
51945105c253a64c079eb5a62680392ce9013794
[ "MIT" ]
null
null
null
flexget/components/pending_approval/db.py
guillaumelamirand/Flexget
51945105c253a64c079eb5a62680392ce9013794
[ "MIT" ]
null
null
null
import logging from datetime import datetime, timedelta from sqlalchemy import Boolean, Column, DateTime, Integer, String, Unicode from flexget import db_schema from flexget.event import event from flexget.utils.database import entry_synonym log = logging.getLogger('pending_approval') Base = db_schema.versioned_base...
30.835443
99
0.663793
bc78d8c06390c284d06791776578b3e5a0c12241
4,206
py
Python
socfaker/dns.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
122
2020-02-21T16:06:54.000Z
2022-03-21T13:53:03.000Z
socfaker/dns.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
13
2020-01-29T16:37:05.000Z
2022-01-27T21:30:10.000Z
socfaker/dns.py
priamai/soc-faker
51b587f0cec52212136905280406e915006d2afc
[ "MIT" ]
20
2020-04-10T11:59:29.000Z
2022-02-10T09:20:26.000Z
import json import os from .network import Network from .words import Words from .organization import Organization from .baseclass import BaseClass class DNS(BaseClass): """The DNS class contains common information related to DNS data Returns: DNS: An object containing information related to DNS ...
24.887574
106
0.497147
84192fc58f6d9531a1ec49d82869a1cc1ec4d962
2,296
py
Python
dbstruct.py
uniurbit/choco-updater
7e04d70be5dc022dc7460bfcb8c59aba30381235
[ "MIT" ]
2
2021-05-17T08:12:22.000Z
2021-06-06T18:21:15.000Z
dbstruct.py
uniurbit/choco-updater
7e04d70be5dc022dc7460bfcb8c59aba30381235
[ "MIT" ]
null
null
null
dbstruct.py
uniurbit/choco-updater
7e04d70be5dc022dc7460bfcb8c59aba30381235
[ "MIT" ]
null
null
null
# Francesco Buresta @ Uniurb 20201210 # migrations create_db = ''' CREATE DATABASE IF NOT EXISTS `choco_update` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `choco_update`; ''' create_tbl_package = ''' -- -- Table structure for table `package` -- CREAT...
28
150
0.693815
34559226b310c476982599c3518145af0aa7d6c9
2,295
py
Python
golden/models.py
Chebichii-Lab/Awwards-Show
3cb330cd1c11c89a12dee04db2378ec98f889a87
[ "MIT" ]
null
null
null
golden/models.py
Chebichii-Lab/Awwards-Show
3cb330cd1c11c89a12dee04db2378ec98f889a87
[ "MIT" ]
null
null
null
golden/models.py
Chebichii-Lab/Awwards-Show
3cb330cd1c11c89a12dee04db2378ec98f889a87
[ "MIT" ]
null
null
null
from django.db import models from cloudinary.models import CloudinaryField from django.contrib.auth.models import User # Create your models here. class Profile(models.Model): profile_picture = CloudinaryField('image') profile_bio = models.TextField() profile_contact = models.CharField(max_length=60,blank=...
27.650602
104
0.674074
7d5fbb8d655e27991ddce8793a2e8611bd9ec5fc
8,895
py
Python
test/functional/import-rescan.py
badrkarni/saudicoin
18c221ef1eb576d52bec53dcd449d2c6766684a2
[ "MIT" ]
8
2018-01-08T09:53:42.000Z
2018-01-17T12:42:19.000Z
test/functional/import-rescan.py
badrkarni/saudicoin
18c221ef1eb576d52bec53dcd449d2c6766684a2
[ "MIT" ]
null
null
null
test/functional/import-rescan.py
badrkarni/saudicoin
18c221ef1eb576d52bec53dcd449d2c6766684a2
[ "MIT" ]
1
2020-02-26T17:40:29.000Z
2020-02-26T17:40:29.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 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 wallet import RPCs. Test rescan behavior of importaddress, importpubkey, importprivkey, and impor...
47.31383
116
0.6543
683f21be93621053e4b47b19abe7cc866b9921b5
1,493
py
Python
google/ads/googleads/v9/enums/types/promotion_placeholder_field.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/enums/types/promotion_placeholder_field.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/enums/types/promotion_placeholder_field.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.27451
74
0.684528
5c343c5675a10e9f3670c42c9dfa3c782b76808a
6,904
py
Python
Lib/site-packages/wikiapi/wikiapi.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
1
2019-04-23T21:50:08.000Z
2019-04-23T21:50:08.000Z
Lib/site-packages/wikiapi/wikiapi.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/wikiapi/wikiapi.py
Srinath-tr/Goferbot
0f734d01c6504c6c97dbdf45f5adf8b25c0f9fd9
[ "Apache-2.0", "bzip2-1.0.6" ]
2
2019-02-14T08:13:33.000Z
2019-04-23T21:47:48.000Z
import hashlib import logging import os import re from xml.dom import minidom import six import requests from bs4 import BeautifulSoup from pyquery import PyQuery logger = logging.getLogger(__name__) uri_scheme = 'https' api_uri = 'wikipedia.org/w/api.php' article_uri = 'wikipedia.org/wiki/' # common sub sections t...
31.381818
78
0.57445
14ad82b116c5293cb9cecef801eaf6a5fba4b189
839
py
Python
setup.py
pjflanagan/nightpro-for-gopro
a6a51e71083b871474bf2f4367cf16b473003a41
[ "MIT" ]
1
2020-12-05T18:19:17.000Z
2020-12-05T18:19:17.000Z
setup.py
pjflanagan/nightpro-for-gopro
a6a51e71083b871474bf2f4367cf16b473003a41
[ "MIT" ]
null
null
null
setup.py
pjflanagan/nightpro-for-gopro
a6a51e71083b871474bf2f4367cf16b473003a41
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md', 'r') as fh: long_description = fh.read() setup( name='nightpro-for-gopro', version='1.0.1', url='https://github.com/pjflanagan/nightpro-for-gopro', author='Peter James Flanagan', author_email='pj@pjflanagan.me', descriptio...
27.966667
59
0.640048
3facea7f06e3d7f63ff00a3d0c2ebbc90bc10e9c
807
py
Python
danbot_api/errors.py
Makiyu-py/danbot-hosting0
654573105a3dafff417bb93f3abe7df817efbee3
[ "MIT" ]
3
2021-02-28T05:40:46.000Z
2021-10-31T14:25:15.000Z
danbot_api/errors.py
Makiyu-py/danbot-hosting0
654573105a3dafff417bb93f3abe7df817efbee3
[ "MIT" ]
4
2021-02-26T11:10:37.000Z
2022-03-21T11:45:46.000Z
danbot_api/errors.py
Makiyu-py/danbot-hosting0
654573105a3dafff417bb93f3abe7df817efbee3
[ "MIT" ]
3
2021-06-16T13:31:35.000Z
2022-03-31T17:13:58.000Z
class DBHException(Exception): """ Base exception class for this module So all of the errors/exceptions below/after this would be a subclass of this """ pass class NotAllowed(DBHException): """ Error when you give an invalid dbh API key """ pass class HTTPException(DBHException): ""...
23.735294
84
0.670384
296f03671b5d981f418a75e4d5e7bd12056d7728
76
py
Python
venv/Lib/site-packages/psychopy/tests/test_psychojs/__init__.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/psychopy/tests/test_psychojs/__init__.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/psychopy/tests/test_psychojs/__init__.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
"""Testing PsychoJS, but also see test_app/test_builder/test_compileJS.py"""
76
76
0.802632
246b4d15ae59db079ad14f9499b124347b5790be
188
py
Python
imow/common/exceptions.py
ChrisHaPunkt/stihl-imow-webapi
8d2f57c4e992a6bb57d592009f464326acb9a5a1
[ "MIT" ]
10
2021-05-15T21:12:43.000Z
2022-02-01T11:11:48.000Z
imow/common/exceptions.py
ChrisHaPunkt/stihl-imow-webapi
8d2f57c4e992a6bb57d592009f464326acb9a5a1
[ "MIT" ]
4
2021-05-15T22:51:05.000Z
2021-06-17T09:41:49.000Z
imow/common/exceptions.py
ChrisHaPunkt/stihl-imow-webapi
8d2f57c4e992a6bb57d592009f464326acb9a5a1
[ "MIT" ]
5
2021-05-26T14:01:03.000Z
2021-06-16T14:50:17.000Z
class LoginError(Exception): pass class ApiMaintenanceError(Exception): pass class MessageNotFoundError(Exception): pass class LanguageNotFoundError(Exception): pass
12.533333
39
0.755319
4549f946de218dba0de4a702125ddb423f06ab31
5,235
py
Python
egg_mayavi.py
lengyuner/fly_video_analysis
74999d2d91b4ae53f8896270691384674cf022b3
[ "Apache-2.0" ]
null
null
null
egg_mayavi.py
lengyuner/fly_video_analysis
74999d2d91b4ae53f8896270691384674cf022b3
[ "Apache-2.0" ]
null
null
null
egg_mayavi.py
lengyuner/fly_video_analysis
74999d2d91b4ae53f8896270691384674cf022b3
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import sympy import numpy as np from mayavi import mlab # from sympy import * # from mayavi.mlab import * # def Demo(): # x, y, z = np.mgrid[0:1:20j, 0:1:20j, 0:1:20j] # # u = -y # v = x # w = z # 矢量场三坐...
26.984536
104
0.627507
6c7c76cfd8db1036d1c2673c5e5317b26f8d89ec
4,343
py
Python
train_models/wrn16_8_stl_d8d4d1/train_model.py
kaikai581/petals-to-the-metal
ec629c954bc46fcc4641d005415485ddf3c04498
[ "MIT" ]
null
null
null
train_models/wrn16_8_stl_d8d4d1/train_model.py
kaikai581/petals-to-the-metal
ec629c954bc46fcc4641d005415485ddf3c04498
[ "MIT" ]
null
null
null
train_models/wrn16_8_stl_d8d4d1/train_model.py
kaikai581/petals-to-the-metal
ec629c954bc46fcc4641d005415485ddf3c04498
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' This script trains one of the best performing networks from the paper, wrn28 without reflection symmetry. Since this network is optimized for the STL dataset, images are resized to 96x96 from the original size 224x224. ''' import os, sys from torchvision.transforms.transforms import Resize s...
41.361905
155
0.683168
8530aa9e38f3dcf6d035d4a2392497582bc4f9aa
3,919
py
Python
lldb_commands/yoink.py
lanza/ds-lldb
fdab1addb05c571460ad31b3256688a223a5022a
[ "MIT" ]
null
null
null
lldb_commands/yoink.py
lanza/ds-lldb
fdab1addb05c571460ad31b3256688a223a5022a
[ "MIT" ]
null
null
null
lldb_commands/yoink.py
lanza/ds-lldb
fdab1addb05c571460ad31b3256688a223a5022a
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2017 Derek Selander # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
37.682692
149
0.674407
70fb6d81708e7f2fd64c7ee50b29fe9382634eb6
3,836
py
Python
lambdausb/boards/usbsniffer.py
zignig/lambdaUSB
70e01e9d705e4d18e145f5e3f50ff7216c24e101
[ "BSD-2-Clause" ]
null
null
null
lambdausb/boards/usbsniffer.py
zignig/lambdaUSB
70e01e9d705e4d18e145f5e3f50ff7216c24e101
[ "BSD-2-Clause" ]
null
null
null
lambdausb/boards/usbsniffer.py
zignig/lambdaUSB
70e01e9d705e4d18e145f5e3f50ff7216c24e101
[ "BSD-2-Clause" ]
null
null
null
from nmigen.build import * from nmigen.vendor.xilinx_7series import * __all__ = ["USBSnifferPlatform"] class USBSnifferPlatform(Xilinx7SeriesPlatform): device = "xc7a35t" package = "fgg484" speed = "2" default_clk = "clk100" resources = [ Resource("clk100", 0, Pins("J19", dir="i"), Cloc...
39.958333
113
0.52268
061ac6047c8f655f558e6d99d6b544ef851810ac
862
py
Python
tests/test_getitem.py
idfah/regenerator
933e690b122df86b1d4b8404a47ea227eb478f4c
[ "BSD-2-Clause" ]
3
2020-12-11T21:42:52.000Z
2021-05-27T16:50:12.000Z
tests/test_getitem.py
idfah/regenerator
933e690b122df86b1d4b8404a47ea227eb478f4c
[ "BSD-2-Clause" ]
null
null
null
tests/test_getitem.py
idfah/regenerator
933e690b122df86b1d4b8404a47ea227eb478f4c
[ "BSD-2-Clause" ]
1
2020-12-17T15:51:49.000Z
2020-12-17T15:51:49.000Z
import pytest from regenerator import Stream from .util import * def test_getitem_idx(list_stream): item = list_stream[3] assert item == 3 def test_negative_idx(list_stream): with pytest.raises(IndexError): list_stream[-1] def test_str_idx(list_stream): with pytest.raises(TypeError): ...
22.684211
57
0.729698
6cd9b1d1fb5f1a9e960259a8076e0efcce79a749
2,156
py
Python
userbot/utils/tools.py
syiibamir/syiibamir
6cab01d174671bb0f4233fd112ac025ec02a6e03
[ "Naumen", "Condor-1.1", "MS-PL" ]
6
2021-01-10T13:51:35.000Z
2022-02-28T20:25:55.000Z
userbot/utils/tools.py
INDOHACKER-XODE/ajib
053603a1ce8fa122e3b36318d94b0de7d8cb1e52
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2021-12-19T22:45:50.000Z
2021-12-19T22:45:50.000Z
userbot/utils/tools.py
INDOHACKER-XODE/ajib
053603a1ce8fa122e3b36318d94b0de7d8cb1e52
[ "Naumen", "Condor-1.1", "MS-PL" ]
68
2020-11-04T14:22:09.000Z
2022-03-07T14:46:37.000Z
# Copyright (C) 2020 Adek Maulana # # SPDX-License-Identifier: GPL-3.0-or-later # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
30.366197
72
0.597866
d7b7bad963f68e3d27f28b6289a6be7465093847
6,702
py
Python
apps/osis2/app/runner.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
null
null
null
apps/osis2/app/runner.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
apps/osis2/app/runner.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
from JumpScale import j from JumpScale.baselib import cmdutils import os import sys import swagger from eve import Eve from eve.utils import config from eve.render import send_response from eve_docs import eve_docs from eve_docs.config import get_cfg from eve_sqlalchemy import SQL as _SQL from eve_sqlalchemy.validatio...
35.648936
102
0.661892
a4642cb5fc4767704ba29ea59775725155344d8c
14,585
py
Python
analysis.py
malllabiisc/kg-geometry
d5b40d6795085109da5438cdc1d83d32fd5fc373
[ "Apache-2.0" ]
18
2018-07-31T06:33:45.000Z
2021-07-22T11:27:40.000Z
analysis.py
malllabiisc/kg-geometry
d5b40d6795085109da5438cdc1d83d32fd5fc373
[ "Apache-2.0" ]
3
2018-07-30T02:48:06.000Z
2021-05-03T07:17:48.000Z
analysis.py
malllabiisc/kg-geometry
d5b40d6795085109da5438cdc1d83d32fd5fc373
[ "Apache-2.0" ]
2
2018-07-01T08:53:06.000Z
2018-12-12T05:15:40.000Z
import sys import os import argparse import numpy as np from sklearn.decomposition import PCA from matplotlib import pyplot as plt from matplotlib.legend_handler import HandlerLine2D from sklearn.manifold import TSNE import scipy.stats as scistats from stats import Stats from model import Model from triples import T...
40.626741
188
0.571957
da992fb626ed291d1ec01872a703f73365cb16f3
25,110
py
Python
8 HOUSE PRICES/xgboost-lasso.py
MLVPRASAD/KaggleProjects
379e062cf58d83ff57a456552bb956df68381fdd
[ "MIT" ]
2
2020-01-25T08:31:14.000Z
2022-03-23T18:24:03.000Z
8 HOUSE PRICES/xgboost-lasso.py
MlvPrasadOfficial/KaggleNoteboooks_of_Projects
379e062cf58d83ff57a456552bb956df68381fdd
[ "MIT" ]
null
null
null
8 HOUSE PRICES/xgboost-lasso.py
MlvPrasadOfficial/KaggleNoteboooks_of_Projects
379e062cf58d83ff57a456552bb956df68381fdd
[ "MIT" ]
null
null
null
# This script creates a ton of features, then trains an XGBoost regressor # and a Lasso regressor, and combines their predictions. # # It borrows ideas from lots of other people's scripts, including: # https://www.kaggle.com/klyusba/house-prices-advanced-regression-techniques/lasso-model-for-regression-problem/notebook...
43.59375
128
0.635205
a33edce162858b9b84831f71fc35b312becb14f5
2,284
py
Python
violation/admin.py
adepeter/django-violations
92f6052a11594a66a7a963abb04cb17e00412bcc
[ "MIT" ]
1
2020-05-24T20:46:20.000Z
2020-05-24T20:46:20.000Z
violation/admin.py
adepeter/django-violations
92f6052a11594a66a7a963abb04cb17e00412bcc
[ "MIT" ]
null
null
null
violation/admin.py
adepeter/django-violations
92f6052a11594a66a7a963abb04cb17e00412bcc
[ "MIT" ]
null
null
null
from django.contrib import admin from violation.models import Rule, Violation class RuleViolationInline(admin.StackedInline): model = Rule.violations.through @admin.register(Rule) class RuleAdmin(admin.ModelAdmin): radio_fields = {'category': admin.HORIZONTAL} list_display = ['name', 'category', 'short...
25.377778
66
0.638354
f1e506906b5099a6485f9b906b2b1948ecda3e11
640
py
Python
setup.py
addiebarron/django-workers
e51d0b9ddae5c8617a06abe4e81c4901486c0077
[ "MIT" ]
18
2018-08-10T19:37:36.000Z
2021-08-06T07:20:37.000Z
setup.py
addiebarron/django-workers
e51d0b9ddae5c8617a06abe4e81c4901486c0077
[ "MIT" ]
12
2018-08-28T21:26:59.000Z
2021-06-10T20:46:57.000Z
setup.py
addiebarron/django-workers
e51d0b9ddae5c8617a06abe4e81c4901486c0077
[ "MIT" ]
12
2019-03-12T19:34:02.000Z
2021-12-15T23:03:08.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="django-workers", version="0.1.3", author="Gavin Vickery", author_email="gavin@geekforbrains.com", description="Simple background tasks for Django", long_description=long_description, ...
29.090909
58
0.676563
2b5de380162d9a3851d7be30e3348f44a2b05d79
4,232
py
Python
setup_requirements.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
setup_requirements.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
setup_requirements.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
33.322835
119
0.526938
3424750086fd5b2fcafc7dfc4457a16ae30cfa8f
1,032
py
Python
stocklist/fetch.py
MTI830PyTraders/pytrade
33ea3e756019c999e9c3d78fca89cd72addf6ab2
[ "BSD-3-Clause" ]
3
2017-03-08T15:42:26.000Z
2021-03-10T23:47:15.000Z
stocklist/fetch.py
fraka6/pytrade
8a94b6e1b3922dcba95067c03abbf45975878b33
[ "BSD-3-Clause" ]
15
2015-05-20T03:11:58.000Z
2018-03-30T23:42:18.000Z
stocklist/fetch.py
MTI830PyTraders/pytrade
33ea3e756019c999e9c3d78fca89cd72addf6ab2
[ "BSD-3-Clause" ]
7
2016-04-12T09:49:22.000Z
2021-03-10T23:47:19.000Z
from filters import Filter from parse import Parse import logging class Fetch(object): def fetch_stocks(self, params): ''' if params==all fetch all stocks get_all_categories''' filter = Filter() parser = Parse() stocklist = [] if params=='all': cats = filter.get_al...
27.891892
63
0.514535
d8157e51b11081c60c43654522e94afa9c5e7136
1,362
py
Python
dp_utils/dp_pca.py
tkgsn/P3GM
443550b7781b7ab3c920893923056a8faef44994
[ "MIT" ]
4
2020-11-25T08:59:12.000Z
2022-02-03T20:55:12.000Z
dp_utils/dp_pca.py
tkgsn/P3GM
443550b7781b7ab3c920893923056a8faef44994
[ "MIT" ]
1
2021-11-30T20:39:16.000Z
2021-11-30T20:39:16.000Z
dp_utils/dp_pca.py
tkgsn/P3GM
443550b7781b7ab3c920893923056a8faef44994
[ "MIT" ]
null
null
null
""" DP Principal Component Analysis """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Denis A. Engemann <denis-alexander.engemann@inria.fr> # Michael Eickenberg <michael.eickenberg@inria....
28.978723
84
0.641703
7c67ce045ac10f7e6bc8d07ec8f030eb0a522af4
2,062
py
Python
nipy/utils/environment.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
1
2015-08-22T16:14:45.000Z
2015-08-22T16:14:45.000Z
nipy/utils/environment.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
nipy/utils/environment.py
yarikoptic/NiPy-OLD
8759b598ac72d3b9df7414642c7a662ad9c55ece
[ "BSD-3-Clause" ]
null
null
null
''' Settings from the system environment relevant to NIPY ''' import os from os.path import join as pjoin def get_home_dir(): """Return the closest possible equivalent to a 'home' directory. The path may not exist; code using this routine should not expect the directory to exist. Parameters ---...
21.705263
71
0.613967
c5d1b03f6c0adfa14beb0d0872197de8417ac336
11,432
py
Python
homeassistant/components/seventeentrack/sensor.py
claret-srl/core
317068a3784648defadead1c2e6e8de29e20b696
[ "Apache-2.0" ]
null
null
null
homeassistant/components/seventeentrack/sensor.py
claret-srl/core
317068a3784648defadead1c2e6e8de29e20b696
[ "Apache-2.0" ]
null
null
null
homeassistant/components/seventeentrack/sensor.py
claret-srl/core
317068a3784648defadead1c2e6e8de29e20b696
[ "Apache-2.0" ]
null
null
null
"""Support for package tracking sensors from 17track.net.""" from datetime import timedelta import logging from py17track import Client as SeventeenTrackClient from py17track.errors import SeventeenTrackError import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homea...
32.022409
88
0.64127
c2214028c777c7c8ac00cc2de5f084bb9b743bd9
4,825
py
Python
setup.py
hubutui/cyvlfeat
a0cfe17b0cc6fe14a9270b50592b4e0b0ec8ed1c
[ "BSD-2-Clause" ]
null
null
null
setup.py
hubutui/cyvlfeat
a0cfe17b0cc6fe14a9270b50592b4e0b0ec8ed1c
[ "BSD-2-Clause" ]
null
null
null
setup.py
hubutui/cyvlfeat
a0cfe17b0cc6fe14a9270b50592b4e0b0ec8ed1c
[ "BSD-2-Clause" ]
null
null
null
import os import platform import site from setuptools import setup, find_packages, Extension SYS_PLATFORM = platform.system().lower() IS_LINUX = 'linux' in SYS_PLATFORM IS_OSX = 'darwin' == SYS_PLATFORM IS_WIN = 'windows' == SYS_PLATFORM # Get Numpy include path without importing it NUMPY_INC_PATHS = [os.path.join...
36.007463
99
0.652435
8e562f4d3eba41c27d28e287b68808ea546269fe
7,267
py
Python
scripts/star.py
jason-neal/Starfish
4ffa45e0190fb6f3262511d57d1a563e5ee711de
[ "BSD-3-Clause" ]
1
2017-07-10T00:06:36.000Z
2017-07-10T00:06:36.000Z
scripts/star.py
jason-neal/Starfish
4ffa45e0190fb6f3262511d57d1a563e5ee711de
[ "BSD-3-Clause" ]
null
null
null
scripts/star.py
jason-neal/Starfish
4ffa45e0190fb6f3262511d57d1a563e5ee711de
[ "BSD-3-Clause" ]
5
2016-06-11T09:48:16.000Z
2019-08-07T19:52:41.000Z
#!/usr/bin/env python # All of the argument parsing is done in the `parallel.py` module. import numpy as np import Starfish from Starfish import parallel from Starfish.parallel import args from Starfish.model import ThetaParam, PhiParam if args.generate: model = parallel.OptimizeTheta(debug=True) # Now that...
32.297778
145
0.619375
86fab12dd2d895fcd2409d3245c0f2c84d448542
349
py
Python
Universal_Asynchronous_Receiver_and_Tansmitter_Examples/clientB.py
yingshaoxo/Suicide-Squad
cadbd0d48e860a8747b59190fc67a5a114c3462b
[ "MIT" ]
4
2021-02-05T15:19:41.000Z
2021-04-29T23:13:54.000Z
Universal_Asynchronous_Receiver_and_Tansmitter_Examples/clientB.py
yingshaoxo/Suicide-Squad
cadbd0d48e860a8747b59190fc67a5a114c3462b
[ "MIT" ]
null
null
null
Universal_Asynchronous_Receiver_and_Tansmitter_Examples/clientB.py
yingshaoxo/Suicide-Squad
cadbd0d48e860a8747b59190fc67a5a114c3462b
[ "MIT" ]
null
null
null
from UART_Python_Lib import * my_transmission = MyTransmissionProtocol("/dev/ttyUSB1") my_transmission.write_json({ "me": 21, "you": 21, "someone": 100 }) print(my_transmission.read_safely()) i = 255 while 1: my_transmission.write_safely(hex_to_bytes(text_to_hex(str(i)+"yingshaoxo"))) i -= 1 ...
17.45
80
0.661891
25d27a0474ecc75e25717b71bfe85249479a78e8
171
py
Python
src/drctest/models.py
appstore-zencore/django-redis-counter
9f9d35293e7fde8429ea6f431b76976be78be6e3
[ "MIT" ]
4
2018-03-15T12:47:15.000Z
2019-09-04T08:36:40.000Z
src/drctest/models.py
appstore-zencore/django-redis-counter
9f9d35293e7fde8429ea6f431b76976be78be6e3
[ "MIT" ]
1
2018-03-21T01:12:39.000Z
2018-03-21T01:12:39.000Z
src/drctest/models.py
appstore-zencore/django-redis-counter
9f9d35293e7fde8429ea6f431b76976be78be6e3
[ "MIT" ]
null
null
null
from django.db import models from drc.models import Counter class Page(models.Model): title = models.CharField(max_length=32) class PageCounter(Counter): pass
15.545455
43
0.754386
19708d5183994630b437024c7c0bcebffb70fd11
4,793
py
Python
warps/resources/filter_bank.py
oscillating-gate/eurorack
35bf03aa35b01a7a4a9b0a0ca2898677cd3a9f6a
[ "MIT" ]
233
2018-07-02T16:49:36.000Z
2022-02-27T21:45:39.000Z
warps/resources/filter_bank.py
oscillating-gate/eurorack
35bf03aa35b01a7a4a9b0a0ca2898677cd3a9f6a
[ "MIT" ]
24
2018-07-09T11:32:15.000Z
2022-01-07T01:45:43.000Z
warps/resources/filter_bank.py
oscillating-gate/eurorack
35bf03aa35b01a7a4a9b0a0ca2898677cd3a9f6a
[ "MIT" ]
24
2018-07-14T21:55:30.000Z
2021-05-04T04:20:34.000Z
#!/usr/bin/python2.5 # # Copyright 2014 Olivier Gillet. # # Author: Olivier Gillet (ol.gillet@gmail.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
29.770186
79
0.634258
b9f488f8d1485f277963c19eb703f013f507f2c9
1,200
py
Python
tests/compiler/test_library_parsing.py
pretl/ALIGN-public
4b03042d9e96fa669740427842b0bf268b0c9a86
[ "BSD-3-Clause" ]
null
null
null
tests/compiler/test_library_parsing.py
pretl/ALIGN-public
4b03042d9e96fa669740427842b0bf268b0c9a86
[ "BSD-3-Clause" ]
null
null
null
tests/compiler/test_library_parsing.py
pretl/ALIGN-public
4b03042d9e96fa669740427842b0bf268b0c9a86
[ "BSD-3-Clause" ]
null
null
null
from align.schema.types import set_context import pathlib import pytest from align.schema.parser import SpiceParser from align.schema import constraint @pytest.fixture def library(): parser = SpiceParser() align_home = pathlib.Path(__file__).resolve().parent.parent / "files" basic_lib_path = align_home / ...
31.578947
75
0.6975
fb914d39703bb87cf046e118d5f4e0298d33b622
8,536
py
Python
docusign_esign/models/bulk_envelopes_response.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/bulk_envelopes_response.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
docusign_esign/models/bulk_envelopes_response.py
hunk/docusign-python-client
a643c42c1236715e74eef6fc279a1b29da1b5455
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from p...
31.498155
179
0.624414
148ae943001cfe7c151b34e00ec788a9998d5ff8
1,710
py
Python
es_example/es_notification_listener/tests/test_es_notification_listener.py
force-h2020/force-bdss-plugin-enginsoft-toy-model
f22c0ad3cc45c3b5a7f9c4fd0b20549d7dfc9aeb
[ "MIT" ]
null
null
null
es_example/es_notification_listener/tests/test_es_notification_listener.py
force-h2020/force-bdss-plugin-enginsoft-toy-model
f22c0ad3cc45c3b5a7f9c4fd0b20549d7dfc9aeb
[ "MIT" ]
null
null
null
es_example/es_notification_listener/tests/test_es_notification_listener.py
force-h2020/force-bdss-plugin-enginsoft-toy-model
f22c0ad3cc45c3b5a7f9c4fd0b20549d7dfc9aeb
[ "MIT" ]
null
null
null
import unittest from es_example.tests.utils import captured_output from unittest import mock from force_bdss.api import ( MCOStartEvent, MCOProgressEvent, MCOFinishEvent, DataValue) from es_example.es_notification_listener\ .es_notification_listener_model import ( ESNotificationListenerMo...
35.625
76
0.624561
f66ac6bc02abd0a186006657bf70af3b0cf8631b
6,504
py
Python
ceed/tests/test_app/examples/stages.py
cplab/ceed
7bae74361a67a6ff3c447b63adb4c7c57839b339
[ "MIT" ]
1
2020-08-05T15:31:06.000Z
2020-08-05T15:31:06.000Z
ceed/tests/test_app/examples/stages.py
cplab/ceed
7bae74361a67a6ff3c447b63adb4c7c57839b339
[ "MIT" ]
null
null
null
ceed/tests/test_app/examples/stages.py
cplab/ceed
7bae74361a67a6ff3c447b63adb4c7c57839b339
[ "MIT" ]
null
null
null
from typing import List, Tuple, Union from ceed.tests.ceed_app import CeedTestApp from ceed.stage import CeedStage, StageFactoryBase from ceed.shape import CeedShape, CeedShapeGroup from .shapes import Shape from ceed.function import FuncBase, FuncGroup, FunctionFactoryBase from .funcs import ConstFunctionF1, LinearFu...
27.443038
78
0.65698
412fe60a4a3a4f6db47e6674ca51e79381eac31e
17,887
py
Python
cinder/tests/unit/volume/drivers/dell_emc/vnx/test_client.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/vnx/test_client.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/dell_emc/vnx/test_client.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 EMC Corporation. # 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...
37.34238
77
0.661598
138a8dd84efbfea24e6297d36330d4e235e9ce20
267
py
Python
tests/examine_model.py
eeris-nilm/eeris_nilm
57e17970234a22c355d6e037bcb58fc3a67dc1f1
[ "Apache-2.0" ]
8
2020-06-17T16:31:43.000Z
2021-07-01T02:25:27.000Z
tests/examine_model.py
eeris-nilm/eeris_nilm
57e17970234a22c355d6e037bcb58fc3a67dc1f1
[ "Apache-2.0" ]
1
2021-04-29T12:59:12.000Z
2021-04-29T12:59:12.000Z
tests/examine_model.py
eeris-nilm/eeris_nilm
57e17970234a22c355d6e037bcb58fc3a67dc1f1
[ "Apache-2.0" ]
null
null
null
import dill import pymongo from eeris_nilm.algorithms import livehart mclient = pymongo.MongoClient("mongodb://localhost:27017") mdb = mclient['eeris'] inst_doc = mdb.models.find_one({"meterId": "5e05d5c83e442d4f78db036f"}) model = dill.loads(inst_doc['modelHart'])
29.666667
71
0.782772
c4ec0e9259a4f03ae940a5f00ed55ffdbe18a231
27
py
Python
src/__init__.py
ScienceStacks/FittingSurface
7994995c7155817ea4334f10dcd21e691cee46da
[ "MIT" ]
null
null
null
src/__init__.py
ScienceStacks/FittingSurface
7994995c7155817ea4334f10dcd21e691cee46da
[ "MIT" ]
null
null
null
src/__init__.py
ScienceStacks/FittingSurface
7994995c7155817ea4334f10dcd21e691cee46da
[ "MIT" ]
null
null
null
import src.constants as cn
13.5
26
0.814815
07da09049c546bf94182e8d05a5f2b4335513b38
202,277
py
Python
tensorflow/python/keras/backend.py
alanpurple/tensorflow
ddf538bf79cc5cf575cad2aa5b3b8a6995e378b6
[ "Apache-2.0" ]
4
2020-06-28T08:25:36.000Z
2021-08-12T12:41:34.000Z
tensorflow/python/keras/backend.py
alanpurple/tensorflow
ddf538bf79cc5cf575cad2aa5b3b8a6995e378b6
[ "Apache-2.0" ]
2
2021-08-25T16:12:24.000Z
2022-02-10T02:04:13.000Z
tensorflow/python/keras/backend.py
alanpurple/tensorflow
ddf538bf79cc5cf575cad2aa5b3b8a6995e378b6
[ "Apache-2.0" ]
4
2019-11-28T12:18:07.000Z
2021-08-01T16:12:17.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...
31.561398
112
0.673438
9057cf294c414b3842f8a6e2f3171f784e30cffc
2,828
py
Python
MATH-2305-Final_Project-Fall-2020/functions.py
tranmike270/Math-2305-Final-Project
2651800661c963b7124cea8395d0783dce923bed
[ "Unlicense" ]
null
null
null
MATH-2305-Final_Project-Fall-2020/functions.py
tranmike270/Math-2305-Final-Project
2651800661c963b7124cea8395d0783dce923bed
[ "Unlicense" ]
null
null
null
MATH-2305-Final_Project-Fall-2020/functions.py
tranmike270/Math-2305-Final-Project
2651800661c963b7124cea8395d0783dce923bed
[ "Unlicense" ]
null
null
null
import networkx as nx def V(G): """ Returns a set of verticies on a graph Parameters ---------- G = A networkx graph. Returns ------- set of vertices belonging to graph 'G' """ return set(G.nodes()) def E(G): """ Returns a set of edges on a graph Paramete...
20.642336
82
0.547383
60be2b0daf1c3f10fc3761354835fdcad89075ea
19,091
py
Python
lib/visual_envs.py
benlansdell/Meta-RL
c7320bb3ffa8e86ad5d672d10267cc7f4813bdcb
[ "MIT" ]
6
2020-03-31T02:10:25.000Z
2022-01-06T19:27:16.000Z
lib/visual_envs.py
benlansdell/Meta-RL
c7320bb3ffa8e86ad5d672d10267cc7f4813bdcb
[ "MIT" ]
null
null
null
lib/visual_envs.py
benlansdell/Meta-RL
c7320bb3ffa8e86ad5d672d10267cc7f4813bdcb
[ "MIT" ]
null
null
null
import numpy as np import random import itertools import scipy.ndimage import scipy.misc import matplotlib.pyplot as plt from numpy.random import rand from scipy.ndimage import gaussian_filter class gameOb(): def __init__(self,coordinates,size,color,reward,name): self.x = coordinates[0] self.y = c...
36.7842
149
0.550993
07f2803100ebfd53d93738353ac52652bf9e72ae
1,735
py
Python
tests/test_class_oelint_file_underscores.py
HerrMuellerluedenscheid/oelint-adv
90ad0a9e385d863af85869f06750aa5d2440e986
[ "BSD-2-Clause" ]
22
2019-06-10T00:40:07.000Z
2022-01-18T19:59:47.000Z
tests/test_class_oelint_file_underscores.py
HerrMuellerluedenscheid/oelint-adv
90ad0a9e385d863af85869f06750aa5d2440e986
[ "BSD-2-Clause" ]
274
2019-03-07T06:00:27.000Z
2022-03-27T10:22:10.000Z
tests/test_class_oelint_file_underscores.py
HerrMuellerluedenscheid/oelint-adv
90ad0a9e385d863af85869f06750aa5d2440e986
[ "BSD-2-Clause" ]
17
2019-08-24T23:04:39.000Z
2021-11-02T19:18:19.000Z
import os import sys import pytest sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from base import TestBaseClass class TestClassOelintFileUnderscores(TestBaseClass): @pytest.mark.parametrize('id', ['oelint.file.underscores']) @pytest.mark.parametrize('occurrence', [1]) @pytest.mark.para...
22.24359
67
0.410375
918cbf805cc990757fe75d5c5c6f15bf932a44c7
1,061
py
Python
guisetup.py
ahmadbeirkdar/Simple-Library-Software
ecf63cad501aa5a6ae7b4a624db22e1c92f92bb9
[ "MIT" ]
2
2020-03-27T13:56:26.000Z
2021-04-21T04:03:49.000Z
guisetup.py
ahmadbeirkdar/Library-Management-Software
ecf63cad501aa5a6ae7b4a624db22e1c92f92bb9
[ "MIT" ]
null
null
null
guisetup.py
ahmadbeirkdar/Library-Management-Software
ecf63cad501aa5a6ae7b4a624db22e1c92f92bb9
[ "MIT" ]
null
null
null
import sys sys.path.append('gui') from mainwindow import * from userdialog import * from classes import * from datafunc import * from bookadd import * filename_book = "books.csv" filename_person = "users.csv" filename_data = "data.csv" filename = "data.csv" duetime = 14 a = parse_data(filename_book, filename_person,...
20.018868
69
0.68426
be4760a2f55d0f90bc5eb3f92fe63439f54a616b
233,293
py
Python
tests/app/main/test_frameworks.py
alphagov-mirror/digitalmarketplace-supplier-frontend
349af2ec867f784c524a6a1c42b069f6d302e513
[ "MIT" ]
null
null
null
tests/app/main/test_frameworks.py
alphagov-mirror/digitalmarketplace-supplier-frontend
349af2ec867f784c524a6a1c42b069f6d302e513
[ "MIT" ]
null
null
null
tests/app/main/test_frameworks.py
alphagov-mirror/digitalmarketplace-supplier-frontend
349af2ec867f784c524a6a1c42b069f6d302e513
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import mock from collections import OrderedDict from datetime import datetime from io import BytesIO from itertools import chain from urllib.parse import urljoin from freezegun import freeze_time from lxml import html import pytest from werkzeug.datastructures import MultiDict from dmapiclient...
45.098202
168
0.598616
afae8ddfc5d7239f7e7f011a3683064873f351c5
224
py
Python
Exercises/W07D05_Exercise_01_Django/polls/urls.py
Roger-Takeshita/Software_Engineer
ec647bb969aa02453dae1884b5787d2045f7b4e2
[ "MIT" ]
2
2019-12-27T06:15:26.000Z
2020-05-21T17:37:12.000Z
Exercises/W07D05_Exercise_01_Django/polls/urls.py
Roger-Takeshita/Bootcamp-Software-Engineer
ec647bb969aa02453dae1884b5787d2045f7b4e2
[ "MIT" ]
null
null
null
Exercises/W07D05_Exercise_01_Django/polls/urls.py
Roger-Takeshita/Bootcamp-Software-Engineer
ec647bb969aa02453dae1884b5787d2045f7b4e2
[ "MIT" ]
null
null
null
from django.urls import path from . import views # current folder that i am in, i am going to import my view modules urlpatterns = [ path('', views.index, name='index') # we gave a name to our routes as 'index' ]
37.333333
93
0.683036