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
9fe2657c1d2c952493c5608c832e57f3ae6a904a
3,031
py
Python
track/object_position.py
seeing-things/track
a8faea4bad93948100347a4604f1f0b78edff616
[ "MIT" ]
4
2019-06-11T20:46:03.000Z
2019-10-28T17:52:45.000Z
track/object_position.py
bgottula/track
a8faea4bad93948100347a4604f1f0b78edff616
[ "MIT" ]
114
2017-06-05T06:51:22.000Z
2019-01-20T23:01:29.000Z
track/object_position.py
bgottula/track
a8faea4bad93948100347a4604f1f0b78edff616
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Prints the position of an object from observer's location.""" import sys import datetime import math import ephem import ephem.stars import track from track import gps_client def main(): """See module docstring at the top of this file.""" parser = track.ArgParser() parser.add_...
32.945652
96
0.615308
1def122a4bbeb961e12b9da82f780451743bba17
1,362
py
Python
examples/paraphrase_mining.py
shibing624/sbert
2c53125e1c16453c15444a8219cc6bf458327891
[ "Apache-2.0" ]
2
2021-08-14T08:58:17.000Z
2021-08-14T10:12:58.000Z
examples/paraphrase_mining.py
shibing624/sbert
2c53125e1c16453c15444a8219cc6bf458327891
[ "Apache-2.0" ]
null
null
null
examples/paraphrase_mining.py
shibing624/sbert
2c53125e1c16453c15444a8219cc6bf458327891
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: Paraphrase mining is the task of finding pharaphrases (texts with identical / similar meaning) in a large corpus of sentences. In Semantic Textual Similarity we saw a simplified version of finding paraphrases in a list of sentences. The approac...
33.219512
100
0.696769
106c922d0c0224ac70f011f613426b77fd316cee
17,549
py
Python
haystack/indexes.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2017-10-12T14:25:06.000Z
2017-10-12T14:25:06.000Z
haystack/indexes.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
2
2021-02-08T21:04:45.000Z
2021-03-31T20:11:18.000Z
haystack/indexes.py
speedplane/django-haystack
4ace30aea6aa1b1708f79a5a9df20a00fa0b4d96
[ "BSD-3-Clause" ]
1
2020-05-03T20:43:17.000Z
2020-05-03T20:43:17.000Z
from __future__ import unicode_literals import copy import threading import warnings from django.core.exceptions import ImproperlyConfigured from django.utils.six import with_metaclass from haystack import connections, connection_router from haystack.constants import ID, DJANGO_CT, DJANGO_ID, Indexable, DEFAULT_ALIAS f...
35.814286
139
0.623454
751faedaae21bf7e5100079d0678b241912f476e
3,078
py
Python
calibration/TempReg.py
shuoli90/PAC-confidence-set
ab8dcd5205f9aba6b490aabe7bfc74e1410d0f26
[ "Apache-2.0" ]
6
2020-04-05T18:55:15.000Z
2021-08-23T02:22:48.000Z
calibration/TempReg.py
shuoli90/PAC-confidence-set
ab8dcd5205f9aba6b490aabe7bfc74e1410d0f26
[ "Apache-2.0" ]
null
null
null
calibration/TempReg.py
shuoli90/PAC-confidence-set
ab8dcd5205f9aba6b490aabe7bfc74e1410d0f26
[ "Apache-2.0" ]
1
2021-03-29T15:06:43.000Z
2021-03-29T15:06:43.000Z
import os, sys import types import time import numpy as np import math import torch as tc import torch.tensor as T sys.path.append("../../") #from conf_set.utils import * from classification.utils import * from calibration.calibrator import BaseCalibrator ## ## calibration for regression ## class TempScalingReg(Base...
29.883495
91
0.552307
3b1662d8f3433ed2e651aae9d3d0b91155c986dd
579
py
Python
ros2_facelook_node/launch/ros2_facelook_node.launch.py
Misterblue/ros2-looker
1b42dede9276708364f876e1ecd6e67118e9c09c
[ "Apache-2.0" ]
1
2021-04-07T09:50:20.000Z
2021-04-07T09:50:20.000Z
ros2_facelook_node/launch/ros2_facelook_node.launch.py
Misterblue/ros2-looker
1b42dede9276708364f876e1ecd6e67118e9c09c
[ "Apache-2.0" ]
null
null
null
ros2_facelook_node/launch/ros2_facelook_node.launch.py
Misterblue/ros2-looker
1b42dede9276708364f876e1ecd6e67118e9c09c
[ "Apache-2.0" ]
null
null
null
import launch import launch.actions import launch.substitutions import launch_ros.actions def generate_launch_description(): return launch.LaunchDescription([ launch.actions.DeclareLaunchArgument( 'node_prefix', default_value=[launch.substitutions.EnvironmentVariable('USER'), '_'],...
34.058824
86
0.694301
ce9e906f44ab641dbb560ec25c828d9073931af1
9,060
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_maintenance_windows_operations.py
RAY-316/azure-sdk-for-python
4f7790deaf46c6f4e965f099f36eb73a7954ad5b
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_maintenance_windows_operations.py
RSidea/azure-sdk-for-python
8f691b2c95ee0fc53b12d08bd83e3f134d9cf0ef
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_sql_pool_maintenance_windows_operations.py
RSidea/azure-sdk-for-python
8f691b2c95ee0fc53b12d08bd83e3f134d9cf0ef
[ "MIT" ]
1
2021-12-18T20:01:22.000Z
2021-12-18T20:01:22.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.508197
230
0.684658
0cd9263cb56184d9d180dfa439e0dc777c917f4a
22,883
py
Python
frille-lang/lib/python3.6/site-packages/sklearn/linear_model/_base.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
13
2020-05-03T18:42:05.000Z
2022-03-23T07:44:19.000Z
frille-lang/lib/python3.6/site-packages/sklearn/linear_model/_base.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
1
2021-06-08T06:03:51.000Z
2021-06-08T06:03:51.000Z
frille-lang/lib/python3.6/site-packages/sklearn/linear_model/_base.py
frillecode/CDS-spring-2021-language
a0b2116044cd20d4a34b98f23bd2663256c90c5d
[ "MIT" ]
7
2020-07-09T15:03:58.000Z
2021-12-22T04:19:27.000Z
""" Generalized Linear Models. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Vincent Michel <vincent.michel@inria.fr> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Mathieu Blond...
35.587869
79
0.613032
de32673f71e13901d220def4e92199f64d3258f0
37,615
py
Python
nmmn/plots.py
rsnemmen/nemmen
259887ef4fa0cd1ccc50e404998d3c9e27b2fd79
[ "MIT" ]
16
2016-09-14T00:44:51.000Z
2022-03-11T22:19:10.000Z
nmmn/plots.py
rsnemmen/nemmen
259887ef4fa0cd1ccc50e404998d3c9e27b2fd79
[ "MIT" ]
2
2018-03-04T02:26:20.000Z
2018-07-06T20:32:19.000Z
nmmn/plots.py
rsnemmen/nemmen
259887ef4fa0cd1ccc50e404998d3c9e27b2fd79
[ "MIT" ]
3
2017-11-13T10:46:21.000Z
2019-06-26T07:22:58.000Z
""" Fancy plots ============== """ import numpy from matplotlib import pylab from nmmn import sed def plot(spec): """ Returns the plot of a grmonty spectrum as a pyplot object or plot it on the screen :param param: grmonty spectrum file """ s = sed.SED() s.grmonty(spec) pylab.plot(s.lognu, s.ll) pylab.show(...
38.579487
6,680
0.707298
dec2d3d174d005b1c74a52b2d5857caff10c6c8f
3,178
py
Python
zentral/contrib/santa/urls.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
zentral/contrib/santa/urls.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
zentral/contrib/santa/urls.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
from django.conf.urls import url from django.views.decorators.csrf import csrf_exempt from . import views app_name = "santa" urlpatterns = [ # configuration / enrollment url(r'^configurations/$', views.ConfigurationListView.as_view(), name='configuration_list'), url(r'^configurations/create...
45.4
101
0.677785
8c229dedab1622cbfd167b77297e10503a4b381e
7,518
py
Python
examples/kubernetes/scripts/hmem_experiments/workload_runner.py
Creatone/workload-collocation-agent
826a2ae67fd23feef74e18d27c0e677f83994add
[ "Apache-2.0" ]
null
null
null
examples/kubernetes/scripts/hmem_experiments/workload_runner.py
Creatone/workload-collocation-agent
826a2ae67fd23feef74e18d27c0e677f83994add
[ "Apache-2.0" ]
1
2021-02-23T19:19:47.000Z
2021-02-23T19:19:47.000Z
examples/kubernetes/scripts/hmem_experiments/workload_runner.py
Creatone/workload-collocation-agent
826a2ae67fd23feef74e18d27c0e677f83994add
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
43.206897
95
0.683958
b64b8634ac83b8fa723d7ccfd3c59b96193acf20
3,179
py
Python
koapy/backtrader/KrxHistoricalDailyPriceData.py
resoliwan/koapy
b0616f252bb3588695dfb37c7d9b8580a65649a3
[ "MIT" ]
1
2021-09-25T22:33:01.000Z
2021-09-25T22:33:01.000Z
koapy/backtrader/KrxHistoricalDailyPriceData.py
resoliwan/koapy
b0616f252bb3588695dfb37c7d9b8580a65649a3
[ "MIT" ]
null
null
null
koapy/backtrader/KrxHistoricalDailyPriceData.py
resoliwan/koapy
b0616f252bb3588695dfb37c7d9b8580a65649a3
[ "MIT" ]
1
2021-11-12T15:33:29.000Z
2021-11-12T15:33:29.000Z
import pandas as pd from backtrader import TimeFrame, date2num from backtrader.feed import DataBase from tqdm import tqdm from koapy.utils.data.KrxHistoricalDailyPriceDataForBacktestLoader import ( KrxHistoricalDailyPriceDataForBacktestLoader, ) class KrxHistoricalDailyPriceData(DataBase): # pylint: disabl...
26.057377
81
0.559295
cab891add3d6c52028667ed2373c01232eba9e02
26
py
Python
terrascript/mysql/__init__.py
vfoucault/python-terrascript
fe82b3d7e79ffa72b7871538f999828be0a115d0
[ "BSD-2-Clause" ]
null
null
null
terrascript/mysql/__init__.py
vfoucault/python-terrascript
fe82b3d7e79ffa72b7871538f999828be0a115d0
[ "BSD-2-Clause" ]
null
null
null
terrascript/mysql/__init__.py
vfoucault/python-terrascript
fe82b3d7e79ffa72b7871538f999828be0a115d0
[ "BSD-2-Clause" ]
null
null
null
"""2017-11-28 18:08:12"""
13
25
0.538462
4e091e643dce0adeee9bd309d1166a4658336e3d
6,334
py
Python
easysql.py
JBRonaldHandiwinata/easypysql
3aea396c415108504de872db30f6c4fca49fa4f0
[ "MIT" ]
null
null
null
easysql.py
JBRonaldHandiwinata/easypysql
3aea396c415108504de872db30f6c4fca49fa4f0
[ "MIT" ]
null
null
null
easysql.py
JBRonaldHandiwinata/easypysql
3aea396c415108504de872db30f6c4fca49fa4f0
[ "MIT" ]
null
null
null
import MySQLdb import time from MySQLdb.cursors import DictCursor from DBUtils.PooledDB import PooledDB class EasySql(object): __pool = None DB_HOST = "" DB_NAME = "" DB_USER = "" DB_PWD = "" DB_PORT = 3306 DB_CHARSET = "utf8" def __init__(self): self._conn = self.__getConn()...
32.649485
126
0.45832
ff04a75bd16b4647c3bdb09fdb0c8f9a125c8c6b
41,650
py
Python
scripts/arcrest/geometryservice/geometryservice.py
datastark/crime-analysis-toolbox
af45e4ba59284d78b1c7d3e208a05e5001d024dd
[ "Apache-2.0" ]
5
2019-01-12T13:57:52.000Z
2021-05-04T01:24:53.000Z
scripts/arcrest/geometryservice/geometryservice.py
datastark/crime-analysis-toolbox
af45e4ba59284d78b1c7d3e208a05e5001d024dd
[ "Apache-2.0" ]
null
null
null
scripts/arcrest/geometryservice/geometryservice.py
datastark/crime-analysis-toolbox
af45e4ba59284d78b1c7d3e208a05e5001d024dd
[ "Apache-2.0" ]
1
2018-08-11T19:09:57.000Z
2018-08-11T19:09:57.000Z
from __future__ import absolute_import from __future__ import print_function from .._abstract import abstract from ..common.geometry import Point, Polyline, Polygon, MultiPoint, Envelope import json ######################################################################## class GeometryService(abstract.BaseAGSServer):...
45.419847
116
0.504898
0ccc46e4a10a396efd2992ebac874b3663cb06e6
3,088
py
Python
backend/pyrogram/raw/functions/account/update_profile.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/functions/account/update_profile.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/functions/account/update_profile.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.696629
103
0.617876
a76c7f351f105aec46aa0905f0fc28ed5694d28c
7,092
py
Python
transit/write_handlers.py
3wnbr1/transit-python2
fb44976bf41b8bcc6dd9050c16ef7c4a24c9f81c
[ "Apache-2.0" ]
1
2022-02-21T09:34:00.000Z
2022-02-21T09:34:00.000Z
transit/write_handlers.py
3wnbr1/transit-python2
fb44976bf41b8bcc6dd9050c16ef7c4a24c9f81c
[ "Apache-2.0" ]
null
null
null
transit/write_handlers.py
3wnbr1/transit-python2
fb44976bf41b8bcc6dd9050c16ef7c4a24c9f81c
[ "Apache-2.0" ]
null
null
null
## Copyright 2014 Cognitect. 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...
19.219512
93
0.606035
c7901f3e108fde9969897d884e2f50430efcced8
11,028
py
Python
ocpp/messages.py
MrMika96/ocpp
bdcb28492c84a977b58069df9a9e78fadb095e9a
[ "MIT" ]
null
null
null
ocpp/messages.py
MrMika96/ocpp
bdcb28492c84a977b58069df9a9e78fadb095e9a
[ "MIT" ]
null
null
null
ocpp/messages.py
MrMika96/ocpp
bdcb28492c84a977b58069df9a9e78fadb095e9a
[ "MIT" ]
1
2019-12-05T18:10:06.000Z
2019-12-05T18:10:06.000Z
""" Module containing classes that model the several OCPP messages types. It also contain some helper functions for packing and unpacking messages. """ import os import json import decimal from dataclasses import asdict, is_dataclass from jsonschema import validate from jsonschema.exceptions import ValidationError as...
33.317221
105
0.607907
8acdc4f687e8ac998472c334443734723af4f83c
1,592
py
Python
plot.py
dvapan/cerhe
42a860907ea182b98b2243c0d66a4bc0f37d6c78
[ "MIT" ]
null
null
null
plot.py
dvapan/cerhe
42a860907ea182b98b2243c0d66a4bc0f37d6c78
[ "MIT" ]
null
null
null
plot.py
dvapan/cerhe
42a860907ea182b98b2243c0d66a4bc0f37d6c78
[ "MIT" ]
null
null
null
import numpy as np import scipy as sc from cylp.cy import CyClpSimplex from cylp.py.modeling.CyLPModel import CyLPArray import matplotlib.pyplot as plt from poly import mvmonos, powers from constants import * from gas_properties import TGZ, gas_coefficients from air_properties import TBZ, air_coefficients import cer...
21.808219
74
0.666457
0934702c8d34ef7b4ad29923346fc91c44e9b4ed
27,038
py
Python
language/DeepNet/model/embed.py
huxin711/ColossalAI-Examples
fa3560683dec891315d5356e76c10ff20e41266f
[ "Apache-2.0" ]
null
null
null
language/DeepNet/model/embed.py
huxin711/ColossalAI-Examples
fa3560683dec891315d5356e76c10ff20e41266f
[ "Apache-2.0" ]
null
null
null
language/DeepNet/model/embed.py
huxin711/ColossalAI-Examples
fa3560683dec891315d5356e76c10ff20e41266f
[ "Apache-2.0" ]
null
null
null
# Adapted from https://github.com/hpcaitech/ColossalAI-Examples/blob/main/language/gpt/model/embed.py import torch from torch import nn as nn, Tensor, distributed as dist from torch.nn import functional as F import torch.nn.init as init from colossalai.context import seed, ParallelMode from colossalai.core impo...
43.330128
129
0.609956
ae78222521795ad9e8769a7f4b794d5c26ea5981
470
py
Python
app/models.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
app/models.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
app/models.py
james-muriithi/django-api
26c9c96eafd35464366eaabf4811e0b96bb981f6
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class News(models.Model): title = models.CharField(max_length=124) description = models.TextField() user = models.ForeignKey( User, on_delete=models.CASCADE, related_name='posted_news') created...
24.736842
67
0.712766
eeeb5e2ab24b242aa6feaa78f7ca0a8ad5b4fec2
11,176
py
Python
packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/waterfall/_textfont.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.textfont" _valid_props = {"color", "colorsrc", "family",...
33.76435
82
0.558608
e11db7d38894b157ab89c015c8cdb3098e5afce4
700
py
Python
tests/base.py
openprocurement/galleon
d27adaaf1e4c4daa3825dbcc6ce8ef0e0db1cfdc
[ "Apache-2.0" ]
null
null
null
tests/base.py
openprocurement/galleon
d27adaaf1e4c4daa3825dbcc6ce8ef0e0db1cfdc
[ "Apache-2.0" ]
1
2018-06-21T12:20:30.000Z
2018-06-21T12:20:30.000Z
tests/base.py
openprocurement/galleon
d27adaaf1e4c4daa3825dbcc6ce8ef0e0db1cfdc
[ "Apache-2.0" ]
2
2018-05-07T15:47:12.000Z
2022-02-14T21:06:46.000Z
import os.path import json import yaml from galleon import Mapper here = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(here, 'data/tender.json')) as _in: TENDER = json.load(_in) with open(os.path.join(here, 'data/mapping.yaml')) as _in: MAPPING = yaml.load(_in) with open(os.path.join(he...
24.137931
59
0.668571
a49d367efaa2c6492f9a4db3a190885027f3238d
97
py
Python
OA/Mubanspider/apps.py
CircularWorld/AutoOffice
052b95e094ed8790abb9bf22683006d8f3307ee4
[ "Apache-2.0" ]
null
null
null
OA/Mubanspider/apps.py
CircularWorld/AutoOffice
052b95e094ed8790abb9bf22683006d8f3307ee4
[ "Apache-2.0" ]
null
null
null
OA/Mubanspider/apps.py
CircularWorld/AutoOffice
052b95e094ed8790abb9bf22683006d8f3307ee4
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class MubanspiderConfig(AppConfig): name = 'Mubanspider'
16.166667
35
0.773196
c3b3390d521715b4e5a73941afd9aab6112eb290
306
py
Python
Python/minimum-number-of-keypresses.py
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
4
2018-10-11T17:50:56.000Z
2018-10-11T21:16:44.000Z
Python/minimum-number-of-keypresses.py
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
null
null
null
Python/minimum-number-of-keypresses.py
Priyansh2/LeetCode-Solutions
d613da1881ec2416ccbe15f20b8000e36ddf1291
[ "MIT" ]
4
2018-10-11T18:50:32.000Z
2018-10-12T00:04:09.000Z
# Time: O(n) # Space: O(1) import collections # greedy, sort class Solution(object): def minimumKeypresses(self, s): """ :type s: str :rtype: int """ return sum(cnt*(i//9+1) for i, cnt in enumerate(sorted(collections.Counter(s).itervalues(), reverse=True)))
20.4
115
0.584967
0b313151d321feaed85b5301791bc97a4ec8b0da
7,434
py
Python
code/branches/itmightbedave/python/oauth/example/server.py
learningcom/oauth.googlecode.com
f0d654b215cad1f4d9a3726b5f0bd62c49b566b9
[ "Apache-2.0" ]
2
2017-12-24T02:06:05.000Z
2020-10-21T05:03:22.000Z
code/branches/itmightbedave/python/oauth/example/server.py
learningcom/oauth.googlecode.com
f0d654b215cad1f4d9a3726b5f0bd62c49b566b9
[ "Apache-2.0" ]
null
null
null
code/branches/itmightbedave/python/oauth/example/server.py
learningcom/oauth.googlecode.com
f0d654b215cad1f4d9a3726b5f0bd62c49b566b9
[ "Apache-2.0" ]
1
2020-10-21T05:03:25.000Z
2020-10-21T05:03:25.000Z
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import urllib import oauth REQUEST_TOKEN_URL = 'http://pureshape.corp.yahoo.com/request_token' ACCESS_TOKEN_URL = 'http://pureshape.corp.yahoo.com/access_token' RENEW_ACCESS_TOKEN_URL = 'http://pureshape.corp.yahoo.com/renew_access_token' AUTHORIZATION_URL...
39.967742
183
0.615281
3fe747323a598b256282253d47629e2f962cb317
4,872
py
Python
docs/conf.py
dem4ply/chibi_command
49efc3070bdf40e5f27146379487345b1accd427
[ "WTFPL" ]
null
null
null
docs/conf.py
dem4ply/chibi_command
49efc3070bdf40e5f27146379487345b1accd427
[ "WTFPL" ]
null
null
null
docs/conf.py
dem4ply/chibi_command
49efc3070bdf40e5f27146379487345b1accd427
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # chibi_command documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
29.707317
77
0.687808
c078bcf668c8518936bac20296eabddfe8196d9e
8,705
py
Python
intersight/model/network_element_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/network_element_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/network_element_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
49.460227
1,678
0.638599
4c277dbcf4c421307f417bacfa275d71e3c51b3f
2,222
py
Python
loss.py
emanuelevivoli/CompReGAN
33589c3871bed8adcc157bf25a45b8d12ba1af66
[ "MIT" ]
null
null
null
loss.py
emanuelevivoli/CompReGAN
33589c3871bed8adcc157bf25a45b8d12ba1af66
[ "MIT" ]
null
null
null
loss.py
emanuelevivoli/CompReGAN
33589c3871bed8adcc157bf25a45b8d12ba1af66
[ "MIT" ]
null
null
null
import torch from torch import nn from torchvision.models.vgg import vgg16 from utils.jpeg_layer import jpegLayer class GeneratorLoss(nn.Module): def __init__(self): super(GeneratorLoss, self).__init__() vgg = vgg16(pretrained=True) loss_network = nn.Sequential(*list(vgg.features)[:31]).ev...
36.42623
114
0.612061
01875bfbc4dfe636fce5c48188be2f2ceff9d3c5
1,296
py
Python
codes/data/torch_dataset.py
neonbjb/mmsr
2706a84f15613e9dcd48e2ba927e7779046cf681
[ "Apache-2.0" ]
1
2020-06-27T13:18:55.000Z
2020-06-27T13:18:55.000Z
codes/data/torch_dataset.py
neonbjb/mmsr
2706a84f15613e9dcd48e2ba927e7779046cf681
[ "Apache-2.0" ]
null
null
null
codes/data/torch_dataset.py
neonbjb/mmsr
2706a84f15613e9dcd48e2ba927e7779046cf681
[ "Apache-2.0" ]
null
null
null
import torch from torch.utils.data import Dataset import torchvision.transforms as T from torchvision import datasets # Wrapper for basic pytorch datasets which re-wraps them into a format usable by ExtensibleTrainer. class TorchDataset(Dataset): def __init__(self, opt): DATASET_MAP = { "mnist"...
40.5
127
0.648148
d394e0cf28a4ad64599043a2a9863312fe69272e
3,468
py
Python
telegrambot/handlers.py
dcopm999/vacancy-telegrambot
a8a87a1eb166b3c6f50af6d4cd301e064e45d798
[ "MIT" ]
null
null
null
telegrambot/handlers.py
dcopm999/vacancy-telegrambot
a8a87a1eb166b3c6f50af6d4cd301e064e45d798
[ "MIT" ]
1
2020-10-08T11:32:10.000Z
2020-10-08T11:32:10.000Z
telegrambot/handlers.py
dcopm999/crm-telegrambot
a8a87a1eb166b3c6f50af6d4cd301e064e45d798
[ "MIT" ]
null
null
null
import logging from abc import ABC, abstractmethod from typing import Any, Optional from telegrambot.bot import TelegramBot from telegrambot.mixins import HistoryMixin, CatalogMixin logger = logging.getLogger(__name__) class Handler(ABC): """ Интерфейс Обработчика объявляет метод построения цепочки обработчи...
30.421053
131
0.647924
4c02be6834a4436fb3b932e8291fdd61428c3111
2,946
py
Python
itertools_2022-02-24.py
cartersimon/learnpython1
16ef511b3917e144c162861808af7bdcbcaebdc6
[ "MIT" ]
null
null
null
itertools_2022-02-24.py
cartersimon/learnpython1
16ef511b3917e144c162861808af7bdcbcaebdc6
[ "MIT" ]
null
null
null
itertools_2022-02-24.py
cartersimon/learnpython1
16ef511b3917e144c162861808af7bdcbcaebdc6
[ "MIT" ]
null
null
null
# https://www.youtube.com/watch?v=HGOBQPFzWKo&list=RDCMUC8butISFwT-Wl7EV0hUK0BQ&start_radio=1&t=181s # Intermediate Python Programming Course (freecodecamp.org) # Tools for handling iterators (iterators can be used in a for loop- lists, etc) # itertools- product, permutations, combinations, accumulate, groupby, infin...
35.493976
119
0.588934
52b7274aa384b84023dc45e47915c5117e677937
2,004
py
Python
01_ode_example_pendulum.py
benmaier/phase_space_example
70807ce73a749db4b64edd880bc9bf46f5a97383
[ "MIT" ]
3
2018-11-19T12:56:15.000Z
2019-10-16T12:21:09.000Z
01_ode_example_pendulum.py
benmaier/phase_space_example
70807ce73a749db4b64edd880bc9bf46f5a97383
[ "MIT" ]
null
null
null
01_ode_example_pendulum.py
benmaier/phase_space_example
70807ce73a749db4b64edd880bc9bf46f5a97383
[ "MIT" ]
1
2018-11-19T14:02:02.000Z
2018-11-19T14:02:02.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # import for fast numerics import numpy as np # import the routine for ODE integration from scipy.integrate import ode # import the plotting routines import matplotlib.pyplot as pl # set equation of motion for pendulum def dy_over_dt(t,y,g,l): r"""pendulum: d^...
22.021978
59
0.633733
7eb2dbadf8dfa65a84b458ee447c2841ea4512b1
72,373
py
Python
jumeg/epocher/jumeg_epocher_events.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
null
null
null
jumeg/epocher/jumeg_epocher_events.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
null
null
null
jumeg/epocher/jumeg_epocher_events.py
fboers/jumeg
e04896989faf72f4dbe7adf136e4d158d212f24a
[ "BSD-3-Clause" ]
null
null
null
'''Class JuMEG_Epocher_Events Class to extract event/epoch information and save to hdf5 extract mne-events per condition, save to HDF5 file ---------------------------------------------------------------- Author: -------- Frank Boers <f.boers@fz-juelich.de> Updates: -------------------------------------...
40.140322
159
0.539331
56a9f69718f000d2e1f319317944f285ef18e9f4
4,524
py
Python
bulletin_board/views.py
onursahil/BERT_search_engine
50b10ee3bbaeceeb5879a76ef43463cfa7132ca2
[ "MIT" ]
null
null
null
bulletin_board/views.py
onursahil/BERT_search_engine
50b10ee3bbaeceeb5879a76ef43463cfa7132ca2
[ "MIT" ]
null
null
null
bulletin_board/views.py
onursahil/BERT_search_engine
50b10ee3bbaeceeb5879a76ef43463cfa7132ca2
[ "MIT" ]
null
null
null
from django.shortcuts import render # from .models import Post from django.shortcuts import redirect import datetime import pandas as pd import numpy as np import re import fasttext import fasttext.util from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk, scan from elasticsearch_dsl import Se...
27.925926
107
0.717507
e661afbb08e56d09c4108b37bac00e8d6df3a96d
1,236
py
Python
locking/forms.py
edufrick/django-locking
a342422114ab011b97fd2d91f432453822d0b1f8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
locking/forms.py
edufrick/django-locking
a342422114ab011b97fd2d91f432453822d0b1f8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
locking/forms.py
edufrick/django-locking
a342422114ab011b97fd2d91f432453822d0b1f8
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" locking.forms Forms class for the django-locking project. """ from __future__ import absolute_import from django import forms from django.contrib.contenttypes.models import ContentType from locking.models import Lock class LockingForm(forms.ModelForm): """ Clean the form to enforce orm locking before ...
32.526316
112
0.631068
1dbd01beddffd993e69a3158910183d0e606d10c
7,306
py
Python
parallel_RRT/parallel_RRT_test_Dask_numba.py
AnsSUN/Parallel-Computing-of-Rapidly-exploring-random-tree-RRT-
4ec2c37f8cd214127421f90f2a0ce2c275f37d94
[ "MIT" ]
3
2019-11-07T06:30:48.000Z
2021-06-06T08:49:36.000Z
parallel_RRT/parallel_RRT_test_Dask_numba.py
AnsSUN/Parallel-Computing-of-Rapidly-exploring-random-tree-RRT-
4ec2c37f8cd214127421f90f2a0ce2c275f37d94
[ "MIT" ]
1
2021-03-01T08:37:04.000Z
2021-03-05T23:06:17.000Z
parallel_RRT/parallel_RRT_test_Dask_numba.py
AnsSUN/Parallel-Computing-of-Rapidly-exploring-random-tree-RRT-
4ec2c37f8cd214127421f90f2a0ce2c275f37d94
[ "MIT" ]
null
null
null
import math import numpy as np from numba import cuda from tqdm import tqdm import matplotlib.pyplot as plt TPB = 256 # number of threads in a block # device function_NN @cuda.jit(device=True) def euc_distance_2d_device(x1,y1,x2,y2): d = math.sqrt((x2-x1)**2+(y2-y1)**2) return d @cuda.jit() def distanceKern...
30.065844
150
0.615521
0ef26e92f4efb903b5fbd3a001ef20823bbf2ce0
1,137
py
Python
svpv/pedigree.py
VCCRI/SVPV
f902b2b8eea3bae1d4e9b097ea76e08fe41d5400
[ "MIT" ]
30
2016-09-16T02:33:20.000Z
2021-06-03T01:06:29.000Z
svpv/pedigree.py
rhshah/SVPV
f902b2b8eea3bae1d4e9b097ea76e08fe41d5400
[ "MIT" ]
2
2018-05-29T09:18:36.000Z
2021-12-17T09:45:25.000Z
svpv/pedigree.py
rhshah/SVPV
f902b2b8eea3bae1d4e9b097ea76e08fe41d5400
[ "MIT" ]
10
2017-02-28T06:15:22.000Z
2022-02-02T13:45:39.000Z
from __future__ import print_function # read a pedigree and store info in a dictionary class Pedigree: def __init__(self, ped, samples): # dict of list of samples in family self.samples_by_family = {} # dict of family by sample self.families_by_sample = {} # all info from pe...
35.53125
85
0.533861
ea5fb5b74d4b1c397f7eb01f77305c582af74312
11,630
py
Python
backtesting/agent/market_makers/SpreadBasedMarketMakerAgent.py
andrewsonin/abides_dev
e8a9c8450bbbe98597f31767362c86eb193597a0
[ "BSD-3-Clause" ]
null
null
null
backtesting/agent/market_makers/SpreadBasedMarketMakerAgent.py
andrewsonin/abides_dev
e8a9c8450bbbe98597f31767362c86eb193597a0
[ "BSD-3-Clause" ]
null
null
null
backtesting/agent/market_makers/SpreadBasedMarketMakerAgent.py
andrewsonin/abides_dev
e8a9c8450bbbe98597f31767362c86eb193597a0
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple, deque import pandas as pd from backtesting.agent.TradingAgent import TradingAgent from backtesting.utils.util import ignored from backtesting.utils.util import log_print ANCHOR_TOP_STR = 'top' ANCHOR_BOTTOM_STR = 'bottom' class SpreadBasedMarketMakerAgent(TradingAgent): """ ...
40.950704
117
0.646862
462507b5f5688bff89ba3207f9f9f835fb5f7313
9,121
py
Python
onmt/Dataset.py
DanSchum/NMTGMinor
ebcf33cc77b7c2bc73192f1975b99487db0ebc8a
[ "MIT" ]
null
null
null
onmt/Dataset.py
DanSchum/NMTGMinor
ebcf33cc77b7c2bc73192f1975b99487db0ebc8a
[ "MIT" ]
null
null
null
onmt/Dataset.py
DanSchum/NMTGMinor
ebcf33cc77b7c2bc73192f1975b99487db0ebc8a
[ "MIT" ]
null
null
null
from __future__ import division import math import torch import sys from torch.autograd import Variable import onmt class Batch(object): def __init__(self, src_data, tgt_data=None, src_align_right=False, tgt_align_right=False): self.tensors = dict() self.has_target...
35.352713
135
0.546979
13a78ee3096804423ed04d3460f60243d070c78c
1,329
py
Python
src/profiles/forms.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
null
null
null
src/profiles/forms.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
9
2017-11-21T15:45:18.000Z
2022-02-11T03:37:54.000Z
src/profiles/forms.py
mizamae/HomeAutomation
8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca
[ "MIT" ]
1
2020-07-22T02:24:17.000Z
2020-07-22T02:24:17.000Z
# coding: utf-8 from __future__ import unicode_literals from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field from django import forms from django.contrib.auth import ge...
27.6875
78
0.607223
cafe76f54799e953f9451465a4d90ffdbf96b08d
391
py
Python
bouncer/bouncer/wsgi.py
ikechuku/bouncer_rest_api
ca3f21a68c445fa3023168d2ecd3b38001554779
[ "MIT" ]
null
null
null
bouncer/bouncer/wsgi.py
ikechuku/bouncer_rest_api
ca3f21a68c445fa3023168d2ecd3b38001554779
[ "MIT" ]
8
2020-06-05T21:35:47.000Z
2021-09-22T18:42:45.000Z
bouncer/bouncer/wsgi.py
ikechuku/demo-jhipster
e0d0806ee75dccf77eb62b31c4d59c0bf1a7a230
[ "MIT" ]
null
null
null
""" WSGI config for bouncer 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('DJANGO_SETTI...
23
78
0.785166
138032e30e63fed8d95cf844be0f47c22a9ac7e2
1,092
py
Python
docker-image/apiserver/app/app.py
wix-playground/supraworker
9672a4f0094ef09c51e47ac6e51655ca27a636c0
[ "Apache-2.0" ]
1
2020-09-24T00:12:58.000Z
2020-09-24T00:12:58.000Z
docker-image/apiserver/app/app.py
wix-playground/supraworker
9672a4f0094ef09c51e47ac6e51655ca27a636c0
[ "Apache-2.0" ]
5
2020-04-05T23:31:42.000Z
2021-08-31T21:22:49.000Z
docker-image/apiserver/app/app.py
wix-playground/supraworker
9672a4f0094ef09c51e47ac6e51655ca27a636c0
[ "Apache-2.0" ]
2
2021-08-03T11:13:43.000Z
2021-08-03T11:15:08.000Z
# -*- coding: utf-8 -*- """ Main file """ import os import logging from flask import Flask from flask_restx.apidoc import apidoc from app.resources.logs import logs_page from app.resources.jobs import job_page logging.basicConfig( level= logging.DEBUG, format='%(asctime)s {%(filename)s:%(lineno)d} %(le...
33.090909
94
0.748168
182f3e1b0a6c0654dfba84caf5b80a1be67ff071
237
py
Python
practice_python/list_less_then_five/list_less_then_five.py
alefeans/python_exercises
d7f8ea8dfd993f070d201202d12a526bb8105cc5
[ "MIT" ]
1
2021-06-11T18:29:26.000Z
2021-06-11T18:29:26.000Z
practice_python/list_less_then_five/list_less_then_five.py
alefeans/learning_python
d7f8ea8dfd993f070d201202d12a526bb8105cc5
[ "MIT" ]
null
null
null
practice_python/list_less_then_five/list_less_then_five.py
alefeans/learning_python
d7f8ea8dfd993f070d201202d12a526bb8105cc5
[ "MIT" ]
null
null
null
def check_list(lista): return [lista[i] for i in range(len(lista)) if lista[i] < 5] if __name__ == "__main__": entry = input("Give me a list of numbers: ") lista = list(map(int, entry.split())) print(check_list(lista))
26.333333
64
0.637131
74c5418df253777760034d01ee0a0aa455031dd4
11,314
py
Python
python/ray/serve/tests/test_backend_worker.py
Rid039/ray
eb9330df07150adbb9a4e334ace6b1a3ba6602a2
[ "Apache-2.0" ]
1
2021-02-04T13:45:00.000Z
2021-02-04T13:45:00.000Z
python/ray/serve/tests/test_backend_worker.py
mfitton/ray
fece8db70d703da1aad192178bd50923e83cc99a
[ "Apache-2.0" ]
72
2021-02-06T08:07:16.000Z
2022-03-26T07:17:49.000Z
python/ray/serve/tests/test_backend_worker.py
mfitton/ray
fece8db70d703da1aad192178bd50923e83cc99a
[ "Apache-2.0" ]
2
2020-05-22T15:36:27.000Z
2020-05-22T15:52:03.000Z
import asyncio import pytest import numpy as np import ray from ray import serve from ray.serve.backend_worker import create_backend_replica, wrap_to_ray_error from ray.serve.controller import TrafficPolicy from ray.serve.router import Router, RequestMetadata from ray.serve.config import BackendConfig, BackendMetadat...
31.168044
79
0.646721
0d691ec72cea914e2e76e9db7179d1a70b269fcf
2,954
py
Python
start.py
joezawisa/dockermc
d4e622ba9dc23fee613e7b14154780e66df9cc00
[ "Apache-2.0" ]
null
null
null
start.py
joezawisa/dockermc
d4e622ba9dc23fee613e7b14154780e66df9cc00
[ "Apache-2.0" ]
null
null
null
start.py
joezawisa/dockermc
d4e622ba9dc23fee613e7b14154780e66df9cc00
[ "Apache-2.0" ]
null
null
null
import argparse import requests import os import sys # Function to load version manifest def get_manifest(url): r = requests.get(url) if r.ok: return r.json() else: print('Error: failed to load manifest', file=sys.stderr) sys.exit(1) # Parse command line arguments parser = argparse...
36.925
186
0.611713
0e83acad0e58eff2facc4247cbcec272ebd3b2a5
1,705
py
Python
cacreader/swig-4.0.2/Examples/python/import/runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
1,031
2015-01-02T14:08:47.000Z
2022-03-29T02:25:27.000Z
cacreader/swig-4.0.2/Examples/python/import/runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
240
2015-01-11T04:27:19.000Z
2022-03-30T00:35:57.000Z
cacreader/swig-4.0.2/Examples/python/import/runme.py
kyletanyag/LL-Smartcard
02abea9de5a13f8bae4d7832ab34cb7f0d9514c9
[ "BSD-3-Clause" ]
224
2015-01-05T06:13:54.000Z
2022-02-25T14:39:51.000Z
# file: runme.py # Test various properties of classes defined in separate modules print "Testing the %import directive" import base import foo import bar import spam # Create some objects print "Creating some objects" a = base.Base() b = foo.Foo() c = bar.Bar() d = spam.Spam() # Try calling some methods print "Tes...
15.787037
64
0.57654
d18bcf0ffa5e179f264dac8fd02a77b6934e007c
8,349
py
Python
component/tile/bfast_tile.py
sepal-contrib/bfast_gpu
22214b0277993835f41f07e6646e6e15deecc9d9
[ "MIT" ]
2
2021-05-21T06:23:20.000Z
2021-06-29T06:03:25.000Z
component/tile/bfast_tile.py
sepal-contrib/bfast_gpu
22214b0277993835f41f07e6646e6e15deecc9d9
[ "MIT" ]
28
2021-04-23T09:38:36.000Z
2021-09-28T09:44:00.000Z
component/tile/bfast_tile.py
sepal-contrib/bfast_gpu
22214b0277993835f41f07e6646e6e15deecc9d9
[ "MIT" ]
2
2021-05-01T09:35:59.000Z
2021-06-22T10:53:33.000Z
from pathlib import Path from datetime import datetime as dt import ipyvuetify as v from sepal_ui import sepalwidgets as sw from sepal_ui.scripts import utils as su from traitlets import Any from component import widget as cw from component.message import cm from component import scripts as cs from component import p...
33.262948
112
0.548329
3e3b076c7313d33e4b59b5611b24294163ec667b
4,145
py
Python
tgbot/ext/persistent/sqlite.py
JacoRuit/tgbot
1e32a802bc4869d46562ec4c2d46dc691868061c
[ "MIT" ]
2
2016-08-09T21:28:04.000Z
2016-08-16T12:04:40.000Z
tgbot/ext/persistent/sqlite.py
JacoRuit/tgbot
1e32a802bc4869d46562ec4c2d46dc691868061c
[ "MIT" ]
null
null
null
tgbot/ext/persistent/sqlite.py
JacoRuit/tgbot
1e32a802bc4869d46562ec4c2d46dc691868061c
[ "MIT" ]
null
null
null
import threading import sqlite3 import json from tgbot.ext.persistent import Storage, PersistentChat, PersistentUser class ThreadsafeCursor(object): def __init__(self, connection): self._mutex = threading.Lock() self._connection = connection self._cursor = connection.cursor() def _in...
40.637255
166
0.586972
2c86f1741a61ee77235397dc66c5de34a8463caa
2,651
py
Python
Wager/migrations/0001_initial.py
tfleech/Wager
b6dc658db063fce7d76ab39619fb8ce2ee83981a
[ "MIT" ]
null
null
null
Wager/migrations/0001_initial.py
tfleech/Wager
b6dc658db063fce7d76ab39619fb8ce2ee83981a
[ "MIT" ]
null
null
null
Wager/migrations/0001_initial.py
tfleech/Wager
b6dc658db063fce7d76ab39619fb8ce2ee83981a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-16 04:05 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc class Migration(migrations.Migration): initial = True dependencies...
38.42029
120
0.563184
b278c7bd58db1982fd34b24d77b49b41b336f81f
6,763
py
Python
src/generate_snapshot_data/dump.py
saheel1115/szz-
dbfbf3c2d007f61ee8c8793f83dbdc071ad02da3
[ "MIT" ]
9
2017-10-21T13:29:46.000Z
2022-01-10T23:49:54.000Z
src/generate_snapshot_data/dump.py
saheel1115/szz-
dbfbf3c2d007f61ee8c8793f83dbdc071ad02da3
[ "MIT" ]
3
2018-01-09T11:28:55.000Z
2019-01-20T08:45:18.000Z
src/generate_snapshot_data/dump.py
saheel1115/szz-
dbfbf3c2d007f61ee8c8793f83dbdc071ad02da3
[ "MIT" ]
1
2020-12-29T05:10:31.000Z
2020-12-29T05:10:31.000Z
#!/usr/bin/python import argparse import os, sys, inspect import os.path import shutil import logging from git import * from projDB import DbProj #from GitRepo import GitRepo sys.path.append("src/util") sys.path.append("src/changes") from Config import Config from OutDir import OutDir import Log from Util import ...
34.505102
131
0.600917
c6d081bc4881fee1a25eca9f6fed0c003a7b8ecd
3,869
py
Python
examples/python/copula.py
HarryPetr1969/statsmodels
fb448540aa0fa354d4cd2fe7b161cb949ce91888
[ "BSD-3-Clause" ]
6,931
2015-01-01T11:41:55.000Z
2022-03-31T17:03:24.000Z
examples/python/copula.py
HarryPetr1969/statsmodels
fb448540aa0fa354d4cd2fe7b161cb949ce91888
[ "BSD-3-Clause" ]
6,137
2015-01-01T00:33:45.000Z
2022-03-31T22:53:17.000Z
examples/python/copula.py
HarryPetr1969/statsmodels
fb448540aa0fa354d4cd2fe7b161cb949ce91888
[ "BSD-3-Clause" ]
2,608
2015-01-02T21:32:31.000Z
2022-03-31T07:38:30.000Z
#!/usr/bin/env python # coding: utf-8 # DO NOT EDIT # Autogenerated from the notebook copula.ipynb. # Edit the notebook and then sync the output with this file. # # flake8: noqa # DO NOT EDIT # # Copula - Multivariate joint distribution import matplotlib.pyplot as plt import numpy as np import seaborn as sns from sc...
36.847619
81
0.745929
475cceeef187ebb47ef961786a0cf55184a33c66
2,885
py
Python
spotty/providers/aws/deployment/project_resources/instance_stack.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
1
2020-07-17T07:02:09.000Z
2020-07-17T07:02:09.000Z
spotty/providers/aws/deployment/project_resources/instance_stack.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
spotty/providers/aws/deployment/project_resources/instance_stack.py
Inculus/spotty
56863012668a6c13ad13c2a04f900047e229fbe6
[ "MIT" ]
null
null
null
import boto3 from spotty.commands.writers.abstract_output_writrer import AbstractOutputWriter from spotty.providers.aws.aws_resources.instance import Instance from spotty.providers.aws.aws_resources.stack import Stack class InstanceStackResource(object): def __init__(self, project_name: str, instance_name: str, ...
37.960526
109
0.612478
2dc0f5fd32bbadaee8f799098aaeede3a0a6a025
31,546
py
Python
test_ghost.py
JIABI/GhostShiftAddNet
870c38248fa1df23ec1262b6690e20c437d1d5d4
[ "MIT" ]
2
2021-08-23T08:43:35.000Z
2021-11-28T17:22:29.000Z
test_ghost.py
selkerdawy/GhostShiftAddNet
870c38248fa1df23ec1262b6690e20c437d1d5d4
[ "MIT" ]
1
2021-11-01T08:35:07.000Z
2021-11-01T08:35:07.000Z
test_ghost.py
selkerdawy/GhostShiftAddNet
870c38248fa1df23ec1262b6690e20c437d1d5d4
[ "MIT" ]
3
2021-11-10T08:37:50.000Z
2022-02-08T13:28:16.000Z
import argparse import os, time import torch import shutil import numpy as np import torch.nn as nn import torchvision.transforms as transforms import torchvision.datasets as datasets import torch.nn.functional as F from pthflops import count_ops import torch.optim as optim from thop import profile from thop import cle...
44.493653
198
0.651873
20407f8bd3c23fa5b4cf9c3b3fa4be0c7dce831b
35,276
py
Python
lib-python/2.4.1/test/regrtest.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
lib-python/2.4.1/test/regrtest.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
lib-python/2.4.1/test/regrtest.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
#! /usr/bin/env python """Regression test. This will find all modules whose name is "test_*" in the test directory, and run them. Various command line options provide additional facilities. Command line options: -v: verbose -- run tests in verbose mode with output to stdout -q: quiet -- don't print anythin...
30.648132
79
0.56177
d66f02c27f8a678dcab009c8776f8c3cce8afe62
2,584
py
Python
2018/06/danger.py
stacybrock/advent-of-code
781e097bbd506faa4b05ebd844f5641127a6cd08
[ "MIT" ]
null
null
null
2018/06/danger.py
stacybrock/advent-of-code
781e097bbd506faa4b05ebd844f5641127a6cd08
[ "MIT" ]
null
null
null
2018/06/danger.py
stacybrock/advent-of-code
781e097bbd506faa4b05ebd844f5641127a6cd08
[ "MIT" ]
null
null
null
# solution to Advent of Code 2018, day 6 part one and two # https://adventofcode.com/2018/day/6 # # assumes puzzle input is in a file called input.txt import fileinput from collections import defaultdict from operator import itemgetter def main(): raw_coordinates = list(line.strip() for line in fileinput.input())...
34.453333
108
0.614551
268d96d52e584d409a63a1d739e2a3208ae481ce
10,394
py
Python
venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/elb_application_lb_facts.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/elb_application_lb_facts.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/cloud/amazon/elb_application_lb_facts.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
37.121429
160
0.670483
2c1458742461dfa240e506483652c644420aea3b
1,000
py
Python
tests/test_utils.py
tranquilitybase-io/tb-aws-dac
7ea6a2d1dc4d237e23aa457980d6f81817c8ffee
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
tranquilitybase-io/tb-aws-dac
7ea6a2d1dc4d237e23aa457980d6f81817c8ffee
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
tranquilitybase-io/tb-aws-dac
7ea6a2d1dc4d237e23aa457980d6f81817c8ffee
[ "Apache-2.0" ]
1
2021-06-23T20:35:39.000Z
2021-06-23T20:35:39.000Z
import unittest from unittest import TestCase from gcpdac.utils import labellize class Utils_Test(TestCase): def test_labellize(self): # google label rules here - https://cloud.google.com/compute/docs/labeling-resources self.assertEqual("abc", labellize("abc")) self.assertEqual("ab-c", la...
38.461538
105
0.67
3e0738a9f7170c7a85d9deb2f310f2117e21188d
33
py
Python
pyrec/implicit/__init__.py
redbubble/pyrec
8f1a7ed73b69352f960f33e643eb20be7e74830a
[ "MIT" ]
1
2019-10-17T02:09:18.000Z
2019-10-17T02:09:18.000Z
pyrec/implicit/__init__.py
redbubble/pyrec
8f1a7ed73b69352f960f33e643eb20be7e74830a
[ "MIT" ]
null
null
null
pyrec/implicit/__init__.py
redbubble/pyrec
8f1a7ed73b69352f960f33e643eb20be7e74830a
[ "MIT" ]
null
null
null
from .als import load_recommender
33
33
0.878788
149d12cd1fd9cece180b04a3b036de54b7acdda2
11,926
py
Python
e2e_tests/tests/experiment/test_metrics.py
seanr15/determined
f0eba7d43cf55a67832cc6001127c0b1e7326a9e
[ "Apache-2.0" ]
null
null
null
e2e_tests/tests/experiment/test_metrics.py
seanr15/determined
f0eba7d43cf55a67832cc6001127c0b1e7326a9e
[ "Apache-2.0" ]
null
null
null
e2e_tests/tests/experiment/test_metrics.py
seanr15/determined
f0eba7d43cf55a67832cc6001127c0b1e7326a9e
[ "Apache-2.0" ]
null
null
null
import json import multiprocessing as mp from typing import Set, Union import pytest import determined_common.api.authentication as auth from determined_common import api from tests import config as conf from tests import experiment as exp @pytest.mark.e2e_cpu # type: ignore @pytest.mark.timeout(600) # type: igno...
43.845588
100
0.670636
965bbc1f52c5fc0da021d85fdb3ffed45c7fd55b
606
py
Python
var/spack/repos/builtin/packages/py-cmocean/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-cmocean/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-cmocean/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class PyCmocean(PythonPackage): """Colormaps for Oceanography.""" homepage = "https://matplotlib.org/cmocean/" ...
33.666667
93
0.719472
a77048dbcd0e475a86560a19cc2b9d09a841d023
807
py
Python
chatrah/urls.py
Mukthar86/kushwanth
a9a18437d9728037606a141569eca5439c20c22f
[ "MIT" ]
1
2022-02-09T06:00:01.000Z
2022-02-09T06:00:01.000Z
chatrah/urls.py
Mukthar86/kushwanth
a9a18437d9728037606a141569eca5439c20c22f
[ "MIT" ]
null
null
null
chatrah/urls.py
Mukthar86/kushwanth
a9a18437d9728037606a141569eca5439c20c22f
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include, re_path from django.conf import settings from django.conf.urls.static import static admin.site.site_header = 'Chatrah' admin.site.site_title = 'Chatrah' admin.site.index_title = 'Chatrah Administration' admin.empty_value_display = '**Empty**' url...
35.086957
65
0.703841
2cfd48132d875803ceb3bda75f35e00a5cd5c818
1,648
py
Python
cal_flops.py
devzhk/Implicit-Competitive-Regularization
71bda29f2db18d1d7ae9860e4a761ff61cbec756
[ "Apache-2.0" ]
107
2019-10-15T15:55:20.000Z
2021-12-27T02:02:50.000Z
cal_flops.py
AzR919/Implicit-Competitive-Regularization
d69b66b1843cf72d94a1b0957aa30eb34e46af53
[ "Apache-2.0" ]
11
2019-10-16T09:41:23.000Z
2020-12-16T08:44:38.000Z
cal_flops.py
AzR919/Implicit-Competitive-Regularization
d69b66b1843cf72d94a1b0957aa30eb34e46af53
[ "Apache-2.0" ]
26
2019-10-15T03:38:41.000Z
2021-03-25T11:52:08.000Z
from train_utils import get_model import torch from ptflops import get_model_complexity_info if __name__ == '__main__': z_dim = 128 model_name= 'Resnet' model_config = {'image_size': 64, 'image_channel': 3, 'feature_num': 128, 'n_extra_layers': 0...
51.5
82
0.432039
f646d5f9f321e722d5ab661f7a905134270d6c67
1,470
py
Python
helper-functions/get_satellite_data.py
scottlittle/solar-sensors
c9bd496e6cb589a73a7340522c48a530d3131672
[ "Apache-2.0" ]
1
2015-08-19T02:29:41.000Z
2015-08-19T02:29:41.000Z
helper-functions/get_satellite_data.py
scottlittle/solar-sensors
c9bd496e6cb589a73a7340522c48a530d3131672
[ "Apache-2.0" ]
null
null
null
helper-functions/get_satellite_data.py
scottlittle/solar-sensors
c9bd496e6cb589a73a7340522c48a530d3131672
[ "Apache-2.0" ]
null
null
null
# the directory where this is run must have the list.txt file that # generates the local http files (http_files) with the command: # "wget -i list.txt" at the command line. This command should be # run before running this script import pandas as pd import os import glob import requests mypath = "data/satellite/sfare...
37.692308
89
0.719728
bd6ef4d1d10b52ec1a5f708ba3723cad0813e3f0
332
py
Python
images/migrations/0004_auto_20201126_2252.py
cebanauskes/ida_images
708eb44274b28d53f9b0422fbf3711d85ac62a6b
[ "MIT" ]
null
null
null
images/migrations/0004_auto_20201126_2252.py
cebanauskes/ida_images
708eb44274b28d53f9b0422fbf3711d85ac62a6b
[ "MIT" ]
null
null
null
images/migrations/0004_auto_20201126_2252.py
cebanauskes/ida_images
708eb44274b28d53f9b0422fbf3711d85ac62a6b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-26 19:52 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('images', '0003_auto_20201126_2228'), ] operations = [ migrations.RenameModel( old_name='ImageModel', new_name='Image', ...
18.444444
47
0.596386
b682027b06dff29eea2d25f2d0f376ab9f8d7176
7,873
py
Python
test/functional/rpc_users.py
petegee/CnBCoin
0566ad715ff36c0a983741752bd2796ea2633010
[ "MIT" ]
1
2021-05-16T06:17:44.000Z
2021-05-16T06:17:44.000Z
test/functional/rpc_users.py
petegee/CnBCoin
0566ad715ff36c0a983741752bd2796ea2633010
[ "MIT" ]
null
null
null
test/functional/rpc_users.py
petegee/CnBCoin
0566ad715ff36c0a983741752bd2796ea2633010
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiple RPC users.""" from test_framework.test_framework import BitcoinTestFramework from test_f...
38.033816
129
0.614505
7bad6ab9693c2e19c6a4520c75dd9601d6beee75
3,989
py
Python
lost_years/ssa.py
gojiplus/lost_years
b7af037827bbb478b8defb7db007bfc950d9ebfe
[ "MIT" ]
5
2020-04-02T05:43:43.000Z
2020-04-02T18:26:13.000Z
lost_years/ssa.py
gojiplus/lost_years
b7af037827bbb478b8defb7db007bfc950d9ebfe
[ "MIT" ]
null
null
null
lost_years/ssa.py
gojiplus/lost_years
b7af037827bbb478b8defb7db007bfc950d9ebfe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import argparse import pandas as pd from pkg_resources import resource_filename from .utils import column_exists, fixup_columns, closest SSA_DATA = resource_filename(__name__, "data/ssa.csv") SSA_COLS = ['age', 'male_life_expectancy', 'female_life_expectancy'...
34.991228
78
0.55628
536eceeb7fee1f8f93ced3a8638a937413d4cecb
1,162
py
Python
qiskit/_classicalregister.py
Phonemetra/TurboQuantum
c168d6dda361258ca1ffce60e7e8ac5d10e69f06
[ "Apache-2.0" ]
1
2017-07-12T02:04:53.000Z
2017-07-12T02:04:53.000Z
qiskit/_classicalregister.py
Phonemetra/TurboQuantum
c168d6dda361258ca1ffce60e7e8ac5d10e69f06
[ "Apache-2.0" ]
null
null
null
qiskit/_classicalregister.py
Phonemetra/TurboQuantum
c168d6dda361258ca1ffce60e7e8ac5d10e69f06
[ "Apache-2.0" ]
6
2018-05-27T10:52:02.000Z
2021-04-02T19:20:11.000Z
# -*- coding: utf-8 -*- # Copyright 2017 IBM RESEARCH. 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...
32.277778
79
0.658348
d67710f14549a3396ca9af109968823e049a849d
675
py
Python
ROAR/planning_module/mission_planner/mission_planner.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
18
2020-10-16T00:38:55.000Z
2022-03-03T06:01:49.000Z
ROAR/planning_module/mission_planner/mission_planner.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
20
2020-07-23T03:50:50.000Z
2021-11-09T04:00:26.000Z
ROAR/planning_module/mission_planner/mission_planner.py
RyanC1681/RCAI1122
c9683110b58c255a7a78d880ff73df7ff2329405
[ "Apache-2.0" ]
140
2019-11-20T22:46:02.000Z
2022-03-29T13:26:17.000Z
from typing import List import logging from ROAR.utilities_module.data_structures_models import Transform from collections import deque from ROAR.planning_module.abstract_planner import AbstractPlanner class MissionPlanner(AbstractPlanner): def __init__(self, agent, **kwargs): super().__init__(agent=agent...
25.961538
66
0.677037
4b5562856173fe69e2883aed8b3d02680f362781
569
py
Python
mapBookmarkSite/mapbookmark/migrations/0005_auto_20210408_1559.py
UJHa/MapBookmarkSite
f80aa1576ccfab2fe53e993b36f1c798450af56b
[ "MIT" ]
null
null
null
mapBookmarkSite/mapbookmark/migrations/0005_auto_20210408_1559.py
UJHa/MapBookmarkSite
f80aa1576ccfab2fe53e993b36f1c798450af56b
[ "MIT" ]
null
null
null
mapBookmarkSite/mapbookmark/migrations/0005_auto_20210408_1559.py
UJHa/MapBookmarkSite
f80aa1576ccfab2fe53e993b36f1c798450af56b
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-08 06:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mapbookmark', '0004_auto_20210407_0820'), ] operations = [ migrations.AlterField( model_name='marker', name='content...
23.708333
63
0.578207
1ec0238c252fb78ade6d32b5ef08ead50069a5f4
263
py
Python
youtube_subdownloader/youtube.py
lavinske/Automation-scripts
3803a39c761971e630e0b1e659d1372c90be178a
[ "MIT" ]
null
null
null
youtube_subdownloader/youtube.py
lavinske/Automation-scripts
3803a39c761971e630e0b1e659d1372c90be178a
[ "MIT" ]
null
null
null
youtube_subdownloader/youtube.py
lavinske/Automation-scripts
3803a39c761971e630e0b1e659d1372c90be178a
[ "MIT" ]
null
null
null
from selenium import webdriver open = webdriver.Chrome() open.get('https://youtube.com') searchmenu = open.find_element_by_xpath('//*[@id="search"]') searchmenu.send_keys('Pewdiepie') go = open.find_element_by_xpath('//*[@id="search-icon-legacy"]') go.click()
23.909091
64
0.726236
84765592541142b2647a85631a7cc7abbcba88ba
254
py
Python
nodemcu_uploader/__init__.py
j-keck/nodemcu-uploader
557a25f37b1fb4e31a745719e237e42fff192834
[ "MIT" ]
null
null
null
nodemcu_uploader/__init__.py
j-keck/nodemcu-uploader
557a25f37b1fb4e31a745719e237e42fff192834
[ "MIT" ]
null
null
null
nodemcu_uploader/__init__.py
j-keck/nodemcu-uploader
557a25f37b1fb4e31a745719e237e42fff192834
[ "MIT" ]
1
2020-03-17T04:13:22.000Z
2020-03-17T04:13:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2015-2016 Peter Magnusson <peter@birchroad.net> """Library and util for uploading files to NodeMCU version 0.9.4 and later""" from .version import __version__ from .uploader import Uploader
28.222222
77
0.732283
b9d6b0ba55947aa4ad28b621451d92fe46e46846
401
py
Python
Awwardsclone/wsgi.py
MungaiKeren/Awwards-Clone
3aaff84dbe19e6163efec90436777d1bb687507c
[ "MIT" ]
null
null
null
Awwardsclone/wsgi.py
MungaiKeren/Awwards-Clone
3aaff84dbe19e6163efec90436777d1bb687507c
[ "MIT" ]
9
2020-06-05T23:59:38.000Z
2022-02-10T09:33:34.000Z
Awwardsclone/wsgi.py
MungaiKeren/Awwards-Clone
3aaff84dbe19e6163efec90436777d1bb687507c
[ "MIT" ]
1
2020-05-26T03:18:39.000Z
2020-05-26T03:18:39.000Z
""" WSGI config for Awwardsclone 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('DJANGO_...
23.588235
78
0.790524
a142204391ce7d63a4a8b3a7e73976c5bf4f7770
2,034
py
Python
utils.py
dude123studios/Connect
cd4669d025720b394080d8f99eedce02c31f835b
[ "CC0-1.0" ]
null
null
null
utils.py
dude123studios/Connect
cd4669d025720b394080d8f99eedce02c31f835b
[ "CC0-1.0" ]
null
null
null
utils.py
dude123studios/Connect
cd4669d025720b394080d8f99eedce02c31f835b
[ "CC0-1.0" ]
1
2021-03-16T19:42:22.000Z
2021-03-16T19:42:22.000Z
from passlib.hash import pbkdf2_sha256 from itsdangerous import URLSafeTimedSerializer from flask import current_app import uuid from flask_uploads import extension from extensions import image_set, cache from PIL import Image import os def hash_password(password): return pbkdf2_sha256.hash(password) def check_pa...
33.344262
83
0.696657
5f9efb753be1a0571e6db375c0317779d5badb98
154
py
Python
client/admin.py
JohnChen97/authentication-lab
19f382c53ed04fbbe765d12094735aacd05c0ef7
[ "MIT" ]
null
null
null
client/admin.py
JohnChen97/authentication-lab
19f382c53ed04fbbe765d12094735aacd05c0ef7
[ "MIT" ]
null
null
null
client/admin.py
JohnChen97/authentication-lab
19f382c53ed04fbbe765d12094735aacd05c0ef7
[ "MIT" ]
null
null
null
from django.contrib import admin from rest_framework.authtoken.admin import TokenAdmin # Register your models here. TokenAdmin.raw_id_fields = ('user', )
30.8
53
0.811688
db76c7ff157947f10d2fde13d3492380f8216499
56,230
py
Python
build/management/commands/build_g_proteins.py
jesperswillem/protwis
a36cd60fe9724d61b2c78c4d16f9d3697543b8aa
[ "Apache-2.0" ]
null
null
null
build/management/commands/build_g_proteins.py
jesperswillem/protwis
a36cd60fe9724d61b2c78c4d16f9d3697543b8aa
[ "Apache-2.0" ]
null
null
null
build/management/commands/build_g_proteins.py
jesperswillem/protwis
a36cd60fe9724d61b2c78c4d16f9d3697543b8aa
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.db import connection from django.db import IntegrityError from common.models import WebResource, WebLink from protein.models import (Protein, ProteinGProtein,ProteinGProteinPair, ProteinConformation, Protei...
44.485759
257
0.53708
80109f7c8f0889af2c93cb81eaaed583566f120d
2,415
py
Python
devpotato_bot/error_handler.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2021-05-15T23:41:29.000Z
2021-05-15T23:41:29.000Z
devpotato_bot/error_handler.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2022-02-19T20:38:33.000Z
2022-02-19T23:53:39.000Z
devpotato_bot/error_handler.py
cl0ne/cryptopotato-bot
af62d794adffe186a4f6a4b0aa7ecd4f7e8700a1
[ "MIT" ]
1
2021-05-15T23:42:21.000Z
2021-05-15T23:42:21.000Z
import logging import sys import traceback import telegram from telegram import Update, ParseMode, Chat, User from telegram.ext import CallbackContext def create_callback(developer_ids): logger = logging.getLogger(__name__) def callback(update: Update, context: CallbackContext): """Log Errors caused...
39.590164
89
0.595445
b1ebc17e9c05a9affc49ef3b1c2730745b493ffe
12,068
py
Python
core/domain/rights_domain.py
Rijuta-s/oppia
f4f3cd71f90285abee3b0f74062586aaafadce7d
[ "Apache-2.0" ]
null
null
null
core/domain/rights_domain.py
Rijuta-s/oppia
f4f3cd71f90285abee3b0f74062586aaafadce7d
[ "Apache-2.0" ]
3
2021-02-13T08:35:34.000Z
2021-05-18T12:17:06.000Z
core/domain/rights_domain.py
Rijuta-s/oppia
f4f3cd71f90285abee3b0f74062586aaafadce7d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
38.069401
80
0.643934
6a46a6f2e5e6e7481ef08753ec23e8e320d79092
53
py
Python
src/models/__init__.py
jkpawlowski96/TRD-client-api
d85c182981e155e94b185c8f1367841143fd33e0
[ "Unlicense" ]
null
null
null
src/models/__init__.py
jkpawlowski96/TRD-client-api
d85c182981e155e94b185c8f1367841143fd33e0
[ "Unlicense" ]
null
null
null
src/models/__init__.py
jkpawlowski96/TRD-client-api
d85c182981e155e94b185c8f1367841143fd33e0
[ "Unlicense" ]
null
null
null
from .pair import Pair from .interval import Interval
26.5
30
0.830189
645e4b45b88df6b1116cef3dff3bb1426f358c5b
202
py
Python
entities/application.py
fic2/python-dokuwiki-export
3584c4cd146e1d8510504064c8c8094e41a5fc9e
[ "MIT" ]
null
null
null
entities/application.py
fic2/python-dokuwiki-export
3584c4cd146e1d8510504064c8c8094e41a5fc9e
[ "MIT" ]
null
null
null
entities/application.py
fic2/python-dokuwiki-export
3584c4cd146e1d8510504064c8c8094e41a5fc9e
[ "MIT" ]
null
null
null
from . import NamedEntity class Application(NamedEntity): def __init__(self, name, provider): NamedEntity.__init__(self, name) self.provider = provider def get_descendants(self): return []
16.833333
36
0.742574
8b3e140224a7116296f99c7d4571a3e1076e6401
7,215
py
Python
doc/conf.py
antoniotrento/modoboa
98eea782a080a3cdfea5abea7d288ff3d49595c6
[ "ISC" ]
1
2019-06-12T19:24:42.000Z
2019-06-12T19:24:42.000Z
doc/conf.py
antoniotrento/modoboa
98eea782a080a3cdfea5abea7d288ff3d49595c6
[ "ISC" ]
null
null
null
doc/conf.py
antoniotrento/modoboa
98eea782a080a3cdfea5abea7d288ff3d49595c6
[ "ISC" ]
1
2020-11-20T00:25:23.000Z
2020-11-20T00:25:23.000Z
# -*- coding: utf-8 -*- # # Modoboa documentation build configuration file, created by # sphinx-quickstart on Mon Jan 3 22:29:25 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
31.644737
80
0.716286
9b0aa9a957b4908d82d64571a4d33700be4d2f82
744
py
Python
contentcuration/contentcuration/test_settings.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
null
null
null
contentcuration/contentcuration/test_settings.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
null
null
null
contentcuration/contentcuration/test_settings.py
Tlazypanda/studio
cd1c2f169c705027cdd808cbbcae907d0a9b21d2
[ "MIT" ]
null
null
null
import logging from .settings import * # noqa DEBUG = True if RUNNING_TESTS: # if we're running tests, run Celery tests synchronously so tests won't complete before the process # is finished. CELERY_TASK_ALWAYS_EAGER = True ALLOWED_HOSTS = ["studio.local", "192.168.31.9", "127.0.0.1", "*"] ACCOUNT_ACT...
27.555556
103
0.721774
f04a2c0cd5fc8c26a002f7dee8363477dc27f4ce
22,021
py
Python
vespid/models/clustering.py
QS-2/VESPID
f7d27f0c4aa99229d12d90fce9a52a48339e0a59
[ "Apache-2.0" ]
null
null
null
vespid/models/clustering.py
QS-2/VESPID
f7d27f0c4aa99229d12d90fce9a52a48339e0a59
[ "Apache-2.0" ]
null
null
null
vespid/models/clustering.py
QS-2/VESPID
f7d27f0c4aa99229d12d90fce9a52a48339e0a59
[ "Apache-2.0" ]
null
null
null
from multiprocessing.sharedctypes import Value import hdbscan import pandas as pd import numpy as np from sklearn.pipeline import Pipeline import pickle from tqdm import tqdm import umap import optuna from sklearn.linear_model import LogisticRegressionCV from sklearn.preprocessing import StandardScaler from sklearn.mod...
38.70123
128
0.618092
66dd17110384ff6e4810c07a02b8c854336173c5
7,470
py
Python
tests/test_command_parse.py
jesuslosada/scrapy
8be28fe4ca8b1cd011d5f7e03661da8a6bb3217b
[ "BSD-3-Clause" ]
2
2018-03-29T08:26:17.000Z
2019-06-17T10:56:19.000Z
tests/test_command_parse.py
jesuslosada/scrapy
8be28fe4ca8b1cd011d5f7e03661da8a6bb3217b
[ "BSD-3-Clause" ]
1
2016-10-20T13:15:22.000Z
2016-11-21T09:21:26.000Z
tests/test_command_parse.py
jesuslosada/scrapy
8be28fe4ca8b1cd011d5f7e03661da8a6bb3217b
[ "BSD-3-Clause" ]
3
2017-10-11T01:07:20.000Z
2019-10-07T02:01:11.000Z
from os.path import join, abspath from twisted.trial import unittest from twisted.internet import defer from scrapy.utils.testsite import SiteTest from scrapy.utils.testproc import ProcessTest from scrapy.utils.python import to_native_str from tests.test_commands import CommandTest class ParseCommandTest(ProcessTest,...
38.112245
85
0.575234
b0f391074ee0a8fad9af9ef39a3027250a8fc68c
7,358
py
Python
catkin_ws/devel/lib/python2.7/dist-packages/duckietown_msgs/msg/_CoordinationSignal.py
bendychua/final
35fd0477ec5950479f0e082a65db2aa05a92db82
[ "CC-BY-2.0" ]
1
2019-05-13T00:40:11.000Z
2019-05-13T00:40:11.000Z
catkin_ws/devel/lib/python2.7/dist-packages/duckietown_msgs/msg/_CoordinationSignal.py
bendychua/final
35fd0477ec5950479f0e082a65db2aa05a92db82
[ "CC-BY-2.0" ]
null
null
null
catkin_ws/devel/lib/python2.7/dist-packages/duckietown_msgs/msg/_CoordinationSignal.py
bendychua/final
35fd0477ec5950479f0e082a65db2aa05a92db82
[ "CC-BY-2.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from duckietown_msgs/CoordinationSignal.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class CoordinationSignal(genpy.Message): _md5sum = "38d01c6c...
31.991304
123
0.639032
af6b721f354894bf72177f73e581408e08ee4d78
10,403
py
Python
horovod/run/common/util/network.py
tirkarthi/horovod
957fe7418b1222ee8ad2698c7352a2629d4b5eb0
[ "Apache-2.0" ]
1
2020-04-02T11:52:05.000Z
2020-04-02T11:52:05.000Z
horovod/run/common/util/network.py
marload/horovod
16297493ac5fe8b0dbb303b9cbf66d8178b727e2
[ "Apache-2.0" ]
null
null
null
horovod/run/common/util/network.py
marload/horovod
16297493ac5fe8b0dbb303b9cbf66d8178b727e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Uber Technologies, 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 required by applica...
38.106227
111
0.548496
9ff2ad7e59ce81e8ad8a8369bbf4ce054a667d37
2,580
py
Python
vppy/hough/_hough_lines_kde.py
EvDuijnhoven/vppy
3678e3438730ee56d13f423c7b0307f96afaac42
[ "MIT" ]
null
null
null
vppy/hough/_hough_lines_kde.py
EvDuijnhoven/vppy
3678e3438730ee56d13f423c7b0307f96afaac42
[ "MIT" ]
null
null
null
vppy/hough/_hough_lines_kde.py
EvDuijnhoven/vppy
3678e3438730ee56d13f423c7b0307f96afaac42
[ "MIT" ]
null
null
null
import numpy as np from sklearn.base import BaseEstimator from ._hough_line import HoughLine from typing import List, Tuple class HoughLinesKDE(BaseEstimator): """Computes a KDE (Kernel Density Estimate) for a list of HoughLines""" def __init__(self, shape, beta=5, kde_width=200, kde_height=200): sel...
43.728814
118
0.656589
a09b1746539042e1a996d1fff7c0aed7db26a61d
2,797
py
Python
setup.py
CygnusNetworks/stomp.py
1599cbdcf3868989ce204c6eb4fd20448bf4f253
[ "Apache-2.0" ]
null
null
null
setup.py
CygnusNetworks/stomp.py
1599cbdcf3868989ce204c6eb4fd20448bf4f253
[ "Apache-2.0" ]
null
null
null
setup.py
CygnusNetworks/stomp.py
1599cbdcf3868989ce204c6eb4fd20448bf4f253
[ "Apache-2.0" ]
1
2020-03-22T12:55:31.000Z
2020-03-22T12:55:31.000Z
#!/usr/bin/env python from distutils.core import Command from setuptools import setup import logging.config import os import shutil import sys import unittest try: logging.config.fileConfig('stomp.log.conf') except: pass # Import this after configuring logging import stomp class TestCommand(Command): u...
23.905983
93
0.599571
3902db3f63490fedfe34f5ae153ac21db54de645
3,996
py
Python
syntax practice.py
whitevegagabriel/pygame-blueprint
33fd11c13f8fc85a006891ecd4ad617444999edd
[ "MIT" ]
null
null
null
syntax practice.py
whitevegagabriel/pygame-blueprint
33fd11c13f8fc85a006891ecd4ad617444999edd
[ "MIT" ]
null
null
null
syntax practice.py
whitevegagabriel/pygame-blueprint
33fd11c13f8fc85a006891ecd4ad617444999edd
[ "MIT" ]
null
null
null
import os ##print('hello \t im ben') q = 'if ' self = 'self.' colon = ':' isstand = 'isstanding' isup = 'isup' isdown = 'isdown' isright = 'isright' isleft = 'isleft' checks = [isstand, isup , isdown, isright, isleft] # this should be the action or item to blit display0 = 'win.blit(' path_basic = '' #Edit HERE styl...
30.738462
184
0.50951
0151193feb3406ccd7e6d9336e9f572f0ddef308
1,487
py
Python
src/archive/data_set.py
physicsgoddess1972/Precipitable-Water-Model
5280067fac90d1ed6dfe2a2ad589f444d81f95b3
[ "MIT" ]
2
2019-04-07T21:26:18.000Z
2022-03-09T22:41:56.000Z
src/archive/data_set.py
physicsgoddess1972/Precipitable-Water-Model
5280067fac90d1ed6dfe2a2ad589f444d81f95b3
[ "MIT" ]
25
2019-06-27T19:27:08.000Z
2022-02-20T17:34:13.000Z
src/archive/data_set.py
physicsgoddess1972/Precipitable-Water-Model
5280067fac90d1ed6dfe2a2ad589f444d81f95b3
[ "MIT" ]
8
2019-04-07T20:09:46.000Z
2021-06-29T21:46:58.000Z
from numpy import * fname1 = "../../data/modtran/temp_offset_wsv_half/modtran-5.csv" fname2 = "../../data/modtran/temp_offset_wsv_half/modtran0.csv" fname3 = "../../data/modtran/temp_offset_wsv_half/modtran+5.csv" sname = "../../data/modtran/temp_offset_wsv_half/modtran.csv" # fname1 = "../../data/modtran/ir_b...
39.131579
122
0.62273
47c03814378ef1adbc73d4f74bc2da6c25fc4c48
4,892
py
Python
python3-virtualenv/lib/python3.8/site-packages/setuptools/command/setopt.py
bbalkaransingh23888/OrientationHack
7eae6cce1226112c000ea8a175f6dc5a82ee0ac2
[ "MIT" ]
null
null
null
python3-virtualenv/lib/python3.8/site-packages/setuptools/command/setopt.py
bbalkaransingh23888/OrientationHack
7eae6cce1226112c000ea8a175f6dc5a82ee0ac2
[ "MIT" ]
null
null
null
python3-virtualenv/lib/python3.8/site-packages/setuptools/command/setopt.py
bbalkaransingh23888/OrientationHack
7eae6cce1226112c000ea8a175f6dc5a82ee0ac2
[ "MIT" ]
null
null
null
from distutils.util import convert_path from distutils import log from distutils.errors import DistutilsOptionError import distutils import os import configparser from setuptools import Command __all__ = ["config_file", "edit_config", "option_base", "setopt"] def config_file(kind="local"): """Get the filename o...
35.449275
88
0.596688
79b859a848e8ff3f32eb90f9b2af4ad4fdf36f2d
2,634
py
Python
raiden_contracts/tests/unit/test_settle_timeout_invariant.py
karlb/raiden-contracts
944eb6aa4cc0189caab5b735b46bb6fb72ad5658
[ "MIT" ]
null
null
null
raiden_contracts/tests/unit/test_settle_timeout_invariant.py
karlb/raiden-contracts
944eb6aa4cc0189caab5b735b46bb6fb72ad5658
[ "MIT" ]
null
null
null
raiden_contracts/tests/unit/test_settle_timeout_invariant.py
karlb/raiden-contracts
944eb6aa4cc0189caab5b735b46bb6fb72ad5658
[ "MIT" ]
null
null
null
from typing import Callable import pytest from eth_tester.exceptions import TransactionFailed from web3 import Web3 from web3.contract import Contract from raiden_contracts.constants import TEST_SETTLE_TIMEOUT_MAX, TEST_SETTLE_TIMEOUT_MIN from raiden_contracts.tests.utils import LOCKSROOT_OF_NO_LOCKS, call_and_transa...
36.583333
94
0.738421
9568b329da27278776ec83dd156692a1f6bf585d
17,521
py
Python
sdk/python/lib/pulumi/output.py
marcusturewicz/pulumi
fbf391fd4bf76142ab10160a8679fb0986435bdf
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/output.py
marcusturewicz/pulumi
fbf391fd4bf76142ab10160a8679fb0986435bdf
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/output.py
marcusturewicz/pulumi
fbf391fd4bf76142ab10160a8679fb0986435bdf
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018, Pulumi Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
45.157216
131
0.649335
cfcea27e4074c3343fc2cbd61cd878b415c3865d
8,234
py
Python
api/vimeoapi.py
atsuchiy11/api-fastapi-video
f3f7e35d279cf5b64ee22055296baf772689b8e7
[ "MIT" ]
null
null
null
api/vimeoapi.py
atsuchiy11/api-fastapi-video
f3f7e35d279cf5b64ee22055296baf772689b8e7
[ "MIT" ]
null
null
null
api/vimeoapi.py
atsuchiy11/api-fastapi-video
f3f7e35d279cf5b64ee22055296baf772689b8e7
[ "MIT" ]
null
null
null
import vimeo import requests import urllib.parse from requests import HTTPError import os # from os.path import join, dirname from dotenv import load_dotenv from pprint import pprint # env_path = join(dirname(__file__), "../.env") load_dotenv(override=True) def create_vimeo_client(): """create Vimeo client""" ...
30.609665
83
0.568861
5bc960776f57727dd057c02268fa04baf971a275
99
py
Python
L15:Adding and Blending Images/add.py
animeshsrivastava24/OPEN_CV
cee2a4ffbc738a282e280ad531d7beb1ba476ad6
[ "MIT" ]
9
2017-06-08T16:53:43.000Z
2021-05-18T11:15:03.000Z
L15:Adding and Blending Images/add.py
animeshsrivastava24/OPEN_CV
cee2a4ffbc738a282e280ad531d7beb1ba476ad6
[ "MIT" ]
null
null
null
L15:Adding and Blending Images/add.py
animeshsrivastava24/OPEN_CV
cee2a4ffbc738a282e280ad531d7beb1ba476ad6
[ "MIT" ]
12
2018-03-15T11:15:40.000Z
2021-01-28T20:43:58.000Z
import numpy as np import cv2 x = np.uint8([250]) y = np.uint8([10]) print cv2.add(x,y) print x+y
12.375
19
0.656566
a347f437390b8185fef80b7044037b1448ad33f3
5,173
py
Python
configs/ruby/AMD_Base_Constructor.py
He-Liu-ooo/Computer-Architecture-THUEE-2022-spring-
9d36aaacbc7eea357608524113bec97bae2ea229
[ "BSD-3-Clause" ]
16
2020-09-24T00:17:36.000Z
2021-08-12T06:11:52.000Z
configs/ruby/AMD_Base_Constructor.py
He-Liu-ooo/Computer-Architecture-THUEE-2022-spring-
9d36aaacbc7eea357608524113bec97bae2ea229
[ "BSD-3-Clause" ]
5
2021-01-27T23:09:06.000Z
2022-01-07T03:19:39.000Z
configs/ruby/AMD_Base_Constructor.py
He-Liu-ooo/Computer-Architecture-THUEE-2022-spring-
9d36aaacbc7eea357608524113bec97bae2ea229
[ "BSD-3-Clause" ]
15
2020-11-18T00:15:28.000Z
2021-12-12T03:18:34.000Z
# Copyright (c) 2015-2017 Advanced Micro Devices, Inc. # All rights reserved. # # For use for simulation and test purposes only # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must ...
38.604478
78
0.714672
314ceeb981c2767361e99f528ba33b693d1a8faf
3,506
py
Python
GMM/segment.py
zzhmark/insitu-GMM-on-umap
01f003475a9c82f98aee5aab6af874732d3049bb
[ "MIT" ]
null
null
null
GMM/segment.py
zzhmark/insitu-GMM-on-umap
01f003475a9c82f98aee5aab6af874732d3049bb
[ "MIT" ]
null
null
null
GMM/segment.py
zzhmark/insitu-GMM-on-umap
01f003475a9c82f98aee5aab6af874732d3049bb
[ "MIT" ]
null
null
null
import numpy as np from typing import Tuple, List from sklearn.mixture import GaussianMixture, BayesianGaussianMixture import pandas as pd def gmm(data: np.ndarray, n: int, method: str = 'default') -> \ Tuple[List[int], List[int]]: """ :param data: list of input :param n: number of components ...
38.527473
76
0.640901
d5e005aa4b41a9219bda0fdc13fd81e0f58a6d08
5,248
py
Python
assignments/assignment-4/src/lr_mnist.py
JakubR12/cds-visual
5fa90ecb39ddfee5365478d4d6d2ed4a9cddc364
[ "MIT" ]
1
2021-05-19T10:56:59.000Z
2021-05-19T10:56:59.000Z
assignments/assignment-4/src/lr_mnist.py
JakubR12/cds-visual-portfolio
40c991f3fc9a3bc4bc2448e76d7d795cd67ab757
[ "MIT" ]
null
null
null
assignments/assignment-4/src/lr_mnist.py
JakubR12/cds-visual-portfolio
40c991f3fc9a3bc4bc2448e76d7d795cd67ab757
[ "MIT" ]
null
null
null
#!/usr/bin/python # importin modules import argparse import os import sys sys.path.append(os.path.join("..")) import numpy as np # Import utils for classification, preprocessing import utils.classifier_utils as clf_util import utils.ml_preprocessing as mlp # Import sklearn metrics from sklearn import metrics from sk...
43.733333
137
0.663872
f830b5538776854237f2bef03ef8992abf59c5d8
2,183
py
Python
src/pyinterp/__init__.py
apatlpo/pangeo-pyinterp
b5242c6869d7e601a5695b304c81992deb63367d
[ "BSD-3-Clause" ]
null
null
null
src/pyinterp/__init__.py
apatlpo/pangeo-pyinterp
b5242c6869d7e601a5695b304c81992deb63367d
[ "BSD-3-Clause" ]
null
null
null
src/pyinterp/__init__.py
apatlpo/pangeo-pyinterp
b5242c6869d7e601a5695b304c81992deb63367d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 CNES # # All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ Common classes -------------- """ from typing import Tuple import numpy as np from . import core from . import interface class GridInterpolator: """Abstract cl...
26.950617
73
0.601466
10b6b0d236eb9914fb71847831c77aaa78f544b6
10,197
py
Python
metno_locationforecast/forecast.py
Amir-101/metno-locationforecast
6332b4dca45ee35ecb671b36859533776600dcbc
[ "MIT" ]
null
null
null
metno_locationforecast/forecast.py
Amir-101/metno-locationforecast
6332b4dca45ee35ecb671b36859533776600dcbc
[ "MIT" ]
null
null
null
metno_locationforecast/forecast.py
Amir-101/metno-locationforecast
6332b4dca45ee35ecb671b36859533776600dcbc
[ "MIT" ]
null
null
null
"""Where the magic happens. Classes: Forecast: Stores forecast data, has methods for updating, saving and loading data. """ import datetime as dt import json from pathlib import Path from typing import Optional, Dict, Union import requests from .config import Config from .data_containers import Interval...
33.99
100
0.589683
98380f23dfcf279b597aa81500e73121c3b6a0c7
840
py
Python
.guides/tests/part9.py
nejohnston/processing-images
d45d8e351cc960703cb9f1975ae407fa71e7f205
[ "MIT" ]
null
null
null
.guides/tests/part9.py
nejohnston/processing-images
d45d8e351cc960703cb9f1975ae407fa71e7f205
[ "MIT" ]
null
null
null
.guides/tests/part9.py
nejohnston/processing-images
d45d8e351cc960703cb9f1975ae407fa71e7f205
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 """ Assess part 9, before submission (flip) This file is insecurely available to students, but if they find it and modify it, they really did not need this course. Author: Walker M. White Date: July 31, 2018 """ import verifier import sys def check_func9(file): """ Checks that the...
23.333333
86
0.661905