hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
12a668f147490b052289202d9372f523023dc419
3,820
py
Python
yeti/core/model/stix/sro.py
yeti-platform/TibetanBrownBear
8ab520bd199a63e404b3a6a5b49a29f277384e8e
[ "Apache-2.0" ]
9
2018-01-15T22:44:24.000Z
2021-05-28T11:13:03.000Z
yeti/core/model/stix/sro.py
yeti-platform/TibetanBrownBear
8ab520bd199a63e404b3a6a5b49a29f277384e8e
[ "Apache-2.0" ]
140
2018-01-12T10:07:47.000Z
2021-08-02T23:03:49.000Z
yeti/core/model/stix/sro.py
yeti-platform/TibetanBrownBear
8ab520bd199a63e404b3a6a5b49a29f277384e8e
[ "Apache-2.0" ]
11
2018-01-16T19:49:35.000Z
2022-01-18T16:30:34.000Z
"""Detail Yeti's Entity object structure.""" import json from yeti.core.errors import ValidationError from .base import StixObject class StixSRO(StixObject): def __init__(self, db_from, db_to, attributes): self._db_from = db_from self._db_to = db_to super().__init__(**attributes) @cl...
28.296296
80
0.606545
3,686
0.964921
0
0
2,475
0.647906
0
0
1,401
0.366754
12a754908091d00ea075e8ffe5d6a23ed6d1b3e0
4,761
py
Python
netforce_mfg/netforce_mfg/models/barcode_qc.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_mfg/netforce_mfg/models/barcode_qc.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_mfg/netforce_mfg/models/barcode_qc.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
40.008403
122
0.603025
3,538
0.743121
0
0
0
0
0
0
1,990
0.417979
12a82679ea427e2384e89df55cbadd443f41af9e
4,739
py
Python
src/data/domain.py
AlexMoreo/pydci
44f8fe1ce95da45709061cbe19fa6f462c1f2164
[ "BSD-3-Clause" ]
7
2018-10-21T17:34:08.000Z
2021-05-17T11:37:56.000Z
src/data/domain.py
AlexMoreo/pydci
44f8fe1ce95da45709061cbe19fa6f462c1f2164
[ "BSD-3-Clause" ]
null
null
null
src/data/domain.py
AlexMoreo/pydci
44f8fe1ce95da45709061cbe19fa6f462c1f2164
[ "BSD-3-Clause" ]
4
2018-11-22T10:30:07.000Z
2021-03-20T10:07:57.000Z
import pickle from scipy.sparse import lil_matrix import numpy as np class Domain: """ Defines a domain, composed by a labelled set and a unlabeled set. All sets share a common vocabulary. The domain is also characterized by its name and language. """ def __init__(self, X, y, U, vocabulary, domain...
34.845588
130
0.650559
3,158
0.666385
0
0
164
0.034606
0
0
1,387
0.292678
12a832b1e6427f5514100a7f00be3d2042f2ed0f
207
py
Python
LeetCode_1304.py
xulu199705/LeetCode
9a654a10117a93f9ad9728d6b86eb3713185545e
[ "MIT" ]
null
null
null
LeetCode_1304.py
xulu199705/LeetCode
9a654a10117a93f9ad9728d6b86eb3713185545e
[ "MIT" ]
null
null
null
LeetCode_1304.py
xulu199705/LeetCode
9a654a10117a93f9ad9728d6b86eb3713185545e
[ "MIT" ]
null
null
null
from typing import List class Solution: def sumZero(self, n: int) -> List[int]: ans = [x for x in range(-(n//2), n//2 + 1)] if n % 2 == 0: ans.remove(0) return ans
18.818182
51
0.492754
181
0.874396
0
0
0
0
0
0
0
0
12a8abd596e75426da116460419af8dc9c55b01d
1,506
py
Python
models/universal_sentence_encoder_multilingual_qa/v1/utils.py
rhangelxs/russian_embeddings
64821cdff03ff97752b6c80621bedf9e2227a0ba
[ "MIT" ]
null
null
null
models/universal_sentence_encoder_multilingual_qa/v1/utils.py
rhangelxs/russian_embeddings
64821cdff03ff97752b6c80621bedf9e2227a0ba
[ "MIT" ]
5
2020-09-26T00:18:44.000Z
2022-02-10T00:22:42.000Z
models/universal_sentence_encoder_multilingual_qa/v1/utils.py
rhangelxs/russian_embeddings
64821cdff03ff97752b6c80621bedf9e2227a0ba
[ "MIT" ]
null
null
null
import numpy import tensorflow as tf import tensorflow_hub as hub import tf_sentencepiece class EmbeddingWrapper: def __init__(self): module_url = "https://tfhub.dev/google/universal-sentence-encoder-multilingual-qa/1" # Set up graph. g = tf.Graph() with g.as_default(): ...
36.731707
109
0.592961
1,412
0.937583
0
0
0
0
0
0
225
0.149402
12a970b715888d87283271740bd7a109a0ea7f3e
921
py
Python
jade/extensions/demo/create_merge_pred_gdp.py
jgu2/jade
e643830be89a7df74a82065400b2e82f6b181ec8
[ "BSD-3-Clause" ]
15
2021-05-15T21:58:26.000Z
2022-03-17T08:26:48.000Z
jade/extensions/demo/create_merge_pred_gdp.py
jgu2/jade
e643830be89a7df74a82065400b2e82f6b181ec8
[ "BSD-3-Clause" ]
22
2021-02-04T20:02:33.000Z
2021-09-14T13:29:30.000Z
jade/extensions/demo/create_merge_pred_gdp.py
jgu2/jade
e643830be89a7df74a82065400b2e82f6b181ec8
[ "BSD-3-Clause" ]
3
2021-01-11T15:11:31.000Z
2021-06-07T17:36:51.000Z
#!/usr/bin/env python """Creates the JADE configuration for stage 2 of the demo pipeline.""" import os import sys from jade.models import PipelineConfig from jade.utils.subprocess_manager import run_command from jade.utils.utils import load_data PRED_GDP_COMMANDS_FILE = "pred_gdp_commands.txt" def main(): con...
27.909091
81
0.733985
0
0
0
0
0
0
0
0
327
0.355049
12aa4d4698103b11546cfe0e6f724650c7f1a730
3,165
py
Python
hamal/hamal/conf/identity.py
JackDan9/hamal
965be9db066209300c52f0cf17d251290d8901b7
[ "MIT" ]
3
2020-06-12T13:03:46.000Z
2020-08-06T11:25:46.000Z
hamal/hamal/conf/identity.py
JackDan9/hamal
965be9db066209300c52f0cf17d251290d8901b7
[ "MIT" ]
null
null
null
hamal/hamal/conf/identity.py
JackDan9/hamal
965be9db066209300c52f0cf17d251290d8901b7
[ "MIT" ]
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...
30.728155
77
0.749447
0
0
0
0
0
0
0
0
2,257
0.713112
12aab253143e67156c54f44e65c0b36caa2ab283
2,631
py
Python
fact/time.py
mackaiver/slowREST
8ae07d8657164abe83f071216b6e9d00a57ae705
[ "MIT" ]
1
2015-03-03T08:07:52.000Z
2015-03-03T08:07:52.000Z
fact/time.py
mackaiver/slowREST
8ae07d8657164abe83f071216b6e9d00a57ae705
[ "MIT" ]
null
null
null
fact/time.py
mackaiver/slowREST
8ae07d8657164abe83f071216b6e9d00a57ae705
[ "MIT" ]
null
null
null
from __future__ import print_function __author__ = 'dneise, mnoethe' """ This file contains some functions to deal with FACT modified modified julian date The time used most of the time in FACT is the number of days since 01.01.1970 So this time is related to unix time, since it has the same offset (unix time is th...
28.912088
85
0.708476
0
0
0
0
0
0
0
0
1,411
0.536298
12aabf7a6ed3903e5b3fb7b076bf621fe0068180
1,318
py
Python
nipype/interfaces/ants/tests/test_auto_ImageMath.py
TRO-HIT/nipype
c453eac5d7efdd4e19a9bcc8a7f3d800026cc125
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/ants/tests/test_auto_ImageMath.py
TRO-HIT/nipype
c453eac5d7efdd4e19a9bcc8a7f3d800026cc125
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/ants/tests/test_auto_ImageMath.py
TRO-HIT/nipype
c453eac5d7efdd4e19a9bcc8a7f3d800026cc125
[ "Apache-2.0" ]
1
2020-12-16T16:36:48.000Z
2020-12-16T16:36:48.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..utils import ImageMath def test_ImageMath_inputs(): input_map = dict( args=dict(argstr="%s",), copy_header=dict(usedefault=True,), dimension=dict(argstr="%d", position=1, usedefault=True,), environ=dict(nohash=True, usede...
34.684211
77
0.618361
0
0
0
0
0
0
0
0
92
0.069803
12b0b747a8e429f2bfcdc96202c017eb8b47dbba
72,049
py
Python
tests/chainerx_tests/unit_tests/routines_tests/test_math.py
tkerola/chainer
572f6eef2c3f1470911ac08332c2b5c3440edf44
[ "MIT" ]
null
null
null
tests/chainerx_tests/unit_tests/routines_tests/test_math.py
tkerola/chainer
572f6eef2c3f1470911ac08332c2b5c3440edf44
[ "MIT" ]
null
null
null
tests/chainerx_tests/unit_tests/routines_tests/test_math.py
tkerola/chainer
572f6eef2c3f1470911ac08332c2b5c3440edf44
[ "MIT" ]
null
null
null
import chainer import numpy import pytest import chainerx import chainerx.testing from chainerx_tests import array_utils from chainerx_tests import dtype_utils from chainerx_tests import math_utils from chainerx_tests import op_utils _in_out_dtypes_arithmetic_invalid = [ (('bool_', 'bool_'), 'bool_'), (('bo...
32.914116
79
0.579106
14,651
0.203348
0
0
66,284
0.919985
0
0
15,876
0.22035
12b0f94ae97150323ed0af8a6fe2aba3cc7d3f40
445
py
Python
7.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
7.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
7.py
flpcan/project_euler
2cabb0a51c70b0b6e145328f3e3c55de41ac2854
[ "CC0-1.0" ]
null
null
null
# By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. # # What is the 10 001st prime number? primes = [] for i in range(2, 100): if len(primes) == 10001: break x = list(map(lambda y: i % y == 0, range(2,i))) if sum(x) == False: primes.a...
18.541667
102
0.546067
0
0
0
0
0
0
0
0
195
0.438202
12b14a676fba1294e88631fcf085323cedbf845c
5,707
py
Python
src/plot_scripts/plot_sigcomm_bars_cellular.py
zxxia/RL-CC
d3d3be0097d69ee07b06363ad531cf2479029d74
[ "Apache-2.0" ]
null
null
null
src/plot_scripts/plot_sigcomm_bars_cellular.py
zxxia/RL-CC
d3d3be0097d69ee07b06363ad531cf2479029d74
[ "Apache-2.0" ]
null
null
null
src/plot_scripts/plot_sigcomm_bars_cellular.py
zxxia/RL-CC
d3d3be0097d69ee07b06363ad531cf2479029d74
[ "Apache-2.0" ]
null
null
null
import os import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt SAVE_ROOT = '../../figs_sigcomm22' plt.style.use('seaborn-deep') plt.rcParams['font.family'] = 'Arial' # plt.rcParams['font.size'] = 42 # plt.rcParams['axes.labelsize'] = 42 # plt.rcParams['legend.fontsize'] = 42 # plt.rcParams['figure...
41.963235
118
0.65884
0
0
0
0
0
0
0
0
1,487
0.260557
12b1527e01e27cdb3f79857b70a9797275320e0e
1,372
py
Python
spacy/lang/th/__init__.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
1
2019-05-17T02:43:33.000Z
2019-05-17T02:43:33.000Z
spacy/lang/th/__init__.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
49
2021-10-01T10:15:30.000Z
2021-12-27T14:36:05.000Z
spacy/lang/th/__init__.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
1
2019-10-01T08:27:20.000Z
2019-10-01T08:27:20.000Z
from .stop_words import STOP_WORDS from .lex_attrs import LEX_ATTRS from ...language import Language, BaseDefaults from ...tokens import Doc from ...util import DummyTokenizer, registry, load_config_from_str from ...vocab import Vocab DEFAULT_CONFIG = """ [nlp] [nlp.tokenizer] @tokenizers = "spacy.th.ThaiTokenizer" ...
24.945455
69
0.68586
828
0.603499
0
0
187
0.136297
0
0
196
0.142857
12b18047e85021cd05074093d60424bfe744046f
167
py
Python
src/setup/__init__.py
ScottDay/DFN-Maintenance-GUI-Backend
bfb05c75747fa9c334224b99609baef7321860a4
[ "MIT" ]
2
2017-03-31T00:57:35.000Z
2017-08-04T10:38:28.000Z
src/setup/__init__.py
CPedersen3245/Desert-Fireball-Maintainence-GUI
bfb05c75747fa9c334224b99609baef7321860a4
[ "MIT" ]
10
2017-03-29T04:13:14.000Z
2017-08-14T06:14:52.000Z
src/setup/__init__.py
ScottDay/DFN-Maintenance-GUI-Backend
bfb05c75747fa9c334224b99609baef7321860a4
[ "MIT" ]
4
2017-12-23T03:16:00.000Z
2018-06-20T07:15:50.000Z
from .args import args from .extensions import extensions from .logger import logger from .routes import routes __all__ = ['args', 'extensions', 'logger', 'routes']
20.875
52
0.748503
0
0
0
0
0
0
0
0
34
0.203593
12b22d55acd96929800d8872484a4576f43f6f08
6,223
py
Python
cloudrunner_server/plugins/clouds/docker_host.py
ttrifonov/cloudrunner-server
3b2426c8d9987e78425899010b534afc7734d8d4
[ "Apache-2.0" ]
2
2016-03-31T08:45:29.000Z
2021-04-28T15:18:45.000Z
cloudrunner_server/plugins/clouds/docker_host.py
ttrifonov/cloudrunner-server
3b2426c8d9987e78425899010b534afc7734d8d4
[ "Apache-2.0" ]
null
null
null
cloudrunner_server/plugins/clouds/docker_host.py
ttrifonov/cloudrunner-server
3b2426c8d9987e78425899010b534afc7734d8d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # /******************************************************* # * Copyright (C) 2013-2014 CloudRunner.io <[email protected]> # * # * Proprietary and confidential # * This file is part of CloudRunner Server. # * # * CloudRunner S...
39.138365
78
0.472602
5,560
0.89346
0
0
0
0
0
0
1,015
0.163105
12b2fe22c669ef8f586778fb7af3dd29059295d7
4,702
py
Python
scope/client_util/job_runner_check.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
1
2017-11-10T17:23:11.000Z
2017-11-10T17:23:11.000Z
scope/client_util/job_runner_check.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
5
2018-08-01T03:05:35.000Z
2018-11-29T22:11:25.000Z
scope/client_util/job_runner_check.py
drew-sinha/rpc-scope
268864097b5b7d123a842f216adc446ec6b32d01
[ "MIT" ]
3
2016-05-25T18:58:35.000Z
2018-11-29T23:40:45.000Z
# -*- coding: utf-8 -*- # This code is licensed under the MIT License (see LICENSE file for details) import platform import datetime import sys import pathlib import subprocess import time from .. import scope_job_runner from ..config import scope_configuration def main(): if len(sys.argv) == 2 and sys.argv[1] =...
38.227642
113
0.701616
0
0
0
0
0
0
0
0
1,912
0.406635
12b402f977b10f55535c5a3654e5fda7b7dcf072
2,222
py
Python
toffy/json_utils.py
angelolab/toffy
4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6
[ "Apache-2.0" ]
null
null
null
toffy/json_utils.py
angelolab/toffy
4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6
[ "Apache-2.0" ]
46
2022-01-26T18:21:21.000Z
2022-03-30T19:19:12.000Z
toffy/json_utils.py
angelolab/creed-helper
4d6c50fe0dfbf1568ee3f9db2182a04dc9ac85c6
[ "Apache-2.0" ]
null
null
null
import copy import json import os from ark.utils import io_utils def rename_missing_fovs(fov_data): """Identify FOVs that are missing the 'name' key and create one with value placeholder_{n} Args: fov_data (dict): the FOV run JSON data Returns: dict: a copy of the run JSON data with plac...
26.771084
94
0.629613
0
0
0
0
0
0
0
0
1,176
0.529253
12b6971b8aff245d6004cadaa44e2d26223997e6
545
py
Python
app/plugins/task/upload.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-06-22T21:25:52.000Z
2020-06-22T21:25:52.000Z
app/plugins/task/upload.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-05-21T02:46:24.000Z
2020-05-25T07:19:23.000Z
app/plugins/task/upload.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
null
null
null
from systems.plugins.index import BaseProvider import os class Provider(BaseProvider('task', 'upload')): def execute(self, results, params): file_path = self.get_path(self.field_file) if not os.path.exists(file_path): self.command.error("Upload task provider file {} does not exist"....
27.25
95
0.640367
484
0.888073
0
0
0
0
0
0
59
0.108257
12b73e722a7a33f56b3403eba3f5dbfb5e5538e6
2,955
py
Python
win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py
takkii/dotfile
7daf848c718ee10603a68a6e37a1002a827ec72f
[ "MIT" ]
1
2018-10-11T21:31:43.000Z
2018-10-11T21:31:43.000Z
win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py
takkii/dotfile
7daf848c718ee10603a68a6e37a1002a827ec72f
[ "MIT" ]
null
null
null
win_dein_deoplete/.vim/.cache/.vimrc/.dein/rplugin/python3/denite/source/outline.py
takkii/dotfile
7daf848c718ee10603a68a6e37a1002a827ec72f
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: outline.py # AUTHOR: Yasumasa Tamura (tamura.yasumasa _at_ gmail.com) # License: MIT license # ============================================================================ from .base import Base from subprocess import check_output, ...
35.60241
78
0.457868
2,322
0.785787
0
0
0
0
0
0
813
0.275127
12b887c446ea424a4bd8fd55a07bceb06b1c0206
1,656
py
Python
test.py
Tweetsched/tweetsched-publisher
c639670fc9658251a02b8946b34dfae3f3145a72
[ "MIT" ]
1
2018-08-28T14:04:15.000Z
2018-08-28T14:04:15.000Z
test.py
Tweetsched/tweetsched-publisher
c639670fc9658251a02b8946b34dfae3f3145a72
[ "MIT" ]
null
null
null
test.py
Tweetsched/tweetsched-publisher
c639670fc9658251a02b8946b34dfae3f3145a72
[ "MIT" ]
null
null
null
from base64 import b64encode from app import app import unittest from mock import patch import os import json from twython import Twython class TestApp(unittest.TestCase): def setUp(self): self.app = app.test_client() os.environ['SERVICE_KEY'] = 'test-key' os.environ['SERVICE_PASS'] = 'tes...
35.234043
100
0.607488
1,468
0.886473
0
0
734
0.443237
0
0
393
0.237319
12b904baad9cd10c3b5e703a970ce798e635e1b7
372
py
Python
Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py
darioGerussi/exercises
414a3867d4db9449e402c58efd993153f55b91eb
[ "MIT" ]
1
2022-03-31T01:57:55.000Z
2022-03-31T01:57:55.000Z
Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py
darioGerussi/exercises
414a3867d4db9449e402c58efd993153f55b91eb
[ "MIT" ]
null
null
null
Python/01. Fundamentals/01. Simple Calculators/08. Temperature Converter/tempCoverter.py
darioGerussi/exercises
414a3867d4db9449e402c58efd993153f55b91eb
[ "MIT" ]
null
null
null
# Converts a given temperature from Celsius to Fahrenheit # Prompt user for Celsius temperature degreesCelsius = float(input('\nEnter the temperature in Celsius: ')) # Calculate and display the converted # temperature in Fahrenheit degreesFahrenheit = ((9.0 / 5.0) * degreesCelsius) + 32 print('Fahrenheit equivalent:...
37.2
81
0.744624
0
0
0
0
0
0
0
0
233
0.626344
12b9be88a391697f2894a2c7dcc4147754edbf99
1,227
py
Python
website/models/post.py
LKKTGB/lkkpomia
0a814ed6d28757e07d6392ca27c914e68f0b3bda
[ "MIT" ]
null
null
null
website/models/post.py
LKKTGB/lkkpomia
0a814ed6d28757e07d6392ca27c914e68f0b3bda
[ "MIT" ]
5
2020-04-26T09:03:33.000Z
2022-02-02T13:00:39.000Z
website/models/post.py
LKKTGB/lkkpomia
0a814ed6d28757e07d6392ca27c914e68f0b3bda
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from django.db import models from django.utils.translation import ugettext_lazy as _ from taggit.managers import TaggableManager class Post(models.Model): title = models.CharField(_('post_title'), max_length=100) body = models.TextField(_('post_body')) tags = TaggableManager(...
32.289474
80
0.667482
1,065
0.867971
0
0
538
0.438468
0
0
181
0.147514
12ba24dffd7a4983b46d43a9846f2ca9b1d6059e
4,214
py
Python
tests/sentry/api/serializers/test_alert_rule.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
tests/sentry/api/serializers/test_alert_rule.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/api/serializers/test_alert_rule.py
kinghuang/sentry
5c22673994a62f54a782d1c595852986ccc51ae9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import six from sentry.api.serializers import serialize from sentry.api.serializers.models.alert_rule import DetailedAlertRuleSerializer from sentry.incidents.logic import create_alert_rule, create_alert_rule_trigger from sentry.incidents.models import A...
45.311828
100
0.701709
3,775
0.895823
0
0
0
0
0
0
369
0.087565
12bae8e939e905a92184b3c60e3fd70c58c999c2
1,003
py
Python
mys/cli/subparsers/test.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/test.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
mys/cli/subparsers/test.py
nsauzede/mys
5f5db80b25e44e3ab9c4b97cb9a0fd6fa3fc0267
[ "MIT" ]
null
null
null
import os from ..utils import add_jobs_argument from ..utils import add_no_ccache_argument from ..utils import add_optimize_argument from ..utils import add_verbose_argument from ..utils import build_prepare from ..utils import run def do_test(_parser, args, _mys_config): build_prepare(args.verbose, args.optimiz...
27.108108
62
0.698903
0
0
0
0
0
0
0
0
162
0.161515
12bc9ffc8a5d1fd39d7381b5bb5f4a16fad4749b
14,579
py
Python
plugins/modules/nsxt_transport_node_collections.py
madhukark/ansible-for-nsxt
f75c698e24073305a968ce2f70739fee77a14bb2
[ "BSD-2-Clause" ]
null
null
null
plugins/modules/nsxt_transport_node_collections.py
madhukark/ansible-for-nsxt
f75c698e24073305a968ce2f70739fee77a14bb2
[ "BSD-2-Clause" ]
null
null
null
plugins/modules/nsxt_transport_node_collections.py
madhukark/ansible-for-nsxt
f75c698e24073305a968ce2f70739fee77a14bb2
[ "BSD-2-Clause" ]
1
2021-12-03T08:26:09.000Z
2021-12-03T08:26:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANT...
52.442446
183
0.721243
0
0
0
0
0
0
0
0
5,240
0.359421
12bedc5672fe578c7205936e96d0685f45374da0
16,945
py
Python
training/loss.py
drboog/Lafite
10e109b9f46646ab793e0a5f38386af3012e9636
[ "MIT" ]
45
2022-03-10T23:49:44.000Z
2022-03-31T21:47:45.000Z
training/loss.py
drboog/Lafite
10e109b9f46646ab793e0a5f38386af3012e9636
[ "MIT" ]
7
2022-03-13T15:13:18.000Z
2022-03-31T16:57:38.000Z
training/loss.py
drboog/Lafite
10e109b9f46646ab793e0a5f38386af3012e9636
[ "MIT" ]
8
2022-03-10T23:49:29.000Z
2022-03-31T18:20:17.000Z
import numpy as np import torch from torch_utils import training_stats from torch_utils import misc from torch_utils.ops import conv2d_gradfix import torch.nn.functional as F import torchvision.transforms as T import clip import dnnlib import random #--------------------------------------------------------------------...
50.281899
190
0.5928
16,450
0.970788
0
0
0
0
0
0
2,456
0.14494
12bfd9fea84125596f1417fe60855b47416a33a6
4,203
py
Python
lib/oitool/fetchoi.py
stockalgo/oichart
962c373b34fcef09cc58abcf6e252dd746d413a1
[ "MIT" ]
8
2021-02-05T21:54:26.000Z
2022-03-26T19:44:42.000Z
lib/oitool/fetchoi.py
stockalgo/oichart
962c373b34fcef09cc58abcf6e252dd746d413a1
[ "MIT" ]
3
2021-03-15T18:41:12.000Z
2021-12-18T09:23:47.000Z
lib/oitool/fetchoi.py
stockalgo/oichart
962c373b34fcef09cc58abcf6e252dd746d413a1
[ "MIT" ]
5
2021-03-16T12:28:37.000Z
2021-12-17T17:35:16.000Z
import time import logging from bandl.nse_data import NseData from influxdb import InfluxDBClient class FetchOI: def __init__(self,source=None,influxdb_client=None,database="oitool",log_path=None,logLevel='info'): """[summary] :param source: stock broker :type source: string, optional ...
39.280374
106
0.602665
4,103
0.976207
0
0
0
0
0
0
1,516
0.360695
12c0367fe0f1278ce33a6a9b512ae1509254147d
1,667
py
Python
notebooks/HelperFunctions/RunModel.py
hh2110/continual-ml-stocks
2a2baa330cd418b3cfb7eda8464c6b5b67bc608f
[ "CC0-1.0" ]
null
null
null
notebooks/HelperFunctions/RunModel.py
hh2110/continual-ml-stocks
2a2baa330cd418b3cfb7eda8464c6b5b67bc608f
[ "CC0-1.0" ]
null
null
null
notebooks/HelperFunctions/RunModel.py
hh2110/continual-ml-stocks
2a2baa330cd418b3cfb7eda8464c6b5b67bc608f
[ "CC0-1.0" ]
null
null
null
from sklearn.model_selection import train_test_split from sklearn import metrics from sklearn.metrics import accuracy_score from sklearn.metrics import roc_auc_score import numpy as np import pandas as pd import matplotlib.pyplot as plt def do_ml(merged_df, test_size, ml_model, **kwargs): train_data = merged_df.d...
27.783333
83
0.652669
0
0
0
0
0
0
0
0
217
0.130174
12c19863b8bc11caf71dfdd9f3bff254268754da
7,299
py
Python
tools/build_defs/pkg/make_rpm.py
jpieper-tri/bazel
eef80048e2c59e3be974144ce9cd90b9f90294fb
[ "Apache-2.0" ]
1
2018-03-27T17:18:20.000Z
2018-03-27T17:18:20.000Z
tools/build_defs/pkg/make_rpm.py
Corroler/bazel
073ea095a6c6a826ccdbbce1b213de47115e701a
[ "Apache-2.0" ]
2
2018-11-06T01:01:16.000Z
2019-04-10T02:25:49.000Z
tools/build_defs/pkg/make_rpm.py
Corroler/bazel
073ea095a6c6a826ccdbbce1b213de47115e701a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Bazel 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 applicable la...
27.43985
80
0.68023
2,863
0.392246
829
0.113577
883
0.120975
0
0
2,770
0.379504
12c1f75f883cd400635b90784e88c06bdf2c4be4
2,739
py
Python
data/datasets/gb_100.py
CharleyZhao123/graceful-few-shot
fae8170158a7a39ead7da40fecd787fea4abcf1a
[ "MIT" ]
1
2021-08-11T12:56:29.000Z
2021-08-11T12:56:29.000Z
data/datasets/gb_100.py
CharleyZhao123/graceful-few-shot
fae8170158a7a39ead7da40fecd787fea4abcf1a
[ "MIT" ]
null
null
null
data/datasets/gb_100.py
CharleyZhao123/graceful-few-shot
fae8170158a7a39ead7da40fecd787fea4abcf1a
[ "MIT" ]
null
null
null
import os import pickle import random from torch.utils.data import Dataset from .datasets import dataset_register default_split = { 'train': 0.7, 'val': 0.3, } @dataset_register('gb-100') class GB100(Dataset): def __init__(self, root_path, split='train', split_method='novel', **kwargs): data_fi...
28.831579
91
0.588536
2,379
0.839153
0
0
2,407
0.84903
0
0
484
0.170723
12c2d9d6cce98782d3ab5c1e821708313828e9f6
594
py
Python
examples/analyze-outdated.py
duzvik/project-freta
6c96b5d9af98380d695f0ad1c1636021793f30d2
[ "CC-BY-4.0", "MIT" ]
67
2020-07-06T20:18:05.000Z
2022-03-27T15:00:16.000Z
examples/analyze-outdated.py
hhfdserth/project-freta
b552267f87a4f5e4796ece6865232853d62f227c
[ "CC-BY-4.0", "MIT" ]
2
2020-07-06T23:35:47.000Z
2020-07-14T15:22:47.000Z
examples/analyze-outdated.py
hhfdserth/project-freta
b552267f87a4f5e4796ece6865232853d62f227c
[ "CC-BY-4.0", "MIT" ]
21
2020-04-07T22:37:52.000Z
2021-11-10T08:27:38.000Z
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # # Re-analyze all images that don't have latest version of the analysis available from freta.api import Freta def main(): freta = Freta() versions = freta.versions() for image in freta.image.list(): ...
23.76
80
0.616162
0
0
0
0
0
0
0
0
269
0.452862
12c342b7aef5ffeb0a48559a00dc029a6ad70253
4,041
py
Python
utils/utils_fit.py
bubbliiiing/faster-rcnn-keras
aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6
[ "MIT" ]
282
2020-02-25T00:19:28.000Z
2022-03-20T08:14:20.000Z
utils/utils_fit.py
codertcm/faster-rcnn-keras
aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6
[ "MIT" ]
46
2020-02-24T13:17:40.000Z
2022-03-12T00:59:15.000Z
utils/utils_fit.py
codertcm/faster-rcnn-keras
aa1eb5e974785646b9fd86bfd269f2b6c12ec0e6
[ "MIT" ]
123
2020-02-23T09:28:36.000Z
2022-03-16T01:43:46.000Z
import numpy as np import tensorflow as tf from keras import backend as K from tqdm import tqdm def write_log(callback, names, logs, batch_no): for name, value in zip(names, logs): summary = tf.Summary() summary_value = summary.value.add() summary_value.simple_value = value ...
44.406593
153
0.554318
0
0
0
0
0
0
0
0
310
0.076714
12c35e34c837e4d87b7e6155a3d32986c86a463f
88
py
Python
__init__.py
sbalen/TrafficSignsDataset
39ae40a0d307ee83af57f70eed43c38bc5d25233
[ "Apache-2.0" ]
1
2021-05-05T14:23:34.000Z
2021-05-05T14:23:34.000Z
__init__.py
sbalen/TrafficSignsDataset
39ae40a0d307ee83af57f70eed43c38bc5d25233
[ "Apache-2.0" ]
null
null
null
__init__.py
sbalen/TrafficSignsDataset
39ae40a0d307ee83af57f70eed43c38bc5d25233
[ "Apache-2.0" ]
null
null
null
"""TrafficSignDataset dataset.""" from .TrafficSignsDataset import Trafficsignsdataset
22
52
0.829545
0
0
0
0
0
0
0
0
33
0.375
12c3f8688909dadef43a9224619f1323d1d373b9
972
py
Python
exercicios-Python/ex042.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex042.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex042.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
#Refaça o DESAFIO 035 dos triângulos, acrescentando o recurso de mostrar que tipo de triângulo será formado: #- EQUILÁTERO: todos os lados iguais #- ISÓSCELES: dois lados iguais, um diferente #- ESCALENO: todos os lados diferentes print('-' * 20, 'Programa Analisador de Triângulos', '-' * 20) seg1 = float(input('Digite...
54
108
0.700617
0
0
0
0
0
0
0
0
679
0.688641
12c5579947927013c8506c4aecdbaabf5a5bd1d2
319
py
Python
tests/test_extension.py
PeterWurmsdobler/mopidy-vfd
8ae067d37b8670da2a0b9e876257c09ceb222be7
[ "Apache-2.0" ]
null
null
null
tests/test_extension.py
PeterWurmsdobler/mopidy-vfd
8ae067d37b8670da2a0b9e876257c09ceb222be7
[ "Apache-2.0" ]
null
null
null
tests/test_extension.py
PeterWurmsdobler/mopidy-vfd
8ae067d37b8670da2a0b9e876257c09ceb222be7
[ "Apache-2.0" ]
null
null
null
from mopidy_vfd import Extension def test_get_default_config(): ext = Extension() config = ext.get_default_config() assert "[vfd]" in config assert "enabled = true" in config def test_get_config_schema(): ext = Extension() schema = ext.get_config_schema() assert "display" in schema
16.789474
37
0.689655
0
0
0
0
0
0
0
0
32
0.100313
12c5c79e7f95fd34c8892f6f44952e889b0051d1
111
py
Python
backend/venv/src/api/ordercampproduct/apps.py
AkashSDas/camps_for_champs
1bf7e51905b5b3efc47f94ffcfde7167dace4475
[ "MIT" ]
null
null
null
backend/venv/src/api/ordercampproduct/apps.py
AkashSDas/camps_for_champs
1bf7e51905b5b3efc47f94ffcfde7167dace4475
[ "MIT" ]
null
null
null
backend/venv/src/api/ordercampproduct/apps.py
AkashSDas/camps_for_champs
1bf7e51905b5b3efc47f94ffcfde7167dace4475
[ "MIT" ]
null
null
null
from django.apps import AppConfig class OrdercampproductConfig(AppConfig): name = 'api.ordercampproduct'
18.5
40
0.792793
74
0.666667
0
0
0
0
0
0
22
0.198198
12c65927c0458f39714e96cf3347972f4ddf2a65
691
py
Python
onnx_tf/handlers/backend/identity.py
ZemingZhao/onnx-tensorflow
9ab9b934c2c8494b6309d20f15acabcb3abd126d
[ "Apache-2.0" ]
null
null
null
onnx_tf/handlers/backend/identity.py
ZemingZhao/onnx-tensorflow
9ab9b934c2c8494b6309d20f15acabcb3abd126d
[ "Apache-2.0" ]
null
null
null
onnx_tf/handlers/backend/identity.py
ZemingZhao/onnx-tensorflow
9ab9b934c2c8494b6309d20f15acabcb3abd126d
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from onnx_tf.handlers.backend_handler import BackendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_func @onnx_op("Identity") @tf_func(tf.identity) class Identity(BackendHandler): @classmethod def version_1(cls, node, **kwargs): return [cl...
25.592593
59
0.726483
470
0.680174
0
0
513
0.742402
0
0
23
0.033285
12c759447ac7e05d73a693a7af973c9ec776f540
42,699
py
Python
raiden/tests/integration/api/test_restapi.py
litexnetwork/raiden
b084c77e994d1f08f72947e57ce5bd6c8aa9c2a9
[ "MIT" ]
1
2018-11-26T01:40:37.000Z
2018-11-26T01:40:37.000Z
raiden/tests/integration/api/test_restapi.py
litexnetwork/raiden
b084c77e994d1f08f72947e57ce5bd6c8aa9c2a9
[ "MIT" ]
null
null
null
raiden/tests/integration/api/test_restapi.py
litexnetwork/raiden
b084c77e994d1f08f72947e57ce5bd6c8aa9c2a9
[ "MIT" ]
null
null
null
from http import HTTPStatus import time import logging import pytest import grequests from flask import url_for from eth_utils import ( to_checksum_address, to_canonical_address, is_checksum_address, ) from raiden_contracts.constants import ( CONTRACT_HUMAN_STANDARD_TOKEN, MAX_TOKENS_DEPLOY, TE...
32.769762
176
0.686035
0
0
0
0
36,123
0.845992
0
0
8,777
0.205555
12c7cbd02b14e09531a4f5ea52a53834f3434799
6,946
py
Python
contents/MyExperiment/Exp3_test/cluster_env.py
Feng-XiaoYue/Reinforcement-learning-with-tensorflow-master
011594083410f9b2f8e16eb5deed26e730ed849e
[ "MIT" ]
null
null
null
contents/MyExperiment/Exp3_test/cluster_env.py
Feng-XiaoYue/Reinforcement-learning-with-tensorflow-master
011594083410f9b2f8e16eb5deed26e730ed849e
[ "MIT" ]
null
null
null
contents/MyExperiment/Exp3_test/cluster_env.py
Feng-XiaoYue/Reinforcement-learning-with-tensorflow-master
011594083410f9b2f8e16eb5deed26e730ed849e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import random import time import sys if sys.version_info.major == 2: import Tkinter as tk else: import tkinter as tk class Cluster(tk.Tk, object): def __init__(self, state_init, server_attribute): super(Cluster, self).__init__() self.action_space = np...
37.144385
145
0.460121
5,036
0.713517
0
0
0
0
0
0
2,269
0.321479
12c7d079f923030d66c22a1b6cf6b9b674f39635
2,589
py
Python
libensemble/tests/regression_tests/test_6-hump_camel_elapsed_time_abort.py
Kardyne/libensemble
566c8f5daafe2ad4deebc13198a1e131e4ce6542
[ "BSD-2-Clause" ]
null
null
null
libensemble/tests/regression_tests/test_6-hump_camel_elapsed_time_abort.py
Kardyne/libensemble
566c8f5daafe2ad4deebc13198a1e131e4ce6542
[ "BSD-2-Clause" ]
null
null
null
libensemble/tests/regression_tests/test_6-hump_camel_elapsed_time_abort.py
Kardyne/libensemble
566c8f5daafe2ad4deebc13198a1e131e4ce6542
[ "BSD-2-Clause" ]
null
null
null
# """ # Runs libEnsemble on the 6-hump camel problem. Documented here: # https://www.sfu.ca/~ssurjano/camel6.html # # Execute via the following command: # mpiexec -np 4 python3 test_6-hump_camel_elapsed_time_abort.py # The number of concurrent evaluations of the objective function will be 4-1=3. # """ from __fut...
34.52
151
0.653148
0
0
0
0
0
0
0
0
1,166
0.450367
12c8a53eac5c028a5e825aaa86f201c528a2f671
1,329
py
Python
do_like_javac/tools/graphtools.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
1
2020-10-10T20:24:08.000Z
2020-10-10T20:24:08.000Z
do_like_javac/tools/graphtools.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
13
2019-06-20T23:16:15.000Z
2022-03-26T21:19:20.000Z
do_like_javac/tools/graphtools.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
5
2016-09-23T00:52:12.000Z
2021-09-08T01:24:36.000Z
import os import argparse from . import common argparser = argparse.ArgumentParser(add_help=False) graph_group = argparser.add_argument_group('graphtool arguments') graph_group.add_argument('--graph-jar', metavar='<graphtool-jar>', action='store',default=None, dest='graph_jar', ...
30.906977
88
0.611738
0
0
0
0
0
0
0
0
259
0.194883
12c8ff9bf299511a1712cec875fde79e159c64f4
507
py
Python
boss_grabbing/pipelines.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
boss_grabbing/pipelines.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
boss_grabbing/pipelines.py
shansb/boss_grabbing
20aabd6b2062099eb287d7586dcf619648569ba2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html from boss_grabbing.sqlite import Sqlite class BossGrabbingPipeline(object): def process_item(self, item, spider): ...
25.35
65
0.65286
270
0.532544
0
0
0
0
0
0
209
0.412229
12c9169d04a1b953b055c11fb6f8b67fa66071ff
344
py
Python
core/jobs/urls.py
InKyrNet/inkyrnet
fdb5c8def9b74049c4b48f2fccf5d52b040a4435
[ "MIT" ]
null
null
null
core/jobs/urls.py
InKyrNet/inkyrnet
fdb5c8def9b74049c4b48f2fccf5d52b040a4435
[ "MIT" ]
4
2021-06-04T21:36:18.000Z
2021-09-22T17:44:09.000Z
core/jobs/urls.py
InKyrNet/inkyrnet
fdb5c8def9b74049c4b48f2fccf5d52b040a4435
[ "MIT" ]
null
null
null
from django.urls import path from .views import * from django_filters.views import FilterView app_name = 'jobs' urlpatterns = [ path('', FilterView.as_view(filterset_class=JobFilter, template_name='jobs/job_list.html'), name='index'), path('companies/', CompanyListView.as_view(...
28.666667
83
0.674419
0
0
0
0
0
0
0
0
58
0.168605
12c9326e60a2f14e4ff7c33d36e504ccc28441b7
2,010
py
Python
src/compas/datastructures/mesh/transformations_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/datastructures/mesh/transformations_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
src/compas/datastructures/mesh/transformations_numpy.py
arpastrana/compas
ed677a162c14dbe562c82d72f370279259faf7da
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.geometry import transform_points_numpy __all__ = [ 'mesh_transform_numpy', 'mesh_transformed_numpy', ] def mesh_transform_numpy(mesh, transformation): """Transform a mesh. Param...
24.216867
80
0.595025
0
0
0
0
0
0
0
0
1,268
0.630846
12c93b56f0fe4bfd1cf140c773e7ff17f7dd5689
17,860
py
Python
selfdrive/car/gm/carcontroller.py
CTyrell/openpilot
1ef27823882eed575266983175f106af1e293082
[ "MIT" ]
null
null
null
selfdrive/car/gm/carcontroller.py
CTyrell/openpilot
1ef27823882eed575266983175f106af1e293082
[ "MIT" ]
null
null
null
selfdrive/car/gm/carcontroller.py
CTyrell/openpilot
1ef27823882eed575266983175f106af1e293082
[ "MIT" ]
null
null
null
from cereal import car from common.realtime import DT_CTRL from common.numpy_fast import interp from common.realtime import sec_since_boot from selfdrive.config import Conversions as CV from selfdrive.car import apply_std_steer_torque_limits from selfdrive.car.gm import gmcan from selfdrive.car.gm.values import DBC, Ac...
54.45122
203
0.693729
17,407
0.974636
0
0
0
0
0
0
1,718
0.096193
12ca7aec9c936b7e376b5d6d2ed2e6e550f43708
8,570
py
Python
src/rprblender/__init__.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-03-29T05:55:49.000Z
2021-03-29T05:55:49.000Z
src/rprblender/__init__.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-04-03T09:39:28.000Z
2021-04-03T09:39:28.000Z
src/rprblender/__init__.py
isabella232/RadeonProRenderBlenderAddon
ff4ede164c1e1e909f182be709422bc8c8878b1c
[ "Apache-2.0" ]
null
null
null
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.o...
31.391941
116
0.655076
4,429
0.516803
0
0
721
0.084131
0
0
2,521
0.294166
12cc0f45c792a01e3a5bd5c42c13138e07ace531
1,561
py
Python
plot_metric_err_vs_dim.py
wchen459/design_embeddings_jmd_2016
30dfec40b14c81e6cbe1c57efc2abe1a28dbdd5f
[ "MIT" ]
9
2017-07-13T19:17:48.000Z
2022-03-17T02:19:06.000Z
plot_metric_err_vs_dim.py
wchen459/design_embeddings_jmd_2016
30dfec40b14c81e6cbe1c57efc2abe1a28dbdd5f
[ "MIT" ]
null
null
null
plot_metric_err_vs_dim.py
wchen459/design_embeddings_jmd_2016
30dfec40b14c81e6cbe1c57efc2abe1a28dbdd5f
[ "MIT" ]
2
2018-08-31T22:46:03.000Z
2020-06-19T16:17:38.000Z
""" Plots reconstruction error vs semantic space dimensionality Usage: python metric_err_vs_dim.py Author(s): Wei Chen ([email protected]) """ import matplotlib.pyplot as plt import numpy as np plt.rc("font", size=18) examples = ['glass', 'sf_linear', 'sf_s_nonlinear', 'sf_v_nonlinear'] titles = {'glass': ...
31.22
104
0.606022
0
0
0
0
0
0
0
0
611
0.391416
12cc8345dd761da772a7145052f730ec8abb45f7
621
py
Python
tools/pot/openvino/tools/pot/graph/gpu_patterns.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
1,127
2018-10-15T14:36:58.000Z
2020-04-20T09:29:44.000Z
tools/pot/openvino/tools/pot/graph/gpu_patterns.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
439
2018-10-20T04:40:35.000Z
2020-04-19T05:56:25.000Z
tools/pot/openvino/tools/pot/graph/gpu_patterns.py
ryanloney/openvino-1
4e0a740eb3ee31062ba0df88fcf438564f67edb7
[ "Apache-2.0" ]
414
2018-10-17T05:53:46.000Z
2020-04-16T17:29:53.000Z
# Copyright (C) 2020-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from .pattern_utils import check_fused_scale_shift_patterns, get_fused_scale_shift_patterns, \ check_fused_op_const_patterns, get_fused_op_const_pattern, get_clamp_mult_const_pattern def get_gpu_ignored_patterns(): return { ...
41.4
113
0.756844
0
0
0
0
0
0
0
0
109
0.175523
12ccbde3bf71864760496c1e1f0963111fba9314
638
py
Python
test/environments/instances/8x8/gen.py
Multi-Agent-Research-Group/hog2
544d7c0e933fd69025944a0a3abcf9a40e59f0be
[ "MIT" ]
5
2020-08-03T09:43:26.000Z
2022-01-11T08:28:30.000Z
test/environments/instances/8x8/gen.py
Multi-Agent-Research-Group/hog2
544d7c0e933fd69025944a0a3abcf9a40e59f0be
[ "MIT" ]
null
null
null
test/environments/instances/8x8/gen.py
Multi-Agent-Research-Group/hog2
544d7c0e933fd69025944a0a3abcf9a40e59f0be
[ "MIT" ]
7
2017-07-31T13:01:28.000Z
2021-05-16T10:15:49.000Z
#!/usr/bin/python import random import os import errno for i in range(100): s=set() g=set() while len(s) < 50: s.add((random.randint(0,7),random.randint(0,7))) while len(g) < 50: g.add((random.randint(0,7),random.randint(0,7))) start=list(s) goal=list(g) for size in range(21,50): if not os...
22.785714
80
0.548589
0
0
0
0
0
0
0
0
60
0.094044
12ccd738c589b9032a098324390886166233073c
2,308
py
Python
pose_recognition_from_camera_demo.py
amazingchow/capture-dance-using-mediapipe
1963d461b4e047308da78b1bb88b9ed1f2c3c7d1
[ "MIT" ]
null
null
null
pose_recognition_from_camera_demo.py
amazingchow/capture-dance-using-mediapipe
1963d461b4e047308da78b1bb88b9ed1f2c3c7d1
[ "MIT" ]
null
null
null
pose_recognition_from_camera_demo.py
amazingchow/capture-dance-using-mediapipe
1963d461b4e047308da78b1bb88b9ed1f2c3c7d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import cv2 as cv import mediapipe as mp import sys import time if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--video_device", type=int, default=0) parser.add_argument("--video_file", type=str, default="") args = parser.pars...
35.507692
101
0.561958
0
0
0
0
0
0
0
0
436
0.188908
12ce678d7b9581bc7d8e71fefb2ce7346256d86f
1,901
py
Python
reference/data_dict_export.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
1
2019-05-18T22:32:21.000Z
2019-05-18T22:32:21.000Z
reference/data_dict_export.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
reference/data_dict_export.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
# Program name: atomic1D/reference/build_json.py # Author: Thomas Body # Author email: [email protected] # Date of creation: 14 July 2017 # # # Makes data_dict and copies it into a .json file 'sd1d-case-05.json' filename = 'sd1d-case-05' from boutdata.collect import collect data_dict = {} # Normalisation factor ...
36.557692
172
0.730668
0
0
0
0
0
0
0
0
1,224
0.643872
12cf323ab36261eee5e0ca79f3a3c93c62ed377b
3,300
py
Python
wordDocComposite.py
flyonok/image2text
0c16e6bf35eb486e6ff28e9e402a18bea6bd338c
[ "Apache-1.1" ]
null
null
null
wordDocComposite.py
flyonok/image2text
0c16e6bf35eb486e6ff28e9e402a18bea6bd338c
[ "Apache-1.1" ]
null
null
null
wordDocComposite.py
flyonok/image2text
0c16e6bf35eb486e6ff28e9e402a18bea6bd338c
[ "Apache-1.1" ]
null
null
null
from docx import Document def CompositeTwoDocs(srcDocFullName, dstDocFullName, compositeName): ''' srcDocFullName:源文档,里面含有需要替换的内容 dstDocFullName:目标文档,执行后,相关模板内容被替换 compositeName:替换的对象名,比如正面或背面 return: 成功->True,失败->False ''' try: srcDoc = Document(srcDocFullName) dstDoc = Do...
40.740741
101
0.538485
0
0
0
0
0
0
0
0
889
0.243162
12d0afe950ed445eb9f7e907ee14e9a851acd904
4,853
py
Python
app/cover.py
mrwiwi/tydom2mqtt
293322033b67521bb981af1c8c2245ca9af6c646
[ "MIT" ]
26
2020-04-07T17:58:24.000Z
2022-02-12T16:28:44.000Z
app/cover.py
mrwiwi/tydom2mqtt
293322033b67521bb981af1c8c2245ca9af6c646
[ "MIT" ]
19
2020-03-25T09:46:46.000Z
2021-11-29T09:55:57.000Z
app/cover.py
mrwiwi/tydom2mqtt
293322033b67521bb981af1c8c2245ca9af6c646
[ "MIT" ]
26
2020-04-27T21:40:12.000Z
2022-01-06T14:44:22.000Z
import json import time from datetime import datetime from sensors import sensor cover_command_topic = "cover/tydom/{id}/set_positionCmd" cover_config_topic = "homeassistant/cover/tydom/{id}/config" cover_position_topic = "cover/tydom/{id}/current_position" cover_set_postion_topic = "cover/tydom/{id}/set_position" cov...
37.914063
147
0.622708
4,478
0.922728
0
0
0
0
3,578
0.737276
1,546
0.318566
12d29fab22f07b19b231bdfe08bc053825594e45
56,823
py
Python
edx/config/lms/docker_run.py
openfun/learning-analytics-playground
dca80d89ca781d9060bd69927af4aa1462cc53ef
[ "MIT" ]
1
2021-12-13T09:05:59.000Z
2021-12-13T09:05:59.000Z
edx/config/lms/docker_run.py
openfun/learning-analytics-playground
dca80d89ca781d9060bd69927af4aa1462cc53ef
[ "MIT" ]
3
2021-05-18T08:26:51.000Z
2022-03-14T10:34:36.000Z
edx/config/lms/docker_run.py
openfun/learning-analytics-playground
dca80d89ca781d9060bd69927af4aa1462cc53ef
[ "MIT" ]
1
2021-06-03T14:21:56.000Z
2021-06-03T14:21:56.000Z
""" This is the default template for our main set of servers. This does NOT cover the content machines, which use content.py Common traits: * Use memcached, and cache-backed sessions * Use a MySQL 5.1 database """ # We intentionally define lots of variables that aren't used, and # want to import all variables from ba...
36.239158
140
0.724671
216
0.003801
114
0.002006
0
0
0
0
27,099
0.476902
12d2af7e340f2c0b16013db0e187eff0a983f2ec
14,028
py
Python
stashboard/handlers/site.py
kelnos/stashboard
5f92ed14b8cf17f4b1be8441005b187e97ca74b8
[ "MIT" ]
1
2015-02-24T23:30:06.000Z
2015-02-24T23:30:06.000Z
stashboard/handlers/site.py
ratchetio/stashboard
f8e4e6d175f48701a154e4baca10de2a4a577ab4
[ "MIT" ]
null
null
null
stashboard/handlers/site.py
ratchetio/stashboard
f8e4e6d175f48701a154e4baca10de2a4a577ab4
[ "MIT" ]
null
null
null
# The MIT License # # Copyright (c) 2008 William T. Katz # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
32.852459
149
0.590961
11,642
0.829912
0
0
0
0
0
0
2,874
0.204876
12d4213a1f0e884d767b82004cfca76be19c9038
1,375
py
Python
bga/forms.py
KarmaPoliceT2/bga
f7708ddae72bc83d68a2294d8f1b600345ebec30
[ "MIT" ]
null
null
null
bga/forms.py
KarmaPoliceT2/bga
f7708ddae72bc83d68a2294d8f1b600345ebec30
[ "MIT" ]
3
2019-12-26T16:57:34.000Z
2021-06-01T23:08:35.000Z
bga/forms.py
KarmaPoliceT2/bga
f7708ddae72bc83d68a2294d8f1b600345ebec30
[ "MIT" ]
null
null
null
from wtforms import Form, StringField, PasswordField, DecimalField, IntegerField, SelectField, validators from wtforms.fields.html5 import DateField def strip_filter(x): return x.strip() if x else None class RegistrationForm(Form): username = StringField('Username', [validators.Length( min=1, max=255)],...
42.96875
105
0.696
1,162
0.845091
0
0
0
0
0
0
236
0.171636
12d68f272974ae7982471fbca3af702e552c3c1f
597
py
Python
ejercicios_python/Clase05/practica5-9.py
hcgalvan/UNSAM-Python-programming
c4b3f5ae0702dc03ea6010cb8051c7eec6aef42f
[ "MIT" ]
null
null
null
ejercicios_python/Clase05/practica5-9.py
hcgalvan/UNSAM-Python-programming
c4b3f5ae0702dc03ea6010cb8051c7eec6aef42f
[ "MIT" ]
null
null
null
ejercicios_python/Clase05/practica5-9.py
hcgalvan/UNSAM-Python-programming
c4b3f5ae0702dc03ea6010cb8051c7eec6aef42f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 15 08:32:03 2021 @author: User """ import numpy as np import matplotlib.pyplot as plt a = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]) print(a) print(a[0]) print(a.ndim) #te dice la cantidad de ejes (o dimensiones) del arreglo print(a.shape) #Te va a dar una t...
22.111111
98
0.649916
0
0
0
0
0
0
0
0
232
0.38861
12d6fdba24bc3c779da8bc89c659942cc66fb630
9,284
py
Python
cluster_toolkit/xi.py
jhod0/cluster_toolkit
b515b39fc4d0a17c19be4530a75d089d190f50cb
[ "MIT" ]
null
null
null
cluster_toolkit/xi.py
jhod0/cluster_toolkit
b515b39fc4d0a17c19be4530a75d089d190f50cb
[ "MIT" ]
6
2019-08-14T18:54:23.000Z
2019-09-19T22:10:42.000Z
cluster_toolkit/xi.py
jhod0/cluster_toolkit
b515b39fc4d0a17c19be4530a75d089d190f50cb
[ "MIT" ]
null
null
null
"""Correlation functions for matter and halos. """ import cluster_toolkit from cluster_toolkit import _ArrayWrapper, _handle_gsl_error import numpy as np def xi_nfw_at_r(r, M, c, Omega_m, delta=200): """NFW halo profile correlation function. Args: r (float or array like): 3d distances from halo cente...
40.190476
198
0.62193
0
0
0
0
0
0
0
0
5,474
0.589617
12d736e2a136d27d71bf7901bba9c44692b70118
1,500
py
Python
Tools/scripts/rgrep.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-05-21T23:47:54.000Z
2015-05-21T23:47:54.000Z
Tools/scripts/rgrep.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2015-10-29T20:51:31.000Z
2015-10-29T20:51:31.000Z
Tools/scripts/rgrep.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
#! /usr/bin/env python """Reverse grep. Usage: rgrep [-i] pattern file """ import sys import re import getopt def main(): bufsize = 64*1024 reflags = 0 opts, args = getopt.getopt(sys.argv[1:], "i") for o, a in opts: if o == '-i': reflags = reflags | re.IGNORECASE if len(args)...
23.076923
66
0.519333
0
0
0
0
0
0
0
0
205
0.136667
12d758ba9b3d6c5825fba951fa8141e8f0dd86e9
5,161
py
Python
licel_format_parser/main.py
IFAEControl/lidar-cli
02480ecd932cad1e11a04d866eb2eafc214f678d
[ "BSD-3-Clause" ]
null
null
null
licel_format_parser/main.py
IFAEControl/lidar-cli
02480ecd932cad1e11a04d866eb2eafc214f678d
[ "BSD-3-Clause" ]
null
null
null
licel_format_parser/main.py
IFAEControl/lidar-cli
02480ecd932cad1e11a04d866eb2eafc214f678d
[ "BSD-3-Clause" ]
null
null
null
import struct f = open("c0610400.102200", 'rb') class DateTime: def __init__(self): line = f.readline().strip() self._letter = chr(line[0]) self._year = line[1:3].decode("utf-8") self._month = int(chr(line[3]), 16) self._day = line[4:6].decode("utf-8") self._hour =...
33.083333
118
0.571207
4,822
0.934315
0
0
0
0
0
0
948
0.183685
12d85c3f8e0b325f0104a7462f8c848f6627e0a1
7,073
py
Python
built-in/TensorFlow/Official/nlp/BertLarge_ID0634_for_TensorFlow2.X/bert/tf2_common/training/optimizer_v2modified.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/nlp/BertLarge_ID0634_for_TensorFlow2.X/bert/tf2_common/training/optimizer_v2modified.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/nlp/BertLarge_ID0634_for_TensorFlow2.X/bert/tf2_common/training/optimizer_v2modified.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.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...
42.10119
88
0.713276
5,626
0.795419
0
0
0
0
0
0
2,979
0.421179
12d9793b66d488d4aab6750551143953a771ab71
4,828
py
Python
src/data/utils.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/data/utils.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/data/utils.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
import os import errno import requests import glob import os import json from tqdm import tqdm from selenium import webdriver from selenium.webdriver.firefox.options import Options def make_sure_path_exists(path): try: os.makedirs(path) except OSError as exception: if exception.errno != er...
31.555556
94
0.570008
2,709
0.561102
217
0.044946
0
0
0
0
377
0.078086
12d99705dd6d38a5113e0f5059a5a16ef3ce2532
231
py
Python
LeetCode/Product and Sum/Subtract_Product_And_Sum.py
GSri30/Competetive_programming
0dc1681500a80b6f0979d0dc9f749357ee07bcb8
[ "MIT" ]
22
2020-01-03T17:32:00.000Z
2021-11-07T09:31:44.000Z
LeetCode/Product and Sum/Subtract_Product_And_Sum.py
GSri30/Competetive_programming
0dc1681500a80b6f0979d0dc9f749357ee07bcb8
[ "MIT" ]
10
2020-09-30T09:41:18.000Z
2020-10-11T11:25:09.000Z
LeetCode/Product and Sum/Subtract_Product_And_Sum.py
GSri30/Competetive_programming
0dc1681500a80b6f0979d0dc9f749357ee07bcb8
[ "MIT" ]
25
2019-10-14T19:25:01.000Z
2021-05-26T08:12:20.000Z
class Solution: def subtractProductAndSum(self, n: int) -> int: x = n add = 0 mul = 1 while x > 0 : add += x%10 mul *= x%10 x = x//10 return mul - add
21
51
0.402597
230
0.995671
0
0
0
0
0
0
0
0
12da373705e611aa87f9b708815df70bbd6ae325
14,870
py
Python
jocular/calibrator.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
6
2021-03-21T16:46:44.000Z
2021-11-27T14:07:06.000Z
jocular/calibrator.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
null
null
null
jocular/calibrator.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
null
null
null
''' Handles calibration library and calibration of subs. ''' import os.path import numpy as np from scipy.stats import trimboth from kivy.app import App from loguru import logger from kivy.properties import BooleanProperty, DictProperty, NumericProperty from kivy.core.window import Window from jocular.table import T...
39.028871
123
0.571688
14,325
0.962831
0
0
0
0
0
0
5,037
0.338554
12dbd5bf3d381ee625187e0ae26efd79aef7f23a
1,128
py
Python
test/office_schema.py
chrismaille/marshmallow-pynamodb
1e799041ff1053a6aa67ce72729e7262cb0f746f
[ "MIT" ]
3
2020-05-17T15:04:27.000Z
2021-08-12T14:27:15.000Z
test/office_schema.py
chrismaille/marshmallow-pynamodb
1e799041ff1053a6aa67ce72729e7262cb0f746f
[ "MIT" ]
2
2020-05-06T00:11:49.000Z
2022-02-23T11:45:54.000Z
test/office_schema.py
chrismaille/marshmallow-pynamodb
1e799041ff1053a6aa67ce72729e7262cb0f746f
[ "MIT" ]
1
2020-04-30T19:34:22.000Z
2020-04-30T19:34:22.000Z
from test.office_model import Headquarters, Office from marshmallow import fields from pynamodb.attributes import DiscriminatorAttribute from marshmallow_pynamodb import ModelSchema class OfficeSchema(ModelSchema): """Office Schema for PynamoDB Office Model. We are overriding PynamoDB NumberSetAttribut...
22.117647
63
0.721631
935
0.828901
0
0
0
0
0
0
506
0.448582
12ddf9c1d17cbd9db7aea277570f0278393c93a6
1,599
py
Python
energy_demand/initalisations/initialisations.py
willu47/energy_demand
59a2712f353f47e3dc237479cc6cc46666b7d0f1
[ "MIT" ]
null
null
null
energy_demand/initalisations/initialisations.py
willu47/energy_demand
59a2712f353f47e3dc237479cc6cc46666b7d0f1
[ "MIT" ]
null
null
null
energy_demand/initalisations/initialisations.py
willu47/energy_demand
59a2712f353f47e3dc237479cc6cc46666b7d0f1
[ "MIT" ]
null
null
null
"""Helper initialising functions """ #pylint: disable=I0011, C0321, C0301, C0103, C0325, R0902, R0913, no-member, E0213 def init_fuel_tech_p_by(all_enduses_with_fuels, nr_of_fueltypes): """Helper function to define stocks for all enduse and fueltype Parameters ---------- all_enduses_with_fuels : dict ...
24.984375
104
0.676048
0
0
0
0
0
0
0
0
942
0.589118
12df0714eb5fa8ab8f6068ed158fd58746d6bc32
37
py
Python
npd_well_decoder/__init__.py
fmell/npd-well-name-decoder
a44ec28a6ef3b32ba38751eeffff479008b53e2d
[ "MIT" ]
null
null
null
npd_well_decoder/__init__.py
fmell/npd-well-name-decoder
a44ec28a6ef3b32ba38751eeffff479008b53e2d
[ "MIT" ]
null
null
null
npd_well_decoder/__init__.py
fmell/npd-well-name-decoder
a44ec28a6ef3b32ba38751eeffff479008b53e2d
[ "MIT" ]
null
null
null
from .npd import parse_wellbore_name
18.5
36
0.864865
0
0
0
0
0
0
0
0
0
0
12e000a4e8578ea58e111e55e0187884ea14b784
26,842
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/util.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
5
2019-03-11T14:30:31.000Z
2021-12-04T14:11:54.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/util.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/util.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
############################################################################### # Name: util.py # # Purpose: Misc utility functions used through out Editra # # Author: Cody Precord <[email protected]> # ...
33.891414
80
0.595671
10,199
0.379964
0
0
910
0.033902
0
0
10,834
0.403621
12e061c5c6e2f04c0f2228f70f6bcd0e8dd58774
1,105
py
Python
genrl/environments/vec_env/utils.py
matrig/genrl
25eb018f18a9a1d0865c16e5233a2a7ccddbfd78
[ "MIT" ]
390
2020-05-03T17:34:02.000Z
2022-03-05T11:29:07.000Z
genrl/environments/vec_env/utils.py
matrig/genrl
25eb018f18a9a1d0865c16e5233a2a7ccddbfd78
[ "MIT" ]
306
2020-05-03T05:53:53.000Z
2022-03-12T00:27:28.000Z
genrl/environments/vec_env/utils.py
matrig/genrl
25eb018f18a9a1d0865c16e5233a2a7ccddbfd78
[ "MIT" ]
64
2020-05-05T20:23:30.000Z
2022-03-30T08:43:10.000Z
from typing import Tuple import torch class RunningMeanStd: """ Utility Function to compute a running mean and variance calculator :param epsilon: Small number to prevent division by zero for calculations :param shape: Shape of the RMS object :type epsilon: float :type shape: Tuple """ ...
28.333333
77
0.611765
1,063
0.961991
0
0
0
0
0
0
251
0.227149
12e064fd8ee7774d0bfca223891f1c72e7cca90f
2,752
py
Python
releases/pota-windows-1.3-ai5.0.2.0/ae/aiPotaTemplate.py
sumitneup/pota
a1d7a59b5ca29813d8b7f3fa77cca0a47404b785
[ "MIT" ]
null
null
null
releases/pota-windows-1.3-ai5.0.2.0/ae/aiPotaTemplate.py
sumitneup/pota
a1d7a59b5ca29813d8b7f3fa77cca0a47404b785
[ "MIT" ]
null
null
null
releases/pota-windows-1.3-ai5.0.2.0/ae/aiPotaTemplate.py
sumitneup/pota
a1d7a59b5ca29813d8b7f3fa77cca0a47404b785
[ "MIT" ]
null
null
null
import mtoa.ui.ae.templates as templates import pymel.core as pm import maya.cmds as cmds import mtoa.ui.ae.utils as aeUtils class aiPotaTemplate(templates.AttributeTemplate): """ def filenameEditBokeh(self, mData) : attr = self.nodeAttr('aiBokehEXRPath') cmds.setAttr(attr,mData,type="string") ...
39.884058
135
0.673328
2,558
0.929506
0
0
0
0
0
0
2,013
0.731468
12e101d3d1c0a3624036d3fc55bbec2095eca800
2,690
py
Python
tests/test_user.py
munniomer/Send-IT-Api-v1
17041c987638c7e47c7c2ebed29bf7e2b5156bed
[ "CNRI-Python", "OML" ]
null
null
null
tests/test_user.py
munniomer/Send-IT-Api-v1
17041c987638c7e47c7c2ebed29bf7e2b5156bed
[ "CNRI-Python", "OML" ]
null
null
null
tests/test_user.py
munniomer/Send-IT-Api-v1
17041c987638c7e47c7c2ebed29bf7e2b5156bed
[ "CNRI-Python", "OML" ]
1
2019-02-05T07:44:19.000Z
2019-02-05T07:44:19.000Z
import unittest from app import create_app import json from tests.basetest import BaseTest class TestUSer(BaseTest): """User tests class""" def test_user_registration(self): "tests if new user can register" respon = self.client.post("/api/v1/user/register", json=self.new_user) self.as...
42.03125
99
0.637546
2,596
0.965056
0
0
0
0
0
0
862
0.320446
12e130d67ccfe9de3b3564473e4a39882ddb1111
583
py
Python
authors/apps/profiles/migrations/0023_auto_20190124_1222.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
null
null
null
authors/apps/profiles/migrations/0023_auto_20190124_1222.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
26
2019-01-07T14:22:05.000Z
2019-02-28T17:11:48.000Z
authors/apps/profiles/migrations/0023_auto_20190124_1222.py
andela/ah-django-unchained
a4e5f6cd11fdc0b9422020693ac1200b849cf0f3
[ "BSD-3-Clause" ]
3
2019-09-19T22:16:09.000Z
2019-10-16T21:16:16.000Z
# Generated by Django 2.1.4 on 2019-01-24 12:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0022_auto_20190123_1211'), ] operations = [ migrations.AlterField( model_name='userprofile', name='first...
24.291667
63
0.595197
490
0.84048
0
0
0
0
0
0
131
0.2247
12e2d80d29d4efd869955ca94be7cd962776dc80
811
py
Python
Algorithm/ShellSort/pyShellSort.py
commanderHR1/algorithms
d077364e8b08ae2b7b93bc01a73f622421086365
[ "MIT" ]
1
2020-07-17T20:49:55.000Z
2020-07-17T20:49:55.000Z
Algorithm/ShellSort/pyShellSort.py
commanderHR1/algorithms
d077364e8b08ae2b7b93bc01a73f622421086365
[ "MIT" ]
null
null
null
Algorithm/ShellSort/pyShellSort.py
commanderHR1/algorithms
d077364e8b08ae2b7b93bc01a73f622421086365
[ "MIT" ]
null
null
null
# Implementation of Shell Sort algorithm in Python def shellSort(arr): interval = 1 # Initializes interval while (interval < (len(arr) // 3)): interval = (interval * 3) + 1 while (interval > 0): for i in range(interval, len(arr)): # Select val to be inserted ...
26.16129
70
0.477189
0
0
0
0
0
0
0
0
200
0.246609
12e5018fbac310b4e1d16e7744a8549158b1a76a
1,943
py
Python
photos/models.py
benjaminbills/galleria
4c89f265a2f4f853a5685828d5bc505b51b9bb74
[ "MIT" ]
null
null
null
photos/models.py
benjaminbills/galleria
4c89f265a2f4f853a5685828d5bc505b51b9bb74
[ "MIT" ]
null
null
null
photos/models.py
benjaminbills/galleria
4c89f265a2f4f853a5685828d5bc505b51b9bb74
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Image(models.Model): name = models.CharField(max_length=255) posted_date = models.DateTimeField(auto_now_add=True) image_description = models.CharField(max_length=500, default='DEFAULT VALUE') image = models.ImageField(upload_to='images/', blank=Tru...
26.986111
79
0.691199
1,879
0.967061
0
0
799
0.41122
0
0
96
0.049408
12e533fd59ecf8d6a32514514fcb290ff13e6ec1
1,322
py
Python
main.py
kramrm/gcf-alerting-discord
c73d88520a783f9c4d12099bb8e21f03a950eebc
[ "MIT" ]
null
null
null
main.py
kramrm/gcf-alerting-discord
c73d88520a783f9c4d12099bb8e21f03a950eebc
[ "MIT" ]
null
null
null
main.py
kramrm/gcf-alerting-discord
c73d88520a783f9c4d12099bb8e21f03a950eebc
[ "MIT" ]
null
null
null
import base64 import json from webhook import post_webhook from datetime import datetime def hello_pubsub(event, context): """Triggered from a message on a Cloud Pub/Sub topic. Args: event (dict): Event payload. context (google.cloud.functions.Context): Metadata for the event. """ pubs...
38.882353
99
0.683812
0
0
0
0
0
0
0
0
555
0.419818
12e58dae1b7214722dcef0c29dfe11fbbf4c0b51
358
py
Python
libzyre.py
brettviren/wafit
39e9f2748c095dc4c3421a5de0f10f300d8da30b
[ "BSD-3-Clause" ]
null
null
null
libzyre.py
brettviren/wafit
39e9f2748c095dc4c3421a5de0f10f300d8da30b
[ "BSD-3-Clause" ]
null
null
null
libzyre.py
brettviren/wafit
39e9f2748c095dc4c3421a5de0f10f300d8da30b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env waf ''' This is a wafit tool for using zyre ''' import util def options(opt): opt.load("libczmq") util.generic_options(opt, "libzyre", libs=False) def configure(cfg): cfg.load("libczmq") util.generic_configure_incs(cfg, "libzyre", "zyre.h", "libczmq") util.generic_configure_lib...
21.058824
68
0.667598
0
0
0
0
0
0
0
0
138
0.385475
12e5fe65e4d8ed7a4606ea760b1a56fc1a8485e1
6,226
py
Python
scripts/run-gmm.py
vr100/nfl-kaggle
74386b672ef4bb894bdf943df866855c4b555ede
[ "MIT" ]
null
null
null
scripts/run-gmm.py
vr100/nfl-kaggle
74386b672ef4bb894bdf943df866855c4b555ede
[ "MIT" ]
null
null
null
scripts/run-gmm.py
vr100/nfl-kaggle
74386b672ef4bb894bdf943df866855c4b555ede
[ "MIT" ]
null
null
null
import argparse, os, fnmatch, json, joblib import pandas as pd from sklearn.mixture import GaussianMixture from sklearn.metrics import adjusted_rand_score # Reference paper - https://arxiv.org/abs/1906.11373 # "Unsupervised Methods for Identifying Pass Coverage Among Defensive Backs with NFL Player Tracking Data" STA...
32.092784
106
0.734661
0
0
0
0
0
0
0
0
1,166
0.187279
12e658cebecc095f8910cdb95d0ccbd190f22eff
106
py
Python
module01/classes/class06b.py
LauroHBrant/python-course
2154181ca4b684b0d1fa635706bcb1647a753bc3
[ "MIT" ]
2
2021-01-07T23:59:36.000Z
2021-01-18T00:23:52.000Z
module01/classes/class06b.py
LauroHBrant/python-course
2154181ca4b684b0d1fa635706bcb1647a753bc3
[ "MIT" ]
null
null
null
module01/classes/class06b.py
LauroHBrant/python-course
2154181ca4b684b0d1fa635706bcb1647a753bc3
[ "MIT" ]
null
null
null
from style import blue, none n = input(f'Type {blue}something{none}: ') print(f'{blue}{n.isnumeric()}')
17.666667
42
0.669811
0
0
0
0
0
0
0
0
55
0.518868
12e805833151bd1898679d1e39b89a2e7fde7f1c
2,600
py
Python
custom_components/panasonic_cc/__init__.py
shyne99/panasonic_cc
ec7912e4067ebd0c08ea2a16c123c50d69a2fca6
[ "MIT" ]
null
null
null
custom_components/panasonic_cc/__init__.py
shyne99/panasonic_cc
ec7912e4067ebd0c08ea2a16c123c50d69a2fca6
[ "MIT" ]
null
null
null
custom_components/panasonic_cc/__init__.py
shyne99/panasonic_cc
ec7912e4067ebd0c08ea2a16c123c50d69a2fca6
[ "MIT" ]
null
null
null
"""Platform for the Panasonic Comfort Cloud.""" from datetime import timedelta import logging from typing import Any, Dict import asyncio from async_timeout import timeout import voluptuous as vol from homeassistant.core import HomeAssistant from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from ho...
27.368421
83
0.699231
0
0
0
0
0
0
1,485
0.571154
268
0.103077
12e82d4517d5644cd0b40eba9d476a8a70aa842c
5,806
py
Python
django/bossingest/test/test_ingest_manager.py
jhuapl-boss/boss
c2e26d272bd7b8d54abdc2948193163537e31291
[ "Apache-2.0" ]
20
2016-05-16T21:08:13.000Z
2021-11-16T11:50:19.000Z
django/bossingest/test/test_ingest_manager.py
jhuapl-boss/boss
c2e26d272bd7b8d54abdc2948193163537e31291
[ "Apache-2.0" ]
31
2016-10-28T17:51:11.000Z
2022-02-10T08:07:31.000Z
django/bossingest/test/test_ingest_manager.py
jhuapl-boss/boss
c2e26d272bd7b8d54abdc2948193163537e31291
[ "Apache-2.0" ]
12
2016-10-28T17:47:01.000Z
2021-05-18T23:47:06.000Z
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory # # 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 ...
40.887324
110
0.707544
4,706
0.810541
0
0
0
0
0
0
1,335
0.229935
12e8353d99830242965335f0aba978e3cb0ab443
5,505
py
Python
sanic_devtools/log.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
12
2019-09-06T05:14:46.000Z
2022-02-17T09:26:38.000Z
sanic_devtools/log.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
null
null
null
sanic_devtools/log.py
yunstanford/sanic-devtools
9e8a6d011db025d53ddd6012b5542dc18825d4b0
[ "MIT" ]
1
2019-09-10T03:57:21.000Z
2019-09-10T03:57:21.000Z
import json import logging import logging.config import platform import re import traceback from io import StringIO import pygments from devtools import pformat from devtools.ansi import isatty, sformat from pygments.formatters import Terminal256Formatter from pygments.lexers import Python3TracebackLexer rs_dft_logge...
31.820809
101
0.547502
2,221
0.403451
0
0
0
0
0
0
1,386
0.251771
12e86cadd6eb11b7a84bc77642dccfd6d3f1bfb4
1,893
py
Python
rest_fhir/mixins/conditional_read.py
weynelucas/django-rest-fhir
560a0aadd0cfa43b6dc58f995c86015f6eefb768
[ "MIT" ]
2
2021-05-07T12:16:27.000Z
2021-12-16T20:45:36.000Z
rest_fhir/mixins/conditional_read.py
weynelucas/django-rest-fhir
560a0aadd0cfa43b6dc58f995c86015f6eefb768
[ "MIT" ]
3
2021-05-10T19:40:33.000Z
2021-06-27T14:24:47.000Z
rest_fhir/mixins/conditional_read.py
weynelucas/django-rest-fhir
560a0aadd0cfa43b6dc58f995c86015f6eefb768
[ "MIT" ]
1
2021-08-09T22:00:22.000Z
2021-08-09T22:00:22.000Z
import calendar from typing import Union import dateutil.parser from rest_framework import status from rest_framework.response import Response from django.utils.cache import get_conditional_response from django.utils.http import http_date from ..models import Resource, ResourceVersion FhirResource = Union[Resource,...
29.578125
73
0.663497
1,552
0.819863
0
0
0
0
0
0
226
0.119387
12e90bbcd25c813026449118e104295e2d5b4d7b
803
py
Python
code_week27_1026_111/sort_colors.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week27_1026_111/sort_colors.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
code_week27_1026_111/sort_colors.py
dylanlee101/leetcode
b059afdadb83d504e62afd1227107de0b59557af
[ "Apache-2.0" ]
null
null
null
''' 给定一个包含红色、白色和蓝色,一共 n 个元素的数组,原地对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。 此题中,我们使用整数 0、 1 和 2 分别表示红色、白色和蓝色。 注意: 不能使用代码库中的排序函数来解决这道题。 示例: 输入: [2,0,2,1,1,0] 输出: [0,0,1,1,2,2] 进阶: 一个直观的解决方案是使用计数排序的两趟扫描算法。 首先,迭代计算出0、1 和 2 元素的个数,然后按照0、1、2的排序,重写当前数组。 你能想出一个仅使用常数空间的一趟扫描算法吗? 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problem...
21.131579
65
0.554172
463
0.37982
0
0
0
0
0
0
830
0.680886
12ea0884e04ad5410800ee3a274f85dcb7596112
363
py
Python
solutions/lowest_common_ancestor_deepest_leaves/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/lowest_common_ancestor_deepest_leaves/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
solutions/lowest_common_ancestor_deepest_leaves/__main__.py
ansonmiu0214/dsa-worked-solutions
88801d268b78506edd77e771c29b4c9f4ae0f59a
[ "MIT" ]
null
null
null
from .solution import lcaDeepestLeaves from ..utils import TreeNode print('Enter tree, e.g. [2,3,1,3,1,null,1]:', end=' ') nodes = [int(node) if node != 'null' else None for node in input().strip().split(',')] root = TreeNode.fromList(nodes) lowestCommonAncestor = lcaDeepestLeaves(root) print(f'The lowest common anc...
36.3
86
0.721763
0
0
0
0
0
0
0
0
115
0.316804
12ea961825e76ebc83c3a72ff0731af4a86af12d
2,472
py
Python
code/python3/index_values_with_geo.py
jaylett/xapian-docsprint
2e8fdffecf71f7042c0abe49924ba48c11818b7e
[ "MIT" ]
47
2015-01-20T15:38:41.000Z
2022-02-15T21:03:50.000Z
code/python3/index_values_with_geo.py
jaylett/xapian-docsprint
2e8fdffecf71f7042c0abe49924ba48c11818b7e
[ "MIT" ]
16
2015-06-09T16:12:50.000Z
2020-02-05T06:40:18.000Z
code/python3/index_values_with_geo.py
jaylett/xapian-docsprint
2e8fdffecf71f7042c0abe49924ba48c11818b7e
[ "MIT" ]
56
2015-01-20T15:38:44.000Z
2022-03-03T18:13:39.000Z
#!/usr/bin/env python import json from support import parse_states import sys import xapian def index(datapath, dbpath): # Create or open the database we're going to be writing to. db = xapian.WritableDatabase(dbpath, xapian.DB_CREATE_OR_OPEN) # Set up a TermGenerator that we'll use in indexing. term...
35.314286
74
0.644013
0
0
0
0
0
0
0
0
771
0.311893
12eab71a1efede1b96f0100790956e17f9d9393a
1,265
py
Python
logger.py
drewstone/dynamic-governanceq
924317800db7bca6308ff912b16c7b834ab30e32
[ "MIT" ]
null
null
null
logger.py
drewstone/dynamic-governanceq
924317800db7bca6308ff912b16c7b834ab30e32
[ "MIT" ]
null
null
null
logger.py
drewstone/dynamic-governanceq
924317800db7bca6308ff912b16c7b834ab30e32
[ "MIT" ]
null
null
null
import constants def init(mode, gov, agents): if mode == constants.DEBUG_LOGGING or mode == constants.LOG_INIT: print("Agents = {}".format( list(map(lambda agent: agent.capacity, agents)))) print("Starting param: {}".format(gov.param)) def round(mode, round, gov, throughput): if ...
36.142857
74
0.554941
0
0
0
0
0
0
0
0
171
0.135178
12ec838b4e6e3d1f8f2bea5549297c2e3c075ade
2,484
py
Python
test/core/bad_ssl/gen_build_yaml.py
Akrog/grpc
14800b0c1acc2d10d4fd0826731ecae2cb448143
[ "Apache-2.0" ]
3
2020-10-07T14:20:21.000Z
2021-10-08T14:49:17.000Z
test/core/bad_ssl/gen_build_yaml.py
Akrog/grpc
14800b0c1acc2d10d4fd0826731ecae2cb448143
[ "Apache-2.0" ]
1
2021-03-04T02:33:56.000Z
2021-03-04T02:33:56.000Z
test/core/bad_ssl/gen_build_yaml.py
Akrog/grpc
14800b0c1acc2d10d4fd0826731ecae2cb448143
[ "Apache-2.0" ]
5
2021-02-19T09:46:00.000Z
2022-03-13T17:33:34.000Z
#!/usr/bin/env python2.7 # Copyright 2015 gRPC 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 la...
35.485714
76
0.595813
0
0
0
0
0
0
0
0
1,530
0.615942
12ed7f2619866ebbd758994ab5e6290f518e72e4
6,608
py
Python
tests/test_providers.py
thejoeejoee/django-allauth-cas
5db34b546eb32524a3a1a4b90f411e370ac7ad9b
[ "MIT" ]
null
null
null
tests/test_providers.py
thejoeejoee/django-allauth-cas
5db34b546eb32524a3a1a4b90f411e370ac7ad9b
[ "MIT" ]
null
null
null
tests/test_providers.py
thejoeejoee/django-allauth-cas
5db34b546eb32524a3a1a4b90f411e370ac7ad9b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from six.moves.urllib.parse import urlencode from django.contrib import messages from django.contrib.messages.api import get_messages from django.contrib.messages.middleware import MessageMiddleware from django.contrib.messages.storage.base import Message from django.contrib.sessions.middleware...
32.875622
79
0.623033
6,048
0.914839
0
0
1,381
0.208894
0
0
1,384
0.209348
12ed9629940a31dc96db1b6d58b951b990da8233
3,723
py
Python
infoblox_netmri/api/remote/models/device_password_log_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_password_log_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/remote/models/device_password_log_remote.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class DevicePasswordLogRemote(RemoteModel): """ This table list out entries of DevicePasswordLog | ``DevicePwLogID:`` The internal NetMRI identifier for the device password log. | ``attribute type:`...
31.285714
130
0.608649
3,615
0.970991
0
0
771
0.207091
0
0
2,738
0.735428
12ee13303b7604822dba3ba0cf7479d1d2caaf67
4,477
py
Python
selenium_utils/element.py
defactto/selenium-utils
d3a71f3baaaa0da29e3b1ab869f8c685ea5d1b42
[ "Apache-2.0" ]
7
2016-08-24T20:29:47.000Z
2020-01-29T13:59:03.000Z
selenium_utils/element.py
defactto/selenium-utils
d3a71f3baaaa0da29e3b1ab869f8c685ea5d1b42
[ "Apache-2.0" ]
null
null
null
selenium_utils/element.py
defactto/selenium-utils
d3a71f3baaaa0da29e3b1ab869f8c685ea5d1b42
[ "Apache-2.0" ]
1
2020-01-06T18:41:15.000Z
2020-01-06T18:41:15.000Z
import logging import time from selenium.common import exceptions from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.common import action_chains from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from selenium_utils i...
29.071429
100
0.691311
0
0
0
0
0
0
0
0
1,574
0.351575
12ee5dcab405211321c77a37855a79013c17587c
1,421
py
Python
modules/iib_applications.py
satbel/ib-metrics-pyclient
1670df55684a7182884fcfc777fde5ae44095f8f
[ "MIT" ]
null
null
null
modules/iib_applications.py
satbel/ib-metrics-pyclient
1670df55684a7182884fcfc777fde5ae44095f8f
[ "MIT" ]
null
null
null
modules/iib_applications.py
satbel/ib-metrics-pyclient
1670df55684a7182884fcfc777fde5ae44095f8f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Various functions for ib applications.""" from modules.iib_api import get_status def get_metric_name(metric_label): """Returns pushgateway formatted metric name.""" return 'ib_application_{0}'.format(metric_label) def get_metric_annotation(): """Returns dictionary with annotat...
36.435897
98
0.64532
0
0
0
0
0
0
0
0
489
0.344124
12f0e1426999717b706caac8906a3500e72dc344
1,366
py
Python
clock.py
hcjk/kitchen-bot
5122101ed840b6bdf0b56d3c154de083cb793eda
[ "MIT" ]
null
null
null
clock.py
hcjk/kitchen-bot
5122101ed840b6bdf0b56d3c154de083cb793eda
[ "MIT" ]
null
null
null
clock.py
hcjk/kitchen-bot
5122101ed840b6bdf0b56d3c154de083cb793eda
[ "MIT" ]
1
2019-06-10T01:25:49.000Z
2019-06-10T01:25:49.000Z
import os import requests import psycopg2 import db_lib as db from app import send_message, log from apscheduler.schedulers.blocking import BlockingScheduler DATABASE_URL = os.environ['DATABASE_URL'] conn = psycopg2.connect(DATABASE_URL, sslmode='require') def kitchen_reminder(): # fetch current status status = d...
23.964912
82
0.732064
0
0
0
0
0
0
0
0
408
0.298682
12f18b28f2f44fef548bff40a3b625b2e4be86b9
2,940
py
Python
ucf_sub_catkin_ros/src/sub_states/src/qual/test.py
RoboticsClubatUCF/RoboSub
47304c620f963a8762db57a7ed248d1df90190fb
[ "MIT" ]
null
null
null
ucf_sub_catkin_ros/src/sub_states/src/qual/test.py
RoboticsClubatUCF/RoboSub
47304c620f963a8762db57a7ed248d1df90190fb
[ "MIT" ]
19
2016-09-16T19:52:57.000Z
2018-04-14T18:16:17.000Z
ucf_sub_catkin_ros/src/sub_states/src/qual/test.py
RoboticsClubatUCF/RoboSub
47304c620f963a8762db57a7ed248d1df90190fb
[ "MIT" ]
8
2016-01-06T20:56:45.000Z
2017-02-26T02:49:17.000Z
#!/usr/bin/env python import rospy import smach import gate import pole class SubStates: def __init__(self): rospy.loginfo("State Machine has started.") self.gate = smach.StateMachine(outcomes=['preempted', 'POLE', 'GATE']) self.pole = smach.StateMachine(outc...
49.830508
116
0.343197
2,731
0.928912
0
0
0
0
0
0
533
0.181293
12f1cb8ec52078b29ac8f9e2d9706191446e64ae
3,271
py
Python
networkapi/plugins/SDN/ODL/tests/test_send_flows_with_tcp_flags.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/plugins/SDN/ODL/tests/test_send_flows_with_tcp_flags.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/plugins/SDN/ODL/tests/test_send_flows_with_tcp_flags.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
from networkapi.test.test_case import NetworkApiTestCase from networkapi.plugins.SDN.ODL.flows.acl import AclFlowBuilder class TestSendFlowsWithTCPFlags(NetworkApiTestCase): """ Class to test flows that have tcp flags on it """ def test_flow_with_ack_flag(self): """ Try to send a flow with ACK flag ...
33.377551
75
0.496484
3,146
0.961785
0
0
0
0
0
0
971
0.296851
12f2139184aea177b546923cc78d7b43a26b2e26
4,940
py
Python
Old/OpenCV Scripts/red_filtered_detector.py
multirotorsociety/SAFMC-19-D2-Autonomous-Drone
fd9f0fae5d7cbf618b327224e06a7f459612b4ca
[ "MIT" ]
6
2019-04-01T02:38:40.000Z
2021-06-05T18:23:06.000Z
Old/OpenCV Scripts/red_filtered_detector.py
multirotorsociety/SAFMC-19-D2-Autonomous-Drone
fd9f0fae5d7cbf618b327224e06a7f459612b4ca
[ "MIT" ]
null
null
null
Old/OpenCV Scripts/red_filtered_detector.py
multirotorsociety/SAFMC-19-D2-Autonomous-Drone
fd9f0fae5d7cbf618b327224e06a7f459612b4ca
[ "MIT" ]
1
2019-09-01T08:58:28.000Z
2019-09-01T08:58:28.000Z
from picamera.array import PiRGBArray from picamera import PiCamera import cv2 import numpy as np import time from fractions import Fraction from PIL import Image #cap = cv2.VideoCapture(0) camera = PiCamera() camera.resolution = (426, 240) camera.framerate = 24 camera.exposure_mode = 'off' camera.exposure_compensa...
33.154362
109
0.618421
0
0
0
0
0
0
0
0
2,573
0.52085
12f21abc71f1092fae63b143257827c5624eebdf
2,965
py
Python
setup.py
Maven85/plugin.video.magenta-sport
e05eeea629295d79de7467d495eb0c20b3adb60b
[ "MIT" ]
null
null
null
setup.py
Maven85/plugin.video.magenta-sport
e05eeea629295d79de7467d495eb0c20b3adb60b
[ "MIT" ]
null
null
null
setup.py
Maven85/plugin.video.magenta-sport
e05eeea629295d79de7467d495eb0c20b3adb60b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Module: default # Author: asciidisco # Created on: 24.07.2017 # License: MIT https://goo.gl/WA1kby """Setup""" from __future__ import unicode_literals from os.path import abspath, dirname, join from re import search from sys import exit, version, version_info from setuptools import find_pack...
26.711712
73
0.551771
0
0
0
0
0
0
0
0
847
0.285666
12f2a17d10d6e7d8016a1adfcae38305fb8b1df9
2,386
py
Python
franka_lcas_experiments/script/load_model_rtp.py
arsh09/franka_ros_lcas
b6211125436849d5c7def8ad96a384cc34f2f121
[ "Apache-2.0" ]
2
2021-11-09T00:50:43.000Z
2021-11-15T09:50:47.000Z
franka_lcas_experiments/script/load_model_rtp.py
arsh09/franka_ros_lcas
b6211125436849d5c7def8ad96a384cc34f2f121
[ "Apache-2.0" ]
null
null
null
franka_lcas_experiments/script/load_model_rtp.py
arsh09/franka_ros_lcas
b6211125436849d5c7def8ad96a384cc34f2f121
[ "Apache-2.0" ]
1
2021-11-17T13:24:23.000Z
2021-11-17T13:24:23.000Z
import numpy as np import os, sys os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' from tensorflow.keras.models import Model import tensorflow as tf from PIL import Image from utils_rtp import ProMP class Predictor: def __init__(self, encoder_model_path, predictor_model_path): self.all_phi = self.promp_train(...
40.440678
138
0.690696
1,574
0.659681
0
0
0
0
0
0
510
0.213747
12f2a97e43141a9ad0fb868815aad72bb1ff0352
5,648
py
Python
sdv/tabular/ctgan.py
joanvaquer/SDV
83e4fdf0ff72e6c5b72cfc8c6ec9584dbd34de28
[ "MIT" ]
null
null
null
sdv/tabular/ctgan.py
joanvaquer/SDV
83e4fdf0ff72e6c5b72cfc8c6ec9584dbd34de28
[ "MIT" ]
null
null
null
sdv/tabular/ctgan.py
joanvaquer/SDV
83e4fdf0ff72e6c5b72cfc8c6ec9584dbd34de28
[ "MIT" ]
null
null
null
"""Wrapper around CTGAN model.""" from sdv.tabular.base import BaseTabularModel class CTGAN(BaseTabularModel): """Model wrapping ``CTGANSynthesizer`` model. Args: field_names (list[str]): List of names of the fields that need to be modeled and included in the generated output...
40.056738
97
0.599681
5,564
0.985127
0
0
0
0
0
0
3,672
0.650142
12f479c7b7668c843b94467ffeb73f441443785b
1,130
py
Python
cointrader/config.py
3con/cointrader
abb3d13d1105e11db0070a9052c45cb8a87f168c
[ "MIT" ]
103
2017-03-10T07:23:12.000Z
2021-08-24T17:39:22.000Z
cointrader/config.py
altfund/cointrader-1
abb3d13d1105e11db0070a9052c45cb8a87f168c
[ "MIT" ]
91
2017-03-11T06:23:09.000Z
2021-11-15T17:47:06.000Z
cointrader/config.py
fwolfst/cointrader
abb3d13d1105e11db0070a9052c45cb8a87f168c
[ "MIT" ]
36
2017-03-23T17:48:08.000Z
2020-02-21T23:42:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import logging import logging.config if (sys.version_info > (3, 0)): # Python 3 code in this block import configparser else: # Python 2 code in this block import ConfigParser as configparser DEFAULT_CONFIG = ".cointrader.ini" def get_...
25.681818
64
0.642478
716
0.633628
0
0
178
0.157522
0
0
195
0.172566
12f51cb5ac4eefb8f57e6dbd0a326e1ca9a0b225
712
py
Python
src/snakeoil/descriptors.py
Arusekk/snakeoil
aad28a50118223766e5308452b369f2c72b971b2
[ "BSD-3-Clause" ]
null
null
null
src/snakeoil/descriptors.py
Arusekk/snakeoil
aad28a50118223766e5308452b369f2c72b971b2
[ "BSD-3-Clause" ]
null
null
null
src/snakeoil/descriptors.py
Arusekk/snakeoil
aad28a50118223766e5308452b369f2c72b971b2
[ "BSD-3-Clause" ]
null
null
null
"""Classes implementing the descriptor protocol.""" __all__ = ("classproperty",) class classproperty: """Like the builtin :py:func:`property` but takes a single classmethod. Essentially, it allows you to use a property on a class itself- not just on its instances. Used like this: >>> from sna...
20.342857
75
0.605337
627
0.880618
0
0
0
0
0
0
530
0.744382