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
b8db2c52c5c18cdfa22b37a6b538f27da2efa22c
127,159
py
Python
mrcnn/model.py
ashvegeta/Mask-R-CNN
46921555869675e2518cff44d3861ad98f34cb37
[ "MIT" ]
null
null
null
mrcnn/model.py
ashvegeta/Mask-R-CNN
46921555869675e2518cff44d3861ad98f34cb37
[ "MIT" ]
null
null
null
mrcnn/model.py
ashvegeta/Mask-R-CNN
46921555869675e2518cff44d3861ad98f34cb37
[ "MIT" ]
null
null
null
""" Mask R-CNN The main Mask R-CNN model implementation. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import os os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import datetime import re import math from collections import OrderedDict import mul...
44.290839
115
0.613106
707383a933ad226a97f1a88b93f375b0163066db
3,203
py
Python
dedupsqlfs/db/mysql/table/hash_sizes.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
22
2015-04-09T09:00:00.000Z
2022-03-23T00:16:04.000Z
dedupsqlfs/db/mysql/table/hash_sizes.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
119
2015-02-11T21:39:27.000Z
2021-07-27T23:04:49.000Z
dedupsqlfs/db/mysql/table/hash_sizes.py
tabulon-ext/dedupsqlfs
9dfbed17450e7f2a499a7381e0368d08ae3c700d
[ "MIT" ]
7
2016-03-16T11:53:45.000Z
2022-02-24T13:47:31.000Z
# -*- coding: utf8 -*- __author__ = 'sergey' from dedupsqlfs.db.mysql.table import Table class TableHashSizes( Table ): _table_name = "hash_sizes" def create( self ): cur = self.getCursor() # Create table cur.execute( "CREATE TABLE IF NOT EXISTS `%s` (" % self.getName()...
26.915966
93
0.491727
8686a23127283b6e792f75fef2a5d762de36176d
2,966
py
Python
MerakiGuestPW.py
donthor/MerakiGuestPW
1ecfd89a4e7681c11b4fe05dfdb4548635a97086
[ "BSD-3-Clause" ]
1
2021-06-14T14:37:52.000Z
2021-06-14T14:37:52.000Z
MerakiGuestPW.py
donthor/MerakiGuestPW
1ecfd89a4e7681c11b4fe05dfdb4548635a97086
[ "BSD-3-Clause" ]
null
null
null
MerakiGuestPW.py
donthor/MerakiGuestPW
1ecfd89a4e7681c11b4fe05dfdb4548635a97086
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python3 import requests import json import os import click import random import string import sys meraki_key = os.environ.get('MERAKI_API_KEY') merakinetwork = os.environ.get('MY_MERAKI_NETWORK') webexBearerToken = os.environ.get('WEBEX_BEARER_TOKEN') roomID = os.environ.get('WEBEX_PAROCKHO_BOT') bas...
38.519481
117
0.624073
bfbff30ac88dd01af6ec157d3740fa88f964783a
2,766
py
Python
examples/laserScanningMicroscope.py
gregsadetsky/RayTracing
3d11ed91014a47bddc797495ca2af059005e810d
[ "MIT" ]
null
null
null
examples/laserScanningMicroscope.py
gregsadetsky/RayTracing
3d11ed91014a47bddc797495ca2af059005e810d
[ "MIT" ]
null
null
null
examples/laserScanningMicroscope.py
gregsadetsky/RayTracing
3d11ed91014a47bddc797495ca2af059005e810d
[ "MIT" ]
null
null
null
import envexamples from raytracing import * import matplotlib.pyplot as plt import numpy as np """ In a laser scanning system, the scanning components define the covered field-of-view (FOV) at the sample plane. Here, we show a one-dimensional example with a polygonal mirror of 36 facets that rotates rapidly to scan...
28.8125
81
0.670644
d548bc779d8e42b407e3f34d848185eec318cd18
6,143
py
Python
comptox_ai/scripts/make_tabular_dataset.py
van-truong/comptox_ai
393b05c617822e30f54c967ef07ec53ba4b09688
[ "MIT" ]
6
2020-03-09T17:27:34.000Z
2022-03-15T15:37:15.000Z
comptox_ai/scripts/make_tabular_dataset.py
van-truong/comptox_ai
393b05c617822e30f54c967ef07ec53ba4b09688
[ "MIT" ]
11
2021-05-04T18:46:51.000Z
2022-03-01T01:06:49.000Z
comptox_ai/scripts/make_tabular_dataset.py
van-truong/comptox_ai
393b05c617822e30f54c967ef07ec53ba4b09688
[ "MIT" ]
2
2020-02-23T14:11:10.000Z
2021-10-04T18:27:58.000Z
#!/usr/bin/env python3 """ make_tabular_dataset.py Standalone Python job to generate a tabular dataset for predictive toxicology. Briefly, the user specifies a node type and node features, as well as a target feature or relationship. This returns a file that is suitable for QSAR or similar analyses. The algorithm f...
35.304598
105
0.740843
a6955237a979d7b679ae37164f1e054c247c6940
3,775
py
Python
indico/modules/events/persons/util_test.py
salevajo/indico
6f9cbabc20d1641caea907099388ae2b04965cf8
[ "MIT" ]
1
2021-12-27T17:51:27.000Z
2021-12-27T17:51:27.000Z
indico/modules/events/persons/util_test.py
salevajo/indico
6f9cbabc20d1641caea907099388ae2b04965cf8
[ "MIT" ]
5
2021-04-08T19:26:47.000Z
2022-01-24T16:30:18.000Z
indico/modules/events/persons/util_test.py
salevajo/indico
6f9cbabc20d1641caea907099388ae2b04965cf8
[ "MIT" ]
2
2019-02-24T17:29:10.000Z
2021-04-08T19:23:27.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import pytest from indico.modules.events.persons.util import create_event_person, get_event_person, get_e...
31.198347
111
0.664901
7a4eaa2838241d97035cb71f36eee3cc992ca115
2,698
py
Python
vision.py
cemakd/makeathon-autonomous-vehicle
480e46d5e351c02ead1b5980f8c421b57c2f39fd
[ "MIT" ]
null
null
null
vision.py
cemakd/makeathon-autonomous-vehicle
480e46d5e351c02ead1b5980f8c421b57c2f39fd
[ "MIT" ]
null
null
null
vision.py
cemakd/makeathon-autonomous-vehicle
480e46d5e351c02ead1b5980f8c421b57c2f39fd
[ "MIT" ]
null
null
null
''' Makeathon National Instruments Autonomous Vehicle Challenge Visual Traffic Signal and Sign Recognition ''' #!/usr/bin/env python import sys import time from array import array import numpy as np import argparse import imutils import sys sys.path.append('/usr/local/lib/python2.7/site-packages') import cv2 import...
22.483333
139
0.742031
bf2d6dd9bbfcdc36dc39e0b3f451cb3333a04eb5
100
py
Python
tweet_display/apps.py
aashaka/twitter-analyser
313ea4e342d100dac78b0fd07822cac7457450f9
[ "MIT" ]
null
null
null
tweet_display/apps.py
aashaka/twitter-analyser
313ea4e342d100dac78b0fd07822cac7457450f9
[ "MIT" ]
null
null
null
tweet_display/apps.py
aashaka/twitter-analyser
313ea4e342d100dac78b0fd07822cac7457450f9
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TweetDisplayConfig(AppConfig): name = 'tweet_display'
16.666667
36
0.78
f6c4edf923f89dd360215125bc4ed2b2bb20d9bc
9,731
py
Python
src/pandas_transformers/transformers.py
NedimB911/pandas-transformers
9f5f29c9aebe103b9ca81889d51b144ea21ee180
[ "MIT" ]
null
null
null
src/pandas_transformers/transformers.py
NedimB911/pandas-transformers
9f5f29c9aebe103b9ca81889d51b144ea21ee180
[ "MIT" ]
null
null
null
src/pandas_transformers/transformers.py
NedimB911/pandas-transformers
9f5f29c9aebe103b9ca81889d51b144ea21ee180
[ "MIT" ]
null
null
null
# pylint: disable=missing-function-docstring # pylint: disable=arguments-differ # pylint: disable=unused-argument from typing import List, Iterable from sklearn.utils.validation import check_is_fitted from sklearn.base import TransformerMixin from sklearn.feature_extraction.text import TfidfVectorizer import pandas ...
31.089457
87
0.611653
4f7febed329bdfd42b8e3b29ac1840a4a010dc3f
351
py
Python
src/airfly/_vendor/airflow/providers/apache/hive/transfers/vertica_to_hive.py
ryanchao2012/airfly
230ddd88885defc67485fa0c51f66c4a67ae98a9
[ "MIT" ]
7
2021-09-27T11:38:48.000Z
2022-02-01T06:06:24.000Z
src/airfly/_vendor/airflow/providers/apache/hive/transfers/vertica_to_hive.py
ryanchao2012/airfly
230ddd88885defc67485fa0c51f66c4a67ae98a9
[ "MIT" ]
null
null
null
src/airfly/_vendor/airflow/providers/apache/hive/transfers/vertica_to_hive.py
ryanchao2012/airfly
230ddd88885defc67485fa0c51f66c4a67ae98a9
[ "MIT" ]
null
null
null
# Auto generated by 'inv collect-airflow' from airfly._vendor.airflow.models.baseoperator import BaseOperator class VerticaToHiveOperator(BaseOperator): sql: "_empty" hive_table: "_empty" create: "_empty" recreate: "_empty" partition: "_empty" delimiter: "_empty" vertica_conn_id: "_empty" ...
25.071429
67
0.723647
50fae1f0b12d2448f5766a0c02738d794ad928e9
16,638
py
Python
dataset/tiny_vid.py
pengzhiliang/object-localization
a1472b69e33af5be3aea0476f9f467c3994be4d4
[ "MIT" ]
3
2019-03-29T07:41:00.000Z
2021-08-15T06:48:57.000Z
dataset/tiny_vid.py
pengzhiliang/object-localization
a1472b69e33af5be3aea0476f9f467c3994be4d4
[ "MIT" ]
null
null
null
dataset/tiny_vid.py
pengzhiliang/object-localization
a1472b69e33af5be3aea0476f9f467c3994be4d4
[ "MIT" ]
3
2019-09-20T03:17:26.000Z
2021-08-15T06:48:58.000Z
#-*-coding:utf-8-*- ''' Created on Oct 29,2018 @author: pengzhiliang ''' from __future__ import print_function import torch,os,sys,random,cv2 import numpy as np from PIL import Image,ImageFont,ImageDraw from matplotlib import pyplot as plt from encoder import DataEncoder from torch.utils import data from torchvision i...
36.169565
130
0.527888
8d4d8b72d469e693a8dc373e1611aa8109966b9c
3,652
py
Python
dispatcher/qube.py
plinecom/JobManager
ce2c85fa740d5dce2d582e694bb3adc9176101d7
[ "MIT" ]
null
null
null
dispatcher/qube.py
plinecom/JobManager
ce2c85fa740d5dce2d582e694bb3adc9176101d7
[ "MIT" ]
null
null
null
dispatcher/qube.py
plinecom/JobManager
ce2c85fa740d5dce2d582e694bb3adc9176101d7
[ "MIT" ]
null
null
null
import abstract import subprocess import xml.etree.ElementTree class Qube(abstract.DispatcherBase): def __init__(self): abstract.DispatcherBase.__init__(self) class Qube6(Qube): def __init__(self, configdict): Qube.__init__(self) print configdict self._configdict = configdict...
37.265306
407
0.588719
576044306c647959738d6a9eab632407e88a3740
1,251
py
Python
src/health/admin.py
kensonman/health
d2b54faa2f6b6c7ce1a21ca64622737739797c66
[ "Apache-2.0" ]
null
null
null
src/health/admin.py
kensonman/health
d2b54faa2f6b6c7ce1a21ca64622737739797c66
[ "Apache-2.0" ]
null
null
null
src/health/admin.py
kensonman/health
d2b54faa2f6b6c7ce1a21ca64622737739797c66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # File: health/admin.py # Date: 2019-03-04 20:52 # Author: Kenson Man <kenson@kenson.idv.hk> # Desc: Define the admin-tools for the health project; from django.contrib import admin from django.utils.translation import gettext_lazy as _ from .models import * @admi...
32.076923
89
0.709832
126d2f097f5d88423eb0290e061608d2dc0ad56f
21,850
py
Python
heat/tests/openstack/aodh/test_gnocchi_alarm.py
grebennikov/heat1
6a11bd0b5984c8f880d1a24ed324620020032b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/openstack/aodh/test_gnocchi_alarm.py
grebennikov/heat1
6a11bd0b5984c8f880d1a24ed324620020032b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/openstack/aodh/test_gnocchi_alarm.py
grebennikov/heat1
6a11bd0b5984c8f880d1a24ed324620020032b5a
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
39.017857
79
0.585538
e8631ada3867bf61e8ad20aa120af6ab2af76242
659
py
Python
modules/common/age_filter.py
BurraAbhishek/VirtualElections_v2
db95f58d09ee5ed9755a3910aebcbfb48302b04e
[ "Apache-2.0" ]
1
2022-01-30T19:55:47.000Z
2022-01-30T19:55:47.000Z
modules/common/age_filter.py
BurraAbhishek/VirtualElections_v2
db95f58d09ee5ed9755a3910aebcbfb48302b04e
[ "Apache-2.0" ]
null
null
null
modules/common/age_filter.py
BurraAbhishek/VirtualElections_v2
db95f58d09ee5ed9755a3910aebcbfb48302b04e
[ "Apache-2.0" ]
null
null
null
def user_age_filter(age: int, setting: dict) -> bool: if not setting["boolRequired"]: return True elif setting["minAge"] <= 0 and setting["maxAge"] >= 100: return True else: if setting["minAge"] <= 0: if age <= setting["maxAge"]: return True el...
29.954545
61
0.46434
eca389721a0b959b621e2bb557f742f17f735794
3,764
py
Python
devlib/utils/serial_port.py
valschneider/devlib
cafc0a4bc0de956bc80a97bbf478aa79221e5257
[ "Apache-2.0" ]
null
null
null
devlib/utils/serial_port.py
valschneider/devlib
cafc0a4bc0de956bc80a97bbf478aa79221e5257
[ "Apache-2.0" ]
null
null
null
devlib/utils/serial_port.py
valschneider/devlib
cafc0a4bc0de956bc80a97bbf478aa79221e5257
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
30.852459
98
0.691552
27424bf8c8a7b8fd48477c1dc460d36c51e03513
20,604
py
Python
tests/test_cloudformation/test_cloudformation_stack_crud.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
1
2019-10-23T02:58:29.000Z
2019-10-23T02:58:29.000Z
tests/test_cloudformation/test_cloudformation_stack_crud.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
2
2021-03-31T20:15:51.000Z
2021-12-13T20:50:52.000Z
tests/test_cloudformation/test_cloudformation_stack_crud.py
harveywi/moto
3a5d857a60c3a2d140ed2c8adfe8dcaf71a4cac8
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import json import boto import boto.s3 import boto.s3.key import boto.cloudformation from boto.exception import BotoServerError import sure # noqa # Ensure 'assert_raises' context manager support for Python 2.6 import tests.backport_assert_raises # noqa from nose.to...
30.434269
107
0.592118
12a3ed4de4ebd1b11a9391998dea31bfa12159ec
3,412
py
Python
app/app/settings.py
bigmaho/recipe-app-api
835fcc457474d49544455407d0866bf0d29517cd
[ "MIT" ]
null
null
null
app/app/settings.py
bigmaho/recipe-app-api
835fcc457474d49544455407d0866bf0d29517cd
[ "MIT" ]
null
null
null
app/app/settings.py
bigmaho/recipe-app-api
835fcc457474d49544455407d0866bf0d29517cd
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
25.274074
91
0.684642
c4d4ce780be2fa5a2617874ddb608e41edf70c36
10,679
py
Python
tensorflow/python/kernel_tests/dynamic_stitch_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/kernel_tests/dynamic_stitch_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/dynamic_stitch_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.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...
39.117216
80
0.62459
cb8617c6015c3c5b01f17e7a53d5e728843f42f0
617
py
Python
exercicio103.py
juniooor/Exercicios-python
aed87da4f93d0e6083b1a8c3af4081a028f145de
[ "MIT" ]
null
null
null
exercicio103.py
juniooor/Exercicios-python
aed87da4f93d0e6083b1a8c3af4081a028f145de
[ "MIT" ]
null
null
null
exercicio103.py
juniooor/Exercicios-python
aed87da4f93d0e6083b1a8c3af4081a028f145de
[ "MIT" ]
null
null
null
#Faça um programa com uma função chamada somaImposto. A função possui dois parâmetros formais: taxaImposto, que é a quantia de imposto sobre vendas expressa em porcentagem e custo, que é o custo de um item antes do imposto. A função “altera” o valor de custo para incluir o imposto sobre vendas. print('-----DESAFIO 103-...
44.071429
295
0.73906
0ed8bd55456c710ea2d7e025552a71e1556b3d37
1,225
py
Python
server/view/auth/signUp.py
DSMFOREST/Forest.NewBackend
7bfb8e18660af00ef45a6453d120b72446d2eff0
[ "MIT" ]
null
null
null
server/view/auth/signUp.py
DSMFOREST/Forest.NewBackend
7bfb8e18660af00ef45a6453d120b72446d2eff0
[ "MIT" ]
null
null
null
server/view/auth/signUp.py
DSMFOREST/Forest.NewBackend
7bfb8e18660af00ef45a6453d120b72446d2eff0
[ "MIT" ]
null
null
null
import random from flask import request, Response, url_for, render_template from flasgger import swag_from from flask_restful import Resource from view import send_email from view.auth.confirm import Confirm from docs.auth import SIGN_UP_POST from model.user import UserModel class SignUp(Resource): @swag_from(...
27.840909
87
0.570612
9403b60c56f4651c882f09e50818ba3b281951e8
83
py
Python
cicl/apps.py
chitzuchang/CICL
561e647e8651a55b64f861036f1c031e24b58f1c
[ "MIT" ]
1
2021-07-07T20:15:37.000Z
2021-07-07T20:15:37.000Z
cicl/apps.py
chitzuchang/CICL
561e647e8651a55b64f861036f1c031e24b58f1c
[ "MIT" ]
null
null
null
cicl/apps.py
chitzuchang/CICL
561e647e8651a55b64f861036f1c031e24b58f1c
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CICLConfig(AppConfig): name = "cicl"
13.833333
33
0.73494
64e683d132bf109720e6c710637d443d111fe2c9
3,232
bzl
Python
python/pip.bzl
Cecilwang/rules_python
9e027001f7821aafa082a8c06e7c672342c429b9
[ "Apache-2.0" ]
null
null
null
python/pip.bzl
Cecilwang/rules_python
9e027001f7821aafa082a8c06e7c672342c429b9
[ "Apache-2.0" ]
null
null
null
python/pip.bzl
Cecilwang/rules_python
9e027001f7821aafa082a8c06e7c672342c429b9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel 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 applicable la...
29.651376
80
0.6612
31c103ee14a5d9be16e6ad38842a4987cb8868d5
602
py
Python
notification/notifier/slack.py
gueux/openduty
442a9a358f06408f27149c5cd311e51859ed7bc0
[ "MIT" ]
595
2015-01-04T15:34:04.000Z
2022-01-21T14:13:32.000Z
notification/notifier/slack.py
gueux/openduty
442a9a358f06408f27149c5cd311e51859ed7bc0
[ "MIT" ]
65
2015-01-02T01:57:37.000Z
2019-01-28T12:18:12.000Z
notification/notifier/slack.py
gueux/openduty
442a9a358f06408f27149c5cd311e51859ed7bc0
[ "MIT" ]
214
2015-01-03T20:48:55.000Z
2022-03-22T09:18:12.000Z
from slacker import Slacker class SlackNotifier: def __init__(self, config): self.__config = config def notify(self, notification): slack = Slacker(self.__config['apikey']) response = slack.chat.post_message(notification.user_to_notify.profile.slack_room_name, notification.message...
37.625
146
0.641196
91b7fc25bf5b20af3458adc23d73def8fc869db5
7,124
py
Python
philbinss/flipflops.py
martinohanlon/PhilbinSS
994284fdca7c5ee0eba795ce045415e5dc6d7a00
[ "MIT" ]
4
2017-05-27T21:39:07.000Z
2020-12-20T13:21:34.000Z
philbinss/flipflops.py
martinohanlon/PhilbinSS
994284fdca7c5ee0eba795ce045415e5dc6d7a00
[ "MIT" ]
5
2017-05-24T10:46:45.000Z
2017-05-24T18:12:08.000Z
philbinss/flipflops.py
martinohanlon/PhilbinSS
994284fdca7c5ee0eba795ce045415e5dc6d7a00
[ "MIT" ]
null
null
null
from interfaces import Interface from logicgates import Nor, And, Not, Or, Nand from components import Split from primitives import Cathode from mixins import InputSetMixin, InputResetMixin, InputDMixin, InputJMixin, InputKMixin, InputClockMixin, OutputQ_Mixin, OutputQMixin from mixins import InputAMixin, InputBMi...
27.505792
135
0.569905
d27ed7c0c049247ff4b361a42b854e6d8097f890
3,481
py
Python
WebUtils/Tests/TestHTMLTag.py
PeaceWorksTechnologySolutions/w4py
74f5a03a63f1a93563502b908474aefaae2abda2
[ "MIT" ]
18
2016-08-01T20:15:59.000Z
2019-12-24T16:00:03.000Z
WebUtils/Tests/TestHTMLTag.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-13T05:48:45.000Z
2020-01-09T18:29:12.000Z
WebUtils/Tests/TestHTMLTag.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-16T14:32:29.000Z
2020-01-03T18:52:16.000Z
import os import sys import unittest sys.path.insert(1, os.path.abspath('../..')) from MiscUtils import StringIO from WebUtils.HTMLTag import HTMLReader class HTMLTagTest(unittest.TestCase): def setUp(self): self._html = """\ <html> <head> <title>Example</title> </head> <body lang="en"> <p>What...
31.36036
78
0.608733
a4adbf1e52f40e1d2dcc0139e8a92868967a1ad3
4,774
py
Python
skka/settings.py
McCarthyCode/Susan-Kill-Kegan-and-Associates
4b3416aa9d94d409232ecb970d75d36cfd8928f9
[ "MIT" ]
null
null
null
skka/settings.py
McCarthyCode/Susan-Kill-Kegan-and-Associates
4b3416aa9d94d409232ecb970d75d36cfd8928f9
[ "MIT" ]
1
2020-06-09T02:06:39.000Z
2020-06-09T02:06:39.000Z
skka/settings.py
McCarthyCode/Susan-Kill-Kegan-and-Associates
4b3416aa9d94d409232ecb970d75d36cfd8928f9
[ "MIT" ]
null
null
null
""" Django settings for skka project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os impor...
25.529412
83
0.664851
c6fc1b7dc38c271496ee13679cd5c310a441fc61
16,745
py
Python
test/functional/rpc_decodescript.py
gingfinger/divi99
3b0602b41bf35fb1e30c12b1bf06ef1da58935eb
[ "MIT" ]
null
null
null
test/functional/rpc_decodescript.py
gingfinger/divi99
3b0602b41bf35fb1e30c12b1bf06ef1da58935eb
[ "MIT" ]
null
null
null
test/functional/rpc_decodescript.py
gingfinger/divi99
3b0602b41bf35fb1e30c12b1bf06ef1da58935eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Divi Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.messages import CTransaction, ...
71.255319
761
0.760287
0dceb2da1992b75d3ed0c0ea2cd7c49fae19753f
2,599
py
Python
src/graia/amnesia/builtins/uvicorn.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
2
2022-03-13T09:12:44.000Z
2022-03-28T10:53:06.000Z
src/graia/amnesia/builtins/uvicorn.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
null
null
null
src/graia/amnesia/builtins/uvicorn.py
GraiaProject/Amnesia
d48d3084f776f788767939d73774146086358887
[ "MIT" ]
null
null
null
import asyncio import logging from launart.manager import Launart from launart.service import Service from launart.utilles import wait_fut from loguru import logger from uvicorn import Config, Server from graia.amnesia.builtins.common import ASGIHandlerProvider class LoguruHandler(logging.Handler): def emit(sel...
32.898734
103
0.640246
92c597bc083c0998370be284591335cb2f8261cf
1,973
py
Python
SEM-internal-cell-texture/analysis_scripts/3_feature_collection.py
ocarmo/EMP1-trafficking_PTP7-analysis
54138d63ed6bc60033d3e2412d373530f888ed86
[ "MIT" ]
null
null
null
SEM-internal-cell-texture/analysis_scripts/3_feature_collection.py
ocarmo/EMP1-trafficking_PTP7-analysis
54138d63ed6bc60033d3e2412d373530f888ed86
[ "MIT" ]
null
null
null
SEM-internal-cell-texture/analysis_scripts/3_feature_collection.py
ocarmo/EMP1-trafficking_PTP7-analysis
54138d63ed6bc60033d3e2412d373530f888ed86
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt # import seaborn as sns import skimage.io from skimage import measure import functools from loguru import logger logger.info('Import OK') image_folder = f'SEM-internal-cell-texture/python_results/SEM-internal-cell-texture_Analyzed/initia...
38.686275
207
0.732387
67334cb6867d53406d0246c0bdfa59bacd9fac78
5,409
py
Python
src/server/fitbit.py
gyevnarb/IntelligentSleepAssistant
a167066df71d0f352e474fcd806857525a32e4f0
[ "MIT" ]
1
2018-03-11T12:22:19.000Z
2018-03-11T12:22:19.000Z
src/server/fitbit.py
gyevnarb/IntelligentSleepAssistant
a167066df71d0f352e474fcd806857525a32e4f0
[ "MIT" ]
null
null
null
src/server/fitbit.py
gyevnarb/IntelligentSleepAssistant
a167066df71d0f352e474fcd806857525a32e4f0
[ "MIT" ]
null
null
null
""" A Python library for accessing the FitBit API. This library provides a wrapper to the FitBit API and does not provide storage of tokens or caching if that is required. Most of the code has been adapted from: https://groups.google.com/group/fitbit-api/browse_thread/thread/0a45d0ebed3ebccb 5/22/2012 - JCF - Update...
38.635714
151
0.622111
329399076b083b5ff57cf7b7ebe4fb2d666411ed
698
py
Python
ros/src/pybullet_ros/plugins/joint_state_pub.py
domire8/pybullet_ros
3edc1e2bf8a8a9a9f3557e283ade2602d3905e2c
[ "MIT" ]
null
null
null
ros/src/pybullet_ros/plugins/joint_state_pub.py
domire8/pybullet_ros
3edc1e2bf8a8a9a9f3557e283ade2602d3905e2c
[ "MIT" ]
1
2021-05-20T12:32:00.000Z
2021-05-20T12:32:00.000Z
ros/src/pybullet_ros/plugins/joint_state_pub.py
domire8/pybullet_ros
3edc1e2bf8a8a9a9f3557e283ade2602d3905e2c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Query robot state and publish position, velocity and effort values to /robot_name/joint_states. """ import rospy from sensor_msgs.msg import JointState class JointStatePub: def __init__(self, pybullet, robot): self._pb = pybullet self._robot = robot self._publi...
29.083333
101
0.687679
d8757ff1a9769875527b8b6429f74bb123ecda56
9,374
py
Python
bode.py
vanish125/DS1054_BodePlotter
569d3b97d8a0a657dd27d7b30b152fa78203995b
[ "MIT" ]
null
null
null
bode.py
vanish125/DS1054_BodePlotter
569d3b97d8a0a657dd27d7b30b152fa78203995b
[ "MIT" ]
null
null
null
bode.py
vanish125/DS1054_BodePlotter
569d3b97d8a0a657dd27d7b30b152fa78203995b
[ "MIT" ]
null
null
null
# bode.py # Program to plot bode diagrams using a DS1054Z and a jds6600 # Jan Böhmer (c) 2019 # published under MIT license. See file "LICENSE" for full license text # from jds6600 import * 1st try import fygen import numpy as np import time from ds1054z import DS1054Z import argparse import dft impo...
36.053846
214
0.65607
9a9849da8f7906bc7a6a0f801a3574242e9b1eb0
2,521
py
Python
docs/conf.py
mozkzki/moz-youtube
e74cb17a618d5e73af5cf83d50ec349ac75e5113
[ "MIT" ]
null
null
null
docs/conf.py
mozkzki/moz-youtube
e74cb17a618d5e73af5cf83d50ec349ac75e5113
[ "MIT" ]
1
2021-09-18T20:08:07.000Z
2021-09-18T20:08:07.000Z
docs/conf.py
mozkzki/moz-youtube
e74cb17a618d5e73af5cf83d50ec349ac75e5113
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
33.613333
79
0.652519
4fc1ac5d29967dda5fac5876c6d7667916683f8f
106,763
py
Python
pysnmp_mibs/DOCS-CABLE-DEVICE-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2017-04-21T13:48:08.000Z
2022-01-06T19:42:52.000Z
pysnmp_mibs/DOCS-CABLE-DEVICE-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
1
2020-05-05T16:42:25.000Z
2020-05-05T16:42:25.000Z
pysnmp_mibs/DOCS-CABLE-DEVICE-MIB.py
jackjack821/pysnmp-mibs
9835ea0bb2420715caf4ee9aaa07d59bb263acd6
[ "BSD-2-Clause" ]
6
2020-02-08T20:28:49.000Z
2021-09-14T13:36:46.000Z
# # PySNMP MIB module DOCS-CABLE-DEVICE-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/DOCS-CABLE-DEVICE-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:09:24 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016,...
350.042623
6,497
0.704139
c6e04bc0342dca732e1080ec65ab77a24c9e06e4
11,513
py
Python
samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
1
2022-01-11T15:49:34.000Z
2022-01-11T15:49:34.000Z
samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
9
2021-11-01T08:59:31.000Z
2022-03-31T08:31:57.000Z
samples/openapi3/client/petstore/python/petstore_api/model/some_object_with_self_attr.py
rotty3000/openapi-generator
40d3331e789412d8f42df0148cc089a9d330b759
[ "Apache-2.0" ]
1
2022-02-19T21:56:04.000Z
2022-02-19T21:56:04.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noq...
43.609848
174
0.560149
f328284d63a7544b1d3bb113e149cf446d9cd2ce
2,492
py
Python
src/the_tale/the_tale/blogs/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/blogs/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/blogs/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models, migrations import rels.django import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('forum', '0001_initial'), ...
46.148148
299
0.60634
5a598cef6f499f4f2bcb63e8cf4de64ebac72c7a
4,224
py
Python
build_windows/gui_interface.py
grigorievich/Viy
c78cfb55e548ce40b9fe3756e4ce2a923b84a552
[ "Apache-2.0" ]
14
2017-09-08T09:20:37.000Z
2020-09-20T10:56:22.000Z
build_windows/gui_interface.py
grigorievich/Viy
c78cfb55e548ce40b9fe3756e4ce2a923b84a552
[ "Apache-2.0" ]
null
null
null
build_windows/gui_interface.py
grigorievich/Viy
c78cfb55e548ce40b9fe3756e4ce2a923b84a552
[ "Apache-2.0" ]
2
2018-02-14T16:52:33.000Z
2018-06-20T22:16:02.000Z
from __future__ import print_function, division import math import ui import messages_from_ui class GtkUI(object): """Gtk+ UI class.""" def __init__(self, font): """Initialize the UI instance.""" pass def start(self, bridge): """Start the UI event loop.""" bridge.attach...
26.236025
76
0.533617
fad35c486de48f087787b3e7b228c44cc14f5e49
632
py
Python
nima/train/emd_loss.py
jjmao-cs/nima.pytorch
62f1dda7b146d47084bb414933380c324487fb4e
[ "MIT" ]
73
2020-10-15T06:38:56.000Z
2022-03-24T07:32:10.000Z
nima/train/emd_loss.py
jjmao-cs/nima.pytorch
62f1dda7b146d47084bb414933380c324487fb4e
[ "MIT" ]
11
2020-12-17T06:21:27.000Z
2022-02-04T04:56:57.000Z
nima/train/emd_loss.py
jjmao-cs/nima.pytorch
62f1dda7b146d47084bb414933380c324487fb4e
[ "MIT" ]
10
2020-10-16T13:11:34.000Z
2022-03-24T12:19:43.000Z
import torch import torch.nn as nn from torch.autograd import Variable class EDMLoss(nn.Module): def __init__(self): super(EDMLoss, self).__init__() def forward(self, p_target: Variable, p_estimate: Variable): assert p_target.shape == p_estimate.shape # cdf for values [1, 2, ..., 10] ...
33.263158
82
0.653481
2c399793654938b9bfa06a8ac3bd0bbc7b8657de
1,474
py
Python
python_schools/iterators.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python_schools/iterators.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python_schools/iterators.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
# the iterator protocol needs functions __iter__() and __next__() class iterator_protocol(object): def __init__(self, *args): self._data = args self._idx = 0 def __iter__(self): return self def __next__(self): if self._idx < len(self._data): tmp = self._data[se...
21.676471
81
0.612619
42fe8f6b717c18e981e9e6dd510736e9d42f38a2
8,310
py
Python
unsupervised_learning/clustering/OPTICS/sample_scratch.py
niektuytel/Machine_Learning
0cd5656ca8076c383fd81c5e32a49969a20ad042
[ "MIT" ]
11
2021-07-05T15:51:35.000Z
2022-03-19T15:17:37.000Z
unsupervised_learning/clustering/OPTICS/sample_scratch.py
niektuytel/Machine_Learning
0cd5656ca8076c383fd81c5e32a49969a20ad042
[ "MIT" ]
null
null
null
unsupervised_learning/clustering/OPTICS/sample_scratch.py
niektuytel/Machine_Learning
0cd5656ca8076c383fd81c5e32a49969a20ad042
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import operator, math from scipy.spatial.distance import pdist from scipy.spatial.distance import squareform import warnings warnings.filterwarnings("ignore", category=FutureWarning) # data X = np.array([[15, 39], [15, 81], [16, 6], [16, 77], [17, 40], [17, 76], [18,...
47.485714
2,014
0.570517
d28a5b3b01dc07a7aeaaa89942a0c20a00da447f
68,272
py
Python
src/twisted/web/test/test_static.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
2
2021-05-30T16:35:00.000Z
2021-06-03T12:23:33.000Z
src/twisted/web/test/test_static.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
src/twisted/web/test/test_static.py
ndg63276/twisted
f672a20395e8beece6350631a70514f06c391bae
[ "Unlicense", "MIT" ]
2
2021-05-29T21:12:22.000Z
2021-05-30T04:56:50.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.web.static}. """ import errno import inspect import mimetypes import os import re import sys import warnings from io import BytesIO as StringIO from unittest import skipIf from zope.interface.verify import verifyObject f...
37.409315
88
0.613634
2340742f71f589e3c3bace832d0090d0e4289bea
9,008
py
Python
pennylane/tape/tapes/reversible.py
theRoughCode/pennylane
317f82ef00c752beeef7d2412b88119a753467b4
[ "Apache-2.0" ]
null
null
null
pennylane/tape/tapes/reversible.py
theRoughCode/pennylane
317f82ef00c752beeef7d2412b88119a753467b4
[ "Apache-2.0" ]
1
2020-10-04T22:45:45.000Z
2020-10-04T22:45:45.000Z
pennylane/tape/tapes/reversible.py
theRoughCode/pennylane
317f82ef00c752beeef7d2412b88119a753467b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicabl...
43.941463
103
0.658637
fe4e8b1a8acfdf7aaa8e2d98cac419a3504f8ce3
45,630
py
Python
third_party/python/Parser/asdl_c.py
appotry/cosmopolitan
af4687cc3f2331a23dc336183ab58fe001cda082
[ "ISC" ]
null
null
null
third_party/python/Parser/asdl_c.py
appotry/cosmopolitan
af4687cc3f2331a23dc336183ab58fe001cda082
[ "ISC" ]
null
null
null
third_party/python/Parser/asdl_c.py
appotry/cosmopolitan
af4687cc3f2331a23dc336183ab58fe001cda082
[ "ISC" ]
null
null
null
#! /usr/bin/env python """Generate C code from an ASDL description.""" import os, sys import asdl TABSIZE = 4 MAX_COL = 80 def get_c_type(name): """Return a string for the C name of the type. This function special cases the default types provided by asdl. """ if name in asdl.builtin_types: ...
33.379663
110
0.539667
59d05a4fabb908c5d24ef1c8efff8300a1df26c3
362
py
Python
mptt_graph/admin.py
synw/django-mptt-graph
e4ff6b1d77f43b70fa2d58b3ba9a3155e279a1e2
[ "MIT" ]
4
2019-04-14T11:00:44.000Z
2021-06-06T09:56:44.000Z
mptt_graph/admin.py
synw/django-mptt-graph
e4ff6b1d77f43b70fa2d58b3ba9a3155e279a1e2
[ "MIT" ]
3
2017-08-21T10:53:12.000Z
2020-01-02T12:36:15.000Z
mptt_graph/admin.py
synw/django-mptt-graph
e4ff6b1d77f43b70fa2d58b3ba9a3155e279a1e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.contrib import admin from mptt.admin import MPTTModelAdmin from mptt_graph.models import GraphModel, TreeNode @admin.register(GraphModel) class UrlTreeAdmin(admin.ModelAdmin): list_display = ["title", "model_path", "model_pk"] @admin.register(TreeNode) class TreeNodeAdmin(MP...
22.625
54
0.765193
f2c0be66df871726673ea1149e9d3a6832043b3e
539
py
Python
Python3/0029-Divide-Two-Integers/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/0029-Divide-Two-Integers/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/0029-Divide-Two-Integers/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def divide(self, dividend, divisor): """ :type dividend: int :type divisor: int :rtype: int """ sign = -1 if dividend * divisor < 0 else +1 a, b = abs(dividend), abs(divisor) res = 0 while a >= b: temp, unit = b, 1 ...
28.368421
63
0.408163
356b22c632cf5199319e3d46ba764f04833632c3
50,030
py
Python
python/paddle/nn/layer/loss.py
wangna11BD/Paddle
bc379ca3d5895eadbc1748bc5b71606011563ee1
[ "Apache-2.0" ]
1
2021-04-28T13:47:27.000Z
2021-04-28T13:47:27.000Z
python/paddle/nn/layer/loss.py
wangna11BD/Paddle
bc379ca3d5895eadbc1748bc5b71606011563ee1
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/layer/loss.py
wangna11BD/Paddle
bc379ca3d5895eadbc1748bc5b71606011563ee1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -* # Copyright (c) 2020 PaddlePaddle 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 # #...
41.656953
403
0.589246
9a53e42f5c7bf6242872577e9fdbe58ab9869727
29,916
py
Python
core/platform/search/gae_search_services_test.py
steve7158/oppia
e2cae72fa5d3503c64d195f09d3460507697730c
[ "Apache-2.0" ]
2
2018-12-14T05:46:31.000Z
2019-01-04T21:52:44.000Z
core/platform/search/gae_search_services_test.py
steve7158/oppia
e2cae72fa5d3503c64d195f09d3460507697730c
[ "Apache-2.0" ]
5
2018-06-09T02:05:45.000Z
2018-09-20T13:53:42.000Z
core/platform/search/gae_search_services_test.py
steve7158/oppia
e2cae72fa5d3503c64d195f09d3460507697730c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 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...
42.314003
79
0.623813
f4a9328cbae72f8ad4383d107f73cfd06c30a1c1
3,928
py
Python
MaxLatestVersion/gettoken.py
getlove555/getbotline
639e157495849e12ac7dd4bae6012841cf511892
[ "MIT" ]
6
2020-05-23T21:47:52.000Z
2021-03-30T00:19:08.000Z
MaxLatestVersion/gettoken.py
getlove555/getbotline
639e157495849e12ac7dd4bae6012841cf511892
[ "MIT" ]
4
2020-08-01T10:10:14.000Z
2021-01-03T00:55:05.000Z
MaxLatestVersion/gettoken.py
LOUREN03/lourenelle
5448a8634d438f35df98e43ad135f232cf74d2b1
[ "MIT" ]
20
2020-05-11T08:53:30.000Z
2021-07-16T09:50:20.000Z
from thrift.protocol import TCompactProtocol from thrift.transport import THttpClient from TEAM_BOT_MAX.ttypes import IdentityProvider, LoginResultType, LoginRequest, LoginType import json, requests, livejson, LineService def loggedIn(func): def checkLogin(*args, **kwargs): if args[0].isLogin: ...
32.46281
102
0.581721
397db2baaf5a72e97303d97bab28509dd6d9d086
6,018
py
Python
tests/test_run.py
fingul/psdash
67638b8df867cf32868b282d574e54945f677ee3
[ "CC0-1.0" ]
null
null
null
tests/test_run.py
fingul/psdash
67638b8df867cf32868b282d574e54945f677ee3
[ "CC0-1.0" ]
null
null
null
tests/test_run.py
fingul/psdash
67638b8df867cf32868b282d574e54945f677ee3
[ "CC0-1.0" ]
null
null
null
import os from psdash.run import PsDashRunner from psdash.node import LocalNode import gevent import socket import unittest import tempfile import time class TestRunner(unittest.TestCase): def test_args_log(self): _, filename = tempfile.mkstemp() r = PsDashRunner(args=['-l', filename]) sel...
34.988372
95
0.599202
3fdd50d19c7d5aa1fd7a245a82630fddd521c667
16,984
py
Python
torchvision/datasets/video_utils.py
jdsgomes/vision
c890a7e75ebeaaa75ae9ace4c203b7fc145df068
[ "BSD-3-Clause" ]
1
2022-02-14T09:16:02.000Z
2022-02-14T09:16:02.000Z
torchvision/datasets/video_utils.py
jdsgomes/vision
c890a7e75ebeaaa75ae9ace4c203b7fc145df068
[ "BSD-3-Clause" ]
null
null
null
torchvision/datasets/video_utils.py
jdsgomes/vision
c890a7e75ebeaaa75ae9ace4c203b7fc145df068
[ "BSD-3-Clause" ]
null
null
null
import bisect import math import warnings from fractions import Fraction from typing import Any, Dict, List, Optional, Callable, Union, Tuple, TypeVar, cast import torch from torchvision.io import ( _probe_video_from_file, _read_video_from_file, read_video, read_video_timestamps, ) from .utils import ...
40.056604
116
0.628062
b90882c596aaba10157cb2c8fc31b9401d948ac4
1,265
py
Python
modules/tools/navigation/planning/provider_localization.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/navigation/planning/provider_localization.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/navigation/planning/provider_localization.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
38.333333
79
0.633202
409460ada1d5007d3b9de62aa4aa7a04ae4bf7de
1,468
py
Python
core/sentence_embeddings.py
venomousboxer/chabot-backend
1d9c4b0da5f0cfd3572edb0619a43b9d207bbd1e
[ "MIT" ]
1
2019-08-30T05:42:40.000Z
2019-08-30T05:42:40.000Z
core/sentence_embeddings.py
venomousboxer/chabot-backend
1d9c4b0da5f0cfd3572edb0619a43b9d207bbd1e
[ "MIT" ]
15
2020-01-28T22:39:27.000Z
2022-02-10T00:10:30.000Z
core/sentence_embeddings.py
venomousboxer/chabot-backend
1d9c4b0da5f0cfd3572edb0619a43b9d207bbd1e
[ "MIT" ]
1
2020-04-25T06:22:30.000Z
2020-04-25T06:22:30.000Z
from InferSent.models import InferSent import torch import numpy as np def cosine(u, v): return np.dot(u, v) / (np.linalg.norm(u) * np.linalg.norm(v)) def Start_chatbot(): model_version = 1 MODEL_PATH = "../InferSent/encoder/infersent%s.pkl" % model_version params_model = {'bsize': 64, 'word_emb_dim':...
31.913043
109
0.651226
1bf1c2bf68b98b0feaf20f65334a22472f98e1b1
2,562
py
Python
tb_rest_client/models/models_pe/coap_device_type_configuration.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
30
2020-06-19T06:42:50.000Z
2021-08-23T21:16:36.000Z
tb_rest_client/models/models_pe/coap_device_type_configuration.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
25
2021-08-30T01:17:27.000Z
2022-03-16T14:10:14.000Z
tb_rest_client/models/models_pe/coap_device_type_configuration.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
23
2020-07-06T13:41:54.000Z
2021-08-23T21:04:50.000Z
# coding: utf-8 """ ThingsBoard REST API ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 OpenAPI spec version: 3.3.3PAAS-RC1 Contact: info@thingsboard.io Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F40...
30.141176
88
0.57299
ce95eff40ac06c7a0b24ab49ce51ae527ca9a8a8
417
py
Python
exericios_faculdade/vetores_matrizes/questao_02.py
Ssousuke/python
869bb1cc385d4f54961a131d6db46a7bf99fd743
[ "MIT" ]
null
null
null
exericios_faculdade/vetores_matrizes/questao_02.py
Ssousuke/python
869bb1cc385d4f54961a131d6db46a7bf99fd743
[ "MIT" ]
null
null
null
exericios_faculdade/vetores_matrizes/questao_02.py
Ssousuke/python
869bb1cc385d4f54961a131d6db46a7bf99fd743
[ "MIT" ]
null
null
null
# Faça um programa que preencha um vetor com 10 números reais, calcule e mostre # a quantidade de números negativos e a soma dos números positivos desse vetor. vetor = [] for i in range(0, 10): valor = int(input()) vetor.append(valor) negativos = 0 positivos = 0 for i in vetor: if i < 0: negativos...
23.166667
79
0.661871
37537a9d932fcfb7edbf0b1c1523a1f73919cfd9
2,027
py
Python
test/test_utils.py
fengzhongye/face-alignment
6a7731168dbb1a15f9ecd5fe4c79c992f179a622
[ "BSD-3-Clause" ]
2
2021-02-22T12:16:34.000Z
2021-05-02T15:23:10.000Z
test/test_utils.py
fengzhongye/face-alignment
6a7731168dbb1a15f9ecd5fe4c79c992f179a622
[ "BSD-3-Clause" ]
3
2021-09-08T02:24:48.000Z
2022-03-12T00:44:53.000Z
test/test_utils.py
fengzhongye/face-alignment
6a7731168dbb1a15f9ecd5fe4c79c992f179a622
[ "BSD-3-Clause" ]
1
2020-02-10T05:13:12.000Z
2020-02-10T05:13:12.000Z
import sys sys.path.append('.') import unittest from face_alignment.utils import * import numpy as np import torch class Tester(unittest.TestCase): def test_flip_is_label(self): # Generate the points heatmaps = torch.from_numpy(np.random.randint(1, high=250, size=(68, 64, 64)).astype('f...
39.745098
119
0.610261
795962c0027739c3411dab6366b3e1c4af16695b
5,457
py
Python
tests/model_connectors/test_time_series_heating_indirect.py
mingzhe37/geojson-modelica-translator
23c969fa5a1b776dfd6dd773b9dd8f6e3a0ce28b
[ "BSD-3-Clause-LBNL" ]
11
2019-08-19T16:58:23.000Z
2022-01-25T14:23:49.000Z
tests/model_connectors/test_time_series_heating_indirect.py
mingzhe37/geojson-modelica-translator
23c969fa5a1b776dfd6dd773b9dd8f6e3a0ce28b
[ "BSD-3-Clause-LBNL" ]
331
2019-07-24T16:15:52.000Z
2022-03-10T04:58:15.000Z
tests/model_connectors/test_time_series_heating_indirect.py
mingzhe37/geojson-modelica-translator
23c969fa5a1b776dfd6dd773b9dd8f6e3a0ce28b
[ "BSD-3-Clause-LBNL" ]
10
2019-07-12T22:21:32.000Z
2022-02-22T06:30:25.000Z
""" **************************************************************************************************** :copyright (c) 2019-2021 URBANopt, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted ...
45.857143
102
0.741983
5181d54812305017e672fb7764c09948bc888f6c
1,311
py
Python
python/graphscope/nx/readwrite/__init__.py
doudoubobo/GraphScope
ec000ba93033bb3097b5a9407b7037115f1f2a4c
[ "Apache-2.0" ]
null
null
null
python/graphscope/nx/readwrite/__init__.py
doudoubobo/GraphScope
ec000ba93033bb3097b5a9407b7037115f1f2a4c
[ "Apache-2.0" ]
null
null
null
python/graphscope/nx/readwrite/__init__.py
doudoubobo/GraphScope
ec000ba93033bb3097b5a9407b7037115f1f2a4c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
39.727273
74
0.78566
7454c70d55b8a3b478eb708a873d34590d8050c6
194,266
py
Python
python/paddle/fluid/framework.py
laipaang/Paddle
d7f35434b761707a8479b75636546a624399369a
[ "Apache-2.0" ]
1
2020-06-24T14:53:24.000Z
2020-06-24T14:53:24.000Z
python/paddle/fluid/framework.py
laipaang/Paddle
d7f35434b761707a8479b75636546a624399369a
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/framework.py
laipaang/Paddle
d7f35434b761707a8479b75636546a624399369a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 app...
35.034445
337
0.562847
8df8574ab78d51967aead8675e625cfdfeb9df8a
389
py
Python
models/parameters.py
mourtadg7/goodwin-keen-model
911913fb0b7389b27a1efeb86ce4336551357690
[ "MIT" ]
null
null
null
models/parameters.py
mourtadg7/goodwin-keen-model
911913fb0b7389b27a1efeb86ce4336551357690
[ "MIT" ]
1
2021-09-12T18:10:53.000Z
2021-09-12T18:14:17.000Z
models/parameters.py
mourtadg7/goodwin-keen-model
911913fb0b7389b27a1efeb86ce4336551357690
[ "MIT" ]
2
2021-09-12T15:56:01.000Z
2022-01-12T18:58:21.000Z
alpha = 0.025 # Technological growth rate beta = 0.02 # Population growth rate delta = 0.01 # Deprecation rate # Phillips Curve Parameters from Keen (1995) phi0 = 0.04 / (1 - 0.04 ** 2) phi1 = 0.04 ** 3 / (1 - 0.04 ** 2) # Investment Rate Parameters from Grasselli (2012) kappa0 = -0.0065 kappa1 = math.exp(-5) kappa2...
32.416667
50
0.663239
8d5342561beb95e5aeb45b6586ad1f440fa28b9e
1,196
py
Python
bitwise/gate/IMPLY.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/gate/IMPLY.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
bitwise/gate/IMPLY.py
jamesjiang52/Bitwise
c71f151d23034b3f9e2a939f637be0eaa16c45c3
[ "MIT" ]
null
null
null
""" The following classes are defined: IMPLYGate2 """ from .. import wire from . import OR from . import NOT Wire = wire.Wire class IMPLYGate: """Construct a new IMPLY gate. Args: input_1: An object of type Wire. The first input to the IMPLY gate. input_2: An object of type Wire. The se...
27.181818
76
0.597826
b7a9d36441ef4f50311924cb9b25ddbfc8d0e477
12,899
py
Python
federatedml/nn/homo_nn/enter_point.py
yzjba/FATE
9a6d252da637b2583a0f8a51f6cb4c615850bab9
[ "Apache-2.0" ]
1
2021-05-31T16:39:30.000Z
2021-05-31T16:39:30.000Z
federatedml/nn/homo_nn/enter_point.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
9
2020-11-13T18:59:35.000Z
2022-02-10T02:13:58.000Z
federatedml/nn/homo_nn/enter_point.py
ErikSun2020/FATE
bdda535c7d8a974fc2c43102837964b7da199730
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE 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 appli...
43.577703
119
0.685324
ad28fdea55418dbeba1fb767c070be73ace50e1f
1,675
py
Python
tests/tools.py
altvod/basic-notion
38da5cc6912d73fad530d37f1608b49d90c2034e
[ "MIT" ]
null
null
null
tests/tools.py
altvod/basic-notion
38da5cc6912d73fad530d37f1608b49d90c2034e
[ "MIT" ]
null
null
null
tests/tools.py
altvod/basic-notion
38da5cc6912d73fad530d37f1608b49d90c2034e
[ "MIT" ]
null
null
null
import uuid from typing import Type from notion_client import Client from basic_notion.database import NotionDatabase from basic_notion.page import NotionPage, NotionPageList from basic_notion.query import Query def create_database_from_model( sync_client: Client, model: Type[NotionPage], ti...
28.87931
102
0.696716
a0869dc3cd73f48a8f261748811960cd6117f829
4,361
py
Python
sermons/views.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
null
null
null
sermons/views.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
44
2020-05-13T20:15:26.000Z
2022-03-04T02:58:58.000Z
sermons/views.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
4
2020-06-05T17:59:52.000Z
2021-02-06T19:09:43.000Z
import logging from django.contrib.auth.mixins import PermissionRequiredMixin from django.urls import reverse_lazy from church_site.views import BaseListView, BaseDetailView, BaseCreateView, AdminListView, BaseUpdateView from churches.models import Church from sermons.forms import SermonCreateForm from sermons.models ...
37.921739
118
0.701903
fd4dfcca351d821e6e69588e41f9e0c5e34fc004
2,144
py
Python
tests/test_invoice.py
izumimatsuo/micro-billing
94d7acdf5515c6f0be26fe013ae9cd1936dc03af
[ "MIT" ]
null
null
null
tests/test_invoice.py
izumimatsuo/micro-billing
94d7acdf5515c6f0be26fe013ae9cd1936dc03af
[ "MIT" ]
null
null
null
tests/test_invoice.py
izumimatsuo/micro-billing
94d7acdf5515c6f0be26fe013ae9cd1936dc03af
[ "MIT" ]
null
null
null
import pytest def test_select_all(client): res = client.get('/invoices') assert res.status_code == 200 data = res.json() assert 1 == len(data['invoices']) def test_select_one(client): res = client.get('/invoices/1') assert res.status_code == 200 data = res.json() assert data['period_...
31.072464
63
0.66931
de55a24a2f6b125910827059fd99969c3e9cfc48
29,096
py
Python
kornia/geometry/conversions.py
aardvarkkrill/kornia
e36ca3d15883a1dbbb0e7413719c0965a4b63cee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/geometry/conversions.py
aardvarkkrill/kornia
e36ca3d15883a1dbbb0e7413719c0965a4b63cee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/geometry/conversions.py
aardvarkkrill/kornia
e36ca3d15883a1dbbb0e7413719c0965a4b63cee
[ "ECL-2.0", "Apache-2.0" ]
1
2021-05-15T03:22:24.000Z
2021-05-15T03:22:24.000Z
from typing import Tuple import torch import torch.nn as nn import torch.nn.functional as F from kornia.constants import pi __all__ = [ # functional api "rad2deg", "deg2rad", "pol2cart", "cart2pol", "convert_points_from_homogeneous", "convert_points_to_homogeneous", "convert_affinematr...
35.353584
126
0.618676
c38be14607dbe25d1c1b7706a5871dc05ea34fff
1,536
py
Python
Qualification Round/cubic-ufo.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
42
2018-04-08T02:33:46.000Z
2021-05-29T10:19:33.000Z
Qualification Round/cubic-ufo.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
1
2021-05-05T10:32:33.000Z
2021-05-05T12:05:53.000Z
Qualification Round/cubic-ufo.py
enigma-pattern/GoogleCodeJam-2018
4b4f6b5bda68eccd92f0b31cde693462aba1282f
[ "MIT" ]
16
2018-04-15T18:56:25.000Z
2021-07-22T22:38:03.000Z
# Copyright (c) 2018 kamyu. All rights reserved. # # Google Code Jam 2018 Qualification Round - Problem D. Cubic UFO # https://codingcompetitions.withgoogle.com/codejam/round/00000000000000cb/00000000000079cc # # Time: O(1) # Space: O(1) # import math def matrix_multi(A, B): result = [[0.0 for _ in xrange(len(B[...
28.981132
101
0.549479
a6ed2451a6bb93221c0d7fd9d85d1193c2f2a2a6
656
py
Python
setup.py
ZephireNZ/PyFlick
3c4fae7380bcfcea9b1e0cb02444a07626261998
[ "MIT" ]
null
null
null
setup.py
ZephireNZ/PyFlick
3c4fae7380bcfcea9b1e0cb02444a07626261998
[ "MIT" ]
null
null
null
setup.py
ZephireNZ/PyFlick
3c4fae7380bcfcea9b1e0cb02444a07626261998
[ "MIT" ]
2
2021-06-15T14:17:07.000Z
2021-11-18T07:16:04.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="PyFlick", version="0.0.2", author="ZephireNZ", author_email="brynley+pypi@zephire.nz", description="Python API For Flick Electric in New Zealand", long_description=long_description, ...
29.818182
63
0.666159
0441301d54a2779936a0f432eaf25c8a2c0b8201
3,161
py
Python
modoboa/lib/tests/__init__.py
HarshCasper/modoboa
a00baa0593107992f545ee3e89cd4346b9615a96
[ "0BSD" ]
1,602
2016-12-15T14:25:34.000Z
2022-03-31T16:49:25.000Z
modoboa/lib/tests/__init__.py
sebageek/modoboa
57f5d57ea60a57e8dcac970085dfc07082481fc6
[ "0BSD" ]
1,290
2016-12-14T15:39:05.000Z
2022-03-31T13:49:09.000Z
modoboa/lib/tests/__init__.py
sebageek/modoboa
57f5d57ea60a57e8dcac970085dfc07082481fc6
[ "0BSD" ]
272
2016-12-22T11:58:18.000Z
2022-03-17T15:57:24.000Z
"""Testing utilities.""" import socket from django.core import management from django.test import TestCase from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase from modoboa.core import models as core_models from .. import sysutils try: s = socket.create_connection(("127...
30.990196
77
0.660234
af9e60303c9cf04eeba87f7d92b000ceca27b066
4,384
py
Python
Question_semaseg/answers/bin_loss_pytorch.py
skn047/DeepLearningMugenKnock
73d2b903816b380d56020c8336041883bc0d131c
[ "MIT" ]
10
2021-12-17T06:07:25.000Z
2022-03-25T13:50:05.000Z
Question_semaseg/answers/bin_loss_pytorch.py
skn047/DeepLearningMugenKnock
73d2b903816b380d56020c8336041883bc0d131c
[ "MIT" ]
null
null
null
Question_semaseg/answers/bin_loss_pytorch.py
skn047/DeepLearningMugenKnock
73d2b903816b380d56020c8336041883bc0d131c
[ "MIT" ]
2
2022-03-15T02:42:09.000Z
2022-03-30T23:19:55.000Z
import torch import torch.nn.functional as F import argparse import cv2 import numpy as np from glob import glob import matplotlib.pyplot as plt num_classes = 2 img_height, img_width = 64, 64#572, 572 out_height, out_width = 64, 64#388, 388 GPU = False torch.manual_seed(0) class Mynet(torch.nn.Module): def _...
26.251497
89
0.519617
28991c67c708b05679a196cc488333430e102b33
26,790
py
Python
observatory/logic/space_api.py
spookey/observatory
be5cc92f53f12e6341e7e3040f26360e54cfdf7d
[ "MIT" ]
null
null
null
observatory/logic/space_api.py
spookey/observatory
be5cc92f53f12e6341e7e3040f26360e54cfdf7d
[ "MIT" ]
1
2020-03-28T09:51:56.000Z
2020-03-28T09:51:56.000Z
observatory/logic/space_api.py
spookey/dz_stats_page
be5cc92f53f12e6341e7e3040f26360e54cfdf7d
[ "MIT" ]
null
null
null
from datetime import datetime from logging import getLogger from observatory.models.mapper import EnumConvert, EnumHorizon from observatory.models.value import Value from observatory.start.environment import SP_API_PREFIX, SP_API_REFRESH # pylint: disable=too-many-arguments # pylint: disable=too-many-public-methods ...
39.281525
79
0.387495
13bf14f8262c7aa7e66c52e5f45a31272f0379e4
10,917
py
Python
sympy/integrals/rationaltools.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2020-09-09T20:40:17.000Z
2020-09-09T20:40:17.000Z
sympy/integrals/rationaltools.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/integrals/rationaltools.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
"""This module implements tools for integrating rational functions. """ from sympy.core.function import Lambda from sympy.core.numbers import I from sympy.core.singleton import S from sympy.core.symbol import (Dummy, Symbol, symbols) from sympy.functions.elementary.exponential import log from sympy.functions.elementar...
26.117225
91
0.498947
aabdaa8aa3d4f5c27ad49b1d343958200d30c7e1
348
py
Python
donkeycar/parts/history.py
ilkka/donkey
f1454f720d2a6b3fc0db4f13a46a056f7a59fc19
[ "MIT" ]
null
null
null
donkeycar/parts/history.py
ilkka/donkey
f1454f720d2a6b3fc0db4f13a46a056f7a59fc19
[ "MIT" ]
null
null
null
donkeycar/parts/history.py
ilkka/donkey
f1454f720d2a6b3fc0db4f13a46a056f7a59fc19
[ "MIT" ]
1
2019-01-28T13:33:40.000Z
2019-01-28T13:33:40.000Z
from collections import deque class History: def __init__(self, buffer_size): self.on = True self.history_buffer = deque(maxlen=buffer_size) for i in range(buffer_size): self.history_buffer.append(0) def run(self, value): if (value != None): self.history_buffer.append(value) retur...
23.2
51
0.701149
52440342b96b7db8121d26c1f8f0f741b1f70a7d
2,836
py
Python
srl_core/algo/a2c_acktr.py
chenzeyin9867/srl
309fdaa2703fa9688d993c24c217edb45a6e4332
[ "MIT" ]
3
2021-11-15T06:57:46.000Z
2022-02-17T03:22:32.000Z
srl_core/algo/a2c_acktr.py
chenzeyin9867/srl
309fdaa2703fa9688d993c24c217edb45a6e4332
[ "MIT" ]
null
null
null
srl_core/algo/a2c_acktr.py
chenzeyin9867/srl
309fdaa2703fa9688d993c24c217edb45a6e4332
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim from srl_core.algo.kfac import KFACOptimizer class A2C_ACKTR(): def __init__(self, actor_critic, value_loss_coef, entropy_coef, lr=None, eps=None, ...
35.012346
88
0.586037
649850757a426b361d09cc13cd552c9fa0215268
715
py
Python
stats/services.py
dbgsprw/youtube_crawler
22b044b7c6f7122a0c6512dc4b7b98580eaedcd9
[ "MIT" ]
null
null
null
stats/services.py
dbgsprw/youtube_crawler
22b044b7c6f7122a0c6512dc4b7b98580eaedcd9
[ "MIT" ]
7
2019-12-04T23:27:13.000Z
2022-02-10T07:33:06.000Z
stats/services.py
dbgsprw/youtube_statistics_collector
22b044b7c6f7122a0c6512dc4b7b98580eaedcd9
[ "MIT" ]
null
null
null
from stats.models import Stats def calculate_view_diff(video, start_day, end_day): older_stat = video.stats_set.filter(created_at__gte=start_day).order_by('created_at')[0] newer_stat = video.stats_set.filter(created_at__lte=end_day).order_by('-created_at')[0] if newer_stat == older_stat: older_st...
39.722222
92
0.767832
40a8984e8ae71c36fee0b6af040ca6f0ea09beb8
18,300
py
Python
photo_illum.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
1
2019-03-15T04:01:19.000Z
2019-03-15T04:01:19.000Z
photo_illum.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
5
2017-12-11T00:11:39.000Z
2021-07-09T17:05:16.000Z
photo_illum.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
2
2017-08-15T21:19:11.000Z
2017-10-12T00:36:35.000Z
#!/usr/bin/env python # Python module for photometric calibration. # It needs the Python modules ppgplot and # mpfit to be installed. # 03.03.2005 Fixed a serious bug in the rejection loop. Instead # of using the remaining points we always used all points # and rejected points until the original...
38.689218
279
0.564809
ef3a8cec2243c6a5b660ecc78e6d1ac39c3c8f38
2,946
py
Python
common/vec_env/dummy_vec_env.py
nju-fuzy/baselines
c97a379944632dcc769167b4b0381f6d61729a4f
[ "MIT" ]
1
2021-05-21T11:57:44.000Z
2021-05-21T11:57:44.000Z
common/vec_env/dummy_vec_env.py
nju-fuzy/baselines
c97a379944632dcc769167b4b0381f6d61729a4f
[ "MIT" ]
null
null
null
common/vec_env/dummy_vec_env.py
nju-fuzy/baselines
c97a379944632dcc769167b4b0381f6d61729a4f
[ "MIT" ]
null
null
null
import numpy as np from gym import spaces from . import VecEnv from .util import copy_obs_dict, dict_to_obs, obs_space_info class DummyVecEnv(VecEnv): """ VecEnv that does runs multiple environments sequentially, that is, the step and reset commands are send to one environment at a time. Useful when de...
35.926829
157
0.595044
113c657234e858926dd0cfbdaada188f63312a33
453
py
Python
cmdline.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
cmdline.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
cmdline.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
import argparse import os def parse_command_line() -> object: # Get commnad line arguments parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--data_dir', type=str, default=os.path.join( 'data' , 'quixote' ), help='Model directory') pa...
41.181818
115
0.730684
c66dacdbc637fe57ea6bd0b6c4dc949eb794022f
131
py
Python
secrets.py
haugstve/Coursera_Capstone
89138706b52bad53d53c30c83b1ad324cfa0eae3
[ "MIT" ]
1
2019-03-20T11:27:42.000Z
2019-03-20T11:27:42.000Z
secrets.py
haugstve/Coursera_Capstone
89138706b52bad53d53c30c83b1ad324cfa0eae3
[ "MIT" ]
null
null
null
secrets.py
haugstve/Coursera_Capstone
89138706b52bad53d53c30c83b1ad324cfa0eae3
[ "MIT" ]
null
null
null
CLIENT_ID = 'Your CLIENT_ID goes here' # your Foursquare ID CLIENT_SECRET = 'Your CLIENT_SECRET goes here' # your Foursquare Secret
65.5
71
0.793893
b39f6463680e8368495685ba258f041646535434
1,950
py
Python
config/settings/local.py
mkim0818/my-concert
0cc71bb8da29c1d807cd828e219ebc4ad7a25ce9
[ "MIT" ]
null
null
null
config/settings/local.py
mkim0818/my-concert
0cc71bb8da29c1d807cd828e219ebc4ad7a25ce9
[ "MIT" ]
null
null
null
config/settings/local.py
mkim0818/my-concert
0cc71bb8da29c1d807cd828e219ebc4ad7a25ce9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Local settings - Run in Debug mode - Use console backend for emails - Add Django Debug Toolbar - Add django-extensions as app ''' from .common import * # noqa # DEBUG # ------------------------------------------------------------------------------ DEBUG = env.bool('DJANGO_DEBUG', default...
30.952381
99
0.495897
d312eeee2c7810c33d39f0c8f11da9f2b73357e5
5,085
py
Python
akshare/index/index_cni.py
Joeklepko/akshare
b290fad80cd6fed992b2b18496582cd6c7ae0d90
[ "MIT" ]
1
2021-08-21T14:50:39.000Z
2021-08-21T14:50:39.000Z
akshare/index/index_cni.py
Joeklepko/akshare
b290fad80cd6fed992b2b18496582cd6c7ae0d90
[ "MIT" ]
null
null
null
akshare/index/index_cni.py
Joeklepko/akshare
b290fad80cd6fed992b2b18496582cd6c7ae0d90
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Date: 2021/6/16 15:18 Desc: 国证指数 http://www.cnindex.com.cn/index.html """ import zipfile import pandas as pd import requests def index_cni_all() -> pd.DataFrame: """ 国证指数-所有指数 http://www.cnindex.com.cn/zh_indices/sese/index.html?act_menu=1&index_type=-1 ...
23.219178
83
0.534513
3b0759af91584507699635fa3dbbca55b6057a1e
4,179
py
Python
mendeley/models/files.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
103
2015-01-12T00:40:51.000Z
2022-03-29T07:02:06.000Z
mendeley/models/files.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
26
2015-01-10T04:08:41.000Z
2021-02-05T16:31:37.000Z
mendeley/models/files.py
membranepotential/mendeley-python-sdk
0336f0164f4d409309e813cbd0140011b5b2ff8f
[ "Apache-2.0" ]
43
2015-03-04T18:11:06.000Z
2022-03-13T02:33:34.000Z
import json import os import re from mendeley.models.annotations import Annotation from mendeley.response import SessionResponseObject class File(SessionResponseObject): """ A file attached to a document. .. attribute:: id .. attribute:: size .. attribute:: file_name .. attribute:: mime_type...
33.97561
119
0.603494
30b556ce98f818711859a552268bb9944b81c9f0
1,884
py
Python
randomizer/slot.py
jrobeson/ColdSteel3Tools
2db0f9b577f237ed1cffcde3ce7362eb76ebc094
[ "MIT" ]
4
2021-05-12T16:48:06.000Z
2021-11-11T23:41:03.000Z
randomizer/slot.py
jrobeson/ColdSteel3Tools
2db0f9b577f237ed1cffcde3ce7362eb76ebc094
[ "MIT" ]
6
2021-05-16T14:44:12.000Z
2021-09-18T00:15:04.000Z
randomizer/slot.py
jrobeson/ColdSteel3Tools
2db0f9b577f237ed1cffcde3ce7362eb76ebc094
[ "MIT" ]
2
2021-05-16T13:17:43.000Z
2021-09-14T01:34:54.000Z
import random, csv, json from randomizer.base import BaseRandomizer class SlotRandomizer(BaseRandomizer): def __init__(self, projectName=None, seed=None, programMode=True) -> None: super().__init__(projectName=projectName, seed=seed, programMode=programMode) random.seed(self.seed) self.inpu...
43.813953
104
0.571125
4a0f770ab9a598cbd754b2fd243fd0f7fb7fba9e
25,330
py
Python
xfel/command_line/cspad_cbf_metrology.py
indu-in/cctbx_project1
e09447ddc2ba3aa9d91b21008b0162ab290b0c30
[ "BSD-3-Clause-LBNL" ]
2
2021-03-18T12:31:57.000Z
2022-03-14T06:27:06.000Z
xfel/command_line/cspad_cbf_metrology.py
indu-in/cctbx_project1
e09447ddc2ba3aa9d91b21008b0162ab290b0c30
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/command_line/cspad_cbf_metrology.py
indu-in/cctbx_project1
e09447ddc2ba3aa9d91b21008b0162ab290b0c30
[ "BSD-3-Clause-LBNL" ]
null
null
null
# -*- mode: python; coding: utf-8; indent-tabs-mode: nil; python-indent: 2 -*- # # LIBTBX_SET_DISPATCHER_NAME cspad.cbf_metrology # from __future__ import absolute_import, division, print_function from six.moves import range import os, sys, random from iotbx.phil import parse from libtbx import easy_run from libtbx.uti...
43.005093
271
0.680261
51bc60a8feccf33a991c03ff55e36d810ebbf8fa
597
py
Python
scripts/todo.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
null
null
null
scripts/todo.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
null
null
null
scripts/todo.py
Jhsmit/awesome-panel
53f7754f7c505a2666f6724df26c851ae942ec40
[ "Apache-2.0" ]
null
null
null
def _to_plot(data): gridstyle = {"xgrid_line_color": None} curve_opts = opts.Curve( # pylint: disable=no-member line_width=4, responsive=True, color=get_color_cycle(), ) group_by = [] if len(data.ElementName.unique()) > 1: group_by.append("Element") if len(data.InstanceN...
35.117647
84
0.599665
cba3e4831238649cdd6a95ba07257b484343a69b
2,277
py
Python
cactusbot/sepal.py
CactusBot/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
23
2016-02-16T05:09:11.000Z
2016-09-20T14:22:51.000Z
cactusbot/sepal.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
190
2016-09-30T05:31:59.000Z
2018-12-22T08:46:49.000Z
cactusbot/sepal.py
Alkali-Metal/CactusBot
6d035bf74bdc8f7fb3ee1e79f8d443f5b17e7ea5
[ "MIT" ]
16
2016-10-09T16:51:48.000Z
2017-10-25T05:29:10.000Z
"""Interact with Sepal.""" import json import logging from .packets import MessagePacket, Packet from .services.websocket import WebSocket class Sepal(WebSocket): """Interact with Sepal.""" def __init__(self, channel, service=None): super().__init__("wss://cactus.exoz.one/sepal") self.logg...
25.58427
72
0.582784
d40e72305aafcb13d79fe80a23f9c3f28fa9c502
3,193
py
Python
indico/util/roles.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/util/roles.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/util/roles.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals import csv from flask import flash, session from indico.core.er...
43.739726
117
0.639524
ab74115d134f7f85741b18c9cdffb66c814c52ba
639
py
Python
tests/unicamp/test_uni_2009p1f2_olimpiadas.py
hiroshisiq/AEDlogis2021
0e153bd52f2b6cff465d4ffab31bfc28d003b24f
[ "MIT" ]
1
2021-06-03T22:46:10.000Z
2021-06-03T22:46:10.000Z
tests/unicamp/test_uni_2009p1f2_olimpiadas.py
hiroshisiq/AEDlogis2021
0e153bd52f2b6cff465d4ffab31bfc28d003b24f
[ "MIT" ]
8
2021-05-02T00:47:32.000Z
2021-05-15T23:51:44.000Z
tests/unicamp/test_uni_2009p1f2_olimpiadas.py
hiroshisiq/problem_solving
0e153bd52f2b6cff465d4ffab31bfc28d003b24f
[ "MIT" ]
null
null
null
import pytest from tests.run_script import run_script, read_text RESOURCES_PATH = './tests/unicamp/resources/2009p1f2' EXECUTABLE_PATH = './problems/unicamp/uni_2009p1f2_olimpiadas.py' @pytest.mark.parametrize( 'input_path, output_path', [(f'{RESOURCES_PATH}/case_1.in', f'{RESOURCES_PATH}/case_1.out'), ...
31.95
69
0.741784
5313989d1617583462f31456541a3b466a6dcb38
3,285
py
Python
WebDev/2021_05_14_WebClass-7/project1/project1/settings.py
Arc29/2021-22-Classes
03439d1e70a050758e9f698036a92110cf63cf71
[ "MIT" ]
458
2021-04-20T10:24:39.000Z
2022-03-31T11:37:35.000Z
WebDev/2021_05_14_WebClass-7/project1/project1/settings.py
Shineri/2021-22-Classes
9dd13c9f896ec83eb14170500fedeb20d416b1ba
[ "MIT" ]
5
2021-04-29T02:04:15.000Z
2021-11-26T01:40:35.000Z
WebDev/2021_05_14_WebClass-7/project1/project1/settings.py
Shineri/2021-22-Classes
9dd13c9f896ec83eb14170500fedeb20d416b1ba
[ "MIT" ]
59
2021-04-19T19:37:27.000Z
2022-03-18T08:58:44.000Z
""" Django settings for project1 project. Generated by 'django-admin startproject' using Django 3.2.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathli...
25.664063
91
0.701065
9eef9ccc8b8b776d3cb58f97fad65b975615b67a
1,318
py
Python
tests/cupyx_tests/scipy_tests/linalg_tests/test_matfuncs.py
ameyachawla99/cupy
43d78a7d6fbbe0d9ca35177a14da31a483a827ef
[ "MIT" ]
null
null
null
tests/cupyx_tests/scipy_tests/linalg_tests/test_matfuncs.py
ameyachawla99/cupy
43d78a7d6fbbe0d9ca35177a14da31a483a827ef
[ "MIT" ]
null
null
null
tests/cupyx_tests/scipy_tests/linalg_tests/test_matfuncs.py
ameyachawla99/cupy
43d78a7d6fbbe0d9ca35177a14da31a483a827ef
[ "MIT" ]
null
null
null
from cupyx.scipy.linalg.matfuncs import sinhm import cupy import unittest class TestMatFuncsNan(unittest.TestCase): def test_sinhm_values(self): # Testing whether it is producing right output or not z = cupy.zeros((2, 2)) z[0][0] = 1 z[0][1] = 2 z[1][0] = 3 z[1][1]...
25.843137
61
0.556904
ad11af8e674ca148b7c367c7d7b265deb76eccad
590
py
Python
solutions/basics2/cookie.py
mrparkonline/py_basics
821d388e23cebdb0ac6c741a67d2c7d336ec717e
[ "MIT" ]
null
null
null
solutions/basics2/cookie.py
mrparkonline/py_basics
821d388e23cebdb0ac6c741a67d2c7d336ec717e
[ "MIT" ]
null
null
null
solutions/basics2/cookie.py
mrparkonline/py_basics
821d388e23cebdb0ac6c741a67d2c7d336ec717e
[ "MIT" ]
null
null
null
# Cookie Selling Program # input start = float(input('Enter your starting money: ')) num_cookies = input('Enter the number of cookies sold: ') num_big = input('Enter the number of big cookies sold: ') # processing total_cookies = len(num_cookies) + len(num_big) profit_cookies = len(num_cookies) * 1.25 - len(num_cook...
29.5
66
0.730508
2cd3e8f05c04f91070afdb27f8f87f1c2c7af6e3
1,261
py
Python
streamlit/GroMoPo_app.py
Gromopo/GroMoPo
dfe40ebb429762403dbd249593bf00b22255efc0
[ "CC0-1.0" ]
null
null
null
streamlit/GroMoPo_app.py
Gromopo/GroMoPo
dfe40ebb429762403dbd249593bf00b22255efc0
[ "CC0-1.0" ]
20
2021-11-12T15:23:33.000Z
2022-02-02T08:49:00.000Z
streamlit/GroMoPo_app.py
Gromopo/GroMoPo
dfe40ebb429762403dbd249593bf00b22255efc0
[ "CC0-1.0" ]
1
2021-11-03T16:31:28.000Z
2021-11-03T16:31:28.000Z
import streamlit as st # Our app libs - possibly move to own folder # from utils import helpers from utils.multipage import MultiPage from pages import home, about, submit_model, model_finder from pathlib import Path import platform #st.set_page_config(layout="wide") st.sidebar.title('Navigation') app = MultiPage()...
34.081081
131
0.750991
05ec71370706982a61f732cc1b88e363a77924ea
2,754
py
Python
tests/core/full_node/test_sync_store.py
Storch-Network/chialite
587fc53e8ef452e07c6f3f266f58962d065feb5c
[ "Apache-2.0" ]
2
2021-06-29T14:05:41.000Z
2021-07-15T19:28:26.000Z
tests/core/full_node/test_sync_store.py
Storch-Network/chialite
587fc53e8ef452e07c6f3f266f58962d065feb5c
[ "Apache-2.0" ]
31
2021-06-26T23:11:46.000Z
2022-03-29T00:12:30.000Z
tests/core/full_node/test_sync_store.py
Storch-Network/chialite
587fc53e8ef452e07c6f3f266f58962d065feb5c
[ "Apache-2.0" ]
null
null
null
import asyncio import pytest from chialite.full_node.sync_store import SyncStore from chialite.util.hash import std_hash @pytest.fixture(scope="module") def event_loop(): loop = asyncio.get_event_loop() yield loop class TestStore: @pytest.mark.asyncio async def test_basic_store(self): stor...
39.913043
99
0.663399
a25042678bf8ba9cdf34ff3c081589d92238f6af
4,133
py
Python
src/github3/decorators.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
null
null
null
src/github3/decorators.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
null
null
null
src/github3/decorators.py
butsyk/github3.py
72fa5125fce75c916733839963554765c907e9e7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """This module provides decorators to the rest of the library.""" from functools import wraps from requests.models import Response import os from io import BytesIO as StringIO class RequestsStringIO(StringIO): """Shim compatibility for string IO.""" def read(self, n=-1, *args, **kwa...
28.115646
79
0.638519
127b52e4cd8a53557a326b0657026cc90374cb43
102
py
Python
srs/process_data.py
kubekmonika/get-data-from-gios-api
5e27925527307ef72f189ecaa1422a8cc9e02c9e
[ "MIT" ]
null
null
null
srs/process_data.py
kubekmonika/get-data-from-gios-api
5e27925527307ef72f189ecaa1422a8cc9e02c9e
[ "MIT" ]
null
null
null
srs/process_data.py
kubekmonika/get-data-from-gios-api
5e27925527307ef72f189ecaa1422a8cc9e02c9e
[ "MIT" ]
null
null
null
""" This is a file which will contain functions to process the downloaded data to desired format. """
20.4
74
0.754902
2cb4297e3effae797da7f649566bd71922e12914
4,244
py
Python
fedelemflowlist/subset_list.py
hottleta/Federal-LCA-Commons-Elementary-Flow-List
a5ba34acc2af66b802f07c1f59208af135027882
[ "CC0-1.0" ]
1
2020-07-09T14:28:25.000Z
2020-07-09T14:28:25.000Z
fedelemflowlist/subset_list.py
hottleta/Federal-LCA-Commons-Elementary-Flow-List
a5ba34acc2af66b802f07c1f59208af135027882
[ "CC0-1.0" ]
1
2021-03-18T14:27:28.000Z
2021-03-18T14:27:28.000Z
fedelemflowlist/subset_list.py
hottleta/Federal-LCA-Commons-Elementary-Flow-List
a5ba34acc2af66b802f07c1f59208af135027882
[ "CC0-1.0" ]
1
2021-09-20T05:02:28.000Z
2021-09-20T05:02:28.000Z
# subset_list.py (fedelemflowlist) # !/usr/bin/env python3 # coding=utf-8 """ Functions to filter a flow list for subsets Functions correspond with a subset names stored in the subsets dictionary """ import pandas as pd from fedelemflowlist.globals import inputpath subsets = {"freshwater_resources":"get_freshwater_re...
29.678322
82
0.653629
e2d0be367cd2dc8d71a655fb7a1df6038007fc3c
1,018
py
Python
intro/summary-exercises/examples/plot_cumulative_wind_speed_prediction.py
MarcvdSluys/scipy-lecture-notes
849762a741ba556a7765c9f2d90a10a7104dfccf
[ "CC-BY-4.0" ]
null
null
null
intro/summary-exercises/examples/plot_cumulative_wind_speed_prediction.py
MarcvdSluys/scipy-lecture-notes
849762a741ba556a7765c9f2d90a10a7104dfccf
[ "CC-BY-4.0" ]
null
null
null
intro/summary-exercises/examples/plot_cumulative_wind_speed_prediction.py
MarcvdSluys/scipy-lecture-notes
849762a741ba556a7765c9f2d90a10a7104dfccf
[ "CC-BY-4.0" ]
null
null
null
""" Cumulative wind speed prediction ================================ Generate the image cumulative-wind-speed-prediction.png for the interpolate section of scipy.rst. """ import numpy as np from scipy.interpolate import UnivariateSpline import matplotlib.pyplot as plt max_speeds = np.load('max-speeds.npy') years_nb...
30.848485
70
0.708251
6d90f549ff22982469410e82293d0fafafd0de6b
1,546
py
Python
djangoecommerce/catalog/models.py
roneysousa/djangoecommerce
9eacd2231ef2c6a54f57e0e2a6f1ffe04f5bfb4c
[ "MIT" ]
null
null
null
djangoecommerce/catalog/models.py
roneysousa/djangoecommerce
9eacd2231ef2c6a54f57e0e2a6f1ffe04f5bfb4c
[ "MIT" ]
null
null
null
djangoecommerce/catalog/models.py
roneysousa/djangoecommerce
9eacd2231ef2c6a54f57e0e2a6f1ffe04f5bfb4c
[ "MIT" ]
null
null
null
# coding=utf-8 from django.db import models from django.core.urlresolvers import reverse # Create your models here. class Category(models.Model): """docstring for """ name = models.CharField('Nome', max_length=100) slug = models.SlugField('Identificador', max_length=100) create = models.DateTimeField...
32.893617
82
0.65718
4335ca804db98a79312141632b21c119bd8f09b2
10,587
py
Python
intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/build/lib.linux-x86_64-2.7/vsmclient/v1/vsms.py
opensds/proposals
03735f5e19203bdff698454f2633ca483c92129d
[ "Apache-2.0" ]
5
2017-03-21T09:11:55.000Z
2018-11-19T14:44:36.000Z
intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/vsmclient/v1/vsms.py
opensds/proposals
03735f5e19203bdff698454f2633ca483c92129d
[ "Apache-2.0" ]
3
2018-02-06T06:17:10.000Z
2020-07-10T17:29:47.000Z
intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/build/lib.linux-x86_64-2.7/vsmclient/v1/vsms.py
opensds/proposals
03735f5e19203bdff698454f2633ca483c92129d
[ "Apache-2.0" ]
7
2018-02-06T03:54:13.000Z
2021-09-08T10:51:38.000Z
# Copyright 2011 Denali Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
29.738764
79
0.565788
dc45636a5042cba997a059f022aaace695498a5f
1,843
py
Python
thefuck/rules/cd_correction.py
HiteshMah-Jan/thefuck
132c62262246824470934c2c6f46919ef6f00203
[ "MIT" ]
75,504
2015-04-08T18:22:19.000Z
2022-03-31T23:59:52.000Z
thefuck/rules/cd_correction.py
HiteshMah-Jan/thefuck
132c62262246824470934c2c6f46919ef6f00203
[ "MIT" ]
1,160
2015-04-17T18:47:12.000Z
2022-03-30T20:42:26.000Z
thefuck/rules/cd_correction.py
HiteshMah-Jan/thefuck
132c62262246824470934c2c6f46919ef6f00203
[ "MIT" ]
4,399
2015-04-17T18:36:04.000Z
2022-03-31T07:01:03.000Z
"""Attempts to spellcheck and correct failed cd commands""" import os import six from thefuck.specific.sudo import sudo_support from thefuck.rules import cd_mkdir from thefuck.utils import for_app, get_close_matches __author__ = "mmussomele" MAX_ALLOWED_DIFF = 0.6 def _get_sub_dirs(parent): """Returns a list o...
29.725806
96
0.637005