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
b6771c944826e5be81f3d435b7cc708dd5ba54c5
1,282
py
Python
beautiful_soup/page_parser.py
akellermann97/college-dump
5c82d93767038709ad71b8f212fdb6243eeb0aec
[ "MIT" ]
null
null
null
beautiful_soup/page_parser.py
akellermann97/college-dump
5c82d93767038709ad71b8f212fdb6243eeb0aec
[ "MIT" ]
null
null
null
beautiful_soup/page_parser.py
akellermann97/college-dump
5c82d93767038709ad71b8f212fdb6243eeb0aec
[ "MIT" ]
null
null
null
# Author: Alexander Kellermann Nieves # Date: September 18th, 2018 # This is a placeholder file. # In theory everything that has to do with beautifulsoup should find its way # here in this file. This is where the parsing of the individual webpage should happen. from bs4 import BeautifulSoup import sys import requests ...
23.740741
87
0.691108
b67754e2a563ebf610f90b637e66cd040c06649a
4,858
py
Python
egs/spgispeech/ASR/local/compute_fbank_spgispeech.py
zhu-han/icefall
9f6c748b3098e3e32c704c27c40ec31f2e9d376c
[ "Apache-2.0" ]
null
null
null
egs/spgispeech/ASR/local/compute_fbank_spgispeech.py
zhu-han/icefall
9f6c748b3098e3e32c704c27c40ec31f2e9d376c
[ "Apache-2.0" ]
1
2021-11-28T07:19:28.000Z
2021-11-28T07:19:28.000Z
egs/spgispeech/ASR/local/compute_fbank_spgispeech.py
wgb14/icefall
ec5a112831b54471daa82ddb956112b88128577a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2022 Johns Hopkins University (authors: Desh Raj) # # See ../../../../LICENSE for clarification regarding multiple authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain...
31.960526
75
0.634006
b67a14c44b65e4e41ccd782d03163d04e2009941
1,954
py
Python
mapUtils.py
caranha/GDMC_experiments
9cbef15c5fe2cb1703535586aded0cde5112cd3e
[ "MIT" ]
14
2021-03-04T21:50:34.000Z
2022-03-17T10:42:18.000Z
mapUtils.py
caranha/GDMC_experiments
9cbef15c5fe2cb1703535586aded0cde5112cd3e
[ "MIT" ]
57
2021-03-11T23:06:43.000Z
2022-03-06T09:46:28.000Z
mapUtils.py
caranha/GDMC_experiments
9cbef15c5fe2cb1703535586aded0cde5112cd3e
[ "MIT" ]
12
2021-03-02T23:07:11.000Z
2022-03-10T16:24:31.000Z
# ! /usr/bin/python3 """### Provides tools for maps and heightmaps This module contains functions to: * Calculate a heightmap ideal for building * Visualise numpy arrays """ __all__ = ['calcGoodHeightmap'] # __version__ import cv2 import matplotlib.pyplot as plt import numpy as np def calcGoodHeightmap(worldSlice):...
29.606061
119
0.62129
b67a7082d8780fb7d33a02062987db61e0bd4271
152
py
Python
vb2py/converter.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/converter.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/converter.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
"""Wrapper around project converter to convert a project""" from vb2py import projectconverter if __name__ == '__main__': projectconverter.main()
21.714286
59
0.756579
b67b06ba8e6dd02cf4ca0a2c1aadbd51e315110b
5,694
py
Python
ComputingAllSpectralIntegrals.py
llimonta/Alaska2014
2022d37209719c665dc72a5b59fd58ed0b2a867b
[ "MIT" ]
null
null
null
ComputingAllSpectralIntegrals.py
llimonta/Alaska2014
2022d37209719c665dc72a5b59fd58ed0b2a867b
[ "MIT" ]
null
null
null
ComputingAllSpectralIntegrals.py
llimonta/Alaska2014
2022d37209719c665dc72a5b59fd58ed0b2a867b
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd from matplotlib.lines import Line2D from scipy import interpolate from scipy.integrate import trapz from scipy.optimize import curve_fit import itertools #dictionary for plotting color_line = {'Iron':'k','Normal':'orange', 'Na-poor':'g','Na-enhanc...
54.75
183
0.679487
b67b35eb818dc4e5baf99aad96bee0144538fed9
2,696
py
Python
midnight_news/models.py
webadmin87/midnight
b60b3b257b4d633550b82a692f3ea3756c62a0a9
[ "BSD-3-Clause" ]
1
2015-11-20T12:42:39.000Z
2015-11-20T12:42:39.000Z
midnight_news/models.py
webadmin87/midnight
b60b3b257b4d633550b82a692f3ea3756c62a0a9
[ "BSD-3-Clause" ]
3
2020-02-11T21:21:12.000Z
2021-06-10T17:23:56.000Z
midnight_news/models.py
webadmin87/midnight
b60b3b257b4d633550b82a692f3ea3756c62a0a9
[ "BSD-3-Clause" ]
1
2015-11-04T09:23:31.000Z
2015-11-04T09:23:31.000Z
from django.core.urlresolvers import reverse from django.db import models from midnight_main.models import BaseTree, Base, BreadCrumbsMixin, BaseComment from ckeditor.fields import RichTextField from django.utils.translation import ugettext_lazy as _ from sorl.thumbnail import ImageField from mptt.fields import TreeMan...
27.793814
124
0.706602
b67cca26a73f81dbfa87c94981ac89667eb242b4
1,704
py
Python
Src/Morse.py
DragonixAlpha/Kal
2ca941ae91ffc459c821ac1b9139dd96abfec6e2
[ "MIT" ]
null
null
null
Src/Morse.py
DragonixAlpha/Kal
2ca941ae91ffc459c821ac1b9139dd96abfec6e2
[ "MIT" ]
null
null
null
Src/Morse.py
DragonixAlpha/Kal
2ca941ae91ffc459c821ac1b9139dd96abfec6e2
[ "MIT" ]
1
2021-05-16T15:32:56.000Z
2021-05-16T15:32:56.000Z
MORSE_CODE_DICT = { 'A':'.-', 'B':'-...', 'C':'-.-.', 'D':'-..', 'E':'.', 'F':'..-.', 'G':'--.', 'H':'....', 'I':'..', 'J':'.---', 'K':'-.-', 'L':'.-..', 'M':'--', 'N':'-.', 'O':'---', 'P':'.--.', 'Q':'--.-', ...
36.255319
63
0.311033
b67d0855a8e02deaf2a8667f3239a5f520bd4458
90
py
Python
Monke/__init__.py
Duck-sri/Monke
7539929496d4ddb134f5d449e9d090c271457113
[ "MIT" ]
null
null
null
Monke/__init__.py
Duck-sri/Monke
7539929496d4ddb134f5d449e9d090c271457113
[ "MIT" ]
1
2021-11-08T04:56:05.000Z
2021-11-08T04:56:05.000Z
Monke/__init__.py
Duck-sri/Monke
7539929496d4ddb134f5d449e9d090c271457113
[ "MIT" ]
null
null
null
from .block import Block from .transaction import Transaction from .account import Account
30
36
0.844444
b680d6a7a0401cae1a0366d0b0929112d0d0fb48
2,482
py
Python
Test_Files/test_velosity_controller.py
Jesse-Redford/SolidWorks_Pybullet_Integration
68adebb31dc0695fc324409955812eaae3ca0821
[ "MIT" ]
5
2020-08-25T23:21:24.000Z
2021-09-01T03:44:33.000Z
Test_Files/test_velosity_controller.py
Jesse-Redford/SolidWorks_Pybullet_Integration
68adebb31dc0695fc324409955812eaae3ca0821
[ "MIT" ]
null
null
null
Test_Files/test_velosity_controller.py
Jesse-Redford/SolidWorks_Pybullet_Integration
68adebb31dc0695fc324409955812eaae3ca0821
[ "MIT" ]
1
2021-09-01T00:45:38.000Z
2021-09-01T00:45:38.000Z
import pybullet import pybullet_data pybullet.connect(pybullet.GUI) pybullet.resetSimulation() pybullet.setAdditionalSearchPath(pybullet_data.getDataPath()) # Load robot URDF file created in solidworks robot = pybullet.loadURDF(r'C:\Users\Jesse\Desktop\PyFluid\Assem_test8\urdf\Assem_test8.urdf',[0,0...
41.366667
162
0.728848
b681ad1be8903a5b88b8eac811610fc6eea4c64b
18,263
py
Python
tpstorch/ml/optim.py
muhammadhasyim/tps-torch
21201458d037649fa66794b993ccfba7d7414028
[ "BSD-3-Clause" ]
3
2021-05-05T12:09:45.000Z
2021-05-17T18:39:54.000Z
tpstorch/ml/optim.py
muhammadhasyim/tps-torch
21201458d037649fa66794b993ccfba7d7414028
[ "BSD-3-Clause" ]
null
null
null
tpstorch/ml/optim.py
muhammadhasyim/tps-torch
21201458d037649fa66794b993ccfba7d7414028
[ "BSD-3-Clause" ]
null
null
null
import torch from torch.optim import Optimizer from torch.optim.optimizer import required #Depending on PyTorch version, the name of the functional module #May either have an underscore or not! oldversion = False try: import torch.optim._functional as F except: import torch.optim.functional as F oldversion...
44.543902
170
0.550621
b68251a5fc4cc1f8749fd10656b208c4c8bed996
4,097
py
Python
Analise de Dados/Arquivo Inicial - Aula 2.py
EduardoMdR/Aprendendo-Python
f36e3f3963f8e7abea319cf4b3f419305042c951
[ "MIT" ]
null
null
null
Analise de Dados/Arquivo Inicial - Aula 2.py
EduardoMdR/Aprendendo-Python
f36e3f3963f8e7abea319cf4b3f419305042c951
[ "MIT" ]
null
null
null
Analise de Dados/Arquivo Inicial - Aula 2.py
EduardoMdR/Aprendendo-Python
f36e3f3963f8e7abea319cf4b3f419305042c951
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Anlise de Dados com Python # # ### Desafio: # # Voc trabalha em uma empresa de telecom e tem clientes de vrios servios diferentes, entre os principais: internet e telefone. # # O problema que, analisando o histrico dos clientes dos ltimos anos, voc percebeu que a empresa e...
32.259843
145
0.746644
b6831c245d2462543eceb355b1183fa96b6f48f9
2,759
py
Python
research/cv/ntsnet/data_prepare.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ntsnet/data_prepare.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ntsnet/data_prepare.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
39.414286
101
0.576658
b683e527a05953ee9bd12970d53f000c8b55f886
934
py
Python
gui/helpers/native_saver.py
intdata-bsc/idact-gui
68df38dd231b5bd6ce45fd5e6f6450b9951efc50
[ "MIT" ]
3
2019-06-11T19:15:45.000Z
2020-05-16T17:07:43.000Z
gui/helpers/native_saver.py
intdata-bsc/idact-gui
68df38dd231b5bd6ce45fd5e6f6450b9951efc50
[ "MIT" ]
21
2019-06-24T19:47:41.000Z
2020-02-22T14:39:46.000Z
gui/helpers/native_saver.py
intdata-bsc/idact-gui
68df38dd231b5bd6ce45fd5e6f6450b9951efc50
[ "MIT" ]
1
2019-08-20T20:20:20.000Z
2019-08-20T20:20:20.000Z
""" One of the helpers for the gui application. Similar modules: class:`.DataProvider`, :class:`.ParameterSaver`, :class:`.UiLoader`, :class:`.Worker`, :class:`.ConfigurationProvider` """ import json import os
30.129032
81
0.650964
b6842494d1c29213418f229a2883d67c02999d44
543
py
Python
aoc_2021/src/day1.py
akohen/AdventOfCode
ac4194670d8a2af5357cb1f2e1d3f37df1f0a13e
[ "MIT" ]
null
null
null
aoc_2021/src/day1.py
akohen/AdventOfCode
ac4194670d8a2af5357cb1f2e1d3f37df1f0a13e
[ "MIT" ]
null
null
null
aoc_2021/src/day1.py
akohen/AdventOfCode
ac4194670d8a2af5357cb1f2e1d3f37df1f0a13e
[ "MIT" ]
null
null
null
from pathlib import Path if __name__ == "__main__": with Path(__file__).parent.joinpath("../input/day1").open(encoding="UTF-8") as f: VALUES = [int(i) for i in f] print(f"Phase 1: {phase1(VALUES)}") print(f"Phase 2: {phase2(VALUES)}")
27.15
90
0.59116
b68483bd58312eb317c7553af88ae9c0f3a75f5f
1,432
py
Python
src/human_lambdas/hl_cli.py
Human-Lambdas/human-lambdas
9a2f2317f0c8dbfbfa88f3ba4994de7e6b2c4d50
[ "Apache-2.0" ]
25
2021-06-08T08:00:08.000Z
2022-03-17T22:49:10.000Z
src/human_lambdas/hl_cli.py
Human-Lambdas/human-lambdas
9a2f2317f0c8dbfbfa88f3ba4994de7e6b2c4d50
[ "Apache-2.0" ]
null
null
null
src/human_lambdas/hl_cli.py
Human-Lambdas/human-lambdas
9a2f2317f0c8dbfbfa88f3ba4994de7e6b2c4d50
[ "Apache-2.0" ]
5
2021-06-15T09:57:46.000Z
2022-02-03T16:18:33.000Z
import os import shutil import subprocess import sys from pathlib import Path from subprocess import PIPE import click cli.add_command(up) cli.add_command(initdb) if __name__ == "__main__": cli()
22.030769
113
0.613128
b684ea846bdcddff0f795f27f74230ffc1d9b10e
438
py
Python
Testing/03_use_type_hint/type_hint_classes.py
t2y/python-study
52a132ea600d4696164e540d8a8f8f5fc58e097a
[ "Apache-2.0" ]
18
2016-08-15T00:24:44.000Z
2020-11-30T15:11:52.000Z
Testing/03_use_type_hint/type_hint_classes.py
t2y/python-study
52a132ea600d4696164e540d8a8f8f5fc58e097a
[ "Apache-2.0" ]
null
null
null
Testing/03_use_type_hint/type_hint_classes.py
t2y/python-study
52a132ea600d4696164e540d8a8f8f5fc58e097a
[ "Apache-2.0" ]
6
2016-09-28T10:47:03.000Z
2020-10-14T10:20:06.000Z
# -*- coding: utf-8 -*- # User-defined classes are written with just their own names. x = MyClass() # type: MyClass
31.285714
71
0.664384
b685a21692f23fdc8db5e7831f14f94c8f3c0bf8
788
py
Python
setup/settings/third_party/django_storages.py
asim3/django-template
2639eea9cea9a48e08163898ec25860908ad0cdf
[ "MIT" ]
null
null
null
setup/settings/third_party/django_storages.py
asim3/django-template
2639eea9cea9a48e08163898ec25860908ad0cdf
[ "MIT" ]
null
null
null
setup/settings/third_party/django_storages.py
asim3/django-template
2639eea9cea9a48e08163898ec25860908ad0cdf
[ "MIT" ]
1
2021-07-12T23:28:24.000Z
2021-07-12T23:28:24.000Z
import os AWS_S3_FILE_OVERWRITE = False DEFAULT_FILE_STORAGE = 'backends.storages.PrivateMediaStorage' # DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' STATICFILES_STORAGE = 'storages.backends.s3boto3.S3StaticStorage' AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY...
26.266667
89
0.80203
b6861069d6eb9f5bbebb4e747de8688fa5393f07
10,444
py
Python
cinder/tests/unit/volume/drivers/datacore/test_datacore_fc.py
alexisries/openstack-cinder
7cc6e45c5ddb8bf771bdb01b867628e41761ae11
[ "Apache-2.0" ]
2
2019-05-24T14:13:50.000Z
2019-05-24T14:21:13.000Z
cinder/tests/unit/volume/drivers/datacore/test_datacore_fc.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
cinder/tests/unit/volume/drivers/datacore/test_datacore_fc.py
vexata/cinder
7b84c0842b685de7ee012acec40fb4064edde5e9
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2017 DataCore Software Corp. 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...
40.638132
78
0.618058
b6862baa381a49c5ef1854fb8bd9b911475f5c62
1,580
py
Python
tests/test_DepthEstimator.py
melkimble/OpticalRS
54404f6c1e4e4a6f625e7b15e9f0489cb3600d79
[ "BSD-3-Clause" ]
17
2016-06-13T02:29:09.000Z
2022-03-22T13:30:39.000Z
tests/test_DepthEstimator.py
melkimble/OpticalRS
54404f6c1e4e4a6f625e7b15e9f0489cb3600d79
[ "BSD-3-Clause" ]
7
2017-09-02T12:50:49.000Z
2019-02-14T18:32:52.000Z
tests/test_DepthEstimator.py
melkimble/OpticalRS
54404f6c1e4e4a6f625e7b15e9f0489cb3600d79
[ "BSD-3-Clause" ]
14
2016-04-02T14:03:34.000Z
2021-05-18T06:00:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_DepthEstimator ------------------- pytest Tests for `OpticalRS.DepthEstimator` module. To run these tests, install pytest and run `py.test` in this test directory. """ from OpticalRS.RasterDS import RasterDS from OpticalRS.DepthEstimator import DepthEstimator im...
28.214286
90
0.675316
b68761f46ccae617ebf040a13bdb489cc61ffef6
1,513
py
Python
generator/generator.py
luigig44/KryptoCards
bb059fcfce87530b7c2c032383f39140eee96f8b
[ "MIT" ]
null
null
null
generator/generator.py
luigig44/KryptoCards
bb059fcfce87530b7c2c032383f39140eee96f8b
[ "MIT" ]
null
null
null
generator/generator.py
luigig44/KryptoCards
bb059fcfce87530b7c2c032383f39140eee96f8b
[ "MIT" ]
1
2021-11-06T02:19:58.000Z
2021-11-06T02:19:58.000Z
from fractions import Fraction as frac from solver import solve from solver_cant import solve_cant from difficulty import diff from random import randint import json import webbrowser import base64
23.640625
77
0.649703
b68858b3359450e821dd2966444e4abc86685776
26,328
py
Python
test/test_say.py
andrewvaughan/ansible-message
73b45fd9a09ff69a4221c898b575b1b17701b936
[ "MIT" ]
8
2018-02-27T11:33:33.000Z
2020-07-11T23:59:33.000Z
test/test_say.py
andrewvaughan/ansible-prompt
73b45fd9a09ff69a4221c898b575b1b17701b936
[ "MIT" ]
65
2017-11-01T20:38:30.000Z
2017-12-02T00:19:28.000Z
test/test_say.py
andrewvaughan/ansible-message
73b45fd9a09ff69a4221c898b575b1b17701b936
[ "MIT" ]
1
2017-11-30T22:02:17.000Z
2017-11-30T22:02:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Andrew Vaughan <hello@andrewvaughan.io> # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without ...
27.568586
118
0.564342
b6892bdce8585559ff0c5db21e9464b1c3caadc2
5,391
py
Python
src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainBrief/cli/equal/golden1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainBrief/cli/equal/golden1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxr/tests/ShowL2vpnBridgeDomainBrief/cli/equal/golden1_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "bridge_group": { "D": { "bridge_domain": { "D-w": { "ac": { "num_ac": 1, "num_ac_up": 1 }, "id": 0, "pbb": { ...
28.675532
45
0.171026
b68cd9bab578328a565f2b6f75b5874b0fc24f5f
511
py
Python
opendata/tasks.py
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
5
2015-10-31T02:01:24.000Z
2021-03-02T12:34:59.000Z
opendata/tasks.py
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
null
null
null
opendata/tasks.py
OpenData-NC/open-data-nc
5e1964d5c986f79055e6f018f0f2f9a15a3eaf99
[ "MIT" ]
4
2016-04-05T06:07:15.000Z
2020-10-18T01:17:17.000Z
from celery import task from django.core.mail import send_mail
26.894737
61
0.753425
b68d51d8887f49f000ef91611f35d1225cb82b19
43
py
Python
array/fourSum.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
array/fourSum.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
array/fourSum.py
ZeddShi/alg-py
f491dbf92bf7ddf0ac159d1ccfa1f716e458699f
[ "MIT" ]
null
null
null
#
10.75
26
0.651163
b68e577c70aec4c1412ef392ae994afd2e95b9a5
5,145
py
Python
tests/test_observatory.py
Physarah/huntsman-pocs
df013f71f99a7da17d6b44915ebf6f301aba10fc
[ "MIT" ]
3
2017-12-29T22:31:09.000Z
2021-02-18T05:52:12.000Z
tests/test_observatory.py
Physarah/huntsman-pocs
df013f71f99a7da17d6b44915ebf6f301aba10fc
[ "MIT" ]
432
2017-12-18T23:34:00.000Z
2022-03-25T03:17:37.000Z
tests/test_observatory.py
Physarah/huntsman-pocs
df013f71f99a7da17d6b44915ebf6f301aba10fc
[ "MIT" ]
20
2017-12-18T23:34:58.000Z
2021-06-01T03:58:08.000Z
import os import pytest from astropy import units as u from panoptes.utils.time import current_time from panoptes.pocs.utils.location import create_location_from_config from panoptes.pocs.scheduler import create_scheduler_from_config from panoptes.pocs.mount import create_mount_simulator from huntsman.pocs.core imp...
32.770701
94
0.753936
b69044b38b8c0de78fd9faf58af7a2f0a382c92c
1,024
py
Python
AutoDonationDownload.py
tsheez/scaretocare2017
cb3d2de1996d71a9a24caa2c98c3dd116082378a
[ "MIT" ]
null
null
null
AutoDonationDownload.py
tsheez/scaretocare2017
cb3d2de1996d71a9a24caa2c98c3dd116082378a
[ "MIT" ]
null
null
null
AutoDonationDownload.py
tsheez/scaretocare2017
cb3d2de1996d71a9a24caa2c98c3dd116082378a
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time from datetime import datetime import glob, os if __name__ == '__main__': updateFrequency = 15 #seconds driver = webdriver.Chrome(executable_path="C:\\Users\\KastreamAbdulJabbar\\Desktop\\chromedriver.exe") driver.g...
37.925926
106
0.62207
b690e2d5eb8179f10745b17c20d29455f2af53df
3,316
py
Python
store/adminshop/views/__init__.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/views/__init__.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/views/__init__.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Manuel Rodriguez <valle> # @Date: 28-Sep-2017 # @Email: valle.mrv@gmail.com # @Last modified by: valle # @Last modified time: 31-Jan-2018 # @License: Apache license vesion 2.0 from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_requir...
31.580952
105
0.666466
b69231e529d3179611550965950d64e9a25ebb98
378
py
Python
dmriprep/workflows/dwi/conversions/nii_to_mif/edges.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
null
null
null
dmriprep/workflows/dwi/conversions/nii_to_mif/edges.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
1
2022-03-22T13:22:18.000Z
2022-03-22T13:22:18.000Z
dmriprep/workflows/dwi/conversions/nii_to_mif/edges.py
GalBenZvi/dmriprep
7c4c0e1b01e3d941a7fafcbb6b001605cb1f2b0b
[ "Apache-2.0" ]
null
null
null
INPUT_TO_DWI_CONVERSION_EDGES = [("dwi_file", "in_file")] INPUT_TO_FMAP_CONVERSION_EDGES = [("fmap_file", "in_file")] LOCATE_ASSOCIATED_TO_COVERSION_EDGES = [ ("json_file", "json_import"), ("bvec_file", "in_bvec"), ("bval_file", "in_bval"), ] DWI_CONVERSION_TO_OUTPUT_EDGES = [("out_file", "dwi_file")] FMAP...
34.363636
61
0.719577
b694cfd033eef454494396e76bf47a25a6f499c5
4,824
py
Python
src/utils.py
sdat2/rotunno87
f4eca2759b25f801d37ac684066d3f7ead7129b1
[ "MIT" ]
null
null
null
src/utils.py
sdat2/rotunno87
f4eca2759b25f801d37ac684066d3f7ead7129b1
[ "MIT" ]
null
null
null
src/utils.py
sdat2/rotunno87
f4eca2759b25f801d37ac684066d3f7ead7129b1
[ "MIT" ]
null
null
null
"""General project util functions""" from typing import Callable import inspect import time from functools import wraps from sys import getsizeof def timeit(method: Callable) -> Callable: """timeit is a wrapper for performance analysis which should return the time taken for a function to run. Alters `log_time...
36.270677
88
0.609453
b6959bc8cb8450bfe80ee454d1ad09b6d38232d1
4,230
py
Python
src/classifier_evaluator/visualisations/roc_plot.py
yitistica/classifier_evaluator
9d5987eda467af18b4b40c480353cbe0bd49ee3e
[ "MIT" ]
1
2021-07-21T17:43:23.000Z
2021-07-21T17:43:23.000Z
src/classifier_evaluator/visualisations/roc_plot.py
yitistica/classifier_evaluator
9d5987eda467af18b4b40c480353cbe0bd49ee3e
[ "MIT" ]
null
null
null
src/classifier_evaluator/visualisations/roc_plot.py
yitistica/classifier_evaluator
9d5987eda467af18b4b40c480353cbe0bd49ee3e
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib import cm import numpy as np from classifier_evaluator.metrics import roc, roc_auc from classifier_evaluator.pre_process import data_type_converter # setting standard plot size: _DEFAULT_FIGURE_SIZE = (10, 10) _DEFAULT_COLOR_PALETTE = "jet" def plot_roc(roc_dict: dict,...
40.673077
119
0.613239
b69602368fed215695fc035838212d570896136d
24,285
py
Python
ppgan/datasets/lapstyle_dataset.py
JackMcCoy/PaddleGAN
a89fa7a1d7edd6a0e227c2941f0641700b20fe70
[ "Apache-2.0" ]
null
null
null
ppgan/datasets/lapstyle_dataset.py
JackMcCoy/PaddleGAN
a89fa7a1d7edd6a0e227c2941f0641700b20fe70
[ "Apache-2.0" ]
null
null
null
ppgan/datasets/lapstyle_dataset.py
JackMcCoy/PaddleGAN
a89fa7a1d7edd6a0e227c2941f0641700b20fe70
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
44.806273
169
0.637389
b696a4c01809e089674909ac16fa88da02e3fab0
1,540
py
Python
config/almacen_api_config.py
xyla-io/almacen_api
07497c64e6d1d52296a20dde106bc1af36f27114
[ "MIT" ]
null
null
null
config/almacen_api_config.py
xyla-io/almacen_api
07497c64e6d1d52296a20dde106bc1af36f27114
[ "MIT" ]
null
null
null
config/almacen_api_config.py
xyla-io/almacen_api
07497c64e6d1d52296a20dde106bc1af36f27114
[ "MIT" ]
null
null
null
almacen_api_config = { 'debug': { 'name': 'almacen_api', 'database': 'stage_01', 'debug': True, 'app': { 'DEBUG': True, 'UPLOAD_FOLDER': '/tmp', }, 'run': { # 'ssl_context': ('ssl/cert.pem', 'ssl/key.pem'), 'port': 8000, }, 'app_tokens': { 'TOKEN': { ...
21.09589
60
0.448701
b696f938f29a4c19d54a8077345c42752418e2da
1,443
py
Python
python-fundamentals/day-9-modules/example-1.py
laminsawo/python-365-days
7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c
[ "MIT" ]
null
null
null
python-fundamentals/day-9-modules/example-1.py
laminsawo/python-365-days
7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c
[ "MIT" ]
1
2020-01-06T00:28:32.000Z
2020-01-06T00:28:32.000Z
python-fundamentals/day-9-modules/example-1.py
laminsawo/python-365-days
7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c
[ "MIT" ]
1
2020-06-11T19:01:53.000Z
2020-06-11T19:01:53.000Z
# Import and use a module # There are 3 ways to import modules # Example 1: Import the entire module import random # To use this module, we can... rand_number = random.randrange(1,10) print(rand_number) # Note: 'random' is the module and 'randrange' is the function # This example randomly selects a number...
28.86
100
0.679834
b6971975b9eaf770ff217af0628bef84c7d15d9a
611
py
Python
modelconfig.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
modelconfig.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
modelconfig.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
from tensorflow.keras.applications.xception import Xception import tensorflow.keras as k
38.1875
82
0.769231
b6974f70a4274038fd3ebb9b582106bcf0534bf5
700
py
Python
scripts/tags/generate_mapstyle.py
rinigus/geocoder-nlp
9fa6fd16121caf70bbbe597c4dcc46e40d5655a2
[ "MIT" ]
16
2017-01-21T08:01:00.000Z
2022-02-15T20:32:45.000Z
scripts/tags/generate_mapstyle.py
rinigus/geocoder-nlp
9fa6fd16121caf70bbbe597c4dcc46e40d5655a2
[ "MIT" ]
58
2017-01-08T22:05:00.000Z
2022-03-23T17:07:38.000Z
scripts/tags/generate_mapstyle.py
rinigus/geocoder-nlp
9fa6fd16121caf70bbbe597c4dcc46e40d5655a2
[ "MIT" ]
2
2017-09-01T20:51:44.000Z
2018-08-01T16:20:17.000Z
#!/usr/bin/env python3 import sqlite3 db = sqlite3.connect('taginfo-db.db') c = db.cursor() mapost = "" whitelist = "" keyvals = [] for r in c.execute("select key,value from tags where key='shop' order by count_all desc limit 50"): key, value = r # no need for these if value in ['yes', 'no']: c...
20
99
0.555714
b697a379e0ad30af4d07d89e9f3dc6d4f29fdea6
1,181
py
Python
day6-4[twitter&W2V].py
cutz-j/Python-for-data-analysis
f23f94ae2b489dd13f909b425bbede3537d8849c
[ "MIT" ]
null
null
null
day6-4[twitter&W2V].py
cutz-j/Python-for-data-analysis
f23f94ae2b489dd13f909b425bbede3537d8849c
[ "MIT" ]
null
null
null
day6-4[twitter&W2V].py
cutz-j/Python-for-data-analysis
f23f94ae2b489dd13f909b425bbede3537d8849c
[ "MIT" ]
null
null
null
import codecs from bs4 import BeautifulSoup from konlpy.tag import Twitter from gensim.models import word2vec # W2V fp=codecs.open("D:/DataAnalysis/BEXX0003.txt", "r", encoding='utf-16') soup=BeautifulSoup(fp, 'html.parser') #print(soup) # html > text body=soup.select_one("body > text") text=body.getText() twit=Twi...
25.673913
134
0.678239
b6988b45fdc7a4b35d2172399d969e8f908dea42
4,562
py
Python
python_code_tips/functions_example/functions-before.py
VLTSankalpa/python_networking
653662da9ae3fdd49b118c3dbd4d3b4fdf062d17
[ "MIT" ]
null
null
null
python_code_tips/functions_example/functions-before.py
VLTSankalpa/python_networking
653662da9ae3fdd49b118c3dbd4d3b4fdf062d17
[ "MIT" ]
null
null
null
python_code_tips/functions_example/functions-before.py
VLTSankalpa/python_networking
653662da9ae3fdd49b118c3dbd4d3b4fdf062d17
[ "MIT" ]
null
null
null
#! /usr/bin/env python import requests import json import argparse # Diable InsecureRequestWarning requests.packages.urllib3.disable_warnings( requests.packages.urllib3.exceptions.InsecureRequestWarning ) # DevNet Always-On Sandbox DNA Center # https://devnetsandbox.cisco.com/RM/Diagram/Index/471eb73...
30.824324
109
0.679965
b6991871b344a5cf774115d7f86c5484afbe76ab
1,064
py
Python
examples/data/gen_olf_input.py
neurokernel/sensory_int
1e9f690a3e09812f441313433252eecdfc33f78c
[ "BSD-3-Clause" ]
null
null
null
examples/data/gen_olf_input.py
neurokernel/sensory_int
1e9f690a3e09812f441313433252eecdfc33f78c
[ "BSD-3-Clause" ]
null
null
null
examples/data/gen_olf_input.py
neurokernel/sensory_int
1e9f690a3e09812f441313433252eecdfc33f78c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Generate sample olfactory model stimulus. """ import numpy as np import h5py osn_num = 1375 dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period #Nt = 4*Ot + 3*Rt # number of data points in time #Nt = 10000...
26.6
60
0.652256
b69a29635386ebc54f40e856a32a9b0a37336f38
1,702
py
Python
08-def-type-hints/comparable/mymax.py
eumiro/example-code-2e
93bb4407fac7ecf56b4f3ca87f3cb717a9ed3a56
[ "MIT" ]
null
null
null
08-def-type-hints/comparable/mymax.py
eumiro/example-code-2e
93bb4407fac7ecf56b4f3ca87f3cb717a9ed3a56
[ "MIT" ]
null
null
null
08-def-type-hints/comparable/mymax.py
eumiro/example-code-2e
93bb4407fac7ecf56b4f3ca87f3cb717a9ed3a56
[ "MIT" ]
null
null
null
# tag::MYMAX_TYPES[] from typing import Protocol, Any, TypeVar, overload, Callable, Iterable, Union _T = TypeVar('_T') _CT = TypeVar('_CT', bound=_Comparable) _DT = TypeVar('_DT') MISSING = object() EMPTY_MSG = 'max() arg is an empty sequence' # end::MYMAX_TYPES[] # tag::MYMAX[] def max(first, *args, key=None, defaul...
28.366667
78
0.583431
b69c4b997fca33a3fb149b9f7a489a2143e12900
608
py
Python
airnow/api.py
briandconnelly/airnow-py
ebe1b0b18b77038aa3473c5814a34b5eeb908bb6
[ "MIT" ]
1
2020-09-22T15:23:59.000Z
2020-09-22T15:23:59.000Z
airnow/api.py
briandconnelly/airnow-py
ebe1b0b18b77038aa3473c5814a34b5eeb908bb6
[ "MIT" ]
6
2020-09-21T16:01:20.000Z
2020-09-25T01:01:26.000Z
airnow/api.py
briandconnelly/airnow-py
ebe1b0b18b77038aa3473c5814a34b5eeb908bb6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests def get_airnow_data(endpoint: str, **kwargs) -> dict: """Query the AirNow API and return the contents :param str endpoint: AirNow API endpoint (e.g., "/aq/observation/zipCode/current") Additional named arguments are passed on as query parameters. All queries ...
32
87
0.694079
b69d04502a6f8d71ba5ee9a05c5959dfeda35999
1,093
py
Python
Auths/models.py
cool199966/AccountManager
7026e605482c59c53796be62125dc298bc3104ef
[ "MIT" ]
1
2022-03-29T13:54:42.000Z
2022-03-29T13:54:42.000Z
Auths/models.py
cool-develope/AccountManager
7026e605482c59c53796be62125dc298bc3104ef
[ "MIT" ]
null
null
null
Auths/models.py
cool-develope/AccountManager
7026e605482c59c53796be62125dc298bc3104ef
[ "MIT" ]
null
null
null
from django.db import models import datetime from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser, Group, PermissionsMixin )
23.76087
60
0.756633
b69df960f978449af134514abb13efeb1606c0bd
3,956
py
Python
ctapipe/calib/camera/tests/test_r1.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/calib/camera/tests/test_r1.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/calib/camera/tests/test_r1.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
import pytest from numpy.testing import assert_almost_equal, assert_array_equal, \ assert_array_almost_equal from ctapipe.calib.camera.r1 import ( CameraR1CalibratorFactory, HESSIOR1Calibrator, TargetIOR1Calibrator, NullR1Calibrator ) from ctapipe.io.eventsource import EventSource from ctapipe.io.s...
30.430769
75
0.75455
b69e51255181c2782572fe8073ba2966e5ea33ec
1,320
py
Python
mini_imagenet.py
dingmyu/prototypical-network-pytorch
dbb6fbf784a5bd209896865166fffdefd8daedf5
[ "MIT" ]
null
null
null
mini_imagenet.py
dingmyu/prototypical-network-pytorch
dbb6fbf784a5bd209896865166fffdefd8daedf5
[ "MIT" ]
null
null
null
mini_imagenet.py
dingmyu/prototypical-network-pytorch
dbb6fbf784a5bd209896865166fffdefd8daedf5
[ "MIT" ]
null
null
null
import os import os.path as osp from PIL import Image from torch.utils.data import Dataset from torchvision import transforms
26.4
74
0.559848
b69fbe77289f7235767b0bd63da00b1ed896dee8
459
py
Python
CursoEmVideo-Python3-Mundo1/desafio035.py
martinsnathalia/Python
0cabf894dc9c0d0307bd1136831e011580b497c5
[ "MIT" ]
null
null
null
CursoEmVideo-Python3-Mundo1/desafio035.py
martinsnathalia/Python
0cabf894dc9c0d0307bd1136831e011580b497c5
[ "MIT" ]
null
null
null
CursoEmVideo-Python3-Mundo1/desafio035.py
martinsnathalia/Python
0cabf894dc9c0d0307bd1136831e011580b497c5
[ "MIT" ]
null
null
null
# Desenvolva um programa que leia o comprimento de trs retas e diga ao usurio se elas podem ou no formar um tringulo. print('Suas retas formam um tringulo?') r1 = float(input('Digite a primeira reta: ')) r2 = float(input('Digite a segunda reta: ')) r3 = float(input('Digite a terceira reta: ')) if r1 < (r2+r3) and r2 ...
38.25
121
0.690632
b6a04a0f526b072cb08a7b68cb313fe983569b9f
185
py
Python
Vamei/function/function2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
5
2020-05-18T06:54:52.000Z
2021-05-29T23:17:41.000Z
Vamei/function/function2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
null
null
null
Vamei/function/function2.py
YangPhy/learnPython
5507fa1a0d2878fc663d62509af8ff959955f822
[ "MIT" ]
1
2020-05-17T22:47:49.000Z
2020-05-17T22:47:49.000Z
a=1 print (change_integer(a)) print (a) b=[1,2,3] print (change_list(b)) print (b)
10.277778
25
0.594595
b6a123615ec1f56e343c4784fac6733ad1ae088c
160
py
Python
Problems/Minimum and maximum/task.py
gabrielizalo/jetbrains-academy-python-coffee-machine
e22cb502f7998855ef4afbc4ef7ecb8226418225
[ "MIT" ]
null
null
null
Problems/Minimum and maximum/task.py
gabrielizalo/jetbrains-academy-python-coffee-machine
e22cb502f7998855ef4afbc4ef7ecb8226418225
[ "MIT" ]
null
null
null
Problems/Minimum and maximum/task.py
gabrielizalo/jetbrains-academy-python-coffee-machine
e22cb502f7998855ef4afbc4ef7ecb8226418225
[ "MIT" ]
null
null
null
number_1 = int(input()) number_2 = int(input()) if number_1 >= number_2: print(number_1) print(number_2) else: print(number_2) print(number_1)
16
24
0.6625
b6a171bc0ccc76a300355ffe2b1eb96c80e3cf48
5,130
py
Python
app/backend/models/room.py
kz3ko/smart-home-heating-simulation
f496bf55d2d0f4788e204edcbc71defe7fff7c60
[ "MIT" ]
1
2021-12-20T17:34:00.000Z
2021-12-20T17:34:00.000Z
app/backend/models/room.py
kz3ko/smart-home-heating-simulation
f496bf55d2d0f4788e204edcbc71defe7fff7c60
[ "MIT" ]
null
null
null
app/backend/models/room.py
kz3ko/smart-home-heating-simulation
f496bf55d2d0f4788e204edcbc71defe7fff7c60
[ "MIT" ]
null
null
null
from __future__ import annotations from copy import deepcopy from dataclasses import dataclass, field from typing import Optional from models.backyard import Backyard from models.heater import Heater
38
109
0.624366
b6a3abccc0d7713945f6ef002d5895fbeb4df2ff
1,231
py
Python
coding patterns/k-way merge/k_smallest_number_in_sorted_matrix.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/k-way merge/k_smallest_number_in_sorted_matrix.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/k-way merge/k_smallest_number_in_sorted_matrix.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
""" [H] Given an N * NNN matrix where each row and column is sorted in ascending order, find the Kth smallest element in the matrix. Example 1: Input: Matrix=[ [2, 6, 8], [3, 7, 10], [5, 8, 11] ], K=5 Output: 7 Explanation: The 5th smallest number in the matrix is 7. """ from heapq import *...
21.982143
109
0.595451
b6a41c2e1b6a583c2000ea9bbd29c7b7001a79b0
148,811
py
Python
suncasa/suncasatasks/ptclean6.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
2
2018-02-12T09:34:23.000Z
2019-07-16T18:25:12.000Z
suncasa/suncasatasks/ptclean6.py
wulinhui1/suncasa-src
1f94aaabaf6a3911fa532648ec6676a221553436
[ "BSD-2-Clause" ]
26
2016-11-09T17:11:45.000Z
2021-08-20T13:41:50.000Z
suncasa/suncasatasks/ptclean6.py
wulinhui1/suncasa-src
1f94aaabaf6a3911fa532648ec6676a221553436
[ "BSD-2-Clause" ]
17
2016-10-27T18:35:46.000Z
2021-08-03T05:33:57.000Z
##################### generated by xml-casa (v2) from ptclean6.xml ################## ##################### 6a89d05724a14fedd7b8ceb75d841936 ############################## from __future__ import absolute_import import numpy from casatools.typecheck import CasaValidator as _val_ctor _pc = _val_ctor( ) from casatools.coe...
88.053846
4,828
0.493774
b6a48b582a5756fac16d812cc023a3970ca1e15b
9,715
py
Python
earthvision/datasets/drone_deploy.py
otivedani/earth-vision
52d1f1019f47c4611345703d381b9cda960afa7f
[ "MIT" ]
null
null
null
earthvision/datasets/drone_deploy.py
otivedani/earth-vision
52d1f1019f47c4611345703d381b9cda960afa7f
[ "MIT" ]
null
null
null
earthvision/datasets/drone_deploy.py
otivedani/earth-vision
52d1f1019f47c4611345703d381b9cda960afa7f
[ "MIT" ]
null
null
null
"""Class for Drone Deploy - Semantic Segmentation.""" from PIL import Image import sys import os import numpy as np import random import cv2 from typing import Any, Callable, Optional, Tuple from .vision import VisionDataset from earthvision.constants.DroneDeploy.config import ( train_ids, val_ids, test_id...
32.168874
107
0.602676
b6a4c2fc1d4f8c281ad941ff066addcc5b88b1da
1,525
py
Python
IT77A _assistant.py
JasinAlAmin/Owl-Chatbot
c016f8037c7c4c2386429d07ddd6054136caad54
[ "Unlicense" ]
null
null
null
IT77A _assistant.py
JasinAlAmin/Owl-Chatbot
c016f8037c7c4c2386429d07ddd6054136caad54
[ "Unlicense" ]
null
null
null
IT77A _assistant.py
JasinAlAmin/Owl-Chatbot
c016f8037c7c4c2386429d07ddd6054136caad54
[ "Unlicense" ]
null
null
null
import speech_recognition as sr import pyttsx3 import pywhatkit import datatime import wikipedia import pyjokes from googlesearch import search listener = sr.Recognizer() engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setPropert('voice',voices[1].id) except: pass return command def ...
24.206349
51
0.655738
b6a50f3337ebf02efe8d161b7e75d578ff634d7b
4,725
py
Python
experiment-3/make_design_files_for_power_analyses.py
NBCLab/power-replication
7a938cac6fd132f8cbd76535255680aeb2e550cb
[ "Apache-2.0" ]
1
2021-12-20T13:30:23.000Z
2021-12-20T13:30:23.000Z
experiment-3/make_design_files_for_power_analyses.py
NBCLab/power-replication
7a938cac6fd132f8cbd76535255680aeb2e550cb
[ "Apache-2.0" ]
14
2020-12-21T15:58:45.000Z
2022-03-16T22:20:25.000Z
experiment-3/make_design_files_for_power_analyses.py
NBCLab/power-replication
7a938cac6fd132f8cbd76535255680aeb2e550cb
[ "Apache-2.0" ]
null
null
null
""" """ import os.path as op from glob import glob from os import mkdir from shutil import copyfile
29.347826
87
0.593439
b6a6d591db83048f3b55342a265c56506198ac3d
1,371
py
Python
chapter07/address_book_import.py
gothedistance/python-book
18d82b96e8336e2a26608e25b2c2424e19dab2a3
[ "MIT" ]
17
2016-08-12T13:15:43.000Z
2021-03-22T13:35:33.000Z
chapter07/address_book_import.py
gothedistance/python-book
18d82b96e8336e2a26608e25b2c2424e19dab2a3
[ "MIT" ]
null
null
null
chapter07/address_book_import.py
gothedistance/python-book
18d82b96e8336e2a26608e25b2c2424e19dab2a3
[ "MIT" ]
13
2016-08-12T13:31:47.000Z
2021-01-28T11:06:48.000Z
ab = AddressBook() ab.import_data('sample100.csv') print('->' + str(len(ab.person_list)) + ' ') ab.search('')
26.365385
75
0.548505
b6a6e515ce705443cef418c82f3ade47874333d5
788
py
Python
app/__init__.py
mkorcha/CoyoteLab
8932d9cc35fb840e468368c2e1249ca4811b59d0
[ "MIT" ]
2
2016-12-01T00:10:46.000Z
2016-12-31T19:18:35.000Z
app/__init__.py
mkorcha/CoyoteLab
8932d9cc35fb840e468368c2e1249ca4811b59d0
[ "MIT" ]
null
null
null
app/__init__.py
mkorcha/CoyoteLab
8932d9cc35fb840e468368c2e1249ca4811b59d0
[ "MIT" ]
null
null
null
import os from flask import Flask from flask_kvsession import KVSessionExtension from flask_mail import Mail from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy from flask_wtf.csrf import CsrfProtect db = SQLAlchemy() migrate = Migrate() csrf = CsrfProtect() session = KVSessionExtension() mail ...
21.297297
60
0.752538
b6a80ec6a47780626f32900e8399bb27a6cf7c7c
6,063
py
Python
data/get_cfmid_candidates.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
data/get_cfmid_candidates.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
data/get_cfmid_candidates.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
#### # # The MIT License (MIT) # # Copyright 2021 Eric Bach <eric.bach@aalto.fi> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights...
41.244898
119
0.639452
b6a829207d8c15d0acfe6594c7b505a0ec551a5f
7,470
py
Python
View/old/MainWindow.py
logisticAKB/course-paper1
8455d5148e0871912791516126819b0d0b51c7c1
[ "MIT" ]
1
2021-03-13T17:05:02.000Z
2021-03-13T17:05:02.000Z
View/old/MainWindow.py
logisticAKB/LandmarkRecognition
8455d5148e0871912791516126819b0d0b51c7c1
[ "MIT" ]
null
null
null
View/old/MainWindow.py
logisticAKB/LandmarkRecognition
8455d5148e0871912791516126819b0d0b51c7c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MainWindow.ui' # # Created by: PyQt5 UI code generator 5.13.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets if __name__ == "__main__": import sys app = QtWidgets.QApplication...
47.278481
108
0.693039
b6a9b30cd75062dc7b09f7acd6378bcfffa85604
2,472
py
Python
scripts/extract_frequencies.py
hjortnaes/congra_parser
c09a726a9c234a449d0fd6a9f2fddefaca395741
[ "MIT" ]
null
null
null
scripts/extract_frequencies.py
hjortnaes/congra_parser
c09a726a9c234a449d0fd6a9f2fddefaca395741
[ "MIT" ]
null
null
null
scripts/extract_frequencies.py
hjortnaes/congra_parser
c09a726a9c234a449d0fd6a9f2fddefaca395741
[ "MIT" ]
null
null
null
from collections import Counter, namedtuple def print_freqs(freqs): """ Prints an easy to read format of the frequencies extracted from the corpus to the file frequencies.txt :return: None """ with open('frequencies.txt', 'w') as f: for t, c in freqs.items(): print(str(t), ...
36.352941
119
0.605583
b6acc709305640c27e6ab108c2eb69cd4e8409b7
1,416
py
Python
tests/cli/test_api_consumer.py
chib0/asd-winter2019
c7d95305b1e8b99013fd40da1e7ebe01c2d0102a
[ "Apache-2.0" ]
null
null
null
tests/cli/test_api_consumer.py
chib0/asd-winter2019
c7d95305b1e8b99013fd40da1e7ebe01c2d0102a
[ "Apache-2.0" ]
4
2021-02-02T22:38:53.000Z
2022-01-13T02:32:33.000Z
tests/cli/test_api_consumer.py
chib0/asd-winter2019
c7d95305b1e8b99013fd40da1e7ebe01c2d0102a
[ "Apache-2.0" ]
null
null
null
import pytest import werkzeug import cortex.cli.api_consumer as api_consumer
39.333333
100
0.716102
b6b21b0181116d3da67947f3e174ee215bcd640b
3,063
py
Python
scptoweb-climockup.py
519seven/python_snippets
39530f1ca1a1b889f1ddb2a21d4ea55c38dde898
[ "BSD-2-Clause" ]
null
null
null
scptoweb-climockup.py
519seven/python_snippets
39530f1ca1a1b889f1ddb2a21d4ea55c38dde898
[ "BSD-2-Clause" ]
1
2020-08-12T01:37:01.000Z
2020-08-12T01:37:01.000Z
scptoweb-climockup.py
519seven/python_snippets
39530f1ca1a1b889f1ddb2a21d4ea55c38dde898
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # ========================================================== # Copyright 2020 519Seven # ========================================================== ''' Designed for cron - scp files to web server Set up SSH key for password-less SCP to web server Using env vars because this in a place where ...
31.57732
106
0.680705
b6b310ddd7552060444487d3b6bd14778c644bee
2,012
py
Python
google_gas_station.py
loghmanb/daily-coding-problem
97c165fc00422566f463cd862374de66135bc3e3
[ "MIT" ]
null
null
null
google_gas_station.py
loghmanb/daily-coding-problem
97c165fc00422566f463cd862374de66135bc3e3
[ "MIT" ]
null
null
null
google_gas_station.py
loghmanb/daily-coding-problem
97c165fc00422566f463cd862374de66135bc3e3
[ "MIT" ]
null
null
null
''' Gas Station Asked in: Bloomberg, Google, DE Shaw, Amazon, Flipkart Given two integer arrays A and B of size N. There are N gas stations along a circular route, where the amount of gas at station i is A[i]. You have a car with an unlimited gas tank and it costs B[i] of gas to travel from station i to its next stat...
32.983607
376
0.66501
b6b4869088455d04e487300c06f2189b4e0eab83
2,020
py
Python
api/tests/integration/tests/todo/load_utf8.py
epam/Indigo
cb6b0bb5568f414f387e1997ad64c7eedd92c04e
[ "Apache-2.0" ]
204
2015-11-06T21:34:34.000Z
2022-03-30T16:17:01.000Z
api/tests/integration/tests/todo/load_utf8.py
mongrzzzzzfr/Indigo
07cb744a90ff17828f8c1185bcc2e78cb4e882b3
[ "Apache-2.0" ]
509
2015-11-05T13:54:43.000Z
2022-03-30T22:15:30.000Z
api/tests/integration/tests/todo/load_utf8.py
mongrzzzzzfr/Indigo
07cb744a90ff17828f8c1185bcc2e78cb4e882b3
[ "Apache-2.0" ]
89
2015-11-17T08:22:54.000Z
2022-03-17T04:26:28.000Z
# coding=utf-8 import sys sys.path.append('../../common') from env_indigo import * indigo = Indigo() indigo.setOption("molfile-saving-skip-date", "1") print("****** Load molfile with UTF-8 characters in Data S-group ********") m = indigo.loadMoleculeFromFile(joinPathPy("molecules/sgroups_utf8.mol", __file__)) indigo....
36.071429
102
0.631683
b6b6c2ee5a358ae1677029fe17230741b104b351
432
py
Python
secondtest/2013/1gaussjacobi.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
1
2019-12-07T10:34:30.000Z
2019-12-07T10:34:30.000Z
secondtest/2013/1gaussjacobi.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
null
null
null
secondtest/2013/1gaussjacobi.py
JoaoCostaIFG/MNUM
6e042d8a6f64feb9eae9c79afec2fbab51f46fbd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # CHECKED A = [[4.5, -1, -1, 1], [-1, 4.5, 1, -1], [-1, 2, 4.5, -1], [2, -1, -1, 4.5]] b = [1, -1, -1, 0] x = [0.25, 0.25, 0.25, 0.25] x_new = [0, 0, 0, 0] for k in range(2): for i in range(4): x_new[i] = b[i] for j in range(4): if j != i: x_new[...
19.636364
76
0.381944
b6b74e989e19a2592c3e0ed3a2014e95a95fa284
6,903
py
Python
exercises/house_price_prediction.py
ranitoukhy/IML.HUJI
156e67422311847d9f40efa36fb2020da3dd0087
[ "MIT" ]
null
null
null
exercises/house_price_prediction.py
ranitoukhy/IML.HUJI
156e67422311847d9f40efa36fb2020da3dd0087
[ "MIT" ]
null
null
null
exercises/house_price_prediction.py
ranitoukhy/IML.HUJI
156e67422311847d9f40efa36fb2020da3dd0087
[ "MIT" ]
null
null
null
import numpy from sklearn.model_selection import ParameterGrid import IMLearn.utils from IMLearn.utils import split_train_test from IMLearn.learners.regressors import LinearRegression from typing import NoReturn import numpy as np import pandas as pd import plotly.graph_objects as go import plotly.express as px impor...
39.445714
265
0.665942
fca97547159790623ff79445e8e3c772fb3916ed
7,900
py
Python
mykit/core/kmesh.py
minyez/mykit
911413120c081be2cfcaef06d62dc40b2abd2747
[ "MIT" ]
4
2019-01-02T09:17:54.000Z
2019-12-26T07:15:59.000Z
mykit/core/kmesh.py
minyez/mykit
911413120c081be2cfcaef06d62dc40b2abd2747
[ "MIT" ]
6
2019-03-06T03:16:12.000Z
2019-03-14T14:36:01.000Z
mykit/core/kmesh.py
minyez/mykit
911413120c081be2cfcaef06d62dc40b2abd2747
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''Module that defines classes and functions for Brillouin zone sampling ''' import os import re from copy import deepcopy import numpy as np from mykit.core._control import (build_tag_map_obj, extract_from_tagdict, parse_to_tagdict, prog_mapper, tags_mapping) ...
31.102362
99
0.602785
fca9e8a4bc32f7e169d0d7268005568ae139f7b9
3,573
py
Python
deepcompton/datasets.py
vuillaut/DeepIntegralCompton
f7f6811401d6b234a615742e4f6d22ac46e91b2f
[ "MIT" ]
1
2021-12-06T16:35:20.000Z
2021-12-06T16:35:20.000Z
deepcompton/datasets.py
vuillaut/DeepIntegralCompton
f7f6811401d6b234a615742e4f6d22ac46e91b2f
[ "MIT" ]
1
2021-12-07T00:45:31.000Z
2021-12-08T09:13:45.000Z
deepcompton/datasets.py
vuillaut/DeepIntegralCompton
f7f6811401d6b234a615742e4f6d22ac46e91b2f
[ "MIT" ]
2
2021-12-06T16:43:46.000Z
2021-12-06T16:49:54.000Z
from pathlib import Path from tqdm.auto import tqdm import numpy as np import pickle import os from astropy.table import Table import pickle as pkl from multiprocessing import Pool, Manager from threading import Lock from .cones import make_cone_density from .utils import load_data from .cones import make_cone from .c...
32.779817
110
0.579905
fcaa592b6882acffb9ec4879609d7c3e669756be
4,042
py
Python
src/models/Classifier.py
ChristianCKKoch/Repo_1
372a6a2fe7ce5b7c4ec8a238769f9807d4f0dc35
[ "FTL" ]
null
null
null
src/models/Classifier.py
ChristianCKKoch/Repo_1
372a6a2fe7ce5b7c4ec8a238769f9807d4f0dc35
[ "FTL" ]
null
null
null
src/models/Classifier.py
ChristianCKKoch/Repo_1
372a6a2fe7ce5b7c4ec8a238769f9807d4f0dc35
[ "FTL" ]
null
null
null
from sklearn.model_selection import GridSearchCV from sklearn.neighbors import KNeighborsClassifier from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.neural_network import MLPClassifier from sklearn.svm import SVC import numpy as np import pandas as pd impo...
41.244898
144
0.504206
fcaad3bf3e2640d58347e127fd2a0d0a345cbdb7
1,477
py
Python
app/dashapp3/layout.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
1
2020-06-26T21:49:14.000Z
2020-06-26T21:49:14.000Z
app/dashapp3/layout.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
2
2020-03-31T11:11:04.000Z
2021-12-13T20:38:48.000Z
app/dashapp3/layout.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
null
null
null
import dash_core_components as dcc import dash_html_components as html import dash_table import plotly import plotly.graph_objs as go layout = html.Div([ html.H2('Top Locations of Search Terms'), html.P('Term searches may take several seconds. Please be patient.''), html.P('Twitter users are not required t...
29.54
125
0.600542
fcaafcafff4546ee54d6ae8e2bd99216ef1e02f8
653
py
Python
signalwire/relay/calling/components/fax_send.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
23
2018-12-19T14:48:18.000Z
2022-01-11T03:58:36.000Z
signalwire/relay/calling/components/fax_send.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
13
2018-10-17T12:57:54.000Z
2021-09-01T21:46:01.000Z
signalwire/relay/calling/components/fax_send.py
ramarketing/signalwire-python
c0663bdd0454faaa39f42af7c936cea1d43e1842
[ "MIT" ]
12
2020-01-21T14:29:43.000Z
2022-01-11T07:48:06.000Z
from .base_fax import BaseFax from ..constants import Method
22.517241
65
0.658499
fcab06e89cd69672bbc46114c13bda3689be495e
658
py
Python
Prog4comp-SL-HPL-Extra/src/brute_force_root_finder_function.py
computational-medicine/BMED360-2021
2c6052b9affedf1fee23c89d23941bf08eb2614c
[ "MIT" ]
2
2021-04-19T23:22:17.000Z
2021-04-20T14:04:58.000Z
Prog4comp-SL-HPL-Extra/src/brute_force_root_finder_function.py
computational-medicine/BMED360-2021
2c6052b9affedf1fee23c89d23941bf08eb2614c
[ "MIT" ]
null
null
null
Prog4comp-SL-HPL-Extra/src/brute_force_root_finder_function.py
computational-medicine/BMED360-2021
2c6052b9affedf1fee23c89d23941bf08eb2614c
[ "MIT" ]
2
2020-03-26T17:15:13.000Z
2020-05-25T08:10:06.000Z
if __name__ == '__main__': demo()
25.307692
63
0.475684
fcab7a79ac6036dab99cb1acc521d93b4b321ce7
265
py
Python
abc_097_b.py
YukiShinonome/AtCoder
eb994b9aa2bee65ffd7b3c0e36f624bebfba647d
[ "MIT" ]
null
null
null
abc_097_b.py
YukiShinonome/AtCoder
eb994b9aa2bee65ffd7b3c0e36f624bebfba647d
[ "MIT" ]
null
null
null
abc_097_b.py
YukiShinonome/AtCoder
eb994b9aa2bee65ffd7b3c0e36f624bebfba647d
[ "MIT" ]
null
null
null
X = int(input()) a_list = [] for s in range(1, 32): for i in range(2, 10): a = s ** i if a > 1000: break a_list.append(a) a2 = sorted(list(set(a_list)), reverse=True) for n in a2: if n <= X: print(n) break
20.384615
44
0.475472
fcaed27722a9660f38f131ecde2a5f85a803f929
91
py
Python
django_web_app/telegram/apps.py
alexzanderr/django_web_app
2e4d0774510072bbaf4fef3c2858e9e94e3f39f3
[ "MIT" ]
null
null
null
django_web_app/telegram/apps.py
alexzanderr/django_web_app
2e4d0774510072bbaf4fef3c2858e9e94e3f39f3
[ "MIT" ]
44
2020-05-13T20:15:26.000Z
2022-03-04T02:58:58.000Z
django_web_app/telegram/apps.py
alexzanderr/django_web_app
2e4d0774510072bbaf4fef3c2858e9e94e3f39f3
[ "MIT" ]
4
2020-06-05T17:59:52.000Z
2021-02-06T19:09:43.000Z
from django.apps import AppConfig
15.166667
33
0.758242
fcaefb63b2e317396f8df75fa5285c09094f179f
579
py
Python
Sorting/sort list strings with numbers.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
Sorting/sort list strings with numbers.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
Sorting/sort list strings with numbers.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # items = ['KMS1.kmch.pos.out_dE_%s.mx' % i for i in range(20)] # import random random.shuffle(items) print(items) # print(sorted(items)) print() print(sorted(items, key=get_number_1)) print(sorted(items, key=get_number_2))
17.545455
61
0.682211
fcb05adc2cd8fa6c070a1e0a8534bb981f26cc55
2,773
py
Python
djangocms_charts/migrations/0002_add_chart_position.py
l1f7/djangocms-charts
6de3d35758da39bda175406817ddbd1b0b0d5c59
[ "MIT" ]
5
2019-04-14T01:28:22.000Z
2020-11-09T10:48:13.000Z
djangocms_charts/migrations/0002_add_chart_position.py
mcldev/djangocms-charts
3c10286612af5b2f6179af8e7dc7e10407fe6f6e
[ "MIT" ]
1
2017-07-11T19:08:01.000Z
2018-12-22T15:38:39.000Z
djangocms_charts/migrations/0002_add_chart_position.py
mcldev/djangocms-charts
3c10286612af5b2f6179af8e7dc7e10407fe6f6e
[ "MIT" ]
4
2019-07-05T05:36:53.000Z
2021-01-08T17:04:59.000Z
from django.db import migrations, models
36.973333
95
0.611973
fcb28f8d9ab5b790dfd756ae43ed020b951ebf7e
2,689
py
Python
heightmaptilemaker/heightmap/heightmap.py
ulrichji/HeightmapTileMaker
b817f3e39beb383fcb54e8c5ce29666a202dce04
[ "MIT" ]
null
null
null
heightmaptilemaker/heightmap/heightmap.py
ulrichji/HeightmapTileMaker
b817f3e39beb383fcb54e8c5ce29666a202dce04
[ "MIT" ]
7
2019-08-10T10:35:59.000Z
2022-03-12T00:49:24.000Z
heightmaptilemaker/heightmap/heightmap.py
ulrichji/HeightmapTileMaker
b817f3e39beb383fcb54e8c5ce29666a202dce04
[ "MIT" ]
null
null
null
import geo.geo_utils import geo.raster_lookup from progress.null_callback import NullCallback from progress.progress import Progress import glob import numpy as np
34.037975
101
0.593901
fcb5031213b77f76c4941cf91243b5919e3974dd
406
py
Python
python_tutorials/sets.py
bionikspoon/HackerRank
d896009019811b926a4404df005fc7ea0184c505
[ "MIT" ]
null
null
null
python_tutorials/sets.py
bionikspoon/HackerRank
d896009019811b926a4404df005fc7ea0184c505
[ "MIT" ]
null
null
null
python_tutorials/sets.py
bionikspoon/HackerRank
d896009019811b926a4404df005fc7ea0184c505
[ "MIT" ]
null
null
null
if __name__ == '__main__': set_m, set_n = get_stdin() set_m = set(set_m) set_n = set(set_n) result = [] result.extend(set_m.difference(set_n)) result.extend(set_n.difference(set_m)) print "\n".join(sorted(result, key=lambda x: int(x)))
25.375
57
0.633005
fcb5c152d09a0048b13ae6ac86607f09ed887da3
661
py
Python
release/stubs.min/Revit/References.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Revit/References.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Revit/References.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Revit.References calls itself References # from RevitNodes,Version=1.2.1.3083,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes
22.033333
108
0.665658
fcb6327d7e4cb1ae556990fbbdbb879671eea3d2
5,479
py
Python
wukong/master/dbserver.py
fakewen/Monitoring-branch
cb5516d7cd4eaac3f88f32dc37fdff622f3a6655
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
wukong/master/dbserver.py
fakewen/Monitoring-branch
cb5516d7cd4eaac3f88f32dc37fdff622f3a6655
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
wukong/master/dbserver.py
fakewen/Monitoring-branch
cb5516d7cd4eaac3f88f32dc37fdff622f3a6655
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#!/usr/bin/python # vim: ts=2 sw=2 expandtab # author: Penn Su import dateutil.parser from gevent import monkey; monkey.patch_all() import gevent import serial import platform import os, sys, zipfile, re, time import tornado.ioloop, tornado.web import tornado.template as template import simplejson as json from jinja2...
27.258706
94
0.72203
fcb68d16453fb5101d45f636d0ea5b6b5bc6c1f4
2,644
py
Python
cata/utils/train_mnist_classifier.py
seblee97/student_teacher_catastrophic
9baaaf2850025ba9cf33d61c42386bc4c3b2dad2
[ "MIT" ]
2
2021-09-13T01:44:09.000Z
2021-12-11T11:56:49.000Z
cata/utils/train_mnist_classifier.py
seblee97/student_teacher_catastrophic
9baaaf2850025ba9cf33d61c42386bc4c3b2dad2
[ "MIT" ]
8
2020-11-13T18:37:30.000Z
2022-02-15T15:11:51.000Z
cata/utils/train_mnist_classifier.py
seblee97/student_teacher_catastrophic
9baaaf2850025ba9cf33d61c42386bc4c3b2dad2
[ "MIT" ]
null
null
null
from collections import deque from typing import Dict import numpy as np import torch import torch.nn as nn from components.data_modules import MNISTDigitsData from models.networks.base_network import Model from utils import Parameters
31.47619
97
0.668306
fcb6ba9fbf1fe84bcdb66d58d9f8a16155d29a5d
428
bzl
Python
bazel/docker/initialize.bzl
mlab-lattice/lattice
8ad7070f7c0c5d2a24373b59567797afd669201f
[ "Apache-2.0" ]
1
2018-10-01T17:33:36.000Z
2018-10-01T17:33:36.000Z
bazel/docker/initialize.bzl
mlab-lattice/lattice
8ad7070f7c0c5d2a24373b59567797afd669201f
[ "Apache-2.0" ]
59
2018-08-23T17:07:35.000Z
2018-10-09T15:55:05.000Z
bazel/docker/initialize.bzl
mlab-lattice/lattice
8ad7070f7c0c5d2a24373b59567797afd669201f
[ "Apache-2.0" ]
3
2018-10-09T05:38:16.000Z
2018-10-10T16:58:57.000Z
load("@io_bazel_rules_docker//go:image.bzl", go_image_repositories="repositories") load("@io_bazel_rules_docker//container:container.bzl", container_repositories = "repositories") load("@distroless//package_manager:package_manager.bzl", "package_manager_repositories",)
42.8
96
0.829439
fcb72511710966f2048dd76cb91f87e003997619
4,191
py
Python
postal_code.py
shinyaohtani/postalnumber
73413edcceaf922f8ec203347a01e4c6f22b6f86
[ "MIT" ]
null
null
null
postal_code.py
shinyaohtani/postalnumber
73413edcceaf922f8ec203347a01e4c6f22b6f86
[ "MIT" ]
null
null
null
postal_code.py
shinyaohtani/postalnumber
73413edcceaf922f8ec203347a01e4c6f22b6f86
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf_8 import os import csv, sqlite3 import unicodedata import pdb # 0 # 1 # 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 (3) (10) # 10 (4) (10) # 11 (10) # 12 (5) (10) # 13 (6)(012()) # 14 (0123456()) if __name__ == "__main__": main()
33.261905
95
0.47268
fcb7a2f5a8239727ba1c609b61067df5c6acae03
201
py
Python
SimCalorimetry/EcalSelectiveReadoutProducers/python/ecalDigis_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimCalorimetry/EcalSelectiveReadoutProducers/python/ecalDigis_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimCalorimetry/EcalSelectiveReadoutProducers/python/ecalDigis_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # Define EcalSelectiveReadoutProducer module as "simEcalDigis" with default settings from SimCalorimetry.EcalSelectiveReadoutProducers.ecalDigis_cfi import *
40.2
85
0.865672
fcb8cf21b29a5f272a7d618c6ac9079ebfc14c39
271
py
Python
pythran/tests/cython/setup_tax.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/cython/setup_tax.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/cython/setup_tax.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
from distutils.core import setup from Cython.Build import cythonize setup( name = "tax", ext_modules = cythonize('tax.pyx'), script_name = 'setup.py', script_args = ['build_ext', '--inplace'] ) import tax import numpy as np print(tax.tax(np.ones(10)))
18.066667
44
0.678967
fcbb4967e876f79ef65cd49337750c1525fb3e3f
8,898
py
Python
i3pystatus/weather/wunderground.py
eBrnd/i3pystatus
47e5379a20f6e636fee38b68a363705b5b6b2364
[ "MIT" ]
null
null
null
i3pystatus/weather/wunderground.py
eBrnd/i3pystatus
47e5379a20f6e636fee38b68a363705b5b6b2364
[ "MIT" ]
null
null
null
i3pystatus/weather/wunderground.py
eBrnd/i3pystatus
47e5379a20f6e636fee38b68a363705b5b6b2364
[ "MIT" ]
null
null
null
from i3pystatus import IntervalModule from i3pystatus.core.util import internet, require from datetime import datetime from urllib.request import urlopen import json import re GEOLOOKUP_URL = 'http://api.wunderground.com/api/%s/geolookup%s/q/%s.json' STATION_QUERY_URL = 'http://api.wunderground.com/api/%s/%s/q/%s.jso...
36.921162
98
0.559901
fcbdc189fa7edf338f51d136012cffd8ce4fbc2e
2,525
py
Python
lpot/ux/components/optimization/graph_optimizer/graph_optimization.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
null
null
null
lpot/ux/components/optimization/graph_optimizer/graph_optimization.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
null
null
null
lpot/ux/components/optimization/graph_optimizer/graph_optimization.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
31.17284
76
0.586139
fcbe48c1b6d6f017584d2076bf8984996243862a
7,986
py
Python
train.py
ilivans/multihead-sentiment
64be5cacaed46b745fadbc225b0c271b3146c112
[ "Apache-2.0" ]
null
null
null
train.py
ilivans/multihead-sentiment
64be5cacaed46b745fadbc225b0c271b3146c112
[ "Apache-2.0" ]
null
null
null
train.py
ilivans/multihead-sentiment
64be5cacaed46b745fadbc225b0c271b3146c112
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ Train multihead-classifier with triplet loss """ from __future__ import print_function, division import numpy as np import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split from tensorflow.contrib.layers import fully_connected from tensorflow.contrib.rnn im...
40.130653
112
0.617956
fcbe955e22ffd3a928c10c0433590b9f656475d1
656
py
Python
Logica/Decisao.py
DjCod3r/PythonScripts
95e70ebb81d2bc37b0283daff8ee723c5d2a382c
[ "MIT" ]
null
null
null
Logica/Decisao.py
DjCod3r/PythonScripts
95e70ebb81d2bc37b0283daff8ee723c5d2a382c
[ "MIT" ]
null
null
null
Logica/Decisao.py
DjCod3r/PythonScripts
95e70ebb81d2bc37b0283daff8ee723c5d2a382c
[ "MIT" ]
null
null
null
a = 15 b = 15 exp = a == b if a < b: print(f'{a} e menor que {b}') elif a > b : print(f'{a} e maior que {b}') else: print('Os valores so iguais') letra = 'l' nome = 'Djonatan l' if letra in nome: print(f'Contem {letra} no nome') else: print(f'No Contem {letra} no nome') valor = '2' valores = '8271...
16.820513
49
0.594512
fcbea55c8526f80a0db46f3a6eb3fa8a6222c7d9
1,372
py
Python
test/test_g2p.py
gantzgraf/vape
f939cb527d72d852cb0919a57332110c15c5fd4a
[ "MIT" ]
4
2020-03-25T06:09:39.000Z
2021-03-23T11:22:00.000Z
test/test_g2p.py
gantzgraf/vape
f939cb527d72d852cb0919a57332110c15c5fd4a
[ "MIT" ]
1
2020-10-02T14:50:30.000Z
2020-10-12T15:24:24.000Z
test/test_g2p.py
gantzgraf/vape
f939cb527d72d852cb0919a57332110c15c5fd4a
[ "MIT" ]
1
2021-02-20T11:32:34.000Z
2021-02-20T11:32:34.000Z
from .utils import * if __name__ == '__main__': import nose nose.run(defaultTest=__name__)
28.583333
65
0.611516
fcbf89d16af8b8207c6990c30ee128a79effbc4f
963
py
Python
src/pretalx/api/permissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/api/permissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/api/permissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
from rest_framework.permissions import SAFE_METHODS, BasePermission
37.038462
83
0.678089
fcbfaa3b37c12879317a3372ec9e016db24214d1
921
py
Python
09-problems/lc_389_find_difference.py
hamidgasmi/training.computerscience.algorithms-datastructures
bd156dd2e9ed5681d9f1e4a23f71a92d68d0db43
[ "MIT" ]
8
2020-11-15T13:55:27.000Z
2022-03-15T00:30:10.000Z
09-problems/lc_389_find_difference.py
hamidgasmi/training.computerscience.algorithms-datastructures
bd156dd2e9ed5681d9f1e4a23f71a92d68d0db43
[ "MIT" ]
217
2020-02-28T03:09:05.000Z
2020-10-29T13:19:12.000Z
09-problems/lc_389_find_difference.py
hamidgasmi/training.computerscience.algorithms-datastructures
bd156dd2e9ed5681d9f1e4a23f71a92d68d0db43
[ "MIT" ]
3
2021-07-04T06:42:14.000Z
2021-11-20T17:56:48.000Z
""" 1. Problem Summary / Clarifications / TDD: output("abcd", "abecd") = "e" 2. Inuition: xor operator 3. Tests: output("abcd", "abecd") = "e": The added character is in the middle of t output("abcd", "abcde") = "e": The added character is at the end of t ou...
27.909091
83
0.500543
fcbfc073469b07dd98a14e4c9164c0fd8b5cd461
75
py
Python
stackstrap/__init__.py
movermeyer/stackstrap
daa942ba83c2f3183628a4dc84e8ea221ff49eb6
[ "Apache-2.0" ]
3
2015-04-19T09:36:49.000Z
2017-02-08T23:41:22.000Z
stackstrap/__init__.py
movermeyer/stackstrap
daa942ba83c2f3183628a4dc84e8ea221ff49eb6
[ "Apache-2.0" ]
1
2021-03-25T21:27:19.000Z
2021-03-25T21:27:19.000Z
stackstrap/__init__.py
movermeyer/stackstrap
daa942ba83c2f3183628a4dc84e8ea221ff49eb6
[ "Apache-2.0" ]
2
2015-05-22T08:25:54.000Z
2018-03-05T00:33:25.000Z
__version__ = '0.2.2' __url__ = 'https://github.com/stackstrap/stackstrap'
25
52
0.733333
fcc0f56a45f5b3a3367ff9b76d42059153256b5a
927
py
Python
app/ratelimit/time_bucketed.py
mampilly/backend-global
a2248758d521bf7f136fbc5fd12902448d137b33
[ "MIT" ]
null
null
null
app/ratelimit/time_bucketed.py
mampilly/backend-global
a2248758d521bf7f136fbc5fd12902448d137b33
[ "MIT" ]
null
null
null
app/ratelimit/time_bucketed.py
mampilly/backend-global
a2248758d521bf7f136fbc5fd12902448d137b33
[ "MIT" ]
null
null
null
'''Rate limiting via Redis''' import logging from datetime import timedelta from redis import Redis from app.core.database.cache import get_redis_connection from app.exceptions.application_exception import exception def rate_request(key, limit, period): """Rate request wrapping redis connection""" return requ...
29.903226
74
0.710895
fcc1a1236f02872e188e0996c48dca2fa8535f2a
471
py
Python
za/minstData/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
za/minstData/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
za/minstData/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
#%% import os os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import cv2 import numpy as np import shutil import random from zipfile import ZipFile rootPath = '..\..\dataAndModel\data\mnist\\' for file in ["train", "test"]: path = rootPath + file print(os.listdir(path)) # %% image_paths = [rootPath + 'train\\' +...
17.444444
88
0.656051
fcc25bf61c176e60b03809db70f8c5e3f540ca19
99
py
Python
yesg/__init__.py
Lienus10/yesg
46e684745d03cc82651f2f0b110222e8440f429c
[ "MIT" ]
null
null
null
yesg/__init__.py
Lienus10/yesg
46e684745d03cc82651f2f0b110222e8440f429c
[ "MIT" ]
null
null
null
yesg/__init__.py
Lienus10/yesg
46e684745d03cc82651f2f0b110222e8440f429c
[ "MIT" ]
null
null
null
from .main import get_esg_short from .main import get_esg_full from .main import get_historic_esg
19.8
34
0.838384
fcc2c6d2b9ea0e61eef4b9a727178a5fce8e5eb2
117
py
Python
Turtles.py
Comp-Sci-Principles-2018-19/chapter-2-exercises-lanoflatfaceo
7c21318193017910b63fd6d9ba47903acc89a153
[ "MIT" ]
null
null
null
Turtles.py
Comp-Sci-Principles-2018-19/chapter-2-exercises-lanoflatfaceo
7c21318193017910b63fd6d9ba47903acc89a153
[ "MIT" ]
null
null
null
Turtles.py
Comp-Sci-Principles-2018-19/chapter-2-exercises-lanoflatfaceo
7c21318193017910b63fd6d9ba47903acc89a153
[ "MIT" ]
null
null
null
import turtle wn=turtle.Screen() alex=turtle.Turtle() alex.forward(50) alex.left(90) alex.forward(30) wn.mainloop()
13
20
0.752137
fcc2e890cdc2d6542622e6ad945413e8d7cb72d0
1,136
py
Python
www/lib/components/config/shared.py
cripplet/ipfire-material-design
972dac352a097bbfe556bf4a6cad900c037cca21
[ "MIT" ]
null
null
null
www/lib/components/config/shared.py
cripplet/ipfire-material-design
972dac352a097bbfe556bf4a6cad900c037cca21
[ "MIT" ]
3
2019-07-13T08:03:22.000Z
2019-07-13T08:06:03.000Z
www/lib/components/config/shared.py
cripplet/ipfire-material-design
972dac352a097bbfe556bf4a6cad900c037cca21
[ "MIT" ]
null
null
null
import json from lib.components import shared
26.418605
83
0.551056
fcc4a1cf356c4e727ef86d0eb7b9efb497dc75cc
155
py
Python
urls.py
bellachp/DashTut
3ff19d52f34aea14a5e0c332fd18878cbf04279a
[ "MIT" ]
null
null
null
urls.py
bellachp/DashTut
3ff19d52f34aea14a5e0c332fd18878cbf04279a
[ "MIT" ]
null
null
null
urls.py
bellachp/DashTut
3ff19d52f34aea14a5e0c332fd18878cbf04279a
[ "MIT" ]
null
null
null
# urls.py # urls for dash app url_paths = { "index": '/', "home": '/home', "scatter": '/apps/scatter-test', "combo": '/apps/combo-test' }
15.5
36
0.529032
fcc70df18051c99d18be9c3e519f2a167ea0e9cb
2,695
py
Python
toga/genetic_algorithm/mutate/float.py
JPLMLIA/TOGA
81ab7264fb9df9c4ea539b77424f52af166712a6
[ "Apache-2.0" ]
null
null
null
toga/genetic_algorithm/mutate/float.py
JPLMLIA/TOGA
81ab7264fb9df9c4ea539b77424f52af166712a6
[ "Apache-2.0" ]
null
null
null
toga/genetic_algorithm/mutate/float.py
JPLMLIA/TOGA
81ab7264fb9df9c4ea539b77424f52af166712a6
[ "Apache-2.0" ]
null
null
null
""" Author: Shawn Anderson Date : 1/23/19 Brief : Notes : Copyright 2019 California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledged. """ import numpy as np import random from toga.genetic_algorithm.genetype import Mutator from toga.genetic_algorithm.mutate.genemutate import ...
26.421569
101
0.600742
fcc87ec4fa84a859d50e46156359c2558e44454c
3,040
py
Python
scoreboard_ocr/scoreboard_display.py
Nerdlytics/scoreboard_recognition
d423ce341c121f0ca93d734b264e986392134386
[ "MIT" ]
null
null
null
scoreboard_ocr/scoreboard_display.py
Nerdlytics/scoreboard_recognition
d423ce341c121f0ca93d734b264e986392134386
[ "MIT" ]
8
2020-01-19T16:04:36.000Z
2020-04-11T22:35:01.000Z
scoreboard_ocr/scoreboard_display.py
Nerdlytics/scoreboard_recognition
d423ce341c121f0ca93d734b264e986392134386
[ "MIT" ]
null
null
null
scoreboard_display = [['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25'], ['51', '50', '49', '48', '47', '46', '45', '44', '43', '42', '41', '40', '39', '38', '37', '36', '35', '34', '33', '32', '31', '30', '29', '28', '27',...
168.888889
183
0.405921
fcc8bebd9904f2f170d7f6c933311615ecd4e5f8
5,974
py
Python
services/web/server/src/simcore_service_webserver/clusters/handlers.py
sanderegg/osparc-simcore
13560a554c52b07e2aba67f77baaf4d5ba9edb90
[ "MIT" ]
null
null
null
services/web/server/src/simcore_service_webserver/clusters/handlers.py
sanderegg/osparc-simcore
13560a554c52b07e2aba67f77baaf4d5ba9edb90
[ "MIT" ]
55
2018-05-15T09:47:00.000Z
2022-03-31T06:56:50.000Z
services/web/server/src/simcore_service_webserver/clusters/handlers.py
odeimaiz/osparc-simcore
71c2fc58dcfe067487dcd75cb70298a4d6237e97
[ "MIT" ]
1
2020-04-22T15:06:58.000Z
2020-04-22T15:06:58.000Z
import logging from typing import List from aiohttp import web from models_library.clusters import Cluster from models_library.users import GroupID, UserID from pydantic import ValidationError from servicelib.aiohttp.rest_utils import extract_and_validate from servicelib.json_serialization import json_dumps from .._m...
36.876543
88
0.701373
fcc8ca73fba8ce91bc31f79a3733fd02680f3c75
1,708
py
Python
train.py
ricedatasci/workshop3-aws-floydhub
3509cac88cc3d55b3a2207d89a10441308a4c4e7
[ "MIT" ]
null
null
null
train.py
ricedatasci/workshop3-aws-floydhub
3509cac88cc3d55b3a2207d89a10441308a4c4e7
[ "MIT" ]
null
null
null
train.py
ricedatasci/workshop3-aws-floydhub
3509cac88cc3d55b3a2207d89a10441308a4c4e7
[ "MIT" ]
null
null
null
import os import numpy as np from sklearn.model_selection import StratifiedShuffleSplit from keras.callbacks import ModelCheckpoint from keras.utils import to_categorical # from plotter_callback import Plotter import smartphone6 as sm6 from models import naive as model_func SEED = 2263 np.random.seed(SEED) SPLIT = 0....
34.16
88
0.694965