hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
6aa7857c4b70601dfd0bce5e705e8a1137663a78
1,052
py
Python
examples/video/ex_play_rx.py
indigits/indigits-vision
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
[ "Apache-2.0" ]
2
2021-11-02T10:09:47.000Z
2021-12-10T04:23:14.000Z
examples/video/ex_play_rx.py
indigits/indigits-vision
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
[ "Apache-2.0" ]
null
null
null
examples/video/ex_play_rx.py
indigits/indigits-vision
317fbf70c558e8f9563c3d0ba3bebbc5f84af622
[ "Apache-2.0" ]
null
null
null
import os import cv2 from cr import vision as vision from dirsetup import VIDEO_DIR import skvideo.io import rx from rx import operators as ops import asyncio loop = asyncio.get_event_loop() done = loop.create_future() filepath = os.path.join(VIDEO_DIR, 'nascar_01.mp4') inputparameters = {} outputparameters = {} vi...
19.849057
61
0.675856
ad45d3f5c979b21f7ff4dbb9f306858c9afd42b1
13,796
py
Python
src/tidynotes/notebook.py
JosephMcGrath/markdown_notebook
94f3ae584c5dfb57df56ea0a357147df47a24976
[ "MIT" ]
1
2021-02-12T00:56:27.000Z
2021-02-12T00:56:27.000Z
src/tidynotes/notebook.py
JosephMcGrath/tidynotes
94f3ae584c5dfb57df56ea0a357147df47a24976
[ "MIT" ]
null
null
null
src/tidynotes/notebook.py
JosephMcGrath/tidynotes
94f3ae584c5dfb57df56ea0a357147df47a24976
[ "MIT" ]
null
null
null
""" Utility for managing an entire notebook. There should be no direct modification of markdown here, that's in MarkdownPart. """ import datetime import glob import hashlib import json import logging import os from typing import Any, Dict, List, Optional, Tuple, Union import jinja2 import pkg_resources from .logs i...
37.387534
88
0.611699
3a475d54774130f2b8c79e963573d33c9d8862a7
13,660
py
Python
pysnmp/HPSWITCH-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HPSWITCH-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HPSWITCH-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HPSWITCH-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HPSWITCH-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:30:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019,...
114.789916
1,828
0.737628
cc98392f4db84ca2d69d848bf8624fe6cc3b5c23
464
py
Python
PyOpenGL-3.0.2/OpenGL/raw/GL/SGIX/vertex_preclip.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/SGIX/vertex_preclip.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/SGIX/vertex_preclip.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
'''Autogenerated by get_gl_extensions script, do not edit!''' from OpenGL import platform as _p from OpenGL.GL import glget EXTENSION_NAME = 'GL_SGIX_vertex_preclip' _p.unpack_constants( """GL_VERTEX_PRECLIP_SGIX 0x83EE GL_VERTEX_PRECLIP_HINT_SGIX 0x83EF""", globals()) def glInitVertexPreclipSGIX(): '''Return boo...
35.692308
71
0.797414
9e9733033b2195d971ba927306012bd2e03d27f2
1,616
py
Python
samples/generated_samples/dialogflow_generated_dialogflowcx_v3beta1_test_cases_export_test_cases_sync.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3beta1_test_cases_export_test_cases_sync.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3beta1_test_cases_export_test_cases_sync.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.979592
85
0.764233
e6f58ca87c7ebbc0e1000949ffbdaa5be6183632
2,619
py
Python
setup.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
null
null
null
setup.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
null
null
null
setup.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright Noronha Development Team # # 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...
33.151899
89
0.646048
f0eebfd7cc08d4572d89b164b5632b4900475115
631
py
Python
zink/templatetags/version.py
jw/zink
e890e3bcff56a07a265506350d41af8bce633b05
[ "MIT" ]
2
2016-01-25T09:01:51.000Z
2016-05-08T11:29:40.000Z
zink/templatetags/version.py
jw/zink
e890e3bcff56a07a265506350d41af8bce633b05
[ "MIT" ]
51
2018-02-14T05:14:40.000Z
2022-01-14T08:01:05.000Z
zink/templatetags/version.py
jw/zink
e890e3bcff56a07a265506350d41af8bce633b05
[ "MIT" ]
1
2020-05-03T09:15:21.000Z
2020-05-03T09:15:21.000Z
import pkg_resources import sys from django import template register = template.Library() @register.simple_tag def version(module): """ Display the version number of the given module {% version("django") %} """ if module == "python": python_version = sys.version_info retur...
23.37037
77
0.670365
976a0f24ceebe0c3b84dc3b95e4b844b48e0d8cc
15,225
py
Python
tests/unittests/exceptions/StoryError.py
chrisstpierre/storyscript
2f0ed1819eb3be5377732514c33cf72fe9da5e2f
[ "Apache-2.0" ]
null
null
null
tests/unittests/exceptions/StoryError.py
chrisstpierre/storyscript
2f0ed1819eb3be5377732514c33cf72fe9da5e2f
[ "Apache-2.0" ]
null
null
null
tests/unittests/exceptions/StoryError.py
chrisstpierre/storyscript
2f0ed1819eb3be5377732514c33cf72fe9da5e2f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import click from lark.exceptions import UnexpectedCharacters, UnexpectedToken from lark.lexer import Token from pytest import fixture, mark from storyscript.ErrorCodes import ErrorCodes from storyscript.Intention import Intention from storyscript.exceptions import CompilerError, S...
34.445701
79
0.71225
2212b0b0872da6b75abb91f0e1a3cad5e18310ca
6,321
py
Python
src/ScreenCompareLibrary/keywords/_compare.py
alans09/ScreenCompareLibrary
7f06e3fe5ffe8735698ee1652db39bc4265cd4bb
[ "Apache-2.0" ]
null
null
null
src/ScreenCompareLibrary/keywords/_compare.py
alans09/ScreenCompareLibrary
7f06e3fe5ffe8735698ee1652db39bc4265cd4bb
[ "Apache-2.0" ]
null
null
null
src/ScreenCompareLibrary/keywords/_compare.py
alans09/ScreenCompareLibrary
7f06e3fe5ffe8735698ee1652db39bc4265cd4bb
[ "Apache-2.0" ]
1
2021-01-28T16:21:29.000Z
2021-01-28T16:21:29.000Z
import imutils import glob import os import cv2 import numpy from robot.api import logger from skimage.util import compare_images class _Compare: """ Comparision keywords """ def _compare(self, image_a, image_b, diff_name=None, threshold=1): """ Internal compare function that is responsible for almost...
39.26087
106
0.59595
1d693ae544eee2b9264633b5cf6944be2c56f33f
3,625
py
Python
app/livestreams/models.py
jctissier/myfootylinks
cd625d8c6a6e017418cf6f7c34add31f5bc6f45a
[ "MIT" ]
null
null
null
app/livestreams/models.py
jctissier/myfootylinks
cd625d8c6a6e017418cf6f7c34add31f5bc6f45a
[ "MIT" ]
1
2021-03-31T18:35:58.000Z
2021-03-31T18:35:58.000Z
app/livestreams/models.py
jctissier/myfootylinks
cd625d8c6a6e017418cf6f7c34add31f5bc6f45a
[ "MIT" ]
1
2018-01-26T16:19:08.000Z
2018-01-26T16:19:08.000Z
import collections from random import randint import re import json import praw from app.util import log, compare_times r = praw.Reddit(user_agent="FootyLinks" + str(randint(0, 100000))) subreddit = r.get_subreddit("soccerstreams") FILTER_SIZE = 50 def get_streams(): """ Extracts list of current live stre...
38.157895
115
0.599448
e6ee4b37e0f83df1f07ed24afe46e6aedc49c9d0
239
py
Python
ListaDeExercicios/Exercicio09.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
ListaDeExercicios/Exercicio09.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
ListaDeExercicios/Exercicio09.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
# 9 Faça um Programa que peça a temperatura em graus Fahrenheit, transforme e mostre a temperatura em graus Celsius. F = float(input("Digite a temperatura em °F:")); C = 5 * ((F-32) / 9); print("{}°F equivale a {:.2f}°C ".format(F, C));
34.142857
116
0.661088
b2189619c64ee4bb2eaa1fbd1eae2f107a868d46
7,167
py
Python
Boundary Hunter Ideas/TensorFlow/TH-ONLY-BH-WITHB.py
garibaldu/boundary-seekers
441fea01e93de882bf22e0deb411f0b10602fa37
[ "MIT" ]
null
null
null
Boundary Hunter Ideas/TensorFlow/TH-ONLY-BH-WITHB.py
garibaldu/boundary-seekers
441fea01e93de882bf22e0deb411f0b10602fa37
[ "MIT" ]
null
null
null
Boundary Hunter Ideas/TensorFlow/TH-ONLY-BH-WITHB.py
garibaldu/boundary-seekers
441fea01e93de882bf22e0deb411f0b10602fa37
[ "MIT" ]
null
null
null
import tensorflow as tf import matplotlib import numpy as np import matplotlib.pyplot as plt import random import math np.random.seed(1234) random.seed(1234) plt.switch_backend("TkAgg") def plotScatter(points, color): xs = [x[0] for x in points] ys = [y[1] for y in points] plt.scatter(xs, ys, c=colo...
27.45977
164
0.583229
3da68b3bc1029f351ee13fb046fff736e7e4663f
3,026
py
Python
text_tool_gui.py
stimulu/kicad-text-tool
c0d9ff77dbd74e248023dac4e53b632b9f55cf5b
[ "Apache-2.0" ]
3
2020-04-28T22:28:24.000Z
2021-04-27T06:56:30.000Z
text_tool_gui.py
stimulu/kicad-text-tool
c0d9ff77dbd74e248023dac4e53b632b9f55cf5b
[ "Apache-2.0" ]
2
2020-07-06T19:01:40.000Z
2020-10-25T08:53:18.000Z
text_tool_gui.py
stimulu/kicad-text-tool
c0d9ff77dbd74e248023dac4e53b632b9f55cf5b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Oct 26 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impor...
36.902439
178
0.630535
64c1ea1a276da4782516666258346ea3886f5d0e
1,396
py
Python
setup.py
Olen/python-hole
ad2c2e03f85beb85ae6f3eac225cac0e70a74554
[ "MIT" ]
null
null
null
setup.py
Olen/python-hole
ad2c2e03f85beb85ae6f3eac225cac0e70a74554
[ "MIT" ]
null
null
null
setup.py
Olen/python-hole
ad2c2e03f85beb85ae6f3eac225cac0e70a74554
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Setup file for the *hole API Python client.""" import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup here = os.path.abspath(os.path.dirname(__file__)) # Get the long description from the relevant file with open(os.path.join(here,...
30.347826
84
0.655444
ce39ac99c271576e4ea9844002bcccafd18a5e1e
32,473
py
Python
keg_elements/forms/__init__.py
level12/keg-elements
69003d374cd402f64b612e291d49049dd923ec85
[ "BSD-3-Clause" ]
1
2017-04-27T09:07:22.000Z
2017-04-27T09:07:22.000Z
keg_elements/forms/__init__.py
level12/keg-elements
69003d374cd402f64b612e291d49049dd923ec85
[ "BSD-3-Clause" ]
142
2015-06-04T18:46:28.000Z
2022-03-04T21:10:58.000Z
keg_elements/forms/__init__.py
level12/keg-elements
69003d374cd402f64b612e291d49049dd923ec85
[ "BSD-3-Clause" ]
4
2015-06-04T20:54:24.000Z
2015-10-21T17:36:36.000Z
from __future__ import absolute_import from __future__ import unicode_literals import functools import inspect import logging from operator import attrgetter import flask from decimal import Decimal from flask_wtf import FlaskForm as BaseForm from keg.db import db import sqlalchemy as sa from markupsafe import Markup...
37.497691
100
0.653312
45e4615d3b265df9534720c07390c73f8d1bc2c2
38
py
Python
pymkeviewer/pymkeviewer/pymkeviewer/__init__.py
MagikEyeInc/SDK
e4a3ac92a7ec5bf57978d15d43feb81b1f595653
[ "BSD-3-Clause-No-Nuclear-License-2014", "Unlicense" ]
12
2021-07-14T21:30:53.000Z
2021-11-01T08:39:30.000Z
pymkeviewer/pymkeviewer/pymkeviewer/__init__.py
MagikEyeInc/SDK
e4a3ac92a7ec5bf57978d15d43feb81b1f595653
[ "BSD-3-Clause-No-Nuclear-License-2014", "Unlicense" ]
3
2021-07-23T06:30:29.000Z
2021-08-03T11:37:24.000Z
pymkeviewer/pymkeviewer/pymkeviewer/__init__.py
MagikEyeInc/SDK
e4a3ac92a7ec5bf57978d15d43feb81b1f595653
[ "BSD-3-Clause-No-Nuclear-License-2014", "Unlicense" ]
4
2021-07-23T11:30:39.000Z
2022-01-12T03:39:13.000Z
__version__ = '@PYMKEVIEWER_VERSION@'
19
37
0.789474
0946c01886ebf21667088a2ea4ab8af8d0658040
1,785
py
Python
drf_lastactivity/middlewares.py
sassoo/drf_lastactivity
cd1ed006d3726eee6ebe40402b2f7a9878e271ac
[ "0BSD" ]
null
null
null
drf_lastactivity/middlewares.py
sassoo/drf_lastactivity
cd1ed006d3726eee6ebe40402b2f7a9878e271ac
[ "0BSD" ]
null
null
null
drf_lastactivity/middlewares.py
sassoo/drf_lastactivity
cd1ed006d3726eee6ebe40402b2f7a9878e271ac
[ "0BSD" ]
null
null
null
""" middlewares ~~~~~~~~~~~ All of our custom DRF middlewares. """ from django.utils import timezone class UpdateLastActivityMiddleware: """ Update the last_login timestamp every SPLAY_TIME (seconds) DRF doesn't take a stance here & I want something more frequent than every username & passw...
28.790323
69
0.653782
dcfb03ec43448fbd228dc0b3989332a2d5cb79c1
2,395
py
Python
tests/test_checker.py
isac322/flake8-force-keyword-arguments
32b5daa0f3183475abba3610adc02878c56d4f11
[ "MIT" ]
1
2021-11-05T21:16:10.000Z
2021-11-05T21:16:10.000Z
tests/test_checker.py
isac322/flake8-force-keyword-arguments
32b5daa0f3183475abba3610adc02878c56d4f11
[ "MIT" ]
24
2021-11-05T21:41:07.000Z
2022-03-25T16:25:36.000Z
tests/test_checker.py
isac322/flake8-force-keyword-arguments
32b5daa0f3183475abba3610adc02878c56d4f11
[ "MIT" ]
null
null
null
from textwrap import dedent def test_builtins_inspected(flake8_path): (flake8_path / 'example.py').write_text( 'getattr(object(), \'test\')', ) result = flake8_path.run_flake8(['--kwargs-max-positional-arguments', '2']) assert result.out_lines == [] def test_kwargs_inspect_module_overwrites(...
32.808219
120
0.63382
025086f1aea4bba517f4bb27d159ea1960b12908
4,862
py
Python
test/script/regression_utils.py
raman-bt/autopsy
e80ad2c732fd827c558fb088d444313fd999c717
[ "Apache-2.0" ]
null
null
null
test/script/regression_utils.py
raman-bt/autopsy
e80ad2c732fd827c558fb088d444313fd999c717
[ "Apache-2.0" ]
null
null
null
test/script/regression_utils.py
raman-bt/autopsy
e80ad2c732fd827c558fb088d444313fd999c717
[ "Apache-2.0" ]
null
null
null
import os import sys import subprocess from time import localtime, strftime import traceback # Returns a Windows style path starting with the cwd and # ending with the list of directories given def make_local_path(*dirs): path = wgetcwd().decode("utf-8") for dir in dirs: path += ("\\" + str(dir)) return path_fix(...
31.166667
110
0.655903
bd4ed9494f2066883851331f6ce4a58d448c616c
5,838
py
Python
src/autoupdater/__init__.py
arnehilmann/k8s-auto-updater
8118507390fd82e2f0443d8798706ff31251d640
[ "MIT" ]
4
2019-04-16T18:52:00.000Z
2020-12-28T23:59:19.000Z
src/autoupdater/__init__.py
arnehilmann/k8s-auto-updater
8118507390fd82e2f0443d8798706ff31251d640
[ "MIT" ]
1
2021-03-12T01:30:53.000Z
2021-03-12T02:13:59.000Z
src/autoupdater/__init__.py
arnehilmann/k8s-auto-updater
8118507390fd82e2f0443d8798706ff31251d640
[ "MIT" ]
null
null
null
import base64 import json import re import subprocess from kubepy import api as kubectl def header(text, style="-", min_length=60): print() print(style * max(min_length, len(text))) print(text) print(style * max(min_length, len(text))) def get_first_owner(resource): owners = resource["metadata"...
34.75
104
0.546591
731d8726d5cf12a31e3853e63b3d3ba356c3f0ea
6,953
py
Python
confluent_server/confluent/asynchttp.py
brianfinley/confluent
6458eac93b1e3c6d45e26a7ddb434d692b5cdff2
[ "Apache-2.0" ]
27
2015-02-11T13:56:46.000Z
2021-12-28T14:17:20.000Z
confluent_server/confluent/asynchttp.py
brianfinley/confluent
6458eac93b1e3c6d45e26a7ddb434d692b5cdff2
[ "Apache-2.0" ]
32
2015-09-23T13:19:04.000Z
2022-03-15T13:50:45.000Z
confluent_server/confluent/asynchttp.py
brianfinley/confluent
6458eac93b1e3c6d45e26a7ddb434d692b5cdff2
[ "Apache-2.0" ]
24
2015-07-14T20:41:55.000Z
2021-07-15T04:18:51.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2016-2018 Lenovo # # 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 require...
36.025907
78
0.685747
8ab45b19c20dc31dcd7101aec117c119de3c48db
1,134
py
Python
src/users/tests/management/merge_same_email_users/test_single_email_merge.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
62
2021-09-22T18:38:26.000Z
2022-03-29T06:09:42.000Z
src/users/tests/management/merge_same_email_users/test_single_email_merge.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
50
2021-09-16T07:17:31.000Z
2022-03-26T12:06:58.000Z
src/users/tests/management/merge_same_email_users/test_single_email_merge.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
16
2021-10-17T17:43:31.000Z
2022-03-26T11:22:45.000Z
import pytest from pytest_mock import MockerFixture pytestmark = pytest.mark.django_db def test_target_user_lower_email(bob_a, bob_b, command, mocker: MockerFixture): command.merge_user = mocker.MagicMock() command.handle_single_email(bob_a.email) bob_b.refresh_from_db() assert bob_b.email == bob_b...
27
92
0.761905
e95bfb57744b776c95c3623cf3b96e90357c24cb
3,014
py
Python
zips_to_latlong.py
alchemydc/c19vaxfinder
86dae2543109a7fd9fb4e210711ce1c1a4d805b2
[ "MIT" ]
null
null
null
zips_to_latlong.py
alchemydc/c19vaxfinder
86dae2543109a7fd9fb4e210711ce1c1a4d805b2
[ "MIT" ]
null
null
null
zips_to_latlong.py
alchemydc/c19vaxfinder
86dae2543109a7fd9fb4e210711ce1c1a4d805b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # libs import requests from requests_toolbelt.utils import dump import json import os import sys from dotenv import load_dotenv from pathlib import Path # create a custom requests object, modifying the global module throws an error # provides intrinic exception handling ...
34.25
133
0.657266
11fd10e76a77932a11cde92efa3b25eb48e00986
12,507
py
Python
auth_token/migrations/0011_auto_20210119_1308.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
null
null
null
auth_token/migrations/0011_auto_20210119_1308.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
null
null
null
auth_token/migrations/0011_auto_20210119_1308.py
druids/django-token-authorization
bcd029e86d3edb49784bfa7e9329bcd1be4c511e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1 on 2021-01-19 12:08 import auth_token.enums import auth_token.models from django.conf import settings import django.core.serializers.json from django.db import migrations, models import django.db.models.deletion import enumfields.fields class Migration(migrations.Migration): dependencies...
56.59276
120
0.585032
73e4c840a7cbb1d542494d3099f9ad9bfb817268
399
py
Python
jobs/helloworld.py
vstenby/01005WakeWord
c7e2ca4e4102e66b851c517d4a746d87be42423c
[ "MIT" ]
2
2021-02-09T10:14:33.000Z
2021-09-20T07:43:33.000Z
jobs/helloworld.py
vstenby/01005WakeWord
c7e2ca4e4102e66b851c517d4a746d87be42423c
[ "MIT" ]
null
null
null
jobs/helloworld.py
vstenby/01005WakeWord
c7e2ca4e4102e66b851c517d4a746d87be42423c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Feb 5 11:44:43 2021 @author: s174483 """ import sys def main(): argin = sys.argv if len(argin) > 1: filename = 'test'+str(argin[1])+'.txt' else: filename = 'test.txt' f = open(filename,"w") f.write(str...
14.777778
46
0.52381
2083e4fe7fb5079bdaf8aa1a356f8b17eaa79128
10,838
py
Python
main.py
AccomplishedCode/Mapping-CDW-in-NYC
d8e74faf991c6debabf3fea4e3b0d557210e1cb8
[ "MIT" ]
null
null
null
main.py
AccomplishedCode/Mapping-CDW-in-NYC
d8e74faf991c6debabf3fea4e3b0d557210e1cb8
[ "MIT" ]
null
null
null
main.py
AccomplishedCode/Mapping-CDW-in-NYC
d8e74faf991c6debabf3fea4e3b0d557210e1cb8
[ "MIT" ]
1
2021-08-05T19:54:57.000Z
2021-08-05T19:54:57.000Z
import streamlit as st import pydeck as pdk import pandas as pd import numpy as np import base64 from maps import * from utils import * from annotated_text import annotated_text #Loading some dataset for beta expander categories= pd.read_csv('data/categories.csv') regions= pd.read_csv('data/regions.csv') ...
51.856459
479
0.653626
049b754a8d3ea36ab14c1891666bfdc449eb7238
19,879
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations_async/_express_route_connections_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations_async/_express_route_connections_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations_async/_express_route_connections_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.454315
250
0.689924
9875e9b44e09dd981e9b2be43ec5b18d1df30e01
950
py
Python
accounts/views.py
PatrickLeonard/superlists
c99cdb5ed32009a878016da9e3bb2659a267f851
[ "MIT" ]
null
null
null
accounts/views.py
PatrickLeonard/superlists
c99cdb5ed32009a878016da9e3bb2659a267f851
[ "MIT" ]
null
null
null
accounts/views.py
PatrickLeonard/superlists
c99cdb5ed32009a878016da9e3bb2659a267f851
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import auth, messages from django.core.mail import send_mail from django.core.urlresolvers import reverse from accounts.models import Token import sys def send_login_email(request): email = request.POST['email'] token = Token.objects.create(emai...
29.6875
72
0.665263
702333142c8ec70337d86e5a5d5f918c17f131f0
54,045
py
Python
dynaconf/vendor_src/ruamel/yaml/main.py
sephiartlist/dynaconf
9c5f60b289c1f0fa3f899f1962a8fe5712c74eab
[ "MIT" ]
2,293
2015-08-14T22:39:31.000Z
2022-03-31T12:44:49.000Z
dynaconf/vendor_src/ruamel/yaml/main.py
sephiartlist/dynaconf
9c5f60b289c1f0fa3f899f1962a8fe5712c74eab
[ "MIT" ]
676
2015-08-20T19:29:56.000Z
2022-03-31T13:45:51.000Z
dynaconf/vendor_src/ruamel/yaml/main.py
sephiartlist/dynaconf
9c5f60b289c1f0fa3f899f1962a8fe5712c74eab
[ "MIT" ]
255
2015-12-02T21:16:33.000Z
2022-03-20T22:03:46.000Z
# coding: utf-8 from __future__ import absolute_import, unicode_literals, print_function import sys import os import warnings import glob from importlib import import_module import dynaconf.vendor.ruamel as ruamel from .error import UnsafeLoaderWarning, YAMLError # NOQA from .tokens import * # NOQA from .events ...
35.208469
227
0.599297
63db72175ce0927e62d4e08d1e844607490ab0ca
3,061
py
Python
fs_patches_of_hybrid_cloud/cherry_for_B038/nova_cascaded/nova/virt/vtep/aws_driver.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
2
2015-06-15T02:16:33.000Z
2022-02-23T07:10:38.000Z
patches_tool/vcloud_patch/code/nova/virt/vtep/aws_driver.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
7
2016-05-13T06:39:45.000Z
2016-05-20T02:55:31.000Z
fs_patches_of_hybrid_cloud/cherry_for_111T/nova_cascaded/nova/virt/vtep/aws_driver.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
4
2015-11-02T04:02:50.000Z
2021-05-13T17:06:00.000Z
# Copyright 2011 OpenStack 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 ...
37.329268
82
0.684744
638a4a367fef48b923ccb75a34cd6e6478e2df18
20,036
py
Python
openpype/modules/default_modules/sync_server/sync_server.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/modules/default_modules/sync_server/sync_server.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
openpype/modules/default_modules/sync_server/sync_server.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
null
null
null
"""Python 3 only implementation.""" import os import asyncio import threading import concurrent.futures from concurrent.futures._base import CancelledError from .providers import lib from openpype.lib import PypeLogger from .utils import SyncStatus, ResumableError log = PypeLogger().get_logger("SyncServer") async...
42.90364
79
0.493861
6f3bc24116d9466f69af667365af22c4ed18d778
15,869
py
Python
spades/spades.py
XanaduBarchetta/swe681-spades
a00c8e91d8bb96a1459be37751daffe57adc733c
[ "MIT" ]
1
2020-03-23T00:06:24.000Z
2020-03-23T00:06:24.000Z
spades/spades.py
XanaduBarchetta/swe681-spades
a00c8e91d8bb96a1459be37751daffe57adc733c
[ "MIT" ]
3
2020-03-02T22:40:11.000Z
2020-05-05T19:36:16.000Z
spades/spades.py
XanaduBarchetta/swe681-spades
a00c8e91d8bb96a1459be37751daffe57adc733c
[ "MIT" ]
1
2020-05-25T21:36:46.000Z
2020-05-25T21:36:46.000Z
import re import logging from flask import flash, redirect, url_for, request, render_template from flask_login import current_user, LoginManager, login_required, login_user, logout_user from spades.dbobjects import User, Game, GameStateEnum, DirectionsEnum, SuitEnum from spades.exceptions import UserAlreadyExistsExce...
40.585678
120
0.64125
800ed10d20bdc3a0813e945d38aa43bf70187f5e
2,172
py
Python
venv/lib/python3.6/site-packages/gym/vector/tests/test_sync_vector_env.py
amousist/cartpole
aec01e9c2d28eda6019fe8bb94804a78f2d7fbc0
[ "MIT" ]
3
2020-06-02T11:23:57.000Z
2021-09-02T12:02:20.000Z
gym/vector/tests/test_sync_vector_env.py
huangjiancong1/gym_baxter
7534d9504b4678a3b09a4e17466f54eaeaf23ccc
[ "Apache-2.0" ]
null
null
null
gym/vector/tests/test_sync_vector_env.py
huangjiancong1/gym_baxter
7534d9504b4678a3b09a4e17466f54eaeaf23ccc
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np from gym.spaces import Box from gym.vector.tests.utils import make_env from gym.vector.sync_vector_env import SyncVectorEnv def test_create_sync_vector_env(): env_fns = [make_env('CubeCrash-v0', i) for i in range(8)] try: env = SyncVectorEnv(env_fns) finally: ...
31.478261
74
0.691529
8516a1a8460d25f13a6afd92223eaf9ec661fc57
3,750
py
Python
travis_pypi_setup.py
omtinez/pddb
a24cee0702c8286c5c466c51ca65cf8dbc2c183c
[ "MIT" ]
3
2016-01-11T16:04:49.000Z
2016-02-27T19:07:22.000Z
travis_pypi_setup.py
omtinez/pddb
a24cee0702c8286c5c466c51ca65cf8dbc2c183c
[ "MIT" ]
2
2016-06-11T23:54:45.000Z
2021-03-25T21:34:17.000Z
travis_pypi_setup.py
omtinez/pddb
a24cee0702c8286c5c466c51ca65cf8dbc2c183c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Update encrypted deploy password in Travis config file """ from __future__ import print_function import base64 import json import os from getpass import getpass import yaml from cryptography.hazmat.primitives.serialization import load_pem_public_key from cryptography.h...
30.487805
79
0.7
5c399145b39d2027136ab65cfd525cb9fd8ff811
10,760
py
Python
ambari-server/src/main/resources/stacks/BigInsights/4.2/services/SPARK/package/scripts/params.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
5
2017-07-20T11:15:10.000Z
2020-04-16T15:42:55.000Z
ambari-server/src/main/resources/stacks/BigInsights/4.2/services/SPARK/package/scripts/params.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
8
2020-06-18T17:31:19.000Z
2022-03-02T08:32:03.000Z
ambari-server/src/main/resources/stacks/BigInsights/4.2/services/SPARK/package/scripts/params.py
Syndra/Ambari-source
717526b2bf3636622212b14de0d3d298a20c7370
[ "Apache-2.0" ]
12
2017-05-17T09:48:01.000Z
2021-08-05T19:01:25.000Z
#!/usr/bin/python """ 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...
49.357798
201
0.803996
9a19b80c4568ac222889a915cba73e7c45253f2f
4,467
py
Python
test/downloads.py
bpiwowar/ir_datasets
556c79e03c4538f53e0a7d8d137a0c39aca7e8b8
[ "Apache-2.0" ]
null
null
null
test/downloads.py
bpiwowar/ir_datasets
556c79e03c4538f53e0a7d8d137a0c39aca7e8b8
[ "Apache-2.0" ]
null
null
null
test/downloads.py
bpiwowar/ir_datasets
556c79e03c4538f53e0a7d8d137a0c39aca7e8b8
[ "Apache-2.0" ]
null
null
null
import io import random import sys import json import time import datetime from contextlib import contextmanager import re import os import unittest import argparse import json import ir_datasets @contextmanager def tmp_environ(**kwargs): orig_values = {} for key, value in kwargs.items(): orig_values[...
40.609091
195
0.498993
a294f633bbe356a5eb694afaaad35534feba07e2
3,608
py
Python
tests/test_gmaps_takeout.py
PFigs/location-history
e858251448bd6dff72a861e6ff844d2aede2d479
[ "MIT" ]
1
2020-03-20T12:46:13.000Z
2020-03-20T12:46:13.000Z
tests/test_gmaps_takeout.py
PFigs/location-history
e858251448bd6dff72a861e6ff844d2aede2d479
[ "MIT" ]
13
2019-04-23T06:02:09.000Z
2021-10-19T01:01:40.000Z
tests/test_gmaps_takeout.py
PFigs/location-history
e858251448bd6dff72a861e6ff844d2aede2d479
[ "MIT" ]
null
null
null
import timemap import datetime gmaps_sample = "./tests/gmaps_sample.json" FILE_START = "2018-04-19T21:07:52.746000" FILE_END = "2018-04-19T20:47:20.433000" def test_json_browse(): takeout = timemap.gmaps.Takeout(filepath=gmaps_sample) takeout.browse() def test_accuracy_set(): takeout = timemap.gmaps....
28.1875
78
0.705654
605fa0c8e662ff8de52200f91e517c5748238d43
1,693
py
Python
day_interval/legend.py
kohjiaxuan/Stock-Market-Dashboard
a517136eff62a482455b68c0e8ebed8361ab1d53
[ "MIT" ]
13
2019-06-13T15:50:47.000Z
2022-03-11T07:57:11.000Z
min_interval/legend.py
kohjiaxuan/Stock-Market-Dashboard
a517136eff62a482455b68c0e8ebed8361ab1d53
[ "MIT" ]
null
null
null
min_interval/legend.py
kohjiaxuan/Stock-Market-Dashboard
a517136eff62a482455b68c0e8ebed8361ab1d53
[ "MIT" ]
1
2021-08-22T06:12:33.000Z
2021-08-22T06:12:33.000Z
def legendcalculation(AAPLdailyopen_n, AMZNdailyopen_n, GOOGLdailyopen_n, FBdailyopen_n, MSFTdailyopen_n, NFLXdailyopen_n): #Determine where to put legend board in relative stock performance graph stockgoodperformance = 0 #Default location for legends of small graphs is top right, will change to bottom righ...
38.477273
123
0.684584
599dcd434787571b0c074e64684ca519376d48e4
60,987
py
Python
core/domain/topic_domain_test.py
queencai/oppia
c9a36db9c258588b04be9bc26f3d2efef7d21abc
[ "Apache-2.0" ]
1
2021-06-26T00:31:08.000Z
2021-06-26T00:31:08.000Z
core/domain/topic_domain_test.py
queencai/oppia
c9a36db9c258588b04be9bc26f3d2efef7d21abc
[ "Apache-2.0" ]
null
null
null
core/domain/topic_domain_test.py
queencai/oppia
c9a36db9c258588b04be9bc26f3d2efef7d21abc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
43.593281
80
0.668913
a8d9e919b28c52a1310ce64fb5cc1fac5f1a0f49
1,587
py
Python
13/1373_maximum_sum_bst_in_binary_tree/main.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
4
2018-03-07T02:56:03.000Z
2021-06-15T05:43:31.000Z
13/1373_maximum_sum_bst_in_binary_tree/main.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
null
null
null
13/1373_maximum_sum_bst_in_binary_tree/main.py
IronCore864/leetcode
a62a4cdde9814ae48997176debcaad537f7ad01f
[ "Apache-2.0" ]
1
2021-09-02T12:05:15.000Z
2021-09-02T12:05:15.000Z
from typing import Optional import sys class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def maxSumBST(self, root: TreeNode) -> int: """ https://leetcode.com/problems/maximum-sum-bst-in...
28.854545
122
0.543163
3e415ab8983f32a5a63dd9ad3ee40dd2d55962e8
4,259
py
Python
experiment/base.py
JJGO/shrinkbench
3c35bc2fe319031d93c716b561ed487ab4874b2c
[ "MIT" ]
345
2020-02-29T11:49:23.000Z
2022-03-31T09:03:33.000Z
experiment/base.py
JJGO/shrinkbench
3c35bc2fe319031d93c716b561ed487ab4874b2c
[ "MIT" ]
24
2020-03-13T16:54:13.000Z
2021-12-14T15:35:08.000Z
experiment/base.py
JJGO/shrinkbench
3c35bc2fe319031d93c716b561ed487ab4874b2c
[ "MIT" ]
60
2020-03-02T20:54:42.000Z
2022-03-26T11:38:13.000Z
from abc import ABC, abstractmethod import datetime import hashlib import json import pathlib import random import shutil import signal import string import sys import numpy as np import torch from ..util import CSVLogger from ..util import printc class Experiment(ABC): def __init__(self, seed=42): sel...
28.583893
111
0.605776
edecb895a683da800d533e13fb953a573483f641
8,779
py
Python
toontown/cogdominium/DistCogdoMazeGameAI.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/cogdominium/DistCogdoMazeGameAI.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/cogdominium/DistCogdoMazeGameAI.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from direct.directnotify import DirectNotifyGlobal from toontown.cogdominium.DistCogdoGameAI import DistCogdoGameAI import CogdoMazeGameGlobals from direct.distributed.ClockDelta import * from direct.task import Timer from toontown.battle import BattleBase from toontown.building.ElevatorConstants import * ALL_ABOARD_L...
36.579167
111
0.630937
19f099412e785d9c0198d9f3d5c3f02ff17cdec7
5,741
py
Python
patientMatcher/server/controllers.py
Clinical-Genomics/patientMatcher
d91dee9fbf9667cf9cd06dd057dc2b3f239ed075
[ "MIT" ]
11
2019-07-02T11:14:21.000Z
2022-03-08T21:43:10.000Z
patientMatcher/server/controllers.py
Clinical-Genomics/patientMatcher
d91dee9fbf9667cf9cd06dd057dc2b3f239ed075
[ "MIT" ]
182
2019-01-23T10:13:30.000Z
2022-03-25T13:17:08.000Z
patientMatcher/server/controllers.py
Clinical-Genomics/patientMatcher
d91dee9fbf9667cf9cd06dd057dc2b3f239ed075
[ "MIT" ]
6
2019-01-09T21:21:43.000Z
2022-03-09T20:26:23.000Z
# -*- coding: utf-8 -*- import logging from flask import jsonify from jsonschema import ValidationError from patientMatcher.constants import STATUS_CODES from patientMatcher.utils.stats import general_metrics from patientMatcher.utils.delete import delete_by_query from patientMatcher.utils.patient import patients from ...
34.377246
107
0.690472
b31814dbd1160ffe70145b58f7312f8350b17f73
1,658
py
Python
dassl/modeling/backbone/cnn_duckieS_baseline.py
pmirallesr/Dassl.pytorch
ec41f816bb60a9af94c9b055c500f0e2e404cfc6
[ "MIT" ]
null
null
null
dassl/modeling/backbone/cnn_duckieS_baseline.py
pmirallesr/Dassl.pytorch
ec41f816bb60a9af94c9b055c500f0e2e404cfc6
[ "MIT" ]
null
null
null
dassl/modeling/backbone/cnn_duckieS_baseline.py
pmirallesr/Dassl.pytorch
ec41f816bb60a9af94c9b055c500f0e2e404cfc6
[ "MIT" ]
null
null
null
""" Reference https://github.com/VisionLearningGroup/VisionLearningGroup.github.io/tree/master/M3SDA """ import torch.nn as nn from torch.nn import functional as F import torch from .build import BACKBONE_REGISTRY from .backbone import Backbone class FeatureExtractor(Backbone): def __init__(self, action_dim, max...
30.145455
86
0.595296
e40a1d1e6faaf0cb7eb18e5e525fd4c86d1a317b
3,005
py
Python
smartcameras/test/test_camera.py
PedrosWits/smart-cameras
68fa9a2c43e0d659cb9bd0f87cc7b2aaaccefb2f
[ "MIT" ]
null
null
null
smartcameras/test/test_camera.py
PedrosWits/smart-cameras
68fa9a2c43e0d659cb9bd0f87cc7b2aaaccefb2f
[ "MIT" ]
null
null
null
smartcameras/test/test_camera.py
PedrosWits/smart-cameras
68fa9a2c43e0d659cb9bd0f87cc7b2aaaccefb2f
[ "MIT" ]
null
null
null
import threading from smartcameras.speedcamera import SpeedCamera import smartcameras.speedcamera as speedcamera import time import json def test_constructor(): camera = SpeedCamera("Blandford Square", "Newcastle") assert camera.street == "Blandford Square" assert camera.city == "Newcastle" def test_uuids...
35.77381
96
0.745092
2797b6dfc818a3de2bc52aaf5906014401475627
793
py
Python
estructuras de control secuenciales/ejercicio10.py
svcuellar/algoritmos_programacion
0813ee6a2ccb605557a7920bf82440b7388b49e8
[ "MIT" ]
null
null
null
estructuras de control secuenciales/ejercicio10.py
svcuellar/algoritmos_programacion
0813ee6a2ccb605557a7920bf82440b7388b49e8
[ "MIT" ]
null
null
null
estructuras de control secuenciales/ejercicio10.py
svcuellar/algoritmos_programacion
0813ee6a2ccb605557a7920bf82440b7388b49e8
[ "MIT" ]
null
null
null
""" entradas cantidadchelinesaustriacos-->c-->float cantidaddragmasgriegos-->dg-->float cantidadpesetas-->p-->float salidas chelines_a_pesetas-->c_p-->float dragmas_a_francosfrancese-->dg_ff-->float pesetas_a_dolares-->p_d-->float pesetas_a_lirasitalianas-->p_li-->float """ #entradas c=float(input("Ingrese la cantida...
28.321429
78
0.726356
04a4f79714710c2afbc31bc7a20fb0872795e8d0
466
py
Python
examples/toy.py
devanshusomani99/myFM
d8e3d93de7c4a3dc19551c07d5f1d71d13f6abc6
[ "MIT" ]
50
2019-12-27T01:47:39.000Z
2022-03-30T13:48:56.000Z
examples/toy.py
devanshusomani99/myFM
d8e3d93de7c4a3dc19551c07d5f1d71d13f6abc6
[ "MIT" ]
7
2021-03-13T00:59:40.000Z
2022-02-15T19:29:34.000Z
examples/toy.py
devanshusomani99/myFM
d8e3d93de7c4a3dc19551c07d5f1d71d13f6abc6
[ "MIT" ]
10
2020-09-01T16:55:59.000Z
2021-06-27T15:18:34.000Z
import myfm from sklearn.feature_extraction import DictVectorizer import numpy as np train = [ {"user": "1", "item": "5", "age": 19}, {"user": "2", "item": "43", "age": 33}, {"user": "3", "item": "20", "age": 55}, {"user": "4", "item": "10", "age": 20}, ] v = DictVectorizer() X = v.fit_transform(train) y = np.asar...
25.888889
73
0.581545
a9688873427c693dec97c5c013ed420a36765eff
4,706
py
Python
src/pkgcheck/checks/imlate.py
floppym/pkgcheck
07215eac255a88b3a0c351f35626a1c79d9f2632
[ "BSD-3-Clause" ]
18
2015-04-24T23:15:30.000Z
2022-02-14T04:14:56.000Z
src/pkgcheck/checks/imlate.py
floppym/pkgcheck
07215eac255a88b3a0c351f35626a1c79d9f2632
[ "BSD-3-Clause" ]
351
2015-03-08T07:07:47.000Z
2022-03-21T11:57:58.000Z
src/pkgcheck/checks/imlate.py
floppym/pkgcheck
07215eac255a88b3a0c351f35626a1c79d9f2632
[ "BSD-3-Clause" ]
19
2015-03-08T01:16:10.000Z
2022-03-17T10:37:26.000Z
from collections import defaultdict from pkgcore.restrictions import packages, values from snakeoil.strings import pluralism from .. import addons, results, sources from . import Check class PotentialStable(results.VersionResult, results.Info): """Stable arches with potential stable package candidates.""" ...
40.568966
103
0.614535
078c49fff098bd3a9d55e6f0698ced7d1acd2856
34,677
py
Python
scripts/class_BigARTM.py
omega1996/vacancy_clustering
28ffb41f4c29044f14dfa7770fdec0eba39e38b9
[ "MIT" ]
null
null
null
scripts/class_BigARTM.py
omega1996/vacancy_clustering
28ffb41f4c29044f14dfa7770fdec0eba39e38b9
[ "MIT" ]
null
null
null
scripts/class_BigARTM.py
omega1996/vacancy_clustering
28ffb41f4c29044f14dfa7770fdec0eba39e38b9
[ "MIT" ]
null
null
null
import os import glob import artm import random import time import numpy as np import logging logging.basicConfig(level = logging.ERROR)#logging.DEBUG) import matplotlib.pyplot as plt plt.ioff() from tqdm import tqdm import pandas as pd from files_and_dirs import * import pickle def write_...
43.95057
141
0.603166
b88c304cd66bcc17985367c296361689baf0ac6e
625
py
Python
manage.py
mamalmaleki/kolbe_cl
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
1
2020-01-02T05:51:11.000Z
2020-01-02T05:51:11.000Z
manage.py
mamalmaleki/kolbe
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
2
2021-03-30T12:38:16.000Z
2021-09-22T18:30:59.000Z
manage.py
mamalmaleki/kolbe
0daf1ab55562b1f71a232be76c9e7609e8255e9a
[ "MIT" ]
1
2020-12-01T09:47:12.000Z
2020-12-01T09:47:12.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'kolbe.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
28.409091
73
0.6816
3e6aca4eb48ce2b1c49ec56e6377c2a259200f6a
141
py
Python
glue/python/scaii/_internal_/__init__.py
SCAII/SCAII
7ab302f788556392850d104d3df6e0b4a556414d
[ "BSD-3-Clause" ]
1
2017-11-01T20:09:32.000Z
2017-11-01T20:09:32.000Z
glue/python/scaii/_internal_/__init__.py
SCAII/SCAII
7ab302f788556392850d104d3df6e0b4a556414d
[ "BSD-3-Clause" ]
103
2017-09-14T17:04:53.000Z
2018-08-15T22:52:32.000Z
glue/python/scaii/_internal_/__init__.py
SCAII/SCAII
7ab302f788556392850d104d3df6e0b4a556414d
[ "BSD-3-Clause" ]
6
2018-01-31T00:05:14.000Z
2020-01-29T07:01:29.000Z
""" Internal tools and glue used to implement the core SCAII Python features. These shouldn't be used unless you know what you're doing. """
23.5
61
0.758865
157d8a91830f2b5059d3c44ceee75fe067e7d6ed
861
py
Python
neural_tangents/predict.py
romanngg/neural-tangents
a575da5d13e2e0f4a9a4debf22a491183c97cdd9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
neural_tangents/predict.py
romanngg/neural-tangents
a575da5d13e2e0f4a9a4debf22a491183c97cdd9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
neural_tangents/predict.py
romanngg/neural-tangents
a575da5d13e2e0f4a9a4debf22a491183c97cdd9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
28.7
78
0.744483
4ae9d436ff575a5be6d023ca45053efc3962e1aa
14,177
py
Python
piwheels/master/file_juggler.py
bk-mtg/piwheels
67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6
[ "BSD-3-Clause" ]
null
null
null
piwheels/master/file_juggler.py
bk-mtg/piwheels
67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6
[ "BSD-3-Clause" ]
null
null
null
piwheels/master/file_juggler.py
bk-mtg/piwheels
67152dd1cfd5bd03ea90a8f0255103a9ee9c71d6
[ "BSD-3-Clause" ]
null
null
null
# The piwheels project # Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall> # Copyright (c) 2017 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistribution...
38.110215
80
0.623686
24c1a9a53bb708ad139c3c139e77c8abb3595bfb
28,349
py
Python
src/WriteZeroDirectoryFiles/WriteBoundaryConditions.py
darrinl2t/OpenFOAMCaseGenerator
72c3072814e9447b12c40c3423593c8d9a8c9cb4
[ "MIT" ]
null
null
null
src/WriteZeroDirectoryFiles/WriteBoundaryConditions.py
darrinl2t/OpenFOAMCaseGenerator
72c3072814e9447b12c40c3423593c8d9a8c9cb4
[ "MIT" ]
null
null
null
src/WriteZeroDirectoryFiles/WriteBoundaryConditions.py
darrinl2t/OpenFOAMCaseGenerator
72c3072814e9447b12c40c3423593c8d9a8c9cb4
[ "MIT" ]
null
null
null
from input import GlobalVariables as Parameters from math import pow, sqrt import copy class WriteBoundaryConditions: def __init__(self, properties, file_manager): # assign private variables self.properties = properties self.file_manager = file_manager # list of all variables mana...
49.735088
119
0.612261
32001ccd2612680a3352e2e3fe739cd7be3814db
3,759
py
Python
lispy_v2.py
R3DDY97/Lisp_py
a530f2a744c8f74fa324742791a06d332826dd02
[ "MIT" ]
null
null
null
lispy_v2.py
R3DDY97/Lisp_py
a530f2a744c8f74fa324742791a06d332826dd02
[ "MIT" ]
1
2018-03-12T03:53:29.000Z
2018-03-12T03:53:29.000Z
lispy_v2.py
R3DDY97/Lisp_py
a530f2a744c8f74fa324742791a06d332826dd02
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from functools import reduce from lisp_globals import lisp_env from lisp_parsing import lisp_parser # various sub environments env, OP_ENV, MATH_ENV = lisp_env() LAMBDAs = [] COMBINED_ENV = {} def eval_comparision(operation, arguments, env): arg_list = [lisp_evaluator(argument,...
29.598425
98
0.631019
6be2cfac8a7e8b36f79b82b524b59f63d41a33e8
752
py
Python
build/fbcode_builder/getdeps/errors.py
majra20/LogDevice
dea0df7991120d567354d7a29d832b0e10be7477
[ "BSD-3-Clause" ]
2
2019-11-17T00:59:09.000Z
2019-11-17T00:59:16.000Z
build/fbcode_builder/getdeps/errors.py
majra20/LogDevice
dea0df7991120d567354d7a29d832b0e10be7477
[ "BSD-3-Clause" ]
null
null
null
build/fbcode_builder/getdeps/errors.py
majra20/LogDevice
dea0df7991120d567354d7a29d832b0e10be7477
[ "BSD-3-Clause" ]
2
2021-04-07T08:09:28.000Z
2021-06-06T12:26:22.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style 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. from __future__ import a...
34.181818
87
0.759309
be9a9bac1f2a658fb9d35029ffc7feba5558752a
1,733
py
Python
electrum_gui/common/transaction/models.py
liuzjalex/electrum
98f7c8bfdef071cd859d54f1f72c39688cde41cf
[ "MIT" ]
null
null
null
electrum_gui/common/transaction/models.py
liuzjalex/electrum
98f7c8bfdef071cd859d54f1f72c39688cde41cf
[ "MIT" ]
null
null
null
electrum_gui/common/transaction/models.py
liuzjalex/electrum
98f7c8bfdef071cd859d54f1f72c39688cde41cf
[ "MIT" ]
null
null
null
import peewee from electrum_gui.common.basic.orm.models import AutoDateTimeField, BaseModel from electrum_gui.common.transaction.data import TxActionStatus class TxAction(BaseModel): id = peewee.IntegerField(primary_key=True) txid = peewee.CharField() status = peewee.IntegerField(choices=TxActionStatus.t...
43.325
110
0.71206
e358f09359c480e620fdc3e69b73041e7c6eefc0
274
py
Python
tests/artificial/transf_Quantization/trend_MovingAverage/cycle_7/ar_/test_artificial_32_Quantization_MovingAverage_7__0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Quantization/trend_MovingAverage/cycle_7/ar_/test_artificial_32_Quantization_MovingAverage_7__0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Quantization/trend_MovingAverage/cycle_7/ar_/test_artificial_32_Quantization_MovingAverage_7__0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 0);
39.142857
169
0.737226
41059823c13cc4581dd16aabe87bbe9fcebbf08e
1,791
py
Python
raksha/openstack/common/excutils.py
DPaaS-Raksha/raksha
e4e482865d2860473bc0a80e10d76bb127e9f6c5
[ "Apache-2.0" ]
8
2015-03-19T20:22:44.000Z
2021-04-11T06:00:52.000Z
raksha/openstack/common/excutils.py
DPaaS-Raksha/raksha
e4e482865d2860473bc0a80e10d76bb127e9f6c5
[ "Apache-2.0" ]
1
2015-07-21T23:05:23.000Z
2016-03-16T08:11:54.000Z
raksha/openstack/common/excutils.py
DPaaS-Raksha/raksha
e4e482865d2860473bc0a80e10d76bb127e9f6c5
[ "Apache-2.0" ]
5
2015-10-09T17:42:24.000Z
2021-03-11T18:33:00.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack Foundation. # Copyright 2012, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http:/...
34.442308
78
0.724176
62e7e282c7fcdab63aa69a497267bc30a72492ec
3,198
py
Python
tests/util/test_struct_stream.py
Jsewill/Olive-blockchain
ba0169a56d7e67cefd95dc1f1f60e9a19d5cd2c5
[ "Apache-2.0" ]
10
2021-08-01T17:15:15.000Z
2021-09-16T08:04:46.000Z
tests/util/test_struct_stream.py
Jsewill/Olive-blockchain
ba0169a56d7e67cefd95dc1f1f60e9a19d5cd2c5
[ "Apache-2.0" ]
8
2021-08-06T08:11:13.000Z
2021-11-03T20:49:37.000Z
tests/util/test_struct_stream.py
Jsewill/Olive-blockchain
ba0169a56d7e67cefd95dc1f1f60e9a19d5cd2c5
[ "Apache-2.0" ]
7
2021-08-07T06:45:36.000Z
2022-03-15T08:43:24.000Z
import pytest import io from olive.util.ints import int8, uint8, int16, uint16, int32, uint32, int64, uint64, uint128, int512 class TestStructStream: def _test_impl(self, cls, upper_boundary, lower_boundary): with pytest.raises(ValueError): t = cls(upper_boundary + 1) with pytest.ra...
29.33945
161
0.64853
9baec4f4a2d491647d9f065985c09a62d2b84b58
790
py
Python
.history/my_classes/FirstClassFunctions/reducing_functions_20210707140101.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/reducing_functions_20210707140101.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/FirstClassFunctions/reducing_functions_20210707140101.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""Reducing Functions in Python These are functions that recombine an iterable recursively, ending up with a single return value Also called accumulators, aggregators, or folding functions Example: Finding the maximum value in an iterable a0, a1, a2, ...,, aN-1 max(a, b) _> maximum of a and b result =a0 r...
23.235294
96
0.653165
843dfb82dceb37d9d3153a754cddadf2b7cd500a
2,482
py
Python
code/dm.py
marcusbotacin/ELF.Classifier
d017e82d24d047145ef92cb2437c6a03d845a90e
[ "MIT" ]
2
2019-10-19T05:10:38.000Z
2020-08-28T19:23:40.000Z
code/dm.py
marcusbotacin/ELF.Classifier
d017e82d24d047145ef92cb2437c6a03d845a90e
[ "MIT" ]
null
null
null
code/dm.py
marcusbotacin/ELF.Classifier
d017e82d24d047145ef92cb2437c6a03d845a90e
[ "MIT" ]
null
null
null
# FORSETI - Feature extractor and classificator for ELF binaries # Author: Lucas Galante # Advisor: Marcus Botacin, Andre Gregio, Paulo de Geus # 2019, UFPR, UNICAMP class DataMetrics: def __init__(self): self.fp = 0.0 # False postive self.fn = 0.0 # False negative self.tp...
26.126316
117
0.542707
8265bcf1dfb47be0e1e2b1dd94e522cfa97b3602
1,772
py
Python
src/urls.py
chunky2808/Enlighten-Me-
357f83d79a8d6b9821a117d1ec694400aeecef9a
[ "MIT" ]
null
null
null
src/urls.py
chunky2808/Enlighten-Me-
357f83d79a8d6b9821a117d1ec694400aeecef9a
[ "MIT" ]
null
null
null
src/urls.py
chunky2808/Enlighten-Me-
357f83d79a8d6b9821a117d1ec694400aeecef9a
[ "MIT" ]
null
null
null
"""src URL Configuration The `urlpatterns` list routes URLs to views. For more information please see https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based v...
45.435897
103
0.683409
8e50619eee6e688d659ba04a44c0081882be1974
3,482
py
Python
tests/sentry/api/serializers/test_incident_activity.py
evanspjz/sentry
032afdc4dd46cc54a99315bfa13304c44c4e546f
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/serializers/test_incident_activity.py
evanspjz/sentry
032afdc4dd46cc54a99315bfa13304c44c4e546f
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/serializers/test_incident_activity.py
evanspjz/sentry
032afdc4dd46cc54a99315bfa13304c44c4e546f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from datetime import timedelta from uuid import uuid4 import six from django.utils import timezone from freezegun import freeze_time from sentry.api.serializers import serialize from sentry.incidents.models import IncidentActivityType from sentry.incide...
38.688889
96
0.637277
6850da51174a702451eefe00fab31d0cbac33aa0
3,185
py
Python
isi_sdk_8_2_1/isi_sdk_8_2_1/models/quota_quotas_summary.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_1/isi_sdk_8_2_1/models/quota_quotas_summary.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_1/isi_sdk_8_2_1/models/quota_quotas_summary.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 8 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_2_1.models.quota_q...
27.222222
106
0.574882
d9d5c150ccd8b454b076647c18923e313b6c9ed4
9,166
py
Python
.waf3-1.5.18-402a8e0721eb718ff717906f130db0f4/wafadmin/Tools/vala.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
.waf3-1.5.18-402a8e0721eb718ff717906f130db0f4/wafadmin/Tools/vala.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
.waf3-1.5.18-402a8e0721eb718ff717906f130db0f4/wafadmin/Tools/vala.py
TirolJPN/ngweight
37b60bd8fdfdf0ba0d0fb74069831cbdfbdd3e7c
[ "MIT" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 import os.path,shutil import Task,Runner,Utils,Logs,Build,Node,Options from TaskGen import extension,after,before EXT_VALA=['.vala','.gs'] class valac_task(Task.Task): vars=("VALAC","VALAC_VERSION","VALAFLAGS") before=("cc","cxx") def run(self): env=self.env inputs=[a.sr...
38.838983
164
0.717216
f78652dacb37ccc1e0b5cd748255a5b9ad7dff13
1,313
py
Python
v1.0/dc/utils/mail.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v1.0/dc/utils/mail.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v1.0/dc/utils/mail.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText class Mail: """Sending an email with smtp library""" def __init__(self, smtpaddr, smtpport): self.smtpaddr = smtpaddr self.smtpport = smtpport def check_mail_inputs(self, ...
32.02439
80
0.592536
bf47cef9bc02b08fe3a0b0e8280cb7452deb3cad
4,217
py
Python
venv/lib/python2.7/site-packages/ansible/plugins/action/ios_config.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/plugins/action/ios_config.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/plugins/action/ios_config.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# # (c) 2017, Red Hat, Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is...
36.991228
85
0.640977
966b25e5478c1d8e71883bab0908f407a72036dd
6,231
py
Python
sonarqube/community/projects.py
0x646e78/python-sonarqube-api
c641ab4dd180b4184f2663bd28277aa796b36417
[ "MIT" ]
null
null
null
sonarqube/community/projects.py
0x646e78/python-sonarqube-api
c641ab4dd180b4184f2663bd28277aa796b36417
[ "MIT" ]
null
null
null
sonarqube/community/projects.py
0x646e78/python-sonarqube-api
c641ab4dd180b4184f2663bd28277aa796b36417
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Jialiang Shi from sonarqube.utils.rest_client import RestClient from sonarqube.utils.config import ( API_PROJECTS_BULK_DELETE_ENDPOINT, API_PROJECTS_SEARCH_ENDPOINT, API_PROJECTS_CREATE_ENDPOINT, API_PROJECTS_DELETE_ENDPOINT, API_PROJECTS_UPDAT...
33.320856
117
0.611619
ccbe08906af0cbc69931c089fa9cfc5d589890ee
20,915
py
Python
lib/python2.7/site-packages/sklearn/mixture/tests/test_gmm.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
lib/python2.7/site-packages/sklearn/mixture/tests/test_gmm.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
lib/python2.7/site-packages/sklearn/mixture/tests/test_gmm.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# Important note for the deprecation cleaning of 0.20 : # All the functions and classes of this file have been deprecated in 0.18. # When you remove this file please remove the related files # - 'sklearn/mixture/dpgmm.py' # - 'sklearn/mixture/gmm.py' # - 'sklearn/mixture/test_dpgmm.py' import unittest import copy impor...
39.020522
79
0.641214
13d850947b4f2b1599f20ecc7aece744ede5ca27
554
py
Python
config.py
dislazy/DailyNotes
e1c689ac54413772911a74f1ece14781507a27d6
[ "MIT" ]
437
2020-01-19T01:28:31.000Z
2022-03-30T05:25:40.000Z
config.py
dislazy/DailyNotes
e1c689ac54413772911a74f1ece14781507a27d6
[ "MIT" ]
51
2020-01-19T09:20:27.000Z
2022-03-27T14:27:10.000Z
config.py
dislazy/DailyNotes
e1c689ac54413772911a74f1ece14781507a27d6
[ "MIT" ]
28
2020-05-08T10:42:24.000Z
2022-03-05T19:25:29.000Z
import os import datetime basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): JWT_SECRET_KEY = os.environ.get('API_SECRET_KEY') DB_ENCRYPTION_KEY = os.environ.get('DB_ENCRYPTION_KEY') PREVENT_SIGNUPS = os.environ.get('PREVENT_SIGNUPS', False) SQLALCHEMY_DATABASE_URI = os.environ.get('DA...
39.571429
120
0.758123
fd1820a6c3e0bb9d2ec9110e01f326f556afb996
1,742
py
Python
samples/generated_samples/aiplatform_generated_aiplatform_v1_dataset_service_export_data_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
samples/generated_samples/aiplatform_generated_aiplatform_v1_dataset_service_export_data_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/aiplatform_generated_aiplatform_v1_dataset_service_export_data_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.259259
85
0.761768
20b2b60bd8999bb9949eb2b07294d5a76a2497c6
1,426
py
Python
examples/github_test.py
tomejorge/SeleniumBase
e3e50bbd80594c52131b0d88ca3e2c2f7692e340
[ "MIT" ]
1
2021-05-12T14:27:31.000Z
2021-05-12T14:27:31.000Z
examples/github_test.py
tomejorge/SeleniumBase
e3e50bbd80594c52131b0d88ca3e2c2f7692e340
[ "MIT" ]
null
null
null
examples/github_test.py
tomejorge/SeleniumBase
e3e50bbd80594c52131b0d88ca3e2c2f7692e340
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase class GitHubTests(BaseCase): def test_github(self): # Selenium can trigger GitHub's anti-automation system: # "You have triggered an abuse detection mechanism." # "Please wait a few minutes before you try again." # To avoid this automation blocker,...
47.533333
77
0.624825
6124de1cd5e502d5124a0d1668378ef5fc168ad7
7,972
py
Python
build.py
riccardobl/Effekseer
40dea55d7d2fafa365e4365adfe58a1059a5a980
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
build.py
riccardobl/Effekseer
40dea55d7d2fafa365e4365adfe58a1059a5a980
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
build.py
riccardobl/Effekseer
40dea55d7d2fafa365e4365adfe58a1059a5a980
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
import subprocess import sys import os import shutil import urllib.request import platform from distutils.spawn import find_executable import distutils from distutils import dir_util def call(cmd, env=None): """ call command line. """ print(cmd) p = subprocess.Popen(cmd, shell=True, e...
32.942149
118
0.606247
076aeaa8b7f98f961f7b8a98231677cc7b9f7b36
18,612
py
Python
electrum/lnaddr.py
ben-abraham/electrum-ravencoin
597d27b722be1f8bea4e33e69deadb3dc8348340
[ "MIT" ]
28
2021-04-03T21:30:17.000Z
2022-02-22T08:13:14.000Z
electrum/lnaddr.py
ben-abraham/electrum-ravencoin
597d27b722be1f8bea4e33e69deadb3dc8348340
[ "MIT" ]
37
2021-05-26T14:08:10.000Z
2022-02-09T23:25:07.000Z
electrum/lnaddr.py
ben-abraham/electrum-ravencoin
597d27b722be1f8bea4e33e69deadb3dc8348340
[ "MIT" ]
13
2021-04-09T20:22:32.000Z
2021-12-17T17:18:51.000Z
#! /usr/bin/env python3 # This was forked from https://github.com/rustyrussell/lightning-payencode/tree/acc16ec13a3fa1dc16c07af6ec67c261bd8aff23 import re import time from hashlib import sha256 from binascii import hexlify from decimal import Decimal from typing import Optional, TYPE_CHECKING, Type import random impo...
35.38403
197
0.596604
e651671a325f45ea0ef7cc753fced2fb0cf64551
3,664
py
Python
tests/test_std.py
originalcoding/settingslib
f452778cb7a3d2c4cc292dc2df9e0f7733ab56c9
[ "BSD-3-Clause" ]
null
null
null
tests/test_std.py
originalcoding/settingslib
f452778cb7a3d2c4cc292dc2df9e0f7733ab56c9
[ "BSD-3-Clause" ]
null
null
null
tests/test_std.py
originalcoding/settingslib
f452778cb7a3d2c4cc292dc2df9e0f7733ab56c9
[ "BSD-3-Clause" ]
null
null
null
import pytest from settingslib import Settings def test_setting(): settings = Settings() settings['foo'] = 'bar' assert not settings assert settings == {} assert not hasattr(settings, 'foo') settings['BAR'] = 'baz' assert settings assert settings == {'BAR': 'baz'} assert setting...
26.941176
79
0.645469
5e428493ca0430fe4ba000cb8af8b8bd8fd7231c
95,049
py
Python
test/functional/p2p_segwit.py
diazcoin/diaz
0fbc2b2fc5259871e86b47b7b5f1023c37416b61
[ "MIT" ]
3
2019-08-12T15:58:48.000Z
2019-09-04T07:27:44.000Z
test/functional/p2p_segwit.py
diazcoin/diaz
0fbc2b2fc5259871e86b47b7b5f1023c37416b61
[ "MIT" ]
null
null
null
test/functional/p2p_segwit.py
diazcoin/diaz
0fbc2b2fc5259871e86b47b7b5f1023c37416b61
[ "MIT" ]
1
2019-09-07T02:45:39.000Z
2019-09-07T02:45:39.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test segwit transactions and blocks on P2P network.""" import math import random import struct import t...
46.050872
187
0.654347
ee93d706862ea7c36e3eaf26368b840664981a39
16,340
py
Python
relate/urls.py
hanjianwei/relate
971e27a1bdd69236dc6dc294024b50584435a18d
[ "Unlicense" ]
null
null
null
relate/urls.py
hanjianwei/relate
971e27a1bdd69236dc6dc294024b50584435a18d
[ "Unlicense" ]
6
2015-08-18T00:13:40.000Z
2018-01-31T05:55:13.000Z
relate/urls.py
davis68/relate
eb40c8c17d4a724a60de3caa3334521a833bad5c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division __copyright__ = "Copyright (C) 2014 Andreas Kloeckner" __license__ = """ 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 restricti...
28.767606
82
0.57448
adb243b22e881df2460835b8d3590499df402e2c
1,974
py
Python
SoftLayer/CLI/hardware/bandwidth.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
SoftLayer/CLI/hardware/bandwidth.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
SoftLayer/CLI/hardware/bandwidth.py
ko101/softlayer-python
f4cc9fa2eb01d97c0e890907ef6735390f1a5b10
[ "MIT" ]
null
null
null
"""GBandwidth data over date range. Bandwidth is listed in GB""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import helpers from SoftLayer.CLI.virt.bandwidth import create_bandwidth_table @click.command(cls=SoftLayer.CLI.comma...
42.913043
102
0.718845
81abd0e80275384fb494f25f89d0580808288748
3,386
py
Python
method4_unclassified_cookies.py
dibollinger/CookieBlock-Violation-Detection
044c183bc52e8aaf3febe9caa3591be7a13bccac
[ "MIT" ]
4
2021-06-08T20:29:25.000Z
2022-03-29T14:51:02.000Z
method4_unclassified_cookies.py
dibollinger/CookieBlock-Other-Scripts
6a1b028e5d56c0068d2725f7f1b43fa8e2815875
[ "MIT" ]
null
null
null
method4_unclassified_cookies.py
dibollinger/CookieBlock-Other-Scripts
6a1b028e5d56c0068d2725f7f1b43fa8e2815875
[ "MIT" ]
1
2021-10-19T09:47:02.000Z
2021-10-19T09:47:02.000Z
# Copyright (C) 2021 Dino Bollinger, ETH Zürich, Information Security Group # Released under the MIT License """ Using a database of collected cookie + label data, determine potential GDPR violations by determining uncategorized cookies, which usually cannot be rejected and have no description. ------------------------...
33.196078
118
0.664501
80363b03bd62462e21d05eefdf268e931b50736d
2,326
py
Python
pymc/backends/__init__.py
percevalve/pymc
05aa247957553f608d9690ff9f61240aa35b71f8
[ "Apache-2.0" ]
5,476
2015-02-24T13:55:15.000Z
2021-09-30T01:10:06.000Z
pymc/backends/__init__.py
Sayam753/pymc3
e03f5bf6a85ab350bf2ae3029dade7b9fc12dd07
[ "Apache-2.0" ]
4,076
2015-02-23T20:19:19.000Z
2021-09-30T07:35:45.000Z
pymc/backends/__init__.py
Sayam753/pymc3
e03f5bf6a85ab350bf2ae3029dade7b9fc12dd07
[ "Apache-2.0" ]
1,540
2015-02-25T00:58:51.000Z
2021-09-23T08:59:33.000Z
# Copyright 2020 The PyMC Developers # # 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 ag...
33.228571
80
0.734308
c35812c0b9db94444ddfc7c241118853858a397b
4,519
py
Python
regression/gp/sparse_gp_torch.py
hanyas/regression
da0f5072f3f7ff8785b02ec693737a8043653411
[ "MIT" ]
3
2020-04-29T16:45:55.000Z
2021-01-22T15:08:53.000Z
regression/gp/sparse_gp_torch.py
hanyas/regression
da0f5072f3f7ff8785b02ec693737a8043653411
[ "MIT" ]
null
null
null
regression/gp/sparse_gp_torch.py
hanyas/regression
da0f5072f3f7ff8785b02ec693737a8043653411
[ "MIT" ]
1
2020-07-23T17:44:12.000Z
2020-07-23T17:44:12.000Z
import numpy as np import torch from torch.optim import Adam import gpytorch from gpytorch.means import ZeroMean from gpytorch.kernels import ScaleKernel, RBFKernel, InducingPointKernel from gpytorch.distributions import MultivariateNormal from gpytorch.mlls import ExactMarginalLogLikelihood from gpytorch.likelihood...
35.031008
90
0.643505
854633d33e25feabc6efb32507ec530c39592716
7,620
py
Python
tests/test_wraith.py
AndreasHeger/CGATReport
681e198cd13ef533f1c496645a1754b2e0829232
[ "MIT" ]
9
2015-02-14T16:53:58.000Z
2022-01-03T20:22:42.000Z
tests/test_wraith.py
AndreasHeger/CGATReport
681e198cd13ef533f1c496645a1754b2e0829232
[ "MIT" ]
26
2015-01-29T15:39:02.000Z
2018-02-14T09:04:21.000Z
tests/test_wraith.py
AndreasHeger/CGATReport
681e198cd13ef533f1c496645a1754b2e0829232
[ "MIT" ]
4
2015-11-25T17:11:11.000Z
2022-01-03T20:22:45.000Z
"""Use wraith to compare current version against published docs. """ import unittest import os import copy import re import yaml import subprocess import contextlib from distutils.version import LooseVersion import http.server import socketserver import threading REFERENCE_URL = "https://www.cgat.org/downloads/public...
31.229508
106
0.59895
80403d1f4d366ad53d0f77a57e58ecdd5e3facf4
3,109
py
Python
py_editor/oozaar/filect.py
surajsinghbisht054/py-editor
b9554e5589351384f42030eebe85a755fe674a4a
[ "Apache-2.0" ]
3
2020-12-05T06:37:36.000Z
2021-06-08T18:41:27.000Z
py_editor/oozaar/filect.py
surajsinghbisht054/py-editor
b9554e5589351384f42030eebe85a755fe674a4a
[ "Apache-2.0" ]
null
null
null
py_editor/oozaar/filect.py
surajsinghbisht054/py-editor
b9554e5589351384f42030eebe85a755fe674a4a
[ "Apache-2.0" ]
1
2021-11-05T08:20:32.000Z
2021-11-05T08:20:32.000Z
#!/usr/bin/python # ---------------- READ ME --------------------------------------------- # This Script is Created Only For Practise And Educational Purpose Only # This Script Is Created For http://bitforestinfo.blogspot.com # This Script is Written By # # ################################################## #...
33.793478
102
0.560952
fc15bd61c62cec1b2c7f35b3b54ff10cccd3e109
332
py
Python
fast_api_server/constants/constants.py
parithy86/Python-api-frameworks
a19ca4a8f2ef92e6fc314fed5afe7350a1d771e8
[ "Apache-2.0" ]
null
null
null
fast_api_server/constants/constants.py
parithy86/Python-api-frameworks
a19ca4a8f2ef92e6fc314fed5afe7350a1d771e8
[ "Apache-2.0" ]
null
null
null
fast_api_server/constants/constants.py
parithy86/Python-api-frameworks
a19ca4a8f2ef92e6fc314fed5afe7350a1d771e8
[ "Apache-2.0" ]
null
null
null
class Constants: RESPONSE_CODES_SUCCESS = [200, 201] RESPONSE_CODES_FAILURE = [400, 401, 404, 500] RESPONSE_500 = 500 URL = "https://api.coingecko.com/api/v3/coins/{}?localization=false&tickers=false&market_data=false&community_data=false&developer_data=false&sparkline=false" CONTENT_TYPE = "applica...
41.5
162
0.746988
305244808a33ad4a2bfe88f35dd2e63e8624b6f8
20,779
py
Python
python/tvm/autotvm/tuner/xgboost_cost_model.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
5
2020-06-19T03:22:24.000Z
2021-03-17T22:16:48.000Z
python/tvm/autotvm/tuner/xgboost_cost_model.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
2
2020-07-08T12:34:59.000Z
2020-07-11T15:54:47.000Z
python/tvm/autotvm/tuner/xgboost_cost_model.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
3
2020-12-10T23:21:18.000Z
2020-12-11T01:04:50.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.519658
98
0.575196
deb934126cd5c982b03ed3c3118681074db2edc6
1,497
py
Python
tensorflow/python/data/experimental/ops/matching_files.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/data/experimental/ops/matching_files.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/data/experimental/ops/matching_files.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.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...
41.583333
80
0.739479
01c07aacec6fb4e5e65380bd14f5ec4aeaf603b3
1,871
py
Python
personal/Sebastiano/useful_py/transit_boost.py
edervishaj/spotify-recsys-challenge
4077201ac7e4ed9da433bd10a92c183614182437
[ "Apache-2.0" ]
3
2018-10-12T20:19:57.000Z
2019-12-11T01:11:38.000Z
personal/Sebastiano/useful_py/transit_boost.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
null
null
null
personal/Sebastiano/useful_py/transit_boost.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
4
2018-10-27T20:30:18.000Z
2020-10-14T07:43:27.000Z
import scipy.sparse as sps import numpy as np from tqdm import tqdm from utils.pre_processing import norm_max_row def transitivity_boost(sim): sim_col = sps.csc_matrix(sim) print("Similarity shape: " + str(sim.shape)) for row in tqdm(range(sim.shape[0])): data_row = sim.data[sim.indptr[row]:sim.i...
38.979167
107
0.627472
c0c28c3ec7b5f196028be4343282287ce283f218
3,191
py
Python
tests/unit/test_scope_group.py
ignatenkobrain/ns1-python
f814fd809d08356c48ba686c041bd057ee6cbb75
[ "MIT" ]
null
null
null
tests/unit/test_scope_group.py
ignatenkobrain/ns1-python
f814fd809d08356c48ba686c041bd057ee6cbb75
[ "MIT" ]
null
null
null
tests/unit/test_scope_group.py
ignatenkobrain/ns1-python
f814fd809d08356c48ba686c041bd057ee6cbb75
[ "MIT" ]
null
null
null
import pytest import ns1.rest.ipam try: # Python 3.3 + import unittest.mock as mock except ImportError: import mock @pytest.fixture def scope_group_config(config): config.loadFromDict({ 'endpoint': 'api.nsone.net', 'default_key': 'test1', 'keys': { 'test1': { ...
37.988095
77
0.529615
46ecd6f97cf1501ab3dcc6a17abd94c3af8b1acd
876
py
Python
constants.py
korsejong/emotion-recognition-neural-networks
ee2c58c2809ad201c7cf2ca6ac1d998197baf246
[ "MIT" ]
872
2016-07-02T03:45:01.000Z
2022-03-29T17:24:41.000Z
constants.py
vishnutejnk/emotion-recognition-neural-networks
8da63cae751f087b3a09684d0396f0f9b1071b95
[ "MIT" ]
66
2016-09-02T16:13:26.000Z
2022-03-11T23:20:25.000Z
constants.py
vishnutejnk/emotion-recognition-neural-networks
8da63cae751f087b3a09684d0396f0f9b1071b95
[ "MIT" ]
377
2016-07-02T07:36:34.000Z
2022-02-17T06:22:26.000Z
# __ __ # /\ \__ /\ \__ # ___ ___ ___ ____\ \ ,_\ __ ___\ \ ,_\ ____ # /'___\ / __`\ /' _ `\ /',__\\ \ \/ /'__`\ /' _ `\ \ \/ /',__\ # /\ \__//\ \L\ \/\ \/\ \/\__, `\\ \ \_/\ \L\.\_/\ \/\ \ \ \_/\__,...
43.8
74
0.477169
977e16aa1ec4ea1df06adf82f07a575de35ccbc2
4,767
py
Python
pfwra/news/migrations/0001_initial.py
johnkellehernz/pfwra
5b8c718bb2f1aaa34e9a718e07baf270294f7ba6
[ "MIT" ]
null
null
null
pfwra/news/migrations/0001_initial.py
johnkellehernz/pfwra
5b8c718bb2f1aaa34e9a718e07baf270294f7ba6
[ "MIT" ]
null
null
null
pfwra/news/migrations/0001_initial.py
johnkellehernz/pfwra
5b8c718bb2f1aaa34e9a718e07baf270294f7ba6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.11 on 2021-03-26 08:03 from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields import wagtail.contrib.routable_page.models import wagtail.core.blocks import wagtail.core.fields import wagtail.embeds.blocks import ...
66.208333
1,140
0.665618
7ab89b489893df4ce0840e4cbf668526f27eee24
2,144
py
Python
libs/external/emscripten/tools/settings_template_readonly.py
qq2588258/floweers
c7f117f29dee21473821b89ff9b18058f7ebdadf
[ "MIT" ]
58
2015-01-05T04:40:48.000Z
2021-12-17T06:01:28.000Z
tools/settings_template_readonly.py
aashish24/emscripten
0708b232eef021cc7e1302b02091e6a84ceeb1aa
[ "MIT" ]
null
null
null
tools/settings_template_readonly.py
aashish24/emscripten
0708b232eef021cc7e1302b02091e6a84ceeb1aa
[ "MIT" ]
46
2015-01-03T06:20:54.000Z
2020-04-18T13:32:52.000Z
# This file will be edited (the {{{ }}} things), and then ~/.emscripten created with the result, if ~/.emscripten doesn't exist. # Note: If you put paths relative to the home directory, do not forget os.path.expanduser import os # this helps projects using emscripten find it EMSCRIPTEN_ROOT = os.path.expanduser(os.g...
44.666667
128
0.673507
926e0484fce36b1499ac203edd6dacd31aac1e38
52,978
py
Python
mockredis/client.py
guyhughes/mockredis
ba41d90a097f26e1f1ab36603d6a94a2202691f1
[ "Apache-2.0" ]
null
null
null
mockredis/client.py
guyhughes/mockredis
ba41d90a097f26e1f1ab36603d6a94a2202691f1
[ "Apache-2.0" ]
null
null
null
mockredis/client.py
guyhughes/mockredis
ba41d90a097f26e1f1ab36603d6a94a2202691f1
[ "Apache-2.0" ]
null
null
null
from __future__ import division from collections import defaultdict from copy import deepcopy from itertools import chain from datetime import datetime, timedelta from hashlib import sha1 from operator import add from random import choice, sample import re import sys import time import fnmatch from mockredis.clock imp...
33.445707
120
0.57254
5bf9e7622dc3ba0349225a86ae06909c4b62c563
15,254
py
Python
python-3.6.0/Tools/pybench/Lookups.py
emacslisp/python
5b89ddcc504108f0dfa1081e338e6475cf6ccd2f
[ "Apache-2.0" ]
1,463
2017-09-30T02:46:56.000Z
2022-03-30T15:11:05.000Z
python-3.6.0/Tools/pybench/Lookups.py
emacslisp/python
5b89ddcc504108f0dfa1081e338e6475cf6ccd2f
[ "Apache-2.0" ]
702
2016-12-02T23:47:21.000Z
2022-03-31T08:14:00.000Z
python-3.6.0/Tools/pybench/Lookups.py
emacslisp/python
5b89ddcc504108f0dfa1081e338e6475cf6ccd2f
[ "Apache-2.0" ]
208
2018-01-17T05:55:55.000Z
2022-03-29T18:27:47.000Z
from pybench import Test class SpecialClassAttribute(Test): version = 2.0 operations = 5*(12 + 12) rounds = 100000 def test(self): class c: pass for i in range(self.rounds): c.__a = 2 c.__b = 3 c.__c = 4 c.__a = 2 ...
16.124736
37
0.255277
f4afb54921b303447edc329c55c37cfcc5f42e6e
4,533
py
Python
TrainingExtensions/torch/src/python/aimet_torch/transformer_utils.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/torch/src/python/aimet_torch/transformer_utils.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/torch/src/python/aimet_torch/transformer_utils.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
43.171429
105
0.691154
1d2a9996638f4f6d402c1938d9d00b79903364aa
5,762
py
Python
train.py
minhnhatvt/glamor-net
c12e1b97aa7354df126795f19402303a00166ec3
[ "MIT" ]
20
2020-11-18T08:13:22.000Z
2022-03-22T11:34:20.000Z
train.py
minhnhatvt/glamor-net
c12e1b97aa7354df126795f19402303a00166ec3
[ "MIT" ]
1
2021-11-17T09:40:56.000Z
2021-11-17T09:43:10.000Z
train.py
minhnhatvt/glamor-net
c12e1b97aa7354df126795f19402303a00166ec3
[ "MIT" ]
4
2020-12-03T06:16:06.000Z
2021-12-22T07:41:50.000Z
import tensorflow as tf from tensorflow.keras.utils import Progbar from config import config import numpy as np import data_utils import time from data_utils import get_train_dataset def train(model, optimizer, train_dataset, val_dataset=None, epochs=5, load_checkpoint=False): # Define the metrics tr...
42.681481
115
0.613155
2df6ec7f3669e00a3d8c57a34b9a45f9e9574097
38
py
Python
web/web/views.py
OPI-py/django_blog
43cb0079499a6397246fd01dc50212fd8d432431
[ "BSD-2-Clause" ]
null
null
null
web/web/views.py
OPI-py/django_blog
43cb0079499a6397246fd01dc50212fd8d432431
[ "BSD-2-Clause" ]
null
null
null
web/web/views.py
OPI-py/django_blog
43cb0079499a6397246fd01dc50212fd8d432431
[ "BSD-2-Clause" ]
null
null
null
from django.http import HttpResponse
12.666667
36
0.842105
5f309afa1892b93616cd9a3782456dd49e55b6bc
1,129
py
Python
im/kibot/data/extract/check_realtime_feed.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
im/kibot/data/extract/check_realtime_feed.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
im/kibot/data/extract/check_realtime_feed.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ # Make an API call every 10 seconds to get the history of symbol `MSFT` > check_realtime_feed.py -u $KIBOT_USERNAME -p $KIBOT_PASSWORD """ import logging import time import requests import im.kibot.base.command as vkbcom import im.kibot.data.config as vkdcon _LOG = logging.getLogger(__na...
24.021277
79
0.575731
e15d61d9ac289e73a5dc78e34b16519ab993db63
7,029
py
Python
tests/test_basic.py
neuroailab/tnn
0d5e5dc6ab3669309e8c00c23da2928a04bc8d02
[ "MIT" ]
88
2018-03-14T15:56:54.000Z
2022-03-22T17:19:39.000Z
tests/test_basic.py
neuroailab/tnn
0d5e5dc6ab3669309e8c00c23da2928a04bc8d02
[ "MIT" ]
null
null
null
tests/test_basic.py
neuroailab/tnn
0d5e5dc6ab3669309e8c00c23da2928a04bc8d02
[ "MIT" ]
19
2018-07-05T00:17:26.000Z
2021-11-15T06:22:17.000Z
from __future__ import absolute_import, division, print_function import time import tqdm import numpy as np import tensorflow as tf from tnn import main from tests import setup BATCH_SIZE = 256 def test_mnist_fc(): test_mnist(kind='fc') def test_mnist_conv(): test_mnist(kind='conv') def test_mnist(kind...
39.05
125
0.646749
bca1599745cad89ecf409b4623350eb07e2406d4
4,028
py
Python
reg/permutation_imp.py
sushmaakoju/regression-api
d94376e7c7d30f0ee5e0b3a7815371f9cc32c6cd
[ "MIT" ]
null
null
null
reg/permutation_imp.py
sushmaakoju/regression-api
d94376e7c7d30f0ee5e0b3a7815371f9cc32c6cd
[ "MIT" ]
null
null
null
reg/permutation_imp.py
sushmaakoju/regression-api
d94376e7c7d30f0ee5e0b3a7815371f9cc32c6cd
[ "MIT" ]
null
null
null
from __future__ import absolute_import import matplotlib import seaborn as sns import numpy as np import matplotlib.pyplot as plt from matplotlib.pyplot import figure import matplotlib.dates as mdates from mpl_toolkits import mplot3d from sklearn.inspection import permutation_importance import os __all__ =["plot_benc...
47.952381
114
0.758689