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
dcc5975e820927a9cdf1ae7282e9fef0f42b40f8
591
py
Python
bin/convert_geofon_to_quakeml.py
trichter/sito
1b3895f3a56fe0fa6cdce1201545111025d606c8
[ "MIT" ]
18
2015-01-30T00:48:30.000Z
2021-04-03T03:11:15.000Z
bin/convert_geofon_to_quakeml.py
trichter/sito
1b3895f3a56fe0fa6cdce1201545111025d606c8
[ "MIT" ]
null
null
null
bin/convert_geofon_to_quakeml.py
trichter/sito
1b3895f3a56fe0fa6cdce1201545111025d606c8
[ "MIT" ]
21
2015-04-09T13:55:13.000Z
2021-06-19T22:22:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Convert SeiscompEventXML version 0.6 to QuakeML. arguments: files to convert write to output_geofon.xml """ import sys from sito.events import read_regex from obspy.core.event import Catalog def read_files(fnames): out = Catalog() for fname in fnames: ...
22.730769
61
0.651438
656a58fb0e48ec13beb5fa0bec4dca6fab3b4ec9
11,533
py
Python
glue/core/fixed_resolution_buffer.py
areza7/glue
42b68baec522b257e70a2f902c151233a0414720
[ "BSD-3-Clause" ]
null
null
null
glue/core/fixed_resolution_buffer.py
areza7/glue
42b68baec522b257e70a2f902c151233a0414720
[ "BSD-3-Clause" ]
null
null
null
glue/core/fixed_resolution_buffer.py
areza7/glue
42b68baec522b257e70a2f902c151233a0414720
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from glue.core.exceptions import IncompatibleDataException from glue.core.component import CoordinateComponent from glue.core.coordinate_helpers import dependent_axes from glue.utils import unbroadcast, broadcast_to, broadcast_arrays_minimal # TODO: cache needs to be updated when links are removed/c...
41.485612
121
0.666435
dc40a5d91fa5c06ee74a1cb4fc480fb3cf39033f
9,673
py
Python
sdk/python/pulumi_azure_nextgen/compute/latest/get_availability_set.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/compute/latest/get_availability_set.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/compute/latest/get_availability_set.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
48.124378
862
0.701023
eb957f58185d9e99346f5ca7cdc859641147bda0
11,579
py
Python
fuocore/core/player.py
AmyLewis/feeluown-core
0aecb39ce49504b04fa54a391260e9976220a288
[ "MIT" ]
null
null
null
fuocore/core/player.py
AmyLewis/feeluown-core
0aecb39ce49504b04fa54a391260e9976220a288
[ "MIT" ]
null
null
null
fuocore/core/player.py
AmyLewis/feeluown-core
0aecb39ce49504b04fa54a391260e9976220a288
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ fuocore.player ~~~~~~~~~~~~~~ fuocore media player. """ from abc import ABCMeta, abstractmethod from enum import Enum import logging import random from mpv import MPV, MpvEventID, MpvEventEndFile from fuocore.dispatch import Signal logger = logging.getLogger(__name__) cl...
28.310513
81
0.606702
3d7c8fd0f8087f1c4c1a9d522fc4f517bd3153b7
7,470
py
Python
pgoapi/protos/pogoprotos/enums/activity_type_pb2.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
pgoapi/protos/pogoprotos/enums/activity_type_pb2.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
pgoapi/protos/pogoprotos/enums/activity_type_pb2.py
z3cr3t/api
960c0c10a76e1f46e99de7f8de8644b00cf95d0d
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/enums/activity_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google...
40.819672
1,520
0.741901
34a0a466f1c95aafe7a6e8fdd068f0dc898b7523
537
py
Python
code/547.Number-of-Provinces.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
1
2019-09-22T03:08:14.000Z
2019-09-22T03:08:14.000Z
code/547.Number-of-Provinces.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
code/547.Number-of-Provinces.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
class Solution: def findCircleNum(self, isConnected: List[List[int]]) -> int: n = len(isConnected) visited = [False] * n def dfs(s): nonlocal isConnected if visited[s]: return visited[s] = True for i in range(n): ...
26.85
65
0.39851
40a5df0b823f67c0008300d42b4f8224c67a5a58
610
py
Python
saltstack/pillar_sls_rendering_error/srv/modules/pillar/id_info.py
gladiatr72/gaze_upon
fdeb9c8f860bd5b4ef388471b793434a2131ccf7
[ "MIT" ]
null
null
null
saltstack/pillar_sls_rendering_error/srv/modules/pillar/id_info.py
gladiatr72/gaze_upon
fdeb9c8f860bd5b4ef388471b793434a2131ccf7
[ "MIT" ]
null
null
null
saltstack/pillar_sls_rendering_error/srv/modules/pillar/id_info.py
gladiatr72/gaze_upon
fdeb9c8f860bd5b4ef388471b793434a2131ccf7
[ "MIT" ]
null
null
null
# vim: ft=python import logging from stephens_little_package import traceit, PrettyLog log = logging.getLogger(__name__) @traceit def ext_pillar(minion_id, pillar): retval = {} if __grains__.get('wants_me_some_id_info', False): id = __opts__['id'] exp = __salt__['id_info.explode'](id) ...
21.785714
81
0.631148
a41e180d206ce2f2841065f021ce013eb137a491
416
py
Python
api/migrations/0003_auto_20200627_1908.py
nemesis-umbrella/HorarioAPI
f2638cd7f1b969ac2583807b33b811f4c04f9c90
[ "MIT" ]
null
null
null
api/migrations/0003_auto_20200627_1908.py
nemesis-umbrella/HorarioAPI
f2638cd7f1b969ac2583807b33b811f4c04f9c90
[ "MIT" ]
null
null
null
api/migrations/0003_auto_20200627_1908.py
nemesis-umbrella/HorarioAPI
f2638cd7f1b969ac2583807b33b811f4c04f9c90
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-28 00:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20200627_1828'), ] operations = [ migrations.AlterField( model_name='asistencia', name='puntualidad...
21.894737
75
0.612981
e8d86d480e5247fef80c4230ee55e14a3176998d
9,472
py
Python
homeassistant/components/proximity.py
kdschlosser/home-assistant
a94a24f6f83508642e220fadf2799789dc32a25b
[ "Apache-2.0" ]
2
2020-06-17T01:23:01.000Z
2020-06-18T22:17:14.000Z
homeassistant/components/proximity.py
kdschlosser/home-assistant
a94a24f6f83508642e220fadf2799789dc32a25b
[ "Apache-2.0" ]
6
2021-02-08T21:02:40.000Z
2022-03-12T00:52:16.000Z
homeassistant/components/proximity.py
kdschlosser/home-assistant
a94a24f6f83508642e220fadf2799789dc32a25b
[ "Apache-2.0" ]
1
2020-01-09T12:36:16.000Z
2020-01-09T12:36:16.000Z
""" Support for tracking the proximity of a device. Component to monitor the proximity of devices to a particular zone and the direction of travel. For more details about this component, please refer to the documentation at https://home-assistant.io/components/proximity/ """ import logging import voluptuous as vol ...
36.856031
79
0.648226
44740f67d813af2e5d9b1e2a6d538f82fcc81e1c
48,357
py
Python
tests/test_intl.py
daobook/sphinx
ef8daca1f9a82ede9b4b0b5cde93f3414cee3dfe
[ "BSD-2-Clause" ]
null
null
null
tests/test_intl.py
daobook/sphinx
ef8daca1f9a82ede9b4b0b5cde93f3414cee3dfe
[ "BSD-2-Clause" ]
null
null
null
tests/test_intl.py
daobook/sphinx
ef8daca1f9a82ede9b4b0b5cde93f3414cee3dfe
[ "BSD-2-Clause" ]
null
null
null
"""Test message patching for internationalization purposes. Runs the text builder in the test root. """ import os import re import pygments import pytest from babel.messages import mofile, pofile from babel.messages.catalog import Catalog from docutils import nodes from sphinx import locale from sphinx.testing.util...
35.117647
104
0.603263
5b50c0d0d6819e10770bf62ca65017e622e2a31e
3,074
py
Python
img_process.py
willsirius/Openrave_Painter
2584722ee23f97baa54c56d7c9fffcbe895a3cc6
[ "MIT" ]
null
null
null
img_process.py
willsirius/Openrave_Painter
2584722ee23f97baa54c56d7c9fffcbe895a3cc6
[ "MIT" ]
null
null
null
img_process.py
willsirius/Openrave_Painter
2584722ee23f97baa54c56d7c9fffcbe895a3cc6
[ "MIT" ]
null
null
null
import cv2 import time import openravepy import numpy as np img = cv2.imread('obj.jpg') img = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) (thresh, im_bw) = cv2.threshold(img, 128, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU) im_bw = cv2.threshold(im_bw, thresh, 255, cv2.THRESH_BINARY)[1] rows, cols = im_bw.shape[:2] # dimen...
33.053763
175
0.736174
134dab9647763062c11ff584c1b98d399d6eda74
5,399
py
Python
src/GAN_CNNRegression/train.py
MatthieuSarkis/criticality
2939d7408bcd5d3bf7f237cfe56c836cf361e64f
[ "Apache-2.0" ]
null
null
null
src/GAN_CNNRegression/train.py
MatthieuSarkis/criticality
2939d7408bcd5d3bf7f237cfe56c836cf361e64f
[ "Apache-2.0" ]
null
null
null
src/GAN_CNNRegression/train.py
MatthieuSarkis/criticality
2939d7408bcd5d3bf7f237cfe56c836cf361e64f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Written by Adel Sohbi and Matthieu Sarkis, https://github.com/adelshb, https://github.com/MatthieuSarkis # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://w...
42.179688
113
0.65438
056147966b1fda2532b1e086eddede0934dd7ef2
1,494
py
Python
Setting/config.py
jyun790430/CrawlerH
4329c42dfbf3eacba9711eaf1dc90106166ecdcc
[ "MIT" ]
null
null
null
Setting/config.py
jyun790430/CrawlerH
4329c42dfbf3eacba9711eaf1dc90106166ecdcc
[ "MIT" ]
3
2021-03-31T19:49:20.000Z
2021-12-13T20:38:02.000Z
Setting/config.py
jyun790430/CrawlerH
4329c42dfbf3eacba9711eaf1dc90106166ecdcc
[ "MIT" ]
null
null
null
#coding:utf-8 MYSQL_CONN = { 'host' : '127.0.0.1', 'db': 'crawlh', 'user': 'root', 'passwd': 'root', 'port': 3306 } PRONHUB_CATEGORY = [ 'https://cn.pornhub.com/video/search?search=%E7%A0%B4%E8%A7%A3' ] PRONHUB_PREMIUM_CATEGORY = [ 'https://cn.pornhubpremium.com/video?c=111&hd=1&premium=1' ]...
25.322034
273
0.789826
a69211bb210d960690ff23acf96e009c7d18cf52
4,083
py
Python
data_structures/linked_list/deque_doubly.py
daltonkato/Python
d1b5b0bc5ceb18f5180a13930254d31159c7e648
[ "MIT" ]
null
null
null
data_structures/linked_list/deque_doubly.py
daltonkato/Python
d1b5b0bc5ceb18f5180a13930254d31159c7e648
[ "MIT" ]
null
null
null
data_structures/linked_list/deque_doubly.py
daltonkato/Python
d1b5b0bc5ceb18f5180a13930254d31159c7e648
[ "MIT" ]
null
null
null
""" Implementing Deque using DoublyLinkedList ... Operations: 1. insertion in the front -> O(1) 2. insertion in the end -> O(1) 3. remove from the front -> O(1) 4. remove from the end -> O(1) """ class _DoublyLinkedBase: """A Private class (to be inherited)""" class _Node: __slots__ =...
28.354167
75
0.55278
401e81bb2bdd923f8c901b49121472e38efa1cc1
35,636
py
Python
irlmethods/general_deep_maxent.py
ranok92/deepirl
88c7e76986243cf0b988d8d7dc0eef6b58e07864
[ "MIT" ]
2
2019-01-04T22:03:15.000Z
2019-04-03T00:16:11.000Z
irlmethods/general_deep_maxent.py
ranok92/deepirl
88c7e76986243cf0b988d8d7dc0eef6b58e07864
[ "MIT" ]
null
null
null
irlmethods/general_deep_maxent.py
ranok92/deepirl
88c7e76986243cf0b988d8d7dc0eef6b58e07864
[ "MIT" ]
null
null
null
""" Implements deep maxent IRL (Wulfmeier et. all) in a general, feature-type agnostic way. """ import sys import random from pathlib import Path import torch import torch.nn as nn import torch.nn.functional as F from torch.optim import Adam from tensorboardX import SummaryWriter sys.path.insert(0, "..") from neural_n...
31.425044
82
0.599282
3a19ce4041e2b28589f65f5103ddcbb885dafa55
5,286
py
Python
prim's-algo-py.py
kapilbindal/Python-for-beginner
a3e02dc3fe1b847dbda24455400b52b9408a61dd
[ "MIT" ]
48
2018-10-05T19:29:56.000Z
2021-12-31T04:59:37.000Z
prim's-algo-py.py
kapilbindal/Python-for-beginner
a3e02dc3fe1b847dbda24455400b52b9408a61dd
[ "MIT" ]
127
2018-10-05T19:34:28.000Z
2022-02-10T08:50:16.000Z
prim's-algo-py.py
kapilbindal/Python-for-beginner
a3e02dc3fe1b847dbda24455400b52b9408a61dd
[ "MIT" ]
168
2018-10-05T19:30:01.000Z
2022-01-10T11:28:21.000Z
class Graph: def __init__(self): # dictionary containing keys that map to the corresponding vertex object self.vertices = {} def add_vertex(self, key): """Add a vertex with the given key to the graph.""" vertex = Vertex(key) self.vertices[key] = vertex def get_verte...
31.652695
84
0.573023
f88cc96096c4c14e60ec5770bc98e16ecf169790
984
py
Python
osm_policy_module/core/exceptions.py
TCSOSM-20/POL
8ba99ff372d2d8ef13b2c6865b16c0869fa04069
[ "Apache-2.0" ]
null
null
null
osm_policy_module/core/exceptions.py
TCSOSM-20/POL
8ba99ff372d2d8ef13b2c6865b16c0869fa04069
[ "Apache-2.0" ]
null
null
null
osm_policy_module/core/exceptions.py
TCSOSM-20/POL
8ba99ff372d2d8ef13b2c6865b16c0869fa04069
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Whitestack, LLC # ************************************************************* # This file is part of OSM Monitoring module # All Rights Reserved to Whitestack, LLC # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
30.75
75
0.703252
25f93b177fcb561caf0d421dc8b8848cc5f6e864
1,372
py
Python
tests/test_CKANTransform.py
bcgov/bcdc_2_bcdc
37f9641ee434fd9a40baf2d652a28a8bede642ce
[ "Apache-2.0" ]
1
2020-01-06T19:28:16.000Z
2020-01-06T19:28:16.000Z
tests/test_CKANTransform.py
bcgov/bcdc_2_bcdc
37f9641ee434fd9a40baf2d652a28a8bede642ce
[ "Apache-2.0" ]
12
2020-04-17T19:25:52.000Z
2021-11-01T21:22:47.000Z
tests/test_CKANTransform.py
bcgov/bcdc_2_bcdc
37f9641ee434fd9a40baf2d652a28a8bede642ce
[ "Apache-2.0" ]
1
2020-04-14T15:50:42.000Z
2020-04-14T15:50:42.000Z
"""used to verify methods in ckanCompare """ import logging import pytest import constants import CKANTransform import pprint # pylint: disable=logging-format-interpolation LOGGER = logging.getLogger(__name__) PP = pprint.PrettyPrinter(indent=4) def test_validateType(Transform): validTypes = constants.VALID_T...
31.906977
80
0.773324
a5eef10691281dc59ce4a214904965089c20649d
1,100
py
Python
migrations/versions/ef22dd6df3a8_.py
gzxultra/FlaskLoginManagement
0a36a36fa1322e91a35735280bb119c94d016592
[ "MIT" ]
null
null
null
migrations/versions/ef22dd6df3a8_.py
gzxultra/FlaskLoginManagement
0a36a36fa1322e91a35735280bb119c94d016592
[ "MIT" ]
null
null
null
migrations/versions/ef22dd6df3a8_.py
gzxultra/FlaskLoginManagement
0a36a36fa1322e91a35735280bb119c94d016592
[ "MIT" ]
null
null
null
"""empty message Revision ID: ef22dd6df3a8 Revises: 66814cba0685 Create Date: 2016-03-24 22:02:52.556712 """ # revision identifiers, used by Alembic. revision = 'ef22dd6df3a8' down_revision = '66814cba0685' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
31.428571
86
0.687273
d8b2438a78ed241dfad95623bb95bb3e170aa12e
8,247
py
Python
greent/services/omnicorp_postgres.py
TranslatorIIPrototypes/robo-commons
a915d80b70f7e68a70f6a5f7ff6e732d2e02db06
[ "MIT" ]
1
2020-02-05T20:00:52.000Z
2020-02-05T20:00:52.000Z
greent/services/omnicorp_postgres.py
TranslatorIIPrototypes/robo-commons
a915d80b70f7e68a70f6a5f7ff6e732d2e02db06
[ "MIT" ]
12
2020-05-07T16:40:15.000Z
2020-06-16T13:23:13.000Z
greent/services/omnicorp_postgres.py
TranslatorIIPrototypes/robo-commons
a915d80b70f7e68a70f6a5f7ff6e732d2e02db06
[ "MIT" ]
6
2018-02-23T20:25:50.000Z
2019-11-21T14:55:52.000Z
from string import Template import json import os import logging from greent.service import Service from greent.triplestore import TripleStore from greent.util import LoggingUtil from greent.util import Text from greent import node_types from pprint import pprint import datetime from collections import defaultdict impo...
35.701299
136
0.580575
3259bfaa09c2bc68028764c87a63e0adbf6a4a77
31,629
py
Python
eit/fem.py
ivo53/EIT-MPhys-Project
e907fdb99c2fb0bb2a33686385cfd98f89ec8cb2
[ "BSD-3-Clause" ]
2
2020-09-07T01:24:57.000Z
2020-12-12T16:41:59.000Z
eit/fem.py
ivo53/EIT-MPhys-Project
e907fdb99c2fb0bb2a33686385cfd98f89ec8cb2
[ "BSD-3-Clause" ]
1
2021-09-04T04:21:19.000Z
2021-09-11T11:42:00.000Z
eit/fem.py
ivo53/EIT-MPhys-Project
e907fdb99c2fb0bb2a33686385cfd98f89ec8cb2
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # pylint: disable=invalid-name, no-member, too-many-locals # pylint: disable=too-many-instance-attributes """ 2D/3D FEM routines """ # Copyright (c) Benyuan Liu. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. #from __future__ import division, absolut...
44.673729
190
0.59085
07ca034f42ed9914133896adf55819b82f730358
3,447
py
Python
tools/adb.py
lingyfh/r8
03f8577d014124c37760c0d6439a8dcbeb0742a1
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
3
2021-07-03T15:26:05.000Z
2021-09-01T09:50:44.000Z
tools/adb.py
lingyfh/r8
03f8577d014124c37760c0d6439a8dcbeb0742a1
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
tools/adb.py
lingyfh/r8
03f8577d014124c37760c0d6439a8dcbeb0742a1
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
1
2021-09-24T10:09:20.000Z
2021-09-24T10:09:20.000Z
#!/usr/bin/env python # Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import subprocess import time import utils def install_apk_on_emulator(apk, emulator_i...
30.776786
80
0.693937
0b37439270d732847abdfbf043fc10cd217545d3
303
py
Python
src/backend/app/utils/jsonutils.py
douglasdaly/dougliz-wedding
da673baf3a7387c3818960c0ffa12ab7c830a89b
[ "MIT" ]
5
2020-02-02T02:39:23.000Z
2021-08-17T15:50:57.000Z
src/backend/app/utils/jsonutils.py
douglasdaly/dougliz-wedding
da673baf3a7387c3818960c0ffa12ab7c830a89b
[ "MIT" ]
4
2021-03-31T19:39:57.000Z
2022-01-22T09:29:10.000Z
src/backend/app/utils/jsonutils.py
douglasdaly/dougliz-wedding
da673baf3a7387c3818960c0ffa12ab7c830a89b
[ "MIT" ]
1
2020-04-12T17:11:43.000Z
2020-04-12T17:11:43.000Z
# -*- coding: utf-8 -*- """ JSON utilities. """ import json from uuid import UUID class JSONEncoderUUID(json.JSONEncoder): """ JSON Encoder with UUID support. """ def default(self, obj): if isinstance(obj, UUID): return obj.hex return super().default(obj)
16.833333
40
0.59736
610228375392606f289a9d6cc2fc1b6be0d0ae40
3,572
py
Python
custom_components/fpl/config_flow.py
dorgan/hass-fpl
304b4d4f5f6186202fee1d94fb988a298f8f0777
[ "MIT" ]
null
null
null
custom_components/fpl/config_flow.py
dorgan/hass-fpl
304b4d4f5f6186202fee1d94fb988a298f8f0777
[ "MIT" ]
null
null
null
custom_components/fpl/config_flow.py
dorgan/hass-fpl
304b4d4f5f6186202fee1d94fb988a298f8f0777
[ "MIT" ]
null
null
null
from collections import OrderedDict import voluptuous as vol from .fplapi import FplApi from homeassistant import config_entries import aiohttp from .const import DOMAIN, CONF_USERNAME, CONF_PASSWORD, CONF_NAME from .fplapi import ( LOGIN_RESULT_OK, LOGIN_RESULT_INVALIDUSER, LOGIN_RESULT_INVALIDPASSWORD,...
32.472727
85
0.640258
2a717c2d0f014320e0c6db667e1b75eef413486c
282
py
Python
invenio_stats/contrib/file_download/__init__.py
Glignos/invenio-stats
dd17ed37932d78432a4637498c1e54131ae66a9a
[ "MIT" ]
null
null
null
invenio_stats/contrib/file_download/__init__.py
Glignos/invenio-stats
dd17ed37932d78432a4637498c1e54131ae66a9a
[ "MIT" ]
null
null
null
invenio_stats/contrib/file_download/__init__.py
Glignos/invenio-stats
dd17ed37932d78432a4637498c1e54131ae66a9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """File downloads Elasticsearch index templates."""
28.2
72
0.712766
1ffda41af80d6a2b20206f773189fa59adacb773
960
py
Python
text generator/scrapy/indeed/pipelines.py
BaiganKing/allay-ds
a04f1eba7880e9f88b7f3e94f4213b3d755c92ea
[ "MIT" ]
1
2020-04-08T22:26:39.000Z
2020-04-08T22:26:39.000Z
text generator/scrapy/indeed/pipelines.py
BaiganKing/allay-ds
a04f1eba7880e9f88b7f3e94f4213b3d755c92ea
[ "MIT" ]
7
2020-04-23T20:43:37.000Z
2020-11-13T17:14:24.000Z
text generator/scrapy/indeed/pipelines.py
BloomTech-Labs/allay-ds
ee81a9ff0eb28a19f1c634ce72f5752c36ffc786
[ "MIT" ]
3
2020-04-29T15:32:22.000Z
2020-08-13T15:40:41.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.exceptions import DropItem from scrapy.exporters import CsvItemExporter class ValidateItemPipeline(object): de...
27.428571
65
0.675
232a418260d4319f55376ac35f5f394d36a3ea13
55,927
py
Python
entity_event/models.py
robdmc/django-entity-event
8426734faba5e22169b3c329aa9e088b9300dd35
[ "MIT" ]
null
null
null
entity_event/models.py
robdmc/django-entity-event
8426734faba5e22169b3c329aa9e088b9300dd35
[ "MIT" ]
null
null
null
entity_event/models.py
robdmc/django-entity-event
8426734faba5e22169b3c329aa9e088b9300dd35
[ "MIT" ]
null
null
null
from collections import defaultdict from datetime import datetime from operator import or_ from six.moves import reduce from cached_property import cached_property from django.contrib.postgres.fields import JSONField from django.core.serializers.json import DjangoJSONEncoder from django.db import models, transaction f...
41.305022
120
0.666118
8b7e0f2a1f8d7363c4a7045709aa260449c86b2e
4,816
py
Python
mysite/myapp/forms.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
mysite/myapp/forms.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
mysite/myapp/forms.py
MarkArren/PhotoSocial
bb401f465a464e7cf6a7fac184cef0d40e0a9525
[ "MIT" ]
null
null
null
from django import forms from django.forms import ModelForm from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.validators import EmailValidator from . import models from .models import ProfileModel from io import BytesIO from PIL import Image, ExifTags ...
28.163743
135
0.706811
96f5f81c1f04b7d64ddbd6fd461348c6986d9ff6
94,579
py
Python
tensorflow/python/ops/array_ops.py
Matanley/tensorflow
be5bcb90566013b495c3f267423d7b7c5269b9ee
[ "Apache-2.0" ]
1
2018-03-01T08:32:28.000Z
2018-03-01T08:32:28.000Z
tensorflow/python/ops/array_ops.py
shenruixiang10086/tensorflow
acb1ef68f5aea3b6f7f1e14db588b74134719b5e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/array_ops.py
shenruixiang10086/tensorflow
acb1ef68f5aea3b6f7f1e14db588b74134719b5e
[ "Apache-2.0" ]
2
2019-01-17T08:02:34.000Z
2021-09-26T17:11:21.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...
34.230547
106
0.649806
fc224e12f18d586eb073570280eafbdbf71eb48f
12,938
py
Python
likelihood/tools.py
jzsmoreno/MLearning
45ff911f56b4dd76eb43bc7934df66dde0377cd4
[ "MIT" ]
1
2020-10-10T01:50:35.000Z
2020-10-10T01:50:35.000Z
likelihood/tools.py
jzsmoreno/MLearning
45ff911f56b4dd76eb43bc7934df66dde0377cd4
[ "MIT" ]
null
null
null
likelihood/tools.py
jzsmoreno/MLearning
45ff911f56b4dd76eb43bc7934df66dde0377cd4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt """ Data Science from Scratch, Second Edition, by Joel Grus (O'Reilly).Copyright 2019 Joel Grus, 978-1-492-04113-9 """ def minibatches(dataset, batch_size, shuffle = True): """Generates 'batch_size'-sized minibatches from the dataset Parameters ---...
26.842324
112
0.535941
e6ae75e3f1c892ee2f2ca00e2dfe19a9ff89d5b2
9,931
py
Python
train.py
HawkSun562/lw-pose_modify
f8906704aa2ef2be1df2004b90cd4ec52718f589
[ "Apache-2.0" ]
1
2021-08-24T07:00:47.000Z
2021-08-24T07:00:47.000Z
train.py
HawkSun562/lw-pose_modify
f8906704aa2ef2be1df2004b90cd4ec52718f589
[ "Apache-2.0" ]
null
null
null
train.py
HawkSun562/lw-pose_modify
f8906704aa2ef2be1df2004b90cd4ec52718f589
[ "Apache-2.0" ]
null
null
null
import argparse import cv2 import os import torch from torch.nn import DataParallel import torch.optim as optim from torch.utils.data import DataLoader from torchvision import transforms from datasets.coco import CocoTrainDataset from datasets.transformations import ConvertKeypoints, Scale, Rotate, CropPad, Flip from...
55.792135
191
0.642433
913ba5a6e3386099e14326b7aa8f12531ef8ff77
21,676
py
Python
python/tvm/script/scope_handler.py
h77h7/tvm-04.26
1bd8e6b921f392ae29b7672159326d94d40d6922
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
3
2021-04-30T04:09:44.000Z
2021-07-07T09:49:51.000Z
python/tvm/script/scope_handler.py
h77h7/tvm-04.26
1bd8e6b921f392ae29b7672159326d94d40d6922
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2019-10-22T21:09:49.000Z
2019-10-22T21:09:49.000Z
python/tvm/script/scope_handler.py
h77h7/tvm-04.26
1bd8e6b921f392ae29b7672159326d94d40d6922
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
2
2019-10-22T08:48:21.000Z
2022-02-19T02:17:50.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...
34.737179
100
0.577966
9a87e10612d3c46c9c370b2414314511217e8bfc
2,377
py
Python
ubicenter/plotly.py
MaxGhenis/ubicenter.py
6444e456f278216ec17c0bdd818212af7804c67a
[ "MIT" ]
null
null
null
ubicenter/plotly.py
MaxGhenis/ubicenter.py
6444e456f278216ec17c0bdd818212af7804c67a
[ "MIT" ]
null
null
null
ubicenter/plotly.py
MaxGhenis/ubicenter.py
6444e456f278216ec17c0bdd818212af7804c67a
[ "MIT" ]
null
null
null
from plotly import graph_objects as go from typing import Union CONFIG = {"displayModeBar": False} LOGO_URL = ( "https://raw.githubusercontent.com/UBICenter/ubicenter.org/master/" "assets/images/logos/wide-blue.jpg" ) LIGHTER_BLUE = "#ABCEEB" # Blue 100. LIGHT_BLUE = "#49A6E2" # Blue 500. BLUE = "#1976D2"...
25.55914
71
0.604964
667db24e93107503ee9bdae285b6ab24da57538d
2,825
py
Python
delve/tests/test_torch.py
dionhaefner/delve
811756520cbfd8dce4427c53203ac193f61a94d1
[ "MIT" ]
69
2019-03-04T20:59:59.000Z
2022-02-02T17:44:09.000Z
delve/tests/test_torch.py
dionhaefner/delve
811756520cbfd8dce4427c53203ac193f61a94d1
[ "MIT" ]
30
2019-02-26T13:34:06.000Z
2022-01-24T13:08:25.000Z
delve/tests/test_torch.py
dionhaefner/delve
811756520cbfd8dce4427c53203ac193f61a94d1
[ "MIT" ]
11
2019-04-22T21:53:56.000Z
2021-12-22T13:20:05.000Z
import tempfile import pytest import torch import torch.nn from delve import CheckLayerSat from delve.writers import CSVandPlottingWriter device = "cuda:0" if torch.cuda.is_available() else "cpu" TEMP_DIR = tempfile.TemporaryDirectory() TEMP_DIRNAME = TEMP_DIR.name def test_dense_saturation_runs(): save_path =...
30.053191
67
0.588673
ef68d0dc6b30640aa0342204c6916ce12fab6b51
5,565
py
Python
tools/text_demo.py
lz20061213/quadrilateral
ee0a38c91bfc979998f63963585b5e00f24a49a0
[ "MIT" ]
2
2018-08-12T13:15:55.000Z
2021-06-14T18:48:09.000Z
tools/text_demo.py
lz20061213/quadrilateral
ee0a38c91bfc979998f63963585b5e00f24a49a0
[ "MIT" ]
null
null
null
tools/text_demo.py
lz20061213/quadrilateral
ee0a38c91bfc979998f63963585b5e00f24a49a0
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths from model.test import test_net, im_detect from model.config import cfg, cfg_from_file, cfg_from_list from datasets.factory import get_imdb import argparse import pprint import time, os, sys ...
32.16763
154
0.637376
fad14b06d09f5ea3e28830ff5854ff6aece6f4f8
4,690
py
Python
flatlib/ephem/swe.py
D-Vaillant/flatlib
fba89c72c13279c0709b0967a597427ee177665b
[ "MIT" ]
196
2015-03-13T21:08:26.000Z
2022-03-27T20:46:33.000Z
flatlib/ephem/swe.py
D-Vaillant/flatlib
fba89c72c13279c0709b0967a597427ee177665b
[ "MIT" ]
71
2017-03-19T14:11:11.000Z
2022-02-20T17:37:28.000Z
flatlib/ephem/swe.py
D-Vaillant/flatlib
fba89c72c13279c0709b0967a597427ee177665b
[ "MIT" ]
77
2016-03-10T01:23:12.000Z
2022-02-27T22:18:12.000Z
""" This file is part of flatlib - (C) FlatAngle Author: João Ventura (flatangleweb@gmail.com) This module implements a simple interface with the C Swiss Ephemeris using the pyswisseph library. The pyswisseph library must be already installed and accessible. """ import swisse...
26.201117
76
0.60064
54ec95d23453f1268414c035dedde0b7e88b6407
70,903
py
Python
ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py
zyclove/ambari
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py
zyclove/ambari
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.5/HIVE/test_hive_server_int.py
zyclove/ambari
1032f0f54cb7b312b9a3b37570cd840f4e1e89d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2 ''' 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"); y...
50.464769
355
0.616363
2c90894721f0ecafa2751cbb405e21d40c000c08
2,735
py
Python
main.py
carreb/autopull
cce0f50fd5648685b5608b319ff9646e329cdd19
[ "MIT" ]
null
null
null
main.py
carreb/autopull
cce0f50fd5648685b5608b319ff9646e329cdd19
[ "MIT" ]
1
2022-02-14T16:05:00.000Z
2022-02-15T14:43:57.000Z
main.py
carreb/autopull
cce0f50fd5648685b5608b319ff9646e329cdd19
[ "MIT" ]
null
null
null
from importlib.resources import contents from github import Github from time import sleep from datetime import datetime import git import os import configparser #var config = configparser.ConfigParser() config.read('config.ini') info = config['info'] repo_name = info['repo-name'] owner_username = info['...
32.951807
126
0.547349
505fadcdbe57499071c2c4e0ca7a1e20d7f37311
27,597
py
Python
spark_fhir_schemas/stu3/complex_types/careplan.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/stu3/complex_types/careplan.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/stu3/complex_types/careplan.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import StructType, StructField, StringType, ArrayType, DataType # This file is auto-generated by generate_schema so do not edit manually # noinspection PyPep8Naming class CarePlanSchema: """ Describes the intention of how one or more practitione...
50.451554
100
0.538863
7f7c31d0a32c80932b84a3b2831caef6fef1ffa3
10,096
py
Python
npms/viz/viz_multi_shape.py
Tiamat-Tech/npms
2d1bce8c98b0f24aa69273975c52b2fbdb101c29
[ "MIT" ]
96
2021-08-01T18:19:04.000Z
2022-03-04T02:53:47.000Z
npms/viz/viz_multi_shape.py
Tiamat-Tech/npms
2d1bce8c98b0f24aa69273975c52b2fbdb101c29
[ "MIT" ]
3
2021-08-18T12:57:39.000Z
2021-11-30T07:18:46.000Z
npms/viz/viz_multi_shape.py
Tiamat-Tech/npms
2d1bce8c98b0f24aa69273975c52b2fbdb101c29
[ "MIT" ]
8
2021-08-03T01:51:10.000Z
2021-12-31T09:46:25.000Z
import os, sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import shutil import open3d as o3d import numpy as np import trimesh import json from utils.pcd_utils import (BBox, transform_pointcloud_to_opengl_coords, rotate_aroun...
35.055556
147
0.565471
63d5fb092f0cc24e2c27f0886b0cd5ba71e075d6
4,033
py
Python
tests/test_hvac.py
joro75/mytoyota
405f7d84b3737846124aac6e7692aa6da52838a1
[ "MIT" ]
null
null
null
tests/test_hvac.py
joro75/mytoyota
405f7d84b3737846124aac6e7692aa6da52838a1
[ "MIT" ]
1
2022-02-12T16:46:48.000Z
2022-02-12T16:46:48.000Z
tests/test_hvac.py
joro75/mytoyota
405f7d84b3737846124aac6e7692aa6da52838a1
[ "MIT" ]
null
null
null
"""pytest tests for mytoyota.models.hvac.Hvac""" from mytoyota.models.hvac import Hvac # pylint: disable=no-self-use class TestHvac: """pytest functions to test Hvac""" @staticmethod def _create_example_data(): """Create hvac with predefined data""" return Hvac( { ...
31.023077
60
0.521944
337faeca365f18a0b66d561a127dccebaac916fc
16,194
py
Python
app.py
DanielAndreasen/TripMeal
78446b1a23b32cb0c5617a6c98cebefa30e5bcb0
[ "MIT" ]
10
2017-02-21T22:50:22.000Z
2020-11-04T08:07:29.000Z
app.py
DanielAndreasen/TripMeal
78446b1a23b32cb0c5617a6c98cebefa30e5bcb0
[ "MIT" ]
5
2017-02-22T13:12:39.000Z
2021-05-17T10:56:32.000Z
app.py
DanielAndreasen/TripMeal
78446b1a23b32cb0c5617a6c98cebefa30e5bcb0
[ "MIT" ]
null
null
null
from flask import Flask, render_template, flash, jsonify, request, url_for, \ redirect, session, g from dbconnect import connection from MySQLdb import escape_string from wtforms import Form, TextField, PasswordField, BooleanField, validators, TextAreaField, StringField, SelectField from passlib.hash ...
34.825806
154
0.544214
292e5572e9b26b2b27b00331d2425f003f6e2cc2
4,846
py
Python
DM562/Python Exercises/asg3-wienerpolygon/wiener.py
RuneSemey/course-help
8eab36d89d02dd12df2c23786c982f4045262a45
[ "MIT" ]
2
2019-10-03T16:25:18.000Z
2019-11-19T16:51:22.000Z
DM562/Python Exercises/asg3-wienerpolygon/wiener.py
RuneSemey/course-help
8eab36d89d02dd12df2c23786c982f4045262a45
[ "MIT" ]
7
2019-10-03T15:31:57.000Z
2019-10-10T14:22:15.000Z
DM562/Python Exercises/asg3-wienerpolygon/wiener.py
RuneSemey/course-help
8eab36d89d02dd12df2c23786c982f4045262a45
[ "MIT" ]
28
2019-10-03T14:46:09.000Z
2019-10-29T13:31:40.000Z
"""wiener.py Lab 3: Wiener Index / Polygons ------------------------------ This lab has two independent parts, you need to provide you solutions via implementations in wiener.py (this file) and polygon.py. Hint: Start with the implementations for polygon.py, to ensure you get most of the points with a small amount o...
29.192771
83
0.524144
7bf1f88b52266224a0a123de193c37b3adf4241b
12,299
py
Python
tutorials/rnn/ptb/ptb_word_lm.py
obreitwi/tensorflow-models
c15fada28113eca32dc98d6e3bec4755d0d5b4c2
[ "Apache-2.0" ]
null
null
null
tutorials/rnn/ptb/ptb_word_lm.py
obreitwi/tensorflow-models
c15fada28113eca32dc98d6e3bec4755d0d5b4c2
[ "Apache-2.0" ]
null
null
null
tutorials/rnn/ptb/ptb_word_lm.py
obreitwi/tensorflow-models
c15fada28113eca32dc98d6e3bec4755d0d5b4c2
[ "Apache-2.0" ]
1
2019-11-04T11:52:51.000Z
2019-11-04T11:52:51.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.862694
81
0.669241
fbbd1cc5a0d89039832575a593b631016bd6a814
2,451
py
Python
caldera/dataset/_graph_dataset.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
2
2021-12-13T17:52:17.000Z
2021-12-13T17:52:18.000Z
caldera/dataset/_graph_dataset.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
4
2020-10-06T21:06:15.000Z
2020-10-10T01:18:23.000Z
caldera/dataset/_graph_dataset.py
jvrana/caldera
a346324e77f20739e00a82f97530dda4906f59dd
[ "MIT" ]
null
null
null
from typing import List from typing import Optional from typing import overload import torch from torch.utils.data import Dataset from caldera.data import GraphBatch from caldera.data import GraphData from caldera.transforms._base import TransformCallable class GraphDataset(Dataset): """Graph dataset.""" d...
26.074468
86
0.603427
de869e9af2d05f16908d65ff7bff0ebcef20654c
693
py
Python
apps/cms/migrations/0003_auto_20211013_1635.py
truhlik/what_articles
a212b78c7137f1a4e7008bb06c927c2a60ef9b9f
[ "MIT" ]
null
null
null
apps/cms/migrations/0003_auto_20211013_1635.py
truhlik/what_articles
a212b78c7137f1a4e7008bb06c927c2a60ef9b9f
[ "MIT" ]
null
null
null
apps/cms/migrations/0003_auto_20211013_1635.py
truhlik/what_articles
a212b78c7137f1a4e7008bb06c927c2a60ef9b9f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-13 16:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cms', '0002_auto_20211013_1612'), ] operations = [ migrations.AddField( model_name='article', name='title_de', ...
26.653846
92
0.593074
26d892d2cedddbc5215fdd76ceb0a0e4a54142ab
14,773
py
Python
src/gui.py
Jack477/CommanderPi_rockpi
25bd80d982d6627b71d9e174021611f6d734de3d
[ "MIT" ]
3
2021-03-24T10:46:20.000Z
2021-11-12T12:24:45.000Z
src/gui.py
Jack477/CommanderPi_rockpi
25bd80d982d6627b71d9e174021611f6d734de3d
[ "MIT" ]
null
null
null
src/gui.py
Jack477/CommanderPi_rockpi
25bd80d982d6627b71d9e174021611f6d734de3d
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import resources as rs import update as up import tkinter as tk import theme as th import importlib import webbrowser from tkinter import messagebox as msb from tkinter import * from tkinter import ttk from PIL import Image, ImageTk ### TODO: Move change_theme funct...
38.272021
175
0.695323
7310ddf8902515ec57c147bac72a9d0d43af3a9f
10,297
py
Python
autotest/gdrivers/ers.py
Instant-Monkey/gdal
e4755c13394841ded981c885da2fc4e257f22c6b
[ "MIT" ]
null
null
null
autotest/gdrivers/ers.py
Instant-Monkey/gdal
e4755c13394841ded981c885da2fc4e257f22c6b
[ "MIT" ]
3
2019-02-27T00:43:06.000Z
2019-06-28T21:57:10.000Z
autotest/gdrivers/ers.py
TileDB-Inc/gdal
dc824494cc3f96ead82eb42be9a8bcfb1466073b
[ "MIT" ]
1
2021-04-26T14:47:38.000Z
2021-04-26T14:47:38.000Z
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test ERS format driver. # Author: Frank Warmerdam <warmerdam@pobox.com> # #################################################################...
33.650327
614
0.588132
76f0427af25c4989945127e6a8cb7e3e94718da5
990
py
Python
countdown with user input.py
Pergamon256/Countdown
8c928d4ec64c98b6535089d7498ccfa2425af5d1
[ "MIT" ]
null
null
null
countdown with user input.py
Pergamon256/Countdown
8c928d4ec64c98b6535089d7498ccfa2425af5d1
[ "MIT" ]
null
null
null
countdown with user input.py
Pergamon256/Countdown
8c928d4ec64c98b6535089d7498ccfa2425af5d1
[ "MIT" ]
null
null
null
import time x = int(input("Enter countdown minutes: ")) y = int(input("Enter countdown seconds: ")) print('Countdown started') #You can edit this to display whatever text you want, even include strings using {} and .format() def countdown(m,s): i=m j=s k=0 try: while True: if(j == -1): j = 59 i -= 1 ...
27.5
124
0.586869
fe14cba8bcfee021100f33f0dfe413f1571a894e
474
py
Python
django-ng/django_ng_project/django_ng_app/migrations/0013_auto_20170516_0106.py
bounouhmahmoud/ensi
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
1
2018-07-10T06:59:05.000Z
2018-07-10T06:59:05.000Z
django-ng/django_ng_project/django_ng_app/migrations/0013_auto_20170516_0106.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
null
null
null
django-ng/django_ng_project/django_ng_app/migrations/0013_auto_20170516_0106.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-16 01:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('django_ng_app', '0012_auto_20170515_1926'), ] operations = [ migrations.Alter...
22.571429
65
0.630802
fd45cc32616cf3d83a53f2682836eba99ddf8e58
228
py
Python
src/configuration/settings.py
arturosolutions/dta_test
2beb7e332a13929070655ec41894a727e9be03e0
[ "MIT" ]
null
null
null
src/configuration/settings.py
arturosolutions/dta_test
2beb7e332a13929070655ec41894a727e9be03e0
[ "MIT" ]
null
null
null
src/configuration/settings.py
arturosolutions/dta_test
2beb7e332a13929070655ec41894a727e9be03e0
[ "MIT" ]
null
null
null
import os DEBUG = True CURR_DIR = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.dirname(CURR_DIR) LOG_DIR = '{}/logs'.format(BASE_DIR) COMPANY_TABLENAME = 'company' SOURCE_TABLENAME = 'login_source'
20.727273
54
0.723684
40b3b0aa6706428ef6ddde1f0eba186bc70357ab
397
py
Python
app/rss_feeder/wsgi.py
RSaab/rss-scraper
9bf608878e7d08fea6508ae90b27f1c226b313f1
[ "MIT" ]
null
null
null
app/rss_feeder/wsgi.py
RSaab/rss-scraper
9bf608878e7d08fea6508ae90b27f1c226b313f1
[ "MIT" ]
null
null
null
app/rss_feeder/wsgi.py
RSaab/rss-scraper
9bf608878e7d08fea6508ae90b27f1c226b313f1
[ "MIT" ]
null
null
null
""" WSGI config for rss_feeder project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
2ad01f049ae585b9690e1f335cfc08ccf670e810
10,659
py
Python
sdk/python/pulumi_azure_native/importexport/v20200801/job.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/importexport/v20200801/job.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/importexport/v20200801/job.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
40.071429
478
0.634487
eac813c4d8e6114c0487fbab6a3f4bfb0cab6d6b
43,183
py
Python
userbot/modules/memes.py
jefanya14/Bot
2166a9cce2a595dd4dbe08f09c036c3757c1f25b
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-11-28T16:04:59.000Z
2021-11-28T16:04:59.000Z
userbot/modules/memes.py
jefanya14/Bot
2166a9cce2a595dd4dbe08f09c036c3757c1f25b
[ "Naumen", "Condor-1.1", "MS-PL" ]
5
2021-11-28T21:14:32.000Z
2021-11-29T09:20:22.000Z
userbot/modules/memes.py
jefanya14/Bot
2166a9cce2a595dd4dbe08f09c036c3757c1f25b
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-11-29T05:25:48.000Z
2021-11-29T05:25:48.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for having some fun with people. """ import os import time import urllib from asyncio import sleep ...
27.331013
157
0.492925
244babbf3623feea9ad9d1cd5fef7f49ecba161f
2,226
py
Python
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DeleteNatGatewayRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DeleteNatGatewayRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DeleteNatGatewayRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# 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.903226
75
0.774483
dc6b3a6418366530343586e5dec8c35e03595883
991
py
Python
Demo_6/libscipy_leastsq_demo.py
AlexYu-beta/Python_Study
6d90b605e47d9341b20a41e7384be269243b14ba
[ "Unlicense" ]
null
null
null
Demo_6/libscipy_leastsq_demo.py
AlexYu-beta/Python_Study
6d90b605e47d9341b20a41e7384be269243b14ba
[ "Unlicense" ]
null
null
null
Demo_6/libscipy_leastsq_demo.py
AlexYu-beta/Python_Study
6d90b605e47d9341b20a41e7384be269243b14ba
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ an example from http://old.sebug.net/paper/books/scipydoc/scipy_intro.html a simple demo using python scientific stack numpy and scipy and more """ import numpy as np from scipy.optimize import leastsq import pylab as pl def func(x, p): """ 数据拟合所用的函数: A*sin(2*pi*k*x + theta) """...
23.046512
74
0.63774
d7aa5ff4450f4209596552c357d120b178d4be73
1,221
py
Python
punkin/_value.py
artPlusPlus/punkin
0265b06d67463a5aaf27e0b2a771220d41cae5ee
[ "MIT" ]
1
2017-10-24T10:02:29.000Z
2017-10-24T10:02:29.000Z
punkin/_value.py
artPlusPlus/punkin
0265b06d67463a5aaf27e0b2a771220d41cae5ee
[ "MIT" ]
null
null
null
punkin/_value.py
artPlusPlus/punkin
0265b06d67463a5aaf27e0b2a771220d41cae5ee
[ "MIT" ]
null
null
null
from . import UNSET class Value(object): def __init__(self, context_key, setter=None): self._context_key = context_key self._setter = setter self._data = {} def __getitem__(self, context): try: return self._data[context[self._context_key]] except KeyError: ...
29.071429
74
0.588043
5d6996d7ef313609fa9aed2286c4fe6b702c871a
14,563
py
Python
pytoshop/path.py
andrewvaliente/pytoshop
42f88f69906e6fe8e765ca2ebce4477ae6a203f1
[ "BSD-3-Clause" ]
106
2016-11-22T18:52:22.000Z
2022-02-22T03:01:16.000Z
pytoshop/path.py
andrewvaliente/pytoshop
42f88f69906e6fe8e765ca2ebce4477ae6a203f1
[ "BSD-3-Clause" ]
28
2017-05-26T00:54:59.000Z
2021-08-06T04:56:03.000Z
pytoshop/path.py
andrewvaliente/pytoshop
42f88f69906e6fe8e765ca2ebce4477ae6a203f1
[ "BSD-3-Clause" ]
20
2017-06-05T21:12:18.000Z
2022-01-24T18:41:37.000Z
# -*- coding: utf-8 -*- """ Handle Bézier paths. """ from __future__ import unicode_literals, absolute_import import struct import six from . import docs from . import enums from . import util from typing import Any, BinaryIO, Dict, List, Optional, TYPE_CHECKING, Union # NOQA if TYPE_CHECKING: from . i...
29.360887
84
0.572684
69754571cb5e1dc924e000b3492fa83dee6711a2
17
py
Python
samplepkg/__init__.py
schahal/sample
61e5e76598011e64d859eaeceb9f724feb319e07
[ "MIT" ]
null
null
null
samplepkg/__init__.py
schahal/sample
61e5e76598011e64d859eaeceb9f724feb319e07
[ "MIT" ]
null
null
null
samplepkg/__init__.py
schahal/sample
61e5e76598011e64d859eaeceb9f724feb319e07
[ "MIT" ]
null
null
null
# Copyright 2020
8.5
16
0.764706
5971110ebc5c8bc9d4d9f1e47c09bb9348b439fb
538
py
Python
src/spyglass/decoding/__init__.py
LorenFrankLab/SpyGlass
5c2764b6ba5f7e9e47ddad5d2b9ce5039a0d3f41
[ "MIT" ]
1
2022-03-22T12:13:18.000Z
2022-03-22T12:13:18.000Z
src/spyglass/decoding/__init__.py
LorenFrankLab/SpyGlass
5c2764b6ba5f7e9e47ddad5d2b9ce5039a0d3f41
[ "MIT" ]
17
2022-03-22T14:42:04.000Z
2022-03-31T23:58:39.000Z
src/spyglass/decoding/__init__.py
LorenFrankLab/SpyGlass
5c2764b6ba5f7e9e47ddad5d2b9ce5039a0d3f41
[ "MIT" ]
1
2022-03-23T20:04:25.000Z
2022-03-23T20:04:25.000Z
# flake8: noqa from .clusterless import (ClusterlessClassifierParameters, MarkParameters, MultiunitFiringRate, MultiunitHighSynchronyEvents, MultiunitHighSynchronyEventsParameters, UnitMarkParameters, UnitMarks, UnitMarksIndicator, ...
53.8
76
0.630112
ca4eb6e28f84452d292d520db510e4773d86a486
3,845
py
Python
tests/collections/tts/test_waveglow.py
karpnv/NeMo
0572fccde6e33ccd692683d2e549bb08b0e2b100
[ "Apache-2.0" ]
null
null
null
tests/collections/tts/test_waveglow.py
karpnv/NeMo
0572fccde6e33ccd692683d2e549bb08b0e2b100
[ "Apache-2.0" ]
null
null
null
tests/collections/tts/test_waveglow.py
karpnv/NeMo
0572fccde6e33ccd692683d2e549bb08b0e2b100
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA 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 appli...
31.260163
101
0.610403
b4454f59ac310df61dccc7b2c05be51e63305802
3,385
py
Python
maps/util.py
WPRDC/neighborhood-simulacrum
46892dfdbc8bc3201e31fee4ee991c49b208753e
[ "MIT" ]
null
null
null
maps/util.py
WPRDC/neighborhood-simulacrum
46892dfdbc8bc3201e31fee4ee991c49b208753e
[ "MIT" ]
null
null
null
maps/util.py
WPRDC/neighborhood-simulacrum
46892dfdbc8bc3201e31fee4ee991c49b208753e
[ "MIT" ]
null
null
null
import json import urllib.request from typing import TYPE_CHECKING, Type from urllib.error import URLError from django.db import connection from indicators.data import GeogCollection if TYPE_CHECKING: from django.db.models.sql import Query from indicators.models import TimeAxis, Variable from geo.models ...
35.631579
115
0.651699
8dd10d6c3bd224f77b9055fe1522afd09f723631
2,536
py
Python
tests/test_console.py
SoheilSalmani/wikipedia-cli
ab9c65cf694a4ac120c4bc3b256233a976b293c4
[ "MIT" ]
null
null
null
tests/test_console.py
SoheilSalmani/wikipedia-cli
ab9c65cf694a4ac120c4bc3b256233a976b293c4
[ "MIT" ]
3
2021-09-20T04:59:17.000Z
2021-09-21T02:49:13.000Z
tests/test_console.py
SoheilSalmani/wikipedia-cli
ab9c65cf694a4ac120c4bc3b256233a976b293c4
[ "MIT" ]
null
null
null
"""Test cases for the console module.""" from unittest.mock import Mock from click.testing import CliRunner import marshmallow import pytest from pytest_mock import MockFixture import requests from wikipedia_cli import console from wikipedia_cli.wikipedia import page_schema @pytest.fixture def cli_runner() -> CliR...
30.190476
88
0.736987
983e0d51ea008796d91364116949316f1b29ee7d
1,785
py
Python
home/migrations/0002_create_homepage.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
2
2021-04-11T11:59:51.000Z
2021-04-12T06:56:23.000Z
home/migrations/0002_create_homepage.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
8
2021-04-10T10:40:27.000Z
2022-01-25T16:32:22.000Z
home/migrations/0002_create_homepage.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import migrations def create_homepage(apps, schema_editor): # Get models ContentType = apps.get_model('contenttypes.ContentType') Page = apps.get_model('wagtailcore.Page') Site = apps.get_model('wagtailcore.Site') HomePage = apps.get_model('home.HomePage') ...
28.333333
85
0.671709
54b37333ce41942056b0ef2896d2fae33b82176e
4,985
py
Python
openpeerpower/components/vera/climate.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
openpeerpower/components/vera/climate.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
openpeerpower/components/vera/climate.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Support for Vera thermostats.""" from __future__ import annotations from typing import Any import pyvera as veraApi from openpeerpower.components.climate import ( DOMAIN as PLATFORM_DOMAIN, ENTITY_ID_FORMAT, ClimateEntity, ) from openpeerpower.components.climate.const import ( FAN_AUTO, FAN_ON...
30.212121
83
0.666199
ff3281864fea8b6702d3f149ee891e505b61e118
3,288
py
Python
mooquant_formula/helpers/symbol.py
bopo/mooquant_formula
8a7b5030f5bc53fe35850a8d0825f34e7d9d8660
[ "MIT" ]
null
null
null
mooquant_formula/helpers/symbol.py
bopo/mooquant_formula
8a7b5030f5bc53fe35850a8d0825f34e7d9d8660
[ "MIT" ]
1
2021-03-25T21:47:29.000Z
2021-03-25T21:47:29.000Z
mooquant_formula/helpers/symbol.py
bopo/mooquant_formula
8a7b5030f5bc53fe35850a8d0825f34e7d9d8660
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import os import re import requests STOCK_CODE_PATH = 'symbol.json' def round_price_by_code(price, code): """ 根据代码类型[股票,基金] 截取制定位数的价格 :param price: 证券价格 :param code: 证券代码 :return: str 截断后的价格的字符串表示 """ if isinstance(price, str): return price ...
26.95082
163
0.604015
d4ba002d7be92f6b1896af5919811305d4bd01cf
13,335
py
Python
train_mdfd.py
rchopinw/Tree-regularization-project
afc477d6bf76d0b226c97beac499fc56db36f269
[ "MIT" ]
null
null
null
train_mdfd.py
rchopinw/Tree-regularization-project
afc477d6bf76d0b226c97beac499fc56db36f269
[ "MIT" ]
null
null
null
train_mdfd.py
rchopinw/Tree-regularization-project
afc477d6bf76d0b226c97beac499fc56db36f269
[ "MIT" ]
null
null
null
"""Run this file to train demo GRU-Tree.""" from __future__ import print_function from __future__ import absolute_import import pydotplus from copy import deepcopy import autograd.numpy as np import autograd.numpy.random as npr from autograd.optimizers import sgd, adam from autograd import grad import _pickle as cPi...
39.569733
102
0.631796
0348444cb65ab6717235355c8bc90f3045bbc964
1,553
py
Python
samples/test/reused_component_test.py
rahulsmehta/pipelines
a0a8f1da8cb7ca53cde7717aa78e666b634fec75
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
samples/test/reused_component_test.py
rahulsmehta/pipelines
a0a8f1da8cb7ca53cde7717aa78e666b634fec75
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
samples/test/reused_component_test.py
rahulsmehta/pipelines
a0a8f1da8cb7ca53cde7717aa78e666b634fec75
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.042553
77
0.727624
eb19280c81e86f20c07301cee666403868c2e2df
204,891
py
Python
patches_tool/aws_patch/aws_deps/libcloud/compute/drivers/ec2.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
2
2015-06-15T02:16:33.000Z
2022-02-23T07:10:38.000Z
patches_tool/aws_patch/aws_deps/libcloud/compute/drivers/ec2.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
7
2016-05-13T06:39:45.000Z
2016-05-20T02:55:31.000Z
patches_tool/aws_patch/aws_deps/libcloud/compute/drivers/ec2.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
4
2015-11-02T04:02:50.000Z
2021-05-13T17:06:00.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 ...
33.283138
80
0.517075
d463f75ac362815da409ada6cf1ef513d3f08fcc
1,647
py
Python
torcharrow/benchmark/benchmark_vmap.py
wenleix/torcharrow-1
9c398a361156973e29be868520ea9278db00ea52
[ "BSD-3-Clause" ]
null
null
null
torcharrow/benchmark/benchmark_vmap.py
wenleix/torcharrow-1
9c398a361156973e29be868520ea9278db00ea52
[ "BSD-3-Clause" ]
null
null
null
torcharrow/benchmark/benchmark_vmap.py
wenleix/torcharrow-1
9c398a361156973e29be868520ea9278db00ea52
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import timeit import torcharrow as ta import torcharrow.dtypes as dt def prepare_list_int_col(): elements = [] for i in range(1, 101): element = [] for j in range(1, i // 10 + 2): element.append(i * j) elements.append(elem...
24.954545
88
0.627201
fd8c96cd4dae248a63a11c360fb26b43934b97fa
9,261
py
Python
services/api-server/tests/unit/fakes/jobs_faker.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
services/api-server/tests/unit/fakes/jobs_faker.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
services/api-server/tests/unit/fakes/jobs_faker.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
""" Fakes the implementation of some some kind of queueing and scheduling of jobs """ import asyncio import hashlib import logging import random from contextlib import contextmanager from dataclasses import dataclass, field from datetime import datetime from typing import Callable, Dict, Iterator from uuid imp...
30.87
103
0.615592
f1442e7f936e7e4473ea9e64e24df2ec6a8f7250
2,996
py
Python
notebooks/nb066x_workshop_pandas.py
hoelzl/ML-Course
efa7ccb7c6583753675bbcda569d3184d1ca98d2
[ "MIT" ]
1
2022-03-02T15:59:11.000Z
2022-03-02T15:59:11.000Z
notebooks/nb066z_solution_pandas.py
hoelzl/ML-Course
efa7ccb7c6583753675bbcda569d3184d1ca98d2
[ "MIT" ]
null
null
null
notebooks/nb066z_solution_pandas.py
hoelzl/ML-Course
efa7ccb7c6583753675bbcda569d3184d1ca98d2
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.13.7 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] # Importieren Sie Pandas und lesen S...
25.606838
203
0.716956
228cfc8532b49503f3034060ff8d7c3338a43f68
9,525
py
Python
pollbot/telegram/callback_handler/vote.py
3wille/ultimate-poll-bot
7a99659df463a891b20a1ab424665cd84d4242b4
[ "MIT" ]
null
null
null
pollbot/telegram/callback_handler/vote.py
3wille/ultimate-poll-bot
7a99659df463a891b20a1ab424665cd84d4242b4
[ "MIT" ]
null
null
null
pollbot/telegram/callback_handler/vote.py
3wille/ultimate-poll-bot
7a99659df463a891b20a1ab424665cd84d4242b4
[ "MIT" ]
null
null
null
"""Callback functions needed during creation of a Poll.""" from sqlalchemy import func from sqlalchemy.exc import IntegrityError from pollbot.i18n import i18n from pollbot.helper import poll_allows_cumulative_votes from pollbot.helper.enums import PollType, CallbackResult from pollbot.helper.update import update_poll_...
36.21673
99
0.663307
60aa8308bc22bd1f618b2d464adee4aa2a5520ed
23,227
py
Python
meiduo_mall/meiduo_mall/apps/users/views.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/views.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/users/views.py
1103928458/meiduo_drf
49595755f264b09ea748b4deb8a88bba5eb8557b
[ "MIT" ]
1
2020-11-10T07:22:42.000Z
2020-11-10T07:22:42.000Z
from django.http import HttpResponseForbidden from django import http from django.shortcuts import render, redirect import re, json from django.contrib.auth import login, authenticate, logout, mixins from .models import User, Address from meiduo_mall.utils.response_code import RETCODE from django_redis import get_redis...
31.261104
102
0.594438
a0cabbfc2b540132bc0cd93574c265c8d05b151a
621
py
Python
mixins.py
bathelomeo/mixins
d676972fd3bde3f683963dcf6dcadebff6158b24
[ "MIT" ]
null
null
null
mixins.py
bathelomeo/mixins
d676972fd3bde3f683963dcf6dcadebff6158b24
[ "MIT" ]
null
null
null
mixins.py
bathelomeo/mixins
d676972fd3bde3f683963dcf6dcadebff6158b24
[ "MIT" ]
null
null
null
class Loggable: def __init__(self): self.title = '' def log(self): print('Log message from ' + self.title) class Connection: def __init__(self): self.server = '' def connect(self): print('Connecting to data base on ' + self.server) class Sqldatabase(Connection , Loggabl...
24.84
58
0.63124
4c6c0e4a1e379db8d1361f032e5f9e0b851589c1
2,582
py
Python
aws/dynamoDB/p02-graph/tw_upload.py
JoseIbanez/testing
4d6ff310cd63a8b2f8e1abcfbea0f17b23220021
[ "MIT" ]
1
2016-09-15T03:58:30.000Z
2016-09-15T03:58:30.000Z
aws/dynamoDB/p02-graph/tw_upload.py
JoseIbanez/testing
4d6ff310cd63a8b2f8e1abcfbea0f17b23220021
[ "MIT" ]
1
2020-09-13T08:44:50.000Z
2020-09-13T08:44:50.000Z
aws/dynamoDB/p02-graph/tw_upload.py
JoseIbanez/testing
4d6ff310cd63a8b2f8e1abcfbea0f17b23220021
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Upload a photo to Twitter ----------------------------------------------------------------- Run this command line script with any Twitter endpoint. The json-formatted response is printed to the console. The script works with both Streaming API and REST API endpoints. IMPORTANT: Bef...
25.82
93
0.644849
4d344ebe19e0f85f683f7c0a0477880da1958d41
4,283
py
Python
src/scripts/training/lgb_K5_nonull_mean_sum_max_mean_imp_no_scaler_params_K.py
arnabbiswas1/k_tab_sept_roc_auc_binary_classification_KFold
7a5a91e52d460fd25133b76d5241462a4aedc474
[ "Apache-2.0" ]
null
null
null
src/scripts/training/lgb_K5_nonull_mean_sum_max_mean_imp_no_scaler_params_K.py
arnabbiswas1/k_tab_sept_roc_auc_binary_classification_KFold
7a5a91e52d460fd25133b76d5241462a4aedc474
[ "Apache-2.0" ]
null
null
null
src/scripts/training/lgb_K5_nonull_mean_sum_max_mean_imp_no_scaler_params_K.py
arnabbiswas1/k_tab_sept_roc_auc_binary_classification_KFold
7a5a91e52d460fd25133b76d5241462a4aedc474
[ "Apache-2.0" ]
null
null
null
""" LGB,K10,non-null,mean,sum,max,mean impute,no-scaler params : https://www.kaggle.com/arnabbiswas1/tps-sep-2021-single-lgbm """ import os from timeit import default_timer as timer from datetime import datetime import pandas as pd from sklearn.model_selection import KFold import src.common as common import src.con...
26.602484
91
0.749008
76e5d22a0614fb6c762f78fb93a2ba36348a56d2
7,967
py
Python
kinow_client/models/director_2.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
1
2019-06-26T14:24:54.000Z
2019-06-26T14:24:54.000Z
kinow_client/models/director_2.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
null
null
null
kinow_client/models/director_2.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
1
2018-02-01T10:08:40.000Z
2018-02-01T10:08:40.000Z
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 1.4.58 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class Director2(object): """ NOTE: This class is auto g...
26.824916
168
0.578637
85309d76c3b96ca7268bfde3915187a6d3f67267
5,544
py
Python
test/functional/rpc_generateblock.py
trungnq1510/bitcoin
4702a08358f9996f2a40cb5cba03c9177d4d991f
[ "MIT" ]
null
null
null
test/functional/rpc_generateblock.py
trungnq1510/bitcoin
4702a08358f9996f2a40cb5cba03c9177d4d991f
[ "MIT" ]
null
null
null
test/functional/rpc_generateblock.py
trungnq1510/bitcoin
4702a08358f9996f2a40cb5cba03c9177d4d991f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitnamicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. '''Test generateblock rpc. ''' from test_framework.test_framework import BitnamicoinTestFramework from tes...
51.813084
155
0.694805
f6c883e451c88a1e1d7de646f56c752da4e7ad25
2,144
py
Python
lms/models/event_models.py
yankai14/event-management-telegram-bot-backend
c0b4b2294ab7d06100b221d9b41a8f52d500075d
[ "MIT" ]
null
null
null
lms/models/event_models.py
yankai14/event-management-telegram-bot-backend
c0b4b2294ab7d06100b221d9b41a8f52d500075d
[ "MIT" ]
6
2021-06-28T07:23:15.000Z
2021-07-22T12:59:33.000Z
lms/models/event_models.py
yankai14/event-management-telegram-bot-backend
c0b4b2294ab7d06100b221d9b41a8f52d500075d
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import ArrayField class Event(models.Model): eventCode = models.CharField(max_length=100, blank=False, null=True, unique=True) name = models.CharField(max_length=100, blank=False, null=True) description = models.TextField(default="") d...
38.285714
94
0.736007
59cfadb44650872154785eec14fbda5405526d1c
8,051
py
Python
doc/src/MCsummary/src/qdotBroyden.py
GabrielSCabrera/ComputationalPhysics2
a840b97b651085090f99bf6a11abab57100c2e85
[ "CC0-1.0" ]
87
2015-01-21T08:29:56.000Z
2022-03-28T07:11:53.000Z
doc/src/MCsummary/src/qdotBroyden.py
GabrielSCabrera/ComputationalPhysics2
a840b97b651085090f99bf6a11abab57100c2e85
[ "CC0-1.0" ]
3
2020-01-18T10:43:38.000Z
2020-02-08T13:15:42.000Z
doc/src/MCsummary/src/qdotBroyden.py
GabrielSCabrera/ComputationalPhysics2
a840b97b651085090f99bf6a11abab57100c2e85
[ "CC0-1.0" ]
54
2015-02-09T10:02:00.000Z
2022-03-07T10:44:14.000Z
# 2-electron VMC code for 2dim quantum dot with importance sampling # Using gaussian rng for new positions and Metropolis- Hastings # Added energy minimization from math import exp, sqrt from random import random, seed, normalvariate import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import A...
35.46696
105
0.635573
eafe9e815a235969468f3cc59527190de78b77ea
3,569
py
Python
stellar_sdk/xdr/transaction_signature_payload_tagged_transaction.py
JakeUrban/py-stellar-base
819097df05c9af448f806657a3ff1b0d890f0ac4
[ "Apache-2.0" ]
null
null
null
stellar_sdk/xdr/transaction_signature_payload_tagged_transaction.py
JakeUrban/py-stellar-base
819097df05c9af448f806657a3ff1b0d890f0ac4
[ "Apache-2.0" ]
null
null
null
stellar_sdk/xdr/transaction_signature_payload_tagged_transaction.py
JakeUrban/py-stellar-base
819097df05c9af448f806657a3ff1b0d890f0ac4
[ "Apache-2.0" ]
null
null
null
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from .envelope_type import EnvelopeType from .fee_bump_transaction import FeeBumpTransaction from .transaction import Transaction from ..exceptions import ValueError __all__ = ...
33.669811
86
0.607453
ee43f5a68307556d0a4535981880a0a3c4a7e166
419
py
Python
django_rest_framework/django_rest_framework/wsgi.py
KushalVenkatesh/drf-secure-apis-demo
ef24928f9ad58e205827ce93ab3be3d1e80af715
[ "Apache-2.0" ]
1
2021-08-31T06:09:00.000Z
2021-08-31T06:09:00.000Z
django_rest_framework/django_rest_framework/wsgi.py
KushalVenkatesh/drf-secure-apis-demo
ef24928f9ad58e205827ce93ab3be3d1e80af715
[ "Apache-2.0" ]
null
null
null
django_rest_framework/django_rest_framework/wsgi.py
KushalVenkatesh/drf-secure-apis-demo
ef24928f9ad58e205827ce93ab3be3d1e80af715
[ "Apache-2.0" ]
1
2021-08-31T06:08:59.000Z
2021-08-31T06:08:59.000Z
""" WSGI config for django_rest_framework project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault...
24.647059
81
0.799523
7fbc0969249ea3ac7097800abc81beb1e3ebf5da
820
py
Python
tickit/devices/eiger/stream/stream_status.py
dls-controls/tickit
00bb013e69674bcfe4926f365ecb3c65c080abe8
[ "Apache-2.0" ]
4
2021-09-16T13:35:33.000Z
2022-02-01T23:35:53.000Z
tickit/devices/eiger/stream/stream_status.py
dls-controls/tickit
00bb013e69674bcfe4926f365ecb3c65c080abe8
[ "Apache-2.0" ]
46
2021-09-16T13:44:58.000Z
2022-02-02T13:42:56.000Z
tickit/devices/eiger/stream/stream_status.py
dls-controls/tickit
00bb013e69674bcfe4926f365ecb3c65c080abe8
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field, fields from typing import Any, List from tickit.devices.eiger.eiger_schema import AccessMode, ro_int, ro_str @dataclass class StreamStatus: """Eiger stream status taken from the API spec.""" state: str = field(default="ready", metadata=ro_str()) error: List[str]...
29.285714
86
0.609756
be94f993d1a0f68dcdbc47ecfce56f3376ffe6c9
2,189
py
Python
tasks/__init__.py
ruivieira/python-experiments
c25cc7644d1437898ae5b0fa8073c5ae1442c3ba
[ "Apache-2.0" ]
null
null
null
tasks/__init__.py
ruivieira/python-experiments
c25cc7644d1437898ae5b0fa8073c5ae1442c3ba
[ "Apache-2.0" ]
null
null
null
tasks/__init__.py
ruivieira/python-experiments
c25cc7644d1437898ae5b0fa8073c5ae1442c3ba
[ "Apache-2.0" ]
null
null
null
# type: ignore """Task management""" # INFO: Task management # pylint: disable=R0903,C0103 from dataclasses import dataclass from enum import Enum from typing import List from todoist import TodoistAPI import common.fs as fs class TaskStatus(Enum): """Task status enum""" TODO = "TODO" DONE = "DONE" ...
25.16092
81
0.595249
7a4d10d0c271fb998260abd06a935a458709e72a
3,293
py
Python
examples/pylab_examples/axes_zoom_effect.py
stefanv/matplotlib
2c6c3695ef989ec86b7c43740462ef992685022f
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
3
2015-11-16T07:22:28.000Z
2016-11-11T17:55:14.000Z
examples/pylab_examples/axes_zoom_effect.py
astraw/matplotlib-ancient
7272f102482941ada6e5fd874bdf7f185f420526
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
null
null
null
examples/pylab_examples/axes_zoom_effect.py
astraw/matplotlib-ancient
7272f102482941ada6e5fd874bdf7f185f420526
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from matplotlib.transforms import Bbox, TransformedBbox, \ blended_transform_factory from mpl_toolkits.axes_grid1.inset_locator import BboxPatch, BboxConnector,\ BboxConnectorPatch def connect_bbox(bbox1, bbox2, loc1a, loc2a, loc1b, loc2b, prop_lines, prop_patches=None): ...
27.672269
78
0.652293
55b4b339e9d70e85b4187a60ee978350f2ece6e4
2,282
py
Python
test_files/Final/move_type_check.py
NeelamMahapatro/Roborex_Chess
cc2666c56c09fc21a7c76879e2f19e594ddd474c
[ "MIT" ]
3
2019-06-20T04:17:54.000Z
2020-07-17T15:34:14.000Z
test_files/Final/move_type_check.py
NeelamMahapatro/Roborex_Chess
cc2666c56c09fc21a7c76879e2f19e594ddd474c
[ "MIT" ]
1
2018-03-31T09:48:58.000Z
2018-03-31T09:48:58.000Z
test_files/Final/move_type_check.py
NeelamMahapatro/Roborex_Chess
cc2666c56c09fc21a7c76879e2f19e594ddd474c
[ "MIT" ]
6
2018-03-30T12:24:25.000Z
2020-07-17T15:33:48.000Z
#!/usr/bin/env python ################################################################################ ## ## MIT License ## ## Copyright (c) 2018 Team Roborex, NIT Rourkela ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentation files (the "So...
30.837838
81
0.578878
3e0c46caf8ea5a3737443e70ff8d615300e67347
204
py
Python
python/packages/isce3/core/DateTime.py
piyushrpt/isce3
1741af321470cb5939693459765d11a19c5c6fc2
[ "Apache-2.0" ]
null
null
null
python/packages/isce3/core/DateTime.py
piyushrpt/isce3
1741af321470cb5939693459765d11a19c5c6fc2
[ "Apache-2.0" ]
null
null
null
python/packages/isce3/core/DateTime.py
piyushrpt/isce3
1741af321470cb5939693459765d11a19c5c6fc2
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- # # Heresh Fattahi # Copyright 2019- # # The extension from .. import isceextension class DateTime(isceextension.pyDateTime): """ Wrapper for pyDateTime. """ pass
13.6
41
0.642157
fa1104381ac698aaf0186a6447bbe10fea4eb475
1,064
py
Python
kd_common/kd_common/google/common.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
null
null
null
kd_common/kd_common/google/common.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
null
null
null
kd_common/kd_common/google/common.py
konovalovdmitry/catsnap
d5f1d7c37dcee1ad3fee2cdc12a3b44b56f4c63f
[ "MIT" ]
1
2021-09-30T08:06:20.000Z
2021-09-30T08:06:20.000Z
import pickle import os.path from typing import Any from os.path import join from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from kd_common import pathutil _SCOPES = ['https://www.googleapis.com/auth/spreadsheets']...
30.4
68
0.698308
06c5606d3f39a9dd8b48f22ce967fe806b42fae9
4,018
py
Python
dcitools/devices/doremi/message.py
jeajar/python-dcitools
1be2e70b6d48bed18465fd8d5ef36ea0e617d5b2
[ "MIT" ]
15
2015-02-25T00:51:05.000Z
2021-01-14T17:20:56.000Z
dcitools/devices/doremi/message.py
jeajar/python-dcitools
1be2e70b6d48bed18465fd8d5ef36ea0e617d5b2
[ "MIT" ]
5
2018-10-05T07:41:00.000Z
2019-05-27T22:57:42.000Z
dcitools/devices/doremi/message.py
jeajar/python-dcitools
1be2e70b6d48bed18465fd8d5ef36ea0e617d5b2
[ "MIT" ]
7
2018-03-26T13:43:10.000Z
2022-03-08T14:43:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu """ (c) 2014 Ronan Delacroix Doremi API Requests definition :author: Ronan Delacroix """ import six import tbx.bytes class MessageDefinition(object): """ Request Definition object. """ def __init__(self, name, key, elements=...
28.295775
103
0.607018
5c62ad30a0a9e1afc05f8288697746bce12e286d
2,019
py
Python
process_geotiff.py
SmartDataLab/building_damage_kd
45392fff69de818b8d13576de6c413372ca3d0e0
[ "MIT" ]
null
null
null
process_geotiff.py
SmartDataLab/building_damage_kd
45392fff69de818b8d13576de6c413372ca3d0e0
[ "MIT" ]
null
null
null
process_geotiff.py
SmartDataLab/building_damage_kd
45392fff69de818b8d13576de6c413372ca3d0e0
[ "MIT" ]
2
2021-07-02T08:26:11.000Z
2021-07-02T08:27:03.000Z
import numpy as np import gdal import os import cv2 import matplotlib.pyplot as plt import argparse #%% def image(path,band): #读为一个numpy数组 dataset = gdal.Open(path) band = dataset.GetRasterBand(band) nXSize = dataset.RasterXSize #列数 nYSize = dataset.RasterYSize #行数 data= band.ReadAsArray(0,0...
33.098361
135
0.70629
cde75ee6425139ceabd9a6a5de87e846ec184a1a
2,182
py
Python
music_blog/models.py
sashis/music-blog
c0ed13e3df4d25606345c4d8e064833fa86eb0c3
[ "MIT" ]
null
null
null
music_blog/models.py
sashis/music-blog
c0ed13e3df4d25606345c4d8e064833fa86eb0c3
[ "MIT" ]
null
null
null
music_blog/models.py
sashis/music-blog
c0ed13e3df4d25606345c4d8e064833fa86eb0c3
[ "MIT" ]
null
null
null
from datetime import datetime from flask_login import UserMixin from sqlalchemy import func from sqlalchemy.ext.hybrid import hybrid_property from werkzeug.security import generate_password_hash, check_password_hash from .database import db class User(db.Model, UserMixin): __repr_attr__ = 'username' userna...
32.088235
114
0.698442
dfb6df882195a4196e52852d93b67a3af58b2ac2
736
py
Python
tests/views.py
wq/django-mustache
09d9a723167f5f5ffb63abe687b89324e397f0a2
[ "MIT" ]
19
2016-01-14T23:01:50.000Z
2020-09-05T07:59:10.000Z
tests/views.py
sheppard/django-mustache
09d9a723167f5f5ffb63abe687b89324e397f0a2
[ "MIT" ]
3
2016-11-07T20:54:47.000Z
2020-03-18T13:48:27.000Z
tests/views.py
sheppard/django-mustache
09d9a723167f5f5ffb63abe687b89324e397f0a2
[ "MIT" ]
4
2016-04-26T23:14:51.000Z
2020-06-24T12:18:15.000Z
from rest_framework.views import APIView from rest_framework.response import Response class View(APIView): context = {} @property def template_name(self): return "test_%s.html" % type(self).__name__.lower().replace('view', '') def get(self, request, *args, **kwargs): return Response(...
16.727273
79
0.576087
d47eb6ae4ab202335e36b34a13205a376de997dd
67,605
py
Python
scipy/stats/mstats_basic.py
f0k/scipy
3145a226339b14bbc22f2e984848e05def7659c5
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/mstats_basic.py
f0k/scipy
3145a226339b14bbc22f2e984848e05def7659c5
[ "BSD-3-Clause" ]
null
null
null
scipy/stats/mstats_basic.py
f0k/scipy
3145a226339b14bbc22f2e984848e05def7659c5
[ "BSD-3-Clause" ]
null
null
null
""" An extension of scipy.stats.stats to support masked arrays :author: Pierre GF Gerard-Marchant :contact: pierregm_at_uga_edu """ #TODO : f_value_wilks_lambda looks botched... what are dfnum & dfden for ? #TODO : ttest_reel looks botched: what are x1,x2,v1,v2 for ? #TODO : reimplement ksonesamp from __future__ imp...
33.684604
112
0.561453
49a5e3e2d7a0a96cd0f7e83f6b9f527d074d4280
2,832
py
Python
starlette/middleware/base.py
synodriver/starlette
9ef1b91c9c043197da6c3f38aa153fd874b95527
[ "BSD-3-Clause" ]
null
null
null
starlette/middleware/base.py
synodriver/starlette
9ef1b91c9c043197da6c3f38aa153fd874b95527
[ "BSD-3-Clause" ]
17
2022-01-01T21:22:33.000Z
2022-03-07T10:33:37.000Z
starlette/middleware/base.py
sthagen/encode-starlette
ba31df75daac7cc3b5fcfea89939372768a166cb
[ "BSD-3-Clause" ]
null
null
null
import typing import anyio from starlette.requests import Request from starlette.responses import Response, StreamingResponse from starlette.types import ASGIApp, Receive, Scope, Send RequestResponseEndpoint = typing.Callable[[Request], typing.Awaitable[Response]] DispatchFunction = typing.Callable[ [Request, Re...
35.4
81
0.578743
6b790cc5011039ba1747da8d5a6837915483b716
13,551
py
Python
fairseq/optim/fp16_optimizer.py
Yuran-Zhao/bert-nmt
e5095860e59b305bdcf1264ad117e67d3d97e705
[ "BSD-3-Clause" ]
null
null
null
fairseq/optim/fp16_optimizer.py
Yuran-Zhao/bert-nmt
e5095860e59b305bdcf1264ad117e67d3d97e705
[ "BSD-3-Clause" ]
null
null
null
fairseq/optim/fp16_optimizer.py
Yuran-Zhao/bert-nmt
e5095860e59b305bdcf1264ad117e67d3d97e705
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import torch from fairseq import ...
37.433702
88
0.625268
8364b8cd9cf9b59b7a88c9ba3187704d94f0460f
5,931
py
Python
simple_sqlite/test/sqliteTest.py
Svinokur/simple_sqlite
190d6dca5853c637208a7cd9dfe14e5bd0e2a4f1
[ "MIT" ]
2
2021-04-27T15:04:07.000Z
2021-10-19T07:59:22.000Z
simple_sqlite/test/sqliteTest.py
Svinokur/simple_sqlite
190d6dca5853c637208a7cd9dfe14e5bd0e2a4f1
[ "MIT" ]
null
null
null
simple_sqlite/test/sqliteTest.py
Svinokur/simple_sqlite
190d6dca5853c637208a7cd9dfe14e5bd0e2a4f1
[ "MIT" ]
null
null
null
#Standart library imports import unittest import sys import os.path import time import os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))) #Local imports from _setting import setting from simple_sqlite import SimpleSqlite class testSqlite(unittest.TestCase): """Class for ...
35.728916
131
0.653515
4fa533e6d750a1f23d6401d475fa90599de01b29
2,359
py
Python
tests/__init__.py
JustinHedge/hydra
108af1aec8ef86d752f46ec4c5542ee64fd80412
[ "MIT" ]
1
2020-09-25T07:12:14.000Z
2020-09-25T07:12:14.000Z
tests/__init__.py
JustinHedge/hydra
108af1aec8ef86d752f46ec4c5542ee64fd80412
[ "MIT" ]
6
2021-06-28T20:39:10.000Z
2022-02-27T10:27:28.000Z
tests/__init__.py
JustinHedge/hydra
108af1aec8ef86d752f46ec4c5542ee64fd80412
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from dataclasses import dataclass from typing import Any, List, Tuple from omegaconf import MISSING from hydra.types import TargetConf def verify_hydra_pytest_plugin_not_installed() -> None: try: # This check can be removed in 1.1 ...
18.286822
87
0.667656
5dd107f67fbceeefbbdaef86a75a7fa69b6c5a57
818
py
Python
spinoffs/oryx/oryx/util/__init__.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
spinoffs/oryx/oryx/util/__init__.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
spinoffs/oryx/oryx/util/__init__.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
43.052632
78
0.698044
24dfe42281ee7b25af0e63d3684c4901f0371181
878
py
Python
Task2C.py
cued-ia-computing/flood-jw2190-lk476
e58ac7a99e9c98fec610c568c4e36969f1fc3a39
[ "MIT" ]
null
null
null
Task2C.py
cued-ia-computing/flood-jw2190-lk476
e58ac7a99e9c98fec610c568c4e36969f1fc3a39
[ "MIT" ]
null
null
null
Task2C.py
cued-ia-computing/flood-jw2190-lk476
e58ac7a99e9c98fec610c568c4e36969f1fc3a39
[ "MIT" ]
null
null
null
from floodsystem.flood import stations_highest_rel_level from floodsystem.stationdata import build_station_list, update_water_levels from floodsystem.station import consistent_typical_range_stations, remove_latest_level_nonetype def run(): """Requirements for Task2C""" #build list of stations stations = b...
38.173913
95
0.769932