hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
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
4
247
max_forks_repo_name
stringlengths
4
125
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.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
e38cacb5a536701b8b88de3d26c0ae5970c260cf
26,511
py
Python
summarize_from_feedback/query_response_model.py
lumaway/summarize-from-feedback
065ea4e1607a5822a3d78cc13a8cec63a2919c1b
[ "MIT" ]
365
2020-09-04T15:50:14.000Z
2022-03-31T04:54:32.000Z
summarize_from_feedback/query_response_model.py
ArturTtoptal/summarize-from-feedback
56b6bb613a1b58a8aa7a5e29266f65c7b980ee48
[ "CC-BY-4.0" ]
14
2020-09-06T14:52:29.000Z
2022-02-18T08:05:06.000Z
summarize_from_feedback/query_response_model.py
ArturTtoptal/summarize-from-feedback
56b6bb613a1b58a8aa7a5e29266f65c7b980ee48
[ "CC-BY-4.0" ]
60
2020-09-04T16:33:48.000Z
2022-01-28T19:01:42.000Z
import json import os import re import shutil import uuid from dataclasses import dataclass, field from typing import Callable, Optional, Set, List, Dict import blobfile as bf import numpy as np import torch from mpi4py import MPI import summarize_from_feedback from summarize_from_feedback.model_layout import ModelLa...
37.711238
165
0.629097
import json import os import re import shutil import uuid from dataclasses import dataclass, field from typing import Callable, Optional, Set, List, Dict import blobfile as bf import numpy as np import torch from mpi4py import MPI import summarize_from_feedback from summarize_from_feedback.model_layout import ModelLa...
10,461
715
527
fe6f53a11a4ce63e0af56938460e2f1d561c2562
384
py
Python
ReverseInteger.py
FreeBirdsCrew/Main_Branch
1e544b04b414e183db4e52d194732f6b0c9ec90e
[ "MIT" ]
null
null
null
ReverseInteger.py
FreeBirdsCrew/Main_Branch
1e544b04b414e183db4e52d194732f6b0c9ec90e
[ "MIT" ]
null
null
null
ReverseInteger.py
FreeBirdsCrew/Main_Branch
1e544b04b414e183db4e52d194732f6b0c9ec90e
[ "MIT" ]
null
null
null
print("123","10")
25.6
96
0.432292
def addStrings(self, num1: str, num2: str) -> str: m = max(len(num1),len(num2)) ret = '' c = 0 for i in range (-1,-(m+1),-1) : x = int(num1[i] if i >= -len(num1) else 0) + int(num2[i] if i >= -len(num2) else 0) + c d = x%10 c = x//10 ret += (str(d)) if c > 0 ...
340
0
23
9274a980711b4760f2ec48ff3702850203e8a7b7
11,035
py
Python
.dev_scripts/benchmark_regression/2-benchmark_test.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-15T07:36:04.000Z
2022-03-15T07:36:04.000Z
.dev_scripts/benchmark_regression/2-benchmark_test.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
null
null
null
.dev_scripts/benchmark_regression/2-benchmark_test.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-25T08:40:07.000Z
2022-03-25T08:40:07.000Z
import argparse import os import os.path as osp import pickle import re from collections import OrderedDict from datetime import datetime from pathlib import Path from modelindex.load_model_index import load from rich.console import Console from rich.syntax import Syntax from rich.table import Table console = Console...
32.647929
79
0.587676
import argparse import os import os.path as osp import pickle import re from collections import OrderedDict from datetime import datetime from pathlib import Path from modelindex.load_model_index import load from rich.console import Console from rich.syntax import Syntax from rich.table import Table console = Console...
10,357
0
161
1805f9763921ac17e4ac881bbcb1fd731b7b9306
27,477
py
Python
fserve.py
Sultaneous/fbomb
f933d46ecb60b365e4bb450cb0a5a3e9fcf8c33d
[ "MIT" ]
null
null
null
fserve.py
Sultaneous/fbomb
f933d46ecb60b365e4bb450cb0a5a3e9fcf8c33d
[ "MIT" ]
null
null
null
fserve.py
Sultaneous/fbomb
f933d46ecb60b365e4bb450cb0a5a3e9fcf8c33d
[ "MIT" ]
null
null
null
#!/usr/bin/python #"fserve" by Karim Sultan, September 2020 # fsend is a server (receiver) for the FBomb Protocol # It communicates with a client (fsend) to transfer a file. # This protocol makes it easy to drop f-bombs across machines. # # This design handles a single connection at a time but accepts # backlogs. It i...
36.201581
134
0.617571
#!/usr/bin/python #"fserve" by Karim Sultan, September 2020 # fsend is a server (receiver) for the FBomb Protocol # It communicates with a client (fsend) to transfer a file. # This protocol makes it easy to drop f-bombs across machines. # # This design handles a single connection at a time but accepts # backlogs. It i...
17,326
74
516
775653550cc66599795db34a5459f32d60012a36
3,161
py
Python
scripts/insertfile.py
hakuya/higu
42effd9b1a5d55bfbbc20d857b070e7b703154b3
[ "BSD-2-Clause" ]
null
null
null
scripts/insertfile.py
hakuya/higu
42effd9b1a5d55bfbbc20d857b070e7b703154b3
[ "BSD-2-Clause" ]
2
2015-11-09T01:23:30.000Z
2017-02-06T06:36:41.000Z
scripts/insertfile.py
hakuya/higu
42effd9b1a5d55bfbbc20d857b070e7b703154b3
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python import sys import os import logging log = logging.getLogger( __name__ ) logging.basicConfig() import hdbfs import higu.config MAX_TEXT_LEN = 2**18 if( __name__ == '__main__' ): import optparse parser = optparse.OptionParser( usage = 'Usage: %prog [options] files...' ) parser.add_op...
29.542056
87
0.597912
#!/usr/bin/python import sys import os import logging log = logging.getLogger( __name__ ) logging.basicConfig() import hdbfs import higu.config MAX_TEXT_LEN = 2**18 def create_album( name, text, tags ): album = h.create_album() if( name is not None ): album.add_name( name ) if( text is not N...
230
0
23
09d48716c35ce56a4cefc285681818b94df72bef
18,035
py
Python
tests/test_alias.py
cameron/datahog
815178ae576bc4b4e1994ca9fcdc0c1f854bfccf
[ "BSD-3-Clause" ]
4
2015-09-09T23:05:39.000Z
2016-10-20T15:24:58.000Z
tests/test_alias.py
cameron/datahog
815178ae576bc4b4e1994ca9fcdc0c1f854bfccf
[ "BSD-3-Clause" ]
null
null
null
tests/test_alias.py
cameron/datahog
815178ae576bc4b4e1994ca9fcdc0c1f854bfccf
[ "BSD-3-Clause" ]
null
null
null
# vim: fileencoding=utf8:et:sw=4:ts=8:sts=4 import hashlib import hmac import os import sys import unittest import datahog from datahog import error import psycopg2 sys.path.append(os.path.dirname(os.path.abspath(__file__))) import base from pgmock import * if __name__ == '__main__': unittest.main()
24.175603
79
0.522318
# vim: fileencoding=utf8:et:sw=4:ts=8:sts=4 import hashlib import hmac import os import sys import unittest import datahog from datahog import error import psycopg2 sys.path.append(os.path.dirname(os.path.abspath(__file__))) import base from pgmock import * class AliasTests(base.TestCase): def setUp(self): ...
17,138
11
574
c5b3ed774afd9eff5e1c28fcc842ea52c7084590
3,031
py
Python
LCAnumpy/lca.py
asudeeaydin/LCAversions
dd4c8abfabc45ac8af61647e48d8b115042af4fb
[ "MIT" ]
null
null
null
LCAnumpy/lca.py
asudeeaydin/LCAversions
dd4c8abfabc45ac8af61647e48d8b115042af4fb
[ "MIT" ]
null
null
null
LCAnumpy/lca.py
asudeeaydin/LCAversions
dd4c8abfabc45ac8af61647e48d8b115042af4fb
[ "MIT" ]
null
null
null
# # # Jesse Livezey 2014-04-19 # import numpy as np #Initialize settings for inference def infer(basis, stimuli, eta, lamb, nIter, adapt, coeffs=None, softThresh=0): """Infers sparse coefficients for dictionary elements when representing a stimulus using LCA algorithm. Args: basis: Dictionar...
39.881579
124
0.606071
# # # Jesse Livezey 2014-04-19 # import numpy as np #Initialize settings for inference def infer(basis, stimuli, eta, lamb, nIter, adapt, coeffs=None, softThresh=0): """Infers sparse coefficients for dictionary elements when representing a stimulus using LCA algorithm. Args: basis: Dictionar...
0
0
0
923e0b22ef247f6c85556ee41810da61a395384a
2,053
py
Python
wb/main/models/environment_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/models/environment_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/models/environment_model.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Class for ORM model described a Environment 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...
32.078125
99
0.717487
""" OpenVINO DL Workbench Class for ORM model described a Environment 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...
636
500
23
0e14fd906390d882a01ca62e4572286ae93a57c5
896
py
Python
test.py
nuukedo29/mifs
5a52cc456a95a3560a4d308d0d4cfde6231c531a
[ "Unlicense" ]
18
2020-02-25T23:36:20.000Z
2022-01-22T00:52:58.000Z
test.py
nuukedo29/mifs
5a52cc456a95a3560a4d308d0d4cfde6231c531a
[ "Unlicense" ]
5
2020-03-24T19:45:06.000Z
2021-09-03T14:39:22.000Z
test.py
nuukedo29/mifs
5a52cc456a95a3560a4d308d0d4cfde6231c531a
[ "Unlicense" ]
1
2020-05-29T23:34:25.000Z
2020-05-29T23:34:25.000Z
import os import glob import subprocess import re if __name__ == "__main__": glob_remove("_test/*_mifs.*") for file in glob.glob("_test/*"): glob_remove("_test/*_mifs.*") output = run(f'py mifs.py "{file}"') filename, extension = os.path.splitext(os.path.basename(file)) output_file = glob.glob(f'_test/*_...
28
132
0.677455
import os import glob import subprocess import re def run(command): return subprocess.Popen( command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, encoding="utf8" ).stdout.read() def glob_remove(pattern): for file in glob.glob(pattern): os.remove(file) if __name__ =...
208
0
46
ef7de3adb0d7c1e4243288d966644861df8a7b96
7,040
py
Python
drf_firebase_token_auth/authentication.py
ronhe/drf-firebase-token-auth
c696569be5afd307a8d8ede75e1a64b099c568cf
[ "MIT" ]
9
2020-10-11T14:11:43.000Z
2022-03-24T19:25:33.000Z
drf_firebase_token_auth/authentication.py
Arka-cell/drf-firebase-token-auth
061c074598a8cfbe3cea1405f8607c6e1a7a7e55
[ "MIT" ]
2
2021-03-04T15:20:35.000Z
2022-03-02T15:18:16.000Z
drf_firebase_token_auth/authentication.py
Arka-cell/drf-firebase-token-auth
061c074598a8cfbe3cea1405f8607c6e1a7a7e55
[ "MIT" ]
3
2021-03-03T20:26:39.000Z
2021-12-28T05:50:02.000Z
"""Firebase token authentication classes""" from typing import * from django.contrib import auth from django.utils import timezone from rest_framework import authentication, exceptions import firebase_admin from firebase_admin import auth as firebase_auth from .settings import api_settings from . import models FIRE...
33.684211
84
0.608239
"""Firebase token authentication classes""" from typing import * from django.contrib import auth from django.utils import timezone from rest_framework import authentication, exceptions import firebase_admin from firebase_admin import auth as firebase_auth from .settings import api_settings from . import models FIRE...
433
0
27
28461ea07e161a5864fe9b05a35a864f7f0eb1c7
1,146
py
Python
NeuNorm/loader.py
ornlneutronimaging/normalization
e38b3023145e8c7af69d0854cc2ad27921f1b436
[ "BSD-3-Clause" ]
2
2022-03-16T02:15:37.000Z
2022-03-16T15:41:39.000Z
NeuNorm/loader.py
ornlneutronimaging/normalization
e38b3023145e8c7af69d0854cc2ad27921f1b436
[ "BSD-3-Clause" ]
7
2018-07-31T12:31:04.000Z
2022-03-15T20:11:03.000Z
NeuNorm/loader.py
ornlneutronimaging/normalization
e38b3023145e8c7af69d0854cc2ad27921f1b436
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from astropy.io import fits import numpy as np from PIL import Image def load_hdf(file_name): '''load HDF image Parameters ---------- full file name of HDF5 file ''' hdf = h5py.File(path,'r')['entry']['data']['data'].value tmp = [] for iScan in hdf: ...
22.470588
66
0.56719
from pathlib import Path from astropy.io import fits import numpy as np from PIL import Image def load_hdf(file_name): '''load HDF image Parameters ---------- full file name of HDF5 file ''' hdf = h5py.File(path,'r')['entry']['data']['data'].value tmp = [] for iScan in hdf: ...
0
0
0
cb9d29cd627e2e3a9d520cd64506b7db86d79a2d
5,086
py
Python
Minimizing-Financial-Loss/scripts/xgboost_search.py
PaulAdams4361/Quantifying-the-World
d923f482941c8fd4269ff474125d509f591fd2d6
[ "MIT" ]
null
null
null
Minimizing-Financial-Loss/scripts/xgboost_search.py
PaulAdams4361/Quantifying-the-World
d923f482941c8fd4269ff474125d509f591fd2d6
[ "MIT" ]
null
null
null
Minimizing-Financial-Loss/scripts/xgboost_search.py
PaulAdams4361/Quantifying-the-World
d923f482941c8fd4269ff474125d509f591fd2d6
[ "MIT" ]
2
2020-12-12T16:01:23.000Z
2021-01-05T04:54:09.000Z
import warnings import pandas as pd import numpy as np from scipy import stats import matplotlib.pyplot as plt import seaborn as sns from xgboost import XGBClassifier from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder from sklearn.impute import KNNImputer, SimpleImpu...
30.45509
111
0.67381
import warnings import pandas as pd import numpy as np from scipy import stats import matplotlib.pyplot as plt import seaborn as sns from xgboost import XGBClassifier from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder from sklearn.impute import KNNImputer, SimpleImpu...
0
0
0
0a0fa115e7f6e6e42463efd615e422c2f9db3236
2,789
py
Python
manipularDadosCovid/ManDadosCovid/sistema.py
SkiereszDiego/Learning-Python
883f561ca5fc2eb4d4c74c7337d52c13e193db9f
[ "MIT" ]
null
null
null
manipularDadosCovid/ManDadosCovid/sistema.py
SkiereszDiego/Learning-Python
883f561ca5fc2eb4d4c74c7337d52c13e193db9f
[ "MIT" ]
null
null
null
manipularDadosCovid/ManDadosCovid/sistema.py
SkiereszDiego/Learning-Python
883f561ca5fc2eb4d4c74c7337d52c13e193db9f
[ "MIT" ]
null
null
null
import interface import arquivo import classes from time import sleep #Ler os Arquivos txt. arquivo.carregarArqEst() arquivo.carregarArqCid() #Funcoes #Menu while True: resposta = interface.menu(['Finalizar o Programa', 'Cadastrar Estados', 'Cadastrar Cidades', 'Relatório de Estados', 'Rela...
32.057471
176
0.603084
import interface import arquivo import classes from time import sleep #Ler os Arquivos txt. arquivo.carregarArqEst() arquivo.carregarArqCid() #Funcoes def cadastroDeEstado(): interface.cabecalho('Novo Estado') est = classes.Estado(input('Estado: '),input('Sigla: ')) a = False #bandeira ...
1,814
0
123
38182b04869d458fec66bdda280dda46870fee4c
8,288
py
Python
hw3/code/A3a.py
bobbydyr/CSE546-Machine-Learning
c3f7e487b60506acfa7886d7cc64dfa61550ee4b
[ "MIT" ]
null
null
null
hw3/code/A3a.py
bobbydyr/CSE546-Machine-Learning
c3f7e487b60506acfa7886d7cc64dfa61550ee4b
[ "MIT" ]
null
null
null
hw3/code/A3a.py
bobbydyr/CSE546-Machine-Learning
c3f7e487b60506acfa7886d7cc64dfa61550ee4b
[ "MIT" ]
null
null
null
# A3.b1 import numpy as np import matplotlib.pyplot as plt n = 30 # np.random.seed(1) x = np.random.uniform(0,1,n) x_mean = np.mean(x) x_sd = np.std(x) # x = (x-x_mean) # x after standardization y = 4*np.sin(np.pi*x)*np.cos(6*np.pi*(x**2)) + np.random.standard_normal(n) # y = (y - x_mean) / x_sd error_validation_li...
37.165919
119
0.671573
# A3.b1 import numpy as np import matplotlib.pyplot as plt n = 30 # np.random.seed(1) x = np.random.uniform(0,1,n) x_mean = np.mean(x) x_sd = np.std(x) # x = (x-x_mean) # x after standardization y = 4*np.sin(np.pi*x)*np.cos(6*np.pi*(x**2)) + np.random.standard_normal(n) # y = (y - x_mean) / x_sd def k_poly(x, z, d):...
93
0
45
c0ac61a4e74441ae23403208689b3a59c5bea08f
6,745
py
Python
CI/machinery/mksenv.py
siconos/siconos-deb
2739a23f23d797dbfecec79d409e914e13c45c67
[ "Apache-2.0" ]
null
null
null
CI/machinery/mksenv.py
siconos/siconos-deb
2739a23f23d797dbfecec79d409e914e13c45c67
[ "Apache-2.0" ]
null
null
null
CI/machinery/mksenv.py
siconos/siconos-deb
2739a23f23d797dbfecec79d409e914e13c45c67
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Make software environment from a yml database. # import getopt import yaml import sys import shlex def get_entry(spec=None, distrib=None, distrib_version=None, pkg=None, section=None): """ Get one entry with precedence distrib with version > distrib > match d...
24.70696
78
0.540549
#!/usr/bin/env python # # Make software environment from a yml database. # import getopt import yaml import sys import shlex def usage(): print(""" {0} [--pkg=<pkg>] [--pkgs=<pkg1,pkg2>,...] [--script] \ [--docker] [--vagrant] [--split=...] [--distrib=...] \ /path/to/<example>.yml""".format(sys.argv[0])) ...
251
35
115
83537dff1b05b68d9e65ac5753b5bce5987f3a53
2,821
py
Python
sdk/python/pulumi_controltower/config/outputs.py
VMGVentures/pulumi-provider-controltower
e6ff7ad77abb71ae6d88e1f59e80ea2fd66913ae
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_controltower/config/outputs.py
VMGVentures/pulumi-provider-controltower
e6ff7ad77abb71ae6d88e1f59e80ea2fd66913ae
[ "ECL-2.0", "Apache-2.0" ]
13
2022-02-28T18:54:28.000Z
2022-03-31T13:41:28.000Z
sdk/python/pulumi_awscontroltower/config/outputs.py
jaxxstorm/pulumi-awscontroltower
1e8af1c6b0add6bb0cbf54b321e4903b954562dc
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
33.583333
87
0.633463
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
1,779
632
22
0655a4c447c4ef9a6d1b4fa93c734e3a2ba6774d
13,555
py
Python
src/pygamescratch/sprite.py
jetwang/pygame-scratch
acb109437e444f3d628a49b67073a99608e23871
[ "MIT" ]
1
2021-11-13T14:39:11.000Z
2021-11-13T14:39:11.000Z
src/pygamescratch/sprite.py
jetwang/pygame-scratch
acb109437e444f3d628a49b67073a99608e23871
[ "MIT" ]
null
null
null
src/pygamescratch/sprite.py
jetwang/pygame-scratch
acb109437e444f3d628a49b67073a99608e23871
[ "MIT" ]
null
null
null
import random from pygamescratch.pygs import *
27.948454
143
0.55699
import random from pygamescratch.pygs import * class Sprite(object): def __init__(self, sprite_name, center_x=0, center_y=0): """ 定义一个角色对象 :param sprite_name: 角色名称,该名称也对应default_sprite_image_folder定义的文件夹下面的角色图片所在的文件夹 :param center_x: :param center_y: """ py...
684
14,048
23
78a38fa2f190b597d2a9d9f2355b5ecb608c896f
6,287
py
Python
cdk/python/sample/more.py
bilardi/aws-tool-comparison
0baf265be2e4690f966047a10b5e9ca2107ed7b8
[ "MIT" ]
null
null
null
cdk/python/sample/more.py
bilardi/aws-tool-comparison
0baf265be2e4690f966047a10b5e9ca2107ed7b8
[ "MIT" ]
null
null
null
cdk/python/sample/more.py
bilardi/aws-tool-comparison
0baf265be2e4690f966047a10b5e9ca2107ed7b8
[ "MIT" ]
null
null
null
"""The class for managing more environment The class requires the follow properties: 'id' (str): the suffix name of resource created 'ec2_params' (dict): the dictionary of the EC2 custom parameters 'lambda_params' (dict): the dictionary of the Lambda custom parameters All properties are mandatory. See the...
41.091503
112
0.60299
"""The class for managing more environment The class requires the follow properties: 'id' (str): the suffix name of resource created 'ec2_params' (dict): the dictionary of the EC2 custom parameters 'lambda_params' (dict): the dictionary of the Lambda custom parameters All properties are mandatory. See the...
4,568
1,087
23
e4168a690bb9436fa0955ac0ac0951214d2f625a
7,188
py
Python
nbgrader/apps/listapp.py
ellisonbg/nbgrader
038d381d82925ae60a71596e29bbd867c85afe7f
[ "BSD-3-Clause-Clear" ]
null
null
null
nbgrader/apps/listapp.py
ellisonbg/nbgrader
038d381d82925ae60a71596e29bbd867c85afe7f
[ "BSD-3-Clause-Clear" ]
null
null
null
nbgrader/apps/listapp.py
ellisonbg/nbgrader
038d381d82925ae60a71596e29bbd867c85afe7f
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import glob import shutil import re import json from traitlets import Bool from .baseapp import TransferApp, transfer_aliases, transfer_flags aliases = {} aliases.update(transfer_aliases) aliases.update({ }) flags = {} flags.update(transfer_flags) flags.update({ 'inbound': ( {'ListApp' : {'in...
32.378378
126
0.586394
import os import glob import shutil import re import json from traitlets import Bool from .baseapp import TransferApp, transfer_aliases, transfer_flags aliases = {} aliases.update(transfer_aliases) aliases.update({ }) flags = {} flags.update(transfer_flags) flags.update({ 'inbound': ( {'ListApp' : {'in...
3,040
3,391
23
b7c49394c6adc665a2f9cfffd797b04259b5eb28
2,311
py
Python
bot.py
tusharmverma/bot_for_twitch
4bf41ff741d272570c717cf41652514e48ba4942
[ "MIT" ]
null
null
null
bot.py
tusharmverma/bot_for_twitch
4bf41ff741d272570c717cf41652514e48ba4942
[ "MIT" ]
null
null
null
bot.py
tusharmverma/bot_for_twitch
4bf41ff741d272570c717cf41652514e48ba4942
[ "MIT" ]
null
null
null
import socket import re import yaml from time import sleep config = yaml.safe_load(open('config.yml', 'rb')) HOST = config['HOST'] PORT = config['PORT'] NICK = config['NICK'] PASS = config['PASS'] class Bot(object): """"""
30.012987
81
0.566854
import socket import re import yaml from time import sleep config = yaml.safe_load(open('config.yml', 'rb')) HOST = config['HOST'] PORT = config['PORT'] NICK = config['NICK'] PASS = config['PASS'] class Bot(object): """""" def __init__(self, channel, n_msg_per_sec=100): super(Bot, self).__init__() ...
1,864
0
215
ab05609a631f784c6cf8c377f350401d4e824216
585
py
Python
setup.py
Aratz/arteria-runfolder
1b77bc1995443fc8394d7dfe24f5b8d26240f8a2
[ "MIT" ]
5
2016-06-10T04:03:57.000Z
2018-10-10T14:31:45.000Z
setup.py
Aratz/arteria-runfolder
1b77bc1995443fc8394d7dfe24f5b8d26240f8a2
[ "MIT" ]
16
2015-08-27T12:55:14.000Z
2022-01-25T12:47:11.000Z
setup.py
Aratz/arteria-runfolder
1b77bc1995443fc8394d7dfe24f5b8d26240f8a2
[ "MIT" ]
12
2015-08-24T14:53:58.000Z
2022-01-21T16:09:56.000Z
from setuptools import setup, find_packages from runfolder import __version__ import os setup( name='runfolder', version=__version__, description="Microservice for managing runfolders", long_description=read_file('README.md'), keywords='bioinformatics', author='SNP&SEQ Technology Platform, Upps...
27.857143
70
0.726496
from setuptools import setup, find_packages from runfolder import __version__ import os def read_file(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='runfolder', version=__version__, description="Microservice for managing runfolders", long_description=read_f...
71
0
23
5909b0006168cddba964eb1409d2370a6aa4977f
48
py
Python
django_jekyll/__init__.py
steinbachr/django-jekyll
91ec91d20b68d36d7ebdf2894ac8cbc6ab5f434e
[ "MIT" ]
2
2017-04-30T11:13:13.000Z
2017-04-30T14:32:10.000Z
django_jekyll/__init__.py
MeanPug/django-jekyll
91ec91d20b68d36d7ebdf2894ac8cbc6ab5f434e
[ "MIT" ]
2
2017-04-30T17:59:57.000Z
2017-04-30T18:02:13.000Z
django_jekyll/__init__.py
steinbachr/django-jekyll
91ec91d20b68d36d7ebdf2894ac8cbc6ab5f434e
[ "MIT" ]
2
2017-06-28T12:49:09.000Z
2018-09-21T20:53:04.000Z
from django_jekyll.lib.configparse import config
48
48
0.895833
from django_jekyll.lib.configparse import config
0
0
0
bc9ce8b80cc8609b5751135948e4cc3e637373e2
2,678
py
Python
jazzband/admin.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
jazzband/admin.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
jazzband/admin.py
tipabu/jazzband-website
30102e87348924eb56b610e74609a3475d3a14de
[ "MIT" ]
null
null
null
from flask import redirect, url_for, request, session from flask_admin import Admin, AdminIndexView, expose from flask_admin.contrib import sqla from flask_login import current_user from .auth import current_user_is_roadie from .db import postgres from .account.models import OAuth from .members.models import User, Ema...
27.895833
75
0.684093
from flask import redirect, url_for, request, session from flask_admin import Admin, AdminIndexView, expose from flask_admin.contrib import sqla from flask_login import current_user from .auth import current_user_is_roadie from .db import postgres from .account.models import OAuth from .members.models import User, Ema...
917
1,075
237
c7a999c40576c5ff6e73081dfe8a7e715790c23f
84
py
Python
Python-Django-2016/Python/Clase3/exceptions.py
juandc/platzi-courses
27443bdb40a35100b9c839e2d598bc3cf4e43032
[ "MIT" ]
3
2017-09-14T23:14:21.000Z
2018-03-22T20:07:37.000Z
Python-Django-2016/Python/Clase3/exceptions.py
juandc/platzi-courses
27443bdb40a35100b9c839e2d598bc3cf4e43032
[ "MIT" ]
null
null
null
Python-Django-2016/Python/Clase3/exceptions.py
juandc/platzi-courses
27443bdb40a35100b9c839e2d598bc3cf4e43032
[ "MIT" ]
null
null
null
try: 6/0 except Exception as e: print "%s" % e raise e print "Despues"
10.5
22
0.571429
try: 6/0 except Exception as e: print "%s" % e raise e print "Despues"
0
0
0
06cd33af3283f896360712c3372c2c52913a5d19
786
py
Python
Serveur.py
Divulgacheur/ScanIP
99eb1113c3d51fb115e074f67aa690ba0a8bdf39
[ "MIT" ]
null
null
null
Serveur.py
Divulgacheur/ScanIP
99eb1113c3d51fb115e074f67aa690ba0a8bdf39
[ "MIT" ]
null
null
null
Serveur.py
Divulgacheur/ScanIP
99eb1113c3d51fb115e074f67aa690ba0a8bdf39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import socket import platform import getpass import psutil
22.457143
137
0.71883
# -*- coding: utf-8 -*- import socket import platform import getpass import psutil def lanceServeur(Nport): hote = '' port = int(Nport) connexion_principale = socket.socket(socket.AF_INET, socket.SOCK_STREAM) connexion_principale.bind((hote, port)) connexion_principale.listen(5) def servv(): print("Le ser...
683
0
23
b1e413cf03e0068f368e65c76488677a9ace07c7
1,421
py
Python
aca/tests/test_client.py
didx-xyz/yoma-oidc-bridge
7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb
[ "Apache-2.0" ]
4
2020-10-08T07:36:22.000Z
2022-02-04T12:31:31.000Z
aca/tests/test_client.py
didx-xyz/yoma-oidc-bridge
7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb
[ "Apache-2.0" ]
1
2021-04-10T08:32:42.000Z
2021-04-10T08:32:42.000Z
aca/tests/test_client.py
didx-xyz/yoma-oidc-bridge
7e3ff6ab3ea4fed01cd7d4c113c7c3b3244356eb
[ "Apache-2.0" ]
7
2021-02-10T16:04:29.000Z
2022-03-16T08:04:48.000Z
from aca.client import ACAClient
35.525
88
0.655172
from aca.client import ACAClient class TestAcaClient: url = "http://127.0.0.1" client = ACAClient(url, url, "token") def test_create_proof_request(self, requests_mock): mock_result = {"result": 0} requests_mock.post(f"{self.url}/present-proof/create-request", json=mock_result) res...
1,159
205
23
72ca50e072d353c8adb6b6f504e93496b765e4e5
3,146
py
Python
tests/hamcrest_unit_test/core/allof_test.py
rbalint/PyHamcrest
713aa08e313dba997fd8e4b7e0d3d599a72bdd72
[ "BSD-3-Clause" ]
null
null
null
tests/hamcrest_unit_test/core/allof_test.py
rbalint/PyHamcrest
713aa08e313dba997fd8e4b7e0d3d599a72bdd72
[ "BSD-3-Clause" ]
null
null
null
tests/hamcrest_unit_test/core/allof_test.py
rbalint/PyHamcrest
713aa08e313dba997fd8e4b7e0d3d599a72bdd72
[ "BSD-3-Clause" ]
null
null
null
if __name__ == "__main__": import sys sys.path.insert(0, "..") sys.path.insert(0, "../..") import unittest from hamcrest.core.core.allof import * from hamcrest.core.core.isequal import equal_to from hamcrest_unit_test.matcher_test import MatcherTest __author__ = "Jon Reid" __copyright__ = "Copyright 201...
32.43299
96
0.595677
if __name__ == "__main__": import sys sys.path.insert(0, "..") sys.path.insert(0, "../..") import unittest from hamcrest.core.core.allof import * from hamcrest.core.core.isequal import equal_to from hamcrest_unit_test.matcher_test import MatcherTest __author__ = "Jon Reid" __copyright__ = "Copyright 201...
2,423
8
292
161c35ae115f73fe788f0aaea950e88e183e8b91
20,071
py
Python
tools/gn.py
kagouda/sdk
a9d212b94aa73472824f4218a567a8e004575112
[ "BSD-3-Clause" ]
null
null
null
tools/gn.py
kagouda/sdk
a9d212b94aa73472824f4218a567a8e004575112
[ "BSD-3-Clause" ]
null
null
null
tools/gn.py
kagouda/sdk
a9d212b94aa73472824f4218a567a8e004575112
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 The Dart project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import os import shutil import subprocess import sys import time import utils HOST_OS = utils.GuessOS() HOST_ARCH ...
34.845486
83
0.584973
#!/usr/bin/env python # Copyright 2016 The Dart project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import os import shutil import subprocess import sys import time import utils HOST_OS = utils.GuessOS() HOST_ARCH ...
13,723
0
480
db12233688360f22dcf1d4689bdedc09c0930566
4,581
py
Python
lean_proof_recording/modifier.py
dselsam/lean_proof_recording
bbae0e08609f56f4203b48ef21277d9fc509c34d
[ "Apache-2.0" ]
7
2020-10-12T20:09:07.000Z
2022-03-14T14:09:07.000Z
lean_proof_recording/modifier.py
dselsam/lean_proof_recording
bbae0e08609f56f4203b48ef21277d9fc509c34d
[ "Apache-2.0" ]
1
2021-09-30T02:35:27.000Z
2021-09-30T10:11:27.000Z
lean_proof_recording/modifier.py
dselsam/lean_proof_recording
bbae0e08609f56f4203b48ef21277d9fc509c34d
[ "Apache-2.0" ]
3
2022-01-12T19:39:38.000Z
2022-03-28T10:15:38.000Z
from pathlib import Path from typing import Dict, List, Optional, Set
39.491379
91
0.557957
from pathlib import Path from typing import Dict, List, Optional, Set class LeanModifier: lean_path: Path deletions: Set[int] additions: Dict[int, List[str]] end_addition: Optional[List[str]] def __init__(self, lean_path: Path): self.lean_path = lean_path self.deletions = set() ...
664
3,823
23
c901dac9a8cb1afaa1e65b45c374f87b1bba735c
2,845
py
Python
pages/process.py
ewuerfel66/medicare_app
3e515481b5882ce74762198faa42d8fc64813305
[ "MIT" ]
null
null
null
pages/process.py
ewuerfel66/medicare_app
3e515481b5882ce74762198faa42d8fc64813305
[ "MIT" ]
null
null
null
pages/process.py
ewuerfel66/medicare_app
3e515481b5882ce74762198faa42d8fc64813305
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app column1 = dbc.Col( [ dcc.Markdown( """ ## Process This web ap...
64.659091
434
0.70123
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app import app column1 = dbc.Col( [ dcc.Markdown( """ ## Process This web ap...
0
0
0
53f55b9d3820636cb1d465d6cf8047ed4193435c
3,294
py
Python
nor2qml/validation/validationTools.py
MrCubanfrog/nor2qml
ad20ac086c191e7a2e57a7da1b71df192743554c
[ "MIT" ]
null
null
null
nor2qml/validation/validationTools.py
MrCubanfrog/nor2qml
ad20ac086c191e7a2e57a7da1b71df192743554c
[ "MIT" ]
null
null
null
nor2qml/validation/validationTools.py
MrCubanfrog/nor2qml
ad20ac086c191e7a2e57a7da1b71df192743554c
[ "MIT" ]
null
null
null
import math import logging from datetime import date nTypes = {0: "Nordic Event", 1: "Nordic Main Header", 2: "Nordic Macroseismic Header", 3: "Nordic Comment Header", 5: "Nordic Error Header", 6: "Nordic Waveform Header", 8: "Nordic Phase Data"}
28.643478
94
0.660595
import math import logging from datetime import date nTypes = {0: "Nordic Event", 1: "Nordic Main Header", 2: "Nordic Macroseismic Header", 3: "Nordic Comment Header", 5: "Nordic Error Header", 6: "Nordic Waveform Header", 8: "Nordic Phase Data"} class values(): maxInt = 9223372036854775807 def validat...
2,869
24
139
d5758350f447ec11f34faed8eb03aea196a39321
6,249
py
Python
conanfile.py
TUM-CONAN/conan-generators
227d838b12d197f41a2cb25298bc0a31c142f13c
[ "MIT" ]
null
null
null
conanfile.py
TUM-CONAN/conan-generators
227d838b12d197f41a2cb25298bc0a31c142f13c
[ "MIT" ]
null
null
null
conanfile.py
TUM-CONAN/conan-generators
227d838b12d197f41a2cb25298bc0a31c142f13c
[ "MIT" ]
null
null
null
import glob import os import shutil from conans import ConanFile from conans.model import Generator
32.21134
117
0.538166
import glob import os import shutil from conans import ConanFile from conans.model import Generator class env(Generator): def __init__(self, conanfile): super().__init__(conanfile) @property def filename(self): return "env.sh" @property def content(self): # Set environme...
5,314
666
161
db2e6b0e5e562c808cd68e220181d5607da5a025
209
py
Python
src/python/twitter/common/zookeeper/group/kazoo_cli.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
1,143
2015-01-05T04:19:24.000Z
2019-12-11T12:02:23.000Z
src/python/twitter/common/zookeeper/group/kazoo_cli.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
144
2015-01-06T05:05:07.000Z
2019-12-12T18:02:37.000Z
src/python/twitter/common/zookeeper/group/kazoo_cli.py
zhouyijiaren/commons
10df6fb63547baa9047782aa7ad4edf354914b10
[ "Apache-2.0" ]
426
2015-01-08T08:33:41.000Z
2019-12-09T13:15:40.000Z
from twitter.common import app from kazoo.client import KazooClient from twitter.common.zookeeper.group.kazoo_group import KazooGroup app.main()
16.076923
65
0.784689
from twitter.common import app from kazoo.client import KazooClient from twitter.common.zookeeper.group.kazoo_group import KazooGroup def main(): import code code.interact(local=globals()) app.main()
37
0
23
a875657ad67d487ebed163d89301717c4340b8d3
948
py
Python
dev/Gems/CloudGemComputeFarm/v1/AWS/lambda-code/ServiceLambda/api/cancel.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemComputeFarm/v1/AWS/lambda-code/ServiceLambda/api/cancel.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemComputeFarm/v1/AWS/lambda-code/ServiceLambda/api/cancel.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
from __future__ import print_function import boto3 import json import CloudCanvas import service from cgf_utils import aws_utils from cgf_utils import custom_resource_utils # import errors # # raise errors.ClientError(message) - results in HTTP 400 response with message # raise errors.ForbiddenRequestError(message)...
27.882353
94
0.794304
from __future__ import print_function import boto3 import json import CloudCanvas import service from cgf_utils import aws_utils from cgf_utils import custom_resource_utils # import errors # # raise errors.ClientError(message) - results in HTTP 400 response with message # raise errors.ForbiddenRequestError(message)...
166
0
22
d2159342c7d35eb7023c5f218af35daef0f7dfda
241
py
Python
src/devices/esp32-test02/deploy.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
src/devices/esp32-test02/deploy.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
src/devices/esp32-test02/deploy.py
hwinther/lanot
f6700cacb3946535081624467b746fdfd38e021d
[ "Apache-2.0" ]
null
null
null
import prometheus.tftpd ''' prime the device with: nc64 -c 192.168.4.1 9195 connect ssid:password to run: set PYTHONPATH=p:\lanot\src\core ''' files = [ 'main.py', 'test02.py' ] prometheus.tftpd.tftp_client('10.20.2.116', *files)
14.176471
51
0.680498
import prometheus.tftpd ''' prime the device with: nc64 -c 192.168.4.1 9195 connect ssid:password to run: set PYTHONPATH=p:\lanot\src\core ''' files = [ 'main.py', 'test02.py' ] prometheus.tftpd.tftp_client('10.20.2.116', *files)
0
0
0
6579a4fad4984096942abbe25e1bda1822405836
2,158
py
Python
tests/dataverk/connectors/storage/test_storage_connector_factory.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
tests/dataverk/connectors/storage/test_storage_connector_factory.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
tests/dataverk/connectors/storage/test_storage_connector_factory.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
import os import shutil import tempfile import unittest from unittest import mock from dataverk.connectors import NaisS3Connector, GoogleStorageConnector from dataverk.connectors.storage import storage_connector_factory from dataverk.connectors.storage.file_storage import FileStorageConnector from dataverk.connectors....
44.958333
122
0.656163
import os import shutil import tempfile import unittest from unittest import mock from dataverk.connectors import NaisS3Connector, GoogleStorageConnector from dataverk.connectors.storage import storage_connector_factory from dataverk.connectors.storage.file_storage import FileStorageConnector from dataverk.connectors....
1,229
286
23
fb2886108f82965094c45267d699bc69164f0202
11,853
py
Python
visuafy.py
aryanbhajanka/visuafy
407db9b9219cd7849f9a756d5123de61bb85f415
[ "MIT" ]
1
2021-11-26T15:48:54.000Z
2021-11-26T15:48:54.000Z
visuafy.py
aryanbhajanka/visuafy
407db9b9219cd7849f9a756d5123de61bb85f415
[ "MIT" ]
null
null
null
visuafy.py
aryanbhajanka/visuafy
407db9b9219cd7849f9a756d5123de61bb85f415
[ "MIT" ]
null
null
null
#Visuafy a Spotify visualiser by Aryan Bhajanka from os import name from flask import Flask, request, url_for, session, redirect, render_template from flask.helpers import get_template_attribute import spotipy from spotipy.exceptions import SpotifyException from spotipy.oauth2 import SpotifyOAuth, SpotifyOauthE...
41.589474
144
0.633173
#Visuafy a Spotify visualiser by Aryan Bhajanka from os import name from flask import Flask, request, url_for, session, redirect, render_template from flask.helpers import get_template_attribute import spotipy from spotipy.exceptions import SpotifyException from spotipy.oauth2 import SpotifyOAuth, SpotifyOauthE...
10,352
0
416
7faf24164edba88fb71f7c27d65e25b1c665e48b
388
py
Python
terracommon/events/migrations/0002_eventhandler_priority.py
Terralego/terra-back
32779117ee3613b9d2e476cf445f94dbdb0f114f
[ "MIT" ]
4
2019-05-07T12:34:35.000Z
2019-11-14T10:52:11.000Z
terracommon/events/migrations/0002_eventhandler_priority.py
Terralego/terra-back
32779117ee3613b9d2e476cf445f94dbdb0f114f
[ "MIT" ]
16
2019-08-14T11:09:39.000Z
2022-02-10T07:55:31.000Z
terracommon/events/migrations/0002_eventhandler_priority.py
Terralego/terra-back
32779117ee3613b9d2e476cf445f94dbdb0f114f
[ "MIT" ]
1
2019-04-17T09:03:02.000Z
2019-04-17T09:03:02.000Z
# Generated by Django 2.0.9 on 2018-10-31 09:05 from django.db import migrations, models
20.421053
58
0.600515
# Generated by Django 2.0.9 on 2018-10-31 09:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.AddField( model_name='eventhandler', name='priority', ...
0
274
23
31cb417beee09bbcf9e26529462b9495f2bb012a
3,170
py
Python
tenable/nessus/settings.py
tecnobabble/pyTenable
29e7ee65cdee70fbaaade295a9a5055c4d80b17f
[ "MIT" ]
1
2022-03-01T17:17:19.000Z
2022-03-01T17:17:19.000Z
tenable/nessus/settings.py
tecnobabble/pyTenable
29e7ee65cdee70fbaaade295a9a5055c4d80b17f
[ "MIT" ]
null
null
null
tenable/nessus/settings.py
tecnobabble/pyTenable
29e7ee65cdee70fbaaade295a9a5055c4d80b17f
[ "MIT" ]
1
2022-03-01T17:17:30.000Z
2022-03-01T17:17:30.000Z
''' Settings ======== Methods described in this section relate to the the Settings API. These methods can be accessed at ``Nessus.settings``. .. rst-class:: hide-signature .. autoclass:: SettingsAPI :members: ''' from typing import List, Dict, Optional from typing_extensions import Literal from restfly.utils impo...
27.565217
79
0.539432
''' Settings ======== Methods described in this section relate to the the Settings API. These methods can be accessed at ``Nessus.settings``. .. rst-class:: hide-signature .. autoclass:: SettingsAPI :members: ''' from typing import List, Dict, Optional from typing_extensions import Literal from restfly.utils impo...
0
2,718
23
6ff30e1703915da6d05542e6733883640be99706
3,488
py
Python
frontend/lambda_function.py
lylus/tesla_cmds_aws_lambda_functions
b7778bb6f0172e96eba8e99916f123ba573114ee
[ "BSD-2-Clause" ]
7
2021-01-31T00:27:10.000Z
2022-03-10T07:49:06.000Z
frontend/lambda_function.py
lylus/tesla_cmds_aws_lambda_functions
b7778bb6f0172e96eba8e99916f123ba573114ee
[ "BSD-2-Clause" ]
1
2021-05-21T01:35:31.000Z
2021-05-22T14:34:23.000Z
frontend/lambda_function.py
lylus/tesla_cmds_aws_lambda_functions
b7778bb6f0172e96eba8e99916f123ba573114ee
[ "BSD-2-Clause" ]
4
2021-02-07T00:09:34.000Z
2022-03-28T14:36:25.000Z
#!/usr/bin/env python3 import boto3,json,os,urllib3
32.598131
138
0.640195
#!/usr/bin/env python3 import boto3,json,os,urllib3 def lambda_handler(event, context): ########################################### Global Variables ##################################################### BASE_URL = "https://owner-api.teslamotors.com/api/1/vehicles/" EVENT_BODY = json.loads(event["body"]) EVENT...
3,412
0
23
abc9d9fc06d605b36b30567b88698cc842fd9d4b
594
py
Python
example/echo_service.py
nightfade/protobuf-RPC
5c6084f6d5a6b9affc56cddab6413b4b662e973b
[ "MIT" ]
15
2015-04-02T08:48:18.000Z
2021-08-04T08:28:35.000Z
example/echo_service.py
nightfade/protobuf-RPC
5c6084f6d5a6b9affc56cddab6413b4b662e973b
[ "MIT" ]
2
2016-09-12T01:39:07.000Z
2021-07-22T09:31:43.000Z
example/echo_service.py
nightfade/protobuf-RPC
5c6084f6d5a6b9affc56cddab6413b4b662e973b
[ "MIT" ]
5
2018-02-09T01:41:59.000Z
2020-10-12T06:06:06.000Z
__author__ = 'nightfade' from example.echo_service_pb2 import IEchoService, IEchoClient_Stub import logger
33
73
0.718855
__author__ = 'nightfade' from example.echo_service_pb2 import IEchoService, IEchoClient_Stub import logger class EchoService(IEchoService): def echo(self, rpc_controller, echo_string, callback): """ called by RpcChannel.receive when a complete request reached. """ logger.get_logger('Echo...
0
462
23
cdf2f2fa1ca8c7e8fdb87369a49e10280581f20e
533
py
Python
core_admin/des/migrations/0033_auto_20210722_1449.py
linea-it/tno
f973381280504ceb1b606b5b3ccc79b6b8c2aa4f
[ "MIT" ]
null
null
null
core_admin/des/migrations/0033_auto_20210722_1449.py
linea-it/tno
f973381280504ceb1b606b5b3ccc79b6b8c2aa4f
[ "MIT" ]
112
2018-04-24T19:10:55.000Z
2022-02-26T16:55:02.000Z
core_admin/des/migrations/0033_auto_20210722_1449.py
linea-it/tno
f973381280504ceb1b606b5b3ccc79b6b8c2aa4f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2021-07-22 14:49 from django.db import migrations, models
28.052632
193
0.589118
# Generated by Django 2.2.13 on 2021-07-22 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('des', '0032_auto_20210713_2127'), ] operations = [ migrations.AlterField( model_name='astrometryjob', name='status'...
0
418
23
605d26591aae91ae8eef7279efb53fd4073fdf69
1,994
py
Python
unreleased/azure-keyvault/azure/keyvault/models/key_create_parameters.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
unreleased/azure-keyvault/azure/keyvault/models/key_create_parameters.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
unreleased/azure-keyvault/azure/keyvault/models/key_create_parameters.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.622642
89
0.607322
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
221
0
27
5f9c3fde3437bdd5ca9486c84e0d914fc40c75bf
12,044
py
Python
surveyor/podman.py
paradise-fi/surveyor
227a678b4f64bc79d44f77a3799bfc00a04ec9fa
[ "MIT" ]
null
null
null
surveyor/podman.py
paradise-fi/surveyor
227a678b4f64bc79d44f77a3799bfc00a04ec9fa
[ "MIT" ]
null
null
null
surveyor/podman.py
paradise-fi/surveyor
227a678b4f64bc79d44f77a3799bfc00a04ec9fa
[ "MIT" ]
null
null
null
import os import json import time import subprocess import contextlib import dateutil.parser import datetime import logging from tempfile import TemporaryDirectory # See https://github.com/containers/podman/issues/10173 CGROUP_WORKAROUND = False RUNTIME = "crun" def invokePodmanCommandPoll(command, output): """ ...
33.455556
151
0.603454
import os import json import time import subprocess import contextlib import dateutil.parser import datetime import logging from tempfile import TemporaryDirectory # See https://github.com/containers/podman/issues/10173 CGROUP_WORKAROUND = False RUNTIME = "crun" class Cgroup: def __init__(self, path=None): ...
2,547
3,530
325
5b030e5d90f4f4e54a1b5cf396607fe4b37dbf22
809
py
Python
striped/common/importer.py
ivmfnal/striped
eef1a4d544fa1b97fde39d7ee5ef779071218891
[ "BSD-3-Clause" ]
1
2019-07-01T15:19:43.000Z
2019-07-01T15:19:43.000Z
striped/common/importer.py
ivmfnal/striped
eef1a4d544fa1b97fde39d7ee5ef779071218891
[ "BSD-3-Clause" ]
null
null
null
striped/common/importer.py
ivmfnal/striped
eef1a4d544fa1b97fde39d7ee5ef779071218891
[ "BSD-3-Clause" ]
1
2020-04-21T21:18:01.000Z
2020-04-21T21:18:01.000Z
import sys, time, os
35.173913
95
0.520396
import sys, time, os def import_from_text(module_text, names, module_name=None, tmp="/tmp"): saved_path = sys.path[:] imported = None try: if not tmp in sys.path: sys.path.insert(0, tmp) module_name = module_name or "m_%s_%d" % (os.getpid(), int(time.time...
765
0
23
cc30f6cf29ac186a3c2f042722711e0d22c572f4
1,216
py
Python
script_2_inverse_optimization_step_different_costs.py
sallen7/IO_GNEP
e6f207113c857690a1d6d7b68673dba09a2dcf2a
[ "BSD-3-Clause" ]
2
2021-02-18T23:48:02.000Z
2021-10-11T09:04:09.000Z
script_2_inverse_optimization_step_different_costs.py
sallen7/IO_GNEP
e6f207113c857690a1d6d7b68673dba09a2dcf2a
[ "BSD-3-Clause" ]
null
null
null
script_2_inverse_optimization_step_different_costs.py
sallen7/IO_GNEP
e6f207113c857690a1d6d7b68673dba09a2dcf2a
[ "BSD-3-Clause" ]
null
null
null
########## Script 2: Different Costs ################### import sys from RK_IO_model import RK_IO_methods from Generalized_RK_Framework import generalized_RK_framework import pdb #for debugging import numpy as np import pyomo.environ as pyo from pyomo.opt import SolverFactory from pyomo.opt imp...
33.777778
78
0.728618
########## Script 2: Different Costs ################### import sys from RK_IO_model import RK_IO_methods from Generalized_RK_Framework import generalized_RK_framework import pdb #for debugging import numpy as np import pyomo.environ as pyo from pyomo.opt import SolverFactory from pyomo.opt imp...
0
0
0
cd022bc18d1e82e11d9448620c3bdf9ea96f5329
722
py
Python
snake_game/sprites/game_over.py
carlosjasso/pygame-snake
417f3515b2343a9ed3a1e39f7ca22159faaf3731
[ "Unlicense" ]
null
null
null
snake_game/sprites/game_over.py
carlosjasso/pygame-snake
417f3515b2343a9ed3a1e39f7ca22159faaf3731
[ "Unlicense" ]
null
null
null
snake_game/sprites/game_over.py
carlosjasso/pygame-snake
417f3515b2343a9ed3a1e39f7ca22159faaf3731
[ "Unlicense" ]
null
null
null
import pygame from pygame.font import Font from sprites import Sprite from utils.types import Color, WindowSize, SpritePosition
32.818182
77
0.635734
import pygame from pygame.font import Font from sprites import Sprite from utils.types import Color, WindowSize, SpritePosition class GameOver(Sprite): _font : Font _field : WindowSize @property def font_color(self): return Color(0, 0, 0) # HEX color #ffffff def __init__(self...
448
118
24
f3afc6269851ae3c48dc3f2cc3108ca06286db59
2,044
py
Python
apps/mancave_lights.py
jougs/yaada
5ec13e2b3828e772d4b3ca2827152d51788e7b81
[ "MIT" ]
null
null
null
apps/mancave_lights.py
jougs/yaada
5ec13e2b3828e772d4b3ca2827152d51788e7b81
[ "MIT" ]
null
null
null
apps/mancave_lights.py
jougs/yaada
5ec13e2b3828e772d4b3ca2827152d51788e7b81
[ "MIT" ]
1
2021-10-01T13:58:22.000Z
2021-10-01T13:58:22.000Z
from scene_manager import SceneManager
39.307692
108
0.521037
from scene_manager import SceneManager class MancaveLights(SceneManager): area = "Mancave" lights = { "light.mancave_ceiling_long_wall": {"state": "on", "brightness": 255}, "light.mancave_ceiling_short_wall": {"state": "on", "brightness": 255}, "light.mancave_corner_left": {"state": "...
0
1,982
23
63ba86a5e46cd7da257f1283982d4260af4086a9
1,330
py
Python
bn_rpc.py
usc-isi-bass/bn_rpc
7f896327cc8b28e0dc181989440b173429df720e
[ "MIT" ]
null
null
null
bn_rpc.py
usc-isi-bass/bn_rpc
7f896327cc8b28e0dc181989440b173429df720e
[ "MIT" ]
null
null
null
bn_rpc.py
usc-isi-bass/bn_rpc
7f896327cc8b28e0dc181989440b173429df720e
[ "MIT" ]
null
null
null
import json import os import socket import sys if len(sys.argv) != 2: print("Usage: python bn_rpyc.py <script>") exit(1) script = sys.argv[1] if os.path.exists(script): script = os.path.abspath(script) else: print("Can't find: %s" % script) exit(1) py3 = sys.version_info[0] >= 3 if not py3: i...
21.111111
55
0.554135
import json import os import socket import sys if len(sys.argv) != 2: print("Usage: python bn_rpyc.py <script>") exit(1) script = sys.argv[1] if os.path.exists(script): script = os.path.abspath(script) else: print("Can't find: %s" % script) exit(1) py3 = sys.version_info[0] >= 3 if not py3: i...
162
0
46
657662e3cf82f5f63c82a7a653c0337660555931
1,098
py
Python
server.py
maneeshd/todo-list
e8576c121f1e60d58046812d76cd8cb944d8ad59
[ "MIT" ]
null
null
null
server.py
maneeshd/todo-list
e8576c121f1e60d58046812d76cd8cb944d8ad59
[ "MIT" ]
4
2021-03-10T03:50:38.000Z
2022-02-18T18:07:12.000Z
server.py
maneeshd/todo-list
e8576c121f1e60d58046812d76cd8cb944d8ad59
[ "MIT" ]
null
null
null
# ASGI server using starlette & uvicorn from starlette.applications import Starlette from starlette.responses import FileResponse from starlette.middleware import Middleware from starlette.middleware.gzip import GZipMiddleware from starlette.staticfiles import StaticFiles from os import path, getenv from uvicorn import...
28.153846
84
0.710383
# ASGI server using starlette & uvicorn from starlette.applications import Starlette from starlette.responses import FileResponse from starlette.middleware import Middleware from starlette.middleware.gzip import GZipMiddleware from starlette.staticfiles import StaticFiles from os import path, getenv from uvicorn import...
335
0
44
8510c56d0874d2ec6ff8f75f20dd9376177e88ae
6,879
py
Python
datagristle/file_io.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
datagristle/file_io.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
datagristle/file_io.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Contains standard io reading & writing code See the file "LICENSE" for the full license governing this code. Copyright 2017 Ken Farmer """ import os import sys import csv import io import random import errno from os.path import isfile from pprint import pprint from typing import Union...
30.986486
110
0.565635
#!/usr/bin/env python """ Contains standard io reading & writing code See the file "LICENSE" for the full license governing this code. Copyright 2017 Ken Farmer """ import os import sys import csv import io import random import errno from os.path import isfile from pprint import pprint from typing import Union...
4,335
1,124
131
4cc703d7689c7cc6539c5461d3ef646de5443e09
1,609
py
Python
src/apps/calendar/schema.py
creimers/graphene-advent
0160ec9b02a73679825a3a57b9b373e0b071c6d7
[ "MIT" ]
null
null
null
src/apps/calendar/schema.py
creimers/graphene-advent
0160ec9b02a73679825a3a57b9b373e0b071c6d7
[ "MIT" ]
null
null
null
src/apps/calendar/schema.py
creimers/graphene-advent
0160ec9b02a73679825a3a57b9b373e0b071c6d7
[ "MIT" ]
null
null
null
from graphene import relay, AbstractType, String from graphene_django import DjangoObjectType from graphene_django.filter import DjangoFilterConnectionField from .models import Calendar, Day class CalendarNode(DjangoObjectType): """ how does this work? """ class CalendarQuery(AbstractType): """ ...
24.378788
73
0.633313
from graphene import relay, AbstractType, String from graphene_django import DjangoObjectType from graphene_django.filter import DjangoFilterConnectionField from .models import Calendar, Day class CalendarNode(DjangoObjectType): """ how does this work? """ class Meta: model = Calendar ...
103
234
79
b0b855e6c97c9f7a10c53d2de21ef3f09b751c17
12,710
py
Python
scholar_scraper.py
albornet/ntds_2019_team_32
c5cff5ca40e9894287f30e02f74da84952ff7d6b
[ "MIT" ]
null
null
null
scholar_scraper.py
albornet/ntds_2019_team_32
c5cff5ca40e9894287f30e02f74da84952ff7d6b
[ "MIT" ]
null
null
null
scholar_scraper.py
albornet/ntds_2019_team_32
c5cff5ca40e9894287f30e02f74da84952ff7d6b
[ "MIT" ]
null
null
null
import random import time import re from urllib.request import Request, urlopen from urllib.error import HTTPError from unidecode import unidecode from nordvpn_randomizer import logIn, chooseRandom, getCountries # Used for some scientists in the list that have special characters in their names translator = {'á': ('...
51.877551
141
0.600079
import random import time import re from urllib.request import Request, urlopen from urllib.error import HTTPError from unidecode import unidecode from nordvpn_randomizer import logIn, chooseRandom, getCountries # Used for some scientists in the list that have special characters in their names translator = {'á': ('...
8,730
0
66
6e12a4570a68fba2464465c8a85e777bc5a1f367
2,080
py
Python
seagulls-rpg-demo/src/seagulls/rpg_demo/_fit_to_screen.py
codeghetti/seagulls-py
fd406a762b63368130125547f53e30672cec6754
[ "MIT" ]
2
2021-10-17T22:06:30.000Z
2022-02-10T03:15:56.000Z
seagulls-rpg-demo/src/seagulls/rpg_demo/_fit_to_screen.py
codeghetti/seagulls-py
fd406a762b63368130125547f53e30672cec6754
[ "MIT" ]
80
2021-10-10T23:45:30.000Z
2022-03-24T05:18:38.000Z
seagulls-space-shooter-demo/src/seagulls/space_shooter/_fit_to_screen.py
codeghetti/seagulls-py
fd406a762b63368130125547f53e30672cec6754
[ "MIT" ]
null
null
null
from functools import lru_cache from typing import Tuple import pygame
28.493151
89
0.650481
from functools import lru_cache from typing import Tuple import pygame class FitToScreen: @lru_cache() def get_x_boundaries(self) -> Tuple[float, float]: return ( self.get_x_padding(), self.get_x_padding() + self.get_actual_surface_width() ) @lru_cache() def ...
1,459
525
23
72ab7dc437598ea6023e67802d5de3132fc78b1c
1,195
py
Python
snapshot of face/sourcecode.py
The-SocialLion/FaceDetection_using_opencv
9cea434a0f4dc15f2333afec171a51f7e88a3e08
[ "Apache-2.0" ]
null
null
null
snapshot of face/sourcecode.py
The-SocialLion/FaceDetection_using_opencv
9cea434a0f4dc15f2333afec171a51f7e88a3e08
[ "Apache-2.0" ]
null
null
null
snapshot of face/sourcecode.py
The-SocialLion/FaceDetection_using_opencv
9cea434a0f4dc15f2333afec171a51f7e88a3e08
[ "Apache-2.0" ]
null
null
null
import cv2 import os # handling directories alg="haarcascade_frontalface_default.xml"# importing algorithm har=cv2.CascadeClassifier(alg)# reading & storing the algorithm in a variable cam=cv2.VideoCapture(0) dataset="dataset" name="sociallion" path=os.path.join(dataset,name) if not os.path.isdir(path): os.makedirs...
37.34375
111
0.699582
import cv2 import os # handling directories alg="haarcascade_frontalface_default.xml"# importing algorithm har=cv2.CascadeClassifier(alg)# reading & storing the algorithm in a variable cam=cv2.VideoCapture(0) dataset="dataset" name="sociallion" path=os.path.join(dataset,name) if not os.path.isdir(path): os.makedirs...
0
0
0
d20827c1ce6558be02d9ecd5769be7c015018cca
5,257
py
Python
wrappers/python/indy/wallet.py
nveskovic/indy-sdk
24a8b49165969cdb016c679b343eb169d004fd1d
[ "Apache-2.0" ]
null
null
null
wrappers/python/indy/wallet.py
nveskovic/indy-sdk
24a8b49165969cdb016c679b343eb169d004fd1d
[ "Apache-2.0" ]
null
null
null
wrappers/python/indy/wallet.py
nveskovic/indy-sdk
24a8b49165969cdb016c679b343eb169d004fd1d
[ "Apache-2.0" ]
null
null
null
from .libindy import do_call, create_cb from typing import Optional from ctypes import * import logging async def create_wallet(pool_name: str, name: str, xtype: Optional[str], config: Optional[str], credentials: str) ->...
33.484076
120
0.610424
from .libindy import do_call, create_cb from typing import Optional from ctypes import * import logging async def create_wallet(pool_name: str, name: str, xtype: Optional[str], config: Optional[str], credentials: str) ->...
0
0
0
f7b326676f48a33a9787afac3c35bb90f7e33e0e
23,888
py
Python
aggregator_extraction.py
guillaume-thiry/OECD-Chatbot
3c8c280b8a2cb9b1bd8314265aee933ba8abac1a
[ "MIT" ]
1
2020-09-09T12:25:13.000Z
2020-09-09T12:25:13.000Z
aggregator_extraction.py
guillaume-thiry/OECD-Chatbot
3c8c280b8a2cb9b1bd8314265aee933ba8abac1a
[ "MIT" ]
null
null
null
aggregator_extraction.py
guillaume-thiry/OECD-Chatbot
3c8c280b8a2cb9b1bd8314265aee933ba8abac1a
[ "MIT" ]
1
2021-01-19T09:30:13.000Z
2021-01-19T09:30:13.000Z
# @ Copyright Inria, Ecole Polytechnique # Shared under the MIT license https://opensource.org/licenses/mit-license.php # This file contains all the functions that are used in the comparison/aggregation detection # The main part of the code is the function find_aggregators, that will be used elsewhere in the code # ...
43.670932
176
0.477604
# @ Copyright Inria, Ecole Polytechnique # Shared under the MIT license https://opensource.org/licenses/mit-license.php # This file contains all the functions that are used in the comparison/aggregation detection # The main part of the code is the function find_aggregators, that will be used elsewhere in the code # ...
20,961
0
69
89f87c332127a666f8104861a60a4daee9b3667f
592
py
Python
src/multinavigation/conf.py
adlh/django-multinavigation
040b8f2d5857f3d1321f81c166576f46e86f56cb
[ "MIT" ]
4
2016-08-01T11:08:05.000Z
2020-09-22T20:47:27.000Z
src/multinavigation/conf.py
adlh/django-multinavigation
040b8f2d5857f3d1321f81c166576f46e86f56cb
[ "MIT" ]
4
2019-11-20T19:53:03.000Z
2020-10-20T22:41:39.000Z
src/multinavigation/conf.py
adlh/django-multinavigation
040b8f2d5857f3d1321f81c166576f46e86f56cb
[ "MIT" ]
null
null
null
from collections import namedtuple Node = namedtuple('Node', 'url_name label parent context') """ Represents a node or item in a navigation url_name -- (string) The name of a named-urlpattern label -- (string) The label to be used in the item parent -- (string) the url_name of its parent or ''. Extra kwa...
42.285714
77
0.665541
from collections import namedtuple Node = namedtuple('Node', 'url_name label parent context') """ Represents a node or item in a navigation url_name -- (string) The name of a named-urlpattern label -- (string) The label to be used in the item parent -- (string) the url_name of its parent or ''. Extra kwa...
0
0
0
8ab2d19ea32cb1db292148c9e0dbd28cf5dac977
21,856
py
Python
microsa/cellspat.py
VGeorgii/Mesa
6ae075e141e12895e7b60b5d7fa955b1802516f4
[ "MIT" ]
null
null
null
microsa/cellspat.py
VGeorgii/Mesa
6ae075e141e12895e7b60b5d7fa955b1802516f4
[ "MIT" ]
null
null
null
microsa/cellspat.py
VGeorgii/Mesa
6ae075e141e12895e7b60b5d7fa955b1802516f4
[ "MIT" ]
null
null
null
try: import numpy as np import pandas as pd from skimage import morphology from skimage.measure import regionprops from skimage.measure import label from scipy import ndimage from skimage.graph import route_through_array from scipy.ndimage import binary_closing, binary_hit_or_mis...
27.049505
281
0.553624
try: import numpy as np import pandas as pd from skimage import morphology from skimage.measure import regionprops from skimage.measure import label from scipy import ndimage from skimage.graph import route_through_array from scipy.ndimage import binary_closing, binary_hit_or_mis...
21,110
0
279
3badc8f6a19fe4797842b0da596e36fea30ea526
4,563
py
Python
tile.py
Cocodidou/projetFusee
9ce85fb3463b1039e4a2e414c055b680ba909fb8
[ "Unlicense" ]
null
null
null
tile.py
Cocodidou/projetFusee
9ce85fb3463b1039e4a2e414c055b680ba909fb8
[ "Unlicense" ]
null
null
null
tile.py
Cocodidou/projetFusee
9ce85fb3463b1039e4a2e414c055b680ba909fb8
[ "Unlicense" ]
null
null
null
# has complex polygon as tile shape, and lots of moving objects import turtle import engine import math WIDTH = 640 HEIGHT = 480 S = 25 # base unit size for ship B = 50 # base unit size for tiles GRIDCOLS = 1 + math.ceil(WIDTH / B) + 1 GRIDROWS = 1 + math.ceil(HEIGHT / B) + 1 SPEED = 3 HEADINGSTEP = 5 hea...
26.224138
72
0.674775
# has complex polygon as tile shape, and lots of moving objects import turtle import engine import math WIDTH = 640 HEIGHT = 480 S = 25 # base unit size for ship B = 50 # base unit size for tiles GRIDCOLS = 1 + math.ceil(WIDTH / B) + 1 GRIDROWS = 1 + math.ceil(HEIGHT / B) + 1 SPEED = 3 HEADINGSTEP = 5 hea...
3,085
16
299
d2bfbf45d94b686eb9237a693c5e11ec6c6ff936
225
py
Python
setup.py
Pavantelugura/mlops_main
611bcb21ef3eaa3d00e758fb2414e589d46f1396
[ "MIT" ]
null
null
null
setup.py
Pavantelugura/mlops_main
611bcb21ef3eaa3d00e758fb2414e589d46f1396
[ "MIT" ]
null
null
null
setup.py
Pavantelugura/mlops_main
611bcb21ef3eaa3d00e758fb2414e589d46f1396
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='To predict the values of wafer sensor', author='Pavantelugura', license='MIT', )
20.454545
56
0.675556
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='To predict the values of wafer sensor', author='Pavantelugura', license='MIT', )
0
0
0
4563ae23f41e867d23fff79cfb460419275a4032
11,436
py
Python
wf_psf/utils.py
tobias-liaudat/wf-psf
0ff1a12d06c46bd8599061d227785393fb528d76
[ "MIT" ]
7
2022-03-10T10:49:01.000Z
2022-03-17T16:06:12.000Z
wf_psf/utils.py
tobias-liaudat/wf-psf
0ff1a12d06c46bd8599061d227785393fb528d76
[ "MIT" ]
null
null
null
wf_psf/utils.py
tobias-liaudat/wf-psf
0ff1a12d06c46bd8599061d227785393fb528d76
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorflow_addons as tfa import PIL import zernike as zk try: from cv2 import resize, INTER_AREA except: print('Problem importing opencv..') def generate_SED_elems(SED, sim_psf_toolkit, n_bins=20): r"""Generate the SED elements needed for using the TF_p...
32.862069
211
0.649091
import numpy as np import tensorflow as tf import tensorflow_addons as tfa import PIL import zernike as zk try: from cv2 import resize, INTER_AREA except: print('Problem importing opencv..') def scale_to_range(input_array, old_range, new_range): # Scale to [0,1] input_array = (input_array - old_range[...
1,633
0
185
7d0a3fd29bde06f254172fba68a5ca944366249f
623
py
Python
src/pyfel/main/constants.py
bellaz89/pyFEL
d96bc50096d32dac4ba957f0fc022bc377232680
[ "MIT" ]
1
2021-02-24T04:31:36.000Z
2021-02-24T04:31:36.000Z
src/pyfel/main/constants.py
bellaz89/pyFEL
d96bc50096d32dac4ba957f0fc022bc377232680
[ "MIT" ]
null
null
null
src/pyfel/main/constants.py
bellaz89/pyFEL
d96bc50096d32dac4ba957f0fc022bc377232680
[ "MIT" ]
null
null
null
''' Physical constants ''' from scipy.constants import c, e, epsilon_0, physical_constants C = c ELEM_CHARGE = e VACUUM_IMPEDANCE = 1.0/(c*epsilon_0) ELECTRON_MASS_EV = physical_constants['electron mass energy equivalent in MeV'][0]*1e6 if __name__ == "__main__": print("Speed of light (m...
34.611111
86
0.605136
''' Physical constants ''' from scipy.constants import c, e, epsilon_0, physical_constants C = c ELEM_CHARGE = e VACUUM_IMPEDANCE = 1.0/(c*epsilon_0) ELECTRON_MASS_EV = physical_constants['electron mass energy equivalent in MeV'][0]*1e6 if __name__ == "__main__": print("Speed of light (m...
0
0
0
de3439a6e6098b977a450500cb7f406a47950bae
1,950
py
Python
app/main_restplus.py
hazxone/face_recognition
e015288b49941b4c81600c76464673e946245a94
[ "MIT" ]
null
null
null
app/main_restplus.py
hazxone/face_recognition
e015288b49941b4c81600c76464673e946245a94
[ "MIT" ]
null
null
null
app/main_restplus.py
hazxone/face_recognition
e015288b49941b4c81600c76464673e946245a94
[ "MIT" ]
null
null
null
''' # GET /companies/ - list all companies # POST /companies/ - Create new company # DELETE /companies/{company_id} - Delete a company by company_id # GET /companies/{company_id} - Get list of ic in company # GET /companies/{company_id}/ic/ - Get list of ic in company # POST /companies/{company...
27.464789
93
0.671795
''' # GET /companies/ - list all companies # POST /companies/ - Create new company # DELETE /companies/{company_id} - Delete a company by company_id # GET /companies/{company_id} - Get list of ic in company # GET /companies/{company_id}/ic/ - Get list of ic in company # POST /companies/{company...
379
224
44
f8e4d9b8b5905b68e4ef183cf0bab9664f046fce
6,318
py
Python
src/deepke/attribution_extraction/standard/tools/preprocess.py
hphphp123321/DeepKE
94b39a20db0d848ccea81ea56fef4587ac31e2bc
[ "MIT" ]
676
2018-08-07T03:01:32.000Z
2021-07-31T02:08:06.000Z
src/deepke/attribution_extraction/standard/tools/preprocess.py
807953261/DeepKE
f7efd3fc87d3bf88783a41efc3c09dca7a986013
[ "MIT" ]
66
2019-06-09T12:14:31.000Z
2021-07-27T05:54:35.000Z
src/deepke/attribution_extraction/standard/tools/preprocess.py
807953261/DeepKE
f7efd3fc87d3bf88783a41efc3c09dca7a986013
[ "MIT" ]
183
2018-09-07T06:57:13.000Z
2021-08-01T08:50:15.000Z
import os import logging from collections import OrderedDict from typing import List, Dict from transformers import BertTokenizer from .serializer import Serializer from .vocab import Vocab import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) from utils import save_pkl, load_csv ...
39.735849
120
0.652105
import os import logging from collections import OrderedDict from typing import List, Dict from transformers import BertTokenizer from .serializer import Serializer from .vocab import Vocab import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) from utils import save_pkl, load_csv ...
5,553
0
190
5edc2c6ddb5711b5e740c0c20e61715da9531459
2,055
py
Python
analysis/src/python/data_analysis/utils/df_utils.py
eartser/hyperstyle-analyze
58e2d361662e73e1e047919f57ab840055783b7a
[ "Apache-2.0" ]
1
2022-03-15T09:46:06.000Z
2022-03-15T09:46:06.000Z
analysis/src/python/data_analysis/utils/df_utils.py
eartser/hyperstyle-analyze
58e2d361662e73e1e047919f57ab840055783b7a
[ "Apache-2.0" ]
1
2022-02-14T13:53:38.000Z
2022-02-14T13:53:38.000Z
analysis/src/python/data_analysis/utils/df_utils.py
eartser/hyperstyle-analyze
58e2d361662e73e1e047919f57ab840055783b7a
[ "Apache-2.0" ]
3
2022-02-13T16:49:53.000Z
2022-02-17T13:53:07.000Z
from typing import Callable, Dict, List import pandas as pd from pandarallel import pandarallel def _apply_to_row(row: pd.Series, column: str, func: Callable) -> pd.Series: """ Apply `func` to data in `column` of dataframe's `raw`. """ copy_row = row.copy() copy_row[column] = func(copy_row[column]) ...
32.109375
119
0.684672
from typing import Callable, Dict, List import pandas as pd from pandarallel import pandarallel def _apply_to_row(row: pd.Series, column: str, func: Callable) -> pd.Series: """ Apply `func` to data in `column` of dataframe's `raw`. """ copy_row = row.copy() copy_row[column] = func(copy_row[column]) ...
0
0
0
a7c44c90af19ed84eb25c5b73c35daeb76b01bf2
988
py
Python
office_hours/utils.py
aiventimptner/farafmb.de
691ea0330b4b0f6e9984d75169132d5d66bb7368
[ "MIT" ]
1
2017-04-06T09:12:45.000Z
2017-04-06T09:12:45.000Z
office_hours/utils.py
aiventimptner/farafmb.de
691ea0330b4b0f6e9984d75169132d5d66bb7368
[ "MIT" ]
2
2017-09-07T22:09:50.000Z
2020-06-09T14:46:30.000Z
office_hours/utils.py
aiventimptner/farafmb.de
691ea0330b4b0f6e9984d75169132d5d66bb7368
[ "MIT" ]
null
null
null
import math from datetime import time, timedelta, datetime, date from typing import List def time_to_seconds(time_: time) -> int: """Return total seconds from time object.""" minutes = time_.hour * 60 seconds = (time_.minute + minutes) * 60 return seconds def seconds_to_time(seconds: int) -> time: ...
29.939394
98
0.676113
import math from datetime import time, timedelta, datetime, date from typing import List def time_to_seconds(time_: time) -> int: """Return total seconds from time object.""" minutes = time_.hour * 60 seconds = (time_.minute + minutes) * 60 return seconds def seconds_to_time(seconds: int) -> time: ...
0
0
0
0d74c33f8c31e07fb1098478dbf22098a1662735
1,044
py
Python
VideoObjectDetection.py
KAN-RYU/OpenCV-tutorial
76673e48a93a5cd452ec53110d9815ae339fc06d
[ "MIT" ]
1
2019-01-23T06:57:02.000Z
2019-01-23T06:57:02.000Z
VideoObjectDetection.py
KAN-RYU/OpenCV-tutorial
76673e48a93a5cd452ec53110d9815ae339fc06d
[ "MIT" ]
null
null
null
VideoObjectDetection.py
KAN-RYU/OpenCV-tutorial
76673e48a93a5cd452ec53110d9815ae339fc06d
[ "MIT" ]
null
null
null
import cv2 import numpy as np cap = cv2.VideoCapture("images/Circle.mp4") # 옵션 설명 http://layer0.authentise.com/segment-background-using-computer-vision.html fgbg = cv2.createBackgroundSubtractorMOG2(history=500, varThreshold=500, detectShadows=0) while(1): ret, frame = cap.read() fgmask = fgbg.apply(fram...
23.2
89
0.621648
import cv2 import numpy as np cap = cv2.VideoCapture("images/Circle.mp4") # 옵션 설명 http://layer0.authentise.com/segment-background-using-computer-vision.html fgbg = cv2.createBackgroundSubtractorMOG2(history=500, varThreshold=500, detectShadows=0) while(1): ret, frame = cap.read() fgmask = fgbg.apply(fram...
0
0
0
1a5ddb09f7621759c417ab1a115aaf6fc6222ace
3,987
py
Python
simple_ast.py
jjrscott/simple_ast
1a561f2aacae40d677707aa07a98d8fd395262d3
[ "MIT" ]
null
null
null
simple_ast.py
jjrscott/simple_ast
1a561f2aacae40d677707aa07a98d8fd395262d3
[ "MIT" ]
null
null
null
simple_ast.py
jjrscott/simple_ast
1a561f2aacae40d677707aa07a98d8fd395262d3
[ "MIT" ]
null
null
null
# `$ python3 simple_ast.py --help` for more information # MIT License # # Copyright (c) 2020 John Scott # # 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 with...
33.788136
144
0.64911
# `$ python3 simple_ast.py --help` for more information # MIT License # # Copyright (c) 2020 John Scott # # 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 with...
2,689
0
46
10e3ff1f48fd4d01652be7da91ddd14fa6bcfb56
193
py
Python
src/bilder/facts/has_systemd.py
mitodl/ol-configuration-management
39152a4637b219fbb00c8a6c65864532c7da295f
[ "BSD-3-Clause" ]
25
2020-07-10T21:05:43.000Z
2022-03-09T03:55:30.000Z
src/bilder/facts/has_systemd.py
mitodl/ol-infrastructure
f09912e39ff280575964a4df7c004fde58912636
[ "BSD-3-Clause" ]
423
2020-06-23T18:00:43.000Z
2022-03-31T17:44:08.000Z
src/bilder/facts/has_systemd.py
mitodl/ol-infrastructure
f09912e39ff280575964a4df7c004fde58912636
[ "BSD-3-Clause" ]
null
null
null
from pyinfra.api import FactBase
21.444444
50
0.663212
from pyinfra.api import FactBase class HasSystemd(FactBase): command = "/bin/which systemd || echo 'false'" def process(self, output): return "false" not in ",".join(output)
52
84
23
e145186692e406b8ba298d64061018c2f57cfa07
1,475
py
Python
devvyn/cache/decorator.py
devvyn/knowledge-mapper
441d34db04c8ca8892dade2a64983635e39b728c
[ "MIT" ]
1
2019-11-21T17:48:52.000Z
2019-11-21T17:48:52.000Z
devvyn/cache/decorator.py
devvyn/usask-scrape-course-prerequisites
441d34db04c8ca8892dade2a64983635e39b728c
[ "MIT" ]
8
2019-10-07T05:31:42.000Z
2019-11-29T01:31:02.000Z
devvyn/cache/decorator.py
devvyn/knowledge-mapper
441d34db04c8ca8892dade2a64983635e39b728c
[ "MIT" ]
null
null
null
""" File-based cache for text retrieved from URL-based resources. """ import typing from typeguard import typechecked from devvyn.cache.web_cache import WebCache StringFunction = typing.Callable[[str], str] @typechecked def cached(function: StringFunction) -> StringFunction: """ Wrap the decorated function...
25
77
0.633898
""" File-based cache for text retrieved from URL-based resources. """ import typing from typeguard import typechecked from devvyn.cache.web_cache import WebCache StringFunction = typing.Callable[[str], str] @typechecked def cached(function: StringFunction) -> StringFunction: """ Wrap the decorated function...
0
0
0
d224ae3942d7fe2cf77b988495ef6e28a1bf48dc
13,858
py
Python
tools/pywebsocket/src/mod_pywebsocket/util.py
shs96c/web-platform-tests
61acad6dd9bb99d32340eb41f5146de64f542359
[ "BSD-3-Clause" ]
5,964
2016-09-27T03:46:29.000Z
2022-03-31T16:25:27.000Z
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/util.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
459
2016-09-29T00:51:38.000Z
2022-03-07T14:37:46.000Z
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/util.py
w4454962/miniblink49
b294b6eacb3333659bf7b94d670d96edeeba14c0
[ "Apache-2.0" ]
1,006
2016-09-27T05:17:27.000Z
2022-03-30T02:46:51.000Z
# Copyright 2011, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
33.232614
79
0.656011
# Copyright 2011, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
6,112
6
659
280095da5d26572a0bea29e5ab3e55b2c31501d8
714
py
Python
interview/leet/22_Generate_Parentheses.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
interview/leet/22_Generate_Parentheses.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
interview/leet/22_Generate_Parentheses.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/bin/env python sol = Solution() print(sol.generateParenthesis(2)) print(sol.generateParenthesis(3)) ret = sol.generateParenthesis(4) set1 = set(ret) set2 = set(["(((())))","((()()))","((())())","((()))()","(()(()))","(()()())","(()())()","(())(())","(())()()","()((()))","()(()())","()(())()","()()(())","()()()(...
31.043478
167
0.418768
#!/usr/bin/env python class Solution: def generateParenthesis(self, n): def gen(lp, rp): if not lp: return [rp] ret = ['(' + s for s in gen(lp[1:], rp)] if len(rp) > len(lp): ret += [')' + s for s in gen(lp, rp[1:])] return ret...
289
-6
49
360d9fbf49ff044a82696ba39ee373994cd089ed
4,332
py
Python
lib/surface/compute/instances/ops_agents/policies/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/compute/instances/ops_agents/policies/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/instances/ops_agents/policies/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
38.336283
135
0.752078
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
0
0
0
d9c95a352cb49a867bdb60a894a9a28d459071ff
9,677
py
Python
salt/modules/win_network.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/modules/win_network.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
1
2015-09-02T12:49:48.000Z
2015-09-02T19:22:58.000Z
salt/modules/win_network.py
belvedere-trading/salt
0ab0aa4d79237e9309dda6f685b34e55fda06258
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for gathering and managing network information ''' from __future__ import absolute_import # Import salt libs import salt.utils import hashlib import datetime import socket import salt.utils.network import salt.utils.validate.net try: import salt.utils.winapi HAS_DEPENDENCIES...
24.876607
91
0.563294
# -*- coding: utf-8 -*- ''' Module for gathering and managing network information ''' from __future__ import absolute_import # Import salt libs import salt.utils import hashlib import datetime import socket import salt.utils.network import salt.utils.validate.net try: import salt.utils.winapi HAS_DEPENDENCIES...
0
0
0
dc3a195bef8ce5e31f2367bff5171d939b46de19
260
py
Python
tools/plot_knn.py
houwenbo87/DBSCAN
3452d32186f2b59f2f1e515cebdf0ce15cb3e2f7
[ "BSD-2-Clause-FreeBSD" ]
1
2020-09-18T22:40:39.000Z
2020-09-18T22:40:39.000Z
tools/plot_knn.py
conanhung/DBSCAN
0bf4e6a83d61b83858f270dc5fbf78cd05ca3153
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tools/plot_knn.py
conanhung/DBSCAN
0bf4e6a83d61b83858f270dc5fbf78cd05ca3153
[ "BSD-2-Clause-FreeBSD" ]
1
2020-10-09T08:24:35.000Z
2020-10-09T08:24:35.000Z
import sys import numpy as np import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': main()
20
74
0.665385
import sys import numpy as np import pandas as pd import matplotlib.pyplot as plt def main(): df = pd.read_csv(sys.argv[1], sep=',', header=None, names=['id', 'dist']) print df.shape df.plot(x='id', y='dist') plt.show() if __name__ == '__main__': main()
120
0
23
f7411193c9e74da9972af45d8cd83b30e71b72c3
1,071
py
Python
scripts/genSplitPDBlists.py
demattox/lec_gly_binding
44a12445d3ed89029a21bed1c516a67bd86e0c68
[ "MIT" ]
null
null
null
scripts/genSplitPDBlists.py
demattox/lec_gly_binding
44a12445d3ed89029a21bed1c516a67bd86e0c68
[ "MIT" ]
null
null
null
scripts/genSplitPDBlists.py
demattox/lec_gly_binding
44a12445d3ed89029a21bed1c516a67bd86e0c68
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Aug 1 16:23:55 2020 @author: dmattox """ import os import dill import lec_gly as LecGly from bSiteResiFeatures import plipFile os.chdir(LecGly.homeDir) ########################## outDir = './data/structures/bsites/batchLists/' if not os.path.exists...
24.340909
136
0.61718
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Aug 1 16:23:55 2020 @author: dmattox """ import os import dill import lec_gly as LecGly from bSiteResiFeatures import plipFile os.chdir(LecGly.homeDir) ########################## outDir = './data/structures/bsites/batchLists/' if not os.path.exists...
0
0
0
fad44c00159e65658ec515bf14d41b4a2585ac00
6,986
py
Python
examples/generative/real_nvp.py
rickiepark/keras-io
4100b155baf2934900a3262d67bb2a8b093a365b
[ "Apache-2.0" ]
3
2021-03-23T13:12:25.000Z
2022-02-25T17:25:43.000Z
examples/generative/real_nvp.py
rickiepark/keras-io
4100b155baf2934900a3262d67bb2a8b093a365b
[ "Apache-2.0" ]
1
2020-11-30T01:32:49.000Z
2020-11-30T01:32:49.000Z
examples/generative/real_nvp.py
rickiepark/keras-io
4100b155baf2934900a3262d67bb2a8b093a365b
[ "Apache-2.0" ]
2
2020-11-19T17:52:50.000Z
2020-11-19T17:52:57.000Z
""" Title: Density estimation using Real NVP Authors: [Mandolini Giorgio Maria](https://www.linkedin.com/in/giorgio-maria-mandolini-a2a1b71b4/), [Sanna Daniele](https://www.linkedin.com/in/daniele-sanna-338629bb/), [Zannini Quirini Giorgio](https://www.linkedin.com/in/giorgio-zannini-quirini-16ab181a0/) Date created: 2...
31.1875
259
0.670484
""" Title: Density estimation using Real NVP Authors: [Mandolini Giorgio Maria](https://www.linkedin.com/in/giorgio-maria-mandolini-a2a1b71b4/), [Sanna Daniele](https://www.linkedin.com/in/daniele-sanna-338629bb/), [Zannini Quirini Giorgio](https://www.linkedin.com/in/giorgio-zannini-quirini-16ab181a0/) Date created: 2...
3,243
589
46
0d4dcf4b3740e9236059bdb760a1648b29e6d370
1,533
py
Python
src/tools/lidar_integration/lidar_integration/get_open_port.py
ruvus/auto
25ae62d6e575cae40212356eed43ec3e76e9a13e
[ "Apache-2.0" ]
19
2021-05-28T06:14:21.000Z
2022-03-10T10:03:08.000Z
src/tools/lidar_integration/lidar_integration/get_open_port.py
ruvus/auto
25ae62d6e575cae40212356eed43ec3e76e9a13e
[ "Apache-2.0" ]
222
2021-10-29T22:00:27.000Z
2022-03-29T20:56:34.000Z
src/tools/lidar_integration/lidar_integration/get_open_port.py
ruvus/auto
25ae62d6e575cae40212356eed43ec3e76e9a13e
[ "Apache-2.0" ]
14
2021-05-29T14:59:17.000Z
2022-03-10T10:03:09.000Z
# Copyright 2018 the Autoware Foundation # # 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 ...
34.066667
93
0.69863
# Copyright 2018 the Autoware Foundation # # 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 ...
821
0
46
e2290dfd5b24cbc2440d18ed10b34011008f0531
4,049
py
Python
biqukan.py
Adsryen/python-spiders
005513c78e82eaa3671d584c58a35b009aa7fd01
[ "MIT" ]
31
2022-01-02T11:35:36.000Z
2022-03-26T16:56:08.000Z
biqukan.py
Adsryen/python-spiders
005513c78e82eaa3671d584c58a35b009aa7fd01
[ "MIT" ]
null
null
null
biqukan.py
Adsryen/python-spiders
005513c78e82eaa3671d584c58a35b009aa7fd01
[ "MIT" ]
12
2022-01-07T04:04:57.000Z
2022-03-29T08:22:24.000Z
#!/usr/bin/env python # encoding: utf-8 ''' #------------------------------------------------------------------- # CONFIDENTIAL --- CUSTOM STUDIOS #------------------------------------------------------------------- # # @Project Name : 下载《笔趣看》网小说 # # @File Name :...
29.992593
150
0.592245
#!/usr/bin/env python # encoding: utf-8 ''' #------------------------------------------------------------------- # CONFIDENTIAL --- CUSTOM STUDIOS #------------------------------------------------------------------- # # @Project Name : 下载《笔趣看》网小说 # # @File Name :...
171
0
23
a430d9c6cd89854194892bdfcc0be76bfaba9d11
3,178
py
Python
Professional/94/spaceInvaders.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
1
2021-12-25T02:19:18.000Z
2021-12-25T02:19:18.000Z
Professional/94/spaceInvaders.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
null
null
null
Professional/94/spaceInvaders.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
1
2021-11-25T10:31:47.000Z
2021-11-25T10:31:47.000Z
# Turtle Objects from turtle import Screen, Turtle # Game Objects from defender import Defender from invaders import Invaders from scoreboard import ScoreBoard # Utilities from time import sleep from PIL import Image, ImageTk # Initialize Screen main_screen = Screen() main_screen.title("Space Invaders") main_screen.se...
27.634783
88
0.678729
# Turtle Objects from turtle import Screen, Turtle # Game Objects from defender import Defender from invaders import Invaders from scoreboard import ScoreBoard # Utilities from time import sleep from PIL import Image, ImageTk # Initialize Screen main_screen = Screen() main_screen.title("Space Invaders") main_screen.se...
1,947
0
47
ce42292fe7c299a4af67a13cf9348d0399c5099c
1,415
py
Python
detect.py
milangeorge2000/face_attendance
90a41412ef5d0fabaa21f6246ce7243ae36d59b4
[ "Apache-2.0" ]
null
null
null
detect.py
milangeorge2000/face_attendance
90a41412ef5d0fabaa21f6246ce7243ae36d59b4
[ "Apache-2.0" ]
null
null
null
detect.py
milangeorge2000/face_attendance
90a41412ef5d0fabaa21f6246ce7243ae36d59b4
[ "Apache-2.0" ]
null
null
null
from facenet_pytorch import MTCNN, InceptionResnetV1 import torch from torchvision import datasets from torch.utils.data import DataLoader from PIL import Image mtcnn = MTCNN(image_size=240, margin=0, min_face_size=20) # initializing mtcnn for face detection resnet = InceptionResnetV1(pretrained='vggface2')...
42.878788
115
0.742756
from facenet_pytorch import MTCNN, InceptionResnetV1 import torch from torchvision import datasets from torch.utils.data import DataLoader from PIL import Image mtcnn = MTCNN(image_size=240, margin=0, min_face_size=20) # initializing mtcnn for face detection resnet = InceptionResnetV1(pretrained='vggface2')...
14
0
25
491e78ac407bddd3554ce7a1b2051d55374e1d69
6,969
py
Python
rss2kml_test.py
klokan/googlecrisismap
e31b68706f7a4921037b0e513703483f2ac3b830
[ "Apache-2.0" ]
40
2015-06-24T12:31:14.000Z
2021-01-30T23:33:54.000Z
rss2kml_test.py
klokan/googlecrisismap
e31b68706f7a4921037b0e513703483f2ac3b830
[ "Apache-2.0" ]
16
2015-07-30T14:24:42.000Z
2021-02-24T22:30:56.000Z
rss2kml_test.py
klokan/googlecrisismap
e31b68706f7a4921037b0e513703483f2ac3b830
[ "Apache-2.0" ]
27
2015-06-21T07:31:58.000Z
2021-02-12T08:47:42.000Z
#!/usr/bin/python # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
34.5
95
0.633807
#!/usr/bin/python # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
5,751
0
173
e8942f3a0705ae7acb5b7328d2889bc969c7f34c
54
py
Python
test/__init__.py
zachasme/pyresp
a363cef3435769ba86b86ac1d31576566ca3ddc9
[ "MIT" ]
3
2017-10-15T11:55:01.000Z
2018-11-04T19:29:34.000Z
test/__init__.py
zachasme/pyresp
a363cef3435769ba86b86ac1d31576566ca3ddc9
[ "MIT" ]
null
null
null
test/__init__.py
zachasme/pyresp
a363cef3435769ba86b86ac1d31576566ca3ddc9
[ "MIT" ]
null
null
null
# run these tests with python -m pytest from src/ dir
27
53
0.740741
# run these tests with python -m pytest from src/ dir
0
0
0
8551184ce4138e96c09b351cde834933ae754688
257
py
Python
Exercicios/desafio18_mathangulo.py
lbarrosandre/Resolucao-Desafios-Python
d30897d9d5cb179579fd67a70f3d74af7a3293a1
[ "MIT" ]
null
null
null
Exercicios/desafio18_mathangulo.py
lbarrosandre/Resolucao-Desafios-Python
d30897d9d5cb179579fd67a70f3d74af7a3293a1
[ "MIT" ]
null
null
null
Exercicios/desafio18_mathangulo.py
lbarrosandre/Resolucao-Desafios-Python
d30897d9d5cb179579fd67a70f3d74af7a3293a1
[ "MIT" ]
null
null
null
import math angulo = float(input('Digite um angulo: ')) sen = math.sin(math.radians(angulo)) cos = math.cos(math.radians(angulo)) tan = math.tan(math.radians(angulo)) print('O seno é {:.2f}\nO Cosseno é {:.2f}\ne a tangente é {:.2f}'.format(sen, cos, tan))
36.714286
89
0.680934
import math angulo = float(input('Digite um angulo: ')) sen = math.sin(math.radians(angulo)) cos = math.cos(math.radians(angulo)) tan = math.tan(math.radians(angulo)) print('O seno é {:.2f}\nO Cosseno é {:.2f}\ne a tangente é {:.2f}'.format(sen, cos, tan))
0
0
0
44eb49328209b2f289e9757814c4bdf802ad9c46
1,303
py
Python
Content/Scripts/debugtest.py
neo-talen/UnrealEnginePython
9a0878f7f3c1b34c0bc5c886ec14ad3356284b86
[ "MIT" ]
65
2017-02-23T12:18:02.000Z
2021-12-23T14:23:52.000Z
Content/Scripts/debugtest.py
Artisan-H3/UnrealEnginePython
9a0878f7f3c1b34c0bc5c886ec14ad3356284b86
[ "MIT" ]
8
2017-03-16T18:16:27.000Z
2019-08-07T18:07:23.000Z
Content/Scripts/debugtest.py
Artisan-H3/UnrealEnginePython
9a0878f7f3c1b34c0bc5c886ec14ad3356284b86
[ "MIT" ]
22
2017-05-04T20:53:23.000Z
2022-03-09T15:49:54.000Z
#import debugtest #import imp #imp.reload(debugtest) #Testing script for various writing setups #import redirect_print import unreal_engine as ue import time import sys import upythread as ut from threading import Thread #imp.reload(redirect_print) #the test function #test simple fire and forget #Test with callba...
18.352113
51
0.71604
#import debugtest #import imp #imp.reload(debugtest) #Testing script for various writing setups #import redirect_print import unreal_engine as ue import time import sys import upythread as ut from threading import Thread #imp.reload(redirect_print) def onfinished(args=""): ue.log(args) ue.log('finished with: <' +...
668
0
248
acd2e4f7bd002b978aa773228676c457d4179f4c
732
py
Python
test_find.py
UO-CIS-322/scrabble-helper
f18569709e6def2684dd7eada9200ff41c4c6b23
[ "MIT" ]
null
null
null
test_find.py
UO-CIS-322/scrabble-helper
f18569709e6def2684dd7eada9200ff41c4c6b23
[ "MIT" ]
null
null
null
test_find.py
UO-CIS-322/scrabble-helper
f18569709e6def2684dd7eada9200ff41c4c6b23
[ "MIT" ]
null
null
null
""" Test suite for 'find.py' (Fall 2015 version) """ from find15F import matches
26.142857
65
0.617486
""" Test suite for 'find.py' (Fall 2015 version) """ from find15F import matches def test_find_no_wildcards(): ## Matches without wildcards assert matches("abc", "abc", "abc") assert matches("abc", "abc", "xxx") # Uses nothing from tray assert not matches("abx", "abc", "abc") # x doesn't match c ...
590
0
46
5804c660e67eedf09b0dec6e599d1cf644156a9d
7,584
py
Python
tensorflow/python/ops/clustering_ops_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/ops/clustering_ops_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/ops/clustering_ops_test.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 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 applic...
35.605634
80
0.615506
# Copyright 2016 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 applic...
5,344
160
531
915fde594c16947b4f2e02032719e1f7f32df1e2
2,636
py
Python
src/models/CORAL_BART/args.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL_BART/args.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/models/CORAL_BART/args.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
from dataclasses import dataclass, field from typing import Optional @dataclass class ModelArguments: """ Arguments pertaining to which model/config/tokenizer we are going to fine-tune, or train from scratch. """ model_name_or_path: Optional[str] = field( default=None, metadata={ ...
35.621622
129
0.644917
from dataclasses import dataclass, field from typing import Optional @dataclass class ModelArguments: """ Arguments pertaining to which model/config/tokenizer we are going to fine-tune, or train from scratch. """ model_name_or_path: Optional[str] = field( default=None, metadata={ ...
0
0
0
c5881e9f7e8558acbb4c5c037b8d5e7f5fff6508
5,667
py
Python
stko/calculators/planarity_calculators/planarity_calculators.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
null
null
null
stko/calculators/planarity_calculators/planarity_calculators.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
null
null
null
stko/calculators/planarity_calculators/planarity_calculators.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
2
2020-05-08T17:51:25.000Z
2020-05-11T09:03:24.000Z
""" Planarity Calculators ===================== #. :class:`.PlanarityCalculator` Methods to calculate planarity measures of a molecule. """ import logging import numpy as np from ..calculators import Calculator from ..results import PlanarityResults logger = logging.getLogger(__name__) class PlanarityCalculator...
27.643902
71
0.589201
""" Planarity Calculators ===================== #. :class:`.PlanarityCalculator` Methods to calculate planarity measures of a molecule. """ import logging import numpy as np from ..calculators import Calculator from ..results import PlanarityResults logger = logging.getLogger(__name__) class PlanarityCalculator...
1,123
0
135
2787b6e45103c2fcd2cec3395806de8aa78ec903
1,557
py
Python
tests/test_jsm_models.py
aroth85/joint-snv-mix
a83cda57912c6f859fd8c42f6646575c0f8a753e
[ "CNRI-Python" ]
null
null
null
tests/test_jsm_models.py
aroth85/joint-snv-mix
a83cda57912c6f859fd8c42f6646575c0f8a753e
[ "CNRI-Python" ]
null
null
null
tests/test_jsm_models.py
aroth85/joint-snv-mix
a83cda57912c6f859fd8c42f6646575c0f8a753e
[ "CNRI-Python" ]
null
null
null
''' Created on 2012-01-19 @author: innovation ''' import unittest import numpy as np from tests.simualtors.joint_binomial import JointSnvMixSimulator from joint_snv_mix.counter import JointBinaryCountData, JointBinaryQualityData from joint_snv_mix.models.joint_snv_mix import JointSnvMixModel, JointSnvMixPriors, Join...
27.315789
105
0.540784
''' Created on 2012-01-19 @author: innovation ''' import unittest import numpy as np from tests.simualtors.joint_binomial import JointSnvMixSimulator from joint_snv_mix.counter import JointBinaryCountData, JointBinaryQualityData from joint_snv_mix.models.joint_snv_mix import JointSnvMixModel, JointSnvMixPriors, Join...
1,063
9
49
8be6c4017638beded12311dae67279b0905c5cbb
181
py
Python
config/dev/settings.py
newsdev/nyt-screenshot-service
9a53ae6b0f4c6830bf94f884a95980ecbe4710f6
[ "Apache-2.0" ]
2
2017-08-21T21:50:17.000Z
2017-08-29T02:48:56.000Z
config/dev/settings.py
newsdev/nyt-screenshot-service
9a53ae6b0f4c6830bf94f884a95980ecbe4710f6
[ "Apache-2.0" ]
null
null
null
config/dev/settings.py
newsdev/nyt-screenshot-service
9a53ae6b0f4c6830bf94f884a95980ecbe4710f6
[ "Apache-2.0" ]
null
null
null
import os DEBUG=True TEMPLATE_PATH = '%s/templates/' % os.path.dirname(os.path.realpath(__file__)) STATIC_BUCKET = 'nytint-stg-newsapps' REMOTE_STORAGE_PATH = 'apps/screenshotter'
25.857143
77
0.779006
import os DEBUG=True TEMPLATE_PATH = '%s/templates/' % os.path.dirname(os.path.realpath(__file__)) STATIC_BUCKET = 'nytint-stg-newsapps' REMOTE_STORAGE_PATH = 'apps/screenshotter'
0
0
0
75ca243bffd5efef72e3ed85dcc899fe108be91f
10,157
py
Python
src/paukenator/nlp/annotations.py
nkrot/paukenator
d7d188dd4bc283208c544f2b29530046768df7ee
[ "MIT" ]
null
null
null
src/paukenator/nlp/annotations.py
nkrot/paukenator
d7d188dd4bc283208c544f2b29530046768df7ee
[ "MIT" ]
null
null
null
src/paukenator/nlp/annotations.py
nkrot/paukenator
d7d188dd4bc283208c544f2b29530046768df7ee
[ "MIT" ]
null
null
null
from typing import List, Tuple, Optional from .symbols import * from .errors import NLPError class AnnotationError(NLPError): '''Any error related to Annotation and subclasses''' class TextData(object): '''Container for text data. All Annotations reference it and use it as a source of text data. '''...
31.940252
85
0.61081
from typing import List, Tuple, Optional from .symbols import * from .errors import NLPError class AnnotationError(NLPError): '''Any error related to Annotation and subclasses''' class TextData(object): '''Container for text data. All Annotations reference it and use it as a source of text data. '''...
1,725
16
367
1c814a15b7a4ce4f2ff67e9f1daec7b4d0ffdeac
10,799
py
Python
Projects/VirtualCanvas/VirtualCanvas.py
Balaji-Ganesh/Furnishing-OpenCV-Basics
54cd8fa09cc6f1298861b12ffb190432f412bd1f
[ "MIT" ]
null
null
null
Projects/VirtualCanvas/VirtualCanvas.py
Balaji-Ganesh/Furnishing-OpenCV-Basics
54cd8fa09cc6f1298861b12ffb190432f412bd1f
[ "MIT" ]
null
null
null
Projects/VirtualCanvas/VirtualCanvas.py
Balaji-Ganesh/Furnishing-OpenCV-Basics
54cd8fa09cc6f1298861b12ffb190432f412bd1f
[ "MIT" ]
null
null
null
# Import the required libraries import cv2 import numpy as np import Projects.VirtualCanvas.utils as utils cv2.destroyAllWindows() if __name__ == "__main__": # mode = int(input("Debug mode -- 1 or Normal Run ---0: ")) drawOnCanvas(debug_mode=True) """ LOG: Final HSV values as: HUE_min...
49.086364
184
0.624965
# Import the required libraries import cv2 import numpy as np import Projects.VirtualCanvas.utils as utils class VirtualCanvas: def __init__(self, num_markers=2, debug_mode=False): # Mode in which the user would like to run the program.. self.debug_mode = debug_mode # False for normal_ru...
1,777
6,034
50
e24171f9c3ab6010088a1c42f912952e42a5477f
5,506
py
Python
datasets/Part 6 - Reinforcement Learning/Section 32 - Upper Confidence Bound (UCB)/upper_confidence_bound.py
kevinLCG/machinelearning-az
54e3090275a3fc419aad17caadc6a47a71dcd3d4
[ "MIT" ]
null
null
null
datasets/Part 6 - Reinforcement Learning/Section 32 - Upper Confidence Bound (UCB)/upper_confidence_bound.py
kevinLCG/machinelearning-az
54e3090275a3fc419aad17caadc6a47a71dcd3d4
[ "MIT" ]
null
null
null
datasets/Part 6 - Reinforcement Learning/Section 32 - Upper Confidence Bound (UCB)/upper_confidence_bound.py
kevinLCG/machinelearning-az
54e3090275a3fc419aad17caadc6a47a71dcd3d4
[ "MIT" ]
null
null
null
#!/home/kevinml/anaconda3/bin/python3.7 # -*- coding: utf-8 -*- """ Created on Sun Apr 7 12:41:01 2019 @author: juangabriel and kevin Meza """ # Upper Confidence Bound (UCB) # ======================================================================================================= # PASOS # # NOTAS: Se considera que ...
47.878261
144
0.628405
#!/home/kevinml/anaconda3/bin/python3.7 # -*- coding: utf-8 -*- """ Created on Sun Apr 7 12:41:01 2019 @author: juangabriel and kevin Meza """ # Upper Confidence Bound (UCB) # ======================================================================================================= # PASOS # # NOTAS: Se considera que ...
0
0
0
e4715ff122d45df33ee2821da9d2fb00569dea8c
1,771
py
Python
src/tensorflow_time_series_dataset/loaders/csv_data_loader.py
MArpogaus/tensorflow_timeseries_dataset
f5202d2845e2583b21b30d467e301517f5c5f5f1
[ "Apache-2.0" ]
1
2022-01-27T10:33:11.000Z
2022-01-27T10:33:11.000Z
src/tensorflow_time_series_dataset/loaders/csv_data_loader.py
MArpogaus/tensorflow_timeseries_dataset
f5202d2845e2583b21b30d467e301517f5c5f5f1
[ "Apache-2.0" ]
null
null
null
src/tensorflow_time_series_dataset/loaders/csv_data_loader.py
MArpogaus/tensorflow_timeseries_dataset
f5202d2845e2583b21b30d467e301517f5c5f5f1
[ "Apache-2.0" ]
null
null
null
# -*- time-stamp-pattern: "changed[\s]+:[\s]+%%$"; -*- # AUTHOR INFORMATION ########################################################## # file : csv_data_loader.py # author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com> # # created : 2022-01-07 09:02:38 (Marcel Arpogaus) # changed : 2022-01-07 09:02:38 (Ma...
34.72549
79
0.586674
# -*- time-stamp-pattern: "changed[\s]+:[\s]+%%$"; -*- # AUTHOR INFORMATION ########################################################## # file : csv_data_loader.py # author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com> # # created : 2022-01-07 09:02:38 (Marcel Arpogaus) # changed : 2022-01-07 09:02:38 (Ma...
495
-1
99
d0e9ce6b89c57a2e405fd744fba0b2586b5192d8
711
py
Python
networks/FFNetworks.py
ebucheli/FreeSound_GPAT
6737732276cb664e682fdc631d429ffcd5875990
[ "MIT" ]
null
null
null
networks/FFNetworks.py
ebucheli/FreeSound_GPAT
6737732276cb664e682fdc631d429ffcd5875990
[ "MIT" ]
null
null
null
networks/FFNetworks.py
ebucheli/FreeSound_GPAT
6737732276cb664e682fdc631d429ffcd5875990
[ "MIT" ]
null
null
null
from tensorflow.keras.layers import Dropout, Activation, Flatten from tensorflow.keras.layers import Dense, Input, BatchNormalization from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.models import Model, load_model, Sequential from tensorflow.keras.activations import relu, softmax
28.44
68
0.722925
from tensorflow.keras.layers import Dropout, Activation, Flatten from tensorflow.keras.layers import Dense, Input, BatchNormalization from tensorflow.keras.callbacks import ModelCheckpoint from tensorflow.keras.models import Model, load_model, Sequential from tensorflow.keras.activations import relu, softmax def DNN_...
377
0
23
225e4495fa60f2a9bb662b836515d9302e1d4a78
6,300
py
Python
adj_mat_func.py
LcRss/DeepLabV2-Pascal-Part-Argmax
3911ba41f387684c42414682fd8abcc8d028a28d
[ "Apache-2.0" ]
null
null
null
adj_mat_func.py
LcRss/DeepLabV2-Pascal-Part-Argmax
3911ba41f387684c42414682fd8abcc8d028a28d
[ "Apache-2.0" ]
null
null
null
adj_mat_func.py
LcRss/DeepLabV2-Pascal-Part-Argmax
3911ba41f387684c42414682fd8abcc8d028a28d
[ "Apache-2.0" ]
null
null
null
import sys import cv2 import numpy as np import tensorflow as tf
33.157895
108
0.437143
import sys import cv2 import numpy as np import tensorflow as tf class adj_mat_func(object): def __init__(self, batch_size): super().__init__() self.batch_size = batch_size def adj_mat(self, y_true, y_pred): # Wraps np_mean_iou method and uses it as a TensorFlow op. # Takes nu...
6,098
6
130
96d95d628d56102ae37b9dbbcffde08391ae9f3b
40
py
Python
better_id3/commands/__init__.py
AymericBebert/Better-ID3
d30480738bbef3d64a2c88386fbce9fef1fa35bc
[ "MIT" ]
null
null
null
better_id3/commands/__init__.py
AymericBebert/Better-ID3
d30480738bbef3d64a2c88386fbce9fef1fa35bc
[ "MIT" ]
null
null
null
better_id3/commands/__init__.py
AymericBebert/Better-ID3
d30480738bbef3d64a2c88386fbce9fef1fa35bc
[ "MIT" ]
null
null
null
from .clean_command import CleanCommand
20
39
0.875
from .clean_command import CleanCommand
0
0
0
e85000f3143b4e7e3b062d4789bdb1aba85cfb9b
1,413
py
Python
tests/test_parser.py
hindman/optopus
daaba31c6b1bd4f56e442326e36f7b3ea0b74b15
[ "MIT" ]
2
2021-05-04T23:44:42.000Z
2021-07-25T20:45:33.000Z
tests/test_parser.py
hindman/optopus
daaba31c6b1bd4f56e442326e36f7b3ea0b74b15
[ "MIT" ]
null
null
null
tests/test_parser.py
hindman/optopus
daaba31c6b1bd4f56e442326e36f7b3ea0b74b15
[ "MIT" ]
null
null
null
import pytest from collections import OrderedDict from optopus import ( Parser, Result, )
22.428571
74
0.518754
import pytest from collections import OrderedDict from optopus import ( Parser, Result, ) def test_parse_noconfig_flag(tr): p = Parser() # Simple use case. args = 'rgx path -i -v'.split() exp = { 'i': True, 'v': True, 'positionals': ['rgx', 'path'], } got = p.p...
1,267
0
46