hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
568b1019879be9de6c7b79cc514e29372eb7f562
558
py
Python
AD11-flask-admin-with-sqlalchemy-demo/models.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
3
2020-06-17T05:44:48.000Z
2021-09-11T02:49:38.000Z
AD11-flask-admin-with-sqlalchemy-demo/models.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
3
2021-06-08T20:57:03.000Z
2022-02-23T14:54:59.000Z
AD11-flask-admin-with-sqlalchemy-demo/models.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
6
2020-06-17T05:44:56.000Z
2022-03-29T12:53:05.000Z
from sqlalchemy import Table, Column, Integer, String from sqlalchemy.orm import mapper from .database import metadata, db_session users = Table( 'users', metadata, Column('id', Integer, primary_key=True), Column('name', String(50), unique=True), Column('email', String(120), unique=True) ) mapper(Us...
22.32
53
0.664875
568b3a18a8ab24c741eef4aaa3b9ab0886fa891f
963
py
Python
jumbo_cols.py
yldrmdenz/fin_dashboard
57c296eb495bb9351b65ca60958b2093569d092e
[ "MIT" ]
null
null
null
jumbo_cols.py
yldrmdenz/fin_dashboard
57c296eb495bb9351b65ca60958b2093569d092e
[ "MIT" ]
3
2021-12-31T22:26:43.000Z
2022-01-02T16:23:54.000Z
jumbo_cols.py
yldrmdenz/fin_dashboard
57c296eb495bb9351b65ca60958b2093569d092e
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc import dash_html_components as html """ Creation of jumbotrons for a better Homepage display """ left_jumbotron = dbc.Col( html.Div( [ html.H2("Your Favorite Finance Hub", className="display-3"), html.Hr(className="my-2"), html.P( ...
25.342105
72
0.555556
568caa412c52820c7a9450853a168ec9a948890a
11,496
py
Python
17_greedy/greedy_xrh.py
Xinrihui/Data-Structure-and-Algrithms
fa3a455f64878e42d033c1fd8d612f108c71fb72
[ "Apache-2.0" ]
1
2021-08-13T10:55:33.000Z
2021-08-13T10:55:33.000Z
17_greedy/greedy_xrh.py
Xinrihui/Data-Structure-and-Algrithms
fa3a455f64878e42d033c1fd8d612f108c71fb72
[ "Apache-2.0" ]
null
null
null
17_greedy/greedy_xrh.py
Xinrihui/Data-Structure-and-Algrithms
fa3a455f64878e42d033c1fd8d612f108c71fb72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- from numpy import * import heapq if __name__ == '__main__': sol = solutions() childs=[3,4,5,6,7,8] # 0-5 sugers=[1,2,3,4,5] # # print(sol.childs_with_sugers(childs,sugers)) regions=[ [2,6],[1,4],[3,6],[3,7],[6,8],[2,4],[3,5] ] L=8 # pr...
24.407643
110
0.541145
568ceb9fd880eaa5535d316f733c89845e58fd38
1,380
py
Python
demo.py
xyukiono/job-runner
6ad6d20f2133014edd30877886c750f791b184e6
[ "MIT" ]
1
2018-12-29T23:10:14.000Z
2018-12-29T23:10:14.000Z
demo.py
xyukiono/job-runner
6ad6d20f2133014edd30877886c750f791b184e6
[ "MIT" ]
null
null
null
demo.py
xyukiono/job-runner
6ad6d20f2133014edd30877886c750f791b184e6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import tensorflow as tf import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--sleep_time', type=int, default=10, ...
37.297297
92
0.63913
568d0d73f54715220b3b03b1ea221432edad13fc
2,826
py
Python
examples/example_plugin/example_plugin/urls.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
examples/example_plugin/example_plugin/urls.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
examples/example_plugin/example_plugin/urls.py
susanhooks/nautobot
bc3ef5958f0d5decb0be763342c790f26ff1e20e
[ "Apache-2.0" ]
null
null
null
from django.templatetags.static import static from django.urls import path from django.views.generic import RedirectView from nautobot.extras.views import ObjectChangeLogView from example_plugin import views from example_plugin.models import AnotherExampleModel, ExampleModel app_name = "example_plugin" urlpatterns...
33.247059
107
0.662067
568d275a68f3cc1c3b0799fc4d3ca663242d593a
14,205
py
Python
dl_l8s2_uv/satreaders/l8image.py
csaybar/DL-L8S2-UV
2063648016c40070a7750e313c3d4c9af83da344
[ "MIT" ]
13
2021-04-29T10:26:25.000Z
2022-03-18T14:06:35.000Z
dl_l8s2_uv/satreaders/l8image.py
csaybar/DL-L8S2-UV
2063648016c40070a7750e313c3d4c9af83da344
[ "MIT" ]
1
2022-02-20T23:02:45.000Z
2022-02-20T23:02:48.000Z
dl_l8s2_uv/satreaders/l8image.py
csaybar/DL-L8S2-UV
2063648016c40070a7750e313c3d4c9af83da344
[ "MIT" ]
4
2021-03-11T12:08:55.000Z
2022-01-13T10:24:07.000Z
""" Classes and functions for reading L8 images and manually annotated cloud masks from the Biome and 38-Cloud cloud cover dataset. https://landsat.usgs.gov/landsat-8-cloud-cover-assessment-validation-data """ import os from datetime import datetime from datetime import timezone import numpy as np import rasterio im...
35.248139
150
0.595776
568d758e4427864cb6615d9f0127424a9dd4adba
2,913
py
Python
otcextensions/tests/unit/sdk/waf/v1/test_domain.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/tests/unit/sdk/waf/v1/test_domain.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/tests/unit/sdk/waf/v1/test_domain.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
31.663043
75
0.634398
568f4bcadeb671f4355ac7ca41cca3e6ecd2cdaa
1,422
py
Python
editor/editor.py
LordKBX/EbookCollection
3e6ba33fb012b1dbb371704094b02cece66a7e80
[ "MIT" ]
1
2021-06-03T01:44:50.000Z
2021-06-03T01:44:50.000Z
editor/editor.py
LordKBX/eBookCollection
3e6ba33fb012b1dbb371704094b02cece66a7e80
[ "MIT" ]
null
null
null
editor/editor.py
LordKBX/eBookCollection
3e6ba33fb012b1dbb371704094b02cece66a7e80
[ "MIT" ]
null
null
null
import os import sys if os.name == 'nt': import ctypes import PyQt5.QtGui import PyQt5.QtCore from PyQt5.uic import * from window import * sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from common.dialog import * from common.archive import * from common import lang if __name__ == ...
26.333333
143
0.702532
568fbabab11c92333a7f2b9aac0fe6461e379248
449
py
Python
Intensivo-Python/Cap-7/Exer-Cap-7.10.py
RodrigoTAbreu/Python-3
9bf0578c1ed52283c8d8516a9052557bde038947
[ "MIT" ]
null
null
null
Intensivo-Python/Cap-7/Exer-Cap-7.10.py
RodrigoTAbreu/Python-3
9bf0578c1ed52283c8d8516a9052557bde038947
[ "MIT" ]
null
null
null
Intensivo-Python/Cap-7/Exer-Cap-7.10.py
RodrigoTAbreu/Python-3
9bf0578c1ed52283c8d8516a9052557bde038947
[ "MIT" ]
null
null
null
local = {} incluir = True while incluir: nome = input('qual seu nome? :') local_escolhido = input('Qual local de suas prximas frias? :') local[nome] = local_escolhido repetir = input('Gostaria de incluir outro na enquete?(Yes/No):') if repetir == 'no': incluir = False print('Resultados da ...
29.933333
72
0.665924
56900f04891de706ab7961ebf26ed362c2f1de17
5,270
py
Python
dagshub/fastai/logger.py
gagan3012/client
6533c48b3bb7649d7215abef37cbefe45cfd9e60
[ "MIT" ]
37
2019-11-12T13:49:02.000Z
2022-03-15T06:59:56.000Z
dagshub/fastai/logger.py
gagan3012/client
6533c48b3bb7649d7215abef37cbefe45cfd9e60
[ "MIT" ]
59
2019-11-13T15:16:16.000Z
2022-03-14T15:01:26.000Z
dagshub/fastai/logger.py
gagan3012/client
6533c48b3bb7649d7215abef37cbefe45cfd9e60
[ "MIT" ]
7
2020-05-09T09:32:05.000Z
2021-11-24T16:02:28.000Z
from fastai.learner import Learner, Recorder from fastcore.basics import * from fastai.callback.core import Callback from fastai.callback.hook import total_params from fastai.torch_core import rank_distrib, to_detach from ..logger import DAGsHubLogger as LoggerImpl
42.845528
104
0.629412
5690ca21451ba1ed85ff18dc715fba309b6e6018
9,359
py
Python
src/python/generators/workflows.py
ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL
4611896ea1bb50df50120752712e8d4b32a6d023
[ "MIT" ]
null
null
null
src/python/generators/workflows.py
ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL
4611896ea1bb50df50120752712e8d4b32a6d023
[ "MIT" ]
null
null
null
src/python/generators/workflows.py
ncsa/NCSA-Genomics_MGC_GenomeGPS_CromwelWDL
4611896ea1bb50df50120752712e8d4b32a6d023
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from .tasks import * import logging from util.log import ProjectLogger """ Exit code Rules: 1. Exit codes in this module are only given when an error has occurred, so they will all start with 'E.' 2. The letters 'wfg.' because they are coming from the workflow generator component of...
38.673554
120
0.596004
5691317d3c567d014aec439954667396b59f6a2b
735
py
Python
src/my_pytube/__init__.py
mjmartinson/intravideo_search
7c123f515d0e9fb0934cae5894088a0dabcb166f
[ "MIT" ]
null
null
null
src/my_pytube/__init__.py
mjmartinson/intravideo_search
7c123f515d0e9fb0934cae5894088a0dabcb166f
[ "MIT" ]
null
null
null
src/my_pytube/__init__.py
mjmartinson/intravideo_search
7c123f515d0e9fb0934cae5894088a0dabcb166f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa # noreorder """ Pytube: a very serious Python library for downloading YouTube Videos. """ __title__ = 'my_pytube' __version__ = '9.5.2' __author__ = 'Nick Ficano' __license__ = 'MIT License' __copyright__ = 'Copyright 2019 Nick Ficano' #import logging #import query #import stream...
22.96875
69
0.786395
569169ad848535e2faa15e35b1462c29898e6bd8
168
py
Python
examples/loopyfunction.py
j00st/larry
9ab8b28a4870b78fa91d2989971e7334e8433cbf
[ "MIT" ]
null
null
null
examples/loopyfunction.py
j00st/larry
9ab8b28a4870b78fa91d2989971e7334e8433cbf
[ "MIT" ]
null
null
null
examples/loopyfunction.py
j00st/larry
9ab8b28a4870b78fa91d2989971e7334e8433cbf
[ "MIT" ]
null
null
null
print(sommig(3)) print(sommig(8)) print(sommig(17)) print(sommig(33))
15.272727
19
0.565476
5691e5ff706c017320c4749aff2f6cf828aed0f2
10,564
py
Python
nodes/Controller.py
jimboca/udi-poly-FlumeWater
8e2071e1adb3e1d7ca53a40d63b76bb70059bb67
[ "MIT" ]
null
null
null
nodes/Controller.py
jimboca/udi-poly-FlumeWater
8e2071e1adb3e1d7ca53a40d63b76bb70059bb67
[ "MIT" ]
6
2020-10-09T15:40:43.000Z
2021-01-03T19:24:57.000Z
nodes/Controller.py
jimboca/udi-poly-FlumeWater
8e2071e1adb3e1d7ca53a40d63b76bb70059bb67
[ "MIT" ]
null
null
null
""" Get the polyinterface objects we need. Currently Polyglot Cloud uses a different Python module which doesn't have the new LOG_HANDLER functionality """ try: from polyinterface import Controller,LOG_HANDLER,LOGGER except ImportError: from pgc_interface import Controller,LOGGER import logging from requests...
38.554745
168
0.605358
569266cad93419bd023cb20e34f11ff9f314e035
37
py
Python
unittesting/__init__.py
SpaceAppsXploration/semantic-data-chronos
f7908f50892781154d623f46303812e88fdecb57
[ "Apache-2.0" ]
1
2017-06-15T17:51:19.000Z
2017-06-15T17:51:19.000Z
unittesting/__init__.py
SpaceAppsXploration/semantic-data-chronos
f7908f50892781154d623f46303812e88fdecb57
[ "Apache-2.0" ]
null
null
null
unittesting/__init__.py
SpaceAppsXploration/semantic-data-chronos
f7908f50892781154d623f46303812e88fdecb57
[ "Apache-2.0" ]
null
null
null
__author__ = 'lorenzo@pramantha.net'
18.5
36
0.783784
5692dd883f2ba2d87e1bd456f614859d23131b8e
2,094
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/Airfoil_Panel_Method/panel_geometry.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/Airfoil_Panel_Method/panel_geometry.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/Airfoil_Panel_Method/panel_geometry.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Aerodynamics-Airfoil_Panel_Method # panel_geometry.py # Created: Mar 2021, M. Clarke # --------------------------------------- #------------------------------- # Imports # ---------------------------------------------------------------------- import SUAVE from SUAVE.Core import Units import num...
37.392857
83
0.406877
5692fea28a85fc806a3d1359539ceccbca25abb2
3,086
py
Python
pdb_multimutate.py
LilySnow/PDB_related
07eec63732ef8958e27a6436d7f625bb5da9c8f6
[ "MIT" ]
null
null
null
pdb_multimutate.py
LilySnow/PDB_related
07eec63732ef8958e27a6436d7f625bb5da9c8f6
[ "MIT" ]
null
null
null
pdb_multimutate.py
LilySnow/PDB_related
07eec63732ef8958e27a6436d7f625bb5da9c8f6
[ "MIT" ]
null
null
null
#!/usr/bin/python """ (dummy-)Mutates multiple residues on a PDB-formatted structure. HADDOCK will then reconstruct the residue according to its topology. Usage: python pdb_multimutate.py pdbFL <mutation list file> The format of mutation list: chain resi resn_wt resn_mut Example: python pdb_multimuta...
29.113208
112
0.60175
56946248a8d53bc23992cfb5128bfd8d7aded770
2,814
py
Python
gears/usables.py
fmunoz-geo/gearhead-caramel
315835481d543420826439245be01460fe6dd81b
[ "Apache-2.0" ]
2
2020-05-30T07:52:27.000Z
2021-02-18T10:55:30.000Z
gears/usables.py
fmunoz-geo/gearhead-caramel
315835481d543420826439245be01460fe6dd81b
[ "Apache-2.0" ]
56
2020-05-30T09:03:48.000Z
2022-03-31T12:06:49.000Z
gears/usables.py
CartoonFan/gearhead-caramel
61995f382923695176ab7a65253f42e849e0c4d7
[ "Apache-2.0" ]
null
null
null
from pbge import Singleton from . import geffects, stats, materials, aitargeters, enchantments import pbge
40.782609
237
0.637171
56960d66f7d4e91cd7177d74b8b5d014ec97d10d
634
py
Python
setup.py
AjayMT/emitter
8b8c1aaab39ca858a59ad45a36f22f2737a0d46a
[ "MIT" ]
1
2021-01-04T05:29:49.000Z
2021-01-04T05:29:49.000Z
setup.py
AjayMT/emitter
8b8c1aaab39ca858a59ad45a36f22f2737a0d46a
[ "MIT" ]
null
null
null
setup.py
AjayMT/emitter
8b8c1aaab39ca858a59ad45a36f22f2737a0d46a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup( name='emitter', version='0.0.7', description='simple event emitter', author='Ajay MT', author_email='ajaymt@icloud.com', url='http://github.com/ajaymt/emitter', download_url='https://github.com/AjayMT/emitter/tarball/v0.0.7', ...
27.565217
68
0.632492
5697543911acf8f5ff9fcad51bfbbe032aa5d07b
358
py
Python
preprocessing/extract_hashtags.py
acvander/kaggle_real_or_not
737d949b1f8446e734ed5113b84b5b199a7aee3c
[ "MIT" ]
null
null
null
preprocessing/extract_hashtags.py
acvander/kaggle_real_or_not
737d949b1f8446e734ed5113b84b5b199a7aee3c
[ "MIT" ]
10
2020-02-11T19:07:36.000Z
2022-02-09T23:35:13.000Z
preprocessing/extract_hashtags.py
acvander/kaggle_real_or_not
737d949b1f8446e734ed5113b84b5b199a7aee3c
[ "MIT" ]
null
null
null
import re import pandas as pd
21.058824
55
0.614525
56978a1f08405d1e9c9e366fa78cdc804de04d55
1,472
py
Python
app/app.py
escofresco/makeschool_fsp2_realtweets
a1df7c54e5ef3d5a91282141389200248b40f695
[ "MIT" ]
null
null
null
app/app.py
escofresco/makeschool_fsp2_realtweets
a1df7c54e5ef3d5a91282141389200248b40f695
[ "MIT" ]
9
2019-11-17T22:33:15.000Z
2021-06-02T00:37:50.000Z
app/app.py
escofresco/makeschool_fsp2_realtweets
a1df7c54e5ef3d5a91282141389200248b40f695
[ "MIT" ]
null
null
null
import marshal from multiprocessing import Condition, Process, Queue, Pipe import os from threading import Timer from types import FunctionType import pickle from celery import Celery from flask import Flask, url_for from grams.grams import Histogram from grams.markov import MC import time flask_app = make_app() ...
23.365079
73
0.623641
5697cd974f29d6e18eee5667af6ba721d9b34b38
159
py
Python
CursoemVideo/ex006.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
CursoemVideo/ex006.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
CursoemVideo/ex006.py
arthxvr/coding--python
1e91707be6cb8fef816dad0c1a65f2cc3327357e
[ "MIT" ]
null
null
null
numero = int(input('Nmero: ')) dobro = numero*2 triplo = numero*3 raiz = numero**(1/2) print(f'Dobro: {dobro}, Triplo: {triplo}, Raiz quadrada: {raiz:.2f}')
22.714286
69
0.647799
56988852837d1d2c29a84262111b1b1a8eecc58e
36,573
py
Python
imgMS/MSData.py
nikadilli/imgMS
297493ec38cfbdc825596b50a5643290c251c976
[ "MIT" ]
null
null
null
imgMS/MSData.py
nikadilli/imgMS
297493ec38cfbdc825596b50a5643290c251c976
[ "MIT" ]
1
2022-01-18T20:04:49.000Z
2022-01-18T20:04:49.000Z
imgMS/MSData.py
nikadilli/imgMS
297493ec38cfbdc825596b50a5643290c251c976
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable import numpy as np import pandas as pd import warnings from decimal import Decimal import datetime import logging import itertools from imgMS.side_functions import * from imgMS.MSEval import *
35.268081
160
0.566265
56991df1ec30f4cfef7d03f0e4e2cef7ae44c2f5
2,810
py
Python
tfkit/model/once/dataloader.py
voidful/TFk
5ba46a5ef12bdbbd0215a2eadb036b443c382f3f
[ "Apache-2.0" ]
null
null
null
tfkit/model/once/dataloader.py
voidful/TFk
5ba46a5ef12bdbbd0215a2eadb036b443c382f3f
[ "Apache-2.0" ]
null
null
null
tfkit/model/once/dataloader.py
voidful/TFk
5ba46a5ef12bdbbd0215a2eadb036b443c382f3f
[ "Apache-2.0" ]
null
null
null
from tfkit.utility import tok from tfkit.utility.dataloader import get_gen_data_from_file get_data_from_file = get_gen_data_from_file
46.065574
108
0.670107
569a457d8dd99941191d9661b2fbcf1d45459de3
4,509
py
Python
river/optim/base.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/optim/base.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/optim/base.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import abc import numbers from typing import Union import numpy as np from river import base, optim, utils VectorLike = Union[utils.VectorDict, np.ndarray] __all__ = ["Initializer", "Scheduler", "Optimizer", "Loss"]
23.731579
128
0.569528
569bc2e43e1f5efe9eaf7ef0f6a351c5f8c190ed
712
py
Python
scripts/multiplexer/tester/client.py
j0lama/powder-demo
f5e0a39bcf2ae53ee14eface787706f9d0cfe185
[ "MIT" ]
14
2022-02-13T12:22:19.000Z
2022-03-01T02:42:57.000Z
scripts/multiplexer/tester/client.py
j0lama/powder-demo
f5e0a39bcf2ae53ee14eface787706f9d0cfe185
[ "MIT" ]
null
null
null
scripts/multiplexer/tester/client.py
j0lama/powder-demo
f5e0a39bcf2ae53ee14eface787706f9d0cfe185
[ "MIT" ]
2
2022-02-15T12:10:35.000Z
2022-03-01T12:04:14.000Z
import socket import time multiplexer = ('192.168.56.1', 2154) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for i in range(5): teid = 1 buf = assembleMSG(teid) print('Sending TEID:', teid) sock.sendto(buf, multiplexer) buf, address = sock.recvfrom(1024) print('Received TEID:', getTEID(buf)) time.sl...
21.575758
80
0.671348
569f8079d548bf4d08ebe4449569ea28cde1fcb4
5,434
py
Python
haros_plugin_pbt_gen/selectors.py
git-afsantos/haros-plugin-pbt
388c990117f357fa2079be48918fd3486c895597
[ "MIT" ]
null
null
null
haros_plugin_pbt_gen/selectors.py
git-afsantos/haros-plugin-pbt
388c990117f357fa2079be48918fd3486c895597
[ "MIT" ]
6
2019-10-23T08:13:32.000Z
2020-02-11T18:58:26.000Z
haros_plugin_pbt_gen/selectors.py
git-afsantos/haros-plugin-pbt
388c990117f357fa2079be48918fd3486c895597
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # SPDX-License-Identifier: MIT # Copyright 2019 Andr Santos ############################################################################### # Imports ############################################################################### from builtins import map from builtins import object from buil...
29.058824
79
0.552079
56a1a8bbc3e80d69eb6046c67b05426910a52c18
2,246
py
Python
keras-to-tensorflowjs/keras-to-tensorflowjs.py
mristin/mediti-experimental
8160851911cc347bb53e418fef6604e6433cb0f7
[ "MIT" ]
null
null
null
keras-to-tensorflowjs/keras-to-tensorflowjs.py
mristin/mediti-experimental
8160851911cc347bb53e418fef6604e6433cb0f7
[ "MIT" ]
4
2021-06-08T20:32:12.000Z
2022-03-12T00:03:46.000Z
keras-to-tensorflowjs/keras-to-tensorflowjs.py
mristin/mediti-experimental
8160851911cc347bb53e418fef6604e6433cb0f7
[ "MIT" ]
1
2019-11-01T09:25:33.000Z
2019-11-01T09:25:33.000Z
#!/usr/bin/env python3 """Quantize and convert a keras model to tensorflowjs model.""" import argparse import pathlib import tempfile import numpy as np import tensorflow as tf import tensorflowjs as tfjs def main() -> None: """Execute the main routine.""" ## # Parse command-line arguments ## ...
25.522727
76
0.642476
56a4c4a9da8e522b22406ce899d916afef096ab3
427
py
Python
apps/blog/template.py
Bean-jun/PersonBlogSystemFlask
7935dfa8e8f1a385a296267045f6f26e03fd6b18
[ "MIT" ]
null
null
null
apps/blog/template.py
Bean-jun/PersonBlogSystemFlask
7935dfa8e8f1a385a296267045f6f26e03fd6b18
[ "MIT" ]
null
null
null
apps/blog/template.py
Bean-jun/PersonBlogSystemFlask
7935dfa8e8f1a385a296267045f6f26e03fd6b18
[ "MIT" ]
null
null
null
from flask import request from apps.blog import home_blueprint from apps.models import Category # templaterequest.user
23.722222
56
0.779859
56a4f757d1be8c3a3d454319f2011773b58bc1b7
1,359
py
Python
tests/application/test_factory.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
1
2021-10-06T13:48:36.000Z
2021-10-06T13:48:36.000Z
tests/application/test_factory.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
116
2018-11-02T17:20:47.000Z
2022-02-09T11:06:22.000Z
tests/application/test_factory.py
racedisparityaudit/rd_cms
a12f0e3f5461cc41eed0077ed02e11efafc5dd76
[ "MIT" ]
2
2018-11-09T16:47:35.000Z
2020-04-09T13:06:48.000Z
from flask import render_template_string from werkzeug.test import EnvironBuilder, run_wsgi_app
39.970588
91
0.674761
3b058787651b39a79713b6f19547fd4e93c5ed87
8,527
py
Python
funcs.py
blookot/rsa2elk
81e5f15378bf2f7e6e1d22dc5b5814d8f3e16852
[ "Apache-2.0" ]
18
2020-01-03T10:11:24.000Z
2021-12-01T11:39:35.000Z
funcs.py
blookot/rsa2elk
81e5f15378bf2f7e6e1d22dc5b5814d8f3e16852
[ "Apache-2.0" ]
3
2020-03-12T11:45:02.000Z
2021-12-10T14:42:53.000Z
funcs.py
blookot/rsa2elk
81e5f15378bf2f7e6e1d22dc5b5814d8f3e16852
[ "Apache-2.0" ]
7
2020-09-10T10:54:04.000Z
2022-03-03T05:22:33.000Z
#!/usr/bin/env python ######################################################################## # RSA2ELK, by Vincent Maury # Converts Netwitness log parser configuration to Logstash configuration # see https://github.com/blookot/rsa2elk ######################################################################## import c...
42.849246
188
0.519409
3b067d3eda9468af53248fe66d87c339cf5d07b5
4,617
py
Python
commons/Helpers/Helper_zip.py
swxs/home
652dab7c15ae9c2221c99405ce827be6ccaaccbb
[ "Apache-2.0" ]
1
2021-09-23T10:28:34.000Z
2021-09-23T10:28:34.000Z
commons/Helpers/Helper_zip.py
swxs/home
652dab7c15ae9c2221c99405ce827be6ccaaccbb
[ "Apache-2.0" ]
null
null
null
commons/Helpers/Helper_zip.py
swxs/home
652dab7c15ae9c2221c99405ce827be6ccaaccbb
[ "Apache-2.0" ]
1
2021-09-23T10:28:36.000Z
2021-09-23T10:28:36.000Z
# -*- coding: utf-8 -*- import os import shutil import io import zipfile from commons.Utils import path_utils
35.244275
118
0.583496
3b076914bec1ee4c6a543d6b4237e9f6e12a92a5
4,807
py
Python
backend/env_collection/env_creator.py
MU-Software/dodoco
c81d3a31b8024a734097fd8ac395747d5a721bc8
[ "MIT" ]
6
2021-08-20T01:35:01.000Z
2021-12-22T18:23:17.000Z
env_collection/env_creator.py
MU-Software/frost
26e8715d9971af495a39ed47b299ed32a993c0e8
[ "MIT" ]
null
null
null
env_collection/env_creator.py
MU-Software/frost
26e8715d9971af495a39ed47b299ed32a993c0e8
[ "MIT" ]
null
null
null
import json import pathlib import traceback import typing if __name__ == '__main__': import os import sys if len(sys.argv) > 1: target_file = pathlib.Path(sys.argv[1]).absolute() if not target_file.exists(): print(target_file.as_posix()) # Ignore just now. We'll r...
38.150794
116
0.574787
3b0964e54ac0934e525bad71399782f8aff00bb9
377
py
Python
alshamelah_api/apps/authors/models.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
alshamelah_api/apps/authors/models.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
alshamelah_api/apps/authors/models.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from ..core.models import BaseModel
23.5625
93
0.702918
3b0c522a6d81d86f5543a30a2c23e9d2ce842867
823
py
Python
utils/user_funcs.py
Naughtsee/qtbot
72cfda038b8e766d53f4ada3344861154af81d74
[ "MIT" ]
8
2017-10-08T21:50:18.000Z
2021-11-01T14:17:32.000Z
utils/user_funcs.py
Naughtsee/qtbot
72cfda038b8e766d53f4ada3344861154af81d74
[ "MIT" ]
6
2017-08-10T15:20:10.000Z
2020-09-23T13:40:56.000Z
utils/user_funcs.py
Naughtsee/qtbot
72cfda038b8e766d53f4ada3344861154af81d74
[ "MIT" ]
9
2017-09-23T04:52:59.000Z
2020-09-21T17:24:27.000Z
import asyncpg
37.409091
86
0.636695
3b0cd93cd118d21c561e796304dbb91e7b00181a
26,895
py
Python
contentcuration/contentcuration/utils/export_writer.py
neo640228/studio
96221a4c96b7ba4db90500b5d11c7e5d2a145ac4
[ "MIT" ]
null
null
null
contentcuration/contentcuration/utils/export_writer.py
neo640228/studio
96221a4c96b7ba4db90500b5d11c7e5d2a145ac4
[ "MIT" ]
null
null
null
contentcuration/contentcuration/utils/export_writer.py
neo640228/studio
96221a4c96b7ba4db90500b5d11c7e5d2a145ac4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import csv import logging as logmodule import math import os import sys import tempfile from collections import OrderedDict # On OS X, the default backend will fail if you are not using a Framework build of Python, # e.g. in a virtualenv. To avoid having to set MPLBACKEND each time we use Studi...
44.454545
152
0.630712
3b0d185d0b58b526b1e69be5cc09cbb9567da4d9
9,795
py
Python
ground.py
despargy/Shade
8ed54c80154448c2cdc29623c2798a01d594995e
[ "MIT" ]
3
2019-12-28T09:04:09.000Z
2020-04-19T15:04:49.000Z
ground.py
despargy/Shade
8ed54c80154448c2cdc29623c2798a01d594995e
[ "MIT" ]
null
null
null
ground.py
despargy/Shade
8ed54c80154448c2cdc29623c2798a01d594995e
[ "MIT" ]
1
2022-03-25T14:10:45.000Z
2022-03-25T14:10:45.000Z
#!/usr/bin/python3 import socket , requests import json import threading import sys , time, os import logger if __name__ == "__main__": if len(sys.argv) != 2: print(""" [+] Run ground program with one argument. [+] The argument indicates the ELinkManager IP [+] ...
33.775862
132
0.525881
3b0e3a300cfd5fa0db71dc9dbdded0e8a717dc33
168
py
Python
ephys_anonymizer/__init__.py
alexrockhill/video_anonymize
e3d672f46f48a21e2320c9815f9769902bbe943d
[ "BSD-3-Clause" ]
null
null
null
ephys_anonymizer/__init__.py
alexrockhill/video_anonymize
e3d672f46f48a21e2320c9815f9769902bbe943d
[ "BSD-3-Clause" ]
null
null
null
ephys_anonymizer/__init__.py
alexrockhill/video_anonymize
e3d672f46f48a21e2320c9815f9769902bbe943d
[ "BSD-3-Clause" ]
null
null
null
"""A anonymization toolbox for video and neuroimaging files.""" __version__ = '0.1.5' from ephys_anonymizer.anonymizer import video_anonymize, raw_anonymize # noqa
24
78
0.779762
3b134e46223f795aa75dc18410f1480f79f7a4e3
313
py
Python
266/Palindrome Permutation.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
266/Palindrome Permutation.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
266/Palindrome Permutation.py
cccccccccccccc/Myleetcode
fb3fa6df7c77feb2d252feea7f3507569e057c70
[ "Apache-2.0" ]
null
null
null
A = Solution() s = "aab" print(A.canPermutePalindrome(s))
24.076923
51
0.520767
3b13ffb0d8a69d11829542e3e7415101aea54667
394
py
Python
2020/2/2-1.py
jonathonball/adventofcode
041f3bb2b1ebe3ddcb21341bf52f29512e17a326
[ "MIT" ]
1
2020-01-17T18:59:59.000Z
2020-01-17T18:59:59.000Z
2020/2/2-1.py
jonathonball/adventofcode
041f3bb2b1ebe3ddcb21341bf52f29512e17a326
[ "MIT" ]
null
null
null
2020/2/2-1.py
jonathonball/adventofcode
041f3bb2b1ebe3ddcb21341bf52f29512e17a326
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys total_valid = 0 for line in sys.stdin: raw = line.strip() rules, password = raw.split(":") ranges, character = rules.split(" ") min_range, max_range = [ int(x) for x in ranges.split("-") ] count = password.count(character) if count >= min_r...
23.176471
64
0.598985
3b18ff981e432b3e794cc3d0ed457168d3e17015
5,072
py
Python
Voice Analysis/Python/SVM/AudioSignal.py
lokesh9460/Realtime-Interview-Emotion-Analysis
6beb67607494289cd4e6c2e5a63a292d7716a2fb
[ "MIT" ]
574
2019-03-07T15:42:29.000Z
2022-03-31T13:11:11.000Z
01-Audio/Python/SVM/AudioSignal.py
AnandaRauf/Multimodal-Emotion-Recognition
dde3cc4c985839d719c1ea2ac4429a07971dad1d
[ "Apache-2.0" ]
18
2019-08-11T14:23:11.000Z
2021-12-12T23:36:00.000Z
01-Audio/Python/SVM/AudioSignal.py
AnandaRauf/Multimodal-Emotion-Recognition
dde3cc4c985839d719c1ea2ac4429a07971dad1d
[ "Apache-2.0" ]
253
2019-03-07T20:07:00.000Z
2022-03-16T08:22:12.000Z
import os import numpy from pydub import AudioSegment from scipy.fftpack import fft
31.308642
125
0.597792
3b198c8ffc8c98c1bd4d06f355d88dcb2198c5be
798
py
Python
Extended Programming Challenges Python/Problem Collatza/collatz.py
szachovy/School-and-Training
70f07c0d077da7ba1920d28d881fff7ddcbc37d9
[ "MIT" ]
null
null
null
Extended Programming Challenges Python/Problem Collatza/collatz.py
szachovy/School-and-Training
70f07c0d077da7ba1920d28d881fff7ddcbc37d9
[ "MIT" ]
null
null
null
Extended Programming Challenges Python/Problem Collatza/collatz.py
szachovy/School-and-Training
70f07c0d077da7ba1920d28d881fff7ddcbc37d9
[ "MIT" ]
null
null
null
from enum import Enum, unique import mywarnings if __name__ == '__main__': result = calculate(mywarnings.numInput(userInterface())) print('Loop has gone ' + str(result) + ' times.') mywarnings.getOutFile(str(result)) with open('storage.csv') as f: f.read()
21
67
0.533835
3b19c9ef1d3804112645fa922b8cea6f5b053fe9
1,348
py
Python
bricks/ev3dev/modules/pybricks/tools.py
ZPhilo/pybricks-micropython
bf3072b6f7dd87b60e50d7c2130ca3c393a5709f
[ "MIT" ]
115
2020-06-15T16:43:14.000Z
2022-03-21T21:11:57.000Z
bricks/ev3dev/modules/pybricks/tools.py
ZPhilo/pybricks-micropython
bf3072b6f7dd87b60e50d7c2130ca3c393a5709f
[ "MIT" ]
83
2020-06-17T17:19:29.000Z
2022-03-08T18:50:35.000Z
bricks/ev3dev/modules/pybricks/tools.py
BertLindeman/pybricks-micropython
8f22a99551100e66ddf08d014d9f442f22b33b4d
[ "MIT" ]
40
2020-06-15T18:36:39.000Z
2022-03-28T13:22:43.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2020 The Pybricks Authors # Expose method and class written in C from _pybricks.tools import wait, StopWatch # Imports for DataLog implementation from utime import localtime, ticks_us
30.636364
103
0.586053
3b1b3509a303522f4c892897a10f7099f344641a
702
py
Python
sentences/sentence21.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
5
2020-03-17T17:04:53.000Z
2020-03-27T12:10:44.000Z
sentences/sentence21.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
null
null
null
sentences/sentence21.py
kelltrill/scifibot
e9dfc55b63a6ff40e9fa268f620ff811c88862a3
[ "MIT" ]
null
null
null
from sentences.base_sentence import base_sentence
41.294118
79
0.623932
3b1b5087162efa88a4e90b903e46bd2d77668963
30,627
py
Python
crane_controllers/external/casadi-3.4.5/test/python/matrix.py
tingelst/crane
e14bca2bd4e2397dce09180029223832aad9b070
[ "MIT" ]
2
2021-03-22T08:50:29.000Z
2021-08-18T03:04:18.000Z
crane_controllers/external/casadi-3.4.5/test/python/matrix.py
tingelst/crane
e14bca2bd4e2397dce09180029223832aad9b070
[ "MIT" ]
null
null
null
crane_controllers/external/casadi-3.4.5/test/python/matrix.py
tingelst/crane
e14bca2bd4e2397dce09180029223832aad9b070
[ "MIT" ]
2
2022-01-14T04:28:41.000Z
2022-01-14T05:29:01.000Z
# # This file is part of CasADi. # # CasADi -- A symbolic framework for dynamic optimization. # Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, # K.U. Leuven. All rights reserved. # Copyright (C) 2011-2014 Greg Horn # # CasADi is free software; you can...
29.420749
167
0.544128
3b1b7b2ce4afa2cb6c8063b2abc37c7b4e64db30
6,015
py
Python
pipeline/nodes/adj_vol.py
HippieAtrophy/NeuroMet2_structural_analysis
193a2ed5d06dc6a57368b892d8defbf0cedbd23d
[ "MIT" ]
null
null
null
pipeline/nodes/adj_vol.py
HippieAtrophy/NeuroMet2_structural_analysis
193a2ed5d06dc6a57368b892d8defbf0cedbd23d
[ "MIT" ]
null
null
null
pipeline/nodes/adj_vol.py
HippieAtrophy/NeuroMet2_structural_analysis
193a2ed5d06dc6a57368b892d8defbf0cedbd23d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ #The following formula is used #Adjusted Volume = Raw Volume - Regression Slope * (TIV - Cohort Mean TIV) #Reference Literature: Voevodskaya et al, 2014: The effects of intracranial volume adjustment approaches on multiple regional MRI volumes in healthy aging and Alzheimer's disease """ i...
34.768786
178
0.648878
3b1dbeb9bcf953c212b12db2ece72efebf0c94f4
4,663
py
Python
app.py
loftysky/slackwhereis
848c452f3073bdfdf66d3e782bd288f3e0d4ef57
[ "BSD-3-Clause" ]
null
null
null
app.py
loftysky/slackwhereis
848c452f3073bdfdf66d3e782bd288f3e0d4ef57
[ "BSD-3-Clause" ]
null
null
null
app.py
loftysky/slackwhereis
848c452f3073bdfdf66d3e782bd288f3e0d4ef57
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import httplib2 import os from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Storage from flask import Flask, request, Response, jsonify from slackclient import SlackClient import datetime try: import a...
35.869231
123
0.65816
3b1f60095c5432097d9fb80e7c39a5bb5026b1a0
2,607
py
Python
PyLESA/run.py
andrewlyden/PyLESA
dac052764d6d6f77c8e8c12077520e50ea0ad2f5
[ "MIT" ]
6
2021-09-03T13:25:22.000Z
2022-02-23T10:48:19.000Z
PyLESA/run.py
ElsevierSoftwareX/SOFTX-D-21-00013
dac052764d6d6f77c8e8c12077520e50ea0ad2f5
[ "MIT" ]
1
2021-12-07T00:03:31.000Z
2022-01-10T11:31:50.000Z
PyLESA/run.py
ElsevierSoftwareX/SOFTX-D-21-00013
dac052764d6d6f77c8e8c12077520e50ea0ad2f5
[ "MIT" ]
6
2021-01-11T11:24:26.000Z
2021-12-07T01:03:57.000Z
"""run module runs the models and outputs """ import glob import os import time import read_excel import parametric_analysis import inputs import fixed_order import mpc import outputs # print excel file names in input folder path = os.path.join(os.path.dirname(__file__), "..", "inputs") files = pa...
27.442105
87
0.673955
3b1fa76083519e9576fd893b3ec3da51308b56e5
2,644
py
Python
test_auth_app/backend/db_set_users.py
MalyshevValery/testweb
fec105a62b0ef4488e523e1bf3a9bde16e82bffe
[ "MIT" ]
null
null
null
test_auth_app/backend/db_set_users.py
MalyshevValery/testweb
fec105a62b0ef4488e523e1bf3a9bde16e82bffe
[ "MIT" ]
null
null
null
test_auth_app/backend/db_set_users.py
MalyshevValery/testweb
fec105a62b0ef4488e523e1bf3a9bde16e82bffe
[ "MIT" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import warnings warnings.simplefilter(action='ignore', category=FutureWarning) __author__ = "eduard.snezhko@gmail.com" from test_auth_app.backend import test_auth_app_db from test_auth_app.backend.db_models import User, Role, Application from test_auth_app.backend....
34.789474
167
0.708396
3b1fcd972c8f1491430fb88c3c6d124ce64ddb73
2,766
py
Python
Reducer/__main__.py
Dahk/MapReduce
a3dda0c377553fad93d071df6a18ba1e1b6dc9cc
[ "MIT" ]
null
null
null
Reducer/__main__.py
Dahk/MapReduce
a3dda0c377553fad93d071df6a18ba1e1b6dc9cc
[ "MIT" ]
1
2019-04-22T14:43:20.000Z
2019-04-22T14:43:20.000Z
Reducer/__main__.py
Dahk/MapReduce
a3dda0c377553fad93d071df6a18ba1e1b6dc9cc
[ "MIT" ]
null
null
null
import sys from cos_backend import COSBackend import json import re import pika if __name__ == "__main__": main(sys.argv[1])
43.21875
135
0.642805
3b212170dc8dc576e182a858e68aeef56e1e1acd
1,232
py
Python
activecollab_digger/views.py
kingsdigitallab/django-activecollab-digger
508c31eb4a3fe9887aa9d3a86ea160f3bc1e60b0
[ "MIT" ]
null
null
null
activecollab_digger/views.py
kingsdigitallab/django-activecollab-digger
508c31eb4a3fe9887aa9d3a86ea160f3bc1e60b0
[ "MIT" ]
null
null
null
activecollab_digger/views.py
kingsdigitallab/django-activecollab-digger
508c31eb4a3fe9887aa9d3a86ea160f3bc1e60b0
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth.mixins import LoginRequiredMixin from django.http import JsonResponse from django.views.generic.base import TemplateView from .activecollab import get_activecollab, post_activecollab
27.377778
77
0.659091
3b215787ac29d0703c2146256192ed09f836a58e
1,753
py
Python
evaluation.py
BashirSbaiti/CKD-Net-SF2020
0d4276fce5d77c147b8abf5ccb64aa89d0a5d26a
[ "MIT" ]
null
null
null
evaluation.py
BashirSbaiti/CKD-Net-SF2020
0d4276fce5d77c147b8abf5ccb64aa89d0a5d26a
[ "MIT" ]
null
null
null
evaluation.py
BashirSbaiti/CKD-Net-SF2020
0d4276fce5d77c147b8abf5ccb64aa89d0a5d26a
[ "MIT" ]
null
null
null
from tensorflow import keras import numpy as np import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' model = keras.models.load_model("Saved models/2layerNet.h5") x = np.load("data/preprocessedInputs.npy") y = np.load("data/outputs.npy") oosx = np.load("data/testx.npy") oosy = np.load("data/testy.npy") ...
28.274194
139
0.548774
3b216fc0da9bb7163621b1ba77eeb5910fdf8ec1
3,132
py
Python
pathgather/providers.py
tonybaloney/pathgather
67d2d1ea2ccd09b5b445d569d6617380447e313b
[ "0BSD" ]
1
2018-03-19T12:58:07.000Z
2018-03-19T12:58:07.000Z
pathgather/providers.py
tonybaloney/pathgather
67d2d1ea2ccd09b5b445d569d6617380447e313b
[ "0BSD" ]
4
2018-03-13T04:19:11.000Z
2021-06-25T15:39:17.000Z
pathgather/providers.py
tonybaloney/pathgather
67d2d1ea2ccd09b5b445d569d6617380447e313b
[ "0BSD" ]
3
2018-10-16T06:07:48.000Z
2018-10-21T15:28:40.000Z
# -*- coding: utf-8 -*- # Licensed to Anthony Shaw (anthonyshaw@apache.org) 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 "Li...
30.115385
75
0.622925
3b2175cbf600f0cbe87045aa53de5d1e55177e39
3,921
py
Python
iocage/tests/unit_tests/1000_cli_activate_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/tests/unit_tests/1000_cli_activate_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
null
null
null
iocage/tests/unit_tests/1000_cli_activate_test.py
project-fifo/iocage
1b8669bc2119718dbea8f2707a4eb4c92197c0f0
[ "BSD-2-Clause" ]
1
2022-03-06T10:09:18.000Z
2022-03-06T10:09:18.000Z
import mock import pytest from iocage.cli.activate import\ (get_zfs_pools, set_zfs_pool_active_property, set_zfs_pool_comment) def test_set_zfs_pool_active_property_bad_param_zpool_name(): with pytest.raises(ValueError): set_zfs_pool_active_property(None, True) with pytest.raises(ValueError):...
32.404959
106
0.713849
3b23404ad012614ddf55740308271ae89117500e
1,835
py
Python
positionEncoding.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
1
2021-04-08T11:23:46.000Z
2021-04-08T11:23:46.000Z
positionEncoding.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
null
null
null
positionEncoding.py
GehartM/german-text-watermarking
f9765702225e0cfdce868eec816ed6e6fd4ffc63
[ "MIT" ]
null
null
null
from treeNode import TreeNode from collections import defaultdict from treeNodeTravelThrewTreeNodes import TravelThrewTreeNodes # In positionEncoding wird die Zugehrigkeit der Ecodierung zu ihrem Wert festgelegt. # Dieser Wert entspricht der Position des Buchstabens der nchsten Zeile. positionEncoding = defaul...
32.767857
86
0.595095
3b275a2ff20e3730ac6fbbf5f863ef39cb1f2363
1,227
py
Python
revenue/utils/date_utils.py
osnory/BE-Challenge
bd8a3bcfc72624e99a228612a75f092371c1fb29
[ "MIT" ]
null
null
null
revenue/utils/date_utils.py
osnory/BE-Challenge
bd8a3bcfc72624e99a228612a75f092371c1fb29
[ "MIT" ]
null
null
null
revenue/utils/date_utils.py
osnory/BE-Challenge
bd8a3bcfc72624e99a228612a75f092371c1fb29
[ "MIT" ]
null
null
null
import datetime from datetime import datetime as dt API_DATE_FORMAT = "%d/%m/%Y" CSV_DATE_FORMAT = "%d/%m/%y %H:%M" def from_api_string(date: str): """ :param date: in format as comes from api, such as 03/06/2020 :return: datetime object. """ return dt.strptime(date, API_DATE_FORMAT) def from...
22.722222
86
0.640587
3b29c188db2f818925355ab781e7bf18b7f0fea1
933
py
Python
pool.py
Reno-Greenleaf/tomb
6a76f640e523903f32c5fa178295435a24289559
[ "MIT" ]
null
null
null
pool.py
Reno-Greenleaf/tomb
6a76f640e523903f32c5fa178295435a24289559
[ "MIT" ]
null
null
null
pool.py
Reno-Greenleaf/tomb
6a76f640e523903f32c5fa178295435a24289559
[ "MIT" ]
null
null
null
from actor import Actor, Location, Passage, Switch, Ghost from json import load
24.552632
72
0.639871
3b2b8ab41b7b1a07863bd2f0ffde7e6e25d66fc2
13,524
py
Python
mass_mer/models.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
mass_mer/models.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
mass_mer/models.py
georgiawang5332/meatFoodManager
204b5b7aa2a3c5a6c9cc38077a10a72c0c69f140
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import gettext_lazy as _ from django.urls import reverse # Create your models here. # results = Mass_Mer_Person.objects.all() # results = Mass_Mer_Person.objects.create(user=user, title="some time") # Mass_Mer_Person.objects.all() = super(Mass_Mer_PersonManag...
64.094787
125
0.54333
3b2f210471d573b08554a8de2790e7a4843a9bc9
1,072
py
Python
tests/test_equity.py
the-Arki/portfolio-tracker
eed07936876d720d29383d315003a11e9f6a2ee9
[ "MIT" ]
null
null
null
tests/test_equity.py
the-Arki/portfolio-tracker
eed07936876d720d29383d315003a11e9f6a2ee9
[ "MIT" ]
null
null
null
tests/test_equity.py
the-Arki/portfolio-tracker
eed07936876d720d29383d315003a11e9f6a2ee9
[ "MIT" ]
null
null
null
from defer import return_value from src.stock import Equity from src.io_manager import read_json import pytest equity_info = read_json('./tests/equity_info.json') equity = Equity('MSFT')
31.529412
72
0.75653
3b2f5ca9e2ca266e354fa739b0e78d08cf117c90
873
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/data_specification/constants.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/data_specification/constants.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/data_specification/constants.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
""" Constants used by the Data Structure Generator (DSG) and the Spec Executor """ # MAGIC Numbers: # Data spec magic number DSG_MAGIC_NUM = 0x5B7CA17E # Application data magic number APPDATA_MAGIC_NUM = 0xAD130AD6 # Version of the file produced by the DSE DSE_VERSION = 0x00010000 # DSG Arrays and tables sizes: MAX...
19.4
78
0.780069
3b302bae18a10ec14b7a8b3b8cfb72b6ca62106b
771
py
Python
argentum-api/api/tests/data/configs.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
1
2019-10-07T09:47:08.000Z
2019-10-07T09:47:08.000Z
argentum-api/api/tests/data/configs.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
null
null
null
argentum-api/api/tests/data/configs.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
null
null
null
from api.models.config import Config from api.tests.utils.test_objects import TestObjects
32.125
118
0.714656
3b326c8557222e8f4a2ba81651b9ad8cd4e462a5
4,994
py
Python
dql/grammar/common.py
ikonst/dql
e9d3aa22873076dae5ebd02e35318aa996b1e56a
[ "MIT" ]
null
null
null
dql/grammar/common.py
ikonst/dql
e9d3aa22873076dae5ebd02e35318aa996b1e56a
[ "MIT" ]
null
null
null
dql/grammar/common.py
ikonst/dql
e9d3aa22873076dae5ebd02e35318aa996b1e56a
[ "MIT" ]
null
null
null
""" Common use grammars """ from pyparsing import ( Word, upcaseTokens, Optional, Combine, Group, alphas, nums, alphanums, quotedString, Keyword, Suppress, Regex, delimitedList, Forward, oneOf, OneOrMore, ) def upkey(name): """ Shortcut for creating ...
29.550296
86
0.629155
3b3287859719a0000b4633ded460fbeb5c4302d0
11,693
py
Python
src/datasets/mnist.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
6
2020-08-03T03:13:25.000Z
2022-02-11T08:32:10.000Z
src/datasets/mnist.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
1
2020-09-08T16:10:38.000Z
2020-09-08T16:10:38.000Z
src/datasets/mnist.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
2
2020-08-03T21:37:21.000Z
2021-03-26T02:19:17.000Z
import codecs import gzip import numpy as np import os import torch from PIL import Image from torch.utils.data import Dataset from utils import makedir_exist_ok from .utils import download_url, make_branch_classes_to_labels def download(self): if self._check_exists(): return makedir_ex...
45.146718
153
0.605063
3b32fdf75b3467d431db1e7094a2923c61191900
266
py
Python
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/shutnoshut/vlan/shutnoshut.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/shutnoshut/vlan/shutnoshut.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/shutnoshut/vlan/shutnoshut.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
''' implementation for Vlan shut/noshut triggers''' # import python import time # Genie Libs from genie.libs.sdk.libs.utils.mapping import Mapping from genie.libs.sdk.triggers.shutnoshut.shutnoshut import \ TriggerShutNoShut
24.181818
59
0.684211
3b342efe069f5e029ac7c52357383e2a7ac3f9b2
4,088
py
Python
numpy_backend/environment.py
alewis/jax_vumps
600b4e1518a7b54f33d993162c3b73299dad460d
[ "MIT" ]
null
null
null
numpy_backend/environment.py
alewis/jax_vumps
600b4e1518a7b54f33d993162c3b73299dad460d
[ "MIT" ]
null
null
null
numpy_backend/environment.py
alewis/jax_vumps
600b4e1518a7b54f33d993162c3b73299dad460d
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp from scipy.sparse.linalg import LinearOperator, lgmres, gmres import tensornetwork as tn import jax_vumps.numpy_backend.contractions as ct # import jax_vumps.numpy_backend.mps_linalg as mps_linalg def LH_linear_operator(A_L, lR): """ Return, as a LinearOperator, the LH...
27.621622
77
0.563112
3b35b0560293592911b399dcbbc67e0ebbbf2568
3,505
py
Python
FatherSon/HelloWorld2_source_code/Listing_23-11.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
1
2019-01-04T05:47:50.000Z
2019-01-04T05:47:50.000Z
FatherSon/HelloWorld2_source_code/Listing_23-11.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
FatherSon/HelloWorld2_source_code/Listing_23-11.py
axetang/AxePython
3b517fa3123ce2e939680ad1ae14f7e602d446a6
[ "Apache-2.0" ]
null
null
null
# Listing_23-11.py # Copyright Warren & Csrter Sande, 2013 # Released under MIT license http://www.opensource.org/licenses/mit-license.php # Version $version ---------------------------- # Crazy Eights - the main loop with scoring added # Note that this is not a complete program. It needs to be put togethe...
52.313433
131
0.417404
3b35bf097dce90dcfad194835db3744ff6739f05
326
py
Python
mindefuse/strategy/swaszek/agent/agent.py
sinistro14/mindefuse
c7371a81731d0b9a03d3ef18f91c336e4135c17d
[ "MIT" ]
null
null
null
mindefuse/strategy/swaszek/agent/agent.py
sinistro14/mindefuse
c7371a81731d0b9a03d3ef18f91c336e4135c17d
[ "MIT" ]
1
2019-08-22T19:51:12.000Z
2019-08-22T19:51:12.000Z
mindefuse/strategy/swaszek/agent/agent.py
sinistro14/mindefuse
c7371a81731d0b9a03d3ef18f91c336e4135c17d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 from abc import ABC, abstractmethod
21.733333
93
0.656442
3b35e3639f359c0839d9c5b0dadbb0ed194fbd8f
2,225
py
Python
utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
22
2019-01-13T12:56:56.000Z
2020-11-03T01:39:20.000Z
utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
null
null
null
utils.py
yizt/keras-lbl-IvS
3f98b698c56ae40954b4920da167f7c9e32024c8
[ "Apache-2.0" ]
5
2019-04-01T09:19:55.000Z
2020-05-26T14:38:06.000Z
# -*- coding: utf-8 -*- """ File Name utils Description : Author : mick.yi date 2019/1/4 """ import numpy as np def enqueue(np_array, elem): """ :param np_array: :param elem: :return: """ np_array[1:] = np_array[:-1] np_array[0] = ele...
28.164557
102
0.635056
3b36c4ed7d21b51f5c92a0c2c42d4ae3822cf137
4,497
py
Python
Python/klampt/robotcspace.py
bbgw/Klampt
3c022da372c81646ec9f7492fad499740431d38b
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/robotcspace.py
bbgw/Klampt
3c022da372c81646ec9f7492fad499740431d38b
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/robotcspace.py
bbgw/Klampt
3c022da372c81646ec9f7492fad499740431d38b
[ "BSD-3-Clause" ]
null
null
null
import cspace import robotsim import robotcollide from cspaceutils import AdaptiveCSpace
35.976
82
0.632866
3b379680a5b10c88f6be764ca45d84bd090e26f1
1,362
py
Python
backend/widgets/github_discussions.py
MLH-Fellowship/fellow-dashboard
9af58d16abaeaf2c33211321a1eda9b0fe25384e
[ "MIT" ]
1
2021-09-22T03:39:44.000Z
2021-09-22T03:39:44.000Z
backend/widgets/github_discussions.py
MLH-Fellowship/fellow-dashboard
9af58d16abaeaf2c33211321a1eda9b0fe25384e
[ "MIT" ]
14
2021-09-22T03:39:52.000Z
2021-10-04T17:42:23.000Z
backend/widgets/github_discussions.py
MLH-Fellowship/fellow-dashboard
9af58d16abaeaf2c33211321a1eda9b0fe25384e
[ "MIT" ]
1
2021-09-22T03:43:05.000Z
2021-09-22T03:43:05.000Z
from flask_restful import Resource from utils.error_handling import handle_github_request_errors import requests
30.266667
89
0.549192
3b37eb3e98e0b7766509bbea7e78b7476162e7dc
7,378
py
Python
frankenpoem/__init__.py
ruthlee/frankenpoems
823b6c623d9a43ffc9f73270617d5d02df52a823
[ "MIT" ]
3
2020-05-22T00:14:27.000Z
2020-05-22T15:21:34.000Z
frankenpoem/__init__.py
ruthlee/frankenpoems
823b6c623d9a43ffc9f73270617d5d02df52a823
[ "MIT" ]
null
null
null
frankenpoem/__init__.py
ruthlee/frankenpoems
823b6c623d9a43ffc9f73270617d5d02df52a823
[ "MIT" ]
null
null
null
import random import pandas as pd import pronouncing from collections import defaultdict import re import pkg_resources
39.037037
123
0.580239
3b390b33fcbd46bea207077a003fc21fc51b0b4a
25,211
py
Python
sos_trades_core/sos_processes/test/test_architecture/usecase_simple_architecture.py
os-climate/sostrades-core
bcaa9b5e393ffbd0963e75a9315b27caf8b0abd9
[ "Apache-2.0" ]
8
2022-01-10T14:44:28.000Z
2022-03-31T08:57:14.000Z
sos_trades_core/sos_processes/test/test_architecture/usecase_simple_architecture.py
os-climate/sostrades-core
bcaa9b5e393ffbd0963e75a9315b27caf8b0abd9
[ "Apache-2.0" ]
null
null
null
sos_trades_core/sos_processes/test/test_architecture/usecase_simple_architecture.py
os-climate/sostrades-core
bcaa9b5e393ffbd0963e75a9315b27caf8b0abd9
[ "Apache-2.0" ]
1
2022-02-21T14:51:45.000Z
2022-02-21T14:51:45.000Z
''' Copyright 2022 Airbus SAS Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
116.179724
8,845
0.610606
3b3b327c24ac65ddd635bf7387dfb89496761513
2,681
py
Python
tree_math/integration_test.py
cgarciae/tree-math
46214b58d34de71aaa369ac8b632261a3b58bb48
[ "Apache-2.0" ]
108
2021-12-29T01:25:45.000Z
2022-03-29T05:51:05.000Z
tree_math/integration_test.py
cgarciae/tree-math
46214b58d34de71aaa369ac8b632261a3b58bb48
[ "Apache-2.0" ]
6
2021-12-29T18:13:33.000Z
2022-02-15T23:45:32.000Z
tree_math/integration_test.py
cgarciae/tree-math
46214b58d34de71aaa369ac8b632261a3b58bb48
[ "Apache-2.0" ]
3
2021-12-30T00:57:29.000Z
2022-01-08T02:11:32.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
27.639175
74
0.597165
3b3bc432d990ad451477e385dce0ed17ba1791fc
3,103
py
Python
urls.py
audaciouscode/PassiveDataKit-Django
ed1e00c436801b9f49a3e0e6657c2adb6b2ba3d4
[ "Apache-2.0" ]
5
2016-01-26T19:19:44.000Z
2018-12-12T18:04:04.000Z
urls.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
6
2020-02-17T20:16:28.000Z
2021-12-13T21:51:20.000Z
urls.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
4
2020-01-29T15:36:58.000Z
2021-06-01T18:55:26.000Z
# pylint: disable=line-too-long from django.conf.urls import url from django.contrib.auth.views import LogoutView from django.conf import settings from .views import pdk_add_data_point, pdk_add_data_bundle, pdk_app_config, pdk_issues, \ pdk_issues_json, pdk_fetch_metadata_json urlpatterns = [ ...
55.410714
134
0.716081
3b3d82864cc0776c4af3325f627956c088809c05
673
py
Python
footy/test/clubs/test_club_gateway.py
bryce-klinker/hello-python
c62ac61f40c1d9fcb77dbde49161da399787d96d
[ "MIT" ]
null
null
null
footy/test/clubs/test_club_gateway.py
bryce-klinker/hello-python
c62ac61f40c1d9fcb77dbde49161da399787d96d
[ "MIT" ]
null
null
null
footy/test/clubs/test_club_gateway.py
bryce-klinker/hello-python
c62ac61f40c1d9fcb77dbde49161da399787d96d
[ "MIT" ]
null
null
null
import unittest from nose.tools import * from footy.test_data.test_data_paths import premier_league_2015_2016_path from footy.src.clubs.club_gateway import ClubGateway
32.047619
73
0.732541
3b3ee1d6c082dc69b60bab96d107a86c451c72fd
12,938
py
Python
species/read/read_color.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
species/read/read_color.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
species/read/read_color.py
vandalt/species
527dd900a60c4d691bd490569cd3b2007f9beead
[ "MIT" ]
null
null
null
""" Module with reading functionalities of color and magnitude data from photometric and spectral libraries. """ import os import configparser from typing import Optional, Tuple import h5py import numpy as np from typeguard import typechecked from species.core import box from species.read import read_spectrum from...
39.565749
100
0.529139
3b3f59b660fd283aefd92d4e5bb60303b0322e7a
2,207
py
Python
feed/tests/serializers/test_serialize.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
4
2020-06-29T15:05:37.000Z
2022-02-02T10:28:28.000Z
feed/tests/serializers/test_serialize.py
arXiv/arxiv-feed
82923d062e2524df94c22490cf936a988559ce66
[ "MIT" ]
12
2020-03-06T16:45:00.000Z
2022-03-02T15:36:14.000Z
feed/tests/serializers/test_serialize.py
cul-it/arxiv-rss
40c0e859528119cc8ba3700312cb8df095d95cdd
[ "MIT" ]
2
2020-12-06T16:30:06.000Z
2021-11-05T12:29:08.000Z
from typing import Optional import pytest from lxml import etree from feed.domain import DocumentSet from feed.consts import FeedVersion from feed.serializers import serialize, Feed from feed.errors import FeedError, FeedVersionError
29.426667
71
0.659719
3b412821375616acd3d56e9096f98890535acd61
930
py
Python
Coursera/Contar palavras.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Coursera/Contar palavras.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
Coursera/Contar palavras.py
tobiaspontes/ScriptsPython
21ed779e49adca500ce5815dd100f4ec999a2571
[ "MIT" ]
null
null
null
''' Esta funo conta o nmero de ocorrncias de cada palavra em uma frase ''' # cdigo principal frase = 'O C6 Bank, em sua contestao, reconhece tratar-se de golpe corriqueiro e que com a entrada em vigor do PIX, houve maior vulnerabilidade no sistema de pagamentos e transferncias de numerrio. O que nos faz concluir que o...
48.947368
457
0.693548
3b41b8d8b26170832d54f91062c115dba91cad72
18,285
py
Python
examples/Exercise1A_properties.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
19
2015-12-08T23:33:51.000Z
2022-01-31T04:41:10.000Z
examples/Exercise1A_properties.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
2
2019-10-04T10:57:00.000Z
2021-10-01T06:46:17.000Z
examples/Exercise1A_properties.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
7
2015-11-04T02:25:01.000Z
2021-12-08T03:14:28.000Z
import logging from pyidf import ValidationLevel import pyidf from pyidf.idf import IDF from pyidf.simulation_parameters import Building from pyidf.thermal_zones_and_surfaces import GlobalGeometryRules from pyidf.thermal_zones_and_surfaces import BuildingSurfaceDetailed from pyidf.output_reporting import OutputSurfaces...
34.5
83
0.731583
3b42434f3e729b0830c16b69ed7f98878b6aee01
7,782
py
Python
django_pandas/managers.py
thedrow/django-pandas
52c6bceadd1cf59655f01ee617af9b692eb36b3f
[ "BSD-3-Clause" ]
1
2015-01-26T17:53:40.000Z
2015-01-26T17:53:40.000Z
django_pandas/managers.py
gtnx/django-pandas
321c283c515b671ceca578df4d111862359b3d9c
[ "BSD-3-Clause" ]
null
null
null
django_pandas/managers.py
gtnx/django-pandas
321c283c515b671ceca578df4d111862359b3d9c
[ "BSD-3-Clause" ]
null
null
null
from django.db.models.query import QuerySet from model_utils.managers import PassThroughManager from .io import read_frame
41.83871
78
0.550116
3b466b48be2d2a162d6c9c6df33ff4e475906464
735
py
Python
k-way_merge/k_smallest_number.py
mridulpant2010/algorithms
1234b8a0232d6fce647e868e1057b6ec87e0b3bb
[ "Unlicense" ]
null
null
null
k-way_merge/k_smallest_number.py
mridulpant2010/algorithms
1234b8a0232d6fce647e868e1057b6ec87e0b3bb
[ "Unlicense" ]
null
null
null
k-way_merge/k_smallest_number.py
mridulpant2010/algorithms
1234b8a0232d6fce647e868e1057b6ec87e0b3bb
[ "Unlicense" ]
null
null
null
import heapq if __name__ == '__main__': arr=[[2, 6, 8], [3, 6, 7], [1, 3, 4]] n=len(arr) ans=find_k_closest_numbers(arr, 5,n) arr2=[[2, 6, 8], [3, 7, 10], [5, 8, 11]] ans2=find_k_closest_numbers(arr2,5,n) print(ans,ans2)
24.5
53
0.50068
3b46b49b17d230de13c9b92191508e0370aa03e5
1,066
py
Python
psychic/nodes/faster.py
wmvanvliet/psychic
4ab75fb655795df0272c1bb0eb0dfeb232ffe143
[ "BSD-3-Clause" ]
null
null
null
psychic/nodes/faster.py
wmvanvliet/psychic
4ab75fb655795df0272c1bb0eb0dfeb232ffe143
[ "BSD-3-Clause" ]
null
null
null
psychic/nodes/faster.py
wmvanvliet/psychic
4ab75fb655795df0272c1bb0eb0dfeb232ffe143
[ "BSD-3-Clause" ]
null
null
null
from ..faster import interpolate_channels from .basenode import BaseNode
35.533333
111
0.690432
3b46f180c6385c5e588c3cb61c595f64e4412b99
4,873
py
Python
my/league.py
seanbreckenridge/HPI
4bb1f174bdbd693ab29e744413424d18b8667b1f
[ "MIT" ]
36
2020-08-26T09:01:19.000Z
2022-03-24T10:39:58.000Z
my/league.py
seanbreckenridge/HPI
4bb1f174bdbd693ab29e744413424d18b8667b1f
[ "MIT" ]
23
2020-12-22T11:50:41.000Z
2022-03-29T11:11:13.000Z
my/league.py
seanbreckenridge/HPI
4bb1f174bdbd693ab29e744413424d18b8667b1f
[ "MIT" ]
3
2021-03-01T07:33:49.000Z
2022-02-07T00:45:17.000Z
""" Parses league of legend history from my `lolexport.parse` format from: https://github.com/seanbreckenridge/lolexport """ REQUIRES = ["git+https://github.com/seanbreckenridge/lolexport"] # see https://github.com/seanbreckenridge/dotfiles/blob/master/.config/my/my/config/__init__.py for an example from my.config i...
30.45625
110
0.631028
3b48b6b797f56fc6a1d2416f53d86ebe58909abf
974
py
Python
aboutme/migrations/0001_initial.py
tharindubasnnayaka/MyWebApp
b9f9adae5df01f495a459eeee1083288ba568be9
[ "MIT" ]
2
2018-06-22T22:31:55.000Z
2018-10-09T17:14:35.000Z
aboutme/migrations/0001_initial.py
tharindubasnnayaka/MyWebApp
b9f9adae5df01f495a459eeee1083288ba568be9
[ "MIT" ]
7
2018-10-04T18:56:33.000Z
2020-10-11T18:03:22.000Z
aboutme/migrations/0001_initial.py
tharindubasnnayaka/MyWebApp
b9f9adae5df01f495a459eeee1083288ba568be9
[ "MIT" ]
17
2018-10-04T19:09:44.000Z
2022-03-17T10:27:28.000Z
# Generated by Django 2.1a1 on 2018-07-30 18:50 import aboutme.models from django.db import migrations, models
32.466667
116
0.572895
3b49afd725f055d1a828c47230e22c3488471dc9
6,617
py
Python
abintb/spin.py
abyellow/abin-tight-binding
538aef632937b1840d5ffd184f162858637b01f5
[ "MIT" ]
1
2018-02-22T19:13:24.000Z
2018-02-22T19:13:24.000Z
abintb/spin.py
abyellow/abin-tight-binding
538aef632937b1840d5ffd184f162858637b01f5
[ "MIT" ]
null
null
null
abintb/spin.py
abyellow/abin-tight-binding
538aef632937b1840d5ffd184f162858637b01f5
[ "MIT" ]
1
2017-09-14T17:25:09.000Z
2017-09-14T17:25:09.000Z
import numpy as np from time import time #from itertools import product import sys import matplotlib.pyplot as plt #from matplotlib.colors import LogNorm from sshPES import PES from sshIniData import SSHIniData from sshHf import SSHHf #from mpl_toolkits.mplot3d import Axes3D if __name__ == "__main__": tp0 = 0. E0...
25.35249
125
0.626417
3b49cedf8bf7d220ad7eea0fea5051742beb91c7
1,841
py
Python
api/api/admin/controllers.py
apiotrowsky/click-event-patterns
855f69d86a4a16bc81ecc1994d87b3d5827f7230
[ "MIT" ]
null
null
null
api/api/admin/controllers.py
apiotrowsky/click-event-patterns
855f69d86a4a16bc81ecc1994d87b3d5827f7230
[ "MIT" ]
null
null
null
api/api/admin/controllers.py
apiotrowsky/click-event-patterns
855f69d86a4a16bc81ecc1994d87b3d5827f7230
[ "MIT" ]
2
2018-03-22T19:31:20.000Z
2020-02-05T16:56:21.000Z
from flask import Blueprint, request import api from api.filehandling.FileManager import handelCSVfile, saveCsvFile, getLatestCsvFile, isCsvFilesDirEmpty, saveTagsFile, \ getLatestTagsFile admin = Blueprint('admin', __name__)
28.765625
122
0.694188
3b49d3d06e2161da692e71a5b99ec47d7288aa79
16,826
py
Python
app/plugin/playco/redis_db.py
MU-Software/mudev_backend
861c3cc962d9b960dcc0fb551aab5ca392800e6b
[ "MIT" ]
null
null
null
app/plugin/playco/redis_db.py
MU-Software/mudev_backend
861c3cc962d9b960dcc0fb551aab5ca392800e6b
[ "MIT" ]
null
null
null
app/plugin/playco/redis_db.py
MU-Software/mudev_backend
861c3cc962d9b960dcc0fb551aab5ca392800e6b
[ "MIT" ]
null
null
null
import copy import datetime import flask import json import typing import app.common.utils as utils import app.database as db_module import app.database.user as user_module import app.database.jwt as jwt_module import app.database.playco.playlist as playlist_module MAX_CONNECTIONS_PER_USER = 5 db = db_module.db redi...
41.9601
120
0.619101
3b4c9a45835f659a9f6a86bc34b3ce56804dd1a3
1,665
py
Python
main.py
codeforbtv/courtbot-vt
949d8aaaa5c846a5eb73c5327861aa12dd7becb8
[ "MIT" ]
2
2021-03-01T04:31:12.000Z
2021-08-31T23:30:30.000Z
main.py
codeforbtv/courtbot-vt
949d8aaaa5c846a5eb73c5327861aa12dd7becb8
[ "MIT" ]
19
2021-02-02T02:27:14.000Z
2022-03-23T02:37:34.000Z
main.py
codeforbtv/courtbot-vt
949d8aaaa5c846a5eb73c5327861aa12dd7becb8
[ "MIT" ]
1
2021-02-03T03:00:14.000Z
2021-02-03T03:00:14.000Z
""" This script should be run periodically to update the codeforbtv/court-calendars repo Usage: python3 main.py """ import src.parse.calendar_parse as parser import src.github_database.write_events as event_writer import src.mongo.write_to_mongo as write_mongo from dotenv import load_dotenv import os import logging ...
32.019231
109
0.748949
3b4d786560d431a3efa27cce5c4036b2041428ed
26,861
py
Python
src/algorithms.py
IsakFalk/active_learning_code
c73a2405bd7cc9fd54e60fa31aa5d689041b6baf
[ "MIT" ]
null
null
null
src/algorithms.py
IsakFalk/active_learning_code
c73a2405bd7cc9fd54e60fa31aa5d689041b6baf
[ "MIT" ]
null
null
null
src/algorithms.py
IsakFalk/active_learning_code
c73a2405bd7cc9fd54e60fa31aa5d689041b6baf
[ "MIT" ]
null
null
null
""" All algorithms used for subsampling dataset in a smart way """ import numpy as np import scipy.linalg as linalg from tqdm import tqdm def rho_t_func_kh(t): """Function for rho_t in FW to get KH""" return 1/(1 + t) # TODO: check that this works as expected
43.818923
137
0.614348
3b4f6e8da539b3953da50bdeaff511f79232fe42
1,814
py
Python
fjcommon/qsuba_git_helper.py
fab-jul/fjcommon
02e2941ffa4b699207b89da414c0103ee1b82441
[ "MIT" ]
2
2017-11-05T20:49:37.000Z
2018-08-23T14:18:00.000Z
fjcommon/qsuba_git_helper.py
fab-jul/fjcommon
02e2941ffa4b699207b89da414c0103ee1b82441
[ "MIT" ]
2
2020-03-05T16:22:52.000Z
2021-05-17T11:33:03.000Z
fjcommon/qsuba_git_helper.py
fab-jul/fjcommon
02e2941ffa4b699207b89da414c0103ee1b82441
[ "MIT" ]
1
2020-06-12T12:17:00.000Z
2020-06-12T12:17:00.000Z
#!/usr/bin/env python import os import sys import subprocess import argparse def unique_checkout(unique_id, git_url, git_checkout): """ Flow: if exists unique_id: cd unique_id git fetch else: git clone git_rul unique_id cd uinque_id git checkout git_checkout Note ...
28.34375
110
0.668688
3b4f88927cbb0cc7a73d449dfb1abedf52fef241
3,272
py
Python
awesomecure/md2dict.py
protontypes/OpenCurate
524657e68201f8c4b5f40b324eef301ca951ba3b
[ "MIT" ]
6
2021-11-24T16:36:16.000Z
2022-03-02T18:20:23.000Z
awesomecure/md2dict.py
protontypes/OpenCurate
524657e68201f8c4b5f40b324eef301ca951ba3b
[ "MIT" ]
16
2021-11-24T16:36:00.000Z
2022-03-03T07:50:28.000Z
awesomecure/md2dict.py
protontypes/OpenCurate
524657e68201f8c4b5f40b324eef301ca951ba3b
[ "MIT" ]
null
null
null
import sys import re from pprint import pprint sample = { 'awesome-cancer-variant-databases': { 'Cancer': { 'Clinically-focused': [{'CanDL': 'https://candl.osu.edu' }], 'Catalogs': [{ 'COSMIC': ...
32.39604
290
0.492665
3b500a311150b9a361d2c063a6a8a208beecf39b
1,782
py
Python
emotion_detection/train_test.py
AbhinavGoudBingi/Text-and-Emotion-from-Speech
41a7e7531201c323c5bbb97f81f74f3245e77297
[ "MIT" ]
null
null
null
emotion_detection/train_test.py
AbhinavGoudBingi/Text-and-Emotion-from-Speech
41a7e7531201c323c5bbb97f81f74f3245e77297
[ "MIT" ]
null
null
null
emotion_detection/train_test.py
AbhinavGoudBingi/Text-and-Emotion-from-Speech
41a7e7531201c323c5bbb97f81f74f3245e77297
[ "MIT" ]
null
null
null
from collections import OrderedDict import logging import warnings warnings.filterwarnings("ignore") logging.basicConfig(filename="runtime.log", \ format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', \ datefmt='%d-%b-%y %H:%M:%S', \ level=logging.DEBUG, filemode="a") import torch import torch...
32.4
152
0.696409
3b5018b9fdbe514bb19ae105d64c643ee996a976
2,987
py
Python
cardinal_pythonlib/wsgi/cache_mw.py
RudolfCardinal/pythonlib
4c583ad1aae3c1166a4e6f964df87eb6c02a73cb
[ "Apache-2.0" ]
10
2015-09-30T02:46:48.000Z
2021-07-23T05:03:38.000Z
cardinal_pythonlib/wsgi/cache_mw.py
RudolfCardinal/pythonlib
4c583ad1aae3c1166a4e6f964df87eb6c02a73cb
[ "Apache-2.0" ]
9
2019-07-04T11:10:31.000Z
2021-09-23T21:11:42.000Z
cardinal_pythonlib/wsgi/cache_mw.py
RudolfCardinal/pythonlib
4c583ad1aae3c1166a4e6f964df87eb6c02a73cb
[ "Apache-2.0" ]
4
2017-07-17T15:17:44.000Z
2021-07-23T05:03:41.000Z
#!/usr/bin/env python # cardinal_pythonlib/cache_mw.py """ =============================================================================== Original code copyright (C) 2009-2021 Rudolf Cardinal (rudolf@pobox.com). This file is part of cardinal_pythonlib. Licensed under the Apache License, Version 2.0 (th...
36.426829
108
0.626046
3b5052d4ea1e103c62f23657a9f8a91d6cc99d36
6,756
py
Python
src/dbn_samples.py
jamesrobertlloyd/kmc-research
291c39a3766c2d06c561044173b582cb251eb85e
[ "MIT" ]
9
2016-01-17T13:14:11.000Z
2020-09-21T20:19:34.000Z
src/dbn_samples.py
jamesrobertlloyd/kmc-research
291c39a3766c2d06c561044173b582cb251eb85e
[ "MIT" ]
null
null
null
src/dbn_samples.py
jamesrobertlloyd/kmc-research
291c39a3766c2d06c561044173b582cb251eb85e
[ "MIT" ]
5
2015-09-08T14:56:00.000Z
2019-09-10T19:33:07.000Z
""" Generate and save samples from a dbn trained on mnist Created Decemeber 2013 @authors: James Robert Lloyd (jrl44@cam.ac.uk) """ import numpy as np import matplotlib.pyplot as plt import itertools import os.path import cloud from deep_learning.rbm_label import train_rbm from deep_learning.logistic_sgd import l...
42.490566
121
0.600503
3b5397ed7edff4d41f1cc9dd86104816e46f1d72
3,665
py
Python
wmsmanager/forms.py
dbca-asi/borgcollector
4487fc1a37c057305852db49a05c704294a0e9e3
[ "BSD-3-Clause" ]
null
null
null
wmsmanager/forms.py
dbca-asi/borgcollector
4487fc1a37c057305852db49a05c704294a0e9e3
[ "BSD-3-Clause" ]
null
null
null
wmsmanager/forms.py
dbca-asi/borgcollector
4487fc1a37c057305852db49a05c704294a0e9e3
[ "BSD-3-Clause" ]
null
null
null
from django import forms from tablemanager.models import Workspace from wmsmanager.models import WmsServer,WmsLayer from borg_utils.form_fields import GeoserverSettingForm,MetaTilingFactorField,GridSetField from borg_utils.form_fields import GroupedModelChoiceField
40.722222
191
0.709686
3b5558093c68c26966f2908c9f6ec7fad195c041
2,142
py
Python
tensorflow/examples/custom_ops_doc/sleep/sleep_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
7
2022-03-04T21:14:47.000Z
2022-03-22T23:07:39.000Z
tensorflow/examples/custom_ops_doc/sleep/sleep_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
3
2022-02-06T00:10:55.000Z
2022-02-06T00:10:55.000Z
tensorflow/examples/custom_ops_doc/sleep/sleep_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
1
2021-11-21T02:32:27.000Z
2021-11-21T02:32:27.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34
97
0.694211
3b588b6ce0959e11ca51f7007731ed436c1a00ca
1,923
py
Python
tests/test_types.py
juniorcarvalho/python-btr
3c63fe939882d719a4ebbc07685c87429782c247
[ "MIT" ]
null
null
null
tests/test_types.py
juniorcarvalho/python-btr
3c63fe939882d719a4ebbc07685c87429782c247
[ "MIT" ]
null
null
null
tests/test_types.py
juniorcarvalho/python-btr
3c63fe939882d719a4ebbc07685c87429782c247
[ "MIT" ]
1
2018-12-03T00:32:55.000Z
2018-12-03T00:32:55.000Z
from decimal import InvalidOperation import pytest from binance.types import Results, Trading, format_fee
23.740741
54
0.620905
3b5a906e196bc5b80cf835a04d76a6995deab953
5,638
py
Python
vampire/models/basic.py
kmayerb/vampire
9c1823d6638ab7019dbb08fcc8a68dc0eef77e9a
[ "Apache-2.0" ]
14
2019-09-05T18:21:59.000Z
2021-06-22T15:12:37.000Z
vampire/models/basic.py
matsengrp/vampire
992b3d642cdb35a8aafa02583eafa617de3fc548
[ "Apache-2.0" ]
6
2019-08-13T21:42:41.000Z
2020-07-01T13:16:12.000Z
vampire/models/basic.py
kmayerb/vampire
9c1823d6638ab7019dbb08fcc8a68dc0eef77e9a
[ "Apache-2.0" ]
4
2019-08-29T15:48:26.000Z
2022-03-07T23:33:36.000Z
""" Kristian's original 2-layer VAE. Model diagram with 35 latent dimensions and 100 dense nodes: https://user-images.githubusercontent.com/112708/48358766-4f7a7e00-e650-11e8-9bab-d7a294548100.png """ import numpy as np import keras from keras.models import Model from keras.layers import Activation, Dense, Lambda, I...
46.983333
119
0.707875
3b5b6210081abb2e80c2adbfa0b7a89f8cacd226
5,655
py
Python
morse-stf/stensorflow/homo_enc/homo_mul.py
alipay/Antchain-MPC
f6916465e1da5722ca7efadc4eeaca13ec229707
[ "Apache-2.0" ]
33
2021-11-23T09:04:03.000Z
2022-03-14T07:56:31.000Z
morse-stf/stensorflow/homo_enc/homo_mul.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
null
null
null
morse-stf/stensorflow/homo_enc/homo_mul.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
6
2021-11-25T12:38:41.000Z
2022-02-23T03:29:51.000Z
#!/usr/bin/env python # coding=utf-8 """ Ant Group Copyright (c) 2004-2021 All Rights Reserved. ------------------------------------------------------ File Name : homo_mat_mul Author : Qizhi Zhang Email: qizhi.zqz@antgroup.com Create Time : 2021/9/30 5:31 Description : description what the main ...
46.735537
201
0.674447
3b5db4bc0a7169699b7427a7dfdc68246410d2ca
921
py
Python
setup.py
IvanProgramming/dnevnik_mos_ru
303b119115b3b88b330e2b7cc512c7a447ce5da0
[ "MIT" ]
19
2020-11-21T15:29:11.000Z
2022-03-18T16:16:03.000Z
setup.py
RedGuys/dnevnik_mos_ru
303b119115b3b88b330e2b7cc512c7a447ce5da0
[ "MIT" ]
1
2020-12-03T22:25:15.000Z
2020-12-29T11:23:28.000Z
setup.py
RedGuys/dnevnik_mos_ru
303b119115b3b88b330e2b7cc512c7a447ce5da0
[ "MIT" ]
9
2020-12-09T13:02:24.000Z
2022-02-07T18:19:32.000Z
from setuptools import setup, find_packages from dnevnik import __version__ with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name='dnevnik-mos-ru', version=__version__, description="This package is kind of wrapper for dnevnik.mos.ru API service", long_descri...
27.909091
82
0.639522