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
d939eb5f2c07da1352ba118732687dbbf73d265b
7,376
py
Python
research/deeplab/evaluation/base_metric.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2019-09-11T09:41:11.000Z
2019-09-11T09:41:11.000Z
research/deeplab/evaluation/base_metric.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
research/deeplab/evaluation/base_metric.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 ...
38.416667
81
0.708107
225d661ba64f4cd143cdd4eec8f14e1f68d23e13
7,975
py
Python
mwp_solver/dataloader/abstract_dataloader.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/dataloader/abstract_dataloader.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
mwp_solver/dataloader/abstract_dataloader.py
max-stack/MWP-SS-Metrics
01268f2d6da716596216b04de4197e345b96c219
[ "MIT" ]
null
null
null
# Code Taken from https://github.com/LYH-YF/MWPToolkit # -*- encoding: utf-8 -*- # @Author: Yihuai Lan # @Time: 2021/08/18 11:34:06 # @File: abstract_dataloader.py from utils.enum_type import FixType class AbstractDataLoader(object): """abstract dataloader the base class of dataloader class """ def ...
36.085973
117
0.529906
25bff34c849ffc5bd9b9df7255fc784e3d1dc2e4
10,508
py
Python
tests/platform_tests/daemon/test_pcied.py
congh-nvidia/sonic-mgmt
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
[ "Apache-2.0" ]
null
null
null
tests/platform_tests/daemon/test_pcied.py
congh-nvidia/sonic-mgmt
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
[ "Apache-2.0" ]
null
null
null
tests/platform_tests/daemon/test_pcied.py
congh-nvidia/sonic-mgmt
05094321ed58270ac06d1a0ef575a4ab9ea3ddd6
[ "Apache-2.0" ]
null
null
null
""" Check daemon status inside PMON container. Each daemon status is checked under the conditions below in this script: * Daemon Running Status * Daemon Stop status * Daemon Restart status This script is to cover the test case in the SONiC platform daemon and service test plan: https://github.com/Azure/sonic-mgmt/blo...
46.702222
154
0.736582
c3f5a378b1c04dc3f1deaf8de78f962511f467c4
1,781
py
Python
icevision/engines/fastai/adapters/convert_dataloader_to_fastai.py
bluseking/-first-agnostic-computer-vision-framework-to-offer-a-curated-collection-with-hundreds-of-high-qualit
2d91eacfab7fcaf09c93352f1e7816ccb2c252b9
[ "Apache-2.0" ]
null
null
null
icevision/engines/fastai/adapters/convert_dataloader_to_fastai.py
bluseking/-first-agnostic-computer-vision-framework-to-offer-a-curated-collection-with-hundreds-of-high-qualit
2d91eacfab7fcaf09c93352f1e7816ccb2c252b9
[ "Apache-2.0" ]
null
null
null
icevision/engines/fastai/adapters/convert_dataloader_to_fastai.py
bluseking/-first-agnostic-computer-vision-framework-to-offer-a-curated-collection-with-hundreds-of-high-qualit
2d91eacfab7fcaf09c93352f1e7816ccb2c252b9
[ "Apache-2.0" ]
null
null
null
__all__ = [ "convert_dataloader_to_fastai", "convert_dataloaders_to_fastai", ] from icevision.imports import * from icevision.engines.fastai.imports import * from torch.utils.data import SequentialSampler, RandomSampler def convert_dataloader_to_fastai(dataloader: DataLoader): def raise_error_convert(dat...
31.245614
83
0.696238
5fcaaf571011adc17a340709e912469c8eb9d917
176
py
Python
pyRscript/__init__.py
chairco/pyRscript
e952f450a873de52baa4fe80ed901f0cf990c0b7
[ "MIT" ]
1
2017-12-01T07:56:54.000Z
2017-12-01T07:56:54.000Z
pyRscript/__init__.py
chairco/pyRscript
e952f450a873de52baa4fe80ed901f0cf990c0b7
[ "MIT" ]
null
null
null
pyRscript/__init__.py
chairco/pyRscript
e952f450a873de52baa4fe80ed901f0cf990c0b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = '0.0.2' __author__ = 'chairco' __email__ = 'chairco@gmail.com' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2017, chairco.'
25.142857
46
0.642045
d430f9f465e3f89a2aa70e1e88af99a12ddc7480
841
py
Python
walk/argsextractor.py
willybaer/walk
436522bc1d9b41f46260b190e00a5eea097e40ef
[ "MIT" ]
3
2019-02-05T14:20:35.000Z
2021-12-28T21:43:18.000Z
walk/argsextractor.py
willybaer/walk
436522bc1d9b41f46260b190e00a5eea097e40ef
[ "MIT" ]
null
null
null
walk/argsextractor.py
willybaer/walk
436522bc1d9b41f46260b190e00a5eea097e40ef
[ "MIT" ]
1
2022-01-03T10:09:29.000Z
2022-01-03T10:09:29.000Z
import sys import getopt from functools import reduce def filter_args(argv:list, opts:list): shortopts = list(map(lambda o: o[0], opts)) shortopts_str = reduce(lambda a,b: a + b, shortopts) longopts = list(map(lambda o: o[1], opts)) try: found_opts = getopt.getopt(argv[1:], shortopts_str, lon...
25.484848
69
0.549346
afdd82db4fb829d8f01e137aa0bdcf12821f5c40
12,144
py
Python
test_diffnet.py
proteneer/DiffNet
b45a3d74f6b962aef01fc135270691e97729a94f
[ "MIT" ]
21
2019-07-15T18:24:46.000Z
2022-01-20T02:06:50.000Z
test_diffnet.py
proteneer/DiffNet
b45a3d74f6b962aef01fc135270691e97729a94f
[ "MIT" ]
3
2020-07-08T11:12:13.000Z
2020-10-22T09:29:03.000Z
test_diffnet.py
proteneer/DiffNet
b45a3d74f6b962aef01fc135270691e97729a94f
[ "MIT" ]
6
2019-07-15T18:01:12.000Z
2021-01-22T12:15:23.000Z
import numpy as np import cvxopt from cvxopt import matrix from diffnet import * import netbfe import A_opt def check_optimality( sij, nij, optimality='A', delta=1E-1, ntimes=10): ''' Return True if nij is the optimal. ''' K = sij.size[0] C = covariance( cvxopt.div( nij, sij**2)) fC = dict() ...
32.733154
99
0.550395
438cf54e2fc22168cae622d5b518972257068740
459
py
Python
PythonCurso01/aula78CombinationsPermutationsProduct/exemplo03.py
AlissonAnjos21/Aprendendo
9454d9e53ef9fb8bc61bf481b6592164f5bf8695
[ "MIT" ]
null
null
null
PythonCurso01/aula78CombinationsPermutationsProduct/exemplo03.py
AlissonAnjos21/Aprendendo
9454d9e53ef9fb8bc61bf481b6592164f5bf8695
[ "MIT" ]
null
null
null
PythonCurso01/aula78CombinationsPermutationsProduct/exemplo03.py
AlissonAnjos21/Aprendendo
9454d9e53ef9fb8bc61bf481b6592164f5bf8695
[ "MIT" ]
null
null
null
# Produto - A ordem importa, os valores únicos SÃO repetidos from itertools import product frutas = ['Melão', 'Morango', 'Melancia', 'Mamão', 'Manga'] # Na função product deve se informar o que quer combinar junto com a quantidade que ele deverá repetir os casos idênticos. for conjunto in product(frutas, repeat=2): ...
41.727273
122
0.751634
1c4ffb7b67b38e42b7a5e7ef680cdc8bc8cdc604
4,376
py
Python
examples/basics/scene/volume.py
lcampagn/vispy
28c25d6904d697cde9bb4c37909bc3f934621134
[ "BSD-3-Clause" ]
1
2015-12-03T02:03:50.000Z
2015-12-03T02:03:50.000Z
examples/basics/scene/volume.py
lcampagn/vispy
28c25d6904d697cde9bb4c37909bc3f934621134
[ "BSD-3-Clause" ]
19
2015-06-16T14:33:22.000Z
2015-07-27T21:18:15.000Z
examples/basics/scene/volume.py
astrofrog/vispy
fa5e2eab9bb3d956f87ae68a56e342913e58a305
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2015, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # -------------------------------------------------------------------------...
31.941606
79
0.638483
8fe78b91e03f34d072d5c648698affb266789724
447
py
Python
tests/filehandling.py
mberz/spharpy
e74c30c297dd9ad887e7345c836a515daa6f21f4
[ "MIT" ]
null
null
null
tests/filehandling.py
mberz/spharpy
e74c30c297dd9ad887e7345c836a515daa6f21f4
[ "MIT" ]
null
null
null
tests/filehandling.py
mberz/spharpy
e74c30c297dd9ad887e7345c836a515daa6f21f4
[ "MIT" ]
null
null
null
""" File handling helper functions """ import numpy as np from scipy.io import loadmat def read_2d_matrix_from_csv(filename, dtype='double'): """ Read 2d matrix from csv file """ matrix = np.genfromtxt(open(filename, "rb"), delimiter=",", dtype=dtype) return matrix def read_matrix_from_mat(filenam...
22.35
76
0.675615
f17abfe1310afdb7acc27daeaa23097c9264a0e7
1,174
py
Python
riaps-x86runtime/env_setup_tests/WeatherMonitor/TempSensor.py
timkrentz/riaps-integration
22ceacb3043af3c726a31ff3ea337337e619377e
[ "Apache-2.0" ]
7
2019-01-10T13:12:41.000Z
2021-06-12T12:25:20.000Z
riaps-x86runtime/env_setup_tests/WeatherMonitor/TempSensor.py
timkrentz/riaps-integration
22ceacb3043af3c726a31ff3ea337337e619377e
[ "Apache-2.0" ]
10
2018-11-12T12:42:26.000Z
2022-03-11T07:25:06.000Z
riaps-x86runtime/env_setup_tests/WeatherMonitor/TempSensor.py
timkrentz/riaps-integration
22ceacb3043af3c726a31ff3ea337337e619377e
[ "Apache-2.0" ]
4
2020-05-08T04:56:50.000Z
2021-04-29T20:07:17.000Z
''' Created on Jan 25, 2017 @author: metelko ''' # riaps:keep_import:begin from riaps.run.comp import Component import logging import time import os # riaps:keep_import:end class TempSensor(Component): # riaps:keep_constr:begin def __init__(self): super(TempSensor, self).__init__() self.pid = os.ge...
30.102564
107
0.638842
2322b927eabeb501146922146ef8d8333a262d77
4,671
py
Python
mainproject/settings.py
sandeepnaik9/ReportGenerator
77259fb5ce682b6952f3dd60ad18d21417d25650
[ "MIT" ]
null
null
null
mainproject/settings.py
sandeepnaik9/ReportGenerator
77259fb5ce682b6952f3dd60ad18d21417d25650
[ "MIT" ]
null
null
null
mainproject/settings.py
sandeepnaik9/ReportGenerator
77259fb5ce682b6952f3dd60ad18d21417d25650
[ "MIT" ]
null
null
null
""" Django settings for mainproject project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
24.584211
91
0.702419
b6f9a7555a3cb34d70289fd5f2bc90d47d58d7c4
216
py
Python
app/quotes/models.py
agile-fan430/RestAPI_Django_AlphaVantage
a6129f9124f22d9e1034f6507106fe9355466e4a
[ "MIT" ]
null
null
null
app/quotes/models.py
agile-fan430/RestAPI_Django_AlphaVantage
a6129f9124f22d9e1034f6507106fe9355466e4a
[ "MIT" ]
null
null
null
app/quotes/models.py
agile-fan430/RestAPI_Django_AlphaVantage
a6129f9124f22d9e1034f6507106fe9355466e4a
[ "MIT" ]
null
null
null
from django.db import models class BTCPrice(models.Model): price = models.FloatField(max_length=255) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)
30.857143
56
0.777778
576b632ae6ca3512d50b230e4821d8cdec6eeb83
103
py
Python
yt_dlp/version.py
Tellybots/yt-dlp
b21553d1e9be4a09a5aec43ef16e758c45be799b
[ "Unlicense" ]
null
null
null
yt_dlp/version.py
Tellybots/yt-dlp
b21553d1e9be4a09a5aec43ef16e758c45be799b
[ "Unlicense" ]
null
null
null
yt_dlp/version.py
Tellybots/yt-dlp
b21553d1e9be4a09a5aec43ef16e758c45be799b
[ "Unlicense" ]
1
2022-02-21T05:27:35.000Z
2022-02-21T05:27:35.000Z
# Autogenerated by devscripts/update-version.py __version__ = '1.2.3' RELEASE_GIT_HEAD = 'c1653e9ef'
17.166667
47
0.76699
96e480f9ad0c5bce56239ddce849c054bc299404
815
py
Python
092_SquareDigitChains.py
joetache4/project-euler
82f9e25b414929d9f62d94905906ba2f57db7935
[ "MIT" ]
null
null
null
092_SquareDigitChains.py
joetache4/project-euler
82f9e25b414929d9f62d94905906ba2f57db7935
[ "MIT" ]
null
null
null
092_SquareDigitChains.py
joetache4/project-euler
82f9e25b414929d9f62d94905906ba2f57db7935
[ "MIT" ]
null
null
null
""" A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before. For example, 44 → 32 → 13 → 10 → 1 → 1 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 Therefore any chain that arrives at 1 or 89 will become stuck in an endless loop. What ...
20.375
167
0.625767
6679e83998654748d7308f35451cb7ae58e28399
7,642
py
Python
tasks/probStim.py
djmhunt/TTpy
0f0997314bf0f54831494b2ef1a64f1bff95c097
[ "MIT" ]
null
null
null
tasks/probStim.py
djmhunt/TTpy
0f0997314bf0f54831494b2ef1a64f1bff95c097
[ "MIT" ]
4
2020-04-19T11:43:41.000Z
2020-07-21T09:57:51.000Z
tasks/probStim.py
djmhunt/TTpy
0f0997314bf0f54831494b2ef1a64f1bff95c097
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :Author: Dominic Hunt """ import numpy as np from numpy import nan from numpy import float as npfloat from tasks.taskTemplate import Task from model.modelTemplate import Stimulus, Rewards # TODO: Create a set of test cues cueSets = {"Test": []} defaultCues = cueSets["T...
29.851563
122
0.573279
cdb9690806b74f8a4d1808ff00d887d638b0f2d6
123
gyp
Python
src/BinaryScale/binding.gyp
HalZhan/imager
90bd14604c87a980a1a7734f3df180571847b57e
[ "MIT" ]
null
null
null
src/BinaryScale/binding.gyp
HalZhan/imager
90bd14604c87a980a1a7734f3df180571847b57e
[ "MIT" ]
null
null
null
src/BinaryScale/binding.gyp
HalZhan/imager
90bd14604c87a980a1a7734f3df180571847b57e
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "imager", "sources": [ "binaryScale.cpp", "../dib/cdib.cpp" ] } ] }
15.375
57
0.447154
a4f5feb11046db9236014d6f6033077e54974f4d
5,114
py
Python
ggpy/cruft/autocode/DeORer.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
1
2015-01-26T19:07:45.000Z
2015-01-26T19:07:45.000Z
ggpy/cruft/autocode/DeORer.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
ggpy/cruft/autocode/DeORer.py
hobson/ggpy
4e6e6e876c3a4294cd711647051da2d9c1836b60
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ generated source for module DeORer """ # package: org.ggp.base.util.gdl.transforms import java.util.ArrayList import java.util.List import org.ggp.base.util.gdl.grammar.Gdl import org.ggp.base.util.gdl.grammar.GdlConstant import org.ggp.base.util.gdl.grammar.GdlDistinct import org.ggp.bas...
35.027397
124
0.566875
572bf22c4c0380aa2359b6dbe7c869262e5ca136
17,939
py
Python
speech_model/SpeechModel251.py
GangTimes/ChineseASR
2678055ca90da2178193e2153f0adbc1d8966ed6
[ "Apache-2.0" ]
4
2018-12-28T07:34:56.000Z
2020-05-10T03:59:18.000Z
speech_model/SpeechModel251.py
GangTimes/ChineseASR
2678055ca90da2178193e2153f0adbc1d8966ed6
[ "Apache-2.0" ]
null
null
null
speech_model/SpeechModel251.py
GangTimes/ChineseASR
2678055ca90da2178193e2153f0adbc1d8966ed6
[ "Apache-2.0" ]
2
2019-05-20T07:16:17.000Z
2020-09-25T13:35:09.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: nl8590687 """ import platform as plat import os import time from general_function.file_wav import * from general_function.file_dict import * from general_function.gen_func import * # LSTM_CNN import keras as kr import numpy as np import rando...
38.74514
157
0.58855
69faef362eec2f4e2ecf1a4d12e845dd6a7d4cb5
4,182
py
Python
python/test/open3d_test.py
leomariga/Open3D
d197339fcd29ad0803a182ef8953d89e563f94d7
[ "MIT" ]
8
2021-03-17T14:24:12.000Z
2022-03-30T15:35:27.000Z
python/test/open3d_test.py
leomariga/Open3D
d197339fcd29ad0803a182ef8953d89e563f94d7
[ "MIT" ]
1
2021-11-04T09:22:25.000Z
2022-02-14T01:32:31.000Z
python/test/open3d_test.py
leomariga/Open3D
d197339fcd29ad0803a182ef8953d89e563f94d7
[ "MIT" ]
2
2021-08-24T18:06:55.000Z
2021-12-17T10:48:34.000Z
# ---------------------------------------------------------------------------- # - Open3D: www.open3d.org - # ---------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2018-2021 www.open3d.org # # Permission i...
39.45283
108
0.664036
2532e3e6ddd6f5a2c3cc67163d6554bcdbb187b1
1,269
py
Python
ssseg/cfgs/apcnet/cfgs_voc_resnet101os8.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
1
2021-05-28T06:42:37.000Z
2021-05-28T06:42:37.000Z
ssseg/cfgs/apcnet/cfgs_voc_resnet101os8.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
ssseg/cfgs/apcnet/cfgs_voc_resnet101os8.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
'''define the config file for voc and resnet101os8''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'voc', 'set': 'trainaug', 'rootdir': 'data/VOCdevkit/VOC2012', } ) DATASET_CFG['test'].update( { 'ty...
23.5
92
0.669031
e9f0a45cfd492831ae4dfcb17b9033903bd9198e
3,679
py
Python
payload/Library/Python/2.7/site-packages/touchbarlib.py
homebysix/touchbarlib
450228a78bee6c00b9dec21387b877f5a3116298
[ "Apache-2.0" ]
7
2018-04-20T09:44:12.000Z
2019-08-15T10:56:52.000Z
payload/Library/Python/2.7/site-packages/touchbarlib.py
homebysix/touchbarlib
450228a78bee6c00b9dec21387b877f5a3116298
[ "Apache-2.0" ]
null
null
null
payload/Library/Python/2.7/site-packages/touchbarlib.py
homebysix/touchbarlib
450228a78bee6c00b9dec21387b877f5a3116298
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Routines for manipulating the TouchBar""" import os import subprocess # pylint: disable=E0611 from Foundation import NSURL from Foundation import CFPreferencesAppSynchronize from Foundation import CFPreferencesCopyAppValue from Foundation import CFPreferencesSetAppValue # pylint: enable=E0611 ...
33.445455
84
0.621365
13cb60d8b750fa20aa1b0b8981a6867e2571cf02
858
py
Python
coding_interviews/elements_of_programming_interview/longest_subarray_length_with_same_integers.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
coding_interviews/elements_of_programming_interview/longest_subarray_length_with_same_integers.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
coding_interviews/elements_of_programming_interview/longest_subarray_length_with_same_integers.py
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
50
2018-11-28T20:51:36.000Z
2021-11-29T04:08:25.000Z
''' Write a program that takes an array of integers and finds the length of a longest subarray all of whose entries are equal. ''' def longest_subarray_length_with_same_integers(numbers): if not numbers: return 0 longest_subarray_length, counter, current_comparator = 0, 0, numbers[0] for number i...
29.586207
75
0.717949
aeee7f29c4d9a25a42b0519900eada65c6818361
165
py
Python
debug/convert_scores_compo60.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
1
2020-12-18T06:10:16.000Z
2020-12-18T06:10:16.000Z
debug/convert_scores_compo60.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
null
null
null
debug/convert_scores_compo60.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
2
2021-03-01T01:36:38.000Z
2021-03-01T13:44:02.000Z
import pandas as pd import numpy as np X = np.load("all_scores_mag_compo60.npy", allow_pickle=True).item() df = pd.DataFrame(X) df.to_csv("scores_mag_compo60.csv")
23.571429
67
0.763636
52b8916da0285acc7b3d51afd5cdb404be8edd9e
803
py
Python
tests/test_util.py
aaronm759/us-congress-pizza-flag-tracker
2dcd407135655e48742a3f3b4c391222d815c4f2
[ "CC0-1.0" ]
null
null
null
tests/test_util.py
aaronm759/us-congress-pizza-flag-tracker
2dcd407135655e48742a3f3b4c391222d815c4f2
[ "CC0-1.0" ]
null
null
null
tests/test_util.py
aaronm759/us-congress-pizza-flag-tracker
2dcd407135655e48742a3f3b4c391222d815c4f2
[ "CC0-1.0" ]
null
null
null
import pytest import cv2 from io import BytesIO # from qrtools.qrtools import QR from app import app from controllers import get_qrcode import io import numpy as np from cachelib import file class TestUtils(): @pytest.mark.skip(reason="function works, but test does not") def test_qrcode(self): qrcodeVal...
29.740741
74
0.655044
1d03972e09340e1a48c4312005fdcf97511223b4
7,759
py
Python
source/scipy_test.py
yux1991/PyRHEED
b39ad03651c92e3649069919ae48b1e5158cd3dd
[ "MIT" ]
14
2019-01-08T14:32:31.000Z
2021-11-17T21:07:10.000Z
source/scipy_test.py
yux1991/PyRHEED
b39ad03651c92e3649069919ae48b1e5158cd3dd
[ "MIT" ]
2
2019-05-14T08:56:36.000Z
2020-12-22T16:44:30.000Z
source/scipy_test.py
yux1991/PyRHEED
b39ad03651c92e3649069919ae48b1e5158cd3dd
[ "MIT" ]
4
2019-03-12T20:03:54.000Z
2022-03-08T14:24:46.000Z
import time import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import matplotlib.colors as mcolors from scipy.interpolate import LinearNDInterpolator from scipy.interpolate import NearestNDInterpolator import pandas from collections import Counter from sci...
44.337143
182
0.571852
c0ee4a19350f690c977312994e7feef9ed48ed8b
69,886
py
Python
api/vm/define/serializers.py
DigitalOzUT/esdc-ce
e0d918994204f3ca69f363c71941c7a1bb123109
[ "Apache-2.0" ]
null
null
null
api/vm/define/serializers.py
DigitalOzUT/esdc-ce
e0d918994204f3ca69f363c71941c7a1bb123109
[ "Apache-2.0" ]
null
null
null
api/vm/define/serializers.py
DigitalOzUT/esdc-ce
e0d918994204f3ca69f363c71941c7a1bb123109
[ "Apache-2.0" ]
null
null
null
from logging import getLogger from django.core.validators import RegexValidator from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from django.utils.six import iteritems from django.core import validators from django.conf import settings from api.mon import MonitoringBackend from g...
40.513623
120
0.578571
1e88e60435ba0c35ebb7a1b8af37427bf08c7881
1,456
py
Python
sdk/python/feast/constants.py
amommendes/feast
2435777d87c19d4eee670a7ccf5e73e88e22ce9d
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/constants.py
amommendes/feast
2435777d87c19d4eee670a7ccf5e73e88e22ce9d
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/constants.py
amommendes/feast
2435777d87c19d4eee670a7ccf5e73e88e22ce9d
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The Feast Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.4
87
0.802885
7579ab704a79440ed3ac0241f66d6c5cf221a0d4
32,212
py
Python
libcloud/test/storage/test_atmos.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
4
2017-11-14T17:24:12.000Z
2020-10-30T01:46:02.000Z
libcloud/test/storage/test_atmos.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
11
2017-01-29T08:59:21.000Z
2018-07-02T09:17:47.000Z
libcloud/test/storage/test_atmos.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
4
2016-04-04T08:01:48.000Z
2018-06-06T08:04:36.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 use ...
42.052219
105
0.595244
d861b5599b3caecde75e21230d3901cb3459539e
3,956
py
Python
tests/shell/tests.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
7
2015-09-08T22:23:36.000Z
2022-03-08T09:24:40.000Z
tests/shell/tests.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8
2017-04-19T16:20:47.000Z
2022-03-28T14:40:11.000Z
tests/shell/tests.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
3
2020-07-13T04:49:16.000Z
2021-12-22T21:15:14.000Z
import sys import unittest from unittest import mock from django import __version__ from django.core.management import CommandError, call_command from django.test import SimpleTestCase from django.test.utils import captured_stdin, captured_stdout class ShellCommandTestCase(SimpleTestCase): script_globals = 'prin...
42.085106
99
0.657988
4a035f045a1d744da6b599dbfb2e775b61a63d5b
27,895
py
Python
leo/modes/pvwave.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/modes/pvwave.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/modes/pvwave.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# Leo colorizer control file for pvwave mode. # This file is in the public domain. # Properties for pvwave mode. properties = { "lineComment": ";", } # Attributes dict for pvwave_main ruleset. pvwave_main_attributes_dict = { "default": "null", "digit_re": "", "escape": "", "highlight_...
30.653846
88
0.576698
effc133eb953e25ea09684c6a5e30c1e12e7e6db
3,700
py
Python
pypureclient/flasharray/FA_2_4/models/hardware_patch.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_4/models/hardware_patch.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_4/models/hardware_patch.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
29.83871
111
0.553514
f7cc7f27df282faa9e66918373dcdfb3f5b95f66
25,360
py
Python
selfdrive/controls/lib/events.py
wahzoo-op/phoenixpilot
545286377f9752d0be8e0638b812b527d1987002
[ "MIT" ]
null
null
null
selfdrive/controls/lib/events.py
wahzoo-op/phoenixpilot
545286377f9752d0be8e0638b812b527d1987002
[ "MIT" ]
null
null
null
selfdrive/controls/lib/events.py
wahzoo-op/phoenixpilot
545286377f9752d0be8e0638b812b527d1987002
[ "MIT" ]
null
null
null
from enum import IntEnum from typing import Dict, Union, Callable, Any from cereal import log, car import cereal.messaging as messaging from common.realtime import DT_CTRL from selfdrive.config import Conversions as CV from selfdrive.locationd.calibrationd import MIN_SPEED_FILTER AlertSize = log.ControlsState.AlertSi...
32.935065
116
0.674211
f718a6e4efe0bc6650e570e12bb690e1b246fd8d
315
py
Python
data.py
thIYan-EsWar/Machine-Learning-Breast-Cancer-Prediction
349e6be13476dcfb602ab1e6f812bc464a7affc3
[ "Apache-2.0" ]
null
null
null
data.py
thIYan-EsWar/Machine-Learning-Breast-Cancer-Prediction
349e6be13476dcfb602ab1e6f812bc464a7affc3
[ "Apache-2.0" ]
null
null
null
data.py
thIYan-EsWar/Machine-Learning-Breast-Cancer-Prediction
349e6be13476dcfb602ab1e6f812bc464a7affc3
[ "Apache-2.0" ]
null
null
null
from random import shuffle, sample with open('data.txt', 'r') as f: contents = f.readlines() contents = sample(contents, len(contents)) with open('train_data.txt', 'w') as f: [f.write(content) for content in contents[: 601]] with open('test_data.txt', 'w') as f: [f.write(content) for content in contents[601:]]
39.375
50
0.698413
1ce464512b50d6415d7a79d192b5e04e8b94341c
1,560
py
Python
scripts/filter_design/iir_comparison.py
CyrilCadoux/dsp-labs
8ef53fccb87ad842051d9032d127a86c1172155f
[ "MIT" ]
18
2019-08-19T13:00:36.000Z
2022-01-14T02:32:15.000Z
scripts/filter_design/iir_comparison.py
CyrilCadoux/dsp-labs
8ef53fccb87ad842051d9032d127a86c1172155f
[ "MIT" ]
2
2018-12-25T18:01:03.000Z
2018-12-26T19:13:47.000Z
scripts/filter_design/iir_comparison.py
CyrilCadoux/dsp-labs
8ef53fccb87ad842051d9032d127a86c1172155f
[ "MIT" ]
10
2018-12-05T07:18:48.000Z
2021-08-12T13:46:08.000Z
""" Compare various IIR filters """ import numpy as np from scipy import signal import matplotlib.pyplot as plt def freq2rad(freq, fs): return freq * np.pi / (fs/2) def rad2freq(rad, fs): return rad * (fs/2) / np.pi # MAIN PARAMETER pole_coef = 0.95 fs = 16000 # prepare figure ALPHA = 0.8 f_max = 4000 p...
20.8
71
0.582051
b9b596c05eca9041a0f0dafbb59bb40adf887713
1,561
py
Python
church/models/team.py
tyrchen/church
71f7b68237121b72d5a6eece366ccda00fa9c7cf
[ "MIT" ]
1
2016-07-29T09:32:05.000Z
2016-07-29T09:32:05.000Z
church/models/team.py
tyrchen/church
71f7b68237121b72d5a6eece366ccda00fa9c7cf
[ "MIT" ]
31
2018-07-22T09:13:04.000Z
2019-10-20T05:57:12.000Z
church/models/team.py
tyrchen/church
71f7b68237121b72d5a6eece366ccda00fa9c7cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from django.db import models import logging from django.utils.text import slugify from django_extensions.db.fields import CreationDateTimeField, ModificationDateTimeField import requests from settings import API_SERVER __author__ = 'tchen' log...
36.302326
115
0.658552
00f42aa3395a7c7d3eb874161a329d54aeaa2f3f
3,312
py
Python
sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/list_secrets.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/list_secrets.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/list_secrets.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import asyncio from azure_devtools.perfstress_tests import PerfStressTest from azure.identity import DefaultAzureCredential from azure.identity.aio import DefaultAzureC...
43.012987
117
0.684481
29fb51288b27bf00c83a5bb80680ac601aaab169
2,106
py
Python
prereise/gather/winddata/hrrr/tests/test_grib.py
SEL-Columbia/PreREISE-building
527cc02e6867a879c7e68e8e3fc5dc843de20580
[ "MIT" ]
15
2021-03-02T11:54:27.000Z
2022-02-16T13:01:40.000Z
prereise/gather/winddata/hrrr/tests/test_grib.py
SEL-Columbia/PreREISE-building
527cc02e6867a879c7e68e8e3fc5dc843de20580
[ "MIT" ]
90
2021-01-25T19:02:14.000Z
2022-03-31T20:27:28.000Z
prereise/gather/winddata/hrrr/tests/test_grib.py
SEL-Columbia/PreREISE-building
527cc02e6867a879c7e68e8e3fc5dc843de20580
[ "MIT" ]
15
2021-02-08T23:28:21.000Z
2022-01-24T21:59:14.000Z
from prereise.gather.winddata.hrrr.grib import GribRecordInfo GRIB_RECORD_INFO_ARRAY = [ "52:38983378:d=2016010121:UGRD:10 m above ground:anl:", "53:40192462:d=2016010121:VGRD:10 m above ground:anl:", ] def test_grib_info_from_string(): g = GribRecordInfo.from_string(GRIB_RECORD_INFO_ARRAY[0]) expect...
28.459459
66
0.65717
ffb436bf29f81a4c30ef4ee52d02779e940ce545
105,234
py
Python
src/parsedatetime/__init__.py
binbashar/terraform-certbot-lambda
a3fa1e715605ff9754d7a915c472a9baf64e4aa1
[ "MIT" ]
4
2021-02-20T06:00:01.000Z
2022-01-07T20:37:37.000Z
src/parsedatetime/__init__.py
binbashar/terraform-certbot-lambda
a3fa1e715605ff9754d7a915c472a9baf64e4aa1
[ "MIT" ]
2
2020-04-30T13:03:09.000Z
2021-05-05T10:20:15.000Z
src/parsedatetime/__init__.py
binbashar/terraform-certbot-lambda
a3fa1e715605ff9754d7a915c472a9baf64e4aa1
[ "MIT" ]
5
2020-05-07T08:14:36.000Z
2022-03-24T15:15:08.000Z
# -*- coding: utf-8 -*- # # vim: sw=2 ts=2 sts=2 # # Copyright 2004-2019 Mike Taylor # # 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 # # Unl...
37.71828
115
0.495676
fc716c8cd9834270266914ab5d0a0cdc6a973040
1,443
py
Python
examples/example_calculator/nodes/output.py
hello-arun/pyqt-node-editor
fa6cdd95020ef22055143c04279b538473fcdef3
[ "MIT" ]
1
2021-12-05T17:46:42.000Z
2021-12-05T17:46:42.000Z
examples/example_calculator/nodes/output.py
hello-arun/pyqt-node-editor
fa6cdd95020ef22055143c04279b538473fcdef3
[ "MIT" ]
null
null
null
examples/example_calculator/nodes/output.py
hello-arun/pyqt-node-editor
fa6cdd95020ef22055143c04279b538473fcdef3
[ "MIT" ]
1
2021-09-21T07:41:02.000Z
2021-09-21T07:41:02.000Z
from qtpy.QtWidgets import QLabel from qtpy.QtCore import Qt from examples.example_calculator.calc_conf import register_node, OP_NODE_OUTPUT from examples.example_calculator.calc_node_base import CalcNode, CalcGraphicsNode from nodeeditor.node_content_widget import QDMNodeContentWidget class CalcOutputContent(QDMNode...
29.44898
81
0.680527
ee1d341407ef293038ad79ee5fa5c32391ee4da5
34,224
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
1
2021-06-02T08:01:35.000Z
2021-06-02T08:01:35.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.010989
173
0.66953
901f1a5abdd21902b79a9623366ba3c2f0440e03
862
py
Python
dpsutil/common/hw.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-19T03:14:42.000Z
2021-01-19T03:14:42.000Z
dpsutil/common/hw.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
1
2021-01-27T09:50:33.000Z
2021-01-27T09:50:33.000Z
dpsutil/common/hw.py
connortran216/DPS_Util
8e6af59c3cc5d4addf3694ee0dfede08206ec4b3
[ "MIT" ]
3
2020-03-24T02:49:47.000Z
2021-02-26T04:05:06.000Z
import os import subprocess def number_of_gpus(): """ Count numbers of NVIDIA GPU """ return int(subprocess.getoutput("nvidia-smi --query-gpu=name --format=csv,noheader | wc -l")) def number_of_cores(): """ number_of_cores() Detect the number of cores in this system. """ # Linux...
25.352941
97
0.588167
09b91b53a96e9895102078431a2ca6f6ff3955f8
1,001
py
Python
tests/test_Objective.py
light-weaver/desdeo_problem
f3732bdd154ea5b6e94566d4daaf9fea67669646
[ "MIT" ]
null
null
null
tests/test_Objective.py
light-weaver/desdeo_problem
f3732bdd154ea5b6e94566d4daaf9fea67669646
[ "MIT" ]
null
null
null
tests/test_Objective.py
light-weaver/desdeo_problem
f3732bdd154ea5b6e94566d4daaf9fea67669646
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import pytest from desdeo_problem.problem.Objective import ( ObjectiveError, ObjectiveEvaluationResults, VectorDataObjective, VectorObjective, ) # ============= utils ============ # just testing the basic functionality. Just return the vector as eval. def evalua...
25.666667
74
0.663337
760f6071057a8f26719ee19669bfb41a6187b5ab
2,010
py
Python
src/detailRecord.py
moenova/Human-Memory-Manager
02b2d8ffd78a3ddcd693f0d991bd4c5d0ef54c80
[ "MIT" ]
6
2019-09-20T01:15:05.000Z
2020-05-20T20:14:39.000Z
src/detailRecord.py
moenova/Memory-Helper
02b2d8ffd78a3ddcd693f0d991bd4c5d0ef54c80
[ "MIT" ]
null
null
null
src/detailRecord.py
moenova/Memory-Helper
02b2d8ffd78a3ddcd693f0d991bd4c5d0ef54c80
[ "MIT" ]
null
null
null
from lzpy import Root, Table from pprint import pprint from datetime import datetime,timedelta import time class DetailRecord: """ def nkv2str(name,qkey,qvalue): return "{}:{}-{}".format(name, qkey, qvalue) """ subpath = "rec/" timeout = timedelta(minutes=5) def __init...
27.534247
83
0.516418
967acb40e7f30ea406bf24edfe270dd4cf59779a
673
py
Python
accounts/forms.py
HRangelov/gallery
3ccf712ef2e1765a6dfd6567d58e6678e0b2ff6f
[ "MIT" ]
null
null
null
accounts/forms.py
HRangelov/gallery
3ccf712ef2e1765a6dfd6567d58e6678e0b2ff6f
[ "MIT" ]
null
null
null
accounts/forms.py
HRangelov/gallery
3ccf712ef2e1765a6dfd6567d58e6678e0b2ff6f
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from accounts.models import UserProfile from common.BootstrapFormMixin import BootstrapFormMixin class SignUpForm(UserCreationForm, BootstrapFormMixin): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) ...
28.041667
62
0.690936
d29d34529201cfa72ceb6521a152e84f7336964f
1,426
py
Python
blog/models.py
Microcore/Quantic
727234a5e9e58217eb8235b6d0f27fe1b95f5f83
[ "MIT" ]
null
null
null
blog/models.py
Microcore/Quantic
727234a5e9e58217eb8235b6d0f27fe1b95f5f83
[ "MIT" ]
7
2015-04-25T05:04:46.000Z
2015-04-26T08:24:36.000Z
blog/models.py
Microcore/Quantic
727234a5e9e58217eb8235b6d0f27fe1b95f5f83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Models for Blog app. ''' from django.db import models class Tag(models.Model): text = models.CharField(max_length = 20, unique = True) class Author(models.Model): name = models.CharField(max_length = 20, unique = True) email = models.EmailField(unique = True) url = model...
27.960784
60
0.686536
f0d067e68e15b0d4e6fcc15142f8df01766d7bb6
384
py
Python
papaya/papaya_app/models.py
marinaskevin/Django-Angular
1673ecfe2456b861e6d14f517be1659da0877395
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
papaya/papaya_app/models.py
marinaskevin/Django-Angular
1673ecfe2456b861e6d14f517be1659da0877395
[ "CNRI-Python-GPL-Compatible" ]
19
2020-06-05T20:43:10.000Z
2022-03-02T07:13:31.000Z
papaya/papaya_app/models.py
marinaskevin/Django-Angular
1673ecfe2456b861e6d14f517be1659da0877395
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
from django.db import models from django.conf import settings # Create your models here. class Papaya(models.Model): id = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, primary_key=True) name = models.CharField(max_length=200) class Task(models.Model): id = models.ForeignKey(settin...
32
96
0.786458
49edde01d518acae4bece7f238da27a58de337ea
23,684
py
Python
plasmapy/atomic/ionization_state.py
JvPy/PlasmaPy
9ba3f4eb5dbbb1a3d7b25527e0d5eb62c5086edf
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
1
2020-02-05T18:40:50.000Z
2020-02-05T18:40:50.000Z
plasmapy/atomic/ionization_state.py
JvPy/PlasmaPy
9ba3f4eb5dbbb1a3d7b25527e0d5eb62c5086edf
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/atomic/ionization_state.py
JvPy/PlasmaPy
9ba3f4eb5dbbb1a3d7b25527e0d5eb62c5086edf
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Objects for storing ionization state data for a single element or for a single ionization level. """ __all__ = ["IonizationState", "State"] import collections import numpy as np import warnings from astropy import units as u from numbers import (Integral, Real) from plasmapy.atomic import Particle, particle_input...
35.776435
95
0.582672
f7d23637e168b49c09d7149017f07c03b9e00f6e
14,711
py
Python
guppyproxy/reqview.py
0xBADCA7/guppy-proxy
016d18558c350995387253ce3244bf281b98dee9
[ "MIT" ]
143
2018-02-22T18:50:34.000Z
2022-02-17T06:18:54.000Z
guppyproxy/reqview.py
0xBADCA7/guppy-proxy
016d18558c350995387253ce3244bf281b98dee9
[ "MIT" ]
2
2018-03-16T22:03:25.000Z
2020-02-11T21:10:59.000Z
guppyproxy/reqview.py
0xBADCA7/guppy-proxy
016d18558c350995387253ce3244bf281b98dee9
[ "MIT" ]
16
2018-03-11T03:57:58.000Z
2021-08-31T04:25:51.000Z
import re from guppyproxy.util import datetime_string, DisableUpdates from guppyproxy.proxy import HTTPRequest, get_full_url, parse_request from guppyproxy.hexteditor import ComboEditor from PyQt5.QtWidgets import QWidget, QTableWidget, QTableWidgetItem, QGridLayout, QHeaderView, QAbstractItemView, QLineEdit, QTabWidg...
34.942993
190
0.59255
e675abd327b49f64493e9b622d289d60ba79be00
150
py
Python
botworks/config_constants.py
doubleyuhtee/botworks
f9ffc9e77b0b924a42e19d71542976e7cf406725
[ "MIT" ]
null
null
null
botworks/config_constants.py
doubleyuhtee/botworks
f9ffc9e77b0b924a42e19d71542976e7cf406725
[ "MIT" ]
null
null
null
botworks/config_constants.py
doubleyuhtee/botworks
f9ffc9e77b0b924a42e19d71542976e7cf406725
[ "MIT" ]
null
null
null
SLEEP_TIME = "sleep_time" ERROR_SLEEP_TIME = "error_sleep_time" LOG_LEVEL = "log_level" UNHEALTHY_HANDLER = "unhealthy" HEALTHY_HANDLER = "healthy"
18.75
37
0.786667
a3b2f0a0d3876f08612404a4251d4ed3d91e4a86
118
py
Python
web_scraping/ec2files/ec2file148.py
nikibhatt/Groa
fc2d4ae87cb825e6d54a0831c72be16541eebe61
[ "MIT" ]
1
2020-04-08T19:44:30.000Z
2020-04-08T19:44:30.000Z
web_scraping/ec2files/ec2file148.py
cmgospod/Groa
31b3624bfe61e772b55f8175b4e95d63c9e67966
[ "MIT" ]
null
null
null
web_scraping/ec2files/ec2file148.py
cmgospod/Groa
31b3624bfe61e772b55f8175b4e95d63c9e67966
[ "MIT" ]
1
2020-09-12T07:07:41.000Z
2020-09-12T07:07:41.000Z
from scraper import * s = Scraper(start=263736, end=265517, max_iter=30, scraper_instance=148) s.scrape_letterboxd()
39.333333
73
0.779661
6036f7dac2a82534ff340d1b02882589f352255e
15,041
py
Python
services/connectors/socket-connector/source/connector/main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
4
2021-09-10T09:46:18.000Z
2021-12-05T17:55:14.000Z
services/connectors/socket-connector/source/connector/main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
services/connectors/socket-connector/source/connector/main.py
fzi-forschungszentrum-informatik/BEMCom
0a0c359d889c6d5975e4d4d3b17c24adb5bf883b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ __version__="0.4.0" import os import json import yaml import socket import logging from dotenv import load_dotenv, find_dotenv from pyconnector_template.pyconnector_template import SensorFlow as SFTemplate from pyconnector_template.pyconnector_template import Ac...
38.369898
80
0.595107
767fb0fdb6bef8676c664bf725e1c681f7d4b099
284
py
Python
setup.py
mhearne-usgs/earthquake-sequence
3b642a6c202894b0ea421635f0f258fa045fa271
[ "CC-BY-4.0" ]
null
null
null
setup.py
mhearne-usgs/earthquake-sequence
3b642a6c202894b0ea421635f0f258fa045fa271
[ "CC-BY-4.0" ]
null
null
null
setup.py
mhearne-usgs/earthquake-sequence
3b642a6c202894b0ea421635f0f258fa045fa271
[ "CC-BY-4.0" ]
null
null
null
from distutils.core import setup setup(name='sequence', version='0.1dev', description='USGS sequence Product Generator', author='Mike Hearne', author_email='mhearne@usgs.gov', url='', packages=['sequence'], scripts=['bin/sequence'], )
23.666667
52
0.616197
125db46f9b8b85b91247c7be9215dc3fae0a1d58
2,472
py
Python
projects/clc/analyze/comb.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
2
2015-04-27T01:57:43.000Z
2015-05-01T18:18:56.000Z
projects/clc/analyze/comb.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
null
null
null
projects/clc/analyze/comb.py
kmckiern/scripts
acc8326ca653d804ee06752af9e7f5b011fc6e0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import mdtraj from mdtraj import Trajectory as t import os, sys import argparse parser = argparse.ArgumentParser(description='lig-template pdb generation') parser.add_argument('--trj_dir', type=str, help='directory of simulation trajectories') parser.add_argument('--trj_ext', ...
38.625
111
0.686893
4e1afc03799d8f4c4ed3c6a04a5a52cee851102d
3,021
py
Python
acme/agents/tf/dqn/agent_run_bsuite.py
nrocketmann/acme-intrinsic
ce90aa15ec785a8618a2505410ab6b9f1f9b5a32
[ "Apache-2.0" ]
null
null
null
acme/agents/tf/dqn/agent_run_bsuite.py
nrocketmann/acme-intrinsic
ce90aa15ec785a8618a2505410ab6b9f1f9b5a32
[ "Apache-2.0" ]
null
null
null
acme/agents/tf/dqn/agent_run_bsuite.py
nrocketmann/acme-intrinsic
ce90aa15ec785a8618a2505410ab6b9f1f9b5a32
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
34.724138
132
0.746111
3b7dd4bcf7997c1c4b9d2e30eee919b2b490b3b3
10,969
py
Python
sympy/series/limits.py
pnijhara/sympy
7f30e325fbc144452e336abad013c50c5b71b7aa
[ "BSD-3-Clause" ]
null
null
null
sympy/series/limits.py
pnijhara/sympy
7f30e325fbc144452e336abad013c50c5b71b7aa
[ "BSD-3-Clause" ]
null
null
null
sympy/series/limits.py
pnijhara/sympy
7f30e325fbc144452e336abad013c50c5b71b7aa
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, division from sympy.core import S, Symbol, Add, sympify, Expr, PoleError, Mul from sympy.core.exprtools import factor_terms from sympy.core.symbol import Dummy from sympy.functions.combinatorial.factorials import factorial from sympy.functions.special.gamma_functions import gamma...
31.979592
93
0.486371
815fa78dc9c1700f6b6c0d30a5a9fc0f8fd1997f
472
py
Python
resources/usr/local/lib/python2.7/dist-packages/sklearn/gaussian_process/__init__.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/gaussian_process/__init__.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/gaussian_process/__init__.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
1
2020-05-28T23:01:44.000Z
2020-05-28T23:01:44.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # Licence: BSD 3 clause """ The :mod:`sklearn.gaussian_process` module implements scalar Gaussian Process based predictions. """ from .gaussian_process import Gau...
26.222222
77
0.756356
4532a859cf52d93ac940d0ec3c3c6231903af4b0
3,205
py
Python
setup.py
jzitelli/three.py
9cdc28bd776ac227d880332e41d46a78415f532f
[ "MIT" ]
12
2015-12-09T21:59:48.000Z
2021-05-06T13:05:16.000Z
setup.py
jzitelli/three.py
9cdc28bd776ac227d880332e41d46a78415f532f
[ "MIT" ]
null
null
null
setup.py
jzitelli/three.py
9cdc28bd776ac227d880332e41d46a78415f532f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open import os.path here = os.path.abspath(os.path.dirname(__file__)) # Get the long description from the README file with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='three.py', # Ve...
35.21978
114
0.661778
9772b7ae9ff40a587ac0db61a91cd9e48f4a18ba
1,763
py
Python
tests/assessment_authoring/test_record_templates.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
tests/assessment_authoring/test_record_templates.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
tests/assessment_authoring/test_record_templates.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""Unit tests of assessment.authoring records.""" import pytest from ..utilities.general import is_never_authz, is_no_authz, uses_cataloging, uses_filesystem_only @pytest.mark.usefixtures("assessment_part_record_class_fixture", "assessment_part_record_test_fixture") class TestAssessmentPartRecord(object): """...
36.729167
117
0.836642
578dae5997775b6a9468f8641a207822a51c85d2
398
py
Python
Chapter06/httprecv.py
PacktPublishing/Kali-Linux-Network-Scanning-Cookbook-Second-Edition
bbb88df785f86e4c41494b867419c53262c700a4
[ "MIT" ]
17
2017-07-20T08:19:28.000Z
2021-11-08T13:11:58.000Z
Chapter09/httprecv.py
PacktPublishing/Kali-Linux-Network-Scanning-Cookbook-Second-Edition
bbb88df785f86e4c41494b867419c53262c700a4
[ "MIT" ]
null
null
null
Chapter09/httprecv.py
PacktPublishing/Kali-Linux-Network-Scanning-Cookbook-Second-Edition
bbb88df785f86e4c41494b867419c53262c700a4
[ "MIT" ]
13
2017-07-20T08:20:42.000Z
2021-12-07T20:29:26.000Z
#!/usr/bin/python import socket print "Awaiting connection...\n" httprecv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) httprecv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) httprecv.bind(("0.0.0.0",8000)) httprecv.listen(2) (client, ( ip,sock)) = httprecv.accept() print "Received connection from : "...
22.111111
62
0.741206
df36e4c55a0b5b0e53d6dc62703ddc2112d799b3
8,510
py
Python
sdk/python/pulumi_google_native/file/v1/get_backup.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/file/v1/get_backup.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/file/v1/get_backup.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# 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, overload from ... import _utilities __...
39.398148
251
0.659459
4dfe9a10c958326aec146a3a0f5c3ce118c69469
10,178
py
Python
test/functional/p2p_filter.py
qtdatainc/SAM-Coin
3ff99809c5ce6ddad10d29fef688cd54f0ee37fb
[ "MIT" ]
1
2022-02-22T03:37:26.000Z
2022-02-22T03:37:26.000Z
test/functional/p2p_filter.py
qtdatainc/SAM-Coin
3ff99809c5ce6ddad10d29fef688cd54f0ee37fb
[ "MIT" ]
null
null
null
test/functional/p2p_filter.py
qtdatainc/SAM-Coin
3ff99809c5ce6ddad10d29fef688cd54f0ee37fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Samcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Test BIP 37 """ from test_framework.messages import ( CInv, MAX_BLOOM_FILTER_SIZE, MAX_BLOOM_H...
42.232365
130
0.69326
da20577f4ecaf5a1f05d41072021430d52392cdc
6,705
py
Python
bibtex2html/bibtex2html.py
MUONetwork/muon.github.io
ce40c4efd44a325f0f2e33f565e8b117cb50f7da
[ "CC-BY-3.0" ]
1
2020-07-25T16:21:31.000Z
2020-07-25T16:21:31.000Z
bibtex2html/bibtex2html.py
MUONetwork/muon.github.io
ce40c4efd44a325f0f2e33f565e8b117cb50f7da
[ "CC-BY-3.0" ]
null
null
null
bibtex2html/bibtex2html.py
MUONetwork/muon.github.io
ce40c4efd44a325f0f2e33f565e8b117cb50f7da
[ "CC-BY-3.0" ]
null
null
null
#! /usr/bin/env python2 """ Copyright (C) 2009-2015 Gustavo de Oliveira. Licensed under the GPL (see the license file). This program reads a BibTeX file and converts it to a list of references in HTML format. To use this program you need Python installed on your computer. To run the program, in a command-line inte...
27.479508
112
0.515138
53b2185ef515881dde9728584904aa0e753b2040
1,082
py
Python
701-800/761-770/763-partitionLabels/partitionLabels.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
701-800/761-770/763-partitionLabels/partitionLabels.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
701-800/761-770/763-partitionLabels/partitionLabels.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution(object): def partitionLabels(self, S): """ :type S: str :rtype: List[int] """ dictionary = {} index = -1 counter = [] for char in S: if char not in dictionary: index += 1 dictionary[char] = i...
25.162791
76
0.467652
34998dafee2d5b0abab5b24a8a1a045fcb034d90
3,173
py
Python
mt/base/aio/procedure.py
inteplus/mtbase
b211f25110f95be8b78be3e44feb1c16789c13b8
[ "MIT" ]
null
null
null
mt/base/aio/procedure.py
inteplus/mtbase
b211f25110f95be8b78be3e44feb1c16789c13b8
[ "MIT" ]
null
null
null
mt/base/aio/procedure.py
inteplus/mtbase
b211f25110f95be8b78be3e44feb1c16789c13b8
[ "MIT" ]
null
null
null
'''Asynchronous procedure. An asynchronous procedure, a.k.a. an aproc, is a procedure that is asynchronous and has been wrapped into an :class:`asyncio.Future`. A procedure is a function that returns None. ''' import asyncio __all__ = ['AprocManager'] class AprocManager: '''Manages the completion of aprocs. ...
39.6625
109
0.6341
4aa608f4c4a712aa20c339c1e574011ead0e687f
118,829
py
Python
python/ccxt/ascendex.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
python/ccxt/ascendex.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
python/ccxt/ascendex.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
43.945636
228
0.472141
7bbfa762b09967ef0845f9194a28774ebc7bd7ac
904
py
Python
tests/universal_functions_tests/divide_tests/inplace_broadcast.py
marcinz/cunumeric
c40b038d4eb0611f7bb16d5bd11891a633ef7892
[ "Apache-2.0" ]
118
2021-04-12T18:06:59.000Z
2021-10-12T21:30:24.000Z
tests/universal_functions_tests/divide_tests/inplace_broadcast.py
marcinz/cunumeric
c40b038d4eb0611f7bb16d5bd11891a633ef7892
[ "Apache-2.0" ]
51
2021-04-21T10:40:13.000Z
2021-09-10T22:09:26.000Z
tests/universal_functions_tests/divide_tests/inplace_broadcast.py
marcinz/cunumeric
c40b038d4eb0611f7bb16d5bd11891a633ef7892
[ "Apache-2.0" ]
9
2021-04-14T03:07:42.000Z
2021-09-22T17:02:53.000Z
# Copyright 2021 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
24.432432
74
0.710177
4b51546e89cfe26aba153444cf2c66e7f5c35b1c
17,905
py
Python
src/deep_dialog/agents/agent_dqn.py
YenChen-Wu/DDQ
a17ae49e232ead4519863bb2836f8026babb38e0
[ "MIT" ]
null
null
null
src/deep_dialog/agents/agent_dqn.py
YenChen-Wu/DDQ
a17ae49e232ead4519863bb2836f8026babb38e0
[ "MIT" ]
null
null
null
src/deep_dialog/agents/agent_dqn.py
YenChen-Wu/DDQ
a17ae49e232ead4519863bb2836f8026babb38e0
[ "MIT" ]
null
null
null
''' Created on Oct 30, 2017 An DQN Agent modified for DDQ Agent Some methods are not consistent with super class Agent. @author: Baolin Peng ''' import random, copy, json import cPickle as pickle import numpy as np from collections import namedtuple, deque from deep_dialog import dialog_config from agent import A...
45.444162
130
0.556102
42726c759473e42b254e756406c5702fd9edf1a3
2,389
py
Python
droidlet/memory/robot/tests/test_low_level_memory.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
droidlet/memory/robot/tests/test_low_level_memory.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
droidlet/memory/robot/tests/test_low_level_memory.py
CowherdChris/droidlet
8d965c1ebc38eceb6f8083c52b1146c1bc17d5e1
[ "MIT" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. """ import unittest from droidlet.memory.robot.loco_memory import LocoAgentMemory from droidlet.memory.robot.loco_memory_nodes import DetectedObjectNode from droidlet.base_util import Pos, Look, Player class DO: def __init__(self, eid, label, properties, color,...
34.128571
109
0.615739
e7f9b9656ded1aa62bdd56ca74bf003068f4f806
3,097
py
Python
library/nsxt_fabric_compute_managers_facts.py
lxiaopei/ansible-for-nsxt
b2e0eb23dbc50d0bf2b78aeb379db4262052ec9a
[ "BSD-2-Clause" ]
4
2020-12-22T18:39:33.000Z
2021-08-05T00:35:57.000Z
library/nsxt_fabric_compute_managers_facts.py
lxiaopei/ansible-for-nsxt
b2e0eb23dbc50d0bf2b78aeb379db4262052ec9a
[ "BSD-2-Clause" ]
null
null
null
library/nsxt_fabric_compute_managers_facts.py
lxiaopei/ansible-for-nsxt
b2e0eb23dbc50d0bf2b78aeb379db4262052ec9a
[ "BSD-2-Clause" ]
1
2021-05-21T15:14:12.000Z
2021-05-21T15:14:12.000Z
#!/usr/bin/env python # # Copyright 2018 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR...
36.435294
136
0.738779
4d1860029c172b29cb0eaee7f7e8dc5617e42295
23,439
py
Python
jodconverter-web/src/main/office/program/python-core-2.7.6/lib/multiprocessing/pool.py
huleigithup/filepreview
815fac0e21547301604bb5fd623a91d885cb4437
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
BitmessageKit/Vendor/static-python/Lib/multiprocessing/pool.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
BitmessageKit/Vendor/static-python/Lib/multiprocessing/pool.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# # Module providing the `Pool` class for managing a process pool # # multiprocessing/pool.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redist...
32.020492
83
0.570118
03f599609aeb8cb19e858a6e978f51a9dd8c9cb1
8,757
py
Python
tests/test_compilejsx.py
virtalabs/django-jsx
ba8f77ca9b96c96328b44886b3c7389231570210
[ "BSD-2-Clause" ]
63
2016-10-14T13:41:12.000Z
2022-03-11T22:13:10.000Z
tests/test_compilejsx.py
virtalabs/django-jsx
ba8f77ca9b96c96328b44886b3c7389231570210
[ "BSD-2-Clause" ]
5
2017-01-27T16:39:16.000Z
2019-01-16T19:22:13.000Z
tests/test_compilejsx.py
virtalabs/django-jsx
ba8f77ca9b96c96328b44886b3c7389231570210
[ "BSD-2-Clause" ]
6
2016-10-29T11:25:13.000Z
2019-01-07T02:14:29.000Z
from __future__ import unicode_literals import hashlib import io import os import sys import tempfile from django.core.management import call_command from django.test import TestCase from django_jsx.management.commands.compilejsx import compile_templates, END_JS, START_JS class CompileJSXTest(TestCase): """ ...
39.624434
116
0.639374
e297562190a1076047b5c62365b34c4169906407
291
py
Python
building/flowerTrail.py
cssidy/minecraft
84aeef7c4658a048babcd7c7f900775dd8db41fa
[ "MIT" ]
1
2020-11-05T04:06:02.000Z
2020-11-05T04:06:02.000Z
building/flowerTrail.py
cssidy/minecraft
84aeef7c4658a048babcd7c7f900775dd8db41fa
[ "MIT" ]
null
null
null
building/flowerTrail.py
cssidy/minecraft
84aeef7c4658a048babcd7c7f900775dd8db41fa
[ "MIT" ]
null
null
null
# as seen in Learn To Program With Minecraft: Transform Your World With The Power of Python, written by Craig Richardson from mcpi.minecraft import Minecraft import time mc = Minecraft.create() while True: pos = mc.player.getPos() mc.setBlock(pos.x, pos.y, pos.z, 38) time.sleep(0.2)
22.384615
120
0.745704
c34313eb74d5698dd48500c63d0d97f6b9cc2507
5,685
py
Python
skinnywms/fields/GRIBField.py
EduardRosert/skinnywms
c324428573e17c829a7b6c381f95feedfd0ccd9a
[ "Apache-2.0" ]
32
2019-08-30T16:51:38.000Z
2022-03-22T13:30:02.000Z
skinnywms/fields/GRIBField.py
EduardRosert/skinnywms
c324428573e17c829a7b6c381f95feedfd0ccd9a
[ "Apache-2.0" ]
26
2019-09-12T07:39:55.000Z
2022-02-16T17:30:39.000Z
skinnywms/fields/GRIBField.py
DeutscherWetterdienst/skinnywms
cf415547634864b699697cbbbe4ee4b6648405ac
[ "Apache-2.0" ]
20
2019-08-21T07:29:59.000Z
2022-02-16T08:38:43.000Z
# (C) Copyright 2012-2019 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovern...
32.118644
101
0.574494
7f17aea4803f196a0aed8b0dd6201d89df52ca6d
2,785
py
Python
modules/action/exploit_msf_javarmi.py
mrpnkt/apt2
542fb0593069c900303421f3f24a499ce8f3a6a8
[ "MIT" ]
2
2018-05-09T15:57:07.000Z
2018-11-20T10:11:51.000Z
modules/action/exploit_msf_javarmi.py
zu3s/apt2-1
67325052d2713a363183c23188a67e98a379eec7
[ "MIT" ]
null
null
null
modules/action/exploit_msf_javarmi.py
zu3s/apt2-1
67325052d2713a363183c23188a67e98a379eec7
[ "MIT" ]
1
2018-11-02T18:31:55.000Z
2018-11-02T18:31:55.000Z
import re from core.actionModule import actionModule from core.keystore import KeyStore as kb from core.mymsf import myMsf from core.utils import Utils class exploit_msf_javarmi(actionModule): def __init__(self, config, display, lock): super(exploit_msf_javarmi, self).__init__(config, display, lock) ...
37.635135
115
0.549013
46cbdf11402f4a5a2aea63692e9b628a02be83ae
2,414
py
Python
tools/config_validation/validate_fragment.py
lopter-dbx/envoy
d342e96e7ba2319329838e799021838354e88118
[ "Apache-2.0" ]
5
2020-11-30T15:36:04.000Z
2022-02-28T00:30:28.000Z
tools/config_validation/validate_fragment.py
lopter-dbx/envoy
d342e96e7ba2319329838e799021838354e88118
[ "Apache-2.0" ]
104
2021-10-03T11:09:20.000Z
2022-01-05T00:21:59.000Z
tools/config_validation/validate_fragment.py
lopter-dbx/envoy
d342e96e7ba2319329838e799021838354e88118
[ "Apache-2.0" ]
12
2020-09-11T14:26:33.000Z
2022-03-24T12:26:30.000Z
# Validate a YAML fragment against an Envoy API proto3 type. # # Example usage: # # bazel run //tools/config_validation:validate_fragment -- \ # envoy.config.bootstrap.v3.Bootstrap $PWD/configs/envoyproxy_io_proxy.yaml import json import pathlib import sys import yaml from google.protobuf import descriptor_pb2 fro...
33.068493
96
0.764292
78e63abe4289b6190ed69c3d63de290aa0e03537
7,453
py
Python
preferences_color.py
techdragon/graph-explorer
729b4e19dbfdd0f2ba031db08e6b5563c4eb6613
[ "Apache-2.0" ]
1
2019-06-27T13:05:16.000Z
2019-06-27T13:05:16.000Z
preferences_color.py
techdragon/graph-explorer
729b4e19dbfdd0f2ba031db08e6b5563c4eb6613
[ "Apache-2.0" ]
null
null
null
preferences_color.py
techdragon/graph-explorer
729b4e19dbfdd0f2ba031db08e6b5563c4eb6613
[ "Apache-2.0" ]
null
null
null
from colors import colors from backend import get_action_on_rules_match # convenience functions def get_unique_tag_value(graph, target, tag): ''' get a tag corresponding to a target, if it's clear the target "owns" the tag. this makes sure, if you're looking at cpu graphs with group by server, each ...
34.50463
115
0.504897
6139f994853b9ed4a5acd291f17192fddfc324bd
15,188
py
Python
src/runtime/runtime-gdb.py
simonferquel/go
f2a4c139c1e0cff35f89e4b5a531d5dedc5ed8e0
[ "BSD-3-Clause" ]
536
2015-01-13T08:43:17.000Z
2021-09-27T11:36:22.000Z
src/runtime/runtime-gdb.py
simonferquel/go
f2a4c139c1e0cff35f89e4b5a531d5dedc5ed8e0
[ "BSD-3-Clause" ]
17
2015-01-11T20:42:38.000Z
2021-11-23T01:18:26.000Z
src/runtime/runtime-gdb.py
simonferquel/go
f2a4c139c1e0cff35f89e4b5a531d5dedc5ed8e0
[ "BSD-3-Clause" ]
161
2015-01-12T10:02:58.000Z
2022-01-05T07:27:06.000Z
# Copyright 2010 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """GDB Pretty printers and convenience functions for Go's runtime structures. This script is loaded by GDB when it finds a .debug_gdb_scripts section in the compi...
25.104132
118
0.686924
6011c83df49cb446b152e504c5b16a5dc45fb9be
4,115
py
Python
python/envs/hackathon/lib/python3.7/site-packages/gensim/test/test_keywords.py
FISHackathon2020/RAN
cb5e1459f4d26bd619ba7244979fce277b44aba9
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
python/envs/hackathon/lib/python3.7/site-packages/gensim/test/test_keywords.py
FISHackathon2020/RAN
cb5e1459f4d26bd619ba7244979fce277b44aba9
[ "MIT" ]
null
null
null
python/envs/hackathon/lib/python3.7/site-packages/gensim/test/test_keywords.py
FISHackathon2020/RAN
cb5e1459f4d26bd619ba7244979fce277b44aba9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Automated test to reproduce the results of Mihalcea and Tarau (2004). Mihalcea and Tarau (2004) introduces the TextRank summarization algorithm. As a validation of the gensim implementation we repr...
38.101852
116
0.670717
53569f4b983a939d121273e7302500db05b9b037
366
py
Python
tests/test_exceptions.py
Roynecro97/easypy
9f36732b558477557b8a57cfad2840767eff0d12
[ "BSD-3-Clause" ]
7
2020-03-23T08:30:29.000Z
2020-12-05T14:51:49.000Z
tests/test_exceptions.py
Roynecro97/easypy
9f36732b558477557b8a57cfad2840767eff0d12
[ "BSD-3-Clause" ]
null
null
null
tests/test_exceptions.py
Roynecro97/easypy
9f36732b558477557b8a57cfad2840767eff0d12
[ "BSD-3-Clause" ]
6
2020-04-28T12:20:14.000Z
2022-02-15T15:01:42.000Z
from easypy.exceptions import TException from easypy.bunch import Bunch class T(TException): template = "The happened: {what}" def test_pickle_texception(): import pickle t1 = T(what="happened", a=1, b=Bunch(x=[1, 2, 3], y=range(5))) t2 = pickle.loads(pickle.dumps(t1)) assert t1.render() == t2...
21.529412
66
0.666667
b830bc36c24bab7853e81f4fe55a1231e90d9390
110
py
Python
src/pipupgrade/jobs/__init__.py
brian6932/pipupgrade
daea6fe5a4e5300a4e8299e079e3d1d5e56b8a18
[ "MIT" ]
null
null
null
src/pipupgrade/jobs/__init__.py
brian6932/pipupgrade
daea6fe5a4e5300a4e8299e079e3d1d5e56b8a18
[ "MIT" ]
null
null
null
src/pipupgrade/jobs/__init__.py
brian6932/pipupgrade
daea6fe5a4e5300a4e8299e079e3d1d5e56b8a18
[ "MIT" ]
null
null
null
jobs = [ { "name": "build_dependency_tree" }, { "name": "build_proxy_list" } ]
13.75
39
0.445455
987b746a2d9822f86ca2fb11200ea9434e3ebe1b
3,667
py
Python
generate_instagram_session.py
Soebb/Instagram-Bot
ab5d830498ef3dccdcc26a728cd212b11258d291
[ "MIT" ]
195
2021-06-02T05:53:27.000Z
2022-03-30T20:41:30.000Z
generate_instagram_session.py
Soebb/Instagram-Bot
ab5d830498ef3dccdcc26a728cd212b11258d291
[ "MIT" ]
11
2021-06-06T13:39:17.000Z
2022-03-25T19:47:26.000Z
generate_instagram_session.py
Soebb/Instagram-Bot
ab5d830498ef3dccdcc26a728cd212b11258d291
[ "MIT" ]
295
2021-06-03T13:56:01.000Z
2022-03-29T05:22:54.000Z
#MIT License #Copyright (c) 2021 subinps #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, dis...
35.601942
153
0.67712
e00b2d9b2b9b94e8a9b26245a0dcf91822b48ca3
797
py
Python
src/Not in use/proxie_check.py
Data-is-life/apt-get-home
77a212c19a90f201c70759fd9e99493657247ae7
[ "Unlicense" ]
null
null
null
src/Not in use/proxie_check.py
Data-is-life/apt-get-home
77a212c19a90f201c70759fd9e99493657247ae7
[ "Unlicense" ]
null
null
null
src/Not in use/proxie_check.py
Data-is-life/apt-get-home
77a212c19a90f201c70759fd9e99493657247ae7
[ "Unlicense" ]
null
null
null
import time import sys import urllib import time import random from urllib.request import urlopen, Request from urllib.error import HTTPError from urllib.error import URLError import requests import string def proxie_check(proxies): default_list = [] url = 'https://httpbin.org/ip' for i in range(0, len(pr...
25.709677
61
0.61857
ef79750d2f6f31e6cc59122d98d5bf69fd395549
8,122
py
Python
pyquil/tests/test_noise.py
nicolasochem/pyquil
3d2d5439d6773681e12fbafcf40bddc37cea18c2
[ "Apache-2.0" ]
3
2021-11-08T11:46:42.000Z
2021-12-27T10:13:38.000Z
pyquil/tests/test_noise.py
nicolasochem/pyquil
3d2d5439d6773681e12fbafcf40bddc37cea18c2
[ "Apache-2.0" ]
2
2021-11-09T14:57:09.000Z
2022-01-12T12:35:58.000Z
artifacts/old_dataset_versions/original_commits_v02/pyquil/pyquil#384/after/test_noise.py
MattePalte/Bugs-Quantum-Computing-Platforms
0c1c805fd5dfce465a8955ee3faf81037023a23e
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import pytest from mock import Mock from pyquil.api import QPUConnection from pyquil.gates import CZ, RZ, RX, I, H from pyquil.noise import (damping_kraus_map, dephasing_kraus_map, tensor_kraus_maps, _get_program_gates, _decoherence_nois...
36.097778
98
0.610933
c36f0a4973cb4b962ff502526a8ca99ae068ddf6
1,632
py
Python
translate-google.py
sgbalogh/nlu-winograd
5c067ae9b03dffddfb5627d4764e771f7f2470d2
[ "MIT" ]
1
2018-12-22T08:34:02.000Z
2018-12-22T08:34:02.000Z
translate-google.py
sgbalogh/nlu-winograd
5c067ae9b03dffddfb5627d4764e771f7f2470d2
[ "MIT" ]
null
null
null
translate-google.py
sgbalogh/nlu-winograd
5c067ae9b03dffddfb5627d4764e771f7f2470d2
[ "MIT" ]
2
2018-04-18T04:13:43.000Z
2020-01-30T23:33:15.000Z
import json import requests def translate(api_key, text, source, target): api_endpoint = "https://translation.googleapis.com/language/translate/v2?key=" + api_key headers = {'Content-Type': 'application/json'} query = { 'q': text, 'source': source, 'target': target, 'format'...
35.478261
119
0.635417
704138347a03ef22919264aafcc5a464eaab1963
871
py
Python
tests/common/datatypes.py
ssato/ansibl-lint-custom-rules
bdef2bab13bdb08509aed45a274f9f1a681542ec
[ "MIT" ]
7
2020-05-26T16:01:19.000Z
2022-02-11T15:12:39.000Z
tests/common/datatypes.py
ansible-middleware/ansible-lint-custom-rules
181ec6b8e562fc136caf6fe67a488c9e996686a3
[ "MIT" ]
6
2021-05-02T15:28:38.000Z
2022-02-26T15:22:54.000Z
tests/common/datatypes.py
ansible-middleware/ansible-lint-custom-rules
181ec6b8e562fc136caf6fe67a488c9e996686a3
[ "MIT" ]
3
2021-05-11T03:13:20.000Z
2022-02-04T08:44:51.000Z
# Copyright (C) 2020, 2021 Satoru SATOH <satoru.satoh@gmail.com> # SPDX-License-Identifier: MIT # # pylint: disable=inherit-non-class """Common utility functios and classes - datatypes. """ import pathlib import typing class SubCtx(typing.NamedTuple): """A namedtuple object to keep sub context info, conf and env....
24.194444
66
0.681975
ddef13a94367bc32ea7f52dba0b0bcf748f88186
3,135
py
Python
structure/bridge.py
GustavoBoaz/design_patterns
b46c6dd6e355fce8f769b76c432ac8a00f236438
[ "MIT" ]
null
null
null
structure/bridge.py
GustavoBoaz/design_patterns
b46c6dd6e355fce8f769b76c432ac8a00f236438
[ "MIT" ]
null
null
null
structure/bridge.py
GustavoBoaz/design_patterns
b46c6dd6e355fce8f769b76c432ac8a00f236438
[ "MIT" ]
null
null
null
""" Bridge é um padrão de design estrutural que permite dividir uma classe grande ou um conjunto de classes estreitamente relacionadas em duas hierarquias separadas - abstração e implementação - que podem ser desenvolvidas independentemente uma da outra. COMO IMPLEMENTAR: 1. Identifique as di...
36.034483
86
0.622648
135ac1b73f078b8a6c74184606b375879699d9ef
2,284
py
Python
nand_io/__main__.py
Noltari/nand-io
23442ed57950360cd4104d77959bd3001170b333
[ "MIT" ]
null
null
null
nand_io/__main__.py
Noltari/nand-io
23442ed57950360cd4104d77959bd3001170b333
[ "MIT" ]
null
null
null
nand_io/__main__.py
Noltari/nand-io
23442ed57950360cd4104d77959bd3001170b333
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT """NAND IO main.""" import argparse from .common import auto_int from .const import SERIAL_DEF_SPEED from .interface import NandIO from .logger import INFO def main(): """NAND IO.""" parser = argparse.ArgumentParser(description="") parser.add_argument( "--bootload...
21.961538
52
0.528021
037fc222c9c75e55678bcdeca335ee450699b1be
2,978
py
Python
mips_revisit/sync.py
vlad17/mips_revisit
0777b37d9727d785487379e5b1f6dcd146d8b17c
[ "Apache-2.0" ]
null
null
null
mips_revisit/sync.py
vlad17/mips_revisit
0777b37d9727d785487379e5b1f6dcd146d8b17c
[ "Apache-2.0" ]
null
null
null
mips_revisit/sync.py
vlad17/mips_revisit
0777b37d9727d785487379e5b1f6dcd146d8b17c
[ "Apache-2.0" ]
null
null
null
""" Directory syncer, taken from track, which took it from ray. https://github.com/richardliaw/track """ import distutils.spawn import shutil import subprocess import time from urllib.parse import urlparse import hashlib from . import log from .utils import timeit try: # py3 from shlex import quote except Impo...
27.072727
78
0.619208
2191bfff36fb8bf97a5ce64f3687722cd59d0947
1,891
py
Python
packages/micropython-official/v1.11/esp8266/stubs/ssd1306.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
18
2019-07-11T13:31:09.000Z
2022-01-27T06:38:40.000Z
packages/micropython-official/v1.11/esp8266/stubs/ssd1306.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
9
2019-09-01T21:44:49.000Z
2022-02-04T20:55:08.000Z
packages/micropython-official/v1.11/esp8266/stubs/ssd1306.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'ssd1306' on esp8266 v1.11 """ # MCU: (sysname='esp8266', nodename='esp8266', release='2.2.0-dev(9422289)', version='v1.11-8-g48dcbbe60 on 2019-05-29', machine='ESP module with ESP8266') # Stubber: 1.2.0 SET_CHARGE_PUMP = 141 SET_COL_ADDR = 33 SET_COM_OUT_DIR = 192 SET_COM_PIN_CFG = 218 SET_CONTRAST = 129 S...
12.691275
155
0.518244
89bf058e812e95129d664ccceb0964df0b176be3
7,204
py
Python
client/python/easemlclient/easemlclient/model/dataset.py
xzyaoi/easeml
50e028c278013bf35f6682b2f97aa5cdc81382e2
[ "MIT" ]
null
null
null
client/python/easemlclient/easemlclient/model/dataset.py
xzyaoi/easeml
50e028c278013bf35f6682b2f97aa5cdc81382e2
[ "MIT" ]
null
null
null
client/python/easemlclient/easemlclient/model/dataset.py
xzyaoi/easeml
50e028c278013bf35f6682b2f97aa5cdc81382e2
[ "MIT" ]
null
null
null
""" Implementation of the `Dataset` class. """ import pyrfc3339 from copy import deepcopy from datetime import datetime from enum import Enum from io import FileIO from tusclient import client as tus_client from typing import Dict, Optional, Any, Iterator, Tuple, List, IO from .core import Connection from .process im...
34.14218
106
0.620905
5ef2a5ca2d7eb71d4e37a03b5b752b5870570d61
1,769
py
Python
test/functional/sapling_malleable_sigs.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/sapling_malleable_sigs.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/sapling_malleable_sigs.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Zcash developers # Copyright (c) 2020 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . from test_framework.test_framework import SurgeTestFramework from test_fr...
31.035088
75
0.677784
d42b6d9a88c3a65dd0d718006a37918cae13dba9
1,747
py
Python
misc/python/materialize/checks/having.py
guswynn/materialize
f433173ed71f511d91311769ec58c2d427dd6c3b
[ "MIT" ]
null
null
null
misc/python/materialize/checks/having.py
guswynn/materialize
f433173ed71f511d91311769ec58c2d427dd6c3b
[ "MIT" ]
157
2021-12-28T19:17:45.000Z
2022-03-31T17:44:27.000Z
misc/python/materialize/checks/having.py
guswynn/materialize
f433173ed71f511d91311769ec58c2d427dd6c3b
[ "MIT" ]
null
null
null
# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software...
31.763636
102
0.544362
a136d7364bcd580e9cf3cfd3375a5be3ee06e662
63,303
py
Python
odps/df/backends/pd/compiler.py
alvinyeats/aliyun-odps-python-sdk
ae65e3f5efddb2e5fa85291844f2cc284c8b530a
[ "Apache-2.0" ]
null
null
null
odps/df/backends/pd/compiler.py
alvinyeats/aliyun-odps-python-sdk
ae65e3f5efddb2e5fa85291844f2cc284c8b530a
[ "Apache-2.0" ]
null
null
null
odps/df/backends/pd/compiler.py
alvinyeats/aliyun-odps-python-sdk
ae65e3f5efddb2e5fa85291844f2cc284c8b530a
[ "Apache-2.0" ]
1
2017-06-27T08:18:29.000Z
2017-06-27T08:18:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
38.788603
114
0.525299
66363b3ee0572170ff1c87c7c325ba8d1796d9e1
1,346
py
Python
c1_2_processes/s22_ex1_26.py
zhou-zhenyi/sicp
ee6475d79a486a3bdc458378c55d0721195ea7d6
[ "MIT" ]
null
null
null
c1_2_processes/s22_ex1_26.py
zhou-zhenyi/sicp
ee6475d79a486a3bdc458378c55d0721195ea7d6
[ "MIT" ]
null
null
null
c1_2_processes/s22_ex1_26.py
zhou-zhenyi/sicp
ee6475d79a486a3bdc458378c55d0721195ea7d6
[ "MIT" ]
null
null
null
import sys sys.setrecursionlimit(10000000) from time import time_ns from random import randint from util import square from util import even def timed_prime_test(n): return start_prime_test(n, time_ns()) def start_prime_test(n, start_time): is_prime = fast_prime(n, 1) if is_prime: report_prime(...
21.709677
84
0.567608
58480a64dd5f4715d41bf918c0a7e8c6254ad404
1,044
py
Python
clicommandhandler.py
farooq-teqniqly/command-line-experiements
b4997b23f51a073c6a3af28888132572e3387fa8
[ "MIT" ]
null
null
null
clicommandhandler.py
farooq-teqniqly/command-line-experiements
b4997b23f51a073c6a3af28888132572e3387fa8
[ "MIT" ]
null
null
null
clicommandhandler.py
farooq-teqniqly/command-line-experiements
b4997b23f51a073c6a3af28888132572e3387fa8
[ "MIT" ]
null
null
null
import abc import json from typing import Any import click class CliCommandHandler(click.Command, abc.ABC): def __init__(self, name): super(CliCommandHandler, self).__init__( name=name, params=[click.Option(["-o", "--output"])] ) @classmethod def _on_output(cls, ctx, output):...
28.216216
81
0.556513
fc437b6022209ef1f155aec489831b1a7a2bf84b
18,402
py
Python
tests/test_schedule_compute.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
7
2019-08-20T02:43:44.000Z
2019-12-13T14:26:05.000Z
tests/test_schedule_compute.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
null
null
null
tests/test_schedule_compute.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
2
2019-07-18T14:13:35.000Z
2020-01-04T01:45:34.000Z
import heterocl as hcl import numpy as np def test_pipeline(): hcl.init() initiation_interval = 4 a = hcl.placeholder((10, 20)) b = hcl.placeholder((10, 20)) c = hcl.compute(a.shape, lambda i, j: a[i, j] + b[i, j]) s = hcl.create_schedule([a, b, c]) s[c].pipeline(c.axis[0], initiation_inter...
38.020661
88
0.574122
4b513df6a7c91858a3fc62f61a52d2811837b0b5
11,504
py
Python
.github/scripts/packager.py
NoMaY-jp/FreeRTOS
7e8023a0f5095a08ee61784b7c6e74f7430cfad3
[ "MIT" ]
null
null
null
.github/scripts/packager.py
NoMaY-jp/FreeRTOS
7e8023a0f5095a08ee61784b7c6e74f7430cfad3
[ "MIT" ]
null
null
null
.github/scripts/packager.py
NoMaY-jp/FreeRTOS
7e8023a0f5095a08ee61784b7c6e74f7430cfad3
[ "MIT" ]
1
2021-08-15T04:05:49.000Z
2021-08-15T04:05:49.000Z
#!/usr/bin/env python3 import os, sys from argparse import ArgumentParser import shutil from zipfile import ZipFile import subprocess FREERTOS_GIT_LINK = 'https://github.com/FreeRTOS/FreeRTOS.git' LABS_GIT_LINK = 'https://github.com/FreeRTOS/FreeRTOS-Labs.git' DIR_INTERMEDIATE_FILES = os.path.join(os.path.basename(_...
40.507042
131
0.599096
931d2ee1f16fcc0b65231d862418fb54e2b4df84
1,925
py
Python
example/example_test.py
bsquizz/pysurge
f225f8518611bf742dfbc1919da80e08e7a31c1f
[ "MIT" ]
null
null
null
example/example_test.py
bsquizz/pysurge
f225f8518611bf742dfbc1919da80e08e7a31c1f
[ "MIT" ]
4
2020-07-09T02:06:47.000Z
2020-08-03T15:11:27.000Z
example/example_test.py
bsquizz/pysurge
f225f8518611bf742dfbc1919da80e08e7a31c1f
[ "MIT" ]
null
null
null
import time import uuid import requests from pysurge import TestCase class ExampleTest(TestCase): @classmethod def startup(cls): # A single requests session will be used for all tests fired in a # child process' thread pool cls.session = requests.Session() @classmethod def s...
31.048387
90
0.631169
d1bdf5d12343331d31148f699093dc841acdd7c1
2,654
py
Python
src/amqp-examples/fortune-cookie-client.py
vert-x3/vertx-amqp-service
4f9296b0f5771da2a0a14ef37b2abb469623d2b8
[ "Apache-2.0" ]
3
2015-07-03T08:42:16.000Z
2015-12-04T23:23:45.000Z
src/amqp-examples/fortune-cookie-client.py
vert-x3/vertx-amqp-service
4f9296b0f5771da2a0a14ef37b2abb469623d2b8
[ "Apache-2.0" ]
11
2015-06-04T16:59:37.000Z
2021-06-08T14:39:20.000Z
src/amqp-examples/fortune-cookie-client.py
vert-x3/vertx-amqp-service
4f9296b0f5771da2a0a14ef37b2abb469623d2b8
[ "Apache-2.0" ]
4
2015-03-19T02:23:53.000Z
2017-08-07T23:25:48.000Z
#!/usr/bin/env 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 # "...
42.126984
104
0.701583