hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
62aa013ebef248c818a0b974ca3451007db6d0bf
6,093
py
Python
MOOCdbFeatureExtract/program/main.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
MOOCdbFeatureExtract/program/main.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
MOOCdbFeatureExtract/program/main.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
""" This file executes Database Featue Extraction of the Data Science Foundry: This file needs to be run after the MoocDb is constructed and curated """ import argparse from logger import Logger from datetime import datetime import sys import feature_extract as fe import ConfigParser #example of running on command l...
52.982609
184
0.63893
62aa41a55ec37555527d6036c2a56cf076ee2e36
556
py
Python
setup.py
andrewkshim/surveymonty
869f1a0a2546874bd4fcdd18fd52a42b063252a7
[ "MIT" ]
15
2015-02-04T17:34:39.000Z
2021-05-14T11:51:03.000Z
setup.py
andrewkshim/surveymonty
869f1a0a2546874bd4fcdd18fd52a42b063252a7
[ "MIT" ]
4
2015-07-16T14:39:27.000Z
2017-07-07T19:38:19.000Z
setup.py
andrewkshim/surveymonty
869f1a0a2546874bd4fcdd18fd52a42b063252a7
[ "MIT" ]
17
2015-07-08T17:30:35.000Z
2021-01-27T10:03:12.000Z
from setuptools import setup, find_packages with open('./surveymonty/VERSION', 'r') as version_file: version = version_file.read().strip() setup( name='surveymonty', version=version, install_requires=[ 'requests>=2.12.4,<3.0' ], packages=find_packages(), include_package_data=Tr...
21.384615
56
0.676259
62aa4c7fd3b80a2a3d24883d360e958fc78788b7
34,277
py
Python
datasets/mmdet_tusimple/mmdet/models/dense_heads/lane_rpn_head_bak.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
datasets/mmdet_tusimple/mmdet/models/dense_heads/lane_rpn_head_bak.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
datasets/mmdet_tusimple/mmdet/models/dense_heads/lane_rpn_head_bak.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import normal_init from mmdet.core.bbox import lane_batched_nms from mmdet.core import multi_apply from ..builder import HEADS from .lane_anchor_head import LaneAnchorHead from .rpn_test_mixin import LaneRPNTestMixin import torch import to...
44.865183
122
0.575605
62aa587d10f4e57aea5540ba7304bf98fbfbfb96
6,917
py
Python
userbot/plugins/mute.py
Ahmad99Ahmad/PaYtHoNMeMbEr
fc2b97e9a0826123b938d56d9ce405bef3560d55
[ "MIT" ]
3
2020-04-20T06:24:36.000Z
2020-05-24T18:51:36.000Z
userbot/plugins/mute.py
Ahmad99Ahmad/PaYtHoNMeMbEr
fc2b97e9a0826123b938d56d9ce405bef3560d55
[ "MIT" ]
null
null
null
userbot/plugins/mute.py
Ahmad99Ahmad/PaYtHoNMeMbEr
fc2b97e9a0826123b938d56d9ce405bef3560d55
[ "MIT" ]
6
2020-08-17T16:11:18.000Z
2020-11-03T16:06:46.000Z
from userbot.plugins.sql_helper.mute_sql import is_muted, mute, unmute import asyncio @command(outgoing=True, pattern=r"^.mute ?(\d+)?") async def startmute(event): private = False if event.fwd_from: return elif event.is_private: await event.edit("Unexpected issues or ugly errors may occur!...
39.982659
157
0.605899
62aa5a11ce059f628b4555ee4dbf8f672cf7587b
621
py
Python
app/schemas/auth.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
1
2021-10-17T13:28:51.000Z
2021-10-17T13:28:51.000Z
app/schemas/auth.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
app/schemas/auth.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, EmailStr class Doctor(BaseModel): id: Optional[int] first_name: str last_name: str email: Optional[EmailStr] class Config: orm_mode = True class DoctorLogin(BaseModel): email: str password: str class DoctorCreate(Base...
15.525
40
0.669887
62aa76895d89ede0c9ea29baaafec18cb5fbbc92
5,090
py
Python
tests/algorihtm_tests/find_nearest_tests/numerical_data/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
tests/algorihtm_tests/find_nearest_tests/numerical_data/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2015-01-18T08:52:30.000Z
2015-01-18T08:52:30.000Z
tests/algorihtm_tests/find_nearest_tests/numerical_data/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
from unittest import TestCase from similarityPy.algorithms.find_nearest import FindNearest from similarityPy.measure.numerical_data.squared_euclidean_distance import SquaredEuclideanDistance from tests import test_logger __author__ = 'cenk' class FindNearestTest(TestCase): def setUp(self): pass de...
41.048387
120
0.576031
62aaf0d59597bde8b6adef43e858dabffc100935
5,480
py
Python
docs/conf.py
sammchardy/python-exx
b48b7ad28e6a8fe352f934527e6dc912429f0889
[ "MIT" ]
3
2018-01-19T06:22:44.000Z
2018-02-05T03:19:38.000Z
docs/conf.py
sammchardy/python-exx
b48b7ad28e6a8fe352f934527e6dc912429f0889
[ "MIT" ]
4
2018-01-20T02:33:57.000Z
2019-10-03T04:52:42.000Z
docs/conf.py
sammchardy/python-exx
b48b7ad28e6a8fe352f934527e6dc912429f0889
[ "MIT" ]
6
2018-01-27T13:19:49.000Z
2021-09-05T21:10:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # python-exx documentation build configuration file # # 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 configuration values have a defa...
29.621622
79
0.676095
62aafdbfa0dffd8861417df5756e92422b882a07
57,293
py
Python
pymag/GalaxyClusters.py
inonchiu/PyMaG
ca6146cd354fd35be1eb21669bf505ff1acd3cb5
[ "MIT" ]
1
2017-04-21T13:27:23.000Z
2017-04-21T13:27:23.000Z
pymag/GalaxyClusters.py
inonchiu/PyMaG
ca6146cd354fd35be1eb21669bf505ff1acd3cb5
[ "MIT" ]
null
null
null
pymag/GalaxyClusters.py
inonchiu/PyMaG
ca6146cd354fd35be1eb21669bf505ff1acd3cb5
[ "MIT" ]
null
null
null
###################################################### # # This is the module of Galaxy Clusters # ###################################################### import numpy as np from math import * import matplotlib.pyplot as pyplt import os import pyfits import numpy.lib.recfunctions as rfn # magic, used to join structure...
48.512278
367
0.478819
62ab230bae53e0c16e9585cc3c87623837c9ab6e
5,773
py
Python
scripts/release_scripts/restore_backup.py
OsamaAdam98/oppia
9c9c3d0fc6710f58394c5e28d414043340ed2a62
[ "Apache-2.0" ]
2
2019-12-02T18:56:49.000Z
2020-03-14T17:14:15.000Z
scripts/release_scripts/restore_backup.py
OsamaAdam98/oppia
9c9c3d0fc6710f58394c5e28d414043340ed2a62
[ "Apache-2.0" ]
3
2020-03-16T06:40:30.000Z
2020-03-30T12:10:20.000Z
scripts/release_scripts/restore_backup.py
RafayGhafoor/oppia
855d02414ca00d0807d841e48be7ce7b94d68c29
[ "Apache-2.0" ]
2
2019-12-02T18:56:56.000Z
2020-03-16T08:03:45.000Z
# Copyright 2019 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 ...
36.770701
80
0.706219
62ab451a93368146ee72afaf810a6ffed090c8f3
13,094
py
Python
switch_model/generators/extensions/storage.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
switch_model/generators/extensions/storage.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
switch_model/generators/extensions/storage.py
ashutosh-pande/switch3
769d25a42c8323f24740567aa15c980f905a03e2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2016-2017 The Switch Authors. All rights reserved. # Licensed under the Apache License, Version 2.0, which is in the LICENSE file. """ This module defines storage technologies. It builds on top of generic generators, adding components for deciding how much energy to build into storage, when to charge, ...
44.537415
151
0.703987
62ab666064bc84690a9b552b1997dd5f5f7a9a36
309
py
Python
astroML/tests/test_lumfunc.py
astroML/astroML
f66558232f6d33cb34ecd1bed8a80b9db7ae1c30
[ "BSD-2-Clause" ]
735
2015-01-07T23:55:25.000Z
2022-03-31T15:20:25.000Z
astroML/tests/test_lumfunc.py
chrinide/astroML
7e94d369ad1a608c1ced11b4fa0533c22df20809
[ "BSD-2-Clause" ]
168
2015-01-06T21:02:41.000Z
2022-03-29T03:15:29.000Z
astroML/tests/test_lumfunc.py
chrinide/astroML
7e94d369ad1a608c1ced11b4fa0533c22df20809
[ "BSD-2-Clause" ]
278
2015-01-26T00:29:38.000Z
2022-02-25T21:17:50.000Z
import numpy as np from astroML.lumfunc import Cminus def test_cminus_nans(): # Regression test for https://github.com/astroML/astroML/issues/234 x = [10.02, 10.00] y = [14.97, 14.99] xmax = [10.03, 10.01] ymax = [14.98, 15.00] assert np.isfinite(np.sum(Cminus(x, y, xmax, ymax)))
22.071429
71
0.63754
62ab844a9c2b8fb6ee92cbdf4407a3b751e67230
1,968
py
Python
nanotune/tests/sim_scenarios/sim_scenarios.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
5
2021-02-24T14:32:37.000Z
2022-01-05T16:37:26.000Z
nanotune/tests/sim_scenarios/sim_scenarios.py
microsoft/nanotune
68be8f5b74a52d57b74ccac228e120d9ab48e3e4
[ "MIT" ]
149
2021-03-23T14:44:39.000Z
2022-03-31T06:09:07.000Z
nanotune/tests/sim_scenarios/sim_scenarios.py
LaudateCorpus1/nanotune
0ada354597b16f6dbb17ca7be01ab7668b6d5049
[ "MIT" ]
10
2021-03-29T13:36:38.000Z
2022-02-16T23:06:35.000Z
# Copyright (c) 2021 Jana Darulova # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # Copyright (c) 2021 Jana Darulova # # This software is released under the MIT License. # https://opensource.org/licenses/MIT import os import pytest from sim.simulation_scenario import Simula...
27.333333
76
0.699187
62ab8475b8211543a33bc3d01798e68b7f29bce9
358
py
Python
tests.py
mattkwiecien/balutils
9dcd5419a796e23df671fc4dc22c78cf7e2c61fc
[ "MIT" ]
null
null
null
tests.py
mattkwiecien/balutils
9dcd5419a796e23df671fc4dc22c78cf7e2c61fc
[ "MIT" ]
null
null
null
tests.py
mattkwiecien/balutils
9dcd5419a796e23df671fc4dc22c78cf7e2c61fc
[ "MIT" ]
null
null
null
from balutils.CatalogFactory import CatalogFactory from balutils import Catalog def test_create_fits(): cat = CatalogFactory.Create('testfile.nm', ['fits']) def main(): test_create_fits() # test_create_detection() # test_create_gold_default() # test_create_gold_sof() # test_create_gold_mof() ...
22.375
56
0.717877
62aba65f9b44d024f614d5f1a488dcbc2c8693ce
5,236
py
Python
Python_files/INRIX_data_preprocessing_12_build_link_with_capac_and_free_flow_time_and_flow_Apr_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/INRIX_data_preprocessing_12_build_link_with_capac_and_free_flow_time_and_flow_Apr_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/INRIX_data_preprocessing_12_build_link_with_capac_and_free_flow_time_and_flow_Apr_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Jing Zhang" __email__ = "jingzbu@gmail.com" __status__ = "Development" from util import * link_with_capac_list = list(zload('../temp_files/links_with_capac_ext.pkz')) # print(len(link_with_capac_list)) # print(len(tmc_capac_dict_AM)) # print(tmc_ref_speed_dict['129+04099']) ro...
51.841584
114
0.608671
62abdd1e38165ca4c72d3ff3f3fec462125afe2e
403
py
Python
socialregistration/contrib/github/urls.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
63
2015-01-27T16:52:03.000Z
2021-08-29T04:23:51.000Z
socialregistration/contrib/github/urls.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
3
2016-05-26T07:46:53.000Z
2022-02-16T15:25:16.000Z
socialregistration/contrib/github/urls.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
23
2015-02-02T13:33:46.000Z
2020-10-25T20:02:53.000Z
from django.conf import settings from socialregistration.compat.urls import * from socialregistration.contrib.github.views import GithubRedirect, \ GithubCallback, GithubSetup urlpatterns = patterns('', url('^redirect/$', GithubRedirect.as_view(), name='redirect'), url('^callback/$', GithubCallback.as_vie...
36.636364
69
0.727047
62abe63e297c0e754e60e65ff3165eb5e55ac493
5,912
py
Python
lib/about.py
edward0rtiz/clustering-demand-scm
0e7dd436b66eba29eebe4f540e51c89d40d7d897
[ "MIT" ]
null
null
null
lib/about.py
edward0rtiz/clustering-demand-scm
0e7dd436b66eba29eebe4f540e51c89d40d7d897
[ "MIT" ]
null
null
null
lib/about.py
edward0rtiz/clustering-demand-scm
0e7dd436b66eba29eebe4f540e51c89d40d7d897
[ "MIT" ]
null
null
null
import os import pathlib import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output, State import time app = __import__("app").app EMAIL_LOGO = "../assets/email.png" carloslink = "https://www.linked...
40.493151
85
0.264208
62ac52729fe50d0d6c2d0d51a7446a491cdc508f
5,013
py
Python
detectia/datamodule/base_data_loader.py
kartik4949/detectia
e62165372b2abac63239d540dfa8c3ee0eafd75c
[ "Apache-2.0" ]
3
2021-02-02T10:59:26.000Z
2021-11-20T07:56:29.000Z
detectia/datamodule/base_data_loader.py
kartik4949/detectia
e62165372b2abac63239d540dfa8c3ee0eafd75c
[ "Apache-2.0" ]
null
null
null
detectia/datamodule/base_data_loader.py
kartik4949/detectia
e62165372b2abac63239d540dfa8c3ee0eafd75c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Kartik Sharma. 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 law o...
33.198675
116
0.63834
62ac559b8dafed601da01000cbe373fd8de5f90d
861
py
Python
Plug-and-play module/DepthWiseConv.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Plug-and-play module/DepthWiseConv.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Plug-and-play module/DepthWiseConv.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import torch.nn as nn class DWConv(nn.Module): def __init__(self, in_plane, out_plane): super(DWConv, self).__init__() self.depth_conv = nn.Conv2d(in_channels=in_plane, out_channels=in_plane, kernel_size=3, ...
35.875
59
0.398374
62ac63da47a1e13982f594ab91867d0023ffbd7e
5,946
py
Python
scielomanager/validator/tests/tests_pages.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/validator/tests/tests_pages.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/validator/tests/tests_pages.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
# coding:utf-8 from os import path import unittest import mocker from PIL import Image import StringIO from django.core.urlresolvers import reverse from django_webtest import WebTest from django.conf import settings from django_factory_boy import auth from django.core.files.uploadedfile import InMemoryUploadedFile fr...
33.784091
128
0.653044
62ac90c4ffa89ab052456166a76b35b476cfa234
1,739
py
Python
Code/word_tokenizer_kafka.py
EthanTGo/DataWarehouseProject
0c8ca5c324c0aefb09bbcb57abfd9df593251f18
[ "MIT" ]
null
null
null
Code/word_tokenizer_kafka.py
EthanTGo/DataWarehouseProject
0c8ca5c324c0aefb09bbcb57abfd9df593251f18
[ "MIT" ]
null
null
null
Code/word_tokenizer_kafka.py
EthanTGo/DataWarehouseProject
0c8ca5c324c0aefb09bbcb57abfd9df593251f18
[ "MIT" ]
null
null
null
import json from time import sleep import nltk nltk.download('punkt') from kafka import KafkaConsumer, KafkaProducer producer = KafkaProducer(bootstrap_servers='localhost:9092', value_serializer=lambda v: json.dumps(v).encode('utf-8')) ''' For every incoming message, we will perform the appropriate filter to remove ...
36.229167
119
0.696377
62aca1d6e601fc19e77dc466a275423f5fc61cc4
32,063
py
Python
biosteam/_heat_utility.py
yoelcortes/biosteam
8d90788f87efb3b23428387d79097817962cad97
[ "MIT" ]
29
2019-03-01T04:47:43.000Z
2020-02-23T01:34:40.000Z
biosteam/_heat_utility.py
yoelcortes/biosteam
8d90788f87efb3b23428387d79097817962cad97
[ "MIT" ]
15
2019-11-01T13:57:50.000Z
2020-02-28T06:40:46.000Z
biosteam/_heat_utility.py
yoelcortes/biosteam
8d90788f87efb3b23428387d79097817962cad97
[ "MIT" ]
4
2019-06-05T15:39:04.000Z
2020-01-08T20:42:04.000Z
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020-2021, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details...
37.544496
138
0.602751
62acf3e8af5c04e573c84daf2c6be8a45e2f25b0
2,128
py
Python
mmdet/models/backbones/mul_vgg.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
3
2020-06-16T01:23:37.000Z
2021-06-29T00:11:02.000Z
mmdet/models/backbones/mul_vgg.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
null
null
null
mmdet/models/backbones/mul_vgg.py
WangCK0809/mmdetection-wck
00fb5bd75d36780c6e258c30591e76bd553b4a04
[ "Apache-2.0" ]
1
2021-06-29T00:06:43.000Z
2021-06-29T00:06:43.000Z
import torch.nn as nn from .vgg import VGG from ..registry import BACKBONES """ Author:WangCK Date:2019.12.9 Description: This file defines a VGGNet to process multi-model(two) datasets. Standard ResNet will process each model respectively. Then, the results from these standard ResNets will ...
29.971831
77
0.569079
62ad2232ba76670482a08c1f69be5165950c6e09
3,012
py
Python
tests/test_docs/test_build_aea_programmatically/test_programmatic_aea.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_docs/test_build_aea_programmatically/test_programmatic_aea.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_docs/test_build_aea_programmatically/test_programmatic_aea.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021 Valory AG # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
38.126582
102
0.666335
62ad9ccd25becef45bb3dab350d7a3d4314a53e2
2,033
py
Python
experiments/ashvin/vae/fixed3/reacher2d/state_dense.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/reacher2d/state_dense.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/reacher2d/state_dense.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.multitask.pusher2d import FullPusher2DEnv from rlkit.launchers.arglauncher import run_variants import rlkit.misc.hyperparameter as hyp from rlkit.torch.vae.relabeled_vae_experiment import experiment if __name__ == "__main__": # noin...
30.343284
73
0.608952
62ada32ceaa01e8de578b9366dc526b0c382f039
12,975
py
Python
pythainlp/util/date.py
boomsquared/pythainlp
958f51a1b8b4ea09c867d3aa7bc39264da8e2bc4
[ "Apache-2.0" ]
null
null
null
pythainlp/util/date.py
boomsquared/pythainlp
958f51a1b8b4ea09c867d3aa7bc39264da8e2bc4
[ "Apache-2.0" ]
null
null
null
pythainlp/util/date.py
boomsquared/pythainlp
958f51a1b8b4ea09c867d3aa7bc39264da8e2bc4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Thai date/time conversion and formatting Note: Does not take into account the change of new year's day in Thailand """ # BE คือ พ.ศ. # AD คือ ค.ศ. # AH ปีฮิจเราะห์ศักราชเป็นปีพุทธศักราช จะต้องบวกด้วย 1122 # ไม่ได้รองรับปี พ.ศ. ก่อนการเปลี่ยนวันขึ้นปีใหม่ของประเทศไทย import datetime __all...
35.067568
148
0.545665
62adb3f80e83b41f8a83fb2674e723e1cfee64dd
3,483
py
Python
archABM/engine.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
8
2021-07-19T11:54:00.000Z
2022-03-29T01:45:07.000Z
archABM/engine.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
null
null
null
archABM/engine.py
vishalbelsare/ArchABM
4a5ed9506ba96c38e1f3d7f53d6e469f28fe6873
[ "MIT" ]
1
2021-08-19T23:56:56.000Z
2021-08-19T23:56:56.000Z
from jsonschema import validate from simpy import Environment from tqdm import tqdm from .creator import Creator from .database import Database from .results import Results import json import os import copy class Engine: """Core class of the archABM package Launches the agent-based simulation with the ...
30.552632
97
0.596325
62adc2351bea4dd4e62ae50f5287688b4e58433e
3,388
py
Python
neuroscience/tensorflow/mask.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
3
2017-08-08T09:07:27.000Z
2018-09-12T14:54:56.000Z
neuroscience/tensorflow/mask.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
1
2020-10-13T04:13:10.000Z
2020-10-13T04:13:10.000Z
neuroscience/tensorflow/mask.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
2
2018-02-26T18:03:23.000Z
2018-03-20T08:29:00.000Z
from skimage.filters import threshold_otsu as otsu from dipy.segment.mask import multi_median import numpy as np import tensorflow as tf def image_filtering_mean(arr, b0s): # dm = tf.gather(tf.transpose(arr, perm=[3, 0, 1, 2]), tf.where(b0s)) indices = tf.to_int32(tf.where(b0s)) # Use tf.shape() to make ...
32.576923
80
0.614227
62add1367a7488d394e413a2ba311b618c31c1ac
1,596
py
Python
algebra/quadratic.py
MehtapIsik/algebra
db6c0f58f21d3eb53cc755a47413b33431190c57
[ "BSD-3-Clause" ]
null
null
null
algebra/quadratic.py
MehtapIsik/algebra
db6c0f58f21d3eb53cc755a47413b33431190c57
[ "BSD-3-Clause" ]
null
null
null
algebra/quadratic.py
MehtapIsik/algebra
db6c0f58f21d3eb53cc755a47413b33431190c57
[ "BSD-3-Clause" ]
null
null
null
def poly_old(*args): """ f(x) = a * x + b * x**2 *args = (x, a, b) """ # Unpack arguments x = args[0] a = args[1] b = args[2] print(args) fx = a*x + b*(x**2) return fx def poly(*args): """ f(x) = a * x + b * x**2 + c * x**3 + ... *args = (x, a, b, ...)...
19.95
85
0.515038
62addcff3e0d28a04aa81be610c718aaf2b0ec83
1,899
py
Python
StreamPy/tutorial_list_simple.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/tutorial_list_simple.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/tutorial_list_simple.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from Stream import Stream from Operators import lf, stream_agent from examples_element_wrapper import print_stream import numpy as np """This example illustrates the use of the same NumPy operations on single elements and on lists. Observe that the elements of streams y and z are the same for the first n (n=12) elemen...
33.910714
63
0.754081
62ade0e22c33d6a4bf4c6aeb9f1839805cedc91e
419
py
Python
checkout/migrations/0009_auto_20200925_2008.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
checkout/migrations/0009_auto_20200925_2008.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
checkout/migrations/0009_auto_20200925_2008.py
jansgreen/django-locallibrary-tutorial
9e3f5b694de3676dba66fc4df05435af339a44ab
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-26 00:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('checkout', '0008_auto_20200925_2000'), ] operations = [ migrations.AlterField( model_name='order', name='order_numbe...
22.052632
77
0.615752
62adf0b0cc75a99ce63169d27e9d410c933859c4
2,383
py
Python
src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-cognitiveservices/azure/cli/command_modules/cognitiveservices/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.826923
98
0.668065
62ae160eb4559d0e3c2bf65f68f64c8b42979a20
1,167
py
Python
satella/coding/transforms/jsonify.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
satella/coding/transforms/jsonify.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
satella/coding/transforms/jsonify.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import typing as tp from satella.json import JSONAble import enum def jsonify(data: tp.Any) -> tp.Optional[tp.Union[str, int, float, list, dict]]: """ Convert any data to a value that's serializable via JSON. Objects that are JSONAble will have their to_json() method called. Note that enums will be...
27.785714
80
0.613539
62ae1e910689c3e6fa5bb99c3976568c970a47a1
1,474
py
Python
examples/plots/plot_hexbin.py
abhijith-git/mplsoccer
7359ed83117cb6f191f82c44fe953eb421395695
[ "MIT" ]
1
2021-05-20T16:31:21.000Z
2021-05-20T16:31:21.000Z
examples/plots/plot_hexbin.py
eddwebster/mplsoccer
eb260bc9ab8a94473b4082d922ed490ce11e7982
[ "MIT" ]
null
null
null
examples/plots/plot_hexbin.py
eddwebster/mplsoccer
eb260bc9ab8a94473b4082d922ed490ce11e7982
[ "MIT" ]
null
null
null
""" =========== Hexbin plot =========== This example shows how to plot the location of events occurring in a match using hexbins. """ from mplsoccer.pitch import Pitch from mplsoccer.statsbomb import read_event, EVENT_SLUG import os ############################################################################## # lo...
46.0625
113
0.643148
62ae3ed5127307fb9bd5314c1356cad72f444cb1
4,190
py
Python
gaphor/misc/generic/multidispatch.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/misc/generic/multidispatch.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/misc/generic/multidispatch.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
""" Multidispatch for functions and methods. This code is a Python 3, slimmed down version of the generic package by Andrey Popp. Only the generic function code is left in tact -- no generic methods. The interface has been made in line with `functools.singledispatch`. Note that this module does not support annotated...
34.628099
103
0.654177
62ae45b66882471452876b7d8820b4b64c5528e2
43,159
py
Python
candlepb/Uno/uno_data.py
deephyper/candlepb
e99cf34c74bbcf85721a3091b587bf16ab4b667a
[ "BSD-2-Clause" ]
1
2021-01-21T04:25:50.000Z
2021-01-21T04:25:50.000Z
candlepb/Uno/uno_data.py
deephyper/candlepb
e99cf34c74bbcf85721a3091b587bf16ab4b667a
[ "BSD-2-Clause" ]
null
null
null
candlepb/Uno/uno_data.py
deephyper/candlepb
e99cf34c74bbcf85721a3091b587bf16ab4b667a
[ "BSD-2-Clause" ]
1
2021-02-01T01:37:30.000Z
2021-02-01T01:37:30.000Z
from __future__ import print_function import collections import json import logging import os import pickle import sys import numpy as np import pandas as pd from itertools import cycle, islice from sklearn.preprocessing import Imputer from sklearn.preprocessing import StandardScaler, MinMaxScaler, MaxAbsScaler fro...
40.716038
273
0.614634
62ae6a6e8b0baf53618873aae850e29c7264d552
286
py
Python
src/ggrc_risks/views/__init__.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-01-03T02:49:23.000Z
2018-01-03T02:49:23.000Z
src/ggrc_risks/views/__init__.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_risks/views/__init__.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> from ggrc.app import app from ggrc.login import login_required from ggrc_risks.views import converters from flask import render_template def init_extra_views(app): pass
23.833333
78
0.793706
62ae7684ce422751a483279a1641e3aea4e849a1
3,242
py
Python
openonload-201606-u1.3/src/tools/solar_clusterd/daemonize.py
LeoBrilliant/OpenOnload
ce58f2afad8e2952d46e55326a8ec6a38c1269b9
[ "MIT" ]
2
2020-10-09T21:12:21.000Z
2022-03-26T07:26:18.000Z
src/tools/solar_clusterd/daemonize.py
rigtorp/openonload
924ee26ca9804a682c4a3bf081663008ba13ebf1
[ "BSD-3-Clause" ]
null
null
null
src/tools/solar_clusterd/daemonize.py
rigtorp/openonload
924ee26ca9804a682c4a3bf081663008ba13ebf1
[ "BSD-3-Clause" ]
null
null
null
#**************************************************************************** # Copyright (c) 2013, Solarflare Communications Inc, # # Maintained by Solarflare Communications # <onload-dev@solarflare.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General P...
32.42
77
0.586366
62ae7e12b41eceecc368ec0a3810dca257578d2f
40,952
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
56.79889
157
0.675938
62aea80a9894eecee426db6654e4f1658af0a9ab
7,351
py
Python
cogs/alias.py
MagnificPhil/MagnificBot
d9a834ea6047cd16b81fbfe6e9de20effdfaf5b1
[ "MIT" ]
null
null
null
cogs/alias.py
MagnificPhil/MagnificBot
d9a834ea6047cd16b81fbfe6e9de20effdfaf5b1
[ "MIT" ]
null
null
null
cogs/alias.py
MagnificPhil/MagnificBot
d9a834ea6047cd16b81fbfe6e9de20effdfaf5b1
[ "MIT" ]
null
null
null
from discord.ext import commands from .utils.chat_formatting import box from .utils.dataIO import dataIO from .utils import checks from __main__ import user_allowed, send_cmd_help from copy import copy import os import discord class Alias: def __init__(self, bot): self.bot = bot self.file_path = "...
38.286458
79
0.5772
62aee729409e251bb65b11d34fb9bf60cea3d78f
248
py
Python
test/bottleneck1.py
sergey-serebryakov/mpipe
5a1804cf64271931f0cd3e4fff3e2b38291212dd
[ "MIT" ]
null
null
null
test/bottleneck1.py
sergey-serebryakov/mpipe
5a1804cf64271931f0cd3e4fff3e2b38291212dd
[ "MIT" ]
null
null
null
test/bottleneck1.py
sergey-serebryakov/mpipe
5a1804cf64271931f0cd3e4fff3e2b38291212dd
[ "MIT" ]
null
null
null
import time from mpipe import OrderedStage, Pipeline def echo(value): print(value) time.sleep(0.013) return value pipe = Pipeline(OrderedStage(echo)) for number in range(12): pipe.put(number) time.sleep(0.010) pipe.put(None)
16.533333
40
0.701613
62aee8dc0270da86e81dab184feb1e85fb2ed390
1,339
py
Python
src/metaworlds/spaces/discrete.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
5
2019-02-27T20:55:30.000Z
2019-08-24T19:24:41.000Z
src/metaworlds/spaces/discrete.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
8
2019-02-28T04:07:10.000Z
2020-01-02T10:54:10.000Z
src/metaworlds/spaces/discrete.py
rlworkgroup/metaworlds
be03cfed9890a37b84283c597209b849e8a086cc
[ "MIT" ]
1
2021-09-13T18:35:34.000Z
2021-09-13T18:35:34.000Z
import numpy as np from metaworlds.misc import special from metaworlds.spaces import Space class Discrete(Space): """ {0,1,...,n-1} """ def __init__(self, n): self._n = n @property def n(self): return self._n def sample(self): return np.random.randint(self.n) ...
21.596774
78
0.600448
62aeef4e91bf43eaf7329436a987c78b490c8d9a
2,942
py
Python
src/privacyraven/models/four_layer.py
trailofbits/PrivacyRaven
69007de73fa828ebc53ba3ce70402f2e4e494cf1
[ "Apache-2.0" ]
121
2020-09-01T21:55:22.000Z
2022-03-28T11:38:43.000Z
src/privacyraven/models/four_layer.py
beholdenkey/PrivacyRaven
69007de73fa828ebc53ba3ce70402f2e4e494cf1
[ "Apache-2.0" ]
49
2020-09-08T19:02:16.000Z
2022-02-11T20:52:40.000Z
src/privacyraven/models/four_layer.py
beholdenkey/PrivacyRaven
69007de73fa828ebc53ba3ce70402f2e4e494cf1
[ "Apache-2.0" ]
16
2020-09-09T00:45:30.000Z
2022-02-25T01:53:53.000Z
import pytorch_lightning as pl import torch from torch import nn from torch.nn import functional as F import torchmetrics class FourLayerClassifier(pl.LightningModule): """This module describes a neural network with four fully connected layers containing 420 hidden units and a dropout layer (of 0.4). Cross ent...
36.320988
83
0.625765
62aeef6cd31fc51d162fafee59e7705e7535b0f6
16,837
py
Python
qfit_ligand/samplers.py
stephaniewanko/qfit_ligand
1429fff9c1b9d7bf7376ce2414b63ddb0345dd3e
[ "Artistic-2.0", "MIT" ]
5
2018-05-30T00:29:06.000Z
2021-09-23T01:28:28.000Z
qfit_ligand/samplers.py
stephaniewanko/qfit_ligand
1429fff9c1b9d7bf7376ce2414b63ddb0345dd3e
[ "Artistic-2.0", "MIT" ]
1
2018-01-27T06:34:06.000Z
2018-01-27T06:34:06.000Z
qfit_ligand/samplers.py
stephaniewanko/qfit_ligand
1429fff9c1b9d7bf7376ce2414b63ddb0345dd3e
[ "Artistic-2.0", "MIT" ]
3
2019-06-20T04:01:11.000Z
2019-12-03T00:10:39.000Z
from __future__ import division import os.path from collections import defaultdict import itertools import numpy as np class BackboneRotator(object): """Rotate around phi, psi angles.""" def __init__(self, structure): bb_coor = structure.select('name', ('N', 'C', 'CA')) self._ndofs = 2 * b...
35.823404
100
0.587397
62af3bbf329b36df9db09cc295dbb011e65c1b8b
2,645
py
Python
tests/python/tensorrt/test_tensorrt_batchnorm.py
ckt624/incubator-mxnet
bcbdc1cc797064fafc0a46a3dd00d446a7c60357
[ "Apache-2.0" ]
228
2018-12-06T09:34:01.000Z
2022-03-08T17:02:02.000Z
tests/python/tensorrt/test_tensorrt_batchnorm.py
chongruo/incubator-mxnet
7f57e8e10c504fe7a463ba695321b11c6dd4912d
[ "Apache-2.0" ]
16
2018-12-07T13:53:45.000Z
2021-12-14T21:22:58.000Z
tests/python/tensorrt/test_tensorrt_batchnorm.py
ElaineBao/incubator-mxnet
bcb09fcda8e119dd5524bb4a99fc20248a8fbb24
[ "Apache-2.0" ]
34
2018-12-14T02:59:53.000Z
2022-01-22T14:15:19.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...
40.075758
99
0.713422
62af770ee207feb61f1c09ee812e8f76376a3784
870
py
Python
backend/entries/routers.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
1
2019-05-01T12:09:47.000Z
2019-05-01T12:09:47.000Z
backend/entries/routers.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
34
2020-02-12T00:21:07.000Z
2022-03-02T13:43:11.000Z
backend/entries/routers.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
null
null
null
from rest_framework.routers import Route, SimpleRouter class EntriesRouter(SimpleRouter): """ A router for entries """ routes = [ Route( detail=False, initkwargs={"suffix": "Create"}, mapping={"post": "create"}, name="{basename}-create", ...
27.1875
84
0.456322
62af97c4a7e827b96e4c06c1bd0c4a0c4aa28e4a
6,969
py
Python
tests/data/test_detection_utils.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/data/test_detection_utils.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/data/test_detection_utils.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import copy import numpy as np import os import unittest import pycocotools.mask as mask_util from detectron.data import MetadataCatalog, detection_utils from detectron.data import transforms as T from detectron.structures import BitMasks, BoxMode from detectron.util...
39.372881
94
0.602956
62afe0dc860fe0448702463e5c93536b267c32c2
13,681
py
Python
predict.py
shishir-roy/decaNLP-with-BERT
510ae98b9650f45ba94d730c5d8a364f7080f125
[ "BSD-3-Clause" ]
null
null
null
predict.py
shishir-roy/decaNLP-with-BERT
510ae98b9650f45ba94d730c5d8a364f7080f125
[ "BSD-3-Clause" ]
null
null
null
predict.py
shishir-roy/decaNLP-with-BERT
510ae98b9650f45ba94d730c5d8a364f7080f125
[ "BSD-3-Clause" ]
null
null
null
Hello git testing shishir roy #!/usr/bin/env python3 import os from text.torchtext.datasets.generic import Query from text import torchtext from argparse import ArgumentParser import ujson as json import torch import numpy as np import random from pprint import pformat from util import get_splits, set_seed, preprocess...
43.709265
167
0.571596
62affc798d8bd5a9e8cdbeedce069dd490e2eb4d
72,406
py
Python
openpnm/core/Base.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
openpnm/core/Base.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
openpnm/core/Base.py
Eravalord/OpenPNM
505bc37318a3ba40d8343f89cd347d0073dd9d14
[ "MIT" ]
null
null
null
import warnings import uuid import numpy as np from collections import namedtuple from openpnm.models.misc import from_neighbor_throats, from_neighbor_pores from openpnm.utils import Workspace, logging from openpnm.utils.misc import PrintableList, SettingsDict, Docorator docstr = Docorator() logger = logging.getLogger(...
38.554846
85
0.531033
62b0160f93585288c5ca81f0d49b580dbfd6f6c6
1,167
py
Python
run.py
xyx0826/bngposts
bc4b4755692dad2e550df6b3c9fad9de10e31fa9
[ "MIT" ]
1
2021-07-30T04:49:03.000Z
2021-07-30T04:49:03.000Z
run.py
xyx0826/bngposts
bc4b4755692dad2e550df6b3c9fad9de10e31fa9
[ "MIT" ]
null
null
null
run.py
xyx0826/bngposts
bc4b4755692dad2e550df6b3c9fad9de10e31fa9
[ "MIT" ]
null
null
null
import os import json from api import Api from database import Database def main(): # Check config file if not os.path.isfile("config.json"): print( "Error: could not find config.json." "Make sure you have written your API key and email into " "config.json.sample a...
25.369565
75
0.599829
62b02c53a691a6f992eed5785ba8fa924ce206e9
2,680
py
Python
cfnbootstrap/user_group_tools.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/user_group_tools.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/user_group_tools.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
3
2017-02-10T13:14:38.000Z
2018-09-20T01:04:20.000Z
#============================================================================== # Copyright 2011 Amazon.com, Inc. or its affiliates. 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 ...
30.804598
120
0.586194
62b0aece23ce4020e5d54ce8213e9d30bc5a4d2e
4,037
py
Python
app/migrations/versions/1f326b63fbdd_.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
2
2020-05-10T16:06:17.000Z
2020-05-10T16:10:03.000Z
app/migrations/versions/1f326b63fbdd_.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
8
2020-04-07T16:36:51.000Z
2020-04-26T10:34:26.000Z
app/migrations/versions/1f326b63fbdd_.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
4
2020-04-18T22:53:33.000Z
2021-06-04T09:31:13.000Z
"""empty message Revision ID: 1f326b63fbdd Revises: 2d57e166d00f Create Date: 2020-04-15 14:47:20.445006 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '1f326b63fbdd' down_revision = '2d57e166d00f' branch_labels = None...
40.777778
65
0.584097
62b0b5f496b40cf204bc0909f44dcd7d5843ee62
1,282
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_utils/uuidutils.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_utils/uuidutils.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_utils/uuidutils.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 Intel 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 re...
27.869565
79
0.639626
62b0c55a01828adb8ecff345e701a1575e8cd8c1
3,203
py
Python
scanapi/variable_parser.py
barbosa/scanapi
82def9d7c9ef19a2b658d9aa6c973790e2c16ddc
[ "MIT" ]
null
null
null
scanapi/variable_parser.py
barbosa/scanapi
82def9d7c9ef19a2b658d9aa6c973790e2c16ddc
[ "MIT" ]
null
null
null
scanapi/variable_parser.py
barbosa/scanapi
82def9d7c9ef19a2b658d9aa6c973790e2c16ddc
[ "MIT" ]
null
null
null
from enum import Enum import logging import os import re import sys import yaml from scanapi.errors import BadConfigurationError, InvalidPythonCodeError # Available imports to be used dinamically in the api spec import datetime import math import random import time import uuid logger = logging.getLogger(__name__) va...
23.043165
82
0.664689
62b0e12bd5830174027a6ddaa68293db3c1aba17
5,175
py
Python
jenkinsapi_tests/unittests/test_plugins.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
1
2015-01-12T14:15:59.000Z
2015-01-12T14:15:59.000Z
jenkinsapi_tests/unittests/test_plugins.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
jenkinsapi_tests/unittests/test_plugins.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
import mock import unittest from jenkinsapi.jenkins import Jenkins from jenkinsapi.plugins import Plugins from jenkinsapi.plugin import Plugin class TestPlugins(unittest.TestCase): DATA = { 'plugins': [ { 'deleted': False, 'hasUpdate': True, 'do...
32.753165
89
0.533913
62b141645c771d3ad048471fa5654a50cef07ceb
22,134
py
Python
distributed/tests/test_core.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_core.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
null
null
null
distributed/tests/test_core.py
willirath/distributed
67fe8208a0a6edc18e02a4c5080d81fb11eab338
[ "BSD-3-Clause" ]
null
null
null
import asyncio import os import socket import sys import threading import weakref import pytest import dask from distributed.core import ( pingpong, Server, rpc, connect, send_recv, coerce_to_address, ConnectionPool, ) from distributed.protocol.compression import compressions from distrib...
28.232143
88
0.640192
62b192abf4389b666d506b2049d1ea92e3aa471c
60
py
Python
irida_uploader_cl/parsers/nextseq/__init__.py
duanjunhyq/irida_uploader_cl
d0e5d404c5b5b10c3411ded71a20f5ab062aabba
[ "MIT" ]
null
null
null
irida_uploader_cl/parsers/nextseq/__init__.py
duanjunhyq/irida_uploader_cl
d0e5d404c5b5b10c3411ded71a20f5ab062aabba
[ "MIT" ]
null
null
null
irida_uploader_cl/parsers/nextseq/__init__.py
duanjunhyq/irida_uploader_cl
d0e5d404c5b5b10c3411ded71a20f5ab062aabba
[ "MIT" ]
null
null
null
from irida_uploader_cl.parsers.nextseq.parser import Parser
30
59
0.883333
62b1bfda28547ce95ee5c3abd8fffda38d63d0bc
2,467
py
Python
oeml-sdk/python/test/test_order_new_single_request.py
oskaralfons/coinapi-sdk
2c79b6d91d0f702040dd865e79f0774a4bba9bb3
[ "MIT" ]
1
2020-07-23T05:47:52.000Z
2020-07-23T05:47:52.000Z
oeml-sdk/python/test/test_order_new_single_request.py
oskaralfons/coinapi-sdk
2c79b6d91d0f702040dd865e79f0774a4bba9bb3
[ "MIT" ]
null
null
null
oeml-sdk/python/test/test_order_new_single_request.py
oskaralfons/coinapi-sdk
2c79b6d91d0f702040dd865e79f0774a4bba9bb3
[ "MIT" ]
null
null
null
# coding: utf-8 """ OEML - REST API This section will provide necessary information about the `CoinAPI OEML REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> # noqa: E501 The version...
34.746479
261
0.626267
62b1d1cf4e0d6a923e037c4c5e2687909d378920
7,670
py
Python
lang/typescript/typescript.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
2
2021-04-08T04:37:03.000Z
2022-03-16T20:40:52.000Z
lang/typescript/typescript.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
null
null
null
lang/typescript/typescript.py
nriley/knausj_talon
fe7791fa868be5eb0f6471fc0b0f1f10f25a369b
[ "MIT" ]
1
2020-12-04T21:05:12.000Z
2020-12-04T21:05:12.000Z
from talon import Module, Context, actions, ui, imgui, settings ctx = Context() ctx.matches = r""" mode: user.typescript mode: user.auto_lang and code.language: typescript """ # tbd # ctx.lists["user.code_functions"] = { # "integer": "int.TryParse", # "print": "Console.WriteLine", # "string": ".ToString",...
25.481728
78
0.608475
62b2012237dc1fce742c8a3218c68cea983ba0c9
32,951
py
Python
api/src/opentrons/protocol_api/protocol_context.py
Opentrons/opentrons
23cb4bb9e1d1f9bd73a63f5837e947c337cdb9dc
[ "Apache-2.0" ]
235
2017-10-27T20:37:27.000Z
2022-03-30T14:09:49.000Z
api/src/opentrons/protocol_api/protocol_context.py
koji/opentrons
0f339f45de238183b2c433e67f839363d5177582
[ "Apache-2.0" ]
8,425
2017-10-26T15:25:43.000Z
2022-03-31T23:54:26.000Z
api/src/opentrons/protocol_api/protocol_context.py
koji/opentrons
0f339f45de238183b2c433e67f839363d5177582
[ "Apache-2.0" ]
130
2017-11-09T21:02:37.000Z
2022-03-15T18:01:24.000Z
from __future__ import annotations import asyncio import contextlib from dataclasses import dataclass import logging from typing import ( Callable, Dict, Iterator, List, Optional, Tuple, Union, TYPE_CHECKING, cast, ) from collections import OrderedDict from opentrons import types fr...
39.321002
88
0.629116
62b2144a59b7bb898544ede5a11917267cd2de93
16,863
py
Python
digideep/params/atari_ppo.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
11
2019-03-09T23:54:02.000Z
2020-09-05T20:47:55.000Z
log_sessions/cartpole_8_5_05_1/modules/digideep/params/atari_ppo.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
1
2021-09-30T01:15:57.000Z
2021-09-30T01:15:57.000Z
digideep/params/atari_ppo.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
null
null
null
""" See Also: :ref:`ref-parameter-files` """ import numpy as np from copy import deepcopy from digideep.environment import MakeEnvironment from collections import OrderedDict ################################################################################ ######### CONTROL PANEL ...
53.028302
159
0.564016
62b22d7de0e67637d0b68582a4afb8e51a5dd789
2,095
py
Python
src/lib/Bcfg2/Encryption.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Encryption.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
src/lib/Bcfg2/Encryption.py
amplify-education/bcfg2
02d7f574babfeb2da99e2aad3a92b4e8d6494f07
[ "mpich2" ]
null
null
null
#!/usr/bin/python -Ott import os import base64 from M2Crypto import Rand from M2Crypto.EVP import Cipher, EVPError from Bcfg2.Bcfg2Py3k import StringIO try: from hashlib import md5 except ImportError: from md5 import md5 ENCRYPT = 1 DECRYPT = 0 ALGORITHM = "aes_256_cbc" IV = '\0' * 16 Rand.rand_seed(os.uran...
27.565789
73
0.642482
62b265ab4d62756e5b1f61189a1255e6bee3f9c4
5,975
py
Python
lab2/text_recognizer/models/cnn.py
wook3024/fsdl-text-recognizer-2021-labs
06ccc875eaa22971a9c3e78785566739ec75702a
[ "MIT" ]
null
null
null
lab2/text_recognizer/models/cnn.py
wook3024/fsdl-text-recognizer-2021-labs
06ccc875eaa22971a9c3e78785566739ec75702a
[ "MIT" ]
null
null
null
lab2/text_recognizer/models/cnn.py
wook3024/fsdl-text-recognizer-2021-labs
06ccc875eaa22971a9c3e78785566739ec75702a
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Optional import argparse import torch import torch.nn as nn import torch.nn.functional as F CONV_DIM = 64 FC_DIM = 128 IMAGE_SIZE = 28 LAYERS = [2, 2, 2, 2] GROUPS = 32 class ConvBlock(nn.Module): """ Simple 3x3 conv with padding size 1 (to leave the input size unchanged...
30.329949
167
0.55046
62b2828cfb76c4efc8cf8dc1512603c7433b79b7
217,521
py
Python
google/appengine/datastore/datastore_pb.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/datastore/datastore_pb.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
google/appengine/datastore/datastore_pb.py
luduvigo/app-blog-code
2de41573955f8dfb5f6d964d3cae2bbee6db2f9a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.576469
624
0.678505
62b29d88672aa4954e326cb3a6e9a0be0c45a84a
8,441
py
Python
docs/conf.py
audreyr/standardjson
5b275bb8158703eb77114ce9b632716c4201b675
[ "BSD-3-Clause" ]
5
2015-02-05T03:08:38.000Z
2017-03-06T11:38:52.000Z
docs/conf.py
audreyr/standardjson
5b275bb8158703eb77114ce9b632716c4201b675
[ "BSD-3-Clause" ]
4
2015-03-19T08:21:01.000Z
2019-05-15T19:54:20.000Z
docs/conf.py
audreyr/standardjson
5b275bb8158703eb77114ce9b632716c4201b675
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # ...
30.694545
76
0.716977
62b2aae97e3da9a9627e255cad76313883885be0
1,465
py
Python
src/pipelines/epidemiology/mx_mexico_covid_19.py
harrisonzhu508/data
a3b95ced4abad6653d20f67f3f285abeeb0c2b25
[ "Apache-2.0" ]
null
null
null
src/pipelines/epidemiology/mx_mexico_covid_19.py
harrisonzhu508/data
a3b95ced4abad6653d20f67f3f285abeeb0c2b25
[ "Apache-2.0" ]
null
null
null
src/pipelines/epidemiology/mx_mexico_covid_19.py
harrisonzhu508/data
a3b95ced4abad6653d20f67f3f285abeeb0c2b25
[ "Apache-2.0" ]
null
null
null
import datetime from typing import Any, Dict, List from numpy import unique from pandas import DataFrame, concat, merge from lib.pipeline import DefaultPipeline from lib.time import datetime_isoformat from lib.utils import grouped_diff, pivot_table class MexicoCovid19Pipeline(DefaultPipeline): data_urls: List[str...
34.880952
102
0.677133
62b2c5e167447514e287f928bbc0b7df810f093b
1,575
py
Python
microfreshener/command_line.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
microfreshener/command_line.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
3
2019-10-02T13:55:39.000Z
2021-06-01T22:55:20.000Z
microfreshener/command_line.py
di-unipi-socc/microFreshener-core
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
import os import click import json from microfreshener.core.importer import JSONImporter, YMLImporter from microfreshener.core.exporter import JSONExporter, YMLExporter from microfreshener.core.analyser import MicroToscaAnalyserBuilder @click.group() def cli(): """ MicroFreshener permits to analyse microservi...
27.155172
104
0.711111
62b2cef4253470b694498ba5e59016bbdda896db
1,606
py
Python
toontown/betaevent/CogTVScreen.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2022-01-06T23:51:18.000Z
2022-01-06T23:51:18.000Z
toontown/betaevent/CogTVScreen.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/betaevent/CogTVScreen.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
''' Created on Apr 15, 2016 @author: Drew ''' from direct.fsm.FSM import FSM from panda3d.core import NodePath from toontown.suit.BossCog import BossCog from toontown.suit.SuitDNA import SuitDNA class CogTVScreen(NodePath): def __init__(self, name): NodePath.__init__(self, name) self.camPos = (0...
26.327869
97
0.591532
62b2e970de5b6835b46515c77bc52793fcfbcaf1
524
py
Python
w32/fight-the-monsters/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
w32/fight-the-monsters/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
w32/fight-the-monsters/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
#!/bin/python3 import sys from math import ceil def getMaxMonsters(n, hit, t, h): hits_per_monster = [ceil(i/hit) for i in h] #O(n) hits_sorted = sorted(hits_per_monster) #O(n*log(n)) m = 0 while t > 0 and m < n: #O(n) if hits_sorted[m] <= t: t -= hits_sorted[m] m += 1 ...
23.818182
56
0.54771
62b2fb0a2123b3a998e1b8776b801b00abc04e3b
1,927
py
Python
pyanoled/visualizer/effects/Effect.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
pyanoled/visualizer/effects/Effect.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
pyanoled/visualizer/effects/Effect.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
from pyanoled.Configuration import Configuration from abc import ABC, abstractmethod from logging import Logger from rpi_ws281x.rpi_ws281x import Color, PixelStrip from typing import Tuple class Effect(ABC): """ base abstract class defining the interface that all effect scheme subclasses needs to implement ...
24.0875
115
0.582771
62b31081125abb2ef63b077042a09c57b7d1e1fb
27,941
py
Python
VMBackup/main/handle.py
axelgMS/azure-linux-extensions
391ac51d3caa58421b2e9a6fa6f0a4baf5f514ca
[ "Apache-2.0" ]
null
null
null
VMBackup/main/handle.py
axelgMS/azure-linux-extensions
391ac51d3caa58421b2e9a6fa6f0a4baf5f514ca
[ "Apache-2.0" ]
null
null
null
VMBackup/main/handle.py
axelgMS/azure-linux-extensions
391ac51d3caa58421b2e9a6fa6f0a4baf5f514ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # VM Backup extension # # Copyright 2014 Microsoft 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 # # U...
50.253597
206
0.668874
62b32804b0e3bab6b77973f69d399ea784e2d3f6
2,264
py
Python
sdk/storage/azure-storage-blob-changefeed/tests/settings/testcase.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-storage-blob-changefeed/tests/settings/testcase.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob-changefeed/tests/settings/testcase.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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. # ---------------------------------------------------------------------...
37.114754
114
0.734541
62b3536d68da276e7db556849643396c8e9d3d34
80,503
py
Python
lib/matplotlib/axis.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
lib/matplotlib/axis.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/axis.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
""" Classes for the ticks and x and y axis """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib import rcParams import matplotlib.artist as artist from matplotlib.artist import allow_rasterization import matplotlib.cbook as cbook i...
36.067652
80
0.574475
62b35495195e39b24aad132649c7cd1186869287
16,558
py
Python
pytorch_forecasting/models/nbeats/__init__.py
smetam/pytorch-forecasting
0a5e13fc9eefab00f43b002d08808b235582ed3d
[ "MIT" ]
null
null
null
pytorch_forecasting/models/nbeats/__init__.py
smetam/pytorch-forecasting
0a5e13fc9eefab00f43b002d08808b235582ed3d
[ "MIT" ]
2
2020-07-26T11:38:16.000Z
2020-08-16T21:08:53.000Z
pytorch_forecasting/models/nbeats/__init__.py
smetam/pytorch-forecasting
0a5e13fc9eefab00f43b002d08808b235582ed3d
[ "MIT" ]
null
null
null
""" N-Beats model for timeseries forecasting without covariates. """ from typing import Dict, List import matplotlib.pyplot as plt import torch from torch import nn from pytorch_forecasting.data import TimeSeriesDataSet from pytorch_forecasting.data.encoders import NaNLabelEncoder from pytorch_forecasting.metrics imp...
46.774011
120
0.607622
62b38913f098989bc9b916d186bd9c16b363ec7f
1,537
py
Python
setup.py
Utagai/spice
a2604ad01c12138067eeb2036258437e0f8e4b82
[ "MIT" ]
41
2016-08-01T04:57:24.000Z
2022-02-13T01:38:04.000Z
setup.py
Utagai/spice
a2604ad01c12138067eeb2036258437e0f8e4b82
[ "MIT" ]
32
2016-07-13T18:10:22.000Z
2018-06-05T22:58:48.000Z
setup.py
Utagai/spice
a2604ad01c12138067eeb2036258437e0f8e4b82
[ "MIT" ]
14
2016-08-25T23:09:03.000Z
2018-05-06T19:33:32.000Z
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
37.487805
109
0.617437
62b3def0168b9b9e5728e875cacf4771f88c9e22
869
py
Python
chatbot_agent/chatbot_agent/interface/session.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
chatbot_agent/chatbot_agent/interface/session.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
chatbot_agent/chatbot_agent/interface/session.py
hscspring/chatbot
9d0bc91db0d8834a1a75cba3edcd3133191e80af
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod class Session(ABC): """Base dialog session controller, which manages the agents to conduct a complete dialog session. """ @abstractmethod def next_agent(self): """Decide the next agent to generate a response. In this base class, this function retur...
25.558824
101
0.609896
62b3fd3656773b76ca166b0f033b96bf31c1f9b3
7,112
py
Python
rbac/common/protobuf/role_state_pb2.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2019-04-14T20:16:59.000Z
2019-04-14T20:16:59.000Z
rbac/common/protobuf/role_state_pb2.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
null
null
null
rbac/common/protobuf/role_state_pb2.py
crazyrex/sawtooth-next-directory
210b581c8c92c307fab2f6d2b9a55526b56b790a
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: role_state.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _re...
33.866667
488
0.758577
62b4047c15b1f49c3409587c6ee35e5a734dbff6
19,402
py
Python
thgsp/filters/qmf.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
22
2021-01-13T05:15:38.000Z
2022-01-17T01:37:29.000Z
thgsp/filters/qmf.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-03-26T04:36:39.000Z
2022-01-11T16:17:56.000Z
thgsp/filters/qmf.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-01-13T05:15:43.000Z
2022-01-01T12:51:32.000Z
from functools import partial from typing import List import numpy as np import torch from scipy.sparse import diags from torch_sparse import SparseTensor from thgsp.bga import beta2channel_mask, beta_dist2channel_name, is_bipartite_fix, laplace from thgsp.bga import harary, osglm, amfs, admm_bga, admm_lbga_ray from ...
39.434959
120
0.589269
62b40bbae6cd65169e10373b4d84b13c6405ad20
5,459
py
Python
sdk/core/azure-core/azure/core/configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
45.87395
119
0.713501
62b417e89eb3f862cdf1c1de0dc7faee974d9632
1,080
py
Python
deepdos/args/model.py
C3NZ/deepdos
9438b760d940dfd9a3bf69a91a6d125e1c76f593
[ "MIT" ]
24
2019-10-18T23:10:12.000Z
2021-06-21T02:25:31.000Z
deepdos/args/model.py
vmarcella/deepdos
9438b760d940dfd9a3bf69a91a6d125e1c76f593
[ "MIT" ]
1
2019-11-04T20:23:40.000Z
2019-11-04T20:23:40.000Z
deepdos/args/model.py
vmarcella/deepdos
9438b760d940dfd9a3bf69a91a6d125e1c76f593
[ "MIT" ]
4
2019-10-03T18:39:23.000Z
2021-03-01T11:37:34.000Z
""" The argument registery """ from deepdos.args.argument import Argument from deepdos.conf import LATEST_STABLE_MODEL class ModelTypeArg(Argument): """ Class for easily command line arguments and their handlers """ def register_argument(self, parser): """ Register the arg...
26.341463
81
0.578704
62b427ba56295e3c7fb00b085da3f79dd1356ae5
7,040
py
Python
clients/kratos/python/ory_kratos_client/model/graph_driver_data.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/graph_driver_data.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/graph_driver_data.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
40.228571
446
0.590625
62b45ede7d53c7ddc31ceaa1ebd29a2c786f2884
1,818
py
Python
doctor_tests/identity_auth.py
opnfv/doctor
72a1f8c92f1692f1ea8dcb5bc706ec9939c30e0a
[ "Apache-2.0" ]
3
2017-04-05T19:09:36.000Z
2019-02-28T05:27:21.000Z
doctor_tests/identity_auth.py
opnfv/doctor
72a1f8c92f1692f1ea8dcb5bc706ec9939c30e0a
[ "Apache-2.0" ]
2
2017-09-20T07:31:39.000Z
2018-04-09T09:38:45.000Z
doctor_tests/identity_auth.py
opnfv/doctor
72a1f8c92f1692f1ea8dcb5bc706ec9939c30e0a
[ "Apache-2.0" ]
7
2017-05-24T02:21:08.000Z
2019-12-09T16:54:02.000Z
############################################################################## # Copyright (c) 2017 NEC Corporation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is avail...
40.4
79
0.656766
62b4810cc67e19ff496163e07f8579e735bd609d
283
py
Python
terrascript/nomadutility/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/nomadutility/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/nomadutility/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/nomadutility/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class nomadutility_acl_bootstrap(terrascript.Resource): pass
20.214286
79
0.787986
62b48b800426aac4c5949ba1e51a684fc174f60d
25,263
py
Python
test/functional/fundrawtransaction-hd.py
biblepay/biblepay
6af4517c623620f60cabc228cc2f63c35d1beb5b
[ "MIT" ]
63
2017-07-25T21:57:21.000Z
2022-02-05T02:58:03.000Z
test/functional/fundrawtransaction-hd.py
biblepay/biblepay
6af4517c623620f60cabc228cc2f63c35d1beb5b
[ "MIT" ]
105
2017-09-04T00:52:17.000Z
2021-05-22T13:58:37.000Z
test/functional/fundrawtransaction-hd.py
biblepay/biblepay
6af4517c623620f60cabc228cc2f63c35d1beb5b
[ "MIT" ]
62
2017-08-04T19:48:40.000Z
2021-07-07T12:21:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import sys from test_framework.test_framework import BitcoinTestFramework from test_framework.util impor...
40.550562
214
0.557891
62b494633db1a150cab7709e2fb3b51726977ec1
3,991
py
Python
apps/view_spawn_points.py
cognitive-robots/road-recorder
4a619996cf0c9fbcdd27ba324532049c00a8cf53
[ "MIT" ]
null
null
null
apps/view_spawn_points.py
cognitive-robots/road-recorder
4a619996cf0c9fbcdd27ba324532049c00a8cf53
[ "MIT" ]
null
null
null
apps/view_spawn_points.py
cognitive-robots/road-recorder
4a619996cf0c9fbcdd27ba324532049c00a8cf53
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2022 Oxford Robotics Institute (ORI), University of Oxford # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This program can help you to find suitable spawn points for your scenarios. It provides a visualis...
28.71223
91
0.622651
62b4d0ec61f32a8cf4e5ab15509bafee6d3a4637
1,718
py
Python
python_legacy/collisions.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
python_legacy/collisions.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
python_legacy/collisions.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
def get_positions_in_grid(object, grid, map): '''Returns the tiles ocupied by this object in the collision grid.''' positions = list() #grid_tile_width = (map.width * map.tilewidth) / len(grid) #grid_tile_height = (map.height * map.tileheight) / len(grid) #diffs = [(x * grid_tile_width, y * grid...
31.814815
98
0.58149
62b4dae609e28d08dbe980cf739d2b24029fac34
6,132
py
Python
RatingsAnalyzer.py
naveenpoluri/pythoncodingassesment
253f77ee84d6fdfa418f93215e3144fa9d8760ca
[ "BSD-4-Clause-UC" ]
null
null
null
RatingsAnalyzer.py
naveenpoluri/pythoncodingassesment
253f77ee84d6fdfa418f93215e3144fa9d8760ca
[ "BSD-4-Clause-UC" ]
null
null
null
RatingsAnalyzer.py
naveenpoluri/pythoncodingassesment
253f77ee84d6fdfa418f93215e3144fa9d8760ca
[ "BSD-4-Clause-UC" ]
null
null
null
from util.Utilities import readFile, writeFile from pyspark.sql import SparkSession from pyspark.sql import functions as F from pyspark.sql import types as T from pyspark.sql.window import Window import sys outputPath = sys.argv[1] spark = SparkSession.builder.master("local[*]").appName("RatingsAnalyzer").ge...
51.1
160
0.698956
62b4e4e81aed2ea247681a1e690611ffc8ddb512
158
py
Python
ludolph_ansible/__init__.py
erigones/ludolph-ansible
014bbbdb6504f4cdcfaf08ea13145da4c864a354
[ "MIT" ]
null
null
null
ludolph_ansible/__init__.py
erigones/ludolph-ansible
014bbbdb6504f4cdcfaf08ea13145da4c864a354
[ "MIT" ]
null
null
null
ludolph_ansible/__init__.py
erigones/ludolph-ansible
014bbbdb6504f4cdcfaf08ea13145da4c864a354
[ "MIT" ]
null
null
null
""" This file is part of Ludolph: Ansible plugin Copyright (C) 2015 Erigones, s. r. o. See the LICENSE file for copying permission. """ __version__ = '0.4'
17.555556
44
0.702532
62b507c3a6fd5435257121dd5a436d29996b5ed9
11,140
py
Python
packages/hunspell/combine_dicts.py
medzuslovjansky/isv_hunspell_dict
0677601a5758c02145f0ac84c3ab8316a970058d
[ "MIT" ]
1
2022-01-07T15:04:54.000Z
2022-01-07T15:04:54.000Z
packages/hunspell/combine_dicts.py
orlean-git/isv_hunspell
0677601a5758c02145f0ac84c3ab8316a970058d
[ "MIT" ]
10
2021-11-18T01:39:21.000Z
2021-11-22T21:23:19.000Z
packages/hunspell/combine_dicts.py
medzuslovjansky/isv_hunspell_dict
0677601a5758c02145f0ac84c3ab8316a970058d
[ "MIT" ]
1
2021-11-21T14:05:14.000Z
2021-11-21T14:05:14.000Z
from utilities import * import pickle import time from pprint import pprint start_time = time.time() '''# OPTIONS (DEFAULT: LAT+CYR) OUTPUT_DICTIONARY_NAME = 'output/dictionaries/KOMBO_DEFAULT' AFFIX_FILE_HEADER_NAME = 'input/affixheaders/affix_file_header_latcyr.txt' PICKLE_FOLDER = 'cache/pickling/' # possible types...
52.056075
180
0.614722
62b5212fef15f38748bfd1a1b3c40677daa0893c
2,850
py
Python
tql/utils/pandas_utils/0_DA/udfs/data_transform.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/utils/pandas_utils/0_DA/udfs/data_transform.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/utils/pandas_utils/0_DA/udfs/data_transform.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
# coding: utf-8 __title__ = 'data_transform' __author__ = 'JieYuan' __mtime__ = '2018/2/13' # 聚合函数 class Agg(object): @staticmethod def mode(x): """ 因mode需至少重复2次才可用,故需判断异常 """ try: _mode = x.mode()[0] except: return x.values[0] else: ...
28.787879
109
0.583509
62b521b329bce191a9d46eb8029231e4d2764ffb
206
py
Python
mwe_discov_eval/measures/__init__.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
mwe_discov_eval/measures/__init__.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
mwe_discov_eval/measures/__init__.py
nicolaCirillo/mwe_discov_eval
36f544a802f68d7e274627d57a65531ff23c4c5e
[ "MIT" ]
null
null
null
from .am_extended import AMExtendedCalc from .fair_disp_point_norm import FairDispPointCalc from .c_value import CValueCalc from .syntactic_fixedness import SynEntCalc from .compositionality import CompCalc
41.2
51
0.883495
62b536fe425c61ab6ab1575569e70030ea0a193f
1,089
py
Python
firestore_orm/relationship.py
Silvrash/firestorm
f87ef82c7a9b3c346047f8eff8989652794c2442
[ "Apache-2.0" ]
5
2020-01-18T11:44:27.000Z
2021-07-15T18:54:34.000Z
firestore_orm/relationship.py
Silvrash/firestorm
f87ef82c7a9b3c346047f8eff8989652794c2442
[ "Apache-2.0" ]
null
null
null
firestore_orm/relationship.py
Silvrash/firestorm
f87ef82c7a9b3c346047f8eff8989652794c2442
[ "Apache-2.0" ]
2
2019-11-07T10:02:13.000Z
2020-03-05T04:31:35.000Z
__author__ = 'Benjamin Arko Afrasah' import firebase_admin from firebase_admin import firestore from firebase_admin import storage from firestore_orm.base import FirestoreORM from firestore_orm.model import Model def relationship(model, foreign_model, key, uselist=False): # type: (Model, Model, str, bool) -> Mo...
35.129032
108
0.64371
62b5402e5e6196cc4a09e518e492fe9f0973738c
474
py
Python
23-Machine-Learning-for-TimeSeries-Data-in-Python/02-Time Series as Inputs to a Model/5.Calculating features from the envelope.py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
1
2021-01-31T20:51:10.000Z
2021-01-31T20:51:10.000Z
23-Machine-Learning-for-TimeSeries-Data-in-Python/02-Time Series as Inputs to a Model/5.Calculating features from the envelope.py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
null
null
null
23-Machine-Learning-for-TimeSeries-Data-in-Python/02-Time Series as Inputs to a Model/5.Calculating features from the envelope.py
AndreasFerox/DataCamp
41525d7252f574111f4929158da1498ee1e73a84
[ "MIT" ]
null
null
null
## Calculating features from the envelope # Calculate stats means = np.mean(audio_rectified_smooth, axis=0) stds = np.std(audio_rectified_smooth, axis=0) maxs = np.max(audio_rectified_smooth, axis=0) # Create the X and y arrays X = np.column_stack([means, stds, maxs]) y = labels.reshape([-1, 1]) # Fit the model and ...
31.6
51
0.765823
62b54df5015f284089cefc4e5ad287c68607a1ec
128
py
Python
profiles/admin.py
chandru-shane/django-forum-project
061325ce0234c7e183df7bdb180907fc23acc11e
[ "MIT" ]
3
2021-01-03T01:57:05.000Z
2021-01-05T07:36:25.000Z
ozgur_etkinlik/auths/admin.py
ilteriskeskin/Ozgur-Etkinlik
2ed47a7251ba2e49d30a90f7ef94ebbcdad6fcaa
[ "MIT" ]
3
2019-06-08T22:33:38.000Z
2019-06-17T19:58:34.000Z
ozgur_etkinlik/auths/admin.py
ilteriskeskin/Ozgur-Etkinlik
2ed47a7251ba2e49d30a90f7ef94ebbcdad6fcaa
[ "MIT" ]
2
2019-06-21T16:52:12.000Z
2019-06-21T17:15:33.000Z
from django.contrib import admin from .models import UserProfile # Register your models here. admin.site.register(UserProfile)
21.333333
32
0.820313
62b556f8d3623afca9226c97cd39d3556152aafb
4,854
py
Python
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_10_31/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.72973
133
0.672023
62b57eca727f2d66880fb5d9f952e3bea55dccab
1,030
py
Python
codesandbox/test_scripts/gui_with_signal.py
ananttuli-elipse-uq/code-sandbox
fcb333a32c14b5684c18e4a6005a8254a5d2b7dd
[ "MIT" ]
null
null
null
codesandbox/test_scripts/gui_with_signal.py
ananttuli-elipse-uq/code-sandbox
fcb333a32c14b5684c18e4a6005a8254a5d2b7dd
[ "MIT" ]
null
null
null
codesandbox/test_scripts/gui_with_signal.py
ananttuli-elipse-uq/code-sandbox
fcb333a32c14b5684c18e4a6005a8254a5d2b7dd
[ "MIT" ]
2
2018-01-12T01:10:25.000Z
2021-02-10T05:01:55.000Z
""" Some old mypy questions run tests after the GUI has been destroyed, so test for that output """ from tkinter import Tk, Label, Button from signal import signal, SIGTERM, SIGINT class SignalGUI: def __init__(self, master): self.master = master master.title("A simple GUI") self.label =...
23.409091
92
0.674757
62b58dc8a5db8033df871382fe50b729a8113245
11,752
py
Python
tests/keras/test_sequential_model.py
mduranmustafa/keras
d4a14ee54728ac8ea6c5ffbf41f559662dcfba46
[ "MIT" ]
75
2018-08-03T01:10:36.000Z
2022-02-25T05:08:39.000Z
tests/keras/test_sequential_model.py
coderclear/ConvGRU
c458024d5c379ef990f72b6f6b738301e1895cff
[ "MIT" ]
9
2018-08-14T14:33:58.000Z
2021-09-06T07:04:14.000Z
tests/keras/test_sequential_model.py
coderclear/ConvGRU
c458024d5c379ef990f72b6f6b738301e1895cff
[ "MIT" ]
19
2018-08-11T20:44:42.000Z
2021-12-01T00:41:52.000Z
from __future__ import absolute_import from __future__ import print_function import pytest import os import numpy as np from keras import backend as K import keras from keras.models import Sequential from keras.layers import Dense, Activation from keras.utils import np_utils from keras.utils.test_utils import get_test...
31.67655
116
0.673077
62b59a22970bb6d275aaa5f5b0f32f3caf7d9be0
4,264
py
Python
manage.py
lmokto/microdevices
75a129d1c32f64afe9027338c4be304322ded857
[ "MIT" ]
null
null
null
manage.py
lmokto/microdevices
75a129d1c32f64afe9027338c4be304322ded857
[ "MIT" ]
1
2021-06-02T00:01:14.000Z
2021-06-02T00:01:14.000Z
manage.py
lmokto/microdevices
75a129d1c32f64afe9027338c4be304322ded857
[ "MIT" ]
null
null
null
import argparse import sys from microdevices.libs.utils import ( handler_registry, fnc_handler, fnc_change, init_database, handler_inspect, handler_launch ) from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine engine = create_engine('sqlite:///microdevices.db', echo=True) Session = session...
43.070707
114
0.725375
62b5baf69b7b89cecf5bd2b1a8407f13d39093e4
709
py
Python
numeric_methods/utils.py
LimaBD/studies
512dee0b1ad3b98ffb265e70af21e68bc8098d55
[ "MIT" ]
null
null
null
numeric_methods/utils.py
LimaBD/studies
512dee0b1ad3b98ffb265e70af21e68bc8098d55
[ "MIT" ]
null
null
null
numeric_methods/utils.py
LimaBD/studies
512dee0b1ad3b98ffb265e70af21e68bc8098d55
[ "MIT" ]
null
null
null
#! /usr/bin/env python # # Utils module # # by Bruno Daniel Lima """Utils module""" # Standard packages import sys import re def get_multiple_argument(arg, default=['']): """Extract n arg values and returns a list""" result = [] is_arg_value = False for item in sys.argv: if item.startswith...
20.257143
49
0.620592
62b61bc154d254ff6f7a0622f9e88a3bc69ba7e2
622
py
Python
manage.py
TvvH05ozL6/table-summarisation
2549ec29844a6e2b7350a9ba37c0b45d1c76a5ba
[ "MIT" ]
1
2021-12-06T10:35:14.000Z
2021-12-06T10:35:14.000Z
manage.py
TvvH05ozL6/table-summarisation
2549ec29844a6e2b7350a9ba37c0b45d1c76a5ba
[ "MIT" ]
null
null
null
manage.py
TvvH05ozL6/table-summarisation
2549ec29844a6e2b7350a9ba37c0b45d1c76a5ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportErro...
28.272727
73
0.681672
62b64fdc14ad6f98cf901582df488e608de0ead2
6,450
py
Python
ocd_backend/pipeline.py
openstate/kamervragen
0b9486dfe1521f3e88b144f9cc8ad2b32ff24834
[ "CC-BY-4.0" ]
2
2018-03-15T16:32:59.000Z
2021-04-06T01:37:18.000Z
ocd_backend/pipeline.py
openstate/kamervragen
0b9486dfe1521f3e88b144f9cc8ad2b32ff24834
[ "CC-BY-4.0" ]
7
2017-07-06T11:45:54.000Z
2022-03-11T23:14:16.000Z
ocd_backend/pipeline.py
openstate/kamervragen
0b9486dfe1521f3e88b144f9cc8ad2b32ff24834
[ "CC-BY-4.0" ]
2
2018-04-05T09:46:44.000Z
2018-04-13T14:29:02.000Z
from datetime import datetime from uuid import uuid4 from elasticsearch.exceptions import NotFoundError from celery import chain from ocd_backend.es import elasticsearch as es from ocd_backend import settings, celery_app from ocd_backend.log import get_source_logger from ocd_backend.utils.misc import load_object from...
39.814815
97
0.672248