hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c05529f25572e05b9c041e702b17a514852babb4
10,921
py
Python
app.py
sreelal1/Sentiment-Analysis_NLP
7c37e6621fd728abd986be806fdbdb1eb80c4fa0
[ "MIT" ]
null
null
null
app.py
sreelal1/Sentiment-Analysis_NLP
7c37e6621fd728abd986be806fdbdb1eb80c4fa0
[ "MIT" ]
null
null
null
app.py
sreelal1/Sentiment-Analysis_NLP
7c37e6621fd728abd986be806fdbdb1eb80c4fa0
[ "MIT" ]
null
null
null
import pickle import pandas as pd import numpy as np import webbrowser import dash import dash_html_components as html import dash_core_components as dcc import dash_bootstrap_components as dbc from dash.dependencies import Input, Output, State from sklearn.feature_extraction.text import TfidfTransformer from sk...
27.930946
115
0.492629
bea78e2d282f2eb0fe17827635d27f5031851249
2,624
py
Python
preprocessing/util/quadtree.py
UniStuttgart-VISUS/spatiotemporal1d
edff0aab5c8c5b5213f71715f98716b53aa06ac0
[ "Apache-2.0" ]
3
2021-06-29T22:41:11.000Z
2022-01-31T12:57:29.000Z
preprocessing/util/quadtree.py
UniStuttgart-VISUS/spatiotemporal1d
edff0aab5c8c5b5213f71715f98716b53aa06ac0
[ "Apache-2.0" ]
1
2021-11-25T09:46:10.000Z
2021-11-25T11:42:09.000Z
preprocessing/util/quadtree.py
UniStuttgart-VISUS/spatiotemporal1d
edff0aab5c8c5b5213f71715f98716b53aa06ac0
[ "Apache-2.0" ]
null
null
null
import math from functools import namedtuple Point = namedtuple('Point', ('x', 'y', 'data')) class Node: def __init__(self, x0, y0, x1, y1, datum): self.x0 = x0 self.x1 = x1 self.y0 = y0 self.y1 = y1 self.datum = datum self.children = None class Quadtree: de...
26.77551
145
0.498476
8448fe74ac50d42b44d2fac76f5fad759cf26bb5
198
py
Python
lessons/lesson3/t201.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
lessons/lesson3/t201.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
lessons/lesson3/t201.py
kcfkwok2003/Simp_py
f75e66da01b45dc8688dda602f8b33d4258f0c31
[ "MIT" ]
null
null
null
# t201.py from machine import Pin from simp_py import tft p21= Pin(21, Pin.IN) while True: if p21.value()==0: tft.tft.text(0,100," on") else: tft.tft.text(0,100,"off") time.sleep(0.1)
18
29
0.641414
0a9b5f450053fa6c990011c706e8320dd1c870a9
8,960
py
Python
pipenv/patched/notpip/_internal/utils/unpacking.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
23
2017-01-20T01:18:31.000Z
2017-01-20T17:25:11.000Z
pipenv/patched/notpip/_internal/utils/unpacking.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
1
2017-01-20T05:13:58.000Z
2017-01-20T05:13:58.000Z
pipenv/patched/notpip/_internal/utils/unpacking.py
sthagen/pipenv
0924f75fd1004c848ea67d4272315eda4210b352
[ "MIT" ]
null
null
null
"""Utilities related archives. """ import logging import os import shutil import stat import tarfile import zipfile from typing import Iterable, List, Optional from zipfile import ZipInfo from pipenv.patched.notpip._internal.exceptions import InstallationError from pipenv.patched.notpip._internal.utils.filetypes impo...
34.594595
85
0.579911
c7dedc3412466e3344ec5f98c60dd41f4b02ca92
1,576
py
Python
server/db/test.py
e7/treasure-box
1ad4818e7535b80a3ad3e0cb74087a2ce43a9dc8
[ "Apache-2.0" ]
null
null
null
server/db/test.py
e7/treasure-box
1ad4818e7535b80a3ad3e0cb74087a2ce43a9dc8
[ "Apache-2.0" ]
null
null
null
server/db/test.py
e7/treasure-box
1ad4818e7535b80a3ad3e0cb74087a2ce43a9dc8
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding:utf-8 -*- import socket import errno import struct import time import json if "__main__" == __name__: skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) skt.connect(("127.0.0.1", 8889)) ''' context = json.dumps({"interface":"insert", "email":"jackzxty@126...
32.163265
76
0.625
e15709a1dd8c9b23dacaffe350652984a43de7df
213
py
Python
programming_language_manuals/Python/python3tutorial/tutor.9.3.4.py
darbinreyes/subparprogrammer
e3588adc494a69a564fe0a9859ff296fc710eab0
[ "MIT" ]
null
null
null
programming_language_manuals/Python/python3tutorial/tutor.9.3.4.py
darbinreyes/subparprogrammer
e3588adc494a69a564fe0a9859ff296fc710eab0
[ "MIT" ]
1
2021-05-11T22:20:01.000Z
2021-05-11T22:20:01.000Z
programming_language_manuals/Python/python3tutorial/tutor.9.3.4.py
darbinreyes/subparprogrammer
e3588adc494a69a564fe0a9859ff296fc710eab0
[ "MIT" ]
null
null
null
class MyClass: """A simple example class""" i = 12345 def f(self): return 'hello world' # Error ? ANS: Yes. You need to pass in self. # MyClass.f() x = MyClass() print(MyClass.f(x)) # Works
16.384615
45
0.591549
b6062905b256433cd15dfc069709422aecfcbfdc
6,307
py
Python
.github/scripts/core_checker.py
nemausa/FreeRTOS
096f8e27f8016acca10f7bc5ba8efab3817347ce
[ "MIT" ]
null
null
null
.github/scripts/core_checker.py
nemausa/FreeRTOS
096f8e27f8016acca10f7bc5ba8efab3817347ce
[ "MIT" ]
null
null
null
.github/scripts/core_checker.py
nemausa/FreeRTOS
096f8e27f8016acca10f7bc5ba8efab3817347ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # python >= 3.4 import os from common.header_checker import HeaderChecker #-------------------------------------------------------------------------------------------------- # CONFIG #--------------------------------------------------------------------...
18.495601
99
0.445378
f460c70dde0f8790a5d4bbe8c8f48f595e84a839
65
py
Python
app/engine/graphics/ui_framework/premade_animations/__init__.py
zerorock1312/lt-maker-master
82f733683f9dba763a5de8567c41fd7cbcfb0173
[ "MIT" ]
null
null
null
app/engine/graphics/ui_framework/premade_animations/__init__.py
zerorock1312/lt-maker-master
82f733683f9dba763a5de8567c41fd7cbcfb0173
[ "MIT" ]
null
null
null
app/engine/graphics/ui_framework/premade_animations/__init__.py
zerorock1312/lt-maker-master
82f733683f9dba763a5de8567c41fd7cbcfb0173
[ "MIT" ]
null
null
null
from .animation_templates import * from .text_animations import *
32.5
34
0.830769
1895ccab21dea2d007321d110459dd8edb832bee
40,061
py
Python
nova/tests/functional/test_server_group.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/test_server_group.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/test_server_group.py
panguan737/nova
0d177185a439baa228b42c948cab4e934d6ac7b8
[ "Apache-2.0" ]
1
2020-11-02T10:17:13.000Z
2020-11-02T10:17:13.000Z
# Copyright 2015 Ericsson AB # 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 a...
43.122713
79
0.64574
2fec9d09a2b708d6dbd67453ee97c2358c723a39
3,130
py
Python
pymake/processpoolexecutor.py
CallumJHays/pymake
01dfed42e20cd05d4843425633b7c17828f924c4
[ "MIT" ]
1
2021-09-08T09:30:05.000Z
2021-09-08T09:30:05.000Z
pymake/processpoolexecutor.py
CallumJHays/pymake
01dfed42e20cd05d4843425633b7c17828f924c4
[ "MIT" ]
null
null
null
pymake/processpoolexecutor.py
CallumJHays/pymake
01dfed42e20cd05d4843425633b7c17828f924c4
[ "MIT" ]
null
null
null
"""Main module.""" import pickle from multiprocessing.pool import MapResult from typing import Any, Callable, Optional, TypeVar, Iterator, Union # monkey-patches multiprocessing so that pathos uses the superior serialization import dill # type: ignore import multiprocess.pool # type: ignore from types import Tracebac...
30.38835
90
0.646006
70856c6c8bd05e5e38e5399f7b78fb16454093e9
1,755
py
Python
package/spack-cityhash/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-cityhash/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-cityhash/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
42.804878
78
0.668376
f9a14b11e91a8c32ec0a73bfaa3d47dcc289d61e
17,524
py
Python
udemy/decryptor/mp4parse.py
vquilon/udemy-dl
d8773553d5c644a36db97d82fa62dba4a422c3af
[ "MIT" ]
275
2021-05-18T21:28:33.000Z
2022-03-30T19:44:28.000Z
udemy/decryptor/mp4parse.py
vquilon/udemy-dl
d8773553d5c644a36db97d82fa62dba4a422c3af
[ "MIT" ]
97
2021-05-18T22:44:07.000Z
2022-03-26T01:19:59.000Z
udemy/decryptor/mp4parse.py
vquilon/udemy-dl
d8773553d5c644a36db97d82fa62dba4a422c3af
[ "MIT" ]
148
2021-05-18T21:28:40.000Z
2022-03-31T06:51:27.000Z
""" MP4 Parser based on: http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf @author: Alastair McCormack @license: MIT License """ import bitstring from datetime import datetime from collections import namedtuple import logging import six log = logging.getLogger(__name__) #log.addHandler(logging.Nu...
35.259557
168
0.583942
21a453b7c9ab43daf8deb3817dbfe0adb616c829
25,062
py
Python
neural_clbf/controllers/neural_clbf_controller.py
MIT-REALM/neural_clbf
5eda47941aabc6cb4147c618c9fc5b58e1591d67
[ "BSD-3-Clause" ]
9
2022-01-22T11:47:11.000Z
2022-03-08T14:49:38.000Z
neural_clbf/controllers/neural_clbf_controller.py
MIT-REALM/neural_clbf
5eda47941aabc6cb4147c618c9fc5b58e1591d67
[ "BSD-3-Clause" ]
1
2021-11-14T22:30:20.000Z
2021-11-19T14:40:49.000Z
neural_clbf/controllers/neural_clbf_controller.py
MIT-REALM/neural_clbf
5eda47941aabc6cb4147c618c9fc5b58e1591d67
[ "BSD-3-Clause" ]
5
2022-01-23T17:02:52.000Z
2022-03-29T22:26:59.000Z
import itertools from typing import Tuple, List, Optional from collections import OrderedDict import random import torch import torch.nn as nn import torch.nn.functional as F import pytorch_lightning as pl from neural_clbf.systems import ControlAffineSystem from neural_clbf.systems.utils import ScenarioList from neur...
40.685065
88
0.619025
e3181a7e3801f617d5b75b5bea5760dee968796e
24,505
py
Python
tests/integration/features/steps/integration_steps.py
phanirajl/cassandra-medusa
04315068365fc372b6a26d8b0ed6d2b135db1d98
[ "Apache-2.0" ]
null
null
null
tests/integration/features/steps/integration_steps.py
phanirajl/cassandra-medusa
04315068365fc372b6a26d8b0ed6d2b135db1d98
[ "Apache-2.0" ]
null
null
null
tests/integration/features/steps/integration_steps.py
phanirajl/cassandra-medusa
04315068365fc372b6a26d8b0ed6d2b135db1d98
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Spotify AB. 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...
36.089838
113
0.686186
e964e12273eb2acbc3121f3ff86b38ea634e0132
54,920
py
Python
raster_handler/rh.py
gustavoalens/raster_handler
513760b0ef085af40b76162a0c5f9d6ffa2d4a94
[ "MIT" ]
null
null
null
raster_handler/rh.py
gustavoalens/raster_handler
513760b0ef085af40b76162a0c5f9d6ffa2d4a94
[ "MIT" ]
null
null
null
raster_handler/rh.py
gustavoalens/raster_handler
513760b0ef085af40b76162a0c5f9d6ffa2d4a94
[ "MIT" ]
null
null
null
from osgeo import gdal, ogr from skimage import segmentation from skimage.exposure import histogram, adjust_gamma, equalize_hist from skimage.feature import local_binary_pattern, hog, greycomatrix, greycoprops from skimage.filters import median, gaussian, sobel, laplace from skimage import img_as_uint, img_as_ubyte, i...
33.345477
160
0.630062
017f68615d497831e95bdffab1a50a53682a9407
8,001
py
Python
docs/conf.py
GuineaPiet/oauthlib
a8eff9c140eb45982c34c6555a93855851d09388
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
GuineaPiet/oauthlib
a8eff9c140eb45982c34c6555a93855851d09388
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
GuineaPiet/oauthlib
a8eff9c140eb45982c34c6555a93855851d09388
[ "BSD-3-Clause" ]
1
2021-10-03T14:53:40.000Z
2021-10-03T14:53:40.000Z
# -*- coding: utf-8 -*- # # OAuthLib documentation build configuration file, created by # sphinx-quickstart on Mon Mar 12 09:37:24 2012. # # 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. # # Al...
32.392713
90
0.717285
a3799bb19587c6d7a36c074db17ce3adc3b2cbfa
221
py
Python
mathics/version.py
rjalif199/Mathics
be0f08be246284489fab84fcd507f4bb3a1ba098
[ "Apache-2.0" ]
null
null
null
mathics/version.py
rjalif199/Mathics
be0f08be246284489fab84fcd507f4bb3a1ba098
[ "Apache-2.0" ]
null
null
null
mathics/version.py
rjalif199/Mathics
be0f08be246284489fab84fcd507f4bb3a1ba098
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is suitable for sourcing inside POSIX shell as # well as importing into Python. That's why there is no # space around "=" below. __version__="2.0.0dev" # noqa
24.555556
58
0.687783
4a1639c03c4272df2e3f1348fd446f04d01a8fa0
1,430
py
Python
examples/pylab_examples/pcolor_demo.py
SoftwareDev/mat-plot-lib
abaf94859d5ef6e653a4d8a7ce2c59cea1724a57
[ "MIT", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
lib/mpl_examples/pylab_examples/pcolor_demo.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
lib/mpl_examples/pylab_examples/pcolor_demo.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
6
2015-06-05T03:34:06.000Z
2022-01-25T09:07:10.000Z
""" Demonstrates similarities between pcolor, pcolormesh, imshow and pcolorfast for drawing quadrilateral grids. """ import matplotlib.pyplot as plt import numpy as np # make these smaller to increase the resolution dx, dy = 0.15, 0.05 # generate 2 2d grids for the x & y bounds y, x = np.mgrid[slice(-3, 3 + dy, dy),...
25.087719
75
0.632168
16e3b061e6b3afed626aeddf839c78cf32674e44
9,396
py
Python
tests/get_genotype_all_vars_tests.py
hsiaoyi0504/cptac
296978a9a7ea0f298490984d8ffe10fb92b5ab34
[ "Apache-2.0" ]
53
2019-05-30T02:05:04.000Z
2022-03-16T00:38:58.000Z
tests/get_genotype_all_vars_tests.py
hsiaoyi0504/cptac
296978a9a7ea0f298490984d8ffe10fb92b5ab34
[ "Apache-2.0" ]
20
2020-02-16T23:50:43.000Z
2021-09-26T10:07:59.000Z
tests/get_genotype_all_vars_tests.py
hsiaoyi0504/cptac
296978a9a7ea0f298490984d8ffe10fb92b5ab34
[ "Apache-2.0" ]
17
2019-09-27T20:55:09.000Z
2021-10-19T07:18:06.000Z
# Copyright 2018 Samuel Payne sam_payne@byu.edu # 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 ...
38.666667
230
0.666773
7571a54e662189dd244b4e49becb110fc5023519
19,793
py
Python
samcli/commands/build/build_context.py
awilkins/aws-sam-cli
2ace38995ef97120abdbe23939fb9e96c5eb76b1
[ "Apache-2.0" ]
null
null
null
samcli/commands/build/build_context.py
awilkins/aws-sam-cli
2ace38995ef97120abdbe23939fb9e96c5eb76b1
[ "Apache-2.0" ]
34
2020-12-08T21:15:26.000Z
2021-05-13T21:21:49.000Z
samcli/commands/build/build_context.py
awilkins/aws-sam-cli
2ace38995ef97120abdbe23939fb9e96c5eb76b1
[ "Apache-2.0" ]
1
2022-02-09T01:25:20.000Z
2022-02-09T01:25:20.000Z
""" Context object used by build command """ import logging import os import pathlib import shutil from typing import Dict, Optional, List import click from samcli.commands.build.exceptions import InvalidBuildDirException, MissingBuildMethodException from samcli.lib.bootstrap.nested_stack.nested_stack_manager import...
41.149688
117
0.672561
5edefe6916bdc070737c48468f9b0b920c78902e
19,333
py
Python
src/connection-monitor-preview/azext_connection_monitor_preview/vendored_sdks/v2019_06_01/v2019_06_01/operations/_express_route_circuit_connections_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/connection-monitor-preview/azext_connection_monitor_preview/vendored_sdks/v2019_06_01/v2019_06_01/operations/_express_route_circuit_connections_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/connection-monitor-preview/azext_connection_monitor_preview/vendored_sdks/v2019_06_01/v2019_06_01/operations/_express_route_circuit_connections_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
48.944304
224
0.681012
afdb1ef1e316ad9e00798277f3f795fbcfc09471
2,740
py
Python
documents/aws-doc-sdk-examples/python/example_code/polly/GetLexicon.py
siagholami/aws-documentation
2d06ee9011f3192b2ff38c09f04e01f1ea9e0191
[ "CC-BY-4.0" ]
5
2021-08-13T09:20:58.000Z
2021-12-16T22:13:54.000Z
documents/aws-doc-sdk-examples/python/example_code/polly/GetLexicon.py
siagholami/aws-documentation
2d06ee9011f3192b2ff38c09f04e01f1ea9e0191
[ "CC-BY-4.0" ]
null
null
null
documents/aws-doc-sdk-examples/python/example_code/polly/GetLexicon.py
siagholami/aws-documentation
2d06ee9011f3192b2ff38c09f04e01f1ea9e0191
[ "CC-BY-4.0" ]
null
null
null
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This file is d...
35.128205
144
0.739051
3cc1235f63217878669ba939946c3001cee9b54e
14,403
py
Python
full-text-search/topic_scraper.py
skyline-ai/census-api
7529031043269585eb0ad0d8f34ea62082588c61
[ "MIT" ]
1
2019-03-02T23:36:31.000Z
2019-03-02T23:36:31.000Z
full-text-search/topic_scraper.py
citizenlabsgr/2020-census
994a839b0181168ef1082b35058173532ead463e
[ "MIT" ]
null
null
null
full-text-search/topic_scraper.py
citizenlabsgr/2020-census
994a839b0181168ef1082b35058173532ead463e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from HTMLParser import HTMLParser import psycopg2 import re import urllib2 class HTMLStripper(HTMLParser): """ Stripper for HTML tags; simply stores data in self.data. """ def __init__(self): self.reset() self.data = [] def handle_data(self, data): """ Ap...
33.573427
90
0.600014
ad7f27a5e16e890da61b18245a5d23c2a6cdec9a
5,890
py
Python
bin/projects.py
bdice/cibuildwheel
489d560fff0d17c67ade4f9b812c1b8263a61e87
[ "BSD-2-Clause" ]
null
null
null
bin/projects.py
bdice/cibuildwheel
489d560fff0d17c67ade4f9b812c1b8263a61e87
[ "BSD-2-Clause" ]
null
null
null
bin/projects.py
bdice/cibuildwheel
489d560fff0d17c67ade4f9b812c1b8263a61e87
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """ Convert a yaml project list into a nice table. Suggested usage: ./bin/projects.py docs/data/projects.yml --online --auth $GITHUB_API_TOKEN --readme README.md git diff """ from __future__ import annotations import builtins import functools import textwrap import urllib.request imp...
27.652582
133
0.594228
7aefa547bbb6fb5c93bf611211f3fbee74a0d004
275
py
Python
models/query_models/topic_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
7
2020-05-24T02:15:46.000Z
2020-11-26T07:14:44.000Z
models/query_models/topic_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
12
2020-05-17T10:46:29.000Z
2021-05-06T20:08:37.000Z
models/query_models/topic_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
4
2020-05-09T07:26:09.000Z
2021-10-31T07:09:10.000Z
from models.data_types import StringType from models.query_models.base_model import BaseQueryModel, QueryField class TopicQueryModel(BaseQueryModel): name = QueryField(StringType(), location="json", comment="主题名") class RootTopicQueryModel(TopicQueryModel): pass
25
69
0.803636
8e2a09f15c915a83255e5f89b22ed03fa180caf0
3,471
py
Python
sender.py
brandelli/t1-labredes
3611c32923591059566c847ce48a1c43fe1f2f12
[ "MIT" ]
null
null
null
sender.py
brandelli/t1-labredes
3611c32923591059566c847ce48a1c43fe1f2f12
[ "MIT" ]
null
null
null
sender.py
brandelli/t1-labredes
3611c32923591059566c847ce48a1c43fe1f2f12
[ "MIT" ]
null
null
null
import struct import socket import binascii import os class Sender: #0x0800 ipv4 #0x86dd ipv6 #17 UDP #6 TCP #def __init__(self, src, dest, data): def __init__(self, fileName, etherType, ipProtocolType, destMac, srcMac): self._file = self.prepareFile(fileName, 1480) self._ethe...
31.554545
79
0.528378
d72492bdea88c8dd51a27e7fa26e2fe5cb8f4737
1,544
py
Python
credentials_test.py
Bernard2030/passward-locker
4d654076197d58a78a9c782097c88b79c72a9653
[ "Unlicense" ]
null
null
null
credentials_test.py
Bernard2030/passward-locker
4d654076197d58a78a9c782097c88b79c72a9653
[ "Unlicense" ]
null
null
null
credentials_test.py
Bernard2030/passward-locker
4d654076197d58a78a9c782097c88b79c72a9653
[ "Unlicense" ]
null
null
null
import unittest from credentials import Credential class TestOne(unittest.TestCase): def setUp(self): """ Method to run before any other test case """ self.new_credential = Credential("user_name", "email", "passward" ) def tearDown(self): """ Method does clean-up after ea...
28.072727
86
0.686528
bb328396a857f011e34e6189ae18f2773e82efd0
6,632
py
Python
bindings/python/ensmallen_graph/datasets/string/alistipessp627.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/alistipessp627.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/alistipessp627.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Alistipes sp. 627. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-0...
35.089947
223
0.699789
aac09bf668d8df5951a4298172bfaced226eba31
3,041
py
Python
abel/abel.py
tourdeml/abel-pytorch
950ad6c0fd21f766c03b59efe52df3c17ad7fc21
[ "MIT" ]
null
null
null
abel/abel.py
tourdeml/abel-pytorch
950ad6c0fd21f766c03b59efe52df3c17ad7fc21
[ "MIT" ]
null
null
null
abel/abel.py
tourdeml/abel-pytorch
950ad6c0fd21f766c03b59efe52df3c17ad7fc21
[ "MIT" ]
null
null
null
import torch from torch import nn, optim from abel.utils import get_weight_norm import warnings class ABEL(optim.lr_scheduler._LRScheduler): """ Automatic, Bouncing into Equilibration Learning rate scheduler. Args: optimizer (torch.optim.Optimizer): torch based optimizer decay (floa...
38.493671
184
0.609997
4bb3c7edcd9b72b5decdeda7fa67bd102f0ecf0d
2,004
py
Python
steamstoreprice/steamstoreprice.py
Mirio/steamstoreprice
0372ed6c63e2b5cdb4b37bc5ae7518c7f9f4950b
[ "BSD-2-Clause" ]
null
null
null
steamstoreprice/steamstoreprice.py
Mirio/steamstoreprice
0372ed6c63e2b5cdb4b37bc5ae7518c7f9f4950b
[ "BSD-2-Clause" ]
null
null
null
steamstoreprice/steamstoreprice.py
Mirio/steamstoreprice
0372ed6c63e2b5cdb4b37bc5ae7518c7f9f4950b
[ "BSD-2-Clause" ]
null
null
null
from steamstoreprice.exception import UrlNotSteam, PageNotFound, RequestGenericError from bs4 import BeautifulSoup import requests class SteamStorePrice: def normalizeurl(self, url): """ clean the url from referal and other stuff :param url(string): amazon url :return: string(ur...
30.363636
111
0.602794
375dc74c3bd654cdd3021d5bc3d3738de8013041
5,945
py
Python
qa/rpc-tests/prioritise_transaction.py
Ankh-Trust/electrum-core
360efcd3d6907e342608e3d2dc7628d6be639619
[ "MIT" ]
2
2019-10-31T12:02:24.000Z
2019-11-09T11:08:03.000Z
qa/rpc-tests/prioritise_transaction.py
Ankh-Trust/electrum-core
360efcd3d6907e342608e3d2dc7628d6be639619
[ "MIT" ]
null
null
null
qa/rpc-tests/prioritise_transaction.py
Ankh-Trust/electrum-core
360efcd3d6907e342608e3d2dc7628d6be639619
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 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 PrioritiseTransaction code # from test_framework.test_framework import ElectrumTestFramework fr...
41.284722
128
0.643734
bfda1045087daad29ef57a69456567a403486160
3,026
py
Python
custom/hex_0x.py
jfcherng-sublime/ST-ColorHelper
b717bd82ec8325517ba1d8fd5ab0fc7937e56b38
[ "MIT" ]
null
null
null
custom/hex_0x.py
jfcherng-sublime/ST-ColorHelper
b717bd82ec8325517ba1d8fd5ab0fc7937e56b38
[ "MIT" ]
null
null
null
custom/hex_0x.py
jfcherng-sublime/ST-ColorHelper
b717bd82ec8325517ba1d8fd5ab0fc7937e56b38
[ "MIT" ]
null
null
null
"""Custon color that looks for colors of format `#RRGGBBAA` as `#AARRGGBB`.""" from ..lib.coloraide import Color from ..lib.coloraide.spaces.srgb.css import SRGB from ..lib.coloraide.spaces import _parse from ..lib.coloraide import util import copy import re def norm_hex_channel(string): """Normalize the hex stri...
33.622222
100
0.582287
207b6a519a3bd7326b4c350bc59c3e3644d275f0
1,835
py
Python
src/client_response.py
mtn/raft
60be5c7c32fa8d9331e74f9d5ff06deb5e4e5523
[ "MIT" ]
null
null
null
src/client_response.py
mtn/raft
60be5c7c32fa8d9331e74f9d5ff06deb5e4e5523
[ "MIT" ]
1
2021-06-01T22:21:44.000Z
2021-06-01T22:21:44.000Z
src/client_response.py
mtn/raft
60be5c7c32fa8d9331e74f9d5ff06deb5e4e5523
[ "MIT" ]
null
null
null
"Responses that go the client (and thus have no dest field)" from message import Message # pylint: disable=too-few-public-methods # pylint: disable=too-many-arguments # pylint: disable=missing-docstring class ClientResponse(Message): def __init__(self, src, req_id): Message.__init__(self, src, None) ...
26.214286
83
0.618529
9083b51c2f7f113855a0b587233198c6c194ea9c
3,869
py
Python
vortexfitting/output.py
guilindner/VortexFitting
97081a7a27497e77e3244e47353a4281e5f83a77
[ "MIT" ]
13
2018-06-19T17:34:09.000Z
2021-09-28T15:11:25.000Z
vortexfitting/output.py
ElsevierSoftwareX/SOFTX-D-20-00015
9a7d8d4c38114147dc42ddba90290eef0735b1e3
[ "MIT" ]
4
2018-05-16T15:10:13.000Z
2021-08-06T07:09:01.000Z
vortexfitting/output.py
guilindner/VortexFitting
97081a7a27497e77e3244e47353a4281e5f83a77
[ "MIT" ]
8
2017-07-23T10:33:32.000Z
2020-10-08T14:57:02.000Z
#!/usr/bin/env/ python3 """ Create an output file for the detected vortices, with tecplot format """ import os import numpy as np def create(output_directory, args): """ Create an output file :param output_directory: directory hosting the file vortices.dat :type output_directory: str :param args...
41.159574
120
0.653657
2b4572b7945b1b36200d9a7c1f30df56949329e0
240
py
Python
resilient-sdk/tests/test_cmds/ext/test_ext_package.py
lmahoney1/resilient-python-api
ae7db374e6e79a03e555c3b9ff3c723c3314f673
[ "MIT" ]
null
null
null
resilient-sdk/tests/test_cmds/ext/test_ext_package.py
lmahoney1/resilient-python-api
ae7db374e6e79a03e555c3b9ff3c723c3314f673
[ "MIT" ]
null
null
null
resilient-sdk/tests/test_cmds/ext/test_ext_package.py
lmahoney1/resilient-python-api
ae7db374e6e79a03e555c3b9ff3c723c3314f673
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved. from resilient_sdk.cmds import CmdExtPackage def test_setup(): # TODO pass def test_execute_command(): # TODO pass
16
58
0.6625
244deacaf6a0417098af21a014b9f0b0fe6be847
1,159
py
Python
ProjectApplication/project_core/migrations/0131_add_postal_address.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/project_core/migrations/0131_add_postal_address.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/project_core/migrations/0131_add_postal_address.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 3.0.8 on 2020-07-30 14:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('project_core', '0130_postaladdress'), ] operations = [ migrations.AddField( model_name='histori...
38.633333
249
0.660915
efa0781448a789879bb59777996a05c086258df6
872
py
Python
instagramHome/migrations/0005_likes.py
philip-bbaale/InstagramClone
9f2f219e167224585e6681f8aa00f1f5b0d3ecb9
[ "MIT" ]
1
2020-06-06T09:35:53.000Z
2020-06-06T09:35:53.000Z
instagramHome/migrations/0005_likes.py
philip-bbaale/InstagramClone
9f2f219e167224585e6681f8aa00f1f5b0d3ecb9
[ "MIT" ]
4
2021-06-08T21:40:44.000Z
2022-01-13T02:48:45.000Z
instagramHome/migrations/0005_likes.py
philip-bbaale/InstagramClone
9f2f219e167224585e6681f8aa00f1f5b0d3ecb9
[ "MIT" ]
1
2020-06-03T15:08:04.000Z
2020-06-03T15:08:04.000Z
# Generated by Django 3.0.6 on 2020-06-01 05:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('instagramHome', '0004_de...
33.538462
120
0.641055
9a67f6014d3e1581dd7ba0c56ed2a3ec123a0b4d
164
py
Python
vizdoomaze/envs/vizdoomazethree11.py
fanyuzeng/Vizdoomaze
5b444f2d861c908c4d96ae374bcce660d364f22e
[ "MIT" ]
3
2020-09-25T16:00:49.000Z
2020-10-29T10:32:30.000Z
vizdoomaze/envs/vizdoomazethree11.py
fanyuzeng/Vizdoomaze
5b444f2d861c908c4d96ae374bcce660d364f22e
[ "MIT" ]
null
null
null
vizdoomaze/envs/vizdoomazethree11.py
fanyuzeng/Vizdoomaze
5b444f2d861c908c4d96ae374bcce660d364f22e
[ "MIT" ]
1
2021-12-17T07:50:47.000Z
2021-12-17T07:50:47.000Z
from vizdoomaze.envs.vizdoomenv import VizdoomEnv class vizdoomazeThree11(VizdoomEnv): def __init__(self): super(vizdoomazeThree11, self).__init__(64)
27.333333
51
0.77439
b2832a1c020573eb0873fe13c5565de2e12b079b
5,721
py
Python
hail_scripts/elasticsearch/elasticsearch_client_v7.py
macarthur-lab/hail-elasticsearch-pipelines
7082681fd125e4f23a512aeff49853c5fc0f3136
[ "MIT" ]
15
2017-11-22T14:48:04.000Z
2020-10-05T18:22:24.000Z
hail_scripts/elasticsearch/elasticsearch_client_v7.py
macarthur-lab/hail-elasticsearch-pipelines
7082681fd125e4f23a512aeff49853c5fc0f3136
[ "MIT" ]
86
2017-12-14T23:45:29.000Z
2020-10-13T18:15:54.000Z
hail_scripts/elasticsearch/elasticsearch_client_v7.py
macarthur-lab/hail-elasticsearch-pipelines
7082681fd125e4f23a512aeff49853c5fc0f3136
[ "MIT" ]
7
2019-01-29T09:08:10.000Z
2020-02-25T16:22:57.000Z
import datetime import inspect import logging import time from pprint import pformat try: import elasticsearch except ImportError: import os os.system("pip install elasticsearch==7.9.1") import elasticsearch handlers = set(logging.root.handlers) logging.root.handlers = list(handlers) logger = loggin...
38.655405
118
0.637476
d79af0cded454b6a691d5d96a160e7a90a9cef8b
4,377
py
Python
tests/unit/dataactvalidator/test_c5_award_financial_1.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_c5_award_financial_1.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_c5_award_financial_1.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
from tests.unit.dataactcore.factories.staging import AwardFinancialFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns from decimal import Decimal _FILE = 'c5_award_financial_1' def test_column_headers(database): expected_subset = {'row_number', 'gross_outlay_amount_by_awa_cpe',...
61.647887
120
0.604981
09ed6ea39e4d99c712993a8f39f9ce8f992c67fc
1,996
py
Python
util/loss_and_optim.py
Lornatang/tf-gans
8be24886ce42ba98dfd9429fd3c594a756bf46bf
[ "MIT" ]
5
2020-02-13T23:19:26.000Z
2021-07-12T14:39:32.000Z
util/loss_and_optim.py
Lornatang/tf-dcgan
eedeb8d3ca8d038a89324773e2ab9f57f3977d59
[ "MIT" ]
1
2021-03-29T03:42:19.000Z
2021-03-29T03:42:19.000Z
util/loss_and_optim.py
Lornatang/tf-dcgan
eedeb8d3ca8d038a89324773e2ab9f57f3977d59
[ "MIT" ]
3
2019-08-18T07:23:16.000Z
2020-02-10T16:00:24.000Z
# Copyright 2019 ChangyuLiu Authors. All Rights Reserved. # # Licensed under the MIT License. # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://opensource.org/licenses/MIT # ==========================================================...
28.514286
119
0.708417
98af16983c48965399f2440878f50f2fbd285cd5
2,253
py
Python
perspective.py
Jessica001cheng/CarND-Advanced-Lane-Lines
23bb10899473507a5e1d2a876717e0e466579993
[ "MIT" ]
null
null
null
perspective.py
Jessica001cheng/CarND-Advanced-Lane-Lines
23bb10899473507a5e1d2a876717e0e466579993
[ "MIT" ]
null
null
null
perspective.py
Jessica001cheng/CarND-Advanced-Lane-Lines
23bb10899473507a5e1d2a876717e0e466579993
[ "MIT" ]
null
null
null
import numpy as np import cv2 import glob import matplotlib.pyplot as plt import pickle from helper import showImages, showSidebySide from camera_calibrate import undistortImages cameraCalibration = pickle.load( open('./pickled_data/camera_calibration.p', 'rb' ) ) mtx, dist = map(cameraCalibration.get, ('mtx', 'dist')...
29.644737
93
0.658677
40b14fccf59c974e6a989dbcd09bf348719103cb
5,765
py
Python
rvpy/gamma.py
TimothyKBook/distributions
301fd61df894d4b300176e287bf9e725378c38eb
[ "MIT" ]
1
2018-06-27T17:22:56.000Z
2018-06-27T17:22:56.000Z
rvpy/gamma.py
TimothyKBook/distributions
301fd61df894d4b300176e287bf9e725378c38eb
[ "MIT" ]
null
null
null
rvpy/gamma.py
TimothyKBook/distributions
301fd61df894d4b300176e287bf9e725378c38eb
[ "MIT" ]
1
2018-06-12T13:38:25.000Z
2018-06-12T13:38:25.000Z
import numpy as np from scipy.stats import gamma from . import distribution, laplace, weibull class Gamma(distribution.Distribution): """ Gamma Distribution using the following parameterization: f(x | alpha, beta) = 1 / (beta**alpha * Gamma(alpha)) * x**(alpha - 1) * exp(-x / beta) Parameters ---...
27.193396
103
0.569124
86f723761740ead70b1f780ed4f7d2ca5667237c
2,341
py
Python
tree_intersection/test_tree_intesection.py
ravewillow6383/data-structures-and-algorithms-python
98533ee241a3ae452dab1ecb87aab39742005e35
[ "MIT" ]
null
null
null
tree_intersection/test_tree_intesection.py
ravewillow6383/data-structures-and-algorithms-python
98533ee241a3ae452dab1ecb87aab39742005e35
[ "MIT" ]
null
null
null
tree_intersection/test_tree_intesection.py
ravewillow6383/data-structures-and-algorithms-python
98533ee241a3ae452dab1ecb87aab39742005e35
[ "MIT" ]
null
null
null
from tree_intersection import tree_intersection from binary_tree import BinaryTree, Node import pytest @pytest.fixture() def tree_one(): one = Node(1) two = Node(2) three = Node(3) four = Node(4) five = Node(5) six = Node(6) seven = Node(7) eight = Node(8) nine = Node(9) ten = N...
21.675926
74
0.628364
b463822025a9c63fbb6ab4a078582b5537fdd1f7
21,883
py
Python
calibrate.py
Algomorph/cvcalib
4ed638ea523b6d1059556a135576c7afa3a4b07f
[ "Apache-2.0" ]
28
2016-07-15T09:03:57.000Z
2022-02-07T11:13:26.000Z
calibrate.py
Algomorph/calib_video_opencv
4ed638ea523b6d1059556a135576c7afa3a4b07f
[ "Apache-2.0" ]
2
2017-04-19T18:20:07.000Z
2018-09-26T13:57:29.000Z
calibrate.py
Algomorph/calib_video_opencv
4ed638ea523b6d1059556a135576c7afa3a4b07f
[ "Apache-2.0" ]
10
2016-12-31T00:07:12.000Z
2022-03-10T21:49:25.000Z
#!/usr/bin/python3 """ @author: Gregory Kramida @licence: Apache v2 Copyright 2016 Gregory Kramida 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 U...
57.13577
120
0.567153
2a0163b9a58fca512d611a5b31d559f8465f9b0c
9,514
py
Python
src/tools/data_features.py
stembl/vibproc
2588ad7fad5309a0a56fe5ea3d0a0f4affd10911
[ "MIT" ]
null
null
null
src/tools/data_features.py
stembl/vibproc
2588ad7fad5309a0a56fe5ea3d0a0f4affd10911
[ "MIT" ]
null
null
null
src/tools/data_features.py
stembl/vibproc
2588ad7fad5309a0a56fe5ea3d0a0f4affd10911
[ "MIT" ]
null
null
null
## Dataset Features # Calculate features of the dataset that will allow it to be compared with other datasets. # Peaks ~ the maximum G value in each event across all rows in each column. # Mean ~ the average G value in each event across all rows in each column. # 3Sig_max/min ~ The max and min value 3 sigma for eac...
36.174905
130
0.5926
4464fa9d17f624ff80d60ee25a6650de5efa6e18
1,006
py
Python
xbots/ultrabot_config.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
xbots/ultrabot_config.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
xbots/ultrabot_config.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
# ultrabot # # _'_'_ UXfm # ++++++++++++++ # _/ + + \_ # UXfl _/ + + \_ UXfr # / + LMP RMP + \ # + __| |__ + # + | | + # + | | + # _|+...
18.62963
79
0.336978
2f057265fe0bda73bab003446636e8db827b4af8
2,197
py
Python
docs/conf.py
e-Lisae/cheesyutils
75e3d40d4456f2947e6b5130328d2cacd42b9e31
[ "MIT" ]
null
null
null
docs/conf.py
e-Lisae/cheesyutils
75e3d40d4456f2947e6b5130328d2cacd42b9e31
[ "MIT" ]
5
2021-05-07T02:15:39.000Z
2022-03-04T02:25:13.000Z
docs/conf.py
e-Lisae/cheesyutils
75e3d40d4456f2947e6b5130328d2cacd42b9e31
[ "MIT" ]
2
2021-04-10T23:39:34.000Z
2021-07-18T19:35:19.000Z
# 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...
33.287879
99
0.660446
e3a1bc9f60755541165b9f40e6986931f41b199d
6,392
py
Python
sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/pycode/nodes.py
YYTVicky/kafka
b0f3eb276fa034b215570cd4f837851d9fb9166a
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/pycode/nodes.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
sdks/python/.tox/docs/lib/python2.7/site-packages/sphinx/pycode/nodes.py
axbaretto/presto
f137d2709db42b5c3e4d43a631832a8f74853065
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.000Z
# -*- coding: utf-8 -*- """ sphinx.pycode.nodes ~~~~~~~~~~~~~~~~~~~ Parse tree node implementations. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ class BaseNode(object): """ Node superclass for both terminal and nonterminal ...
30.583732
77
0.573529
744d81c50901148cbf8f8867f4371c17357fa08d
7,089
py
Python
examples/forces_and_energies/training_pytorch.py
Iximiel/dscribe
1dd845cb918a244714f835023bdc82d95719eef1
[ "Apache-2.0" ]
null
null
null
examples/forces_and_energies/training_pytorch.py
Iximiel/dscribe
1dd845cb918a244714f835023bdc82d95719eef1
[ "Apache-2.0" ]
null
null
null
examples/forces_and_energies/training_pytorch.py
Iximiel/dscribe
1dd845cb918a244714f835023bdc82d95719eef1
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split torch.manual_seed(7) # Load the dataset D_numpy = np.load("D.npy")[:, 0, :] # We only have one SOAP center n_samples, n_features = D_numpy.shape E_numpy = np.array([np.load("E.npy")])....
36.168367
102
0.715051
7877a85fa9eb35b5950d83da9d57e20b44c87f78
15,866
py
Python
src/tests/test_cli.py
mplattner/evengsdk
b178eae594a6436b0866659d01e65ac68ffadf31
[ "MIT" ]
null
null
null
src/tests/test_cli.py
mplattner/evengsdk
b178eae594a6436b0866659d01e65ac68ffadf31
[ "MIT" ]
null
null
null
src/tests/test_cli.py
mplattner/evengsdk
b178eae594a6436b0866659d01e65ac68ffadf31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import pytest from click.testing import CliRunner, Result from evengsdk.cli.cli import main as cli from evengsdk.cli.version import __version__ from evengsdk.exceptions import EvengHTTPError LAB_TO_EDIT = {"name": "lab_to_edit", "path": "/"} LAB_TO_CREATE = {"name": "test lab1", "pa...
35.257778
86
0.597378
46fc52701acc365808b0706545b6ecf88acea217
2,707
py
Python
scripts/pub_demand.py
Fingerling42/frontiers-vessel-code
5a8fe921d63ae3961a734ca844d074572dc89746
[ "BSD-3-Clause" ]
null
null
null
scripts/pub_demand.py
Fingerling42/frontiers-vessel-code
5a8fe921d63ae3961a734ca844d074572dc89746
[ "BSD-3-Clause" ]
null
null
null
scripts/pub_demand.py
Fingerling42/frontiers-vessel-code
5a8fe921d63ae3961a734ca844d074572dc89746
[ "BSD-3-Clause" ]
1
2020-04-12T15:10:42.000Z
2020-04-12T15:10:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' pub_demand.py: service file to automate demand publishing A provider in Robonomics is looking for corresponding demand and offer messages. To launch the whole scenario we must publish a demand message. From the agent's side an offer message will be published ''' # S...
34.265823
102
0.741042
4344a2e6705a9f4ab54a1bf82b3ffe121974c2fd
2,549
py
Python
andes/formats/txt.py
rwl/Andes
6818dcc86bd7e1a5028b5be1deee3d6b4171c540
[ "Apache-2.0" ]
1
2018-01-11T22:58:17.000Z
2018-01-11T22:58:17.000Z
andes/formats/txt.py
rwl/Andes
6818dcc86bd7e1a5028b5be1deee3d6b4171c540
[ "Apache-2.0" ]
null
null
null
andes/formats/txt.py
rwl/Andes
6818dcc86bd7e1a5028b5be1deee3d6b4171c540
[ "Apache-2.0" ]
null
null
null
from andes.utils.tab import simpletab from cvxopt import matrix def format_newline(): return '\n' def format_title(item): return item def format_item(item, val): return '{:20s} {:s}'.format(item, str(val)) def format_table(header, data, title=None): # fmt = ".4g" # return tabulate(data, head...
28.965909
79
0.443703
933b1e14acf06dabbc8c28aa4e78dff874c4c360
789
py
Python
examples/prefix.py
aysobay212/discord-super-utils
21d97273f330ec5458eb1068f8b6ab4f4a59a713
[ "MIT" ]
null
null
null
examples/prefix.py
aysobay212/discord-super-utils
21d97273f330ec5458eb1068f8b6ab4f4a59a713
[ "MIT" ]
null
null
null
examples/prefix.py
aysobay212/discord-super-utils
21d97273f330ec5458eb1068f8b6ab4f4a59a713
[ "MIT" ]
null
null
null
from discord.ext import commands import discordSuperUtils bot = commands.Bot(command_prefix="-") PrefixManager = discordSuperUtils.PrefixManager(bot, default_prefix="-", mentioned=True) @bot.command() async def prefix(ctx, new_prefix): new_prefix = new_prefix[:3] # I recommend capping the prefix length to save...
27.206897
89
0.741445
93d356b6e0ca0e1f42b973156f978b2cd7288cb2
166
py
Python
articles/gsoc/final-post/__article__.py
jakelishman/binhbar
c358acdf426062174176b3700ebd9bd7f368c9cf
[ "MIT" ]
null
null
null
articles/gsoc/final-post/__article__.py
jakelishman/binhbar
c358acdf426062174176b3700ebd9bd7f368c9cf
[ "MIT" ]
null
null
null
articles/gsoc/final-post/__article__.py
jakelishman/binhbar
c358acdf426062174176b3700ebd9bd7f368c9cf
[ "MIT" ]
null
null
null
{ "id": "ffb8a3", "title": "QuTiP data layer and the end of Google Summer of Code 2020", "date": "2020-08-28", "tags": ["QuTiP", "GSoC", "python"], }
23.714286
74
0.548193
3da24df465fa3c8a135c6a985e5f886701493313
1,892
py
Python
test/selenium/src/lib/page/widget/page_mixins.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/selenium/src/lib/page/widget/page_mixins.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/selenium/src/lib/page/widget/page_mixins.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Mixins for info page objects""" # pylint: disable=too-few-public-methods from lib import base from lib.element import page_elements class WithPageElements(base.WithBrowser): """A mixin for page elemen...
33.192982
78
0.752114
c4ba2a014e59b48a6f302bd79125d0707eda54d2
2,221
py
Python
day-11/octopus.py
PeterPrice06/advent-of-code-2021
d1af22ee2e4778372e626debca1ae9dc7f2ad47c
[ "MIT" ]
null
null
null
day-11/octopus.py
PeterPrice06/advent-of-code-2021
d1af22ee2e4778372e626debca1ae9dc7f2ad47c
[ "MIT" ]
null
null
null
day-11/octopus.py
PeterPrice06/advent-of-code-2021
d1af22ee2e4778372e626debca1ae9dc7f2ad47c
[ "MIT" ]
null
null
null
from typing import List, Tuple class DumboOctopi(): def __init__(self, line_strs: List[str]) -> None: self.octopi_energy = [[int(char) for char in line_strs] for line_strs in line_strs] def tick(self) -> int: flashes = 0 # self.increase_energy() flashes = self.increase_energy_...
37.016667
106
0.561459
85315c0bf7bf9ccc7270acd6abb867f00126f666
264
py
Python
seguridad/helpers.py
luisfarfan/cpv_seguridad
3b499057251894b27a13c64efac38c347d5796b0
[ "MIT" ]
1
2016-09-20T22:45:06.000Z
2016-09-20T22:45:06.000Z
seguridad/helpers.py
luisfarfan/cpv_seguridad
3b499057251894b27a13c64efac38c347d5796b0
[ "MIT" ]
null
null
null
seguridad/helpers.py
luisfarfan/cpv_seguridad
3b499057251894b27a13c64efac38c347d5796b0
[ "MIT" ]
null
null
null
from datetime import datetime def json_serial(obj): """JSON serializer for objects not serializable by default json code""" if isinstance(obj, datetime): serial = obj.isoformat() return serial raise TypeError("Type not serializable")
26.4
75
0.700758
8147fdf7bb6b61270daf60177fa4b41e2b04d3af
5,089
py
Python
tests/unit/test_analyzer_scores.py
LaudateCorpus1/quakestats
d4e44d593e6c7334628d34b5ec648ade5976003e
[ "MIT" ]
21
2018-04-24T09:33:01.000Z
2022-03-05T10:53:45.000Z
tests/unit/test_analyzer_scores.py
brabiega/quakestats
1628720350a1e4e40ebebdb7988785663892f0be
[ "MIT" ]
42
2018-04-13T18:09:19.000Z
2021-08-05T20:23:22.000Z
tests/unit/test_analyzer_scores.py
LaudateCorpus1/quakestats
d4e44d593e6c7334628d34b5ec648ade5976003e
[ "MIT" ]
8
2018-06-12T18:07:39.000Z
2021-08-28T02:26:17.000Z
from quakestats.dataprovider.analyzer.events import Event from quakestats.dataprovider.analyzer.scores import PlayerScores def gen_switch_team(time, player_id, old_team, new_team): return Event.from_dict({ 'TYPE': 'PLAYER_SWITCHTEAM', 'DATA': { 'TIME': time, 'KILLER': { ...
31.80625
76
0.531342
dee63077fe49dcabece3299c87d3966ca2089b1b
656
py
Python
src/unicon/plugins/dell/settings.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
18
2019-11-23T23:14:53.000Z
2022-01-10T01:17:08.000Z
src/unicon/plugins/dell/settings.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
12
2020-11-09T20:39:25.000Z
2022-03-22T12:46:59.000Z
src/unicon/plugins/dell/settings.py
TestingBytes/unicon.plugins
0600956d805deb4fd790aa3ef591c5d659e85de1
[ "Apache-2.0" ]
32
2020-02-12T15:42:22.000Z
2022-03-15T16:42:10.000Z
''' Author: Knox Hutchinson Contact: https://dataknox.dev https://twitter.com/data_knox https://youtube.com/c/dataknox Contents largely inspired by sample Unicon repo: https://github.com/CiscoDevNet/pyats-plugin-examples/tree/master/unicon_plugin_example/src/unicon_plugin_example ''' from unicon.plugins.generic.settin...
31.238095
112
0.751524
6e79d4555637b5d0aa4465c0826004509f35422c
1,048
py
Python
tests/formatters/winrestore.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
27
2019-04-05T12:01:49.000Z
2022-02-08T02:26:25.000Z
tests/formatters/winrestore.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
null
null
null
tests/formatters/winrestore.py
berggren/plaso
2658c80c5076f97a9a27272e73997bde8c39e875
[ "Apache-2.0" ]
8
2019-11-28T08:06:34.000Z
2020-08-29T13:53:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Windows Restore Point (rp.log) file event formatter.""" from __future__ import unicode_literals import unittest from plaso.formatters import winrestore from tests.formatters import test_lib class RestorePointInfoFormatterTest(test_lib.EventFormatterT...
26.871795
72
0.754771
45f51eef2fc4253b1259923930160db74a331b40
7,819
py
Python
tests/regressiontests/forms/tests/regressions.py
kix/django
5262a288df07daa050a0e17669c3f103f47a8640
[ "BSD-3-Clause" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.5/tests/regressiontests/forms/tests/regressions.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.5/tests/regressiontests/forms/tests/regressions.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from warnings import catch_warnings from django.forms import * from django.test import TestCase from django.utils.translation import ugettext_lazy, override from regressiontests.forms.models import Cheese class FormsRegressionsTestCase(TestCase): ...
51.781457
641
0.628213
d282f5d277f915751b7b8aa8f57a75c0086f76c0
32,983
py
Python
deephistopath/wsi/slide.py
revsearchproject/deep-histopath
03ad6ce172e21fcb3e0f572f8b46031fbcc31b4a
[ "Apache-2.0" ]
null
null
null
deephistopath/wsi/slide.py
revsearchproject/deep-histopath
03ad6ce172e21fcb3e0f572f8b46031fbcc31b4a
[ "Apache-2.0" ]
null
null
null
deephistopath/wsi/slide.py
revsearchproject/deep-histopath
03ad6ce172e21fcb3e0f572f8b46031fbcc31b4a
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------ # # 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...
32.08463
120
0.711912
dd13119d988245579ae658a48bad6de144079596
1,718
py
Python
plugin.video.fanfilm/resources/lib/resolvers/mailru.py
mrknow/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
plugin.video.fanfilm/resources/lib/resolvers/mailru.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
plugin.video.fanfilm/resources/lib/resolvers/mailru.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
# -*- coding: utf-8 -*- ''' FanFilm Add-on Copyright (C) 2015 lambda This program 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 ...
33.038462
128
0.590221
8092c70f3bae9b569cae61f3e3c295c5bd4e5cd6
15,963
py
Python
AI_detection.py
wb666greene/SecurityDVR_AI_addon
1e3aa925ccd0294b0ea76d1733cd93eab9b37068
[ "MIT" ]
9
2018-05-29T19:27:55.000Z
2021-09-28T08:14:01.000Z
AI_detection.py
wb666greene/SecurityDVR_AI_addon
1e3aa925ccd0294b0ea76d1733cd93eab9b37068
[ "MIT" ]
1
2018-05-31T20:54:51.000Z
2019-03-26T16:55:54.000Z
AI_detection.py
wb666greene/SecurityDVR_AI_addon
1e3aa925ccd0294b0ea76d1733cd93eab9b37068
[ "MIT" ]
3
2018-05-31T07:31:36.000Z
2019-12-26T13:55:02.000Z
#!/usr/bin/env python # AI_detection.py derived from: ncs_realtime_objectdetection.py 7May18wbk # Original code and tutorial: # https://www.pyimagesearch.com/2018/02/19/real-time-object-detection-on-the-raspberry-pi-with-the-movidius-ncs/ # Modified to run AI object detection on image sequences instead of PiCam video...
42.796247
152
0.727996
add78505b6e86d6ca4cedf94807cc0edee6309f3
27,742
py
Python
allennlp/commands/train.py
parus-proj/allennlp
42f6e030f7287d6521bbc3c883a8cbfbf15f806a
[ "Apache-2.0" ]
null
null
null
allennlp/commands/train.py
parus-proj/allennlp
42f6e030f7287d6521bbc3c883a8cbfbf15f806a
[ "Apache-2.0" ]
null
null
null
allennlp/commands/train.py
parus-proj/allennlp
42f6e030f7287d6521bbc3c883a8cbfbf15f806a
[ "Apache-2.0" ]
1
2021-02-04T08:42:23.000Z
2021-02-04T08:42:23.000Z
""" The ``train`` subcommand can be used to train a model. It requires a configuration file and a directory in which to write the results. .. code-block:: bash $ allennlp train --help usage: allennlp train [-h] -s SERIALIZATION_DIR [-r] [-f] [-o OVERRIDES] [--file-friendly-logging] [-...
42.811728
102
0.657271
ab70296e9ae48542f1c5be3a2c61e9349f61d2a3
2,752
py
Python
tests/test_efs/test_access_point_tagging.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
tests/test_efs/test_access_point_tagging.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
tests/test_efs/test_access_point_tagging.py
symroe/moto
4e106995af6f2820273528fca8a4e9ee288690a5
[ "Apache-2.0" ]
null
null
null
from os import environ import boto3 import pytest from moto import mock_efs @pytest.fixture(scope="function") def aws_credentials(): """Mocked AWS Credentials for moto.""" environ["AWS_ACCESS_KEY_ID"] = "testing" environ["AWS_SECRET_ACCESS_KEY"] = "testing" environ["AWS_SECURITY_TOKEN"] = "testing" ...
28.968421
84
0.655887
82d447ac9801571b871da31b8c53c5660bdc5e03
1,126
py
Python
resources/filtros.py
brocchirodrigo/CURSO_REST_FLASK
928ce11ceaff821749ced93fc51eae002b0619be
[ "MIT" ]
null
null
null
resources/filtros.py
brocchirodrigo/CURSO_REST_FLASK
928ce11ceaff821749ced93fc51eae002b0619be
[ "MIT" ]
null
null
null
resources/filtros.py
brocchirodrigo/CURSO_REST_FLASK
928ce11ceaff821749ced93fc51eae002b0619be
[ "MIT" ]
null
null
null
def normalize_path_params(cidade=None, estrelas_min = 0, estrelas_max = 5, diarias_min = 0, diarias_max = 10000, limit = 50, offset = 0, **dados): if cidade: ...
35.1875
47
0.493783
23151ec4748752177dafea366a703ab9f9c4ff74
3,592
py
Python
basic/string1.py
Riverfount/estudos
03e5339de23b9fc49a2e26174d0241e923adb580
[ "MIT" ]
null
null
null
basic/string1.py
Riverfount/estudos
03e5339de23b9fc49a2e26174d0241e923adb580
[ "MIT" ]
null
null
null
basic/string1.py
Riverfount/estudos
03e5339de23b9fc49a2e26174d0241e923adb580
[ "MIT" ]
1
2017-03-08T21:46:05.000Z
2017-03-08T21:46:05.000Z
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already se...
31.234783
80
0.658686
7e43bb059623d9bfbbd2a4f154fdd7879f70f61f
262
py
Python
ex13.py
Poethalphyu/python_exercises
c5a02923f3198a7715fb02704e8c2a2c6e3eadf5
[ "MIT" ]
null
null
null
ex13.py
Poethalphyu/python_exercises
c5a02923f3198a7715fb02704e8c2a2c6e3eadf5
[ "MIT" ]
null
null
null
ex13.py
Poethalphyu/python_exercises
c5a02923f3198a7715fb02704e8c2a2c6e3eadf5
[ "MIT" ]
null
null
null
from sys import argv # read the WYSS section for how to run this script, first, second, third = argv print("The script is called:", script) print("Your first variable is:", first) print("Your second variable is:", second) print("Your thid variable is:", third)
29.111111
43
0.732824
4a7886ce39544cc0396b412307f60ac5781e1db9
393
py
Python
examples/recommendation.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
examples/recommendation.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
examples/recommendation.py
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
import numpy as np from cogdl import pipeline data = np.array([[0, 0], [0, 1], [0, 2], [1, 1], [1, 3], [1, 4], [2, 4], [2, 5], [2, 6]]) rec = pipeline("recommendation", model="lightgcn", data=data, max_epoch=10, evaluate_interval=1000, cpu=True) print(rec([0])) rec = pipeline("recommendation", model="lightgcn", datas...
39.3
112
0.651399
f8cd7dd2b1b066729dd1f8eab29c39a2583e6ab0
5,483
py
Python
tests/test_routes.py
BenjaminMichaelis/WSU-EECS-UndergraduateResearch
453e3b978cda7aeb10dddec1d43e769cdb3451f7
[ "MIT" ]
null
null
null
tests/test_routes.py
BenjaminMichaelis/WSU-EECS-UndergraduateResearch
453e3b978cda7aeb10dddec1d43e769cdb3451f7
[ "MIT" ]
1
2021-12-08T21:48:55.000Z
2021-12-08T21:48:55.000Z
tests/test_routes.py
BenjaminMichaelis/WSU-EECS-UndergraduateResearch
453e3b978cda7aeb10dddec1d43e769cdb3451f7
[ "MIT" ]
null
null
null
""" This file contains the functional tests for the routes. These tests use GETs and POSTs to different URLs to check for the proper behavior. Resources: https://flask.palletsprojects.com/en/1.1.x/testing/ https://www.patricksoftwareblog.com/testing-a-flask-application-using-pytest/ """ import os import...
35.147436
205
0.661864
85e4053b5cd4b308e5b63ce64344375f369df220
1,473
py
Python
webots_ros2_tesla/setup.py
harshag37/webots_ros2
08a061e73e3b88d57cc27b662be0f907d8b9f15b
[ "Apache-2.0" ]
1
2021-09-09T13:11:15.000Z
2021-09-09T13:11:15.000Z
webots_ros2_tesla/setup.py
harshag37/webots_ros2
08a061e73e3b88d57cc27b662be0f907d8b9f15b
[ "Apache-2.0" ]
null
null
null
webots_ros2_tesla/setup.py
harshag37/webots_ros2
08a061e73e3b88d57cc27b662be0f907d8b9f15b
[ "Apache-2.0" ]
null
null
null
"""webots_ros2 package setup file.""" from setuptools import setup package_name = 'webots_ros2_tesla' data_files = [] data_files.append(('share/ament_index/resource_index/packages', ['resource/' + package_name])) data_files.append(('share/' + package_name, ['launch/robot_launch.py'])) data_files.append(('share/' + p...
32.733333
94
0.669382
0cf45215ae7530cf7c95237821a6f9303c3afce5
5,503
py
Python
tests/system.py
renovate-bot/python-translate
1ab82aa12ecd4bbb0195e4c39ca476b944cdddbc
[ "Apache-2.0" ]
70
2020-03-03T04:02:23.000Z
2022-03-29T20:09:22.000Z
tests/system.py
renovate-bot/python-translate
1ab82aa12ecd4bbb0195e4c39ca476b944cdddbc
[ "Apache-2.0" ]
130
2020-01-31T20:17:09.000Z
2022-03-24T17:01:21.000Z
tests/system.py
renovate-bot/python-translate
1ab82aa12ecd4bbb0195e4c39ca476b944cdddbc
[ "Apache-2.0" ]
47
2020-01-31T21:25:59.000Z
2022-03-31T20:52:21.000Z
# -*- coding: utf-8 -*- # Copyright 2016 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...
37.951724
88
0.665273
467685564e51beb48e7ff580c7706f7ef65eb98f
13,350
py
Python
congress/synchronizer/policy_rule_synchronizer.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
null
null
null
congress/synchronizer/policy_rule_synchronizer.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
null
null
null
congress/synchronizer/policy_rule_synchronizer.py
mail2nsrajesh/congress
a724dfb59c43a5e88e2b03e714a5f962d6976762
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 NEC Corp. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
44.798658
79
0.546442
cf2b9a838100bd009f2a9928afaefe6424b11199
4,879
py
Python
test/STAvln_tb/test/t_STAvln_tb.py
hnikolov/pihdf
9a0d2add059db1ee90805e2124beff1fb5185fae
[ "MIT" ]
2
2016-09-25T00:08:47.000Z
2016-10-09T10:09:55.000Z
test/STAvln_tb/test/t_STAvln_tb.py
hnikolov/pihdf
9a0d2add059db1ee90805e2124beff1fb5185fae
[ "MIT" ]
null
null
null
test/STAvln_tb/test/t_STAvln_tb.py
hnikolov/pihdf
9a0d2add059db1ee90805e2124beff1fb5185fae
[ "MIT" ]
null
null
null
import myhdl import pihdf from pihdf import Testable import os, sys sys.path.append(os.path.dirname(__file__) + "/../..") from STAvln_tb.STAvln_tb import STAvln_tb class t_STAvln_tb(Testable): '''| | Automatically generated. Do not modify this file. |________''' pihdf.head("T E S T S") pihdf.inf...
37.530769
102
0.556466
5eae8527ec63d61d81be8b0f5582be7cef4cbd81
6,944
py
Python
lib/googlecloudsdk/api_lib/ai/tensorboard_experiments/client.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/api_lib/ai/tensorboard_experiments/client.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/ai/tensorboard_experiments/client.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
39.908046
92
0.751584
6575731d6bf724bf7d4e0dcef7249d963039688c
9,059
py
Python
markdown_it/rules_block/blockquote.py
ExecutableBookProject/markdown-it-py
53084e1ffa82323e37fe2d17a1b53d1dc66e5afd
[ "MIT" ]
12
2020-03-26T08:00:43.000Z
2020-04-23T09:10:36.000Z
markdown_it/rules_block/blockquote.py
sthagen/executablebooks-markdown-it-py
53084e1ffa82323e37fe2d17a1b53d1dc66e5afd
[ "MIT" ]
9
2020-03-25T11:36:16.000Z
2020-04-23T18:07:16.000Z
markdown_it/rules_block/blockquote.py
sthagen/executablebooks-markdown-it-py
53084e1ffa82323e37fe2d17a1b53d1dc66e5afd
[ "MIT" ]
1
2020-04-01T16:12:38.000Z
2020-04-01T16:12:38.000Z
# Block quotes from __future__ import annotations import logging from ..common.utils import isSpace from .state_block import StateBlock LOGGER = logging.getLogger(__name__) def blockquote(state: StateBlock, startLine: int, endLine: int, silent: bool): LOGGER.debug( "entering blockquote: %s, %s, %s, %s...
30.196667
87
0.520035
b1b0fd73c118fe0527e5418fbc61bf5c7893bc9f
3,333
py
Python
sql_to_django/lib.py
rimi-dev/sql_to_orm
ef58cac457182fa8d30c729d15dd3fbc9347f2fc
[ "MIT" ]
1
2021-03-11T11:52:14.000Z
2021-03-11T11:52:14.000Z
sql_to_django/lib.py
rimi-dev/sql_to_orm
ef58cac457182fa8d30c729d15dd3fbc9347f2fc
[ "MIT" ]
8
2020-06-03T06:15:39.000Z
2021-09-22T19:09:18.000Z
sql_to_django/lib.py
rimi-dev/sql_to_orm
ef58cac457182fa8d30c729d15dd3fbc9347f2fc
[ "MIT" ]
null
null
null
import re from common.lib import list_whitespace_remove, list_to_dict class Table: """ Table class Author : rimi Date : 2020. 05. 27 Description : get/set main table, get/set joined tables """ main_named_table = '' main_table = '' joined_table = [] @classmethod def update_...
25.638462
79
0.582658
279d44ff0c86e62b60408df23733f20821a01e47
2,527
py
Python
app/main/forms.py
tianmaxingkonggrant/tianmaflaskblog
aa7e0bcdec4207455456858783f89acec8e3c34e
[ "MIT" ]
1
2016-07-10T02:36:58.000Z
2016-07-10T02:36:58.000Z
app/main/forms.py
tianmaxingkonggrant/tianmaflaskblog
aa7e0bcdec4207455456858783f89acec8e3c34e
[ "MIT" ]
10
2020-03-24T15:35:38.000Z
2022-03-11T23:16:34.000Z
app/main/forms.py
tianmaxingkonggrant/tianmaflaskblog
aa7e0bcdec4207455456858783f89acec8e3c34e
[ "MIT" ]
null
null
null
# coding=utf-8 from flask.ext.wtf import Form from wtforms import StringField, SubmitField, TextAreaField, \ BooleanField, SelectField, FileField from wtforms.validators import DataRequired, Length, Email, Regexp from ..models import Role, User from wtforms import ValidationError from flask.ext.pagedown.fields import ...
37.161765
123
0.708746
860c864190bbd41515d20b173bbed34d5c81ef1d
569
py
Python
src/model_utils.py
niteya-shah/Text-Recognition-using-GRU
97618cf4c439f659c4744336cda0d30bf3e6c045
[ "MIT" ]
null
null
null
src/model_utils.py
niteya-shah/Text-Recognition-using-GRU
97618cf4c439f659c4744336cda0d30bf3e6c045
[ "MIT" ]
null
null
null
src/model_utils.py
niteya-shah/Text-Recognition-using-GRU
97618cf4c439f659c4744336cda0d30bf3e6c045
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf def ctc_loss_func(args): y_pred, labels, input_length, label_length = args y_pred = y_pred[:, 2:, :] input_length = input_length - 2 return tf.keras.backend.ctc_batch_cost(labels, y_pred, input_length, label_length)...
27.095238
77
0.653779
fac2837a1746c9c28b4ccc89b3baa06cabdb7f6a
11,150
py
Python
sdk/python/pulumi_azure_native/network/v20200301/get_virtual_network.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200301/get_virtual_network.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200301/get_virtual_network.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
40.107914
350
0.66852
1070c0d9bb8abba0b74bc476303e820110a387eb
959
py
Python
main.py
jobinrjohnson/QSim
fc2b45229acb82c87b6f50b567611d8d8abd4dd4
[ "Apache-2.0" ]
4
2019-05-03T18:58:37.000Z
2022-03-05T20:22:06.000Z
main.py
jobinrjohnson/QSim
fc2b45229acb82c87b6f50b567611d8d8abd4dd4
[ "Apache-2.0" ]
null
null
null
main.py
jobinrjohnson/QSim
fc2b45229acb82c87b6f50b567611d8d8abd4dd4
[ "Apache-2.0" ]
4
2019-05-06T09:04:35.000Z
2021-11-12T08:04:28.000Z
from flask import Flask, jsonify, request, render_template, make_response import time from subprocess import Popen, PIPE import os app = Flask(__name__, static_folder="web", template_folder="web") def serve_homepage(): return render_template("main.html") def process_post(): code = request.form['code'] ...
21.795455
73
0.656934
7523a15cd7a28d9810304a82c245e0156af6ac1c
2,729
py
Python
ex2/ex2/Regularized-logistic-regression.py
LixiangHan/cs229-assignments
3ed75e9c95b60e8c58a86c5adce3bd7cd4ea74a0
[ "MIT" ]
null
null
null
ex2/ex2/Regularized-logistic-regression.py
LixiangHan/cs229-assignments
3ed75e9c95b60e8c58a86c5adce3bd7cd4ea74a0
[ "MIT" ]
null
null
null
ex2/ex2/Regularized-logistic-regression.py
LixiangHan/cs229-assignments
3ed75e9c95b60e8c58a86c5adce3bd7cd4ea74a0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import scipy.optimize as optimize def feature_map(X): m = len(X) x_1 = X[:, 0][np.newaxis].T x_2 = X[:, 1][np.newaxis].T X = np.concatenate( ( np.ones((m, 1)), x_1, x_2, x_1**2, x_1 *...
23.324786
84
0.474166
d08d6ce921c51ec1611aba399b9391570e04f47a
7,624
py
Python
nws.py
drsjb80/conky
314813c26ae294db7b3d02cb7350e47486d0a979
[ "MIT" ]
null
null
null
nws.py
drsjb80/conky
314813c26ae294db7b3d02cb7350e47486d0a979
[ "MIT" ]
null
null
null
nws.py
drsjb80/conky
314813c26ae294db7b3d02cb7350e47486d0a979
[ "MIT" ]
null
null
null
# vim: ts=4 sw=4 expandtab import io import re import sys import os.path import urllib.request import xml.etree.ElementTree LAYOUT_KEY = 'k-p12h-n14-1' def print_forecast(zipped): ''' Print out all the forecast information in conky format. ''' count = 0 for i in zipped: offset = 100 if count % 2 ...
38.311558
97
0.625787
10bdbdca822a0a8e63f46b1702be606ccf616db9
16,572
py
Python
cynetworkx/classes/tests/historical_tests.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
12
2019-07-23T08:07:53.000Z
2022-03-09T06:13:16.000Z
cynetworkx/classes/tests/historical_tests.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
7
2019-08-30T07:00:00.000Z
2021-12-30T08:02:56.000Z
cynetworkx/classes/tests/historical_tests.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
5
2020-10-10T03:40:32.000Z
2021-11-23T12:28:53.000Z
#!/usr/bin/env python """Original NetworkX graph tests""" from nose.tools import * import cynetworkx as nx from cynetworkx import convert_node_labels_to_integers as cnlti from cynetworkx.testing import * class HistoricalTests(object): def setUp(self): self.null = nx.null_graph() self.P1 = cnlti(n...
38.009174
88
0.505853
ed90ccdf6c76b7adada262e2050fafaa2b6b0030
5,861
py
Python
examples/fixed_resolution.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
2
2017-05-10T08:27:22.000Z
2019-10-05T14:55:00.000Z
examples/fixed_resolution.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
examples/fixed_resolution.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
37.33121
78
0.682136
cac6b816324519f55a75a1952b17d7bd972b5a51
1,676
py
Python
que.py
recall704/what_cms
8cd6c6cd2d61669d175520ae67afb929113f8034
[ "CC0-1.0" ]
3
2016-12-08T02:41:18.000Z
2018-12-04T13:58:09.000Z
que.py
recall704/what_cms
8cd6c6cd2d61669d175520ae67afb929113f8034
[ "CC0-1.0" ]
null
null
null
que.py
recall704/what_cms
8cd6c6cd2d61669d175520ae67afb929113f8034
[ "CC0-1.0" ]
2
2016-12-08T02:41:19.000Z
2019-10-04T14:23:10.000Z
#encoding=utf-8 import threading import os import sys import urllib2 import time from random import randint from libs.WhatcmsColor import * def get_file_list(): file_list = os.listdir(os.getcwd()+os.sep+"dir_has_matched_file_path") return file_list def get_url_status_code(url): req = url...
26.1875
86
0.536396
b94d8c883757056e36b10733893563ceb54f3f60
3,080
py
Python
eval_cifar.py
P2333/Bag-of-Tricks-for-AT
314683adcfe9ea7c7bfbff50007da510b21f56e1
[ "Apache-2.0" ]
192
2020-10-01T16:54:02.000Z
2022-03-29T14:48:36.000Z
eval_cifar.py
P2333/Bag-of-Tricks-for-AT
314683adcfe9ea7c7bfbff50007da510b21f56e1
[ "Apache-2.0" ]
5
2021-01-10T04:25:49.000Z
2021-11-06T14:42:36.000Z
eval_cifar.py
P2333/Bag-of-Tricks-for-AT
314683adcfe9ea7c7bfbff50007da510b21f56e1
[ "Apache-2.0" ]
29
2020-10-02T08:23:17.000Z
2022-02-19T14:24:35.000Z
import argparse import copy import logging import os import time import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from preactresnet import PreActResNet18 from wideresnet import WideResNet from utils_plus import (upper_limit, lower_limit, std, clamp, get_loaders, attack_pgd, ev...
33.11828
119
0.682143
613d7073f4dc3fa65e7f2fd16aa659c2f3301c58
1,905
py
Python
docs/conf.py
cptpcrd/psutil-extra
b14ef19bfbe443aea4009ea49c7a327ed6abd393
[ "MIT" ]
1
2020-07-25T19:53:19.000Z
2020-07-25T19:53:19.000Z
docs/conf.py
cptpcrd/psutil-extra
b14ef19bfbe443aea4009ea49c7a327ed6abd393
[ "MIT" ]
null
null
null
docs/conf.py
cptpcrd/psutil-extra
b14ef19bfbe443aea4009ea49c7a327ed6abd393
[ "MIT" ]
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 import sphinx_rtd_theme # -- Path setup ----------------------------------------------...
34.017857
79
0.665092
dd78d36476f32d818a5ca03c8d8fe5307d0bcbe0
614
py
Python
pyretri/extract/splitter/splitter_impl/identity.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
1,063
2020-04-21T12:42:05.000Z
2022-03-31T06:32:50.000Z
pyretri/extract/splitter/splitter_impl/identity.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
39
2020-05-07T07:24:19.000Z
2022-02-02T23:49:23.000Z
pyretri/extract/splitter/splitter_impl/identity.py
dongan-beta/PyRetri
8756d5d5813a5211b58855373b6c6cd33d7a11f6
[ "Apache-2.0" ]
174
2020-04-26T04:33:11.000Z
2022-03-17T02:58:45.000Z
# -*- coding: utf-8 -*- import torch import numpy as np from ..splitter_base import SplitterBase from ...registry import SPLITTERS from typing import Dict @SPLITTERS.register class Identity(SplitterBase): """ Directly return feature maps without any operations. """ default_hyper_params = dict() ...
21.928571
74
0.648208
7fd6e92e42fba61bec9635d40f3d315721816d88
1,299
py
Python
djangocms_page_meta/migrations/0009_auto_20171212_0944.py
ImaginaryLandscape/djangocms-page-meta
79f45ec3863eed30fd457d2425f9e28ec52f6959
[ "BSD-3-Clause" ]
1
2021-09-13T17:51:15.000Z
2021-09-13T17:51:15.000Z
djangocms_page_meta/migrations/0009_auto_20171212_0944.py
ImaginaryLandscape/djangocms-page-meta
79f45ec3863eed30fd457d2425f9e28ec52f6959
[ "BSD-3-Clause" ]
1
2021-12-10T17:11:43.000Z
2021-12-10T17:11:43.000Z
djangocms_page_meta/migrations/0009_auto_20171212_0944.py
ImaginaryLandscape/djangocms-page-meta
79f45ec3863eed30fd457d2425f9e28ec52f6959
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('djangocms_page_meta', '0008_auto_20160609_0754'), ] operations = [ migrations.AddField( model_name='pagemeta', ...
32.475
112
0.601232
4bccd11f68f2d62b61f24b6aade89e264d2d5d8b
1,322
py
Python
xlsxwriter/test/comparison/test_chart_table01.py
eddiechapman/XlsxWriter
c636117ab30e64e4b7b824c9105595c42887c2c9
[ "BSD-2-Clause-FreeBSD" ]
2,766
2015-01-02T17:36:42.000Z
2022-03-31T09:23:30.000Z
xlsxwriter/test/comparison/test_chart_table01.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
683
2015-01-03T09:55:02.000Z
2022-03-31T07:18:15.000Z
xlsxwriter/test/comparison/test_chart_table01.py
xiaolanmeng86/XlsxWriter
6c3ea23a410e8216eab8f5751e5544ffb444b3da
[ "BSD-2-Clause-FreeBSD" ]
636
2015-01-05T01:57:08.000Z
2022-03-25T18:42:41.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
24.481481
79
0.559758
c8d01eb4225cb0df86c869ccd65334ebc54e2914
1,894
py
Python
tests/test_module_attributes.py
KOLANICH-libs/python-zstandard
53b71dc3f96961564c9c140bf88b0aa118589247
[ "BSD-3-Clause" ]
null
null
null
tests/test_module_attributes.py
KOLANICH-libs/python-zstandard
53b71dc3f96961564c9c140bf88b0aa118589247
[ "BSD-3-Clause" ]
null
null
null
tests/test_module_attributes.py
KOLANICH-libs/python-zstandard
53b71dc3f96961564c9c140bf88b0aa118589247
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import zstandard as zstd from .common import TestCase class TestModuleAttributes(TestCase): def test_version(self): self.assertEqual(zstd.ZSTD_VERSION, (1, 4, 5)) self.assertEqual(zstd.__version__, "0.15.0.dev0") def test_constants(self): sel...
29.138462
64
0.554382
6376b220356238512bc9e633b4e8cb3244632f14
30,258
py
Python
nova/tests/functional/integrated_helpers.py
sapcc/nova
ad71af7307365d6aabd122e140f56df4db1e6182
[ "Apache-2.0" ]
2
2021-10-11T04:56:25.000Z
2022-02-16T08:49:29.000Z
nova/tests/functional/integrated_helpers.py
sapcc/nova
ad71af7307365d6aabd122e140f56df4db1e6182
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/tests/functional/integrated_helpers.py
sapcc/nova
ad71af7307365d6aabd122e140f56df4db1e6182
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# Copyright 2011 Justin Santa Barbara # 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 requ...
42.025
79
0.624661
fd2bf35d376397950bc6cf41079f665494c3ac0a
20,098
py
Python
harmonica/resource.py
Aquaveo/harmonica
da0e1ee2f8cecf965e74af117e77417bf48f55eb
[ "BSD-3-Clause" ]
null
null
null
harmonica/resource.py
Aquaveo/harmonica
da0e1ee2f8cecf965e74af117e77417bf48f55eb
[ "BSD-3-Clause" ]
null
null
null
harmonica/resource.py
Aquaveo/harmonica
da0e1ee2f8cecf965e74af117e77417bf48f55eb
[ "BSD-3-Clause" ]
null
null
null
"""Resource managers for the tidal database models supported in harmonica.""" # 1. Standard python modules from abc import ABCMeta, abstractmethod import os import shutil import urllib.request from zipfile import ZipFile # 2. Third party modules import xarray as xr # 3. Aquaveo modules # 4. Local modules from harmon...
35.889286
119
0.584785
dc8cc06e219e2fb70bcf9991382b75c47362d60a
2,689
py
Python
portal/admin.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
6
2015-04-05T01:28:23.000Z
2022-02-06T17:29:47.000Z
portal/admin.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-01-05T23:07:10.000Z
2022-03-30T17:52:45.000Z
portal/admin.py
dragetd/LambdaCast
a8227d8d19a2fdb1ff1d5e8ad7366d60a1e253f7
[ "BSD-2-Clause" ]
2
2022-02-06T17:29:53.000Z
2022-02-26T17:23:09.000Z
from portal.models import MediaItem, MediaFile, Comment, Channel, Hotfolder, Collection, Submittal from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from django import forms from django.forms.widgets import Select class MediaItemForm(forms.ModelForm): class Meta: wi...
31.635294
129
0.689476
8ab53045a23dfd564f0ae15e5536061d94539885
286
py
Python
mod_async/__init__.py
lgfrbcsgo/wot-async
53cb44246944463e29567f5c7fc6440990252e61
[ "MIT" ]
1
2020-10-13T07:11:22.000Z
2020-10-13T07:11:22.000Z
mod_async/__init__.py
lgfrbcsgo/wot-async
53cb44246944463e29567f5c7fc6440990252e61
[ "MIT" ]
null
null
null
mod_async/__init__.py
lgfrbcsgo/wot-async
53cb44246944463e29567f5c7fc6440990252e61
[ "MIT" ]
null
null
null
from mod_async.async import ( AsyncMutex, AsyncSemaphore, AsyncValue, CallbackCancelled, Return, async_task, auto_run, from_adisp, from_future, run, ) try: from mod_async.bw import TimeoutExpired, delay, timeout except ImportError: pass
15.888889
59
0.678322
0488e4fcf8c51843a3d62fdf711983ce793a98b4
4,260
py
Python
tests/sagemaker/test_multi_node_data_parallel.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
101
2021-12-22T00:03:51.000Z
2022-03-30T07:39:09.000Z
tests/sagemaker/test_multi_node_data_parallel.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
13
2020-10-13T11:41:11.000Z
2022-02-16T14:13:31.000Z
tests/sagemaker/test_multi_node_data_parallel.py
MarcelGM/transformers
aad1d9b6d5c58fd974618ac0aead1c5bd1119467
[ "Apache-2.0" ]
30
2021-04-30T07:11:22.000Z
2022-03-15T19:34:58.000Z
import json import os import subprocess import unittest from ast import literal_eval import pytest from parameterized import parameterized, parameterized_class from . import is_sagemaker_available if is_sagemaker_available(): from sagemaker import Session, TrainingJobAnalytics from sagemaker.huggingface im...
38.378378
118
0.639906
5f55c3a286a8866892185c6846e90c3400ebfa44
19
py
Python
vedh/ved.py
Vedhharale/Mail_Automatin
1af7f6484f95244171a99afef60f20d5dfc2cafc
[ "MIT" ]
null
null
null
vedh/ved.py
Vedhharale/Mail_Automatin
1af7f6484f95244171a99afef60f20d5dfc2cafc
[ "MIT" ]
null
null
null
vedh/ved.py
Vedhharale/Mail_Automatin
1af7f6484f95244171a99afef60f20d5dfc2cafc
[ "MIT" ]
null
null
null
a=1 b=2 print(a+b)
4.75
10
0.578947