hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a02be85ee1128250c007a1ebdfb06ba8e895abb
67
py
Python
lost_ds/detection/api.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
1
2022-03-30T11:29:57.000Z
2022-03-30T11:29:57.000Z
lost_ds/detection/api.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
lost_ds/detection/api.py
l3p-cv/lost_ds
4a2f3ef027128b759d28e67cb1fdaa0a557e343c
[ "MIT" ]
null
null
null
from lost_ds.detection.detection import detection_dataset, bbox_nms
67
67
0.895522
4a02bf94ca2c2762a277da6df12ccea5a26653a2
11,689
py
Python
tools/python/boutiques/creator.py
shots47s/boutiques
831f937a6b1491af63a800786967e4d9bca1e262
[ "MIT" ]
2
2016-11-01T15:08:37.000Z
2018-09-07T20:56:43.000Z
tools/python/boutiques/creator.py
shots47s/boutiques
831f937a6b1491af63a800786967e4d9bca1e262
[ "MIT" ]
null
null
null
tools/python/boutiques/creator.py
shots47s/boutiques
831f937a6b1491af63a800786967e4d9bca1e262
[ "MIT" ]
1
2018-03-20T15:51:00.000Z
2018-03-20T15:51:00.000Z
#!/usr/bin/env python import tempfile import argparse import sys import os import simplejson as json import os.path as op from jsonschema import validate, ValidationError from argparse import ArgumentParser from boutiques import __file__ as bfile from boutiques.logger import raise_error, print_info, print_warning impo...
43.779026
80
0.531098
4a02c12c561e394af9d25a14b03e2e022a0575e9
4,016
py
Python
workflow/scripts/combine-motevo-results.py
zavolanlab/bindz-rbp
7dddbb65c00450f0bb8e91465dbc8a9c9ef4690c
[ "Apache-2.0" ]
null
null
null
workflow/scripts/combine-motevo-results.py
zavolanlab/bindz-rbp
7dddbb65c00450f0bb8e91465dbc8a9c9ef4690c
[ "Apache-2.0" ]
2
2022-02-13T22:22:44.000Z
2022-02-14T16:15:26.000Z
workflow/scripts/combine-motevo-results.py
zavolanlab/bindz-rbp
7dddbb65c00450f0bb8e91465dbc8a9c9ef4690c
[ "Apache-2.0" ]
null
null
null
############################################################################## # AUTHOR: Krish Agarwal # AFFILIATION: University_of_Basel # CONTACT: akrish136@gmail.com # CREATED: 14-07-2020 # LICENSE: Apache_2.0 ############################################################################## ##### Importing n...
31.622047
121
0.641434
4a02c166750025825945e772f39566ab9cd953ce
113,047
py
Python
blender/arm/props_ui.py
trisadmeslek/armory
0abd91c72886aa267552cad98c54425445bb5810
[ "Zlib" ]
null
null
null
blender/arm/props_ui.py
trisadmeslek/armory
0abd91c72886aa267552cad98c54425445bb5810
[ "Zlib" ]
null
null
null
blender/arm/props_ui.py
trisadmeslek/armory
0abd91c72886aa267552cad98c54425445bb5810
[ "Zlib" ]
null
null
null
import json import os import shutil import bpy from bpy.props import * from arm.lightmapper.panels import scene import arm.api import arm.assets as assets from arm.exporter import ArmoryExporter import arm.log as log import arm.logicnode.replacement import arm.make as make import arm.make_state as state import arm.p...
39.903636
401
0.645112
4a02c1e82ee00739541884ea01157e2c2d85bac7
7,493
py
Python
argo/workflows/client/models/io_argoproj_events_v1alpha1_resource_event_source.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/io_argoproj_events_v1alpha1_resource_event_source.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
argo/workflows/client/models/io_argoproj_events_v1alpha1_resource_event_source.py
argentumcode/argo-client-python
31c1519056379d3f046d4b522f37af87243fdbb4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: v3.0.4 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 ...
33.008811
159
0.648205
4a02c21fa0fceb55a21e7c5660f451deb3e29332
125
py
Python
week3/apps.py
CharityMutonii/award
4847a61542869851016fb4fb87016ddf558ec2fb
[ "MIT" ]
2
2020-11-02T18:58:18.000Z
2021-01-06T10:59:23.000Z
week3/apps.py
CharityMutonii/award
4847a61542869851016fb4fb87016ddf558ec2fb
[ "MIT" ]
null
null
null
week3/apps.py
CharityMutonii/award
4847a61542869851016fb4fb87016ddf558ec2fb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class Week3Config(AppConfig): name = 'week3'
17.857143
39
0.792
4a02c23247891fd7bbb18fe2449d3ed603614f37
1,173
py
Python
examples/utils/event_callback.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
29
2019-12-28T10:37:16.000Z
2022-02-09T10:48:04.000Z
examples/utils/event_callback.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
29
2019-12-26T13:46:11.000Z
2022-03-29T18:14:33.000Z
examples/utils/event_callback.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
17
2019-12-29T11:49:32.000Z
2022-02-23T00:28:18.000Z
import sys from PySide2.QtGui import QColor from PySide2.QtWidgets import QApplication from pivy import quarter, coin # testing if a eventcallback can remove itself. class test(coin.SoSeparator): def __init__(self): super(test, self).__init__() self.events = coin.SoEventCallback() self +=...
26.066667
63
0.665814
4a02c3bd546cd85b4f15c49a62086146a6a6f013
4,929
py
Python
discovery-provider/src/utils/config.py
atticwip/audius-protocol
9758e849fae01508fa1d27675741228b11533e6e
[ "Apache-2.0" ]
4
2021-12-24T14:16:05.000Z
2022-01-13T22:41:33.000Z
discovery-provider/src/utils/config.py
SNOmad1/audius-protocol
3d5fc2bf688265eb529060f1f3234ef2b95ed231
[ "Apache-2.0" ]
null
null
null
discovery-provider/src/utils/config.py
SNOmad1/audius-protocol
3d5fc2bf688265eb529060f1f3234ef2b95ed231
[ "Apache-2.0" ]
null
null
null
# TODO: Add DocString import logging import configparser import os import os.path import datetime from flask import current_app logger = logging.getLogger(__name__) config_files = [] if os.path.isfile("default_config.ini"): config_files.append("default_config.ini") if os.path.isfile("contract_config.ini"): ...
38.811024
98
0.685332
4a02c3d4035bbfbfa3bf126623d2d36e4469c88e
934
py
Python
019.py
reiyw/nlp100
d664e30a7e75de1730a672f705b4d76548c45bb8
[ "MIT" ]
null
null
null
019.py
reiyw/nlp100
d664e30a7e75de1730a672f705b4d76548c45bb8
[ "MIT" ]
null
null
null
019.py
reiyw/nlp100
d664e30a7e75de1730a672f705b4d76548c45bb8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import collections def main(): """19. 各行の1コラム目の文字列の出現頻度を求め,出現頻度の高い順に並べる 各行の1列目の文字列の出現頻度を求め,その高い順に並べて表示せよ. 確認にはcut, uniq, sortコマンドを用いよ. """ # class collections.Counter([iterable-or-mapping]) # 要素を辞書のキーとして保存し,そのカウントを辞書の値として保存する # ...
20.755556
57
0.59636
4a02c45161fd0fdc22ced66bacde21d98c4def85
10,694
py
Python
clox/test/test.py
nomoid/CraftingInterpretersStudy
7b57174cb9627ffdb9e95228d0984061b2727ae8
[ "MIT" ]
null
null
null
clox/test/test.py
nomoid/CraftingInterpretersStudy
7b57174cb9627ffdb9e95228d0984061b2727ae8
[ "MIT" ]
null
null
null
clox/test/test.py
nomoid/CraftingInterpretersStudy
7b57174cb9627ffdb9e95228d0984061b2727ae8
[ "MIT" ]
null
null
null
# Code adapted from https://github.com/munificent/craftinginterpreters/blob/master/util/test.py # The above code is licensed under the MIT license import re from collections import defaultdict from os import listdir from os.path import abspath, basename, dirname, isdir, isfile, join, realpath, relpath, splitext impor...
32.210843
96
0.556293
4a02c493bfbe35777d5ea94511f74d0237b4a1e8
20,867
py
Python
misc/Rhythmbox-Plugin/upnp_coherence/MediaStore.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
null
null
null
misc/Rhythmbox-Plugin/upnp_coherence/MediaStore.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
null
null
null
misc/Rhythmbox-Plugin/upnp_coherence/MediaStore.py
wd8rde/Coherence
792ee3ddf28e4748c116056915a2bb7155137e7f
[ "MIT" ]
null
null
null
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # # Copyright 2011, Caleb Callaway <enlightened-despot@gmail.com> # Copyright 2007-2010, Frank Scholz <dev@coherence-project.org> # Copyright 2007, James Livingston <doclivingston@gmail.com> import os.path import rhythmdb import coheren...
35.915663
156
0.609719
4a02c5702f40bf972aa3bff87bf6e907cd4a1bde
2,946
py
Python
applications/tensorflow/cnns/training/inception_v1/train_images.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/training/inception_v1/train_images.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/training/inception_v1/train_images.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import pdb import os from create_tf_record import * train_record_file = 'dataset/record/train224.tfrecords' val_record_file = 'dataset/record/val224.tfrecords' base_lr = 0.01 batch_size = 32 labels_nums = 5 max_steps = 100 resize_height = 224 resize_width = 224 input_image...
40.916667
139
0.692804
4a02c621228e07c13bb3d4f44a73010711c0e96f
3,951
py
Python
src/oci/bastion/models/work_request_error.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/bastion/models/work_request_error.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/bastion/models/work_request_error.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "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...
29.266667
245
0.627436
4a02c7d33266f2188ba14f8988c67b98b9ba8fdd
383
py
Python
PythonExercicios/ex049.py
MatthewsTomts/Python_Class
f326d521d62c45a4fcb429d2a22cf2ab958492cb
[ "MIT" ]
null
null
null
PythonExercicios/ex049.py
MatthewsTomts/Python_Class
f326d521d62c45a4fcb429d2a22cf2ab958492cb
[ "MIT" ]
null
null
null
PythonExercicios/ex049.py
MatthewsTomts/Python_Class
f326d521d62c45a4fcb429d2a22cf2ab958492cb
[ "MIT" ]
null
null
null
n = int(input('Digite um número inteiro: ')) # Pede para que o usuário digite um número e armazena na variável print('\033[34;1m-' * 12) # Cria um traçado e deixa todos os caracteres a partir do traçado em magenta for i in range(0, 11): print(f' {i} x {n} = \033[1;36m{n * i}\033[34;1m') # Mostra a tabuada do núme...
29.461538
76
0.678851
4a02c7faad346291172e99df500eba2b60283237
1,262
py
Python
setup.py
pvyParts/allianceauth-srp-mod
1b10910923141a6e2500f69bda67a81de172591b
[ "MIT" ]
null
null
null
setup.py
pvyParts/allianceauth-srp-mod
1b10910923141a6e2500f69bda67a81de172591b
[ "MIT" ]
null
null
null
setup.py
pvyParts/allianceauth-srp-mod
1b10910923141a6e2500f69bda67a81de172591b
[ "MIT" ]
3
2020-07-25T07:34:50.000Z
2022-03-09T23:31:45.000Z
import os from setuptools import find_packages, setup from srpmod import __version__ # read the contents of your README file this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() # allow setup.py to b...
33.210526
78
0.664025
4a02c87a5777aca2d087b00aeaf99bdbe82a5257
4,159
py
Python
test_fields_bool_null.py
kezabelle/django-strictmodels
87ff7d7850dcfec437d1a9751938ed932844cb45
[ "BSD-2-Clause-FreeBSD" ]
2
2015-11-11T13:42:32.000Z
2015-11-11T16:38:45.000Z
test_fields_bool_null.py
kezabelle/django-strictmodels
87ff7d7850dcfec437d1a9751938ed932844cb45
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
test_fields_bool_null.py
kezabelle/django-strictmodels
87ff7d7850dcfec437d1a9751938ed932844cb45
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from __future__ import division from django.core.exceptions import ValidationError from django.forms.models import model_to_dict, modelform_factory from model_mommy.mommy import M...
29.920863
88
0.735994
4a02ca7ee158b1cc7cf361466817c40f48ab304e
3,896
py
Python
main-2.py
MiaoJiawei/Python-voltage-correct
317f70105d9ae3f1e4dddde76c1c062c7140ed42
[ "Apache-2.0" ]
null
null
null
main-2.py
MiaoJiawei/Python-voltage-correct
317f70105d9ae3f1e4dddde76c1c062c7140ed42
[ "Apache-2.0" ]
null
null
null
main-2.py
MiaoJiawei/Python-voltage-correct
317f70105d9ae3f1e4dddde76c1c062c7140ed42
[ "Apache-2.0" ]
null
null
null
import numpy import scipy import matplotlib.pyplot as plt from openpyxl import load_workbook # Calculate resistor value by least square. def leastsq(x_array, y_array): n = len(x_array) x_ave = sum(x_array) / n y_ave = sum(y_array) / n b_up_sum = 0 b_sub_sum = 0 for i in range(n): b_up_...
24.658228
78
0.540298
4a02cb97b7141547cf5c7617b8ec198dbdd4aeca
99
py
Python
leveltwo/algorithm/square/__init__.py
LilianBoulard/LevelTwo
23013a53100875d77dfae99494d2ef415d12b0df
[ "MIT" ]
1
2021-05-03T08:21:36.000Z
2021-05-03T08:21:36.000Z
leveltwo/algorithm/square/__init__.py
LilianBoulard/LevelTwo
23013a53100875d77dfae99494d2ef415d12b0df
[ "MIT" ]
2
2021-05-06T08:37:10.000Z
2021-05-06T14:08:46.000Z
leveltwo/algorithm/square/__init__.py
LilianBoulard/LevelTwo
23013a53100875d77dfae99494d2ef415d12b0df
[ "MIT" ]
null
null
null
from .tremaux import TremauxSquare from .manual import ManualSquare from .astar import AstarSquare
24.75
34
0.848485
4a02cc3b07c00f64a42292e6b76549108c9b0c40
1,289
py
Python
tests/server/test_server.py
niklassiemer/pyiron_base
4f2fc35819279798a6deb6394354722378a7816b
[ "BSD-3-Clause" ]
null
null
null
tests/server/test_server.py
niklassiemer/pyiron_base
4f2fc35819279798a6deb6394354722378a7816b
[ "BSD-3-Clause" ]
61
2021-05-17T15:25:43.000Z
2022-03-31T04:14:19.000Z
tests/server/test_server.py
niklassiemer/pyiron_base
4f2fc35819279798a6deb6394354722378a7816b
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. import unittest from pyiron_base.server.generic import Server class TestRunmode(unittest.TestCase): @classmethod ...
36.828571
108
0.666408
4a02cc7806db36327a47dea65bfa7afe06ee8872
2,191
py
Python
deepdrive_zero/experiments/discrete2/intersection_discrete_micro_turn_lower_lane_pen2_diag_lane9.py
deepdrive/deepdrive-2d
53796f84a49f29eadc1c43284e77bd4717a1e2d1
[ "MIT" ]
30
2020-02-15T09:46:36.000Z
2022-03-18T08:16:52.000Z
deepdrive_zero/experiments/discrete2/intersection_discrete_micro_turn_lower_lane_pen2_diag_lane9.py
crizCraig/spud
53796f84a49f29eadc1c43284e77bd4717a1e2d1
[ "MIT" ]
6
2020-02-05T05:53:53.000Z
2020-02-10T20:17:13.000Z
deepdrive_zero/experiments/discrete2/intersection_discrete_micro_turn_lower_lane_pen2_diag_lane9.py
deepdrive/deepdrive-2d
53796f84a49f29eadc1c43284e77bd4717a1e2d1
[ "MIT" ]
4
2020-02-15T19:07:23.000Z
2020-04-04T17:48:32.000Z
import os import sys from deepdrive_zero.discrete.comfortable_actions2 import COMFORTABLE_ACTIONS2 from deepdrive_zero.experiments import utils from spinup.utils.run_utils import ExperimentGrid from spinup import ppo_pytorch import torch experiment_name = os.path.basename(__file__)[:-3] notes = """Use old intersectio...
34.234375
173
0.752168
4a02ccaed78eaa0b098feedf43108ecb53c55958
4,700
py
Python
GameServer/Robot_UAV.py
kedlly/XDFramework
2e8e270acf200e8b9762b017e8f2e6683db44af1
[ "MIT" ]
1
2018-09-10T10:37:36.000Z
2018-09-10T10:37:36.000Z
GameServer/Robot_UAV.py
kedlly/XDFramework
2e8e270acf200e8b9762b017e8f2e6683db44af1
[ "MIT" ]
null
null
null
GameServer/Robot_UAV.py
kedlly/XDFramework
2e8e270acf200e8b9762b017e8f2e6683db44af1
[ "MIT" ]
null
null
null
#coding:utf8 from Core.MessageMap import Serialize, Deserialize from Messages.RequestMessages_pb2 import * from Messages.RespondMessages_pb2 import * from Core.Delay import Delay from Servers.LogicServer.Bussiness.PlayerManager import PyVector3 from twisted.internet import reactor, task from twisted.internet.protoco...
27.16763
125
0.689574
4a02cd11cc893366e0fc428ed314253e87b65735
3,262
py
Python
tests/test_generator__context.py
lurch/asciidoxy
9781ba696637fadbf62f1b7c5da843b0d292007d
[ "Apache-2.0" ]
null
null
null
tests/test_generator__context.py
lurch/asciidoxy
9781ba696637fadbf62f1b7c5da843b0d292007d
[ "Apache-2.0" ]
null
null
null
tests/test_generator__context.py
lurch/asciidoxy
9781ba696637fadbf62f1b7c5da843b0d292007d
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2020, TomTom (http://tomtom.com). # # 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 o...
37.068182
100
0.751993
4a02cd7107acd91caaf24e824c99b9657b0e8111
4,691
py
Python
tests/integration_tests/dashboards/dao_tests.py
delorenzosoftware/superset
5403f1ec163a52623f34f459d89f20e4e190371d
[ "Apache-2.0" ]
18,621
2017-06-19T09:57:44.000Z
2021-01-05T06:28:21.000Z
tests/integration_tests/dashboards/dao_tests.py
changeiot/superset
299b5dc64448d04abe6b35ee85fbd2b938c781bc
[ "Apache-2.0" ]
9,043
2017-07-05T16:10:48.000Z
2021-01-05T17:58:01.000Z
tests/integration_tests/dashboards/dao_tests.py
changeiot/superset
299b5dc64448d04abe6b35ee85fbd2b938c781bc
[ "Apache-2.0" ]
5,527
2017-07-06T01:39:43.000Z
2021-01-05T06:01:11.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.45082
84
0.674057
4a02ce06ee94620370894fcaa793fa86a7f5cd0b
585
py
Python
janitriapp/models.py
kumarisneha/daily_news
dc067f7474cac94f6df351133efdfffb41c52627
[ "MIT" ]
null
null
null
janitriapp/models.py
kumarisneha/daily_news
dc067f7474cac94f6df351133efdfffb41c52627
[ "MIT" ]
null
null
null
janitriapp/models.py
kumarisneha/daily_news
dc067f7474cac94f6df351133efdfffb41c52627
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User # Create your models here. from janitriapp.choices import * class UserInterest(models.Model): user = models.OneToOneField(User) interest = models.IntegerField(choices...
29.25
74
0.738462
4a02cf2676f4b6bf0df2748a2ea9e59a5047dacb
36,878
py
Python
homeassistant/components/sonos/media_player.py
akhan69/home-assistant
fb460a325e25fdea9043136bccaf546ec1c04eab
[ "Apache-2.0" ]
1
2020-02-23T21:08:33.000Z
2020-02-23T21:08:33.000Z
homeassistant/components/sonos/media_player.py
bdurrer/home-assistant
8874d0e2321fccb4fe854927c259099f1fe355f5
[ "Apache-2.0" ]
1
2019-02-27T01:22:47.000Z
2019-02-27T01:22:47.000Z
homeassistant/components/sonos/media_player.py
akhan69/home-assistant
fb460a325e25fdea9043136bccaf546ec1c04eab
[ "Apache-2.0" ]
null
null
null
"""Support to interface with Sonos players.""" import datetime import functools as ft import logging import socket import threading import urllib import requests import voluptuous as vol from homeassistant.components.media_player import ( MediaPlayerDevice, PLATFORM_SCHEMA) from homeassistant.components.media_pla...
33.678539
79
0.623542
4a02cf863f95c31bbd897122dced1f9320dfecec
27,048
py
Python
holoviews/core/data/xarray.py
Guillemdb/holoviews
826adb4b08bb26840f9e608fe6a1555644c4497e
[ "BSD-3-Clause" ]
null
null
null
holoviews/core/data/xarray.py
Guillemdb/holoviews
826adb4b08bb26840f9e608fe6a1555644c4497e
[ "BSD-3-Clause" ]
null
null
null
holoviews/core/data/xarray.py
Guillemdb/holoviews
826adb4b08bb26840f9e608fe6a1555644c4497e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import sys import types from collections import OrderedDict import numpy as np from .. import util from ..dimension import Dimension, asdim, dimension_name from ..ndmapping import NdMapping, item_check, sorted_context from ..element import Element from .grid import GridInterfa...
41.934884
110
0.546917
4a02d25043128a028cfeed51174d906559293f28
740
py
Python
auxiliary/metro_sources/setup.py
kierannp/3dsnet
429c3d431b36358e43c61692e0d02df3ea255635
[ "MIT" ]
15
2021-05-26T11:47:59.000Z
2022-01-20T12:34:15.000Z
auxiliary/metro_sources/setup.py
kierannp/3dsnet
429c3d431b36358e43c61692e0d02df3ea255635
[ "MIT" ]
7
2021-06-08T08:35:00.000Z
2021-11-07T10:27:30.000Z
auxiliary/metro_sources/setup.py
kierannp/3dsnet
429c3d431b36358e43c61692e0d02df3ea255635
[ "MIT" ]
6
2021-05-20T20:29:38.000Z
2022-03-29T05:27:27.000Z
# Install dependencies (python modules) # Compile Metro: Done import argparse from os import makedirs, system from shutil import rmtree from os.path import dirname, realpath, join, exists, isfile def main(): parser = argparse.ArgumentParser() parser.add_argument("--build", action="store_true") parser.add_...
26.428571
59
0.667568
4a02d3a379cff6f3581c88ab868bd7343b53e8ed
2,092
py
Python
map_label_tool/py_proto/modules/drivers/tools/image_decompress/proto/config_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
null
null
null
map_label_tool/py_proto/modules/drivers/tools/image_decompress/proto/config_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
null
null
null
map_label_tool/py_proto/modules/drivers/tools/image_decompress/proto/config_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
1
2021-05-26T08:42:11.000Z
2021-05-26T08:42:11.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/drivers/tools/image_decompress/proto/config.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...
29.885714
182
0.767208
4a02d3d6869c0a6f3ae9dd5a941f4dc697ad44f4
321
py
Python
Curso_Gustavo_Guanabara/Exercicio83.py
Nathan120/Arq_Python_CursoEmVideo
d6269eeaa8db57d1ffa8ed66e1936a061803f37e
[ "MIT" ]
null
null
null
Curso_Gustavo_Guanabara/Exercicio83.py
Nathan120/Arq_Python_CursoEmVideo
d6269eeaa8db57d1ffa8ed66e1936a061803f37e
[ "MIT" ]
null
null
null
Curso_Gustavo_Guanabara/Exercicio83.py
Nathan120/Arq_Python_CursoEmVideo
d6269eeaa8db57d1ffa8ed66e1936a061803f37e
[ "MIT" ]
null
null
null
expr = str(input('Digite a expressão: ')) pilha = list() for c in expr: if c == '(': pilha.append('(') else: if len(pilha) > 0: pilha.pop() else: pilha.append(')') break if len(pilha) == 0: print('Tudo certo') else: print('Vou ai que tá errado'...
21.4
41
0.479751
4a02d49249ca90447b23e5eb45b1d4e1dddbb164
1,015
py
Python
test/test_restore_task_by_id.py
blue0513/gokart
14db6bcb76743da4627bfad34fd10cb28d078e4e
[ "MIT" ]
null
null
null
test/test_restore_task_by_id.py
blue0513/gokart
14db6bcb76743da4627bfad34fd10cb28d078e4e
[ "MIT" ]
null
null
null
test/test_restore_task_by_id.py
blue0513/gokart
14db6bcb76743da4627bfad34fd10cb28d078e4e
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch import luigi import luigi.mock import gokart class _SubDummyTask(gokart.TaskOnKart): task_namespace = __name__ param = luigi.IntParameter() class _DummyTask(gokart.TaskOnKart): task_namespace = __name__ sub_task = gokart.TaskInstanceParameter() ...
24.166667
97
0.698522
4a02d51362ee48970a7339b38cf62903030f2800
2,136
py
Python
official/nlp/modeling/layers/mat_mul_with_margin_test.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2020-05-20T11:40:56.000Z
2020-05-20T11:40:56.000Z
official/nlp/modeling/layers/mat_mul_with_margin_test.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
8
2020-05-19T00:52:30.000Z
2020-06-04T23:57:20.000Z
official/nlp/modeling/layers/mat_mul_with_margin_test.py
mdsaifhaider/models
7214e17eb425963ec3d0295be215d5d26deaeb32
[ "Apache-2.0" ]
2
2021-10-07T04:47:04.000Z
2021-12-18T04:18:19.000Z
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.301887
101
0.764513
4a02d641afc1a67f6df73465de5129dafafad47b
5,641
py
Python
custom_widgets/color/colorwidget.py
SunChuquin/pyside2_designer_widgets
9ae4243dc9845ef4022524b1cf7788691bb4f257
[ "MIT" ]
1
2021-06-27T18:44:18.000Z
2021-06-27T18:44:18.000Z
custom_widgets/color/colorwidget.py
SunChuquin/pyside2_designer_widgets
9ae4243dc9845ef4022524b1cf7788691bb4f257
[ "MIT" ]
null
null
null
custom_widgets/color/colorwidget.py
SunChuquin/pyside2_designer_widgets
9ae4243dc9845ef4022524b1cf7788691bb4f257
[ "MIT" ]
1
2021-06-24T03:50:23.000Z
2021-06-24T03:50:23.000Z
from PySide2.QtCore import QObject, QTimer, Qt, QSize from PySide2.QtGui import QClipboard, QMouseEvent, QFont, QCursor, QScreen, QPixmap, QImage, QColor from PySide2.QtWidgets import QWidget, QGridLayout, QVBoxLayout, QLabel, QLineEdit, QSizePolicy, QFrame, QApplication class Singleton(type(QObject), type): _ins...
36.393548
117
0.629321
4a02d6e0c46ebb5329bdfb29b0ed2b14b883c562
164
py
Python
pacote-download/ex(1-100)/ex047.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
pacote-download/ex(1-100)/ex047.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
pacote-download/ex(1-100)/ex047.py
gssouza2051/python-exercicios
81e87fed7ead0adf58473a741aaa3c83064f6cb5
[ "MIT" ]
null
null
null
'''Crie um programa que mostre na tela todos os números pares que estão no intervalo entre 1 e 50.''' for c in range(2,51,+2): print(c,end=' ') print('ACABOU')
32.8
101
0.676829
4a02d7194b273860385019cebc6bf4653ffbbc73
236
py
Python
Chapter18/2.2.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
19
2018-06-28T15:48:47.000Z
2022-01-08T12:40:52.000Z
Chapter18/2.2.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
null
null
null
Chapter18/2.2.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
13
2018-06-30T10:33:52.000Z
2021-12-29T11:31:31.000Z
import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(23,GPIO.IN) GPIO.setup(24,GPIO.OUT) while True: if GPIO.input(23) == 1: GPIO.output(24,GPIO.HIGH) else: GPIO.output(24,GPIO.LOW) time.sleep(1) GPIO.cleanup()
19.666667
35
0.716102
4a02d74ec5b24770da90a993e1786ef5642752a9
759
py
Python
autotabular/algorithms/ctr/fm.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
autotabular/algorithms/ctr/fm.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
autotabular/algorithms/ctr/fm.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
import torch from autotabular.algorithms.ctr.layer import FactorizationMachine, FeaturesEmbedding, FeaturesLinear class FactorizationMachineModel(torch.nn.Module): """A pytorch implementation of Factorization Machine. Reference: S Rendle, Factorization Machines, 2010. """ def __init__(self, ...
31.625
100
0.678524
4a02d7a13f036f175c384e187fdc46dc90d79100
5,788
py
Python
smtpd/src/mailer.py
scrapbird/sarlacc
a529e115778d0dddd01f73077432ff5c0ba6e6c6
[ "MIT" ]
53
2018-02-10T08:59:41.000Z
2021-04-04T16:05:20.000Z
smtpd/src/mailer.py
deadbits/sarlacc
a529e115778d0dddd01f73077432ff5c0ba6e6c6
[ "MIT" ]
5
2018-02-26T19:32:59.000Z
2019-06-30T22:29:58.000Z
smtpd/src/mailer.py
deadbits/sarlacc
a529e115778d0dddd01f73077432ff5c0ba6e6c6
[ "MIT" ]
13
2018-02-11T09:19:16.000Z
2020-07-24T07:33:26.000Z
import email import re import asyncio import logging import functools from datetime import datetime from aiosmtpd.controller import Controller from aiosmtpd.smtp import SMTP as Server from base64 import b64decode import storage logger = logging.getLogger() async def create_mailer(handler, loop, ident_hostname, iden...
34.248521
104
0.55114
4a02d878313e15df605338390b856eef321cf0bc
338
py
Python
migrations/0046_merge_20190330_2353.py
audaciouscode/PassiveDataKit-Django
ed1e00c436801b9f49a3e0e6657c2adb6b2ba3d4
[ "Apache-2.0" ]
5
2016-01-26T19:19:44.000Z
2018-12-12T18:04:04.000Z
migrations/0046_merge_20190330_2353.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
6
2020-02-17T20:16:28.000Z
2021-12-13T21:51:20.000Z
migrations/0046_merge_20190330_2353.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
4
2020-01-29T15:36:58.000Z
2021-06-01T18:55:26.000Z
# pylint: skip-file # -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-03-31 03:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('passive_data_kit', '0045_auto_20190326_1308'), ('passive_data_kit', '0045_auto_20190225_1821'), ] ope...
18.777778
56
0.653846
4a02d8d4b673e7691a68cf230e86dd538d912668
5,120
py
Python
faculty-classifier/v2/faculty-classifier.py
wustep/woceng
3f3509629f7b91fdf2681f2011fc51af9292b01d
[ "MIT" ]
1
2019-05-02T20:57:10.000Z
2019-05-02T20:57:10.000Z
faculty-classifier/v2/faculty-classifier.py
wustep/woceng
3f3509629f7b91fdf2681f2011fc51af9292b01d
[ "MIT" ]
null
null
null
faculty-classifier/v2/faculty-classifier.py
wustep/woceng
3f3509629f7b91fdf2681f2011fc51af9292b01d
[ "MIT" ]
null
null
null
# Adapted from http://stevenloria.com/how-to-build-a-text-classification-system-with-python-and-textblob/ import csv from textblob.classifiers import NaiveBayesClassifier from textblob import TextBlob # Returns interpretation of faculty designation def interpretFaculty(res): if (str(res) == "1"): return "tenure-...
38.496241
167
0.689258
4a02d918b409599e3009538887c2a35cdd059770
1,111
py
Python
attila/util/config.py
sirfoga/attila
24e58785b736b1d6c658e2605076667de64e43cd
[ "MIT" ]
null
null
null
attila/util/config.py
sirfoga/attila
24e58785b736b1d6c658e2605076667de64e43cd
[ "MIT" ]
2
2020-11-05T19:46:42.000Z
2020-11-09T17:55:03.000Z
attila/util/config.py
sirfoga/attila
24e58785b736b1d6c658e2605076667de64e43cd
[ "MIT" ]
null
null
null
from pathlib import Path from configparser import ConfigParser def get_config(file_path): config = ConfigParser() config.read(file_path) return config def is_verbose(key, config): return config.getboolean(key, 'verbose') def check_input(config): def _is_square_img(): return config.geti...
24.152174
82
0.638164
4a02d9664dea0bb7dbc7c41294e4682be059a6f3
1,414
py
Python
SRX-GD-Threatfeed/gd_threatfeed/constants.py
Juniper/vSRX-AWS
a9179d8b115229b1f26aec166a85261fd2352b14
[ "Apache-2.0" ]
18
2017-07-03T22:45:19.000Z
2021-04-04T16:51:28.000Z
SRX-GD-Threatfeed/gd_threatfeed/constants.py
Juniper/vSRX-AWS
a9179d8b115229b1f26aec166a85261fd2352b14
[ "Apache-2.0" ]
13
2017-10-25T18:22:22.000Z
2021-09-15T00:09:54.000Z
SRX-GD-Threatfeed/gd_threatfeed/constants.py
Juniper/vSRX-AWS
a9179d8b115229b1f26aec166a85261fd2352b14
[ "Apache-2.0" ]
23
2017-07-20T03:29:25.000Z
2021-02-24T20:27:05.000Z
# Copyright © 2020 Juniper Networks, Inc., All Rights Reserved. """Constants for Gaurdduty""" CC_TTL = 3456000 # 40 days MIN_TTL = 86400 # 1 day MAX_TTL = 31556952 # 1 year UPDATE_INTERVAL = 300 # 30 minutes MAX_UPDATE_INTERVAL = 86400 # 1 Day DEFAULT_MANIFEST_UPDATE_INTERVAL = 60 # 1 minute DEFAULT_MAX_ENTRI...
30.73913
80
0.67256
4a02d9a33b59cc66ec7d43715861ff8945f3e022
1,722
py
Python
core/user/migrations/0001_initial.py
Let-s-Play-416/skills-back
8a8197a6ac4c6d27dfc5c28070b5488afcc1ad63
[ "MIT" ]
null
null
null
core/user/migrations/0001_initial.py
Let-s-Play-416/skills-back
8a8197a6ac4c6d27dfc5c28070b5488afcc1ad63
[ "MIT" ]
null
null
null
core/user/migrations/0001_initial.py
Let-s-Play-416/skills-back
8a8197a6ac4c6d27dfc5c28070b5488afcc1ad63
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2021-05-27 17:26 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fie...
50.647059
266
0.640534
4a02dab6029b30070c87bbb1d838c80a6af4d562
232
py
Python
0x01-python-if_else_loops_functions/0-positive_or_negative.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x01-python-if_else_loops_functions/0-positive_or_negative.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
0x01-python-if_else_loops_functions/0-positive_or_negative.py
ricardo1470/holbertonschool-higher_level_programming
aab73c8efee665b0215958ee7b338871f13634bc
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 import random number = random.randint(-10, 10) if (number > 0): print("{} is positive".format(number)) elif number == 0: print("{} is zero".format(number)) else: print("{} is negative".format(number))
23.2
42
0.642241
4a02db1b676343157e68963507e02837be7b4719
1,109
py
Python
python_modules/libraries/dagster-datadog/setup.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-datadog/setup.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/libraries/dagster-datadog/setup.py
withshubh/dagster
ff4a0db53e126f44097a337eecef54988cc718ef
[ "Apache-2.0" ]
null
null
null
from typing import Dict from setuptools import find_packages, setup # type: ignore def get_version() -> str: version: Dict[str, str] = {} with open("dagster_datadog/version.py") as fp: exec(fp.read(), version) # pylint: disable=W0122 return version["__version__"] if __name__ == "__main__": ...
32.617647
105
0.614067
4a02db281724ed2678e84d7601f0a9c83eb3a40c
35,921
py
Python
Lib/test/test_ntpath.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
2,441
2020-07-31T06:45:53.000Z
2022-03-30T15:56:49.000Z
Lib/test/test_ntpath.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
238
2020-10-21T04:54:00.000Z
2022-03-31T21:49:03.000Z
Lib/test/test_ntpath.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
93
2020-08-09T12:00:17.000Z
2022-03-25T07:57:24.000Z
import ntpath import os import sys import unittest import warnings from test.support import TestFailed, FakePath from test import support, test_genericpath from tempfile import TemporaryFile try: import nt except ImportError: # Most tests can complete without the nt module, # but for those that require it...
44.957447
95
0.549845
4a02dc20518bbc61340d97d696d69e3e4d948f33
3,878
py
Python
Learn/RawPacketSniffing.py
Skadiia/Scripts
9d6c04b2ef84144bc7015d317e4e8c75e9cebd22
[ "MIT" ]
null
null
null
Learn/RawPacketSniffing.py
Skadiia/Scripts
9d6c04b2ef84144bc7015d317e4e8c75e9cebd22
[ "MIT" ]
null
null
null
Learn/RawPacketSniffing.py
Skadiia/Scripts
9d6c04b2ef84144bc7015d317e4e8c75e9cebd22
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 """ Simple raw packet sniffer for learning Actually supprt TCP & ICMP unpacking """ import struct import socket import binascii import signal colors = {"red": "\033[31m", "green": "\033[32m", "yellow": "\033[33m", "blue": "\033[34m", "blank": "\033[0m"} def ctrlc_handler(sign...
28.940299
111
0.523466
4a02dcb5eeb8cb0aa8ec660fe20b18600a431599
10,265
py
Python
pyzoo/zoo/orca/automl/xgboost/XGBoost.py
jiaxinying/analytics-zoo
c3669b1736088df911c84b38fde3e90a571f51b7
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/orca/automl/xgboost/XGBoost.py
jiaxinying/analytics-zoo
c3669b1736088df911c84b38fde3e90a571f51b7
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/orca/automl/xgboost/XGBoost.py
jiaxinying/analytics-zoo
c3669b1736088df911c84b38fde3e90a571f51b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Analytics Zoo 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
44.437229
100
0.610424
4a02de230a9b9c47aec307ecc3769a1fc04d382a
5,870
py
Python
taurex/opacity/ktables/nemesisktables.py
ucl-exoplanets/TauREx3_public
cf8da465448df44c3c4dcc2cd0002ef34edd3920
[ "BSD-3-Clause" ]
10
2019-12-18T09:19:16.000Z
2021-06-21T11:02:06.000Z
taurex/opacity/ktables/nemesisktables.py
ucl-exoplanets/TauREx3_public
cf8da465448df44c3c4dcc2cd0002ef34edd3920
[ "BSD-3-Clause" ]
10
2020-03-24T18:02:15.000Z
2021-08-23T20:32:09.000Z
taurex/opacity/ktables/nemesisktables.py
ucl-exoplanets/TauREx3_public
cf8da465448df44c3c4dcc2cd0002ef34edd3920
[ "BSD-3-Clause" ]
8
2020-03-26T14:16:42.000Z
2021-12-18T22:11:25.000Z
from ..interpolateopacity import InterpolatingOpacity import numpy as np import pathlib from .ktable import KTable from taurex.util.util import sanitize_molecule_string class NemesisKTables(KTable, InterpolatingOpacity): """ This is the base class for computing opactities """ @classmethod def dis...
35.575758
140
0.634242
4a02de40a803e354141e828179ae1bc4061915ac
361
py
Python
archive.py
cedadev/ingest_web_monitor
0ee30ae99ddbc988300331c02569870c925c4c25
[ "BSD-2-Clause" ]
null
null
null
archive.py
cedadev/ingest_web_monitor
0ee30ae99ddbc988300331c02569870c925c4c25
[ "BSD-2-Clause" ]
3
2020-07-20T15:33:58.000Z
2020-11-04T18:18:36.000Z
archive.py
cedadev/ingest_web_monitor
0ee30ae99ddbc988300331c02569870c925c4c25
[ "BSD-2-Clause" ]
null
null
null
from jinja2 import Environment, FileSystemLoader import os os.system("dot -Tsvg archive.dot -o graph1.svg") root = os.path.dirname(os.path.abspath(__file__)) env = Environment(loader=FileSystemLoader(".")) template = env.get_template('archive_temp.html') svg = open("graph1.svg").read() f = open("archive2.html", "...
19
49
0.728532
4a02df2e759aeb057b4b58b78fad30e2f5f8e693
2,488
py
Python
scripts/util/get_y_class.py
gwaygenomics/nf1_inactivation
09c6292448cb121b3077a3df1399fc6d4d56d5d8
[ "BSD-3-Clause" ]
11
2016-07-25T21:53:23.000Z
2019-10-30T12:58:45.000Z
scripts/util/get_y_class.py
gwaygenomics/nf1_inactivation
09c6292448cb121b3077a3df1399fc6d4d56d5d8
[ "BSD-3-Clause" ]
10
2016-07-26T18:02:05.000Z
2016-12-06T13:54:55.000Z
scripts/util/get_y_class.py
greenelab/nf1_inactivation
09c6292448cb121b3077a3df1399fc6d4d56d5d8
[ "BSD-3-Clause" ]
6
2016-08-03T20:34:33.000Z
2021-03-03T23:50:37.000Z
""" Gregory Way 2016 GBM NF1 Classifier scripts/util/get_y_class.py Description: Function to return Y matrix as well as different classes of samples that indicate if the sample is mutated, not mutated, or not assayed. Usage: Import only by build_y.py """ import os import pandas as pd def get_y_class(mut, tis, gene...
29.619048
77
0.581994
4a02e0c70e7e3be14a3aab64ac1191e5989cd57e
6,064
py
Python
train_test01.py
chulminkw/keras-yolo3
bae367fa1ddf26c0ff8ba20ddc0b141f852e6e82
[ "MIT" ]
null
null
null
train_test01.py
chulminkw/keras-yolo3
bae367fa1ddf26c0ff8ba20ddc0b141f852e6e82
[ "MIT" ]
null
null
null
train_test01.py
chulminkw/keras-yolo3
bae367fa1ddf26c0ff8ba20ddc0b141f852e6e82
[ "MIT" ]
null
null
null
""" Retrain the YOLO model for your own dataset. """ import numpy as np import tensorflow.keras.backend as K from tensorflow.keras.layers import Input, Lambda from tensorflow.keras.models import Model from tensorflow.keras.optimizers import Adam from tensorflow.keras.callbacks import TensorBoard, ModelCheckpo...
40.972973
130
0.664908
4a02e1a6fc7d7609d924767b51d8cc9cd018a468
5,326
py
Python
var/spack/repos/builtin/packages/py-pytest/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/py-pytest/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/py-pytest/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPytest(PythonPackage): """pytest: simple powerful testing with Python.""" homepage ...
64.95122
102
0.660158
4a02e245c18c0c065a12ca4cc004e99eee348d31
2,290
py
Python
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/QueryDeviceFileListRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/QueryDeviceFileListRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/QueryDeviceFileListRequest.py
LittleJober/aliyun-openapi-python-sdk
f45cfa2248a5c8c47b2cebc1d4d1c2516b94df76
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.676471
78
0.762445
4a02e261ba20aea20683793146688d7fc1ae2f50
1,368
py
Python
domains/ava.py
sutekina/osu-gulag
c5eed521dfae282cd0cf95d02017d0f9654ceb11
[ "MIT" ]
null
null
null
domains/ava.py
sutekina/osu-gulag
c5eed521dfae282cd0cf95d02017d0f9654ceb11
[ "MIT" ]
3
2021-02-01T14:46:05.000Z
2021-08-30T16:09:34.000Z
domains/ava.py
sutekina/osu-gulag
c5eed521dfae282cd0cf95d02017d0f9654ceb11
[ "MIT" ]
null
null
null
import re from pathlib import Path from typing import Optional from typing import Union from cmyui.web import Connection from cmyui.web import Domain from objects import glob HTTPResponse = Optional[Union[bytes, tuple[int, bytes]]] """ ava: avatar server (for both ingame & external) """ BASE_DOMAIN = glob.config.d...
28.5
82
0.625
4a02e27327c716ac58c7a3e1dd7f4dac14fc3ace
1,654
py
Python
plugins/start.py
ali-mmagneto/VideoSesDonustur
2afa54cde27a27c47f558ebbeb41fedd885febe4
[ "MIT" ]
null
null
null
plugins/start.py
ali-mmagneto/VideoSesDonustur
2afa54cde27a27c47f558ebbeb41fedd885febe4
[ "MIT" ]
null
null
null
plugins/start.py
ali-mmagneto/VideoSesDonustur
2afa54cde27a27c47f558ebbeb41fedd885febe4
[ "MIT" ]
null
null
null
from pyrogram import Client, filters from config import quee, SUDO_USERS from functions.utils import add_task from pyrogram.types.bots_and_keyboards import InlineKeyboardButton, InlineKeyboardMarkup from translation import Translation video_mimetype = [ "video/x-flv", "video/mp4", "video/avi", "video/m...
30.62963
116
0.631802
4a02e2cb6051b96c77902c14666310ad5fe3e4b4
1,825
py
Python
drfs/filesystems/memory.py
datarevenue-berlin/drfs
d44274b0ae6e1b802b7763b5088825a83cc12fa6
[ "MIT" ]
2
2021-07-29T10:38:30.000Z
2021-09-08T11:48:39.000Z
drfs/filesystems/memory.py
datarevenue-berlin/drfs
d44274b0ae6e1b802b7763b5088825a83cc12fa6
[ "MIT" ]
2
2020-10-07T07:47:31.000Z
2021-11-15T17:52:33.000Z
drfs/filesystems/memory.py
datarevenue-berlin/drfs
d44274b0ae6e1b802b7763b5088825a83cc12fa6
[ "MIT" ]
null
null
null
from fsspec.implementations import memory as memfs from drfs.filesystems.base import FILESYSTEMS, FileSystemBase from drfs.filesystems.util import allow_pathlib, maybe_remove_scheme class MemoryFileSystem(FileSystemBase): fs_cls = memfs.MemoryFileSystem scheme = "memory" is_remote = True supports_sch...
27.238806
68
0.610411
4a02e570bc79eed86dc32844d3958bdfda26ce9b
2,845
py
Python
Menulib.py
spacesanjeet/Library-Management
a604e639ac2da9702341690ddd5772f2fdbd98e9
[ "MIT" ]
1
2021-11-17T05:56:05.000Z
2021-11-17T05:56:05.000Z
Menulib.py
spacesanjeet/Library-Management
a604e639ac2da9702341690ddd5772f2fdbd98e9
[ "MIT" ]
null
null
null
Menulib.py
spacesanjeet/Library-Management
a604e639ac2da9702341690ddd5772f2fdbd98e9
[ "MIT" ]
null
null
null
#PYTHN MODULE: MENULIB import Book import Member import Issue def Menubook(): while True: Book.clrscreen() print("\t\t\t Book Record Management\n") print("==========================================================") print("1. Add Book Record") print("2. Search Boo...
35.5625
76
0.43761
4a02e57acf3742e49ab673c906857f8df7a24988
2,432
py
Python
programs/decisiontree/checker/semanticschecker.py
lsrcz/SyGuS
5aab1b2c324d8a3c20e51f8acb2866190a1431d3
[ "MIT" ]
1
2021-07-11T08:32:32.000Z
2021-07-11T08:32:32.000Z
programs/decisiontree/checker/semanticschecker.py
lsrcz/SyGuS
5aab1b2c324d8a3c20e51f8acb2866190a1431d3
[ "MIT" ]
null
null
null
programs/decisiontree/checker/semanticschecker.py
lsrcz/SyGuS
5aab1b2c324d8a3c20e51f8acb2866190a1431d3
[ "MIT" ]
1
2020-12-20T16:08:10.000Z
2020-12-20T16:08:10.000Z
from z3 import Int, Bool from semantics.semantics import Func class SemChecker: def __init__(self, funcproto, constraint, inputlist, inputtylist): self.funcproto = funcproto self.inputlist = inputlist self.inputtylist = inputtylist self.constraint = constraint self.usage ...
30.024691
77
0.514803
4a02e64920dfeaa37728932f6ab8efb7766ead27
376
py
Python
day06/python/day6.py
mattvperry/AoC_2016
045a687788a8d689b7fd258dc1cfebb8adcbfc41
[ "MIT" ]
null
null
null
day06/python/day6.py
mattvperry/AoC_2016
045a687788a8d689b7fd258dc1cfebb8adcbfc41
[ "MIT" ]
null
null
null
day06/python/day6.py
mattvperry/AoC_2016
045a687788a8d689b7fd258dc1cfebb8adcbfc41
[ "MIT" ]
null
null
null
from collections import Counter def frequencies(words): return (Counter(x).most_common() for x in zip(*words)) def frequent(input, index): return "".join(x[index][0] for x in frequencies(input)) def day6(input): return frequent(input, 0), frequent(input, -1) input = open("../input.txt").read() input = [...
26.857143
59
0.678191
4a02e75399d2182cca868f69fe1e400df8556a03
1,919
py
Python
userbot/modules/salam.py
nimascnay/Ice-Userbot
726ba2480231189fb50bde54cb79a1c314b4ab77
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/salam.py
nimascnay/Ice-Userbot
726ba2480231189fb50bde54cb79a1c314b4ab77
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/salam.py
nimascnay/Ice-Userbot
726ba2480231189fb50bde54cb79a1c314b4ab77
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-10-18T02:05:38.000Z
2021-10-18T02:05:38.000Z
from platform import uname from userbot import ALIVE_NAME, CMD_HELP from userbot.events import register # ================= CONSTANT ================= DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else uname().node # ============================================ @register(outgoing=True, pattern="^.p(?: |$)(.*)") async...
30.951613
70
0.524752
4a02e83de76d7eefc5d0d86b8188e09df92edd21
7,186
py
Python
homeassistant/components/plum_lightpad/light.py
krisoshau/core
e3b90ea3f794256159d1405fd4c391c78446e1db
[ "Apache-2.0" ]
4
2020-07-29T17:47:10.000Z
2020-09-16T13:39:13.000Z
homeassistant/components/plum_lightpad/light.py
krisoshau/core
e3b90ea3f794256159d1405fd4c391c78446e1db
[ "Apache-2.0" ]
2
2020-08-13T21:02:26.000Z
2020-08-25T15:33:14.000Z
homeassistant/components/plum_lightpad/light.py
krisoshau/core
e3b90ea3f794256159d1405fd4c391c78446e1db
[ "Apache-2.0" ]
3
2021-05-18T16:42:18.000Z
2021-07-19T22:04:21.000Z
"""Support for Plum Lightpad lights.""" import logging from typing import Callable, List from plumlightpad import Plum from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_HS_COLOR, SUPPORT_BRIGHTNESS, SUPPORT_COLOR, LightEntity, ) from homeassistant.config_entries import ConfigEntry...
29.694215
82
0.629001
4a02e8c6d7bb65a200b1192b6a397b295a0b7b10
671
py
Python
leet_code_array/mid_questions/3sum_smaller.py
IvanFan/leetcode-python
72a12a107681cc5f09f1f88537c5b0741f0818a4
[ "MIT" ]
null
null
null
leet_code_array/mid_questions/3sum_smaller.py
IvanFan/leetcode-python
72a12a107681cc5f09f1f88537c5b0741f0818a4
[ "MIT" ]
null
null
null
leet_code_array/mid_questions/3sum_smaller.py
IvanFan/leetcode-python
72a12a107681cc5f09f1f88537c5b0741f0818a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class Solution: def threeSumSmaller(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ nums.sort() count = 0 for i in range(len(nums)-2): if nums[i] * 3 >= tar...
24.851852
62
0.390462
4a02e8cf3f6c5e04ad865a266c17d93218467627
1,392
py
Python
setup.py
fossabot/StatDP
91cf5a646acdd3b332979211d3b6db89dffe3153
[ "MIT" ]
null
null
null
setup.py
fossabot/StatDP
91cf5a646acdd3b332979211d3b6db89dffe3153
[ "MIT" ]
null
null
null
setup.py
fossabot/StatDP
91cf5a646acdd3b332979211d3b6db89dffe3153
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open # Get the long description from the relevant file with open('README.md', encoding='utf-8') as f: long_description = f.read() setup( name='StatDP', version='0.1', description='Counterexample Detection Using Statistical Methods for Inco...
34.8
116
0.637213
4a02ea2f48b2e3c1e4ed48bfd34e10b05070b4ba
4,498
py
Python
swagger_client/models/available_payment_method.py
yusong-shen/ecommerce-checkout-api-client-python
0cfe9cd0120d3453f5efec2814b367a14a703b12
[ "Apache-2.0" ]
null
null
null
swagger_client/models/available_payment_method.py
yusong-shen/ecommerce-checkout-api-client-python
0cfe9cd0120d3453f5efec2814b367a14a703b12
[ "Apache-2.0" ]
null
null
null
swagger_client/models/available_payment_method.py
yusong-shen/ecommerce-checkout-api-client-python
0cfe9cd0120d3453f5efec2814b367a14a703b12
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ECommerce Checkout Flow API Registration, Address Information, Delivery Options, Payment, Confirmation OpenAPI spec version: 0.2 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may n...
25.128492
78
0.555136
4a02ea3fc9c15af7c599f335881e069c3397c3d5
262,069
py
Python
internal/core/build-support/cpplint.py
xige-16/milvus
69087ff8dd400ff4ce0ea29a7f1c2c4b3e1d0c3d
[ "Apache-2.0" ]
2
2021-09-05T15:00:49.000Z
2022-01-05T06:42:23.000Z
internal/core/build-support/cpplint.py
xige-16/milvus
69087ff8dd400ff4ce0ea29a7f1c2c4b3e1d0c3d
[ "Apache-2.0" ]
38
2021-11-22T11:15:27.000Z
2022-03-30T08:14:12.000Z
internal/core/build-support/cpplint.py
Bennu-Li/milvus
35612881e33ce19a7407628769f6b51a7518bfe9
[ "Apache-2.0" ]
3
2021-11-17T09:21:42.000Z
2021-11-22T11:54:09.000Z
#!/usr/bin/env python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
37.970009
98
0.650489
4a02eb5f63f0774490381932d3956873ad692a6a
1,476
bzl
Python
packer/dependencies.bzl
ChrisCummins/bazel-distribution
6865042c2dcfb0e877adb9ba999c9dfa855e4613
[ "Apache-2.0" ]
null
null
null
packer/dependencies.bzl
ChrisCummins/bazel-distribution
6865042c2dcfb0e877adb9ba999c9dfa855e4613
[ "Apache-2.0" ]
null
null
null
packer/dependencies.bzl
ChrisCummins/bazel-distribution
6865042c2dcfb0e877adb9ba999c9dfa855e4613
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # # 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 yo...
41
91
0.733062
4a02ebdafe5a5ceae46164cd055f4c5a786da3f2
4,715
py
Python
setup.py
aznotins/allennlp
9db004224adf74267cc923d45e8ecb22b53d7066
[ "Apache-2.0" ]
1
2021-04-08T09:53:17.000Z
2021-04-08T09:53:17.000Z
setup.py
aznotins/allennlp
9db004224adf74267cc923d45e8ecb22b53d7066
[ "Apache-2.0" ]
null
null
null
setup.py
aznotins/allennlp
9db004224adf74267cc923d45e8ecb22b53d7066
[ "Apache-2.0" ]
null
null
null
""" In order to create a package for pypi, you need to follow several steps. 1. Create a .pypirc in your home directory. It should look like this: ``` [distutils] index-servers = pypi pypitest [pypi] username=allennlp password= Get the password from LastPass. [pypitest] repository=https://test.pypi.org/legacy/ ...
31.433333
103
0.62948
4a02ec36e9ce0dde5eb3aac7dad7f7e0d3b8894a
1,071
py
Python
pacote-download/d045 - jogar jokenpo.py
Carlos-DOliveira/cursoemvideo-python3
4546c8a7360155243e2f7ecbbb80c57868f770a2
[ "MIT" ]
null
null
null
pacote-download/d045 - jogar jokenpo.py
Carlos-DOliveira/cursoemvideo-python3
4546c8a7360155243e2f7ecbbb80c57868f770a2
[ "MIT" ]
null
null
null
pacote-download/d045 - jogar jokenpo.py
Carlos-DOliveira/cursoemvideo-python3
4546c8a7360155243e2f7ecbbb80c57868f770a2
[ "MIT" ]
null
null
null
''' 045 Crie um programa que faça o computador jogar jokenpô com vocês''' import random,time lista = [1, 2, 3] n = random.choice(lista) if n == 1: pc = 'pedra' elif n == 2: pc = 'tessoura' else: pc = 'papel' escolha = int(input('Escolha um número: 1 - pedra. 2 - tersosura. 3 - papel: ')) if escolha == 1:...
22.3125
80
0.616246
4a02ecb8979029940b9a5550e3a2356b3b772fcb
153
py
Python
sample/WRS2018/T5-AizuSpiderSS-RTM.py
jun0/choreonoid
37167e52bfa054088272e1924d2062604104ac08
[ "MIT" ]
91
2015-01-29T11:03:42.000Z
2022-02-13T07:34:04.000Z
sample/WRS2018/T5-AizuSpiderSS-RTM.py
jun0/choreonoid
37167e52bfa054088272e1924d2062604104ac08
[ "MIT" ]
213
2015-01-26T06:21:15.000Z
2020-07-23T05:51:30.000Z
sample/WRS2018/T5-AizuSpiderSS-RTM.py
jun0/choreonoid
37167e52bfa054088272e1924d2062604104ac08
[ "MIT" ]
71
2015-01-06T02:32:05.000Z
2020-12-01T03:42:25.000Z
import WRSUtil WRSUtil.loadProject( "SingleSceneView", "T5", "AISTSimulator", "AizuSpiderSS", enableVisionSimulation = True, remoteType = "RTM")
30.6
61
0.732026
4a02edb831af2614af7508003894c11988c41d75
2,885
py
Python
bika/lims/skins/bika/guard_auto_preservation_required.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/skins/bika/guard_auto_preservation_required.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/skins/bika/guard_auto_preservation_required.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
## Script (Python) "guard_auto_preservation_required" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=type_name=None ##title= ## # Automatic transition that fires when object enters "Sampled" state # If this guard returns ...
31.703297
79
0.638475
4a02ee481bec323558f6ccfec81319e8bfaf1a62
830
py
Python
server/opendp_apps/analysis/migrations/0013_auto_20210919_2254.py
mikephelan/opendp-ux
80c65da0ed17adc01c69b05dbc9cbf3a5973a016
[ "MIT" ]
6
2021-05-25T18:50:58.000Z
2022-03-23T19:52:15.000Z
server/opendp_apps/analysis/migrations/0013_auto_20210919_2254.py
mikephelan/opendp-ux
80c65da0ed17adc01c69b05dbc9cbf3a5973a016
[ "MIT" ]
298
2021-05-19T17:34:09.000Z
2022-03-29T18:45:22.000Z
server/opendp_apps/analysis/migrations/0013_auto_20210919_2254.py
opendp/dpcreator
6ba3c58ecdcd81ca1f4533a14ce7604eccf6a646
[ "MIT" ]
2
2020-10-16T22:03:24.000Z
2020-11-15T22:45:19.000Z
# Generated by Django 3.1.12 on 2021-09-19 22:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analysis', '0012_auto_20210919_2233'), ] operations = [ migrations.RenameField( model_name='releaseinfo', old_name=...
29.642857
194
0.621687
4a02ee560e5647c9b0e735d8b59f1c731ae83902
475
py
Python
tests/type/builtin_type/test_low.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
1
2016-02-06T17:16:22.000Z
2016-02-06T17:16:22.000Z
tests/type/builtin_type/test_low.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
tests/type/builtin_type/test_low.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_equality ---------------------------------- Tests for the `BuiltinType` low() method """ import unittest from numbers import Number from finitio.types import BuiltinType class TestBuiltinTypeLow(unittest.TestCase): subject = BuiltinType(Number) def ...
17.592593
55
0.652632
4a02ee814e7bd2a1367f9ef189c086ab08c4d8f2
4,101
py
Python
scripts/lane_detection.py
deltaautonomy/delta_perception
7b40f005b9753464016207d142969890ff6ec031
[ "BSD-3-Clause" ]
1
2021-05-15T13:05:09.000Z
2021-05-15T13:05:09.000Z
scripts/lane_detection.py
deltaautonomy/delta_perception
7b40f005b9753464016207d142969890ff6ec031
[ "BSD-3-Clause" ]
null
null
null
scripts/lane_detection.py
deltaautonomy/delta_perception
7b40f005b9753464016207d142969890ff6ec031
[ "BSD-3-Clause" ]
3
2020-02-20T21:59:02.000Z
2021-05-15T13:05:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Author : Heethesh Vhavle, Apoorv Singh Email : heethesh@cmu.edu Version : 1.0.0 Date : Apr 07, 2019 ''' # Python 2/3 compatibility from __future__ import print_function, absolute_import, division # Handle paths and OpenCV import from init_paths import * # Exte...
28.880282
100
0.715191
4a02f0192386447c5674b8210e925df0b4a87729
11,267
py
Python
homeassistant/components/modbus/modbus.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
2
2020-03-29T05:32:57.000Z
2021-06-13T06:55:05.000Z
homeassistant/components/modbus/modbus.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/modbus/modbus.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
1
2020-11-18T21:04:18.000Z
2020-11-18T21:04:18.000Z
"""Support for Modbus.""" import asyncio import logging from pymodbus.client.sync import ModbusSerialClient, ModbusTcpClient, ModbusUdpClient from pymodbus.constants import Defaults from pymodbus.exceptions import ModbusException from pymodbus.transaction import ModbusRtuFramer from homeassistant.const import ( C...
34.35061
88
0.612497
4a02f09160fb96daf8afeb0546fd8f4f407861be
41,975
py
Python
precious.py
antonvino/precious_mac
a20897ebc134f04d0e1da08e8d8f0d338a576c55
[ "MIT" ]
null
null
null
precious.py
antonvino/precious_mac
a20897ebc134f04d0e1da08e8d8f0d338a576c55
[ "MIT" ]
null
null
null
precious.py
antonvino/precious_mac
a20897ebc134f04d0e1da08e8d8f0d338a576c55
[ "MIT" ]
null
null
null
""" Main app controller file Uses PyObjC wrappers Uses Requests (communicates with a Django web app) Author: The original author of the Precious app is Anton Vinokurov (www.antonvino.com) """ from Cocoa import * from Foundation import NSObject import json, os, signal, time from datetime import datetime, timedelta, da...
37.511171
151
0.529005
4a02f0ec984296e39c25814d45231f174432859d
9,602
py
Python
todone/backend/tests/test_db.py
safnuk/todone
e6373b69b8159cffb8d1b7ed7b1f5810c4e1e7df
[ "Apache-2.0" ]
null
null
null
todone/backend/tests/test_db.py
safnuk/todone
e6373b69b8159cffb8d1b7ed7b1f5810c4e1e7df
[ "Apache-2.0" ]
null
null
null
todone/backend/tests/test_db.py
safnuk/todone
e6373b69b8159cffb8d1b7ed7b1f5810c4e1e7df
[ "Apache-2.0" ]
null
null
null
from unittest import skip, TestCase from unittest.mock import patch, Mock import peewee from todone.backend import DEFAULT_FOLDERS from todone.backend.db import ( Database, Folder, SavedList, Todo ) from todone.backend.db import ListItem, MOST_RECENT_SEARCH from todone.tests.base import DB_Backend class Tes...
36.097744
75
0.649969
4a02f3623996842d670ca0ca0c9a434c42cff043
755
py
Python
python/collectAblation.py
jstraub/tdp
dcab53662be5b88db1538cf831707b07ab96e387
[ "MIT-feh" ]
1
2017-10-17T19:25:47.000Z
2017-10-17T19:25:47.000Z
python/collectAblation.py
jstraub/tdp
dcab53662be5b88db1538cf831707b07ab96e387
[ "MIT-feh" ]
1
2018-05-02T06:04:06.000Z
2018-05-02T06:04:06.000Z
python/collectAblation.py
jstraub/tdp
dcab53662be5b88db1538cf831707b07ab96e387
[ "MIT-feh" ]
5
2017-09-17T18:46:20.000Z
2019-03-11T12:52:57.000Z
import numpy as np import os times = dict() errs = dict() surfRegErrs = dict() for root, dirs, files in os.walk("."): r, d = os.path.split(root) for f in files: if f == "avgFrameTime.csv": with open(os.path.join(root,f)) as i: times[os.path.split(d)[1]] = float(i.readline()[:-1]) if f == "tra...
26.964286
67
0.609272
4a02f4be78b4e56bce9231b149f6329364adb294
1,527
py
Python
test/rules/functions/test_find_in_map.py
LukasMusebrink/cfn-python-lint
bc3e6e5a9453f8b532a05f87e51d095635dd3b9f
[ "MIT-0" ]
null
null
null
test/rules/functions/test_find_in_map.py
LukasMusebrink/cfn-python-lint
bc3e6e5a9453f8b532a05f87e51d095635dd3b9f
[ "MIT-0" ]
null
null
null
test/rules/functions/test_find_in_map.py
LukasMusebrink/cfn-python-lint
bc3e6e5a9453f8b532a05f87e51d095635dd3b9f
[ "MIT-0" ]
1
2019-12-17T14:27:07.000Z
2019-12-17T14:27:07.000Z
""" Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
43.628571
87
0.740013
4a02f51704e2a05ff3ba40f85d210180cb2b8e32
675
py
Python
tests/extmod/ujson_dumps.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
8
2017-01-08T19:45:01.000Z
2020-09-07T04:39:10.000Z
tests/extmod/ujson_dumps.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
null
null
null
tests/extmod/ujson_dumps.py
84KaliPleXon3/micropython-esp32
a64dc82742749cf4a4bbe5688dde05122fb38f56
[ "MIT" ]
2
2017-07-27T19:45:05.000Z
2020-08-02T19:00:33.000Z
try: import ujson as json except ImportError: try: import json except ImportError: import sys print("SKIP") sys.exit() print(json.dumps(False)) print(json.dumps(True)) print(json.dumps(None)) print(json.dumps(1)) print(json.dumps('abc')) print(json.dumps('\x00\x01\x7e')) pri...
22.5
37
0.631111
4a02f6c4427b1f8cc3b8a15fdf9d91034fcfcdda
1,326
py
Python
pyaz/batch/application/summary/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/batch/application/summary/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/batch/application/summary/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' View a summary of Batch application packages. ''' from .... pyaz_utils import _call_az def list(account_endpoint=None, account_key=None, account_name=None): ''' Lists all of the applications available in the specified account. Optional Parameters: - account_endpoint -- Batch service endpoint. Alte...
41.4375
114
0.757919
4a02f75b90396f6adbe2b8207d9f967f8a777253
432
py
Python
problems/construct-quad-tree/construct_quad_tree.py
jianpingbadao/leetcode
0ddead0b7820c05e353e08c551418fc8e318ee96
[ "MIT" ]
198
2018-12-14T11:11:21.000Z
2021-11-22T17:31:48.000Z
problems/construct-quad-tree/construct_quad_tree.py
rohini-raja/leetcode
e4250e67a76cf26813fc7b7bfef523c427a2b928
[ "MIT" ]
779
2018-12-15T11:04:06.000Z
2021-11-19T08:42:40.000Z
problems/construct-quad-tree/construct_quad_tree.py
rohini-raja/leetcode
e4250e67a76cf26813fc7b7bfef523c427a2b928
[ "MIT" ]
85
2019-01-10T02:20:04.000Z
2021-11-26T08:01:42.000Z
#!/usr/bin/env python """ # Definition for a QuadTree node. class Node: def __init__(self, val, isLeaf, topLeft, topRight, bottomLeft, bottomRight): self.val = val self.isLeaf = isLeaf self.topLeft = topLeft self.topRight = topRight self.bottomLeft = bottomLeft self....
27
80
0.62963
4a02f7fc3001646c42e34cd8c4c9a0cf2369e7e4
2,508
py
Python
__Lagou.py
tosone/Crawler
eb3bbd9583aa0fcb55c723f77097e38bc045b332
[ "MIT" ]
null
null
null
__Lagou.py
tosone/Crawler
eb3bbd9583aa0fcb55c723f77097e38bc045b332
[ "MIT" ]
null
null
null
__Lagou.py
tosone/Crawler
eb3bbd9583aa0fcb55c723f77097e38bc045b332
[ "MIT" ]
null
null
null
import logging import math import re import time import uuid from datetime import datetime from os import path import requests from config import Config class Run(Config): def __init__(self): super(Run, self).__init__() self.collection = self.Collection(__file__) self.exploitUrl = 'http...
38
150
0.534689
4a02f8b98b505740aca5fe56cb6518890444d120
692
py
Python
cvxpy/cvxcore/tests/python/364A_scripts/portfolio.py
jasondark/cvxpy
56aaa01b0e9d98ae5a91a923708129a7b37a6f18
[ "ECL-2.0", "Apache-2.0" ]
38
2015-10-16T16:55:28.000Z
2022-02-16T05:06:01.000Z
cvxpy/cvxcore/tests/python/364A_scripts/portfolio.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
28
2015-09-16T16:33:23.000Z
2021-11-23T07:31:44.000Z
cvxpy/cvxcore/tests/python/364A_scripts/portfolio.py
h-vetinari/cvxpy
86307f271819bb78fcdf64a9c3a424773e8269fa
[ "ECL-2.0", "Apache-2.0" ]
21
2015-09-16T14:56:16.000Z
2022-02-16T05:06:03.000Z
import numpy as np from cvxpy import * import matplotlib.pyplot as pyplot import time TIME = 0 ANSWERS = [] Sigma = Semidef(4) x = np.array([.1, .2, -.05, .1]) constraints = [Sigma == Sigma.T] constraints += [Sigma[0,1] >= 0, Sigma[0,2] >= 0,\ Sigma[1,2] <= 0, Sigma[2,3] <= 0, Sigma[1,3]<=0,\ Sigma[0,0] == .2, Sig...
20.352941
76
0.622832
4a02f9ee7228814bae991148bde06837f0dc5bb5
5,825
py
Python
tiled/trees/utils.py
dylanmcreynolds/tiled
a77cf233ff4827ac03faa66448b29a84e3de02bf
[ "BSD-3-Clause" ]
1
2021-02-09T20:27:23.000Z
2021-02-09T20:27:23.000Z
tiled/trees/utils.py
dylanmcreynolds/tiled
a77cf233ff4827ac03faa66448b29a84e3de02bf
[ "BSD-3-Clause" ]
1
2021-02-15T18:24:41.000Z
2021-02-15T18:24:41.000Z
tiled/trees/utils.py
dylanmcreynolds/tiled
a77cf233ff4827ac03faa66448b29a84e3de02bf
[ "BSD-3-Clause" ]
2
2021-02-06T18:02:24.000Z
2021-02-10T19:05:03.000Z
import operator from ..utils import Sentinel class IndexCallable: """Provide getitem syntax for functions >>> def inc(x): ... return x + 1 >>> I = IndexCallable(inc) >>> I[3] 4 Vendored from dask """ __slots__ = ("fn",) def __init__(self, fn): self.fn = fn ...
33.477011
87
0.577511
4a02fa9159f3fd02552bfb5167d84cbfcbabaa91
4,496
py
Python
drishtypy/viz/do_plots.py
Abhinavl3v3l/Drishtipy
5956afe24916bf40dde8d857ed6030de57dea353
[ "MIT" ]
null
null
null
drishtypy/viz/do_plots.py
Abhinavl3v3l/Drishtipy
5956afe24916bf40dde8d857ed6030de57dea353
[ "MIT" ]
null
null
null
drishtypy/viz/do_plots.py
Abhinavl3v3l/Drishtipy
5956afe24916bf40dde8d857ed6030de57dea353
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import torch from torch.autograd import Variable # functions to show an image def imshow(img): img = img / 2 + 0.5 # unnormalize npimg = img.numpy() plt.imshow(np.transpose(npimg, (1, 2, 0))) def plot_model_history(title_name, train_acc_hist, test_acc_...
35.401575
114
0.61766
4a02fb0189d45a645dcd58d49e31b566fac7abfd
3,750
py
Python
pkg/suggestion/v1beta1/nas/enas/Operation.py
alexeykaplin/katib
195db292374dcf3b39b55dcb3fcd14b3a55d5942
[ "Apache-2.0" ]
1,177
2018-04-23T08:45:19.000Z
2022-03-23T19:09:13.000Z
pkg/suggestion/v1beta1/nas/enas/Operation.py
alexeykaplin/katib
195db292374dcf3b39b55dcb3fcd14b3a55d5942
[ "Apache-2.0" ]
1,791
2018-04-20T00:10:17.000Z
2022-03-31T18:18:36.000Z
pkg/suggestion/v1beta1/nas/enas/Operation.py
alexeykaplin/katib
195db292374dcf3b39b55dcb3fcd14b3a55d5942
[ "Apache-2.0" ]
349
2018-04-20T01:03:28.000Z
2022-03-30T16:11:35.000Z
# Copyright 2021 The Kubeflow 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
40.76087
86
0.6232
4a02fc13ba0f07ea228cc93e6ff4c28f9945eea8
1,077
py
Python
aspc/context_processors.py
aspc/mainsite
a6ccee0bb921147b7f630d65e01371e451aa3c54
[ "MIT" ]
8
2015-09-27T07:57:32.000Z
2018-10-28T06:08:40.000Z
aspc/context_processors.py
aspc/mainsite
a6ccee0bb921147b7f630d65e01371e451aa3c54
[ "MIT" ]
132
2015-01-17T01:22:09.000Z
2018-11-13T22:05:32.000Z
aspc/context_processors.py
aspc/mainsite
a6ccee0bb921147b7f630d65e01371e451aa3c54
[ "MIT" ]
20
2015-01-16T04:32:30.000Z
2018-09-03T22:55:05.000Z
from django.contrib.sites.models import Site from django.contrib.sites.requests import RequestSite from django.conf import settings as aspc_settings import re # Auxiliary request data to pass to templates def request(request): port_string = request.META.get('SERVER_PORT') user_agent = request.META.get('HTTP_USER_AGE...
35.9
103
0.779944
4a02fd7d7f70116864ca8af36eaee43613892449
2,750
py
Python
core/modules/website_archive.py
AlexisAhmed/operative-framework
4b3a09e563fd6fec2443aa12240cc1cc54f88df4
[ "MIT" ]
1
2020-10-16T22:56:18.000Z
2020-10-16T22:56:18.000Z
core/modules/website_archive.py
AlexisAhmed/operative-framework
4b3a09e563fd6fec2443aa12240cc1cc54f88df4
[ "MIT" ]
null
null
null
core/modules/website_archive.py
AlexisAhmed/operative-framework
4b3a09e563fd6fec2443aa12240cc1cc54f88df4
[ "MIT" ]
1
2020-10-16T22:56:19.000Z
2020-10-16T22:56:19.000Z
#!/usr/bin/env python #description:Search archive of website domain (archive.org)# from colorama import Fore,Back,Style from core import load import os,sys import json import datetime import requests class module_element(object): def __init__(self): self.title = "Archive.org Gathering : \n" self.require = {"do...
33.13253
193
0.667273
4a02fe16fa15344ad55814655ed3c5b6460ec53e
90,205
py
Python
com/sxl/txtdownloader/icon.py
sxl77/txtDownloader
0cb3905391eec609591fdedb1d8743bbb794563c
[ "Apache-2.0" ]
null
null
null
com/sxl/txtdownloader/icon.py
sxl77/txtDownloader
0cb3905391eec609591fdedb1d8743bbb794563c
[ "Apache-2.0" ]
null
null
null
com/sxl/txtdownloader/icon.py
sxl77/txtDownloader
0cb3905391eec609591fdedb1d8743bbb794563c
[ "Apache-2.0" ]
null
null
null
img = b'AAABAAEAgIAAAAEAIAAoCAEAFgAAACgAAACAAAAAAAEAAAEAIAAAAAAAAAAAAMQOAADEDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAeiAVMHkiEnB6IhOveiIU0XoiE+h6IhP/eiIT/3oiE/96IhP/eiIT/3oiE/96IhP/eiIT/3oiE/96IhP/eiIT/3oiE/96IhP/eiIT/3oiE/96IhP/eiIT/3oiE/96IhP/...
90,205
90,205
0.924173
4a02fe6e29905750fdf9fa71cb53ad7139e28a69
6,628
py
Python
regression_tests/parsers/fileinfo_output_parser.py
mehrdad-shokri/retdec-regression-tests-framework
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
[ "MIT" ]
21
2017-12-12T20:38:43.000Z
2019-04-14T12:46:10.000Z
regression_tests/parsers/fileinfo_output_parser.py
mehrdad-shokri/retdec-regression-tests-framework
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
[ "MIT" ]
6
2018-01-06T13:32:23.000Z
2018-09-14T15:09:11.000Z
regression_tests/parsers/fileinfo_output_parser.py
mehrdad-shokri/retdec-regression-tests-framework
9c3edcd0a7bc292a0d5b5cbfb4315010c78d3bc3
[ "MIT" ]
11
2017-12-12T20:38:46.000Z
2018-07-19T03:12:03.000Z
""" Parsing of the output from fileinfo. """ import json import re from regression_tests.parsers.text_parser import Text def parse(output): """Parses the given output from fileinfo (`str`). :returns: Parsed representation of the given output (:class:`FileinfoOutput`). """ return F...
31.561905
79
0.619644
4a02fec8b96e25228e6e0467d646c26995f944fc
10,371
py
Python
official/benchmark/models/resnet_cifar_main.py
bamdada/UdacityProj10FinaltfModels
4701bfbc924539860f610fa4ceae484a7bf194c6
[ "Apache-2.0" ]
153
2020-10-25T13:58:04.000Z
2022-03-07T06:01:54.000Z
official/benchmark/models/resnet_cifar_main.py
akshayjaryal603/models
db39ef826193d0802f644ba30397242a7272676e
[ "Apache-2.0" ]
11
2020-07-13T08:29:00.000Z
2022-03-24T07:21:09.000Z
official/benchmark/models/resnet_cifar_main.py
akshayjaryal603/models
db39ef826193d0802f644ba30397242a7272676e
[ "Apache-2.0" ]
23
2020-10-25T14:44:47.000Z
2021-03-31T02:12:13.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.389474
82
0.714589
4a02fefcd3965199d58f09229cca8bcd9dc6d3b0
8,599
py
Python
old/calculations.py
fernandolucasaa/project_vision
5cd1355949b47d9e8686123a930c5dc7bd2d475d
[ "Unlicense" ]
null
null
null
old/calculations.py
fernandolucasaa/project_vision
5cd1355949b47d9e8686123a930c5dc7bd2d475d
[ "Unlicense" ]
null
null
null
old/calculations.py
fernandolucasaa/project_vision
5cd1355949b47d9e8686123a930c5dc7bd2d475d
[ "Unlicense" ]
null
null
null
from copy import deepcopy # --- Variáveis globais --- # Dedos HAND_FINGERS = ["thumb", "index-finger", "middle-finger", "ring-finger", "pinky"] # Parâmetros utilizados nos cálculos DIFF_VALUE = 20 # Utilizado para determinar se dedo está esticado ou dobrado DIFF_VALUE_2 = 49 # Utilizado para determinar se dedos adj...
33.589844
146
0.626236
4a02ff01914fa53ce08fbccea60e4b76f6b88d61
539
py
Python
implicit_solver/lib/system/time_integrators/variational.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
14
2019-05-04T00:42:47.000Z
2021-09-07T09:57:44.000Z
implicit_solver/lib/system/time_integrators/variational.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
null
null
null
implicit_solver/lib/system/time_integrators/variational.py
vincentbonnetcg/Numerical-Bric-a-Brac
e71f2305d7452de985e5e9fa8935da611b6d9992
[ "MIT" ]
5
2020-12-07T21:44:41.000Z
2021-09-13T05:29:54.000Z
""" @author: Vincent Bonnet @description : Variational time integrator (placeholder) """ import core from lib.system.time_integrators import TimeIntegrator class VariationalIntegrator(TimeIntegrator): def __init__(self): TimeIntegrator.__init__(self) @core.timeit def prepare_system(self, scene, d...
19.25
56
0.656772
4a02ff15173948497ca8220db425cd10d4ffbeaf
1,436
py
Python
config.py
Roseoketch/My-Blog
04caad7f80e3be2d43b888ecab9f4920422735e3
[ "MIT" ]
null
null
null
config.py
Roseoketch/My-Blog
04caad7f80e3be2d43b888ecab9f4920422735e3
[ "MIT" ]
null
null
null
config.py
Roseoketch/My-Blog
04caad7f80e3be2d43b888ecab9f4920422735e3
[ "MIT" ]
null
null
null
import os class Config: ''' General configuration parent class ''' SECRET_KEY = os.environ.get('SECRET_KEY') SQLALCHEMY_TRACK_MODIFICATIONS = False # simplemde configurations SIMPLEMDE_JS_IIFE = True SIMPLEMDE_USE_CDN = True # email configurations MAIL_SERVER = 'smtp.googlem...
23.540984
82
0.697075
4a030002ecb9f2f6a38292a4e588fa9415caea6b
3,301
py
Python
flex/ussd/core.py
centergy/flex_ussd
ddc0ccd192e3a0a82e8b7705f088862d59656c28
[ "MIT" ]
null
null
null
flex/ussd/core.py
centergy/flex_ussd
ddc0ccd192e3a0a82e8b7705f088862d59656c28
[ "MIT" ]
null
null
null
flex/ussd/core.py
centergy/flex_ussd
ddc0ccd192e3a0a82e8b7705f088862d59656c28
[ "MIT" ]
null
null
null
from collections import OrderedDict from flex.utils.decorators import cached_property from flex.utils.module_loading import import_if_string, import_strings from .config import Config, ConfigAttribute, ussd_config from .wrappers import UssdCode from .exc import ImproperlyConfigured from . import signals class UssdA...
27.974576
99
0.75159
4a030095b6b0f602404bc38f7d784fd254c40366
1,076
py
Python
userbot/plugins/alive.py
SeekingLegend/LegendBot
86d4e1db09f9940d836ee05fb43f0eba19044a3f
[ "MIT" ]
null
null
null
userbot/plugins/alive.py
SeekingLegend/LegendBot
86d4e1db09f9940d836ee05fb43f0eba19044a3f
[ "MIT" ]
null
null
null
userbot/plugins/alive.py
SeekingLegend/LegendBot
86d4e1db09f9940d836ee05fb43f0eba19044a3f
[ "MIT" ]
1
2021-01-30T05:38:53.000Z
2021-01-30T05:38:53.000Z
"""Check if userbot alive. If you change these, you become the gayest gay such that even the gay world will disown you.""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from platform import uname from userbot import ALIVE_NAME from userbot.utils import admin_cmd DE...
46.782609
122
0.640335
4a03015d90829c6013e917b2c3afc24a69f78e35
397
py
Python
djangoappengine/tests/__init__.py
yeraydiazdiaz/nonrel-blog
fc5179561a15ada8cd30fd178aa5356d38d937ff
[ "BSD-3-Clause" ]
null
null
null
djangoappengine/tests/__init__.py
yeraydiazdiaz/nonrel-blog
fc5179561a15ada8cd30fd178aa5356d38d937ff
[ "BSD-3-Clause" ]
null
null
null
djangoappengine/tests/__init__.py
yeraydiazdiaz/nonrel-blog
fc5179561a15ada8cd30fd178aa5356d38d937ff
[ "BSD-3-Clause" ]
null
null
null
from .backend import BackendTest from .field_db_conversion import FieldDBConversionTest from .field_options import FieldOptionsTest from .filter import FilterTest from .keys import KeysTest from .mapreduce_input_readers import DjangoModelInputReaderTest, DjangoModelIteratorTest from .not_return_sets import NonReturnSet...
39.7
88
0.881612
4a0301c4a230c56ab4012a6d7dd9b4702165cb0b
1,501
py
Python
pandora-hub/pandora/hub/forms.py
williamlagos/django-coding
246dc1aba32eae0b035c407de3e8fe954606b776
[ "MIT" ]
null
null
null
pandora-hub/pandora/hub/forms.py
williamlagos/django-coding
246dc1aba32eae0b035c407de3e8fe954606b776
[ "MIT" ]
21
2020-03-24T18:18:22.000Z
2021-03-31T20:18:53.000Z
pandora-hub/pandora/hub/forms.py
efforia/dashboard
246dc1aba32eae0b035c407de3e8fe954606b776
[ "MIT" ]
null
null
null
# # This file is part of Efforia project. # # Copyright (C) 2011-2013 William Oliveira de Lagos <william@efforia.com.br> # # Efforia is free software: you can redistribute it and/or modify # it under the terms of the Lesser GNU General Public License as published by # the Free Software Foundation, either version...
41.694444
114
0.692871
4a030283e1d12e8c4791e3ddd4cd3462c8cf49a0
1,166
py
Python
connectedbytcp_control/connected_controls.py
LBNL-ETA/LPDM-Drivers
0190ecb1348b10d5fb7c5b60ca30ebbbbebe094e
[ "BSD-3-Clause-LBNL" ]
null
null
null
connectedbytcp_control/connected_controls.py
LBNL-ETA/LPDM-Drivers
0190ecb1348b10d5fb7c5b60ca30ebbbbebe094e
[ "BSD-3-Clause-LBNL" ]
null
null
null
connectedbytcp_control/connected_controls.py
LBNL-ETA/LPDM-Drivers
0190ecb1348b10d5fb7c5b60ca30ebbbbebe094e
[ "BSD-3-Clause-LBNL" ]
null
null
null
################################################################################################################################ # *** Copyright Notice *** # # "Price Based Local Power Distribution Management System (Local Power Distribution Manager) v1.0" # Copyright (c) 2016, The Regents of the University of Calif...
41.642857
128
0.558319
4a0302bd981d1e6cd79f463bd91102444b2bbaf5
1,361
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/18_features/numtrees_45/rule_38.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/18_features/numtrees_45/rule_38.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/18_features/numtrees_45/rule_38.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Time, obj[3]: Coupon, obj[4]: Coupon_validity, obj[5]: Gender, obj[6]: Age, obj[7]: Maritalstatus, obj[8]: Children, obj[9]: Education, obj[10]: Occupation, obj[11]: Income, obj[12]: Bar, obj[13]: Coffeehouse, obj[14]: Restaurantlessthan20, obj[15]: Re...
41.242424
378
0.601763
4a0303450f0fa6b4ae08fdbdcad599ef6768d2b8
15,329
py
Python
testcases/I2C.py
apopple/op-test-framework
94687c73bbc09d897350e9e799ea51703050befd
[ "Apache-2.0" ]
null
null
null
testcases/I2C.py
apopple/op-test-framework
94687c73bbc09d897350e9e799ea51703050befd
[ "Apache-2.0" ]
null
null
null
testcases/I2C.py
apopple/op-test-framework
94687c73bbc09d897350e9e799ea51703050befd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2015,2017 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this fil...
35.899297
94
0.571401