hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79786469d3d6022933dd320d6e1439770ffd1f30
1,968
py
Python
official/nlp/transformer/model_utils_test.py
akineeic/models
2912042352009c9993dc05403624100bfe42d9c1
[ "Apache-2.0" ]
15
2018-08-15T19:29:39.000Z
2021-11-05T02:14:59.000Z
official/nlp/transformer/model_utils_test.py
yangxl-2014-fe/models
11ea5237818e791a5717716d5413977f4c4db1e3
[ "Apache-2.0" ]
5
2020-10-01T09:02:34.000Z
2021-02-21T12:50:11.000Z
official/nlp/transformer/model_utils_test.py
yangxl-2014-fe/models
11ea5237818e791a5717716d5413977f4c4db1e3
[ "Apache-2.0" ]
8
2019-06-06T20:37:15.000Z
2022-03-04T13:54:38.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.142857
80
0.629065
7978653cdd9b04e51750cd78472dc79b882439cb
24,986
py
Python
src/qtt/instrument_drivers/virtualAwg/virtual_awg.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
39
2018-09-13T14:14:56.000Z
2022-03-28T22:02:29.000Z
src/qtt/instrument_drivers/virtualAwg/virtual_awg.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
136
2018-08-30T19:38:22.000Z
2022-03-31T13:05:29.000Z
src/qtt/instrument_drivers/virtualAwg/virtual_awg.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
21
2018-11-04T09:00:02.000Z
2022-01-20T01:40:08.000Z
import logging from typing import List import numpy as np from qcodes import Instrument from qtt.instrument_drivers.virtualAwg.awgs.common import AwgCommon from qtt.instrument_drivers.virtualAwg.awgs.KeysightM3202A import KeysightM3202A_AWG from qtt.instrument_drivers.virtualAwg.awgs.Tektronix5014C import Tektronix50...
47.411765
120
0.637757
7978667f2d802580a524c859dae3f893597ceae2
2,839
py
Python
lenstronomy/LensModel/Profiles/base_profile.py
lucateo/lenstronomy
3ab6cfd4adea2222f02d3f0f1a9cb5390c533aab
[ "MIT" ]
1
2021-08-17T12:37:38.000Z
2021-08-17T12:37:38.000Z
lenstronomy/LensModel/Profiles/base_profile.py
lucateo/lenstronomy
3ab6cfd4adea2222f02d3f0f1a9cb5390c533aab
[ "MIT" ]
null
null
null
lenstronomy/LensModel/Profiles/base_profile.py
lucateo/lenstronomy
3ab6cfd4adea2222f02d3f0f1a9cb5390c533aab
[ "MIT" ]
null
null
null
__all__ = ['LensProfileBase'] class LensProfileBase(object): """ this class acts as the base class of all lens model functions and indicates raise statements and default outputs if these functions are not defined in the specific lens model class """ def __init__(self, *args, **kwargs): se...
34.621951
116
0.644241
79786831f32804ac5efde03fdc759eefdf28ce0c
2,605
py
Python
macros/python_test_to_go.py
benoitkugler/webrender
0d7c529427fab37c91ecb7d844111928ff3c45f7
[ "BSD-3-Clause" ]
5
2022-01-15T03:38:30.000Z
2022-03-25T13:41:08.000Z
macros/python_test_to_go.py
benoitkugler/webrender
0d7c529427fab37c91ecb7d844111928ff3c45f7
[ "BSD-3-Clause" ]
null
null
null
macros/python_test_to_go.py
benoitkugler/webrender
0d7c529427fab37c91ecb7d844111928ff3c45f7
[ "BSD-3-Clause" ]
null
null
null
import sys import re INPUT = sys.argv[1] ATTRS = [ "position", "width", "height", "margin", "children", "border", "columnGroups", "content", "colspan" ] def export_attibutes(line: str) -> str: for attr in ATTRS: line = line.replace("." + attr, ".Box()." + attr[0].upp...
23.053097
79
0.553167
79786836a7c7f8d8a16ce07d55339fd8ee6a0fa1
551
py
Python
tahoe_lti/xblock_helpers.py
ibm-skills-network/tahoe-lti
53308c947632a63fc343e176b177145ccfaeba8b
[ "MIT" ]
4
2019-05-02T13:31:44.000Z
2021-03-12T23:02:47.000Z
tahoe_lti/xblock_helpers.py
ibm-skills-network/tahoe-lti
53308c947632a63fc343e176b177145ccfaeba8b
[ "MIT" ]
9
2019-01-29T17:44:11.000Z
2022-03-14T10:42:06.000Z
tahoe_lti/xblock_helpers.py
ibm-skills-network/tahoe-lti
53308c947632a63fc343e176b177145ccfaeba8b
[ "MIT" ]
6
2020-05-19T14:13:52.000Z
2021-10-29T19:51:45.000Z
""" Helpers to access the XBlock Runtime modules. """ from django.contrib.auth import get_user_model User = get_user_model() def get_xblock_user(xblock): """ Gets the current request user for an XBlock instance. :param xblock: XBlock instance. :return: User or None. """ try: user_id ...
21.192308
66
0.662432
797869afd2eb9987b884e25d7ee384742fb43a22
58,124
py
Python
models_tez/research/object_detection/utils/object_detection_evaluation.py
Cagla-oksuz/Object-Detection-and-counting-with-Fast-R-CNN
ad614c056b401c5f8755b9319deae78b869bf8a3
[ "Apache-1.1" ]
null
null
null
models_tez/research/object_detection/utils/object_detection_evaluation.py
Cagla-oksuz/Object-Detection-and-counting-with-Fast-R-CNN
ad614c056b401c5f8755b9319deae78b869bf8a3
[ "Apache-1.1" ]
null
null
null
models_tez/research/object_detection/utils/object_detection_evaluation.py
Cagla-oksuz/Object-Detection-and-counting-with-Fast-R-CNN
ad614c056b401c5f8755b9319deae78b869bf8a3
[ "Apache-1.1" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.440957
80
0.71406
79786b7b6382dcc38314d084222d3a9aa184e9f0
215
py
Python
rameniaapp/forms/search.py
awlane/ramenia
6bf8e75a1f279ac584daa4ee19927ffccaa67551
[ "MIT" ]
null
null
null
rameniaapp/forms/search.py
awlane/ramenia
6bf8e75a1f279ac584daa4ee19927ffccaa67551
[ "MIT" ]
null
null
null
rameniaapp/forms/search.py
awlane/ramenia
6bf8e75a1f279ac584daa4ee19927ffccaa67551
[ "MIT" ]
null
null
null
from django import forms from django.forms.widgets import TextInput class SearchForm(forms.Form): text_search = forms.CharField(label="Search", max_length=100, widget=TextInput(attrs={'class':'form-control'}))
35.833333
115
0.776744
79786cad678e38a79d0958fa62141dfa39a3eeeb
2,282
py
Python
Personal scripts/Py_networking/port_scanners/fast_port_scan.py
powplowdevs/2021-2022-Projects
1b704e9dbb2768a3acf271b2de87ccb28ab8b933
[ "MIT" ]
null
null
null
Personal scripts/Py_networking/port_scanners/fast_port_scan.py
powplowdevs/2021-2022-Projects
1b704e9dbb2768a3acf271b2de87ccb28ab8b933
[ "MIT" ]
null
null
null
Personal scripts/Py_networking/port_scanners/fast_port_scan.py
powplowdevs/2021-2022-Projects
1b704e9dbb2768a3acf271b2de87ccb28ab8b933
[ "MIT" ]
null
null
null
import argparse import socket # for connecting from colorama import init, Fore from threading import Thread, Lock from queue import Queue # some colors init() GREEN = Fore.GREEN RESET = Fore.RESET GRAY = Fore.LIGHTBLACK_EX host = 5003 # number of threads, feel free to tune this parameter as you wish N_THREADS = 200 #...
28.525
137
0.638475
79786d260b41b73b429311bea5f02a7cd3de823c
1,341
bzl
Python
golink.bzl
twixthehero/golink
99f4a7de22dbcfa7c4fa8c9a17181a74d0576ae9
[ "MIT" ]
null
null
null
golink.bzl
twixthehero/golink
99f4a7de22dbcfa7c4fa8c9a17181a74d0576ae9
[ "MIT" ]
null
null
null
golink.bzl
twixthehero/golink
99f4a7de22dbcfa7c4fa8c9a17181a74d0576ae9
[ "MIT" ]
null
null
null
load("@bazel_skylib//lib:shell.bzl", "shell") def gen_copy_files_script(ctx, files): content = "" for f in files: line = "cp -f %s %s/;\n" % (f.path, ctx.attr.dir) content += line substitutions = { "@@CONTENT@@": shell.quote(content), } out = ctx.actions.declare_file(ctx.lab...
25.788462
77
0.563758
79786e16e8dfa92fd27694cc7d24eb6831dd8228
7,039
py
Python
tests/python/test_types.py
karpierz/jtypes.jep
0e2347c3144022313802183c75fc8944ac6ddef5
[ "Zlib" ]
1
2021-05-18T03:38:21.000Z
2021-05-18T03:38:21.000Z
tests/python/test_types.py
karpierz/jtypes.jep
0e2347c3144022313802183c75fc8944ac6ddef5
[ "Zlib" ]
null
null
null
tests/python/test_types.py
karpierz/jtypes.jep
0e2347c3144022313802183c75fc8944ac6ddef5
[ "Zlib" ]
null
null
null
from __future__ import absolute_import import unittest from math import isnan import sys import jep TestMethodTypes = jep.findClass('jep.test.types.TestMethodTypes') TestStaticMethodTypes = jep.findClass('jep.test.types.TestStaticMethodTypes') TestFieldTypes = jep.findClass('jep.test.types.TestFieldTypes') TestStaticFi...
41.89881
82
0.695127
79786e5359710ce78abee357ae635e6b3db70487
925
py
Python
forecasting models/figures.py
Landslide-Analytics-System/GLAS
1a51a7365dcd6a29ded6798d29f3a1f90b93a0c3
[ "MIT" ]
1
2020-11-15T04:18:18.000Z
2020-11-15T04:18:18.000Z
forecasting models/figures.py
ShreyJ1729/Landslide-Prediction
1a51a7365dcd6a29ded6798d29f3a1f90b93a0c3
[ "MIT" ]
1
2021-03-24T17:40:23.000Z
2021-05-29T20:36:24.000Z
forecasting models/figures.py
ShreyJ1729/Landslide-Prediction
1a51a7365dcd6a29ded6798d29f3a1f90b93a0c3
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import seaborn as sns def saveConfusionMatrix(filename, title, matrix): plt.clf() sns.set(font_scale=1.5) sns.heatmap(matrix, annot=True, cmap="magma_r") plt.xlabel('Predicted') plt.ylabel('True') plt.tight_layout() plt.title(title) plt.savefig("figures/"...
37
97
0.662703
79786e5fcabddfb25f5278e8e7863ce368f175ac
297
py
Python
decomp/syntax/__init__.py
esteng/decomp
a6996b379e4a5e1a70a28b2b6f86bf39160ee10b
[ "MIT" ]
48
2019-10-01T13:33:24.000Z
2022-02-14T13:58:57.000Z
decomp/syntax/__init__.py
esteng/decomp
a6996b379e4a5e1a70a28b2b6f86bf39160ee10b
[ "MIT" ]
15
2019-10-01T15:01:36.000Z
2021-05-25T17:23:22.000Z
decomp/syntax/__init__.py
esteng/decomp
a6996b379e4a5e1a70a28b2b6f86bf39160ee10b
[ "MIT" ]
9
2020-03-02T17:54:17.000Z
2021-06-17T19:53:53.000Z
""" Module for representing CoNLL dependency tree corpora This module provides readers for corpora represented using conll-formatted dependency parses. All dependency parses are read in as networkx graphs. These graphs become subgraphs of the PredPatt and UDS graphs in the semantics module. """
33
69
0.818182
79786ff78cc1c1f24bfcfdf44e3b51bf3718444a
1,047
py
Python
ajsonrpc/backend/aiohttp_app/jsonrpc2_model.py
gurtam-space/ajsonrpc
e091bcb4fc3ba4ed4f01b09479eecccd6bd827cc
[ "MIT" ]
null
null
null
ajsonrpc/backend/aiohttp_app/jsonrpc2_model.py
gurtam-space/ajsonrpc
e091bcb4fc3ba4ed4f01b09479eecccd6bd827cc
[ "MIT" ]
null
null
null
ajsonrpc/backend/aiohttp_app/jsonrpc2_model.py
gurtam-space/ajsonrpc
e091bcb4fc3ba4ed4f01b09479eecccd6bd827cc
[ "MIT" ]
null
null
null
from .utils import get_result_item # base model for jsonrpc2 class BaseJSONRPC20Model: """ :param list fields: list return fields """ def __init__(self, fields: list = None): self._getting_fields = fields all_fields = self.allowed_fields() self.fields = [el for el in fields if ...
31.727273
99
0.639924
79787238e5421106035f7d5ea7907013b1b76a36
693
py
Python
quark/entrypoints.py
naufraghi/quark
60d2e2dd2f0c80172ee304da374bf93fc8a01693
[ "MIT" ]
null
null
null
quark/entrypoints.py
naufraghi/quark
60d2e2dd2f0c80172ee304da374bf93fc8a01693
[ "MIT" ]
null
null
null
quark/entrypoints.py
naufraghi/quark
60d2e2dd2f0c80172ee304da374bf93fc8a01693
[ "MIT" ]
null
null
null
from quark import checkout, freeze, status, update, mirror commands = [ ('checkout', checkout.run), ('freeze', freeze.run), ('status', status.run), ('update', update.run), ('mirror', mirror.run), ] aliases = [('co', 'checkout'), ('up', 'update'), ('fz', 'freeze'), ...
27.72
78
0.569986
797872b6aa5e0250180625294fce9ae911b29615
2,099
py
Python
demo_new_fit.py
LiuPhyMan/SpecFit
570b3696b22114fb85731c86eb01eb2bf3a00b72
[ "Apache-2.0" ]
null
null
null
demo_new_fit.py
LiuPhyMan/SpecFit
570b3696b22114fb85731c86eb01eb2bf3a00b72
[ "Apache-2.0" ]
null
null
null
demo_new_fit.py
LiuPhyMan/SpecFit
570b3696b22114fb85731c86eb01eb2bf3a00b72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 16:30 2019/3/11 @author: Liu Jinbao @mail: liu.jinbao@outlook.com @project: SpecFit @IDE: PyCharm """ import numpy as np from scipy.optimize import curve_fit from spectra import OHSpectra from matplotlib import pyplot as plt OH = OHSpectra...
38.163636
99
0.575989
7978754b698cf29038ca252ee9f07fa446303922
2,312
py
Python
generar_graficas_por_estacion.py
jorgemauricio/automatizacion_python
8969c6335d60b93cbfb61dd98fda7880275a63ba
[ "MIT" ]
null
null
null
generar_graficas_por_estacion.py
jorgemauricio/automatizacion_python
8969c6335d60b93cbfb61dd98fda7880275a63ba
[ "MIT" ]
null
null
null
generar_graficas_por_estacion.py
jorgemauricio/automatizacion_python
8969c6335d60b93cbfb61dd98fda7880275a63ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 17 16:17:25 2017 @author: jorgemauricio """ # librerías import pandas as pd import numpy as np import matplotlib.pyplot as plt import requests import json def main(): # leer csv df = pd.read_csv("data/estado1_5.csv") # arrar de variab...
28.54321
91
0.506488
7978771f82b116e58381d19b87a876fcf5ddc43c
1,237
py
Python
src/django_toshl/django_toshl/custom_settings.py
javiermarcon/django-toshl
30ba92e27cf63ee83e35f3136c9e190b3f2cd5db
[ "MIT" ]
null
null
null
src/django_toshl/django_toshl/custom_settings.py
javiermarcon/django-toshl
30ba92e27cf63ee83e35f3136c9e190b3f2cd5db
[ "MIT" ]
null
null
null
src/django_toshl/django_toshl/custom_settings.py
javiermarcon/django-toshl
30ba92e27cf63ee83e35f3136c9e190b3f2cd5db
[ "MIT" ]
null
null
null
from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key ...
23.788462
91
0.701698
7978787f62774e89687e7302f1706566031fac5e
6,232
py
Python
application_form/services.py
SuviVappula/apartment-application-service
3fd59b213fa63dd9874e04747400aa771bf97237
[ "MIT" ]
null
null
null
application_form/services.py
SuviVappula/apartment-application-service
3fd59b213fa63dd9874e04747400aa771bf97237
[ "MIT" ]
null
null
null
application_form/services.py
SuviVappula/apartment-application-service
3fd59b213fa63dd9874e04747400aa771bf97237
[ "MIT" ]
null
null
null
import random from django.db.models import QuerySet from django.utils.translation import ugettext_lazy as _ from simple_history.utils import bulk_update_with_history from typing import List, Optional, Union from application_form.models import ( Apartment, ApplicationMixin, HasoApartmentPriority, HasoAp...
35.011236
87
0.713094
797878f5f06dc726ac40acf29979f0d264b242a4
3,539
gyp
Python
third_party/libpng/libpng.gyp
gtmetrix/pagespeed-library
4aac4ab995bc99c6a40f0c820cfefc88db6fcf33
[ "Apache-2.0" ]
11
2016-08-23T12:31:32.000Z
2021-05-12T09:47:01.000Z
third_party/libpng/libpng.gyp
gtmetrix/page-speed-library
4aac4ab995bc99c6a40f0c820cfefc88db6fcf33
[ "Apache-2.0" ]
null
null
null
third_party/libpng/libpng.gyp
gtmetrix/page-speed-library
4aac4ab995bc99c6a40f0c820cfefc88db6fcf33
[ "Apache-2.0" ]
1
2019-03-13T00:51:45.000Z
2019-03-13T00:51:45.000Z
# Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'conditions': [ [ 'os_posix == 1 and OS != "mac"', { # Link to system .so since we already use it due to GTK. ...
26.609023
78
0.400396
79787a16a038a82bbbfe3a583b4ee34875698b2c
872
py
Python
otcextensions/tests/functional/sdk/dms/v1/test_misc.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/tests/functional/sdk/dms/v1/test_misc.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/tests/functional/sdk/dms/v1/test_misc.py
zsoltn/python-otcextensions
4c0fa22f095ebd5f9636ae72acbae5048096822c
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
32.296296
75
0.761468
79787ac468475e3231e482a65cc58990d491ba20
7,223
py
Python
examples/quick_start/quick_start.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
null
null
null
examples/quick_start/quick_start.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
null
null
null
examples/quick_start/quick_start.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
1
2021-12-31T08:21:43.000Z
2021-12-31T08:21:43.000Z
#!/usr/bin/python ######################################################################################################################## # # Copyright (c) 2014, Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permi...
49.813793
130
0.662744
79787adc97f6ebddf76d0e9837c369af21ba3e8d
4,528
py
Python
oneflow/compatible_single_client_python/nn/modules/sparse.py
xcnick/oneflow
7b786b27069dec35d2493256011e773988c91f56
[ "Apache-2.0" ]
null
null
null
oneflow/compatible_single_client_python/nn/modules/sparse.py
xcnick/oneflow
7b786b27069dec35d2493256011e773988c91f56
[ "Apache-2.0" ]
null
null
null
oneflow/compatible_single_client_python/nn/modules/sparse.py
xcnick/oneflow
7b786b27069dec35d2493256011e773988c91f56
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
38.05042
122
0.646422
79787ae607948176566f83b1a6146f063bf34166
5,360
py
Python
conftest.py
trancee/apm-agent-python
04f014661f18b871b8b1970978b639b92f627e5f
[ "BSD-3-Clause" ]
null
null
null
conftest.py
trancee/apm-agent-python
04f014661f18b871b8b1970978b639b92f627e5f
[ "BSD-3-Clause" ]
null
null
null
conftest.py
trancee/apm-agent-python
04f014661f18b871b8b1970978b639b92f627e5f
[ "BSD-3-Clause" ]
2
2020-02-04T22:03:00.000Z
2021-03-23T13:17:14.000Z
#!/usr/bin/env python # BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # 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 ab...
33.924051
104
0.625
79787bfd6efa8f4bc7930892ed5390049897057f
487
py
Python
setup.py
mopeneko/line4py
2e35e2dcf1e03720644639520a598244ff0932a8
[ "MIT" ]
23
2020-06-02T03:28:20.000Z
2022-03-05T12:40:23.000Z
setup.py
mopeneko/line4py
2e35e2dcf1e03720644639520a598244ff0932a8
[ "MIT" ]
null
null
null
setup.py
mopeneko/line4py
2e35e2dcf1e03720644639520a598244ff0932a8
[ "MIT" ]
6
2020-06-02T04:42:10.000Z
2020-12-24T10:04:29.000Z
#!/usr/bin/env python from setuptools import setup, find_packages from typing import List def install_requires() -> List[str]: with open("./requirements.txt", "r") as f: return f.read().split("\n") setup(name="line4py", version="1.0.0", license="MIT", description="LINE's library for P...
24.35
50
0.646817
79787df25e2de33708dba56ee2ffa30c71af5b00
78
py
Python
robosuite/models/robots/__init__.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
397
2020-09-28T02:49:58.000Z
2022-03-30T18:08:19.000Z
robosuite/models/robots/__init__.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
169
2020-09-28T02:17:59.000Z
2022-03-29T13:32:43.000Z
robosuite/models/robots/__init__.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
131
2020-09-28T14:50:35.000Z
2022-03-31T02:27:33.000Z
from .robot_model import RobotModel, create_robot from .manipulators import *
26
49
0.833333
79787e01bd03a545d0513a330f8987656fd92498
32,232
py
Python
lib/translations.py
mpetruska/wttr.in
ee2c5f5bd44f464fed54d4b08139bc283fe7f37b
[ "Apache-2.0" ]
1
2019-07-06T18:06:24.000Z
2019-07-06T18:06:24.000Z
lib/translations.py
mpetruska/wttr.in
ee2c5f5bd44f464fed54d4b08139bc283fe7f37b
[ "Apache-2.0" ]
null
null
null
lib/translations.py
mpetruska/wttr.in
ee2c5f5bd44f464fed54d4b08139bc283fe7f37b
[ "Apache-2.0" ]
null
null
null
# vim: fileencoding=utf-8 """ Translation of almost everything. """ FULL_TRANSLATION = [ "af", "da", "de", "el", "et", "fr", "fa", "hu", "id", "it", "nb", "nl", "pl", "pt-br", "ro", "ru", "uk" ] PARTIAL_TRANSLATION = [ "az", "be", "bg", "bs", "ca", "cy", "cs", "eo", "es", "fi", "ga", "hi", "hr", ...
51.243243
236
0.637875
79787e706f070d938bc26f8b98c6d99710047ea9
1,154
py
Python
catalyst/registry/__init__.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
2
2019-04-19T21:34:31.000Z
2019-05-02T22:50:25.000Z
catalyst/registry/__init__.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2021-01-07T16:13:45.000Z
2021-01-21T09:27:54.000Z
catalyst/registry/__init__.py
and-kul/catalyst
51428d7756e62b9b8ee5379f38e9fd576eeb36e5
[ "Apache-2.0" ]
1
2020-12-02T18:42:31.000Z
2020-12-02T18:42:31.000Z
from catalyst.registry.registry import Registry, RegistryException from catalyst.registry.registries import ( Callback, CALLBACK, CALLBACKS, Criterion, CRITERION, CRITERIONS, Experiment, EXPERIMENT, EXPERIMENTS, GRAD_CLIPPER, GRAD_CLIPPERS, Model, MODEL, MODELS, ...
15.808219
66
0.576256
7978802f38af52a162489ede2b398cd9f6494684
487
py
Python
thefuck/rules/git_pull.py
juzim/thefuck
a3b2e6872b9e75b8a259375b9440246fdd181565
[ "MIT" ]
1
2021-12-13T18:41:46.000Z
2021-12-13T18:41:46.000Z
thefuck/rules/git_pull.py
juzim/thefuck
a3b2e6872b9e75b8a259375b9440246fdd181565
[ "MIT" ]
4
2020-12-23T15:44:08.000Z
2020-12-23T16:48:59.000Z
thefuck/rules/git_pull.py
juzim/thefuck
a3b2e6872b9e75b8a259375b9440246fdd181565
[ "MIT" ]
1
2020-12-23T14:46:54.000Z
2020-12-23T14:46:54.000Z
from thefuck.shells import shell from thefuck.specific.git import git_support @git_support def match(command): return ('pull' in command.script and 'set-upstream' in command.stderr) @git_support def get_new_command(command): line = command.stderr.split('\n')[-3].strip() branch = line.split('...
27.055556
54
0.661191
79788037538b2d9c3fd161b10057579e00c769f4
3,008
py
Python
molecule/verifier/ansible.py
russest3/molecule
9c7e3757a9429e3a274e009c231399c6abfc1001
[ "MIT" ]
null
null
null
molecule/verifier/ansible.py
russest3/molecule
9c7e3757a9429e3a274e009c231399c6abfc1001
[ "MIT" ]
null
null
null
molecule/verifier/ansible.py
russest3/molecule
9c7e3757a9429e3a274e009c231399c6abfc1001
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Red Hat, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, ...
28.377358
83
0.602726
79788049e59532cadd0efdc157b7d35be2cd2283
1,056
py
Python
python/tests/testcarrierdata/data0.py
chlammas/python-phonenumbers
e75438338d70e33aee530a29960d2b0911dfb09f
[ "Apache-2.0" ]
null
null
null
python/tests/testcarrierdata/data0.py
chlammas/python-phonenumbers
e75438338d70e33aee530a29960d2b0911dfb09f
[ "Apache-2.0" ]
null
null
null
python/tests/testcarrierdata/data0.py
chlammas/python-phonenumbers
e75438338d70e33aee530a29960d2b0911dfb09f
[ "Apache-2.0" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from phonenumbers.util import u # Copyright (C) 2011-2022 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with...
35.2
74
0.711174
797880a45e1adc4a25883f4135c510ce5b7768ec
624
py
Python
setup.py
MartinoMensio/google-drive-downloader
a29d169c83aa33a69a89dc4b21ed09954a525eb9
[ "MIT" ]
null
null
null
setup.py
MartinoMensio/google-drive-downloader
a29d169c83aa33a69a89dc4b21ed09954a525eb9
[ "MIT" ]
null
null
null
setup.py
MartinoMensio/google-drive-downloader
a29d169c83aa33a69a89dc4b21ed09954a525eb9
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='googledrivedownloader', version='0.4', packages=['google_drive_downloader'], install_requires=['requests', 'plac'], url='https://github.com/ndrplz/google-drive-downloader', download_url='https://github.com/ndrplz/google-drive-downloader/archive/0.2.tar....
34.666667
92
0.716346
79788133da64d50cd909ac68162a0d5770547261
6,081
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_shellutil_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_shellutil_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_shellutil_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
41.650685
183
0.478046
797881f7bb09368ccbd3e8f8cce16ae7aeac8430
875
py
Python
tools/leetcode.287.Find the Duplicate Number/leetcode.287.Find the Duplicate Number.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.287.Find the Duplicate Number/leetcode.287.Find the Duplicate Number.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.287.Find the Duplicate Number/leetcode.287.Find the Duplicate Number.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution(object): def findDuplicate(self, nums): """ :type nums: List[int] :rtype: int """ # naive approach O(N^2) ''' for n in nums: if nums.count(n) > 1: return n # failed to pass large testing cases (TLE) ''...
875
875
0.394286
7978826abad89d4db5e0749a32e0451260c4dd45
2,864
py
Python
scripts/webapp.py
rmzelle/distribution-updater
ca93959073c409c391e90d556d85546b823bfbf0
[ "MIT" ]
null
null
null
scripts/webapp.py
rmzelle/distribution-updater
ca93959073c409c391e90d556d85546b823bfbf0
[ "MIT" ]
2
2015-10-01T15:09:26.000Z
2016-03-02T18:11:55.000Z
scripts/webapp.py
rmzelle/distribution-updater
ca93959073c409c391e90d556d85546b823bfbf0
[ "MIT" ]
5
2015-10-01T13:50:35.000Z
2021-08-11T03:20:07.000Z
from __future__ import print_function import os import sys import json import traceback import styles_distribution as updater from cgi import parse_qs def server(environ, start_response): if environ.get("HTTP_AUTHORIZATION") == os.getenv("AUTHORIZATION"): status = "200 OK" else: status = "400 B...
32.91954
98
0.643506
7978833c1f57fcc5b0db649d74acae30dbaf856b
6,512
py
Python
images/core/context/free5gc/lib/nextepc/gtp/support/cache/tlv_msg_96.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-02-22T07:19:59.000Z
2022-02-22T07:19:59.000Z
images/core/context/free5gc/lib/nextepc/gtp/support/cache/tlv_msg_96.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-01-15T20:26:01.000Z
2022-01-15T20:26:01.000Z
images/core/context/free5gc/lib/nextepc/gtp/support/cache/tlv_msg_96.py
my5G/OPlaceRAN
cc6fe5223b9b2a32d7963b2304762fe2a0265298
[ "Apache-2.0" ]
1
2022-01-07T18:49:10.000Z
2022-01-07T18:49:10.000Z
ies = [] ies.append({ "ie_type" : "Cause", "ie_value" : "Cause", "presence" : "M", "instance" : "0", "comment" : ""}) ies.append({ "ie_type" : "Bearer Context", "ie_value" : "Bearer Contexts", "presence" : "M", "instance" : "0", "comment" : "All the bearer contexts included in the corresponding Create Bearer Request sh...
283.130435
617
0.716063
7978837fb813c479203b0c564f00b4c2c8fab632
9,963
py
Python
src/spreadsheet/classes.py
beesperester/python-spreadsheet
05d837daa9697ce9d3faa5372f3322e3f62f2b9a
[ "MIT" ]
null
null
null
src/spreadsheet/classes.py
beesperester/python-spreadsheet
05d837daa9697ce9d3faa5372f3322e3f62f2b9a
[ "MIT" ]
null
null
null
src/spreadsheet/classes.py
beesperester/python-spreadsheet
05d837daa9697ce9d3faa5372f3322e3f62f2b9a
[ "MIT" ]
null
null
null
from __future__ import annotations from ctypes import alignment import math import string from collections.abc import MutableMapping from enum import Enum from typing import Callable, Iterator, List, Optional, Tuple, Type, Union, Generator from spreadsheet.format import format_align, format_color_red T_cell_value ...
27.598338
88
0.605139
797883de3684fff9441a94279ae6dafca2496c36
1,207
py
Python
setup.py
bastienboutonnet/hologram
be3f74a8996d97c6b2ae155d9275fa49c452e4e7
[ "MIT" ]
null
null
null
setup.py
bastienboutonnet/hologram
be3f74a8996d97c6b2ae155d9275fa49c452e4e7
[ "MIT" ]
null
null
null
setup.py
bastienboutonnet/hologram
be3f74a8996d97c6b2ae155d9275fa49c452e4e7
[ "MIT" ]
null
null
null
from setuptools import setup requires = [ "python-dateutil>=2.8,<2.9", "jsonschema<3.2,>=3.0", 'dataclasses==0.6;python_version<"3.7"', ] package_version = "0.0.13" def read(f): return open(f, encoding="utf-8").read() setup( name="hologram", description="JSON schema generation from datacla...
29.439024
69
0.636288
7978841081905e4677ad6d945af3e01d3b01ea11
249
py
Python
UnityEngine/AI/NavMeshDataInstance/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/AI/NavMeshDataInstance/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/AI/NavMeshDataInstance/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import UnityEngine from UdonPie.Undefined import * class NavMeshDataInstance: def __new__(cls, arg1=None): ''' :returns: NavMeshDataInstance :rtype: UnityEngine.NavMeshDataInstance ''' pass
20.75
47
0.658635
7978841cf9893b042c258cf8ab2f165069d1b57f
1,601
py
Python
cache_tools/tests/test_tools.py
cfpb/django-cache-tools
c463ac64bfc5740fd116fbb17d7b2da2416b02ab
[ "CC0-1.0" ]
4
2015-01-05T21:19:07.000Z
2018-02-08T01:51:41.000Z
cache_tools/tests/test_tools.py
cfpb/django-cache-tools
c463ac64bfc5740fd116fbb17d7b2da2416b02ab
[ "CC0-1.0" ]
1
2015-04-15T10:25:12.000Z
2017-06-02T12:21:45.000Z
cache_tools/tests/test_tools.py
cfpb/django-cache-tools
c463ac64bfc5740fd116fbb17d7b2da2416b02ab
[ "CC0-1.0" ]
9
2015-02-26T15:53:52.000Z
2021-02-21T10:42:20.000Z
from django.test import TestCase from mock import Mock, MagicMock, patch from django.test.client import RequestFactory from cache_tools.tools import cache_page_in_group, get_group_key, expire_cache_group, TIME_TO_CACHE class CachingTest(TestCase): def test_get_group_key(self): key = get_group_key('test') ...
37.232558
99
0.702061
7978848325dfad48f60831fe7fea1421e1edbc28
1,691
py
Python
core/configparser.py
Hackinator-2003/Space-Gamers
487dc708fd185d142092b5098295b867fb651c1a
[ "Apache-2.0" ]
null
null
null
core/configparser.py
Hackinator-2003/Space-Gamers
487dc708fd185d142092b5098295b867fb651c1a
[ "Apache-2.0" ]
null
null
null
core/configparser.py
Hackinator-2003/Space-Gamers
487dc708fd185d142092b5098295b867fb651c1a
[ "Apache-2.0" ]
null
null
null
from shutil import copyfile import os import logging def get_config(option="conf.ini",default="core/default.ini"): logging.debug("loading configuration="+str(option)+"and default="+str(default)) assert os.path.isfile(default) if not os.path.isfile(option):copyfile(default, option) # charger les fich...
31.90566
119
0.648729
7978855ea7a34413e46da6b8df1d3573be243ce8
479
py
Python
_examples/download-files.py
hellupline/hello-nurse
361d133879cfe49b0db8ce2fc63fb301e68df960
[ "MIT" ]
1
2018-07-13T17:02:58.000Z
2018-07-13T17:02:58.000Z
_examples/download-files.py
hellupline/hello-nurse
361d133879cfe49b0db8ce2fc63fb301e68df960
[ "MIT" ]
null
null
null
_examples/download-files.py
hellupline/hello-nurse
361d133879cfe49b0db8ce2fc63fb301e68df960
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests POSTS_URL = "http://localhost:8080/api/v1/posts" FETCH_URL = "http://localhost:8080/api/v1/tasks/booru/fetch-file" QUERY = "eureka_seven | landscape | ruins" def main(): session = requests.session() r = session.get(POSTS_URL, params={"q": QUERY}) for row in r.jso...
19.958333
65
0.599165
7978865914876069bdcc62a88f7258f1d9ae8c6c
5,131
py
Python
cmsplugin_blog/views.py
fivethreeo/cmsplugin-blog
90c9516a8f10518868aa91409c4302e47814edab
[ "BSD-3-Clause" ]
3
2016-04-14T05:48:13.000Z
2017-11-17T02:57:19.000Z
cmsplugin_blog/views.py
fivethreeo/cmsplugin-blog
90c9516a8f10518868aa91409c4302e47814edab
[ "BSD-3-Clause" ]
4
2015-02-02T20:54:43.000Z
2021-06-10T20:36:12.000Z
cmsplugin_blog/views.py
fivethreeo/cmsplugin-blog
90c9516a8f10518868aa91409c4302e47814edab
[ "BSD-3-Clause" ]
3
2015-06-23T22:57:33.000Z
2017-07-25T15:41:39.000Z
import datetime try: # pragma: no cover from django.views.generic.dates import BaseDateDetailView, ArchiveIndexView, _date_lookup_for_field, _date_from_string from django.views.generic.detail import SingleObjectTemplateResponseMixin except ImportError: # pragma: no cover from cbv.views.detail import Si...
43.117647
127
0.661469
797887b285aecfd032054683c5c75b4d8f2e407d
1,710
py
Python
vacs/migrations/0003_assignment_groupassignment.py
glebysg/GC_server
6b95353362af5507fa171527d23b6ffb962f766a
[ "MIT" ]
null
null
null
vacs/migrations/0003_assignment_groupassignment.py
glebysg/GC_server
6b95353362af5507fa171527d23b6ffb962f766a
[ "MIT" ]
null
null
null
vacs/migrations/0003_assignment_groupassignment.py
glebysg/GC_server
6b95353362af5507fa171527d23b6ffb962f766a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-03 01:53 from __future__ import unicode_literals from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import jsonfield.fields class Migration(migrations.Migration): ...
41.707317
170
0.640936
797888bd6b42f77decc67f5752a12b12056586a4
4,109
py
Python
keeper/editiontracking/eupsdailymode.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
5
2016-05-16T18:46:26.000Z
2019-07-08T15:16:41.000Z
keeper/editiontracking/eupsdailymode.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
46
2016-02-18T16:54:36.000Z
2022-03-25T19:43:45.000Z
keeper/editiontracking/eupsdailymode.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
4
2016-08-20T23:10:07.000Z
2022-03-25T19:52:09.000Z
"""Implement the "eups_daily_release" Edition tracking mode.""" from __future__ import annotations import re from typing import TYPE_CHECKING, Optional, Tuple from structlog import get_logger from keeper.editiontracking.base import TrackingModeBase if TYPE_CHECKING: from keeper.models import Build, Edition __...
32.101563
79
0.632757
7978892cd3b254ebacc89ecd6cc82348ef4a828b
53,144
py
Python
prev_ob_models/exclude/GilraBhalla2015/generators/generate_firerates_odors.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/generators/generate_firerates_odors.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/generators/generate_firerates_odors.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
import sys, pickle sys.path.extend(["..","../networks","../simulations"]) from networkConstants import * from stimuliConstants import * from simset_odor import * from moose_utils import * from neuro_utils import * # has the dual exponential, DoG (subtractedGaussian) and gamma fns from data_utils import * from pylab ...
52.565776
127
0.661448
7978893a5c0d45872845ea070de918b934a90618
62
py
Python
tests/__init__.py
xmnlab/lottery
f45f752006b85959321fc628ad954f5f23878c33
[ "MIT" ]
null
null
null
tests/__init__.py
xmnlab/lottery
f45f752006b85959321fc628ad954f5f23878c33
[ "MIT" ]
null
null
null
tests/__init__.py
xmnlab/lottery
f45f752006b85959321fc628ad954f5f23878c33
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Unit test package for lottery."""
15.5
36
0.564516
7978895c7634752a274bb47e73b4c8fbf702c8cf
6,239
py
Python
researches/ocr/task3/t3_util.py
loveorchids/sroie2019
d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05
[ "Apache-2.0" ]
14
2019-05-06T11:28:29.000Z
2020-05-18T22:36:09.000Z
researches/ocr/task3/t3_util.py
loveorchids/sroie2019
d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05
[ "Apache-2.0" ]
3
2019-09-02T16:11:32.000Z
2019-10-22T14:47:03.000Z
researches/ocr/task3/t3_util.py
whq-hqw/sroie2019
d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05
[ "Apache-2.0" ]
5
2020-06-10T05:13:46.000Z
2021-07-29T03:38:55.000Z
from os.path import * import glob, json def has_number(inputString): return any(char.isdigit() for char in inputString) def is_number(inputString): return all(char.isdigit() for char in inputString) def get_word_frequency(root_path): # get top 1000 frequent words from task1_2 text_files = sorted(g...
39.487342
101
0.588716
79788998678699a10153385b8b337e84189033a2
1,623
bzl
Python
examples/jest/jest.bzl
kriswuollett/rules_nodejs
5798eeeda78c8acc2ebc2f24a41aca33164a972f
[ "Apache-2.0" ]
645
2017-08-22T22:18:51.000Z
2022-03-31T11:50:53.000Z
examples/jest/jest.bzl
kriswuollett/rules_nodejs
5798eeeda78c8acc2ebc2f24a41aca33164a972f
[ "Apache-2.0" ]
2,172
2017-08-26T23:52:39.000Z
2022-03-31T23:51:29.000Z
examples/jest/jest.bzl
kriswuollett/rules_nodejs
5798eeeda78c8acc2ebc2f24a41aca33164a972f
[ "Apache-2.0" ]
570
2017-08-24T19:57:44.000Z
2022-03-29T12:09:04.000Z
"Shows how you might create a macro for the autogenerated Jest rule" load("@npm//jest-cli:index.bzl", "jest", _jest_test = "jest_test") load("@bazel_skylib//rules:write_file.bzl", "write_file") def jest_test(name, srcs, deps, jest_config, **kwargs): "A macro around the autogenerated jest_test rule" templated_...
32.46
91
0.577942
797889c971c09b791a46101c101c2cf6912814f8
3,866
py
Python
tools/monitoring.py
OladeleO/lookyloo
f1f9cab2a946639332fd0526be361e1b43d094e4
[ "BSD-3-Clause" ]
null
null
null
tools/monitoring.py
OladeleO/lookyloo
f1f9cab2a946639332fd0526be361e1b43d094e4
[ "BSD-3-Clause" ]
41
2021-09-30T00:44:34.000Z
2022-03-28T01:02:07.000Z
tools/monitoring.py
OladeleO/lookyloo
f1f9cab2a946639332fd0526be361e1b43d094e4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys from typing import List, Tuple from redis import Redis from redis.exceptions import ConnectionError from rich.console import Console from rich.padding import Padding from lookyloo.helpers import get_socket_path, splash_status from lookyloo.abstract...
35.145455
130
0.629333
79788a54ceb5bc346065a3ba2d07c8c0616bedfd
10,379
py
Python
gui/kivy/uix/dialogs/settings.py
takeratta/electrum
fe82a7905c404d2d607b4d2bbbc44b2d36b4f89d
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/settings.py
takeratta/electrum
fe82a7905c404d2d607b4d2bbbc44b2d36b4f89d
[ "MIT" ]
null
null
null
gui/kivy/uix/dialogs/settings.py
takeratta/electrum
fe82a7905c404d2d607b4d2bbbc44b2d36b4f89d
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from electrum.util import base_units from electrum.i18n import languages from electrum_gui.kivy.i18n import _ from electrum.plugins import run_hook from electrum import coinchooser from el...
43.609244
157
0.568166
79788a9e4c04adcbbdcf073261f69d8c858e4e7c
619
py
Python
oldp/apps/references/migrations/0002_auto_20171221_1318.py
docsuleman/oldp
8dcaa8e6e435794c872346b5014945ace885adb4
[ "MIT" ]
66
2018-05-07T12:34:39.000Z
2022-02-23T20:14:24.000Z
oldp/apps/references/migrations/0002_auto_20171221_1318.py
Justice-PLP-DHV/oldp
eadf235bb0925453d9a5b81963a0ce53afeb17fd
[ "MIT" ]
68
2018-06-11T16:13:17.000Z
2022-02-10T08:03:26.000Z
oldp/apps/references/migrations/0002_auto_20171221_1318.py
Justice-PLP-DHV/oldp
eadf235bb0925453d9a5b81963a0ce53afeb17fd
[ "MIT" ]
15
2018-06-23T19:41:13.000Z
2021-08-18T08:21:49.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-21 13:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('references', '0001_initial'), ] operations = [ migrations.AlterField( ...
23.807692
51
0.599354
79788aadb5ae4e05a5d5c08f67096d903e9c268e
4,718
py
Python
libqtile/widget/sensors.py
himaaaatti/qtile
9a8326d751042c0b59cbc0aee4a5e20e8ff03a4d
[ "MIT" ]
null
null
null
libqtile/widget/sensors.py
himaaaatti/qtile
9a8326d751042c0b59cbc0aee4a5e20e8ff03a4d
[ "MIT" ]
null
null
null
libqtile/widget/sensors.py
himaaaatti/qtile
9a8326d751042c0b59cbc0aee4a5e20e8ff03a4d
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (c) 2012 TiN # Copyright (c) 2012, 2014 Tycho Andersen # Copyright (c) 2013 Tao Sauvage # Copyright (c) 2014-2015 Sean Vig # Copyright (c) 2014 Adi Sieker # Copyright (c) 2014 Foster McLane # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this soft...
39.647059
85
0.641797
79788cf35141b7a5a01cfb0ffc691405a1e7ee05
17,897
py
Python
readthedocs/rtd_tests/tests/test_privacy_urls.py
KengoTODA/readthedocs.org
f12816614ac06e4bc0dfcaa30cdf56e07ff33892
[ "MIT" ]
null
null
null
readthedocs/rtd_tests/tests/test_privacy_urls.py
KengoTODA/readthedocs.org
f12816614ac06e4bc0dfcaa30cdf56e07ff33892
[ "MIT" ]
null
null
null
readthedocs/rtd_tests/tests/test_privacy_urls.py
KengoTODA/readthedocs.org
f12816614ac06e4bc0dfcaa30cdf56e07ff33892
[ "MIT" ]
null
null
null
import re from unittest import mock from allauth.socialaccount.models import SocialAccount from django.contrib.admindocs.views import extract_views_from_urlpatterns from django.test import TestCase from django.urls import reverse from django_dynamic_fixture import get from taggit.models import Tag from readthedocs.bu...
34.684109
112
0.618092
79788d3712fe555d52b5a8314fe59eda4851bd54
70,573
py
Python
keylime/tenant.py
mirespace/keylime
605bba0e46e7db9fea0b2ad7d97e67604535fb14
[ "Apache-2.0" ]
null
null
null
keylime/tenant.py
mirespace/keylime
605bba0e46e7db9fea0b2ad7d97e67604535fb14
[ "Apache-2.0" ]
null
null
null
keylime/tenant.py
mirespace/keylime
605bba0e46e7db9fea0b2ad7d97e67604535fb14
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 ''' SPDX-License-Identifier: Apache-2.0 Copyright 2017 Massachusetts Institute of Technology. ''' import argparse import base64 import hashlib import io import logging import os import subprocess import sys import time import zipfile import json import tempfile import requests from cryptography.ha...
47.878562
225
0.605373
79788de34af80547deea93f68bf22fcad97ad2e1
6,950
py
Python
pythonequipmentdrivers/powermeter/Chroma_66204.py
admleman/PythonEquipmentDrivers
1e1fbf96ae372757ad90339af5863ab64daef2a0
[ "MIT" ]
6
2021-02-01T14:23:22.000Z
2021-12-31T12:26:07.000Z
pythonequipmentdrivers/powermeter/Chroma_66204.py
admleman/PythonEquipmentDrivers
1e1fbf96ae372757ad90339af5863ab64daef2a0
[ "MIT" ]
5
2020-08-17T12:59:06.000Z
2022-03-24T02:19:31.000Z
pythonequipmentdrivers/powermeter/Chroma_66204.py
TedKus/PythonEquipmentDrivers
d758a6fb0f7d505d46b24fcd55170e90d2a06cd0
[ "MIT" ]
3
2020-12-30T17:25:55.000Z
2021-07-27T13:52:44.000Z
from pythonequipmentdrivers import Scpi_Instrument class Chroma_66204(Scpi_Instrument): # 3 phase + neutral / output """ Chroma_66204(address) address : str, address of the connected power meter object for accessing basic functionallity of the Chroma_66204 power meter """ def __init__(self...
31.165919
79
0.624317
79788ea76b7208ef194d989c2b87481200fdf615
1,074
py
Python
human_eval/correct_bracketing2.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
3
2021-07-29T23:40:15.000Z
2021-08-12T10:18:09.000Z
human_eval/correct_bracketing2.py
openai/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:15.000Z
2021-09-19T06:44:15.000Z
human_eval/correct_bracketing2.py
LaudateCorpus1/code-align-evals-data
97446d992c3785d6605f1500b2c9b95d042e7b9c
[ "MIT" ]
1
2021-09-19T06:44:03.000Z
2021-09-19T06:44:03.000Z
ENTRY_POINT = 'correct_bracketing' #[PROMPT] def correct_bracketing(brackets: str): """ brackets is a string of "<" and ">". return True if every opening bracket has a corresponding closing bracket. >>> correct_bracketing("<") False >>> correct_bracketing("<>") True >>> correct_bracketing...
22.375
77
0.514898
79788ecf38f4fdb83629fd7c032e74a81fc85d4c
1,412
py
Python
byceps/services/news/transfer/models.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/news/transfer/models.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/news/transfer/models.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
""" byceps.services.news.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import datetime from enum import Enum from typing impor...
18.578947
54
0.695467
79788ee102c82cb8ac1d630f38d89353c97e2da0
13,082
py
Python
user_guide_examples/fundamental/fundamental_message_comm/combo/Charger.py
nathantgray/HELICS-Examples
0d4ed1d8ee0de967b2d385679100c47ea81cdbcc
[ "BSD-3-Clause" ]
null
null
null
user_guide_examples/fundamental/fundamental_message_comm/combo/Charger.py
nathantgray/HELICS-Examples
0d4ed1d8ee0de967b2d385679100c47ea81cdbcc
[ "BSD-3-Clause" ]
null
null
null
user_guide_examples/fundamental/fundamental_message_comm/combo/Charger.py
nathantgray/HELICS-Examples
0d4ed1d8ee0de967b2d385679100c47ea81cdbcc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on 9/15/2020 This is a simple EV federate that models a set of EV terminals in an EV charging garage. Each terminal can support charging at levels 1, 2, and 3 but the EVs that come to charge have a randomly assigned charging level. Managing these terminals is a centralized EV Contr...
40.501548
83
0.647455
79788efc21ade44c80fcfa85457d6c110f4366eb
1,344
py
Python
codedigger/codechef/tests/test_setup.py
jyothiprakashpanaik/Backend
9ab1b57436a0a1a6197777c0b36c842e71121d3a
[ "Apache-2.0" ]
1
2021-12-21T06:20:17.000Z
2021-12-21T06:20:17.000Z
codedigger/codechef/tests/test_setup.py
jyothiprakashpanaik/Backend
9ab1b57436a0a1a6197777c0b36c842e71121d3a
[ "Apache-2.0" ]
null
null
null
codedigger/codechef/tests/test_setup.py
jyothiprakashpanaik/Backend
9ab1b57436a0a1a6197777c0b36c842e71121d3a
[ "Apache-2.0" ]
null
null
null
from rest_framework.test import APITestCase, APIClient from django.urls import reverse from user.models import Profile, User from lists.test_fixtures.profile_fixtures import profile1, profile2 class TestSetUp(APITestCase): # def setUp(self): # # set up test case do some calculation # return supe...
29.866667
74
0.659226
79788f9d0accf6f48a515d15f613fef446e295bd
25,188
py
Python
pysit/gallery/gallery_base.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
null
null
null
pysit/gallery/gallery_base.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
null
null
null
pysit/gallery/gallery_base.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
1
2020-06-13T07:13:07.000Z
2020-06-13T07:13:07.000Z
import os import os.path import urllib.request, urllib.error, urllib.parse import urllib.parse import hashlib import gzip import numpy as np import scipy from pysit import * from pysit.util.config import get_gallery_data_path from pysit.util.net import download_file from pysit.util.io import read_model from pysit.uti...
38.513761
137
0.627362
797890ea145233faea1da3903a6d9d9eba958fc2
3,292
py
Python
tests/test_aruba.py
ccDev-Labs/splunk-connect-for-syslog
2b30c711b4e53135444b485623bfc610ac2f19e2
[ "BSD-2-Clause", "CC0-1.0" ]
null
null
null
tests/test_aruba.py
ccDev-Labs/splunk-connect-for-syslog
2b30c711b4e53135444b485623bfc610ac2f19e2
[ "BSD-2-Clause", "CC0-1.0" ]
null
null
null
tests/test_aruba.py
ccDev-Labs/splunk-connect-for-syslog
2b30c711b4e53135444b485623bfc610ac2f19e2
[ "BSD-2-Clause", "CC0-1.0" ]
null
null
null
# Copyright 2019 Splunk, Inc. # # Use of this source code is governed by a BSD-2-clause-style # license that can be found in the LICENSE-BSD2 file or at # https://opensource.org/licenses/BSD-2-Clause from jinja2 import Environment from .sendmessage import * from .splunkutils import * from .timeutils import * import ...
58.785714
332
0.68955
79789193dd0c92c1bc0ea5f80b425e8734fb010e
4,231
py
Python
argus/explore/chart.py
lbny/argus
5160839bd747f5073a892736ea3405f0fc126691
[ "MIT" ]
null
null
null
argus/explore/chart.py
lbny/argus
5160839bd747f5073a892736ea3405f0fc126691
[ "MIT" ]
null
null
null
argus/explore/chart.py
lbny/argus
5160839bd747f5073a892736ea3405f0fc126691
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import numpy as np import seaborn as sns import itertools from argus.utils import to_array, to_ndarray def plot_mirrorline(df, x_column, scale=False): if isinstance(x_column, str): x_points = df[x_column] else: x_points = to_array(x_column) ...
31.340741
118
0.612621
7978929e706c2ec325d15be3acb76f58d9e34b3e
5,927
py
Python
Applications/thermostatControlAgent.py
ajfar-bem/wisebldg
0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05
[ "Unlicense" ]
null
null
null
Applications/thermostatControlAgent.py
ajfar-bem/wisebldg
0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05
[ "Unlicense" ]
null
null
null
Applications/thermostatControlAgent.py
ajfar-bem/wisebldg
0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05
[ "Unlicense" ]
null
null
null
import json import logging import sys import psycopg2 from bemoss_lib.utils import db_helper _log = logging.getLogger(__name__) from bemoss_lib.platform.BEMOSSAgent import BEMOSSAgent from bemoss_lib.utils.BEMOSS_ONTOLOGY import BEMOSS_ONTOLOGY TEMP = BEMOSS_ONTOLOGY.TEMPERATURE.NAME class ThermostatControlAgent(B...
43.903704
112
0.632867
797893e782dd7ae9ea865886074299dcc8f9f7a9
2,129
py
Python
read_DEM_index.py
tsutterley/PointDatabase
094ea04133790f788410f73fb0b406a2d65273c4
[ "MIT" ]
1
2019-08-30T12:46:05.000Z
2019-08-30T12:46:05.000Z
read_DEM_index.py
tsutterley/PointDatabase
094ea04133790f788410f73fb0b406a2d65273c4
[ "MIT" ]
null
null
null
read_DEM_index.py
tsutterley/PointDatabase
094ea04133790f788410f73fb0b406a2d65273c4
[ "MIT" ]
4
2019-06-12T20:28:11.000Z
2020-05-31T05:28:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 13 15:25:04 2019 @author: ben """ from .geo_index import geo_index from .read_DEM import read_DEM from .point_data import point_data from .WV_date import WV_date import numpy as np def read_DEM_index(xy0, W, GI=None, IndexFile=None, DS_dict=None, b...
33.793651
115
0.588539
797893fbaef9c1e0af8b39bbfc3efd557c9db59b
1,189
py
Python
voyager/test/test_io_k8s_apimachinery_pkg_apis_meta_v1_watch_event.py
voyager-client/python
d30de935c9cf30fa9e9e4c90714f3868767f4065
[ "Apache-2.0" ]
null
null
null
voyager/test/test_io_k8s_apimachinery_pkg_apis_meta_v1_watch_event.py
voyager-client/python
d30de935c9cf30fa9e9e4c90714f3868767f4065
[ "Apache-2.0" ]
1
2018-06-24T20:33:11.000Z
2018-06-24T20:33:11.000Z
voyager/test/test_io_k8s_apimachinery_pkg_apis_meta_v1_watch_event.py
voyager-client/python
d30de935c9cf30fa9e9e4c90714f3868767f4065
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Voyager No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v7.1.1 Contact: hello@appscode.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import ...
26.422222
133
0.761144
7978947d1d6f440db6d92854ea65d7937851347f
2,959
py
Python
test/test_cli.py
mvk/sshadder
b7f069b6a98078856a044106c941e4c303003a34
[ "MIT" ]
null
null
null
test/test_cli.py
mvk/sshadder
b7f069b6a98078856a044106c941e4c303003a34
[ "MIT" ]
9
2017-04-21T06:11:07.000Z
2017-06-13T05:56:14.000Z
test/test_cli.py
mvk/sshadder
b7f069b6a98078856a044106c941e4c303003a34
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sshadder import cli def test_strlist(): input_item = None try: cli.strlist(input_item) assert False, "unexpected no error" except cli.argparse.ArgumentTypeError: assert True except: assert False, "unexpected error type" input_item = ["s"...
26.9
48
0.616087
797896eb819bb107bdf1b12a13630996eb439215
10,315
py
Python
rasa/core/channels/hangouts.py
Neural-Space/rasa
7e7e5ec8511df9799f737196070381db7f1528d7
[ "Apache-2.0" ]
1
2021-03-24T13:38:02.000Z
2021-03-24T13:38:02.000Z
rasa/core/channels/hangouts.py
Neural-Space/rasa
7e7e5ec8511df9799f737196070381db7f1528d7
[ "Apache-2.0" ]
null
null
null
rasa/core/channels/hangouts.py
Neural-Space/rasa
7e7e5ec8511df9799f737196070381db7f1528d7
[ "Apache-2.0" ]
null
null
null
import logging from asyncio import CancelledError from sanic import Blueprint, response from sanic.request import Request from typing import Text, List, Dict, Any, Optional, Callable, Iterable, Awaitable, Union from sanic.response import HTTPResponse from sanic.exceptions import abort from oauth2client import client f...
33.060897
118
0.571207
797896f112d1abe2a72e543d1a37275f09f15474
1,064
py
Python
test/clients/test_db_client.py
aloknnikhil/orion-server
ab48d9484c0c926b68e48f1d371dba1e157f7cc3
[ "MIT" ]
null
null
null
test/clients/test_db_client.py
aloknnikhil/orion-server
ab48d9484c0c926b68e48f1d371dba1e157f7cc3
[ "MIT" ]
null
null
null
test/clients/test_db_client.py
aloknnikhil/orion-server
ab48d9484c0c926b68e48f1d371dba1e157f7cc3
[ "MIT" ]
null
null
null
from unittest import TestCase import flask_sqlalchemy import unittest.mock as mock from orion.clients.db import DbClient class TestDbClient(TestCase): def setUp(self): self.mock_app = mock.MagicMock() self.mock_database_config = { 'user': 'user', 'password': 'password', ...
30.4
70
0.616541
797897cc09839d6f6f064c7f0bd4644319053e54
12,035
py
Python
soc_linux.py
aventuri/linux-on-litex-vexriscv
a1f7f59cc3744ba5d218f29bb5aa261b82db0387
[ "BSD-2-Clause" ]
null
null
null
soc_linux.py
aventuri/linux-on-litex-vexriscv
a1f7f59cc3744ba5d218f29bb5aa261b82db0387
[ "BSD-2-Clause" ]
null
null
null
soc_linux.py
aventuri/linux-on-litex-vexriscv
a1f7f59cc3744ba5d218f29bb5aa261b82db0387
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import subprocess from migen import * from litex.soc.interconnect import wishbone from litex.soc.cores.gpio import GPIOOut, GPIOIn from litex.soc.cores.spi import SPIMaster from litex.soc.cores.bitbang import I2CMaster from litex.soc.cores.xadc import XADC from litex.soc.cores.pwm i...
44.739777
100
0.505193
79789877fb1d74af7a801b3da368196e1dbe74f4
89
py
Python
Finance_system/savings/apps.py
GBstallman/Microfinance-System-api
c5fa8c66607aa96d2b6eb16437b0177cdb94029c
[ "MIT" ]
72
2015-09-18T07:23:20.000Z
2022-03-23T14:35:46.000Z
savings/apps.py
mohbadar/micro-finance
00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6
[ "MIT" ]
68
2015-01-03T13:44:40.000Z
2021-06-10T20:00:23.000Z
savings/apps.py
mohbadar/micro-finance
00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6
[ "MIT" ]
73
2015-02-10T07:03:42.000Z
2022-02-24T21:11:01.000Z
from django.apps import AppConfig class SavingsConfig(AppConfig): name = 'savings'
14.833333
33
0.752809
79789a9263785a942806aec0abd7cd657b88aafb
2,940
py
Python
mailchimp3/baseapi.py
michaelwalkerfl/python-mailchimp
3515ab2a724a39825c2c0d3c0b254d43ec198d2b
[ "MIT" ]
311
2015-11-27T07:15:42.000Z
2019-03-06T15:55:40.000Z
mailchimp3/baseapi.py
michaelwalkerfl/python-mailchimp
3515ab2a724a39825c2c0d3c0b254d43ec198d2b
[ "MIT" ]
144
2016-01-25T21:29:33.000Z
2019-02-24T13:36:16.000Z
mailchimp3/baseapi.py
michaelwalkerfl/python-mailchimp
3515ab2a724a39825c2c0d3c0b254d43ec198d2b
[ "MIT" ]
105
2015-10-21T14:34:38.000Z
2019-03-01T21:34:44.000Z
# coding=utf-8 """ The base API object that allows constructions of various endpoint paths """ from __future__ import unicode_literals from itertools import chain from mailchimp3.helpers import merge_results class BaseApi(object): """ Simple class to buid path for entities """ def __init__(self, mc_...
36.75
100
0.611565
79789b22e0ea515269850aeff902d93ba861e249
296
py
Python
auth-center/conf/__init__.py
Basic-Components/auth-center
bf03922be37161108426712465719f5a3f165834
[ "MIT" ]
1
2021-08-03T09:02:26.000Z
2021-08-03T09:02:26.000Z
auth-center/conf/__init__.py
Basic-Components/auth-center
bf03922be37161108426712465719f5a3f165834
[ "MIT" ]
null
null
null
auth-center/conf/__init__.py
Basic-Components/auth-center
bf03922be37161108426712465719f5a3f165834
[ "MIT" ]
1
2018-01-15T14:28:46.000Z
2018-01-15T14:28:46.000Z
from .debug import DebugEnv from .local import LocalEnv from .production import ProductionEnv from .testing import TestingEnv ENVS = { 'debug':DebugEnv, "local":LocalEnv, 'production':ProductionEnv, 'testing':TestingEnv } def env_factory(env): return ENVS.get(env,LocalEnv)
19.733333
37
0.733108
79789b5f0bd0f7ad03fb1726019649ef533b4355
5,379
py
Python
censere/models/demographics.py
nhi-vanye/mars-censere
65678b7bc102e2adff2f78f8b3a13ba84cdf0a01
[ "BSD-4-Clause" ]
null
null
null
censere/models/demographics.py
nhi-vanye/mars-censere
65678b7bc102e2adff2f78f8b3a13ba84cdf0a01
[ "BSD-4-Clause" ]
null
null
null
censere/models/demographics.py
nhi-vanye/mars-censere
65678b7bc102e2adff2f78f8b3a13ba84cdf0a01
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Richard Offer """ # Stores demographic results from __future__ import division import peewee import playhouse.signals from censere.config import Generator as thisApp import censere.db as DB import censere.utils as UTILS from .summary import Summary as Summary from .settler i...
36.591837
109
0.621863
79789bc80ec5f2de737f4ec5bfb60b1e10658742
1,529
py
Python
evolution_analysis/code/HGT_analysis/HGT_from_fungi/code/transporter_HGT/split_file.py
SysBioChalmers/Multi_scale_evolution
b5f28ead733872519bc0758df034a076224c4253
[ "MIT" ]
1
2020-05-27T13:43:55.000Z
2020-05-27T13:43:55.000Z
evolution_analysis/code/HGT_analysis/HGT_from_fungi/code/transporter_HGT/split_file.py
SysBioChalmers/Multi_scale_evolution
b5f28ead733872519bc0758df034a076224c4253
[ "MIT" ]
null
null
null
evolution_analysis/code/HGT_analysis/HGT_from_fungi/code/transporter_HGT/split_file.py
SysBioChalmers/Multi_scale_evolution
b5f28ead733872519bc0758df034a076224c4253
[ "MIT" ]
1
2021-03-24T18:29:29.000Z
2021-03-24T18:29:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This script is to split Blast file into huge amount of files according to the specific sequence id. with open('blastfile.txt', 'r') as infile : lines = infile.readlines() # seqids = [line.strip("\n").split("\t")[0] for line in lines] # print(seqids) # seqids = set...
28.314815
174
0.537606
79789d28d0b579225dc7b0957eb0d5a7dabbd544
8,253
py
Python
pyrobolearn/robots/rrbot.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/robots/rrbot.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/robots/rrbot.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provide the RRBot robotic platform. """ import os import numpy as np from pyrobolearn.robots.robot import Robot __author__ = "Brian Delhaisse" __copyright__ = "Copyright 2018, PyRoboLearn" __license__ = "GNU GPLv3" __version__ = "1.0.0" __maintainer__ = "Brian Delhai...
37.175676
115
0.633709
79789d470993bacb424c896e2f4d38bc1663c075
967
py
Python
configs/litehrnet/fcn_litehr30-s2_512x512_40k_kvasir-seg.py
openvinotoolkit/mmsegmentation
9f50fc158be50594ea4aecf0a07ea652c91ec846
[ "Apache-2.0" ]
3
2021-12-21T07:25:13.000Z
2022-02-07T01:59:19.000Z
configs/litehrnet/fcn_litehr30-s2_512x512_40k_kvasir-seg.py
openvinotoolkit/mmsegmentation
9f50fc158be50594ea4aecf0a07ea652c91ec846
[ "Apache-2.0" ]
13
2021-12-10T15:08:56.000Z
2022-03-23T08:58:03.000Z
configs/litehrnet/fcn_litehr30-s2_512x512_40k_kvasir-seg.py
evgeny-izutov/mmsegmentation
9f50fc158be50594ea4aecf0a07ea652c91ec846
[ "Apache-2.0" ]
3
2021-11-11T23:16:51.000Z
2021-12-08T23:49:29.000Z
_base_ = [ '../_base_/models/fcn_litehr30_s2.py', '../_base_/datasets/kvasir.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_cos_40k.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( decode_head=dict( type='FCNHead', in_channels=40, in_index=0...
25.447368
79
0.555326
79789f714da615ef07c7042e927172dc898663a2
1,996
py
Python
test_gsapi.py
Continue-to-Serve/cts_slack_bot
02b196d192202550a8dfc49ef750de7f614bf3ab
[ "MIT" ]
null
null
null
test_gsapi.py
Continue-to-Serve/cts_slack_bot
02b196d192202550a8dfc49ef750de7f614bf3ab
[ "MIT" ]
null
null
null
test_gsapi.py
Continue-to-Serve/cts_slack_bot
02b196d192202550a8dfc49ef750de7f614bf3ab
[ "MIT" ]
1
2021-02-04T16:55:17.000Z
2021-02-04T16:55:17.000Z
#!/usr/bin/env python3 import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request # If modifying these scopes, delete the file token.pickle. SCOPES = ['https://www.googleapis.com/auth/spreadsheets.r...
35.017544
79
0.658818
79789fc95e83a266ce2f6b8eb7ce7ec78be5cb13
4,842
py
Python
docs/conf.py
CurtLH/fiscalyear
77c5c0c82a62de36e77284e924f744bb1e770a31
[ "MIT" ]
null
null
null
docs/conf.py
CurtLH/fiscalyear
77c5c0c82a62de36e77284e924f744bb1e770a31
[ "MIT" ]
null
null
null
docs/conf.py
CurtLH/fiscalyear
77c5c0c82a62de36e77284e924f744bb1e770a31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # fiscalyear documentation build configuration file, created by # sphinx-quickstart on Sun Apr 9 08:34:36 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
30.45283
79
0.6867
79789fcca9d3b89d5fe5c8c77f4f0f9990b4dbfb
35,925
py
Python
sphinx/writers/text.py
AWhetter/sphinx
6030e7390df37f0e3cd25cdc1e56dbb95107c69d
[ "BSD-2-Clause" ]
null
null
null
sphinx/writers/text.py
AWhetter/sphinx
6030e7390df37f0e3cd25cdc1e56dbb95107c69d
[ "BSD-2-Clause" ]
null
null
null
sphinx/writers/text.py
AWhetter/sphinx
6030e7390df37f0e3cd25cdc1e56dbb95107c69d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.writers.text ~~~~~~~~~~~~~~~~~~~ Custom docutils writer for plain text. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import re import textwrap from itertools import groupby from docutils i...
30.012531
93
0.556075
7978a056cb701f81faa218c7a110cf51cb5dc7ba
239
py
Python
src/exceptions/exceptions.py
mariano-dim/ProyectoX
22ae50f966dfe7ae730dee484449fd1ba0b64c28
[ "MIT" ]
null
null
null
src/exceptions/exceptions.py
mariano-dim/ProyectoX
22ae50f966dfe7ae730dee484449fd1ba0b64c28
[ "MIT" ]
null
null
null
src/exceptions/exceptions.py
mariano-dim/ProyectoX
22ae50f966dfe7ae730dee484449fd1ba0b64c28
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Proyecto X # variableDeclaration.py # # Creato el 15/09/2019 # Mariano Andres Di Maggio <mariano.dim@gmail.com> # class EndOfExpressionException(Exception): pass class SyntaxException(Exception): pass
14.058824
51
0.719665
7978a2d081ef444348a140bc1413362823bde55d
25,044
py
Python
api/v1/views/volume.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
197
2016-12-08T02:33:32.000Z
2022-03-23T14:27:47.000Z
api/v1/views/volume.py
simpsonw/atmosphere
3a5203ef0b563de3a0e8c8c8715df88186532d7a
[ "BSD-3-Clause" ]
385
2017-01-03T22:51:46.000Z
2020-12-16T16:20:42.000Z
api/v1/views/volume.py
benlazarine/atmosphere
38fad8e4002e510e8b4294f2bb5bc75e8e1817fa
[ "BSD-3-Clause" ]
50
2016-12-08T08:32:25.000Z
2021-12-10T00:21:39.000Z
""" Atmosphere service volume """ from socket import error as socket_error from django.utils.timezone import datetime, now from rest_framework.response import Response from rest_framework import status from rtwo.exceptions import ConnectionFailure from rtwo.exceptions import LibcloudInvalidCredsError, LibcloudBadRes...
35.777143
103
0.615117
7978a2f955900320d2fb4249081d8b47d571afdf
497
py
Python
conftest.py
jsam/datagears
d2400f20069898a959fbe182931faba1c90b7181
[ "BSD-3-Clause" ]
3
2020-11-09T00:05:59.000Z
2021-03-31T11:30:22.000Z
conftest.py
jsam/datagears
d2400f20069898a959fbe182931faba1c90b7181
[ "BSD-3-Clause" ]
28
2020-11-12T14:56:21.000Z
2022-03-07T11:07:08.000Z
conftest.py
jsam/datagears
d2400f20069898a959fbe182931faba1c90b7181
[ "BSD-3-Clause" ]
1
2021-04-03T14:35:19.000Z
2021-04-03T14:35:19.000Z
import importlib CORE_FIXTURES = ["tests.core.fixtures.features", "tests.core.fixtures.package", "tests.core.fixtures.engine", "tests.core.fixtures.stores"] INCLUDE_FIXTURES = CORE_FIXTURES for _fixture in INCLUDE_FIXTURES: module = importlib.import_module(_fixture) globals().update( {n: getattr(mo...
31.0625
139
0.694165
7978a359efc5f17b82d9d5467f456e891ca9872d
800
py
Python
infra/bots/assets/go/create.py
stdft112/skia
49bb9c17d713b0b55a4beb8ca82cb9b7952acbe0
[ "BSD-3-Clause" ]
3
2020-11-11T12:48:27.000Z
2021-05-05T22:12:53.000Z
infra/bots/assets/go/create.py
go-graphics/skia
40cfaf0a1c237edb128788ac1c0f94e0ed5e07b0
[ "BSD-3-Clause" ]
null
null
null
infra/bots/assets/go/create.py
go-graphics/skia
40cfaf0a1c237edb128788ac1c0f94e0ed5e07b0
[ "BSD-3-Clause" ]
2
2019-09-07T15:19:06.000Z
2020-07-08T14:23:29.000Z
#!/usr/bin/env python # # Copyright 2016 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Create the asset.""" import argparse import subprocess GO_URL = "https://storage.googleapis.com/golang/go1.10.3.linux-amd64.tar.gz" def create_asset(targe...
23.529412
79
0.6925
7978a37477164bd7c0d7c48ad5bd5d3f147f71fe
4,859
py
Python
mobilenet_search_space/rlnas/retrain_architecture/generate_flops_lookup_table.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
17
2021-05-17T04:54:17.000Z
2022-01-23T09:59:02.000Z
mobilenet_search_space/rlnas/retrain_architecture/flops_test_proxylessnet.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
2
2021-07-09T05:14:29.000Z
2022-02-05T10:15:31.000Z
mobilenet_search_space/rlnas/retrain_architecture/generate_flops_lookup_table.py
megvii-model/RLNAS
a7e2ef9debcd06a93b075181a027b806b737b106
[ "MIT" ]
8
2021-05-28T00:04:20.000Z
2021-10-18T02:41:34.000Z
from flops_test_blocks import * import time import sys, os import argparse sys.setrecursionlimit(10000) import functools print=functools.partial(print,flush=True) from IPython import embed from thop import profile import pickle class Flops_Tester(): def __init__(self, savepath): self.op_flops_dict = {} ...
40.491667
101
0.483433
7978a3828478976a8847936c6cb89016d4fef82a
8,660
py
Python
fairseq/data/indexed_dataset.py
initc/bert-fairseq
9f1e34d30dde8b5d3fd397d413bb6a530add8713
[ "BSD-3-Clause" ]
12
2019-02-14T05:20:44.000Z
2021-08-17T13:12:08.000Z
fairseq/data/indexed_dataset.py
initc/bert-fairseq
9f1e34d30dde8b5d3fd397d413bb6a530add8713
[ "BSD-3-Clause" ]
1
2019-04-28T09:11:00.000Z
2019-06-05T03:16:45.000Z
fairseq/data/indexed_dataset.py
initc/bert-fairseq
9f1e34d30dde8b5d3fd397d413bb6a530add8713
[ "BSD-3-Clause" ]
4
2019-03-15T15:50:48.000Z
2021-07-16T04:24:50.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import os import struct import nu...
30.818505
84
0.600346
7978a4049f85275b91f6cea3a8aaf41cebc8e414
4,873
py
Python
infraform/executor.py
bregman-arie/infraform
5362c0af3d8a63dc80b77e50796890ca5d9ec69e
[ "Apache-2.0" ]
22
2020-03-10T14:51:37.000Z
2022-03-14T19:55:03.000Z
infraform/executor.py
SNOmad1/infraform
a08d8b338b7c02f299e087a41d096f2f27cccda4
[ "Apache-2.0" ]
8
2020-07-10T19:57:38.000Z
2022-01-04T19:01:15.000Z
infraform/executor.py
SNOmad1/infraform
a08d8b338b7c02f299e087a41d096f2f27cccda4
[ "Apache-2.0" ]
23
2020-03-22T07:44:32.000Z
2022-02-09T21:18:00.000Z
# Copyright 2020 Arie Bregman # # 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 agree...
38.370079
78
0.56064
7978a44e6235568eb7f5b777cfe9ddd366bf790d
4,396
py
Python
SCRAPE/Lib/site-packages/twisted/trial/_asyncrunner.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/trial/_asyncrunner.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/trial/_asyncrunner.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# -*- test-case-name: twisted.trial.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Infrastructure for test running and suites. """ import doctest import gc import unittest as pyunit from zope.interface import implementer from twisted.python import components from twisted.trial...
25.264368
88
0.66515
7978a4a259919c0434f32b6e4a704cdbdcabb9a0
2,269
py
Python
core/structures/ImageProviderManager.py
Boooru/BooruViuMD
57e9933b0afb07f7f6cd0f920db624af2b028f5b
[ "BSD-3-Clause" ]
1
2021-11-08T00:20:03.000Z
2021-11-08T00:20:03.000Z
core/structures/ImageProviderManager.py
Boooru/BooruViuMD
57e9933b0afb07f7f6cd0f920db624af2b028f5b
[ "BSD-3-Clause" ]
null
null
null
core/structures/ImageProviderManager.py
Boooru/BooruViuMD
57e9933b0afb07f7f6cd0f920db624af2b028f5b
[ "BSD-3-Clause" ]
1
2021-11-08T00:20:57.000Z
2021-11-08T00:20:57.000Z
from kivy.app import App import util.provider_util from core import caches from core.structures import ImageProvider import assets.strings from util import provider_util class ProviderManager: DEFAULT_PROVIDER = assets.strings.PROVIDER_GELBOORU_NAME def __init__(self): self.__provider = None ...
36.596774
113
0.708682
7978a4b4e371a0a844fe4b73bb2960927478d2f8
6,472
py
Python
fit_and_load_stan_model.py
JanMuench/Tutorial_Bayesian_Filter_cPCF_data
48a4b31eca62d0ab3a941bc34e431a2772f04dbf
[ "MIT" ]
null
null
null
fit_and_load_stan_model.py
JanMuench/Tutorial_Bayesian_Filter_cPCF_data
48a4b31eca62d0ab3a941bc34e431a2772f04dbf
[ "MIT" ]
null
null
null
fit_and_load_stan_model.py
JanMuench/Tutorial_Bayesian_Filter_cPCF_data
48a4b31eca62d0ab3a941bc34e431a2772f04dbf
[ "MIT" ]
null
null
null
import os import pickle import numpy as np def load(filename): """Reload compiled models for reuse.""" print("Trying to load pickle in:") print(os.getcwd()) return pickle.load(open(filename,'rb')) def create_model_and_fit(DATA, name, sampling_iter, warmingUp, chains): print("get model and fit:"+o...
31.2657
107
0.410383
7978a5f70a62510c10108716d47712127a98afba
2,408
py
Python
fashionnets/models/embedding/resnet50.py
NiklasHoltmeyer/FashionNets
918e57f122b8cfa36dba1d0b993c763ba35ac815
[ "MIT" ]
null
null
null
fashionnets/models/embedding/resnet50.py
NiklasHoltmeyer/FashionNets
918e57f122b8cfa36dba1d0b993c763ba35ac815
[ "MIT" ]
null
null
null
fashionnets/models/embedding/resnet50.py
NiklasHoltmeyer/FashionNets
918e57f122b8cfa36dba1d0b993c763ba35ac815
[ "MIT" ]
null
null
null
import tensorflow as tf from fashionnets.models.layer.ResNetIdentityBlock import ResnetIdentityBlock from fashiondatasets.utils.logger.defaultLogger import defaultLogger from tensorflow.keras.applications import resnet from tensorflow.keras.regularizers import l2 from tensorflow.python.keras.models import Sequential E...
43.781818
125
0.539452
7978a6608f2c976720b98688edaba337cac800e8
9,502
py
Python
airflow/executors/base_executor.py
izhidkikh/airflow-1
3af72821a658910a0fedf90a8783cff3c1c38e38
[ "Apache-2.0" ]
null
null
null
airflow/executors/base_executor.py
izhidkikh/airflow-1
3af72821a658910a0fedf90a8783cff3c1c38e38
[ "Apache-2.0" ]
3
2021-03-10T02:58:18.000Z
2021-09-29T17:34:48.000Z
airflow/executors/base_executor.py
izhidkikh/airflow-1
3af72821a658910a0fedf90a8783cff3c1c38e38
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.856574
110
0.635656
7978a70e048af8782247eee196a6ba3119688dc1
4,143
py
Python
docs/source/conf.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
30.463235
79
0.64615
7978a762bb71aa2d87d3659a1ce9c538140d2f7b
237
py
Python
Set3/p3_8.py
izzy-el/mitbrazil-intro-python
193d552832393d193eb24d6881be0ab2a37b41d1
[ "MIT" ]
null
null
null
Set3/p3_8.py
izzy-el/mitbrazil-intro-python
193d552832393d193eb24d6881be0ab2a37b41d1
[ "MIT" ]
null
null
null
Set3/p3_8.py
izzy-el/mitbrazil-intro-python
193d552832393d193eb24d6881be0ab2a37b41d1
[ "MIT" ]
null
null
null
def f(x): return x * x * x def g(x): return x + 15 def composite_result(f, g, x): return f(g(x)) def composite(f, g): def first_function(x): return f(g(x)) return first_function # print(composite(f, g)(4))
15.8
30
0.578059
7978a7ed3b1fd0b90d1f44b8cc001aaad8a8d563
1,976
py
Python
phraser/find_max.py
lahosken/misc
9b0e6c368e5bdd0b7a8fc97801fbbc54797b2214
[ "Apache-2.0" ]
1
2016-08-16T15:49:03.000Z
2016-08-16T15:49:03.000Z
phraser/find_max.py
lahosken/misc
9b0e6c368e5bdd0b7a8fc97801fbbc54797b2214
[ "Apache-2.0" ]
null
null
null
phraser/find_max.py
lahosken/misc
9b0e6c368e5bdd0b7a8fc97801fbbc54797b2214
[ "Apache-2.0" ]
null
null
null
import glob import math import os TEST_PHRASES = [s.strip() for s in """ 1774 writing acetonitrile oxidation advance hails antibacterial action assisting mentally banned sex baptismal services better words cardinals seasons chilean spanish climbing capability covered wit...
21.955556
82
0.678644
7978a8451105102b4431119fe317e0e2a1c6dbb6
10,744
py
Python
models/face_detection_and_alignment/tensorflow/facenet/fp32/validate_on_lfw.py
gyshi/intel-models
4ead44aa254a84109ac8019f5d386e3adb75ac26
[ "Apache-2.0" ]
1
2019-09-11T21:41:36.000Z
2019-09-11T21:41:36.000Z
models/face_detection_and_alignment/tensorflow/facenet/fp32/validate_on_lfw.py
gyshi/intel-models
4ead44aa254a84109ac8019f5d386e3adb75ac26
[ "Apache-2.0" ]
null
null
null
models/face_detection_and_alignment/tensorflow/facenet/fp32/validate_on_lfw.py
gyshi/intel-models
4ead44aa254a84109ac8019f5d386e3adb75ac26
[ "Apache-2.0" ]
1
2019-09-11T21:41:51.000Z
2019-09-11T21:41:51.000Z
"""Validate a face recognizer on the "Labeled Faces in the Wild" dataset (http://vis-www.cs.umass.edu/lfw/). Embeddings are calculated using the pairs from http://vis-www.cs.umass.edu/lfw/pairs.txt and the ROC curve is calculated and plotted. Both the model metagraph and the model parameters need to exist in the same d...
50.441315
168
0.706069
7978a8496c39f0cc6c2458243ca41062734be045
9,577
py
Python
src/autocat/learning/predictors.py
aced-differentiate/auto_cat
eeaea6b3e3f117565e1479d5c5c1cb9d830f8526
[ "MIT" ]
null
null
null
src/autocat/learning/predictors.py
aced-differentiate/auto_cat
eeaea6b3e3f117565e1479d5c5c1cb9d830f8526
[ "MIT" ]
null
null
null
src/autocat/learning/predictors.py
aced-differentiate/auto_cat
eeaea6b3e3f117565e1479d5c5c1cb9d830f8526
[ "MIT" ]
null
null
null
import copy import numpy as np from typing import List from typing import Dict from typing import Union from prettytable import PrettyTable from ase import Atoms from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_squared_erro...
30.893548
88
0.616477
7978a97ed817d5719b5c294cc9889245ea8429a6
273
py
Python
jira_pert/diagram/diagram_config.py
unitatem/jira-pert
a95b5d2a9a154d70e464689837559430860173ac
[ "MIT" ]
null
null
null
jira_pert/diagram/diagram_config.py
unitatem/jira-pert
a95b5d2a9a154d70e464689837559430860173ac
[ "MIT" ]
null
null
null
jira_pert/diagram/diagram_config.py
unitatem/jira-pert
a95b5d2a9a154d70e464689837559430860173ac
[ "MIT" ]
null
null
null
import json class DiagramConfig(object): def __init__(self): self.config = dict() self._load_config_file() def _load_config_file(self): with open('jira_pert/diagram/diagram_config.json') as file: self.config = json.load(file)
22.75
67
0.652015
7978a9fde0f50712bb03080031d5c9e8a9ffeea4
2,865
py
Python
audiopack.py
sansculotte/glitchbox
1bf7b95b3dd114d5c19fec62197103ae572a9e48
[ "Unlicense" ]
10
2015-04-16T01:37:43.000Z
2021-04-10T13:35:44.000Z
audiopack.py
sansculotte/glitchbox
1bf7b95b3dd114d5c19fec62197103ae572a9e48
[ "Unlicense" ]
null
null
null
audiopack.py
sansculotte/glitchbox
1bf7b95b3dd114d5c19fec62197103ae572a9e48
[ "Unlicense" ]
null
null
null
from collections import namedtuple from scipy.io import wavfile #from drawSVG import Line import numpy as np """ An audio-visualizing library """ # ## ### Audio data functions ## # def pcm2float(sig, dtype='float64'): """Convert PCM signal to floating point with a range from -1 to 1. Use dtype='float32' for ...
26.045455
83
0.579407
7978aa1c76d46d0815b3e0d34c845678578c5179
481
py
Python
pyoneer/activations/activations_test.py
tgdif/pyoneer
7d9e3ca10b9209bb62eb446ef73b468668bed453
[ "Apache-2.0" ]
9
2019-01-15T15:33:24.000Z
2019-10-07T19:31:54.000Z
pyoneer/activations/activations_test.py
tgdif/pyoneer
7d9e3ca10b9209bb62eb446ef73b468668bed453
[ "Apache-2.0" ]
16
2019-02-18T16:35:24.000Z
2019-11-25T16:34:01.000Z
pyoneer/activations/activations_test.py
tgdif/pyoneer
7d9e3ca10b9209bb62eb446ef73b468668bed453
[ "Apache-2.0" ]
1
2019-11-25T15:42:19.000Z
2019-11-25T15:42:19.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from pyoneer.activations.activations_impl import swish class ActivationsTest(tf.test.TestCase): def test_swish(self): x = tf.constant([-1.0, 0.0, +1.0]) actual = s...
24.05
58
0.706861
7978aa4e4559e6612d27e884fd1b76c74d7d03e6
2,677
py
Python
scripts/PrintGapSupport.py
zhongmicai/pacbio_variant_caller_from_3rdReads
43d28cbd4e76ed2a4e820ded11a80592675db6c9
[ "MIT" ]
31
2016-09-22T23:22:11.000Z
2020-09-20T04:11:58.000Z
scripts/PrintGapSupport.py
zhongmicai/pacbio_variant_caller_from_3rdReads
43d28cbd4e76ed2a4e820ded11a80592675db6c9
[ "MIT" ]
26
2016-08-03T18:25:41.000Z
2019-02-21T16:50:57.000Z
scripts/PrintGapSupport.py
zhongmicai/pacbio_variant_caller_from_3rdReads
43d28cbd4e76ed2a4e820ded11a80592675db6c9
[ "MIT" ]
14
2016-08-02T23:29:13.000Z
2019-09-19T08:11:40.000Z
#!/usr/bin/env python import argparse import numpy as np import math import sys import pdb import bisect ap = argparse.ArgumentParser(description="Print gap support from output of PrintGaps.py.") ap.add_argument("table", help="Input tabular file") ap.add_argument("out", help="Output file, stdout implies stdout") ap.a...
27.316327
235
0.564811