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
6b35e9df8dffac5726297f21906b18f189845d37
298
py
Python
automation/tincrepo/main/pxf/features/hdfs/readable/text/encoding/runTest.py
lchx1010/pxf
f6e11f91fb8c01ed27fc829beb3800f3b253c209
[ "Apache-2.0" ]
46
2018-10-22T23:34:03.000Z
2022-03-31T09:31:34.000Z
automation/tincrepo/main/pxf/features/hdfs/readable/text/encoding/runTest.py
lchx1010/pxf
f6e11f91fb8c01ed27fc829beb3800f3b253c209
[ "Apache-2.0" ]
317
2018-10-05T23:51:48.000Z
2022-03-22T17:38:52.000Z
automation/tincrepo/main/pxf/features/hdfs/readable/text/encoding/runTest.py
lchx1010/pxf
f6e11f91fb8c01ed27fc829beb3800f3b253c209
[ "Apache-2.0" ]
46
2018-10-10T18:55:00.000Z
2022-03-28T07:27:04.000Z
from mpp.models import SQLTestCase from mpp.models import SQLConcurrencyTestCase class PxfHdfsReadSmallDataDifferentEncoding(SQLConcurrencyTestCase): """ @db_name pxfautomation @concurrency 1 @gpdiff True """ sql_dir = 'sql' ans_dir = 'expected' out_dir = 'output'
22.923077
68
0.721477
26017e793f9418a7b8a1a11eabfeaf3ebe3d6463
34
py
Python
python/pyfunc-scaffolding/{{cookiecutter.model_slug}}/src/constant.py
ashwinath/merlin
087a7fa6fb21e4c771d64418bd58873175226ca1
[ "Apache-2.0" ]
97
2020-10-15T08:03:56.000Z
2022-03-31T22:30:59.000Z
python/pyfunc-scaffolding/{{cookiecutter.model_slug}}/src/constant.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
91
2020-10-26T03:15:27.000Z
2022-03-31T10:19:55.000Z
python/pyfunc-scaffolding/{{cookiecutter.model_slug}}/src/constant.py
ibnummuhammad/merlin
acf10a350bcacfdfe67f7020d535467b71ff1d89
[ "Apache-2.0" ]
26
2020-10-21T03:53:36.000Z
2022-03-16T06:43:15.000Z
ARTIFACT_MODEL_PATH = "model_path"
34
34
0.852941
3105ff23b9c64a55ea00bc0b0607d9b5dbb914e5
134
py
Python
toeplitzlda/classification/__init__.py
jsosulski/toeplitzlda
ed56fb22fa70fb6c58b0c18db560eb3fd3f488c3
[ "BSD-3-Clause-Clear" ]
3
2022-02-14T12:47:33.000Z
2022-03-17T11:48:57.000Z
toeplitzlda/classification/__init__.py
jsosulski/toeplitzlda
ed56fb22fa70fb6c58b0c18db560eb3fd3f488c3
[ "BSD-3-Clause-Clear" ]
3
2022-02-11T11:05:22.000Z
2022-02-11T11:06:51.000Z
toeplitzlda/classification/__init__.py
jsosulski/toeplitzlda
ed56fb22fa70fb6c58b0c18db560eb3fd3f488c3
[ "BSD-3-Clause-Clear" ]
1
2022-03-07T08:13:03.000Z
2022-03-07T08:13:03.000Z
from . import covariance from .toeplitzlda import ( EpochsVectorizer, ShrinkageLinearDiscriminantAnalysis, ToeplitzLDA, )
19.142857
40
0.768657
c79c71cf81c88bda220c698b29b9b2602a9616b2
19,614
py
Python
lib/python2.7/site-packages/scipy/io/tests/test_idl.py
wfehrnstrom/harmonize
e5661d24b2021739e8ac4bf1d3a530eda4e155b3
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
SLpackage/private/thirdparty/pythonpkgs/scipy/scipy_0.19.1/lib/python2.7/site-packages/scipy/io/tests/test_idl.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
SLpackage/private/thirdparty/pythonpkgs/scipy/scipy_0.19.1/lib/python2.7/site-packages/scipy/io/tests/test_idl.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
from __future__ import division, print_function, absolute_import from os import path import warnings DATA_PATH = path.join(path.dirname(__file__), 'data') import numpy as np from numpy.testing import (assert_equal, assert_array_equal, run_module_suite, assert_) from scipy.io.idl import readsav def object_arra...
44.175676
105
0.632456
84178a0ece7f70b8a176b3ad1fcbafd91f457b19
422
py
Python
kubails/conftest.py
DevinSit/kubails
b3b2f9487d815868f0fbe9fae649789a40b50ad8
[ "MIT" ]
2
2019-05-28T00:26:52.000Z
2019-08-02T23:02:19.000Z
kubails/conftest.py
DevinSit/kubails
b3b2f9487d815868f0fbe9fae649789a40b50ad8
[ "MIT" ]
51
2019-12-23T04:34:40.000Z
2022-02-12T02:28:44.000Z
kubails/conftest.py
DevinSit/kubails
b3b2f9487d815868f0fbe9fae649789a40b50ad8
[ "MIT" ]
1
2019-09-11T20:12:18.000Z
2019-09-11T20:12:18.000Z
""" The first-run configuration file for PyTest. PyTest runs the code in this file before any tests. So far, this is just used to set a flag so that code can check whether or not it's running in a test (used to disable the file logger when testing). For more information about conftest.py, see https://docs.pytest.org/en...
32.461538
100
0.755924
ebbec2b31f51b42977f815252637c6fdbe6791a0
539
py
Python
src/the_pitch/indicators/ema.py
dpasse/the_pitch
8b36cf9a4c798fc22feda55d23ed06218be30965
[ "MIT" ]
null
null
null
src/the_pitch/indicators/ema.py
dpasse/the_pitch
8b36cf9a4c798fc22feda55d23ed06218be30965
[ "MIT" ]
null
null
null
src/the_pitch/indicators/ema.py
dpasse/the_pitch
8b36cf9a4c798fc22feda55d23ed06218be30965
[ "MIT" ]
null
null
null
import pandas as pd from .abstract_indicator import AbstractIndicator from ..converters import utils class EMA(AbstractIndicator): def __init__(self, column: str = 'close', period: int = 20): super().__init__(f'ema_{column}_{period}') self.column = column self.period = period def com...
28.368421
66
0.653061
3f464d4ec6ce8060b10d6baec0d84a36a683ccf0
590
py
Python
experiment_scripts/read_pickle.py
anilesec/attention-op
7a20650e3ae42318cdde6be138b020f7f161bfce
[ "MIT" ]
null
null
null
experiment_scripts/read_pickle.py
anilesec/attention-op
7a20650e3ae42318cdde6be138b020f7f161bfce
[ "MIT" ]
null
null
null
experiment_scripts/read_pickle.py
anilesec/attention-op
7a20650e3ae42318cdde6be138b020f7f161bfce
[ "MIT" ]
null
null
null
import pickle import numpy as np objects = [] with(open("./results/tsp/tsp100_test_seed1234/tsp100_test_seed1234-pretrained_tsp_100-greedy-t1-0-10000.pkl", "rb")) as openfile: while True: try: objects.append(pickle.load(openfile)) except EOFError: break #print(isinstance(...
21.071429
129
0.632203
372421a4cd7755ff3c4ed104baf281d5a6f29ede
4,969
py
Python
Polynomials.py
DatHydroGuy/QRCode
3145ad7b5b64bb5561c772c1b4d8875f9858dc37
[ "MIT" ]
null
null
null
Polynomials.py
DatHydroGuy/QRCode
3145ad7b5b64bb5561c772c1b4d8875f9858dc37
[ "MIT" ]
null
null
null
Polynomials.py
DatHydroGuy/QRCode
3145ad7b5b64bb5561c772c1b4d8875f9858dc37
[ "MIT" ]
null
null
null
class Polynomials: """ All calculations must be performed within Galois field GF(256). Polynomials are represented in alpha notation. 10 251 9 67 8 46 7 61 6 118 5 70 4 64 3 94 2 32 45 For example: x + α x + α x + α x + α x + α x + α x + α...
52.861702
119
0.565104
a2d46520e252237a11d580d6876fd50c3c16c705
2,684
py
Python
kobart/pytorch_kobart.py
swoook/KoBART-cloned
7d0812c8e94ded728b329070105940cbd59ab115
[ "MIT" ]
null
null
null
kobart/pytorch_kobart.py
swoook/KoBART-cloned
7d0812c8e94ded728b329070105940cbd59ab115
[ "MIT" ]
null
null
null
kobart/pytorch_kobart.py
swoook/KoBART-cloned
7d0812c8e94ded728b329070105940cbd59ab115
[ "MIT" ]
null
null
null
# coding=utf-8 # Modified MIT License # Software Copyright (c) 2020 SK telecom # 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 t...
41.292308
106
0.753353
d6a830bcd4955a2908f85722e9da8e7db1d12076
9,581
py
Python
Examples/TestZMQ.py
robmakie/dash.py
5b0e4515be96224e0b34c1126eee9b17789d38d1
[ "MIT" ]
null
null
null
Examples/TestZMQ.py
robmakie/dash.py
5b0e4515be96224e0b34c1126eee9b17789d38d1
[ "MIT" ]
null
null
null
Examples/TestZMQ.py
robmakie/dash.py
5b0e4515be96224e0b34c1126eee9b17789d38d1
[ "MIT" ]
null
null
null
#!/bin/python3 import time import random import argparse import signal import dashio import logging import platform class TestControls: def signal_cntrl_c(self, os_signal, os_frame): self.shutdown = True def init_logging(self, logfilename, level): log_level = logging.WARN if level ==...
40.256303
119
0.640539
94682429f2262ba13928af9a5ccf26bb6339b548
23,215
py
Python
tests/test_ssm/test_ssm_boto3.py
Joeskyyy/moto
46bf7f01767bdc745067dbd8c19f68758b5f7ef0
[ "Apache-2.0" ]
null
null
null
tests/test_ssm/test_ssm_boto3.py
Joeskyyy/moto
46bf7f01767bdc745067dbd8c19f68758b5f7ef0
[ "Apache-2.0" ]
null
null
null
tests/test_ssm/test_ssm_boto3.py
Joeskyyy/moto
46bf7f01767bdc745067dbd8c19f68758b5f7ef0
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import boto3 import botocore.exceptions import sure # noqa import datetime import uuid import json from botocore.exceptions import ClientError from nose.tools import assert_raises from moto import mock_ssm, mock_cloudformation @mock_ssm def test_delete_parameter(): cli...
29.423321
90
0.605643
5712bfd11bb2dd248b66269c69d910fa87d5bf2a
10,826
py
Python
cross3d/maya/mayasceneviewport.py
vedantirb/cross3d
e27c2dc80bf607ef7ccf3970b713bfea8211228b
[ "MIT" ]
129
2016-07-26T16:00:56.000Z
2021-08-07T03:44:41.000Z
cross3d/maya/mayasceneviewport.py
vedantirb/cross3d
e27c2dc80bf607ef7ccf3970b713bfea8211228b
[ "MIT" ]
3
2016-08-26T01:37:03.000Z
2019-08-13T01:46:01.000Z
cross3d/maya/mayasceneviewport.py
vedantirb/cross3d
e27c2dc80bf607ef7ccf3970b713bfea8211228b
[ "MIT" ]
33
2016-07-30T00:26:00.000Z
2022-03-09T07:10:54.000Z
import glob import os from functools import partial import maya.cmds as cmds import maya.OpenMaya as om import maya.OpenMayaUI as omUI import cross3d from cross3d import Exceptions, ExceptionRouter from cross3d.classes import FrameRange from cross3d.abstract.abstractsceneviewport import AbstractSceneViewport ...
41.478927
122
0.664234
64205aef13b3e88988f6d87e5edfd2b143f7f3cc
10,151
py
Python
neural_networks_tutorial.py
niumeng07/tutorials
4784b50e75424aa0289411912ac4f4c4e49a6cbc
[ "BSD-3-Clause" ]
1
2019-10-28T07:37:04.000Z
2019-10-28T07:37:04.000Z
neural_networks_tutorial.py
niumeng07/tutorials
4784b50e75424aa0289411912ac4f4c4e49a6cbc
[ "BSD-3-Clause" ]
null
null
null
neural_networks_tutorial.py
niumeng07/tutorials
4784b50e75424aa0289411912ac4f4c4e49a6cbc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Neural Networks =============== Neural networks can be constructed using the ``torch.nn`` package. Now that you had a glimpse of ``autograd``, ``nn`` depends on ``autograd`` to define models and differentiate them. An ``nn.Module`` contains layers, and a method ``forward(input)``\ that ret...
33.391447
166
0.622796
d4c0348365e2546951925353723928d8b8f88f04
1,182
py
Python
books/PythonCleanCode/ch5_decorator/decorator_side_effect_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch5_decorator/decorator_side_effect_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch5_decorator/decorator_side_effect_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 5: Decorators > Undesired side effects on decorators """ import time from functools import wraps from log import logger def traced_function_wrong(function): """An example of a badly defined decorator.""" logger.debug("started execution of %s", function) sta...
25.148936
82
0.645516
2ff99af4a56c934c0bb6b2bb59d902012579c3a5
1,826
py
Python
Cream/tools/generate_subImageNet.py
wkcn/AutoML
106cb0fbc19fa116c4ef5caf232acaaea85822c8
[ "MIT" ]
307
2020-10-29T13:17:02.000Z
2022-03-30T09:55:49.000Z
Cream/tools/generate_subImageNet.py
QPC-database/AutoML
75d86a5e3366a6c9af6c2001ee1ba4fc41c5d6cb
[ "MIT" ]
42
2020-10-30T07:09:48.000Z
2022-03-29T13:54:56.000Z
Cream/tools/generate_subImageNet.py
QPC-database/AutoML
75d86a5e3366a6c9af6c2001ee1ba4fc41c5d6cb
[ "MIT" ]
64
2020-10-30T10:08:48.000Z
2022-03-30T06:51:01.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # Written by Hao Du and Houwen Peng # email: haodu8-c@my.cityu.edu.hk and houwen.peng@microsoft.com # This file is to demonstrate how to generate subImagenet. import os data_path = './data' ImageNet_train_path = os.path.join(data_path, 'imagenet...
37.265306
76
0.659912
c2f4f20073b0bce76dd88d83f072cce959ea2199
45,792
py
Python
src/sardana/taurus/core/tango/sardana/macroserver.py
tiagocoutinho/sardana
d8689755d7e11d60138f1e601a4d177cd412fdb1
[ "CC-BY-3.0" ]
null
null
null
src/sardana/taurus/core/tango/sardana/macroserver.py
tiagocoutinho/sardana
d8689755d7e11d60138f1e601a4d177cd412fdb1
[ "CC-BY-3.0" ]
null
null
null
src/sardana/taurus/core/tango/sardana/macroserver.py
tiagocoutinho/sardana
d8689755d7e11d60138f1e601a4d177cd412fdb1
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
36.085106
79
0.595453
37e4e76f9340b0eb091e5620895c2a0a1b725ced
1,938
py
Python
reader/image_consumer.py
Commin/SINETStream-videostreaming
ca64d229697c7f939156b3d014c13af67a20d2e6
[ "Apache-2.0" ]
1
2021-02-14T04:23:35.000Z
2021-02-14T04:23:35.000Z
reader/image_consumer.py
Commin/SINETStream-videostreaming
ca64d229697c7f939156b3d014c13af67a20d2e6
[ "Apache-2.0" ]
null
null
null
reader/image_consumer.py
Commin/SINETStream-videostreaming
ca64d229697c7f939156b3d014c13af67a20d2e6
[ "Apache-2.0" ]
1
2021-01-21T05:06:53.000Z
2021-01-21T05:06:53.000Z
#!/usr/bin/env python3 # Copyright (C) 2020 National Institute of Informatics # # 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 fil...
31.258065
83
0.707946
54827a07e265b6f4ebe09cba9578197d6214fe1a
94
py
Python
inbm/telemetry-agent/telemetry/__init__.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
5
2021-12-13T21:19:31.000Z
2022-01-18T18:29:43.000Z
inbm/telemetry-agent/telemetry/__init__.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
45
2021-12-30T17:21:09.000Z
2022-03-29T22:47:32.000Z
inbm/telemetry-agent/telemetry/__init__.py
ahameedx/intel-inb-manageability
aca445fa4cef0b608e6e88e74476547e10c06073
[ "Apache-2.0" ]
4
2022-01-26T17:42:54.000Z
2022-03-30T04:48:04.000Z
""" Copyright (C) 2017-2022 Intel Corporation SPDX-License-Identifier: Apache-2.0 """
18.8
45
0.670213
c4c87550b2f0f6db9984b33d9b95ef201d64242e
1,272
py
Python
pre_commit_hooks/generic_crlf_remove.py
beyse/pre-commit-hooks
249c3329da8734afa49629b66a192e0fb264399e
[ "MIT" ]
3
2022-01-06T02:53:57.000Z
2022-02-22T22:12:53.000Z
hooks/python/generic_crlf_remove.py
jphppd/pre-commit-hooks
8acd752a70690be39e60f811958b71a18709ec16
[ "MIT" ]
null
null
null
hooks/python/generic_crlf_remove.py
jphppd/pre-commit-hooks
8acd752a70690be39e60f811958b71a18709ec16
[ "MIT" ]
1
2022-03-11T15:11:18.000Z
2022-03-11T15:11:18.000Z
import argparse import sys def contains_crlf(filename): with open(filename, mode='rb') as file_checked: for line in file_checked.readlines(): if line.endswith(b'\r\n'): return True return False def removes_crlf_in_file(filename): with open(filename, mode='rb') as file...
31.8
95
0.662736
6f4024ea80751856de1352ad99d6cf9a8cac3c60
2,701
py
Python
chroma/g4daenode/daesubtree.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/g4daenode/daesubtree.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/g4daenode/daesubtree.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
import collada class DAESubTree(list): """ Flattens all or part of a tree of nodes into this list. Only requires node instances to have a children attribute which lists other nodes. The list is composed of either: #. a string representation of the node #. a tuple of (node, depth, sibdex, in...
35.077922
92
0.500555
1fb70c0fab9c4f2f0e6676ad0301943a87030503
14,707
py
Python
espnet/bin/asr_recog.py
Hertin/espnet
a0f2175df08b4750a9f0305c20b8c11f6e941867
[ "Apache-2.0" ]
null
null
null
espnet/bin/asr_recog.py
Hertin/espnet
a0f2175df08b4750a9f0305c20b8c11f6e941867
[ "Apache-2.0" ]
null
null
null
espnet/bin/asr_recog.py
Hertin/espnet
a0f2175df08b4750a9f0305c20b8c11f6e941867
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 # Copyright 2017 Johns Hopkins University (Shinji Watanabe) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """End-to-end speech recognition model decoding script.""" import configargparse import logging import os import random import sys import yaml import numpy ...
33.273756
88
0.581832
9630fe8a8dc1983a69192320430211bc9d5b41a5
9,098
py
Python
rManifolds/rUnifKnot.py
mauriciogtec/rManifolds
07e45871df5f356dca2fae16cb7769c8f865e892
[ "MIT" ]
3
2017-10-21T15:24:56.000Z
2021-07-27T20:32:20.000Z
rManifolds/rUnifKnot.py
mauriciogtec/rManifolds
07e45871df5f356dca2fae16cb7769c8f865e892
[ "MIT" ]
1
2017-10-21T15:25:48.000Z
2017-10-21T18:34:09.000Z
rManifolds/rUnifKnot.py
mauriciogtec/rManifolds
07e45871df5f356dca2fae16cb7769c8f865e892
[ "MIT" ]
3
2018-03-27T14:16:14.000Z
2021-07-27T20:32:22.000Z
import random, operator, math, spherogram, numpy class rUnifKnot(): "" def __init__(self,n,filename=""): # Author: Mauricio B. Garcia Tec. # Date: Februrary 2014. # This function generates a random knot in SnapPy using the module Spherogram # In: int n.-the number of desired random ver...
56.509317
133
0.562102
594fc3bceb0011a3f8cfcbdf5531a9ed9e5e8039
498
py
Python
tests/api_root.py
talavis/DataGraphics
d2be4e83b9ce6aeb89a3021ec9ed61793f24cb87
[ "MIT" ]
null
null
null
tests/api_root.py
talavis/DataGraphics
d2be4e83b9ce6aeb89a3021ec9ed61793f24cb87
[ "MIT" ]
null
null
null
tests/api_root.py
talavis/DataGraphics
d2be4e83b9ce6aeb89a3021ec9ed61793f24cb87
[ "MIT" ]
null
null
null
"Test the API Root resource." import http.client import unittest import requests import utils class Root(utils.ApiMixin, unittest.TestCase): "Test the API Root resource." def test_root_data(self): "Get root information." url = f"{self.settings['BASE_URL']}api" response = requests.g...
20.75
62
0.688755
6e93ad89b1c4232026ec37e2384e9ef0528f82d2
10,391
py
Python
mule/python/mule/JobParallelization.py
valentinaschueller/sweet
27e99c7a110c99deeadee70688c186d82b39ac90
[ "MIT" ]
6
2017-11-20T08:12:46.000Z
2021-03-11T15:32:36.000Z
mule/python/mule/JobParallelization.py
valentinaschueller/sweet
27e99c7a110c99deeadee70688c186d82b39ac90
[ "MIT" ]
4
2018-02-02T21:46:33.000Z
2022-01-11T11:10:27.000Z
mule/python/mule/JobParallelization.py
valentinaschueller/sweet
27e99c7a110c99deeadee70688c186d82b39ac90
[ "MIT" ]
12
2016-03-01T18:33:34.000Z
2022-02-08T22:20:31.000Z
import math import sys from functools import reduce import operator from mule.InfoError import * from mule.JobPlatformResources import * from mule.JobParallelizationDimOptions import * __all__ = ['JobParallelization'] def _prod(iterable): return reduce(operator.mul, iterable, 1) class JobParallelization(InfoEr...
31.776758
154
0.621114
1e1263a21dd51f5c5511e5ff651ffe529655b923
31
py
Python
mmterm/__init__.py
sbliven/mmterm
042b2280fc58932870ef7f079d8743e4fc420ee7
[ "MIT" ]
null
null
null
mmterm/__init__.py
sbliven/mmterm
042b2280fc58932870ef7f079d8743e4fc420ee7
[ "MIT" ]
null
null
null
mmterm/__init__.py
sbliven/mmterm
042b2280fc58932870ef7f079d8743e4fc420ee7
[ "MIT" ]
null
null
null
from .view import view_protein
15.5
30
0.83871
ae90dcdbab32670e3ffa719957d44c887763814d
4,295
py
Python
social/actions.py
dongweiming/flask_reveal
739a0c49d2fbf5a36c7b9cb11ec1303b9c8b0e83
[ "BSD-3-Clause" ]
41
2015-01-31T08:23:04.000Z
2021-03-20T08:55:23.000Z
social/actions.py
dongweiming/flask_reveal
739a0c49d2fbf5a36c7b9cb11ec1303b9c8b0e83
[ "BSD-3-Clause" ]
null
null
null
social/actions.py
dongweiming/flask_reveal
739a0c49d2fbf5a36c7b9cb11ec1303b9c8b0e83
[ "BSD-3-Clause" ]
19
2015-01-17T11:50:35.000Z
2019-05-01T22:49:02.000Z
from social.p3 import quote from social.utils import sanitize_redirect, user_is_authenticated, \ user_is_active def do_auth(strategy, redirect_name='next'): # Save any defined next value into session data = strategy.request_data(merge=False) # Save extra data into session. for...
40.904762
77
0.609546
9b16d505de142a48ac819e9b52132bcf642b945d
765
py
Python
river/optim/__init__.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/optim/__init__.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/optim/__init__.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
"""Stochastic optimization.""" from . import base, initializers, losses, schedulers from .ada_bound import AdaBound from .ada_delta import AdaDelta from .ada_grad import AdaGrad from .ada_max import AdaMax from .adam import Adam from .ams_grad import AMSGrad from .average import Averager from .ftrl import FTRLProximal ...
20.675676
52
0.690196
7b415d09fc99ae10960e90f37cbe2ebc258a9265
20
py
Python
catalog/apps/__init__.py
sonico999/django-model
8e2d1136573adbcf6fe3e2b7bf2b192c0b63207a
[ "MIT" ]
null
null
null
catalog/apps/__init__.py
sonico999/django-model
8e2d1136573adbcf6fe3e2b7bf2b192c0b63207a
[ "MIT" ]
null
null
null
catalog/apps/__init__.py
sonico999/django-model
8e2d1136573adbcf6fe3e2b7bf2b192c0b63207a
[ "MIT" ]
null
null
null
__author__ = 'eveR'
10
19
0.7
f71d91b6162a24bdd995d0f0381a0643a85de953
4,535
py
Python
Chapter03/Chapter_3/musegen/musegen.py
YMandCL/Hands-On-Deep-Learning-for-Games
0225661409c3bf59ae6b7996c254bb485ebd10cb
[ "MIT" ]
33
2018-12-29T15:39:20.000Z
2022-03-18T14:36:11.000Z
Chapter03/Chapter_3/musegen/musegen.py
YMandCL/Hands-On-Deep-Learning-for-Games
0225661409c3bf59ae6b7996c254bb485ebd10cb
[ "MIT" ]
4
2019-05-01T08:30:47.000Z
2020-08-14T21:13:53.000Z
Chapter03/Chapter_3/musegen/musegen.py
YMandCL/Hands-On-Deep-Learning-for-Games
0225661409c3bf59ae6b7996c254bb485ebd10cb
[ "MIT" ]
14
2019-01-13T15:52:08.000Z
2021-10-10T06:14:39.000Z
# Currently this script is configured to use the note-generator model. from config import sequence_length, output_dir, note_generator_dir from helper import loadChorales, loadModelAndWeights, createPitchSpecificVocabularies, createDurationVocabularySpecific from music21 import note, instrument, stream, duration import...
39.094828
138
0.704961
277d248697293716404d4dde831b68f4c36842bf
203
py
Python
Unit2/P2.4.4_A.py
capravictoriae/Space-Mission-Design-and-Operations-EE585x-MOOC
a5f6aaaae06969eaa5e3d0847093bdb7433083b8
[ "Apache-2.0" ]
null
null
null
Unit2/P2.4.4_A.py
capravictoriae/Space-Mission-Design-and-Operations-EE585x-MOOC
a5f6aaaae06969eaa5e3d0847093bdb7433083b8
[ "Apache-2.0" ]
null
null
null
Unit2/P2.4.4_A.py
capravictoriae/Space-Mission-Design-and-Operations-EE585x-MOOC
a5f6aaaae06969eaa5e3d0847093bdb7433083b8
[ "Apache-2.0" ]
2
2021-08-20T18:47:26.000Z
2021-08-23T16:39:59.000Z
earth_mu = 3.986e14 earth_r = 6.378e6 # m speed = 7.76 * 1000 # m/s # V = sqrt(mu/r) => V^2 = mu/r => V^2/mu = 1/r # mu / V^2 = r dist = earth_mu / (speed**2) dist = dist - earth_r print(dist/1000)
16.916667
46
0.55665
eeb06ce8f69c574aa71090d7b36ba6533a8aee54
7,723
py
Python
youtube_comment_downloader/downloader.py
leostormrage/youtube-comment-downloader
d82419d0653cb1cbd7d3c873dc9f9d70bbc3b0e2
[ "MIT" ]
1
2021-05-08T04:30:58.000Z
2021-05-08T04:30:58.000Z
youtube_comment_downloader/downloader.py
leostormrage/youtube-comment-downloader
d82419d0653cb1cbd7d3c873dc9f9d70bbc3b0e2
[ "MIT" ]
null
null
null
youtube_comment_downloader/downloader.py
leostormrage/youtube-comment-downloader
d82419d0653cb1cbd7d3c873dc9f9d70bbc3b0e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import argparse import io import json import os import sys import time import requests YOUTUBE_VIDEO_URL = 'https://www.youtube.com/watch?v={youtube_id}' YOUTUBE_COMMENTS_AJAX_URL = 'https://www.youtube.com/comment_service_ajax' USER_AGENT = 'Mozilla/5.0 ...
42.668508
130
0.600673
89ef2fd432ef2d4d7327050deb24591d4f209e84
4,273
py
Python
beta_rec/experiment/experiment.py
mengzaiqiao/TVBR
cdac86a753c41f8f3c55a025be8d88dd305325f5
[ "MIT" ]
126
2020-03-19T02:30:23.000Z
2022-03-15T11:10:46.000Z
beta_rec/experiment/experiment.py
mengzaiqiao/TVBR
cdac86a753c41f8f3c55a025be8d88dd305325f5
[ "MIT" ]
174
2020-03-15T17:28:10.000Z
2022-03-15T22:38:51.000Z
beta_rec/experiment/experiment.py
mengzaiqiao/TVBR
cdac86a753c41f8f3c55a025be8d88dd305325f5
[ "MIT" ]
38
2020-03-19T00:38:47.000Z
2022-02-24T11:03:12.000Z
# coding=utf-8 """ This is the implementation of experimental pipeline. This class is still under development. """ import pandas as pd from tabulate import tabulate def print_result_as_table(results, tag=None): """Print results as a table.""" eval_infos = set() for result in results: eval_infos....
35.608333
79
0.598877
790ed6be71e6a2011d907c0c08f1e39bd4f7c044
3,586
py
Python
CoffeeAPI/CoffeeAPI/settings.py
Mohammed-abdelawal/coffee_api
2939efdd048c7ee392c4afab368e3d01aab994f7
[ "MIT" ]
1
2020-09-21T17:17:52.000Z
2020-09-21T17:17:52.000Z
CoffeeAPI/CoffeeAPI/settings.py
Mohammed-abdelawal/coffee_api
2939efdd048c7ee392c4afab368e3d01aab994f7
[ "MIT" ]
null
null
null
CoffeeAPI/CoffeeAPI/settings.py
Mohammed-abdelawal/coffee_api
2939efdd048c7ee392c4afab368e3d01aab994f7
[ "MIT" ]
null
null
null
""" Django settings for CoffeeAPI project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os i...
26.367647
126
0.678751
842b049144b3ec0fa4c40189d9bac14f6de3b23f
709
py
Python
logger.py
Term-inator/Brain-Tumor-Detection
b59715092cca7a17b589b5d906983eb42ee4ad87
[ "MIT" ]
null
null
null
logger.py
Term-inator/Brain-Tumor-Detection
b59715092cca7a17b589b5d906983eb42ee4ad87
[ "MIT" ]
null
null
null
logger.py
Term-inator/Brain-Tumor-Detection
b59715092cca7a17b589b5d906983eb42ee4ad87
[ "MIT" ]
null
null
null
from logging import getLogger, INFO, FileHandler, Formatter, StreamHandler LOGGER = None handlers = [] def init_logger(log_file='./train.log'): logger = getLogger(__name__) logger.setLevel(INFO) handler1 = StreamHandler() handler1.setFormatter(Formatter("%(message)s")) handler2 = FileHandler(file...
22.15625
74
0.71086
4b6017f697f2f6b05c63c0471a71fa057d69bbbb
2,191
py
Python
src/oci/cloud_guard/models/resource_profile_collection.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/cloud_guard/models/resource_profile_collection.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/cloud_guard/models/resource_profile_collection.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.859155
245
0.668644
a3496a6c9421b2a3a494864d3a6770b58bd5f503
4,622
py
Python
clang-tidy-to-junit.py
brel-ge/clang-tidy-to-codeclimate
b3182da22cd3fef7eec0064e673c0fa426726e46
[ "MIT" ]
null
null
null
clang-tidy-to-junit.py
brel-ge/clang-tidy-to-codeclimate
b3182da22cd3fef7eec0064e673c0fa426726e46
[ "MIT" ]
null
null
null
clang-tidy-to-junit.py
brel-ge/clang-tidy-to-codeclimate
b3182da22cd3fef7eec0064e673c0fa426726e46
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import collections import re import logging import itertools from xml.sax.saxutils import escape # Create a `ErrorDescription` tuple with all the information we want to keep. ErrorDescription = collections.namedtuple( 'ErrorDescription', 'file line column error error_identifier d...
39.504274
145
0.59325
c88a7e1c12856b619c7082dd4e79420019e12747
15,571
py
Python
lib/third_party/google/bigtable/admin/v2/table_pb2.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/third_party/google/bigtable/admin/v2/table_pb2.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/third_party/google/bigtable/admin/v2/table_pb2.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/bigtable/admin/v2/table.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impo...
38.446914
1,633
0.758397
5230cc3d85fac014944581d9d21b50b4614e3f8b
454
py
Python
custom_components/edgeos/models/storage_data.py
kcleong/homeassistant-config
15b7bc75f5d1055d8620ced87eed9d563475296d
[ "MIT" ]
17
2020-07-17T13:50:48.000Z
2022-03-25T22:10:17.000Z
custom_components/edgeos/models/storage_data.py
kcleong/homeassistant-config
15b7bc75f5d1055d8620ced87eed9d563475296d
[ "MIT" ]
17
2020-07-14T00:09:42.000Z
2021-12-11T22:19:58.000Z
custom_components/edgeos/models/storage_data.py
kcleong/homeassistant-config
15b7bc75f5d1055d8620ced87eed9d563475296d
[ "MIT" ]
7
2020-07-31T10:39:09.000Z
2021-12-11T13:54:25.000Z
from typing import Optional class StorageData: key: Optional[str] def __init__(self): self.key = None @staticmethod def from_dict(obj: dict): data = StorageData() if obj is not None: data.key = obj.get("key") return data def to_dict(self): o...
16.214286
39
0.557269
a5c1fa949d642f013abe4b39a61b33b0f94038ae
1,345
py
Python
example_applications/composite_median/convert_to_geotiff.py
fangfy/radar
6bb8a10396513711a507f8298c22df0e0565d4a7
[ "Apache-2.0" ]
null
null
null
example_applications/composite_median/convert_to_geotiff.py
fangfy/radar
6bb8a10396513711a507f8298c22df0e0565d4a7
[ "Apache-2.0" ]
null
null
null
example_applications/composite_median/convert_to_geotiff.py
fangfy/radar
6bb8a10396513711a507f8298c22df0e0565d4a7
[ "Apache-2.0" ]
null
null
null
import glob, os from datacube import helpers from datacube.utils import geometry import xarray as xr import subprocess def convert_to_tiff(filename, var=None, outputdir = 'geotiff'): if var is None: ds = xr.open_dataset(filename) varnames = list(ds.data_vars) if None in varnames: ...
29.888889
102
0.646097
556ccb15c204a36291b07953e73172d93171cbe1
40,046
py
Python
transformers/modeling_tf_xlm.py
Tarpelite/UniNLP
176c2a0f88c8054bf69e1f92693d353737367c34
[ "MIT" ]
72
2021-05-27T06:32:20.000Z
2022-03-31T03:04:58.000Z
transformers/modeling_tf_xlm.py
DaDaMrX/ReaLiSe
25843e0c2c32b3a364cee857b2e4f5ba8b2764e9
[ "MIT" ]
10
2021-05-27T05:13:50.000Z
2022-03-27T09:10:47.000Z
transformers/modeling_tf_xlm.py
DaDaMrX/ReaLiSe
25843e0c2c32b3a364cee857b2e4f5ba8b2764e9
[ "MIT" ]
13
2021-06-24T04:44:14.000Z
2022-03-03T12:57:23.000Z
# coding=utf-8 # Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
51.940337
194
0.626979
a1f720621798865ff07c968196102e0f3e462be4
3,324
py
Python
src/CryptoPlus/Cipher/python_DES3.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
1
2022-02-27T17:46:18.000Z
2022-02-27T17:46:18.000Z
src/CryptoPlus/Cipher/python_DES3.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
null
null
null
src/CryptoPlus/Cipher/python_DES3.py
voytecPL/pycryptoplus
86905bbb8661e00cfb2afdc4461d4a79b6429d8a
[ "MIT" ]
null
null
null
from .blockcipher import * from . import pyDes def new(key,mode=MODE_ECB,IV=None,counter=None,segment_size=None): """Create a DES-EDE3 or DES-EDE2 cipher object wrapper for pure python 3DES implementation pyDes.py key = raw string containing the 2/3 keys - DES-EDE2: supply 2 keys as 1 sin...
40.536585
114
0.672383
0a6d7a88bf9f59da10422af70cfacd7ecc61abd4
4,186
py
Python
seller_app/serializers/store_serializers.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
seller_app/serializers/store_serializers.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
seller_app/serializers/store_serializers.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
# -*- coding: utf-8 -*- # @Time : 2021/2/18 下午4:49 # @Author : 司云中 # @File : store_serializers.py # @Software: Pycharm from django.contrib.auth import get_user_model from django.db import DatabaseError, transaction from rest_framework import serializers from Emall.exceptions import DataFormatError, SqlServerError, Da...
30.115108
106
0.624224
6f987472ae44a7be32f3429977356ff14a3a1112
390
py
Python
414. Third Maximum Number/other.py
hotheat/LeetCode
c37f44f71a0e266aa8078c95506e6aa54ce4660c
[ "MIT" ]
2
2019-03-05T08:31:14.000Z
2019-03-21T15:11:43.000Z
414. Third Maximum Number/other.py
hotheat/LeetCode
c37f44f71a0e266aa8078c95506e6aa54ce4660c
[ "MIT" ]
null
null
null
414. Third Maximum Number/other.py
hotheat/LeetCode
c37f44f71a0e266aa8078c95506e6aa54ce4660c
[ "MIT" ]
null
null
null
class Solution(object): def thirdMax(self, nums): v = [float('-inf'), float('-inf'), float('-inf')] for num in nums: if num not in v: if num > v[0]: v = [num, v[0], v[1]] elif num > v[1]: v = [v[0], num, v[1]] elif num > v[2]: v = [v[0], ...
43.333333
59
0.425641
51cddac32a5b7d11a3d2fbfcafc4d90da10b215f
1,330
py
Python
sfc_models/examples/scripts/intro_3_03_hello_world_1.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
21
2016-11-03T12:30:50.000Z
2022-03-24T06:54:14.000Z
sfc_models/examples/scripts/intro_3_03_hello_world_1.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
1
2019-04-02T02:01:27.000Z
2019-04-07T21:07:10.000Z
sfc_models/examples/scripts/intro_3_03_hello_world_1.py
MachineLP/SFC_models
d438a4e3e88534a206c761cda7a3f6a58ac3a0ac
[ "Apache-2.0" ]
12
2016-11-03T12:30:57.000Z
2021-09-14T23:08:23.000Z
""" intro_3_03_hello_world_1.py Example code from Section 3.3 of "Introduction to SFC Models Using Python." This example does not create a useful model, but it and following examples demonstrate how models are built up by examining the log file. Copyright 2017 Brian Romanchuk Licensed under the Apache License, Vers...
34.102564
90
0.762406
98f6e5eebae81baa9cf19ba3faa9c93d2d474df5
913
bzl
Python
third_party/hexagon/workspace.bzl
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
third_party/hexagon/workspace.bzl
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
third_party/hexagon/workspace.bzl
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
"""Loads the Hexagon NN Header files library, used by TF Lite.""" load("//third_party:repo.bzl", "tf_http_archive") # Note: Use libhexagon_nn_skel version 1.20 Only with the current version. # This comment will be updated with compatible version. def repo(): tf_http_archive( name = "hexagon_nn", s...
50.722222
156
0.715225
8a63f5cedc0db5f4d141dd8af7b72332589197d8
7,984
py
Python
utils/solver.py
tings0802/LdG-sim
46dc04c9f91fd0a3afdd8e83509c70692656e1ea
[ "MIT" ]
5
2020-03-04T06:38:43.000Z
2021-05-19T10:36:04.000Z
utils/solver.py
tings0802/LdG-sim
46dc04c9f91fd0a3afdd8e83509c70692656e1ea
[ "MIT" ]
null
null
null
utils/solver.py
tings0802/LdG-sim
46dc04c9f91fd0a3afdd8e83509c70692656e1ea
[ "MIT" ]
1
2020-03-24T05:54:26.000Z
2020-03-24T05:54:26.000Z
import numpy as np from utils import utility as u from utils import param as p from utils import cond as c from utils import mesh as m def println(Q): ''' print for debug ''' for i in Q: for j in i: print(j, end=' ') print() print() """ transform n and S into Q """ def Q_tens...
37.308411
157
0.482715
293e99aa89dafb98cb814fd532a9cd9c3951e83c
1,935
py
Python
src/Current Models/Misc/vase.py
PharaohCola13/Geotesimal
45de6fb9a587ae8eb3c85d0acd6b93c36fa7bf24
[ "MIT" ]
3
2018-12-13T20:11:18.000Z
2022-01-13T13:51:19.000Z
src/Current Models/Misc/vase.py
PharaohCola13/geometric-models
45de6fb9a587ae8eb3c85d0acd6b93c36fa7bf24
[ "MIT" ]
5
2018-10-19T18:18:05.000Z
2021-06-10T00:20:52.000Z
src/Current Models/Misc/vase.py
PharaohCola13/geometric-models
45de6fb9a587ae8eb3c85d0acd6b93c36fa7bf24
[ "MIT" ]
1
2018-10-17T05:32:26.000Z
2018-10-17T05:32:26.000Z
#{u, Sin[v]*(u^3+2u^2-2u+2)/5, Cos[v]*(u^3+2u^2-2u+2)/5} # A Vase, brought to you by PharaohCola13 import mpl_toolkits.mplot3d.axes3d as p3 import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.art3d import * from matplotlib.animation import * from matplotlib import * from numpy import * name = "Vase" def shape...
22.5
119
0.643411
5970e7dd60eaedc92a93ddde799b8b0305bb3d7f
8,999
py
Python
sscanss/core/io/writer.py
ISISNeutronMuon/SScanSS-2
aa70107c8771e0ed0c1202a683ad94de84dff411
[ "BSD-3-Clause" ]
9
2018-09-09T13:45:38.000Z
2022-01-04T09:02:37.000Z
sscanss/core/io/writer.py
ISISNeutronMuon/SScanSS-2
aa70107c8771e0ed0c1202a683ad94de84dff411
[ "BSD-3-Clause" ]
21
2020-10-07T14:37:01.000Z
2022-03-18T09:14:35.000Z
sscanss/core/io/writer.py
ISISNeutronMuon/SScanSS-2
aa70107c8771e0ed0c1202a683ad94de84dff411
[ "BSD-3-Clause" ]
8
2019-11-18T12:00:35.000Z
2022-02-17T13:35:15.000Z
""" A collection of functions for writing data """ import csv import datetime as dt import h5py import numpy as np from ...config import __version__, settings def write_project_hdf(data, filename): """Writes the project data dictionary to a hdf file :param data: A dictionary containing the project data :...
44.549505
107
0.678186
c2fd10aa3966e77e2299c6fb8de1c35ae03bdee0
233,750
py
Python
sdks/python/appcenter_sdk/api/analytics_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/api/analytics_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/api/analytics_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import re # noqa: F401 # pytho...
47.452294
327
0.630922
0e19821473afa27108d7802475b24ae03113c378
8,354
py
Python
fwc_edu/fwc_education/report/fwc_salary_register/fwc_salary_register.py
mohsinalimat/fwc_edu
d3e2e43b5cd5001a0b8845206e85b1870dc9e53d
[ "MIT" ]
null
null
null
fwc_edu/fwc_education/report/fwc_salary_register/fwc_salary_register.py
mohsinalimat/fwc_edu
d3e2e43b5cd5001a0b8845206e85b1870dc9e53d
[ "MIT" ]
null
null
null
fwc_edu/fwc_education/report/fwc_salary_register/fwc_salary_register.py
mohsinalimat/fwc_edu
d3e2e43b5cd5001a0b8845206e85b1870dc9e53d
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, erpnext from frappe.utils import flt from frappe import msgprint, _ def execute(filters=None): if not filters: filters = {} currency =...
41.77
159
0.692961
95c694930ab2d2f0305d5cd3cf7bf6bde062ff23
792
py
Python
applications/escola_curso/models/tables.py
BetinRibeiro/web2py_crediario
d7b0aef4579870922c6d87b4b0322b427b2bef98
[ "BSD-3-Clause" ]
2
2019-10-18T23:04:22.000Z
2019-10-24T04:03:10.000Z
applications/escola_curso/models/tables.py
BetinRibeiro/web2py_crediario
d7b0aef4579870922c6d87b4b0322b427b2bef98
[ "BSD-3-Clause" ]
null
null
null
applications/escola_curso/models/tables.py
BetinRibeiro/web2py_crediario
d7b0aef4579870922c6d87b4b0322b427b2bef98
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- Notas = db.define_table('notas', Field('nota', 'float', default=0, label="Nota"), Field('aluno', 'reference auth_user', notnull=True, label="Aluno"), Field('professor', 'reference auth_user', ondelete='SET NULL', label="Professor") ) Biblioteca = db.define_table('biblioteca', Field('arquiv...
33
83
0.705808
2e391ac7336b4c3437062139c7f01e76be893aad
18,747
py
Python
opts.py
wrn7777/MscProject
0c11cd7e00c830bbf7a0e02455cb86fbb5ed1b4b
[ "MIT" ]
null
null
null
opts.py
wrn7777/MscProject
0c11cd7e00c830bbf7a0e02455cb86fbb5ed1b4b
[ "MIT" ]
null
null
null
opts.py
wrn7777/MscProject
0c11cd7e00c830bbf7a0e02455cb86fbb5ed1b4b
[ "MIT" ]
null
null
null
import argparse def parse_opts(): parser = argparse.ArgumentParser() parser.add_argument('--root_path', default='/root/data/ActivityNet', type=str, help='Root directory path of data') parser.add_argument('--video_path', default='video_kinetics_jpg', type=str, help='Directory path of Videos') parser.ad...
88.429245
208
0.70854
716d7b434e10d735b6becfc3a403525dbf557bd1
489
py
Python
tests/test_user.py
iyerikuzwe/pers-blog
ee773d6b3cde282b0807b119970ecd981ce52f62
[ "Unlicense" ]
null
null
null
tests/test_user.py
iyerikuzwe/pers-blog
ee773d6b3cde282b0807b119970ecd981ce52f62
[ "Unlicense" ]
null
null
null
tests/test_user.py
iyerikuzwe/pers-blog
ee773d6b3cde282b0807b119970ecd981ce52f62
[ "Unlicense" ]
null
null
null
import unittest from app.models import User class UserModelTest(unittest.TestCase): def setUp(self): self.new_user = User(password = 'banana') def test_password_setter(self): self.assertTrue(self.new_user.pass_secure is not None) def test_no_access_password(self): with self.asse...
25.736842
64
0.715746
b7156e02358fd82916750860a15bcc78ad74b2b8
18,223
py
Python
qiskit/quantum_info/operators/pauli.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
3
2019-05-19T17:39:38.000Z
2020-01-28T19:59:18.000Z
qiskit/quantum_info/operators/pauli.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
qiskit/quantum_info/operators/pauli.py
tareqdandachi/qiskit-terra
5221fe330adba5529bfa22dc25262ac8e6291aaf
[ "Apache-2.0" ]
1
2021-07-07T16:55:41.000Z
2021-07-07T16:55:41.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
31.692174
96
0.541239
755e029388eb6e0af6f9aa285c6436b0a379736f
3,931
py
Python
models/networks/normalization.py
ustato/sber-swap
1140e085e165ed14e1098d81b7abd63feafedecf
[ "Apache-2.0" ]
210
2022-01-24T12:58:08.000Z
2022-03-31T07:54:22.000Z
models/networks/normalization.py
ustato/sber-swap
1140e085e165ed14e1098d81b7abd63feafedecf
[ "Apache-2.0" ]
16
2022-01-24T23:45:04.000Z
2022-03-30T22:53:46.000Z
models/networks/normalization.py
ustato/sber-swap
1140e085e165ed14e1098d81b7abd63feafedecf
[ "Apache-2.0" ]
35
2022-01-25T00:55:36.000Z
2022-03-30T22:45:27.000Z
""" Copyright (C) 2019 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ import re import torch import torch.nn as nn import torch.nn.functional as F from models.networks.sync_batchnorm import SynchronizedBatchNorm2d ...
36.398148
105
0.643348
25cc16a9f51ad037fe1ee19f962220f54cc9b727
3,193
py
Python
data/preprocess_ljspeech.py
jefflai108/VGNSL
0edc3db3691abbad2a505b2165bd99e7a62d784f
[ "MIT" ]
1
2022-03-08T16:09:03.000Z
2022-03-08T16:09:03.000Z
data/preprocess_ljspeech.py
jefflai108/VGNSL
0edc3db3691abbad2a505b2165bd99e7a62d784f
[ "MIT" ]
null
null
null
data/preprocess_ljspeech.py
jefflai108/VGNSL
0edc3db3691abbad2a505b2165bd99e7a62d784f
[ "MIT" ]
null
null
null
import os import string import shutil import tqdm import benepar import spacy from nltk import Tree def replace_leaves(tree, leaves): if isinstance(tree, str): return leaves[0] left = 0 new_children = list() for child in tree: n_leaves = 1 if isinstance(child, str) else len(child.le...
35.087912
105
0.645474
3b0f8f8a55dd9fa85dd51be9ad69db0cd346df09
976
py
Python
tests/builder/executors/exception_handling_executor_test.py
sharp-pixel/opensearch-benchmark
32b2a68c3672f680fbc90a591f6c15b46701142e
[ "Apache-2.0" ]
26
2021-12-09T06:58:53.000Z
2022-03-29T15:01:37.000Z
tests/builder/executors/exception_handling_executor_test.py
sharp-pixel/opensearch-benchmark
32b2a68c3672f680fbc90a591f6c15b46701142e
[ "Apache-2.0" ]
63
2021-12-08T20:47:17.000Z
2022-03-31T18:21:31.000Z
tests/builder/executors/exception_handling_executor_test.py
sharp-pixel/opensearch-benchmark
32b2a68c3672f680fbc90a591f6c15b46701142e
[ "Apache-2.0" ]
5
2021-12-09T10:17:30.000Z
2022-03-03T05:31:12.000Z
import unittest.mock as mock from unittest import TestCase from osbenchmark.builder.executors.exception_handling_shell_executor import ExceptionHandlingShellExecutor from osbenchmark.exceptions import ExecutorError class ExceptionHandlingShellExecutorTests(TestCase): def setUp(self): self.executor_impl =...
34.857143
106
0.73873
dc450fbb522a1d3a54a25a0a05ac6f5c204cb0a7
9,106
py
Python
rpython/rtyper/raisingops.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
rpython/rtyper/raisingops.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
rpython/rtyper/raisingops.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
import sys from rpython.rlib.rarithmetic import r_longlong, r_uint, intmask from rpython.rtyper.lltypesystem.lloperation import llop from rpython.rtyper.lltypesystem.lltype import Signed, SignedLongLong, \ UnsignedLongLong #XXX original SIGNED_RIGHT_SHIFT_ZERO_FILLS not taken in...
30.763514
92
0.59664
a6f31e3a6c49aff4cb4ea4bc4e246cc8f81fba99
35,569
py
Python
parser/fase2/team06/TablaDeSimbolos.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
parser/fase2/team06/TablaDeSimbolos.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
parser/fase2/team06/TablaDeSimbolos.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
null
null
null
from enum import Enum import pandas as pd import reportes as h class TIPO_DE_DATO(Enum) : NUMERO = 1 FLOTANTE=2 CARACTER=3 #ir agregando los tipos faltantes para la comprobacion de tipos en las operacioens class Simbolo() : 'Esta clase representa un simbolo dentro de nuestra tabla de simbolos' ...
43.061743
257
0.540836
c4385c2300996a48f028585f17f796c2fa926374
612
py
Python
complaints/migrations/0008_auto_20180330_0512.py
shashank-sharma/smart-odisha-hackathon
e73b9d8ec8671aaaa72d3c14241bbecde56fe10f
[ "MIT" ]
1
2018-06-18T15:23:07.000Z
2018-06-18T15:23:07.000Z
complaints/migrations/0008_auto_20180330_0512.py
shashank-sharma/smart-odisha-hackathon
e73b9d8ec8671aaaa72d3c14241bbecde56fe10f
[ "MIT" ]
null
null
null
complaints/migrations/0008_auto_20180330_0512.py
shashank-sharma/smart-odisha-hackathon
e73b9d8ec8671aaaa72d3c14241bbecde56fe10f
[ "MIT" ]
1
2020-01-31T13:21:38.000Z
2020-01-31T13:21:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-30 05:12 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('complaints', '0007_auto_2018...
26.608696
128
0.684641
1ad0618118e9ee6a1348a01f2b02fe1f6dd2e12a
3,466
py
Python
repos/system_upgrade/el7toel8/actors/dnfshellrpmupgrade/actor.py
Jakuje/leapp-repository
580540f68bd4f89152c28935f775f660c2db0839
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/actors/dnfshellrpmupgrade/actor.py
Jakuje/leapp-repository
580540f68bd4f89152c28935f775f660c2db0839
[ "Apache-2.0" ]
1
2020-06-15T18:32:21.000Z
2020-06-15T18:32:21.000Z
repos/system_upgrade/el7toel8/actors/dnfshellrpmupgrade/actor.py
kubco2/leapp-repository
ad98ad91d06d0adfe945566a414c95df862c4172
[ "Apache-2.0" ]
null
null
null
import json import os import shutil import sys from tempfile import NamedTemporaryFile from leapp.actors import Actor from leapp.libraries.stdlib import run from leapp.libraries.stdlib.call import STDOUT from leapp.libraries.stdlib.config import is_debug from leapp.models import FilteredRpmTransactionTasks, UsedTarget...
35.010101
110
0.608771
ae79aeceba95f40d5f9fcc2e4d5369b09e8012c1
1,880
py
Python
imagepy/menus/Kit3D/Viewer 3D/demo_plgs.py
pengguanjun/imagepy
d96ef98c2c3e93d368131fd2753bce164e1247cd
[ "BSD-4-Clause" ]
1
2020-08-17T04:18:35.000Z
2020-08-17T04:18:35.000Z
imagepy/menus/Kit3D/Viewer 3D/demo_plgs.py
cycleuser/imagepy
5dc1a9a8137280c5215287392ba1b23d368bd7e9
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Kit3D/Viewer 3D/demo_plgs.py
cycleuser/imagepy
5dc1a9a8137280c5215287392ba1b23d368bd7e9
[ "BSD-4-Clause" ]
null
null
null
from imagepy.core.engine import Free from sciapp.object import Surface, MarkText from sciapp.util import surfutil import numpy as np class Decoration(Free): title = 'Decoration Demo' def run(self, para=None): dphi, dtheta = np.pi/20.0, np.pi/20.0 [phi,theta] = np.mgrid[0:np.pi+dphi*1.5:dphi,0:2*np.pi+dtheta*1...
34.814815
93
0.611702
122589d66b8200e6e43afd2895cbaee889046018
20,706
py
Python
openstack/tests/unit/object_store/v1/test_proxy.py
jlyheden/openstacksdk
7e0dcaaa4a69b17b97e746ce8de104689c60becc
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/object_store/v1/test_proxy.py
jlyheden/openstacksdk
7e0dcaaa4a69b17b97e746ce8de104689c60becc
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/object_store/v1/test_proxy.py
jlyheden/openstacksdk
7e0dcaaa4a69b17b97e746ce8de104689c60becc
[ "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 required by applicable law or agreed to in writing, software # distributed under t...
38.132597
79
0.569931
c9863b17cfea0fe5768b4af2497e1fa271531beb
19,586
py
Python
src/env_cylc.py
NCAR/CESM-WF
7a04ece110dbb3c84bcbd823e66f5d866a83720d
[ "Unlicense" ]
5
2017-09-15T18:43:27.000Z
2020-08-14T04:04:34.000Z
src/env_cylc.py
NCAR/CESM-WF
7a04ece110dbb3c84bcbd823e66f5d866a83720d
[ "Unlicense" ]
2
2016-11-18T20:54:30.000Z
2016-11-29T22:57:58.000Z
src/env_cylc.py
NCAR/CESM-WF
7a04ece110dbb3c84bcbd823e66f5d866a83720d
[ "Unlicense" ]
7
2017-03-19T07:39:45.000Z
2020-11-05T20:16:44.000Z
import os, sys, subprocess, glob import math from standard_script_setup import * from CIME.case import Case from CIME.utils import transform_vars from CIME.XML.batch import Batch class EnvCylc(): def __init__(self): self.env = {} self.ptile = None ...
50.220513
174
0.542632
d8898dda91e4636fcae4c67323c078a3abbb400d
842
py
Python
python/getImages.py
Short-T/CS3103
6b5b42c2347be013ef255d6f021170d9419088b2
[ "Apache-2.0" ]
null
null
null
python/getImages.py
Short-T/CS3103
6b5b42c2347be013ef255d6f021170d9419088b2
[ "Apache-2.0" ]
null
null
null
python/getImages.py
Short-T/CS3103
6b5b42c2347be013ef255d6f021170d9419088b2
[ "Apache-2.0" ]
1
2022-03-22T17:01:05.000Z
2022-03-22T17:01:05.000Z
#!/bin/env python3 # # Improved demonstration of pymysql to call a stored procedure # Logan Davidson, March 19 2022 # import pymysql.cursors import settings # Make the connection dbConnection = pymysql.connect(settings.DBHOST, settings.DBUSER, settings.DBPASSWD, settings.DBDATABASE, charset='utf8mb4...
22.157895
66
0.731591
7376d4e6bdda291944233e705bad47fb9cdaac51
375,826
py
Python
tests/test_datasets.py
davesteps/kluster
35ffd9120cf46f01cc706f1fe8b466ef3801382d
[ "CC0-1.0" ]
null
null
null
tests/test_datasets.py
davesteps/kluster
35ffd9120cf46f01cc706f1fe8b466ef3801382d
[ "CC0-1.0" ]
null
null
null
tests/test_datasets.py
davesteps/kluster
35ffd9120cf46f01cc706f1fe8b466ef3801382d
[ "CC0-1.0" ]
null
null
null
import logging import numpy as np import xarray as xr from HSTB.kluster import xarray_conversion class SyntheticFqpr: """ DEPRECATED - moved to just copying and pasting records to get a test dataset. Class holding the synthetic data that I came up with. You can pass in new attitude or mounting angle va...
108.338426
182
0.477224
fd458ff72623db3649c7915a35f804c0aaafff28
359
py
Python
flask_worker/task.py
GrayMissing/flask-worker
d35fa7528c536de88dab93ae431b7860b59b53fc
[ "Apache-2.0" ]
2
2017-03-16T06:31:39.000Z
2017-03-16T09:22:35.000Z
flask_worker/task.py
GrayMissing/flask-worker
d35fa7528c536de88dab93ae431b7860b59b53fc
[ "Apache-2.0" ]
null
null
null
flask_worker/task.py
GrayMissing/flask-worker
d35fa7528c536de88dab93ae431b7860b59b53fc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from .message import Message class Task(object): def __init__(self, func, worker): self.func = func self.worker = worker def start(self, *args, **kwargs): self.func(*args, **kwargs) def delay(self, *args, **kwargs): self.worker.default_chan.push(Message(se...
21.117647
66
0.615599
b2ac550678d972146bdb0deef242dcedda81f586
8,153
py
Python
ssguan/ignitor/auth/service.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
1
2015-07-14T14:24:05.000Z
2015-07-14T14:24:05.000Z
ssguan/ignitor/auth/service.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
null
null
null
ssguan/ignitor/auth/service.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 www.suishouguan.com # # Licensed under the Private License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://github.com/samuelbaizg/ssguan/blob/master/LICENSE # # Unless ...
38.098131
110
0.6562
bb09f432a4c73afcec57760f45fa39fb783a3b84
6,850
py
Python
tests/flow/test_value_comparisons.py
filipecosta90/RedisGraph
96c00296b3dab510a101c24ad70cfd3f715f3805
[ "Ruby", "ISC", "MIT" ]
null
null
null
tests/flow/test_value_comparisons.py
filipecosta90/RedisGraph
96c00296b3dab510a101c24ad70cfd3f715f3805
[ "Ruby", "ISC", "MIT" ]
null
null
null
tests/flow/test_value_comparisons.py
filipecosta90/RedisGraph
96c00296b3dab510a101c24ad70cfd3f715f3805
[ "Ruby", "ISC", "MIT" ]
null
null
null
from RLTest import Env from redisgraph import Graph, Node, Edge from base import FlowTestsBase redis_graph = None dis_redis = None redis_con = None values = ["str1", "str2", False, True, 5, 10.5] class testValueComparison(FlowTestsBase): def __init__(self): super(testValueComparison, self).__init__() ...
42.546584
97
0.646423
16f0615488dab37019cb2874be31171266439f34
3,236
py
Python
profiles_project/settings.py
JackHarris1973/profiles-rest-api
9868e612d7d01d733524618d47c69128ec3f29e4
[ "MIT" ]
null
null
null
profiles_project/settings.py
JackHarris1973/profiles-rest-api
9868e612d7d01d733524618d47c69128ec3f29e4
[ "MIT" ]
null
null
null
profiles_project/settings.py
JackHarris1973/profiles-rest-api
9868e612d7d01d733524618d47c69128ec3f29e4
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.68254
91
0.698702
4ff1d43c0dece812b3eaa2f892cb9a31c3edb5ef
3,080
py
Python
app/app/settings.py
cherylliao/Back
c06dc609eb7bc38b881f9f9400e2b9e47a64e46d
[ "MIT" ]
null
null
null
app/app/settings.py
cherylliao/Back
c06dc609eb7bc38b881f9f9400e2b9e47a64e46d
[ "MIT" ]
null
null
null
app/app/settings.py
cherylliao/Back
c06dc609eb7bc38b881f9f9400e2b9e47a64e46d
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.11. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.454545
91
0.694481
09360e074db5425dc4eca08ff799449da7477981
17,985
py
Python
plugins/modules/panos_facts.py
bvaradinov-c/pan-os-ansible
554960c9d9e81076020fa1cd8ca8892307fcadc7
[ "Apache-2.0" ]
null
null
null
plugins/modules/panos_facts.py
bvaradinov-c/pan-os-ansible
554960c9d9e81076020fa1cd8ca8892307fcadc7
[ "Apache-2.0" ]
null
null
null
plugins/modules/panos_facts.py
bvaradinov-c/pan-os-ansible
554960c9d9e81076020fa1cd8ca8892307fcadc7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Tomi Raittinen <tomi.raittinen@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metad...
31.831858
110
0.61012
057024a514fef642fdf17bcf97a7597f247c9355
942
py
Python
setup.py
mathcube7/swiftex
384d586d9a2f24f6b6d4d888b41adfc8683df13f
[ "MIT" ]
null
null
null
setup.py
mathcube7/swiftex
384d586d9a2f24f6b6d4d888b41adfc8683df13f
[ "MIT" ]
null
null
null
setup.py
mathcube7/swiftex
384d586d9a2f24f6b6d4d888b41adfc8683df13f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from os.path import exists from setuptools import setup, find_packages author = 'mathcube' email = 'mathcube7@gmail.com' description = 'Easy and fast math typesetting with Python' name = 'swiftex' year = '2021' url = 'https://github.com/mathcube7/swiftex' version = '0.0.4'...
26.914286
77
0.641189
a7390e842da2b260bba5d7e81648e01a710a9d51
9,548
py
Python
chunkflow/chunk/image/adjust_grey.py
fcollman/chunkflow
5834d406d4fc3579bae37edfb50a11dc67f4a1a3
[ "Apache-2.0" ]
null
null
null
chunkflow/chunk/image/adjust_grey.py
fcollman/chunkflow
5834d406d4fc3579bae37edfb50a11dc67f4a1a3
[ "Apache-2.0" ]
null
null
null
chunkflow/chunk/image/adjust_grey.py
fcollman/chunkflow
5834d406d4fc3579bae37edfb50a11dc67f4a1a3
[ "Apache-2.0" ]
null
null
null
# Shang Mu, January 2019 # No stability consideration is accounted for in implementing this. # TODO: Need unit tests # TODO: use the out=None convention of numpy for in-place edits vs # new copy of array import numpy as np from chunkflow.chunk import Chunk def window_level(img, half_window, level): r''' Pixe...
32.040268
115
0.556137
35793eef09fcdb65906ac466037ca753adc9ee32
4,841
py
Python
python/pySimE/space/exp/OrbitalTransferOpt/Poly6th_symbolic.py
ProkopHapala/SimpleSimulationEngine
240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5
[ "MIT" ]
26
2016-12-04T04:45:12.000Z
2022-03-24T09:39:28.000Z
python/pySimE/space/exp/OrbitalTransferOpt/Poly6th_symbolic.py
Aki78/FlightAI
9c5480f2392c9c89b9fee4902db0c4cde5323a6c
[ "MIT" ]
null
null
null
python/pySimE/space/exp/OrbitalTransferOpt/Poly6th_symbolic.py
Aki78/FlightAI
9c5480f2392c9c89b9fee4902db0c4cde5323a6c
[ "MIT" ]
2
2019-02-09T12:31:06.000Z
2019-04-28T02:24:50.000Z
#!/usr/bin/env python from sympy import * from sympy.matrices import Matrix print print " ==== Solution of 6th order polygon coeficients ==== " p0, p1, v0, v1, a0,a1,t = symbols('p0 p1 v0 v1 a0 a1 t') " 1 t t2 t3 t4 t5 " A = Matrix([ [ 1, 0, 0, 0, 0, 0 ], # p0 [ 1, 1, 1, 1, 1, 1 ...
23.5
90
0.545755
ddc835c6da3483b1e93f1fbf9227a4fb76b33ab3
756
py
Python
manage.py
sheillanjoroge/Blogs-Que
0887f3d87897898c8140fe30b1b0dca7d7340ee1
[ "Unlicense" ]
1
2020-12-14T09:18:57.000Z
2020-12-14T09:18:57.000Z
manage.py
sheillanjoroge/Blogs-Que
0887f3d87897898c8140fe30b1b0dca7d7340ee1
[ "Unlicense" ]
null
null
null
manage.py
sheillanjoroge/Blogs-Que
0887f3d87897898c8140fe30b1b0dca7d7340ee1
[ "Unlicense" ]
null
null
null
from app import create_app,db from flask_script import Manager,Server from app.models import User,Post from flask_migrate import Migrate, MigrateCommand # Creating app instance app = create_app('production') # app = create_app('production') manager = Manager(app) manager.add_command('server',Server) migrate = Mig...
22.909091
60
0.723545
d80cb7a47cf34e3b4f1dfcdca3427661e174e9ca
28,732
py
Python
python-package/lightgbm/engine.py
AIshb/LightGBM
486f6de4847667c8b8622009f93ddeab02c24466
[ "MIT" ]
null
null
null
python-package/lightgbm/engine.py
AIshb/LightGBM
486f6de4847667c8b8622009f93ddeab02c24466
[ "MIT" ]
null
null
null
python-package/lightgbm/engine.py
AIshb/LightGBM
486f6de4847667c8b8622009f93ddeab02c24466
[ "MIT" ]
1
2020-07-23T15:27:08.000Z
2020-07-23T15:27:08.000Z
# coding: utf-8 """Library with training routines of LightGBM.""" from __future__ import absolute_import import collections import copy import warnings from operator import attrgetter import numpy as np from . import callback from .basic import Booster, Dataset, LightGBMError, _ConfigAliases, _InnerPredictor from .c...
48.698305
128
0.650738
54085bdc3d96ab30a7bd22998d80f2c64bb93967
2,343
py
Python
rel1-beta/bluecat_app/bin/dnsalert.py
mheidir/BlueCatSG-SplunkApp-UnOfficial
bd914b8650d191e48c18acda5bdd70aeabb99207
[ "Apache-2.0" ]
1
2018-06-26T14:57:54.000Z
2018-06-26T14:57:54.000Z
rel1-beta/bluecat_app/bin/dnsalert.py
mheidir/BlueCatSG-SplunkApp-UnOfficial
bd914b8650d191e48c18acda5bdd70aeabb99207
[ "Apache-2.0" ]
null
null
null
rel1-beta/bluecat_app/bin/dnsalert.py
mheidir/BlueCatSG-SplunkApp-UnOfficial
bd914b8650d191e48c18acda5bdd70aeabb99207
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys, os, datetime sys.path.append("/opt/splunk/etc/apps/framework/contrib/splunk-sdk-python/") from time import sleep import splunklib.client as client import splunklib.results as results from bluecat import api from bluecat import api_exception from bluecat import entity from bluecat.wrap...
34.455882
152
0.66752
70419232c1e6951b01e4100134862ee0dd3a0e93
4,307
py
Python
apps/glossy-test/test_tools/analysis/build_setting.py
dlobba/lwb-cc2538
4a41de11ab43eb75574e521e70b22bb38714bc57
[ "BSD-3-Clause" ]
1
2020-04-12T12:04:11.000Z
2020-04-12T12:04:11.000Z
apps/glossy-test/test_tools/analysis/build_setting.py
dlobba/lwb-cc2538
4a41de11ab43eb75574e521e70b22bb38714bc57
[ "BSD-3-Clause" ]
null
null
null
apps/glossy-test/test_tools/analysis/build_setting.py
dlobba/lwb-cc2538
4a41de11ab43eb75574e521e70b22bb38714bc57
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import re from collections import OrderedDict # ----------------------------------------------------------------------------- # SETTINGS # ----------------------------------------------------------------------------- SIM_SETTINGS = "settings.csv" # fields SIM_NTX = "ntx" SIM_INITIATOR = "initiator"...
32.141791
83
0.625493
133181f908afe6e5d507a28152f19fdd1b7cba2c
9,542
py
Python
ambassador/ambassador/config/resourcefetcher.py
lolletsoc/ambassador
7afb14b997290f10d5c3627a85432ab31ccffd0c
[ "Apache-2.0" ]
null
null
null
ambassador/ambassador/config/resourcefetcher.py
lolletsoc/ambassador
7afb14b997290f10d5c3627a85432ab31ccffd0c
[ "Apache-2.0" ]
null
null
null
ambassador/ambassador/config/resourcefetcher.py
lolletsoc/ambassador
7afb14b997290f10d5c3627a85432ab31ccffd0c
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Tuple, TYPE_CHECKING # from typing import cast as typecast import json import logging import os import yaml # from collections import namedtuple from .acresource import ACResource # from ..utils import RichStatus if TYPE_CHECKING: from .config import Config # StringOrList is ...
39.593361
119
0.60459
601c20fc70b2c4c025895b6a31c983530e66d1e3
6,329
py
Python
akivymd/uix/onboarding.py
JUDE122-MAX/akivymd
b2daddd2f58889859514286606f46a4af6f03828
[ "MIT" ]
51
2020-06-18T15:14:02.000Z
2022-03-07T05:46:11.000Z
akivymd/uix/onboarding.py
JUDE122-MAX/akivymd
b2daddd2f58889859514286606f46a4af6f03828
[ "MIT" ]
16
2020-07-19T08:13:45.000Z
2021-06-05T20:55:12.000Z
akivymd/uix/onboarding.py
JUDE122-MAX/akivymd
b2daddd2f58889859514286606f46a4af6f03828
[ "MIT" ]
15
2020-07-18T10:34:10.000Z
2021-07-03T09:07:37.000Z
from kivy.animation import Animation from kivy.clock import Clock from kivy.core.window import Window from kivy.event import EventDispatcher from kivy.lang import Builder from kivy.metrics import dp from kivy.properties import ( BooleanProperty, ListProperty, NumericProperty, StringProperty, ) from kivy...
31.02451
100
0.625217
1377ef1d2b3d26f3cb21622018b84fcb43f3a66b
20,018
py
Python
poppy/manager/default/ssl_certificate.py
LukeRepko/poppy
0620ff595f8fcaa445b684de99ad130a3c398461
[ "Apache-2.0" ]
3
2017-07-05T20:09:59.000Z
2018-11-27T22:02:57.000Z
poppy/manager/default/ssl_certificate.py
LukeRepko/poppy
0620ff595f8fcaa445b684de99ad130a3c398461
[ "Apache-2.0" ]
24
2017-04-18T15:14:04.000Z
2019-03-20T19:09:07.000Z
poppy/manager/default/ssl_certificate.py
LukeRepko/poppy
0620ff595f8fcaa445b684de99ad130a3c398461
[ "Apache-2.0" ]
8
2017-04-03T13:24:27.000Z
2021-11-08T20:28:10.000Z
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
41.704167
79
0.550055
878024ab69f27846b3b55ffe2d3fc64fc136e295
133
py
Python
pybry/__init__.py
pavlo-seimskyi/PyBRY
af86805a8077916f72f3fe980943d4cd741e61f0
[ "MIT" ]
null
null
null
pybry/__init__.py
pavlo-seimskyi/PyBRY
af86805a8077916f72f3fe980943d4cd741e61f0
[ "MIT" ]
null
null
null
pybry/__init__.py
pavlo-seimskyi/PyBRY
af86805a8077916f72f3fe980943d4cd741e61f0
[ "MIT" ]
null
null
null
from .lbryd_api import LbrydApi from .lbrycrd_api import LbrycrdApi from .LBRYException import LBRYException __version__ = '1.6.4'
19
40
0.81203
adb24d256d58f9218131a48f76f096cd72fb64ef
850
py
Python
orders/forms.py
OSAMAMOHAMED1234/E-Commerce_django
c9dc14e47e0a369ad91e21a461d2c28ad47543e7
[ "MIT" ]
3
2018-05-02T20:37:11.000Z
2020-10-15T17:19:26.000Z
orders/forms.py
OSAMAMOHAMED1234/E-Commerce_django
c9dc14e47e0a369ad91e21a461d2c28ad47543e7
[ "MIT" ]
1
2019-06-10T21:35:13.000Z
2019-06-10T21:35:13.000Z
orders/forms.py
OSAMAMOHAMED1234/E-Commerce_django
c9dc14e47e0a369ad91e21a461d2c28ad47543e7
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth import get_user_model from .models import Checkout from products.models import Product User = get_user_model() class UpdateCheckoutForm(forms.ModelForm): product_id = forms.IntegerField(widget=forms.HiddenInput) class Meta: model = Checkout ...
29.310345
108
0.663529
ed30bca65fbc33392e7e50fa5d33b8bb2331da42
2,971
py
Python
python/curagridder/test_ws.py
HLSUD/NUFFT
6dead03fcdfea058ac3c0322723ee73f2695c74a
[ "MIT" ]
1
2021-07-31T12:52:55.000Z
2021-07-31T12:52:55.000Z
python/curagridder/test_ws.py
HLSUD/NUFFT
6dead03fcdfea058ac3c0322723ee73f2695c74a
[ "MIT" ]
1
2021-04-24T16:07:07.000Z
2021-04-24T16:07:07.000Z
python/curagridder/test_ws.py
HLSUD/NUFFT
6dead03fcdfea058ac3c0322723ee73f2695c74a
[ "MIT" ]
null
null
null
from curagridder import ms2dirty, dirty2ms import numpy as np import time # import pytest from numpy.testing import assert_, assert_allclose, assert_array_almost_equal def _l2error(a, b): return np.sqrt(np.sum(np.abs(a-b)**2)/np.sum(np.abs(a)**2)) def explicit_gridder(uvw, freq, ms, nxdirty, nydirty, xpixsize, y...
33.761364
85
0.636486
3974d2b9ba2d874b0b837ddcb54099e0808f3d40
1,425
py
Python
containers/python/rpc_test_container.py
EyalSel/clipper
3c5a1cc6ce59e0ccd778f526a50808d0e7b2576f
[ "Apache-2.0" ]
32
2019-09-11T16:49:58.000Z
2022-01-26T15:40:40.000Z
containers/python/rpc_test_container.py
EyalSel/clipper
3c5a1cc6ce59e0ccd778f526a50808d0e7b2576f
[ "Apache-2.0" ]
7
2018-06-20T22:06:09.000Z
2019-01-07T04:01:22.000Z
containers/python/rpc_test_container.py
EyalSel/clipper
3c5a1cc6ce59e0ccd778f526a50808d0e7b2576f
[ "Apache-2.0" ]
9
2019-09-03T14:05:26.000Z
2021-12-22T07:17:27.000Z
import rpc import os import sys import numpy as np import json class RPCTestContainer(rpc.ModelContainerBase): def __init__(self, rpc_service): self.rpc_service = rpc_service def predict_doubles(self, inputs): outputs = [] for input_item in inputs: input_item = inputs[0] ...
30.978261
74
0.61193
72801996b90f7c15a7bbd56251dc8790958fb2c5
81,567
py
Python
nxt_editor/dockwidgets/property_editor.py
nxt-dev/nxt_editor
7497c280f8c27a06d3cfc2be1de5d9eb80eca913
[ "MIT" ]
131
2020-12-03T08:01:26.000Z
2022-03-07T03:41:37.000Z
nxt_editor/dockwidgets/property_editor.py
zklins/nxt_editor
57386a561c5e1d216a8998ef63a6bd9b02c62b7c
[ "MIT" ]
127
2020-12-07T21:43:02.000Z
2022-02-17T22:31:14.000Z
nxt_editor/dockwidgets/property_editor.py
zklins/nxt_editor
57386a561c5e1d216a8998ef63a6bd9b02c62b7c
[ "MIT" ]
17
2020-12-08T08:06:44.000Z
2021-11-18T05:40:11.000Z
# Built-in import textwrap import sys import logging from functools import partial # External from Qt import QtWidgets from Qt import QtGui from Qt import QtCore try: QtCore.QStringListModel except AttributeError: del QtCore from PySide2 import QtCore # Internal from nxt_editor import user_dir from nxt_ed...
44.596501
136
0.596467
94b2252d0d890e7c8feb5c93edb487cb4d2dda81
30,536
py
Python
modules/eden/sync.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
modules/eden/sync.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
modules/eden/sync.py
unimauro/eden
b739d334e6828d0db14b3790f2f5e2666fc83576
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sahana Eden Synchronization @author: Dominic König <dominic[at]aidiq.com> @copyright: 2009-2012 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
42.88764
259
0.442789
547588c9f5a63bbe8cc0f6d233c6c83960dfbfaf
756
py
Python
DataWrangling/insert.py
aguijarro/DataSciencePython
cb8725947da647b28e40ec9f2149606268f07577
[ "MIT" ]
null
null
null
DataWrangling/insert.py
aguijarro/DataSciencePython
cb8725947da647b28e40ec9f2149606268f07577
[ "MIT" ]
null
null
null
DataWrangling/insert.py
aguijarro/DataSciencePython
cb8725947da647b28e40ec9f2149606268f07577
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Add a single line of code to the insert_autos function that will insert the automobile data into the 'autos' collection. The data variable that is returned from the process_file function is a list of dictionaries, as in the example in the previous video. """ from autos import process_file d...
29.076923
76
0.718254
276ee023892a08d37a18226b741630234c7ba565
8,576
py
Python
tools/wave/network/api/results_api_handler.py
cta-wave/dpctf-test-runner
9c6a856dd73d97f7efaa3a4b97e0f5978f916dd2
[ "BSD-3-Clause" ]
1
2021-06-07T12:19:31.000Z
2021-06-07T12:19:31.000Z
tools/wave/network/api/results_api_handler.py
cta-wave/dpctf-test-runner
9c6a856dd73d97f7efaa3a4b97e0f5978f916dd2
[ "BSD-3-Clause" ]
21
2021-03-31T19:48:22.000Z
2022-03-12T00:24:53.000Z
tools/wave/network/api/results_api_handler.py
cta-wave/dpctf-test-runner
9c6a856dd73d97f7efaa3a4b97e0f5978f916dd2
[ "BSD-3-Clause" ]
1
2020-07-17T13:06:00.000Z
2020-07-17T13:06:00.000Z
from __future__ import absolute_import from __future__ import unicode_literals import json from .api_handler import ApiHandler from ...data.exceptions.duplicate_exception import DuplicateException from ...data.exceptions.invalid_data_exception import InvalidDataException class ResultsApiHandler(ApiHandler): def ...
36.806867
79
0.570079
983e401fc8efc6f7bcac566339b839313dd35731
1,233
py
Python
src/party3rd/network.py
yaroslavNikolaev/A.R.M.O.R.
443b50ad39b7ada7562db62c36824c7c4edb842b
[ "MIT" ]
1
2020-03-29T20:53:28.000Z
2020-03-29T20:53:28.000Z
src/party3rd/network.py
yaroslavNikolaev/A.R.M.O.R.
443b50ad39b7ada7562db62c36824c7c4edb842b
[ "MIT" ]
null
null
null
src/party3rd/network.py
yaroslavNikolaev/A.R.M.O.R.
443b50ad39b7ada7562db62c36824c7c4edb842b
[ "MIT" ]
null
null
null
from utils.collectors import GitHubVersionCollector from utils.configuration import Configuration class NginxVersionCollector(GitHubVersionCollector): owner = "nginx" repo = "nginx" @staticmethod def get_application_name() -> str: return "nginx" def __init__(self, config: Configuration):...
24.176471
55
0.690187
a3375b08a97f7e5614a265191c300d9fcded5f00
6,038
py
Python
automated_testing/plotting_functions.py
yT0n1/D3MEAP-Projekt
138a10da2eba7b57d79a7b051f687652c1e05f86
[ "BSD-Source-Code" ]
null
null
null
automated_testing/plotting_functions.py
yT0n1/D3MEAP-Projekt
138a10da2eba7b57d79a7b051f687652c1e05f86
[ "BSD-Source-Code" ]
null
null
null
automated_testing/plotting_functions.py
yT0n1/D3MEAP-Projekt
138a10da2eba7b57d79a7b051f687652c1e05f86
[ "BSD-Source-Code" ]
null
null
null
import math import matplotlib.pyplot as plt import numpy as np """ Plotting Functions: This file includes all plotting variants used in the automated testing """ def plot_data(df, min_nodes, max_nodes, problems, squeezed): problem_hardness = [] for problem in problems: problem_hardness.append...
51.169492
190
0.525836
79440c1684e8cd9185325689d9bdc263f9f75510
5,304
py
Python
jtop/core/tegrastats.py
alx/jetson_stats
a55d5d67bf268bb47fe75a9a0b15598e99bfe9ea
[ "MIT" ]
null
null
null
jtop/core/tegrastats.py
alx/jetson_stats
a55d5d67bf268bb47fe75a9a0b15598e99bfe9ea
[ "MIT" ]
null
null
null
jtop/core/tegrastats.py
alx/jetson_stats
a55d5d67bf268bb47fe75a9a0b15598e99bfe9ea
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # Copyright (C) 2019, Raffaello Bonghi <raffaello@rnext.it> # 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. Redistributions of source code must retain the above cop...
34.219355
115
0.625
47471bf5dca6e5e15b2c531b34a263f4083063a8
435
py
Python
S1/TP5/ex7.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex7.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
S1/TP5/ex7.py
HerbeMalveillante/ecole
bebbc73cd678c58c9cd40389ea1cf229a0200308
[ "MIT" ]
null
null
null
import random def cree(n): return [random.randint(0, 20) for i in range(n)] def apparitions(x, lis): return [indice for indice, item in enumerate(lis) if item == x] entiers = int(input("Saisir le nombre d'entiers de la liste : ")) liste = cree(entiers) print(f"Liste : {liste}") entierRecherche = int(input...
25.588235
80
0.698851
2004322087704bee1d0827c88ebc9164c562bb3d
688
py
Python
nightcrawler/apps/services/management/commands/script.py
alchucam/nightcrawler
e2c29c6b6b35b5090b3e5e9e11e477a5ad07fd46
[ "Apache-2.0" ]
null
null
null
nightcrawler/apps/services/management/commands/script.py
alchucam/nightcrawler
e2c29c6b6b35b5090b3e5e9e11e477a5ad07fd46
[ "Apache-2.0" ]
2
2020-06-05T18:19:00.000Z
2021-06-10T20:20:54.000Z
nightcrawler/apps/services/management/commands/script.py
alchucam/nightcrawler
e2c29c6b6b35b5090b3e5e9e11e477a5ad07fd46
[ "Apache-2.0" ]
1
2018-12-04T06:30:09.000Z
2018-12-04T06:30:09.000Z
from django.core.management.base import BaseCommand, CommandError from nightcrawler.apps.services.updater import * class Command(BaseCommand): help = 'update to models for display and analysis' def handle(self, *args, **options): print("Start periodic tasks") nytimesUpdater().save_to_models() ...
34.4
65
0.703488
fc8cc1440b9028bcd0cd317e094f1e3ca99a128a
71,494
py
Python
modules/java/generator/gen_java.py
ev3dev/opencv
781edd9001a85f259f2c10d6c2b70204eb221e70
[ "BSD-3-Clause" ]
20
2016-12-14T06:11:12.000Z
2018-10-24T20:09:47.000Z
modules/java/generator/gen_java.py
ev3dev/opencv
781edd9001a85f259f2c10d6c2b70204eb221e70
[ "BSD-3-Clause" ]
28
2016-10-16T19:42:37.000Z
2018-09-14T21:29:48.000Z
modules/java/generator/gen_java.py
ev3dev/opencv
781edd9001a85f259f2c10d6c2b70204eb221e70
[ "BSD-3-Clause" ]
29
2016-11-24T21:49:36.000Z
2019-07-12T20:36:58.000Z
#!/usr/bin/env python import sys, re, os.path import logging from pprint import pformat from string import Template if sys.version_info[0] >= 3: from io import StringIO else: from cStringIO import StringIO class_ignore_list = ( #core "FileNode", "FileStorage", "KDTree", "KeyPoint", "DMatch", #fea...
44.213976
185
0.515204
bde74b17dfc4e7b2155a799540cbc8ef7baf83a7
58,094
py
Python
botenv/lib/python3.9/site-packages/redis/connection.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
null
null
null
botenv/lib/python3.9/site-packages/redis/connection.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
null
null
null
botenv/lib/python3.9/site-packages/redis/connection.py
0xtuytuy/unit-crypto-ski-week-poap-bot
9bab0a6013a29db9ce76311d4f6fa1d0922ac5c1
[ "MIT" ]
null
null
null
import copy import errno import io import os import socket import threading import weakref from itertools import chain from queue import Empty, Full, LifoQueue from time import time from urllib.parse import parse_qs, unquote, urlparse from packaging.version import Version from redis.backoff import NoBackoff from redi...
37.431701
126
0.609633
321082411933c2a997df250a29e221806c1a5efd
1,006
py
Python
Edge_Detection_Examples/EdgeSlider.py
user2745/BeeFanningDetector
52d562c3c2a40179386ae3e04b02631e92c5747b
[ "MIT" ]
3
2020-01-01T17:42:24.000Z
2020-05-28T15:30:33.000Z
Edge_Detection_Examples/EdgeSlider.py
user2745/BeeFanningDetector
52d562c3c2a40179386ae3e04b02631e92c5747b
[ "MIT" ]
2
2020-01-21T06:18:10.000Z
2020-04-20T22:51:15.000Z
Edge_Detection_Examples/EdgeSlider.py
user2745/BeeFanningDetector
52d562c3c2a40179386ae3e04b02631e92c5747b
[ "MIT" ]
1
2020-01-20T05:57:40.000Z
2020-01-20T05:57:40.000Z
from __future__ import print_function import cv2 as cv import argparse import sys max_lowThreshold = 100 window_name = sys.argv[2] title_trackbar = 'Min Threshold:' ratio = 2 kernel_size = 3 def CannyThreshold(val): low_threshold = val img_blur = cv.blur(src_gray, (3,3), 0) detected_edges = cv.Canny(img_blu...
35.928571
86
0.747515
be7f075fea00a4570d50fd30f1685139b70a8bb6
123
py
Python
configs/vfnet/vfnet_r101_fpn_mstrain_2x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
426
2020-10-16T08:09:27.000Z
2022-03-30T03:36:04.000Z
configs/vfnet/vfnet_r101_fpn_mstrain_2x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
170
2020-09-08T12:29:06.000Z
2022-03-31T18:28:09.000Z
configs/vfnet/vfnet_r101_fpn_mstrain_2x_coco.py
evgps/mmdetection_trashcan
aaf4237c2c0d473425cdc7b741d3009177b79751
[ "Apache-2.0" ]
61
2021-07-30T07:51:41.000Z
2022-03-30T14:40:02.000Z
_base_ = './vfnet_r50_fpn_mstrain_2x_coco.py' model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
41
76
0.780488
c66402e8e11b9b0cedd0f70dd4582e22bf6ab570
8,335
py
Python
sdk/lusid_asyncio/models/paged_resource_list_of_compliance_rule_result.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/paged_resource_list_of_compliance_rule_result.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/paged_resource_list_of_compliance_rule_result.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3923 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
31.217228
140
0.616197