hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
d55a64e39f01115183984ed8b210a03774026db4
36,353
py
Python
armi/reactor/converters/tests/test_axialExpansionChanger.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
armi/reactor/converters/tests/test_axialExpansionChanger.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
armi/reactor/converters/tests/test_axialExpansionChanger.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
38.145855
120
0.584573
d55a91d2cd5cf6394fd40746e2decf8cded3d0eb
15,705
py
Python
discord/ext/fancyhelp/__init__.py
redParrot17/discord-ext-fancy-help
babe1db80fc16151ddff1b96372d88b44f93d756
[ "MIT" ]
5
2020-10-05T13:11:18.000Z
2021-08-30T14:29:47.000Z
discord/ext/fancyhelp/__init__.py
redParrot17/discord-ext-fancy-help
babe1db80fc16151ddff1b96372d88b44f93d756
[ "MIT" ]
null
null
null
discord/ext/fancyhelp/__init__.py
redParrot17/discord-ext-fancy-help
babe1db80fc16151ddff1b96372d88b44f93d756
[ "MIT" ]
2
2020-10-05T13:11:13.000Z
2020-11-04T13:21:16.000Z
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2020 redParrot17 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 u...
39.759494
108
0.626743
d55aa01c43a2819f8e8e63ae1eecb44e80cf2e20
714
py
Python
heuristics/wallhug_heuristic.py
TeamJumpstart/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
10
2021-04-18T17:54:02.000Z
2021-07-26T19:58:41.000Z
heuristics/wallhug_heuristic.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-21T15:13:41.000Z
2021-04-21T15:13:41.000Z
heuristics/wallhug_heuristic.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-20T09:42:50.000Z
2021-04-20T09:42:50.000Z
from heuristics.heuristic import Heuristic class WallhugHeuristic(Heuristic): """Returns a constant number.""" def score(self, cells, player, opponents, rounds, deadline): """Return the constant number.""" # directions - relative to player direction forward = player.direction l...
32.454545
67
0.640056
d55aa2185c1d978e4be79e34bc9166cdffdf765c
34
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Mutators/AddTowerToTowerMutator/add_tower_to_tower_mutator.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Mutators/AddTowerToTowerMutator/add_tower_to_tower_mutator.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Mutators/AddTowerToTowerMutator/add_tower_to_tower_mutator.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class AddTowerToTowerMutator: pass
34
34
0.911765
d55aa63dd692813fff028321983b78a574203a2c
13,746
py
Python
gaphor/diagram/propertypages.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/propertypages.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/propertypages.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
""" Adapters for the Property Editor. To register property pages implemented in this module, it is imported in gaphor.adapter package. # TODO: make all labels align top-left # Add hidden columns for list stores where i can put the actual object # being edited. TODO: - stereotypes - association / association ends. ...
27.882353
85
0.621854
d55aa95b803398d7dac51d108f580f256aff4acd
804
py
Python
source/_static/lecture_specific/markov_perf/duopoly_mpe.py
bktaha/lecture-python
b13db12120b977d1c661c9a68c5b8ddfc1b6dc89
[ "BSD-3-Clause" ]
194
2018-09-04T21:47:47.000Z
2022-03-18T18:10:42.000Z
source/_static/lecture_specific/markov_perf/duopoly_mpe.py
bktaha/lecture-python
b13db12120b977d1c661c9a68c5b8ddfc1b6dc89
[ "BSD-3-Clause" ]
553
2018-08-28T06:01:58.000Z
2020-04-23T06:29:47.000Z
source/_static/lecture_specific/markov_perf/duopoly_mpe.py
bktaha/lecture-python
b13db12120b977d1c661c9a68c5b8ddfc1b6dc89
[ "BSD-3-Clause" ]
88
2018-08-22T21:47:35.000Z
2021-12-30T09:05:12.000Z
import numpy as np import quantecon as qe # Parameters a0 = 10.0 a1 = 2.0 β = 0.96 γ = 12.0 # In LQ form A = np.eye(3) B1 = np.array([[0.], [1.], [0.]]) B2 = np.array([[0.], [0.], [1.]]) R1 = [[ 0., -a0 / 2, 0.], [-a0 / 2., a1, a1 / 2.], [ 0, a1 / 2., 0....
21.72973
51
0.384328
d55acc41307c333b238b89cf4d0a8f62a3fba50a
773
py
Python
solutions/guess-number-higher-or-lower.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
solutions/guess-number-higher-or-lower.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
1
2022-02-22T15:42:54.000Z
2022-02-25T00:10:04.000Z
solutions/guess-number-higher-or-lower.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
# Leetcode 374. Guess Number Higher or Lower # # Link: https://leetcode.com/problems/guess-number-higher-or-lower/ # Difficulty: Easy # The guess API is already defined for you. # @param num, your guess # @return -1 if num is higher than the picked number # 1 if num is lower than the picked number # ...
24.935484
67
0.586028
d55ad6bc31dc1c6f3447df0cef989eb49dd1f214
7,499
py
Python
aea/test_tools/generic.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
aea/test_tools/generic.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
aea/test_tools/generic.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
36.580488
123
0.648353
d55add7f7da4462d388787b8d0ad79b49298f2fe
35,753
py
Python
python/cudf/cudf/tests/test_groupby.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/tests/test_groupby.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/tests/test_groupby.py
brycelelbach/cudf
555b91ae90e7900d2ebcd0d630de8f32dfd375a6
[ "Apache-2.0" ]
1
2020-09-24T04:31:05.000Z
2020-09-24T04:31:05.000Z
# Copyright (c) 2018, NVIDIA CORPORATION. import itertools import numpy as np import pandas as pd import pytest from numpy.testing import assert_array_equal import cudf from cudf.core import DataFrame, Series from cudf.core._compat import PANDAS_GE_110 from cudf.tests.utils import assert_eq _now = np.datetime64("now...
28.196372
79
0.543926
d55af533fc0ad4f34a962596135c6fe14d0f158f
2,996
py
Python
.leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.4.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.4.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/105.construct-binary-tree-from-preorder-and-inorder-traversal.4.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=105 lang=python3 # # [105] Construct Binary Tree from Preorder and Inorder Traversal # # https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/description/ # # algorithms # Medium (52.61%) # Likes: 5231 # Dislikes: 131 # Total Accepted: 496.1K # Total Submis...
23.968
102
0.58478
d55af6e4fa8938786725e40650d79b275f4a9411
6,105
py
Python
pypykatz/commons/win_datatypes.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
1
2020-01-11T20:41:01.000Z
2020-01-11T20:41:01.000Z
pypykatz/commons/win_datatypes.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
null
null
null
pypykatz/commons/win_datatypes.py
retr0-13/pypykatz
0d689fbd819c52ca46709737b2c063f40e302832
[ "MIT" ]
2
2019-08-04T23:16:05.000Z
2019-12-05T10:41:50.000Z
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import io import enum import logging from minidump.win_datatypes import * from pypykatz.commons.common import * class LARGE_INTEGER: def __init__(self, reader): self.LowPart = DWORD(reader).value self.HighPart = LONG(reader).value self.QuadPart = LONG...
28.79717
108
0.722686
d55b28e0049f0ab64fb64ad10aa1631919f639be
5,548
py
Python
syndicate/core/resources/sqs_resource.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
1
2020-08-29T16:38:50.000Z
2020-08-29T16:38:50.000Z
syndicate/core/resources/sqs_resource.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
syndicate/core/resources/sqs_resource.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 EPAM Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
40.202899
76
0.666907
d55b53bf09dfe385c3cdb7c5f739a9932f8e2910
1,134
py
Python
pw_protobuf/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
pw_protobuf/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
1
2021-06-18T13:54:41.000Z
2021-06-18T13:54:41.000Z
pw_protobuf/py/setup.py
antmicro/pigweed
a308c3354a6131425e3f484f07f05a1813948860
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.4
79
0.716049
d55ba61b1ac2967d911320a5ee8a5c7e2ec26ce9
1,398
py
Python
asyncpraw/models/reddit/mixins/savable.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
asyncpraw/models/reddit/mixins/savable.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
asyncpraw/models/reddit/mixins/savable.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
"""Provide the SavableMixin class.""" from typing import Optional from ....const import API_PATH class SavableMixin: """Interface for RedditBase classes that can be saved.""" async def save(self, category: Optional[str] = None): """Save the object. :param category: (Premium) The category to...
25.888889
86
0.579399
d55ba8bf72241a8bc8df312837957d6d789afb31
5,566
py
Python
SimpleGP/forest.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
2
2015-03-18T17:26:20.000Z
2019-03-18T17:28:16.000Z
SimpleGP/forest.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
1
2015-04-19T17:02:49.000Z
2015-07-21T18:48:34.000Z
SimpleGP/forest.py
mgraffg/simplegp
7e4639e3ac76571a4e67669cad6e8e775b3fc345
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mario Graff Guerrero # 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 wri...
40.043165
78
0.562702
d55bb2b55d340cac9af8483256b851fe35452bbd
775
py
Python
main/migrations/0044_okthessmeetup.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
5
2017-08-25T16:37:18.000Z
2019-02-25T18:26:37.000Z
main/migrations/0044_okthessmeetup.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
43
2017-01-22T23:58:43.000Z
2018-05-17T21:35:16.000Z
main/migrations/0044_okthessmeetup.py
OKThess/website
3d5a2a125bfb48179937b058aa7180b751eb2b43
[ "MIT" ]
2
2017-11-05T08:36:02.000Z
2017-12-22T17:37:19.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-16 16:08 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0043_about'), ] operations = [ migrations.Cr...
28.703704
114
0.579355
d55bbdbdbf156d4a8d1d380c8e609c0b10c190cd
626
py
Python
polaris_client/consts.py
paul-rogers/polaris-client
513a677457fa443c751434f13ba7f8d085c3d4e7
[ "Apache-2.0" ]
2
2022-03-07T16:54:39.000Z
2022-03-16T19:14:53.000Z
polaris_client/consts.py
paul-rogers/polaris-client
513a677457fa443c751434f13ba7f8d085c3d4e7
[ "Apache-2.0" ]
null
null
null
polaris_client/consts.py
paul-rogers/polaris-client
513a677457fa443c751434f13ba7f8d085c3d4e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Paul Rogers # # 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, ...
39.125
74
0.763578
d55bd7ea0370f3b321a69c367bee96452dc19450
259
py
Python
friday/plugins/weather.py
hoojaoh/Friday
586819a5500aa45144146c19693b8cea3adce520
[ "MIT" ]
102
2017-01-14T08:22:47.000Z
2022-01-26T07:42:22.000Z
friday/plugins/weather.py
tech-srinath/Friday
586819a5500aa45144146c19693b8cea3adce520
[ "MIT" ]
399
2017-01-16T05:29:21.000Z
2022-03-28T11:46:19.000Z
friday/plugins/weather.py
tech-srinath/Friday
586819a5500aa45144146c19693b8cea3adce520
[ "MIT" ]
34
2017-01-15T18:53:08.000Z
2021-11-08T12:04:16.000Z
from yapsy.IPlugin import IPlugin class Weather(IPlugin): def can_perform(self, friday, request): return 'action' in request['result'] and 'weather' in request['result']['action'] def perform(self, friday, request): return "Dingus"
25.9
89
0.679537
d55c1182eddadbde6798e24d914d421dc236ccca
386
py
Python
pkg/executor/http/_http_executor.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/executor/http/_http_executor.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/executor/http/_http_executor.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
from pkg.command._http_cmd import HttpCommand from pkg.executor._executor import Executor from pkg.executor.http.command._http_cmd_executor import HttpCommandExecutor class HttpExecutor(Executor): def execute(self, cmd: HttpCommand): http_command = HttpCommand(cmd) http_cmd_executor = HttpCommand...
32.166667
76
0.787565
d55c223b44b999bea7c84c4afc35547af22f10ee
6,859
py
Python
appengine/findit/findit_v2/services/projects.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/projects.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/findit_v2/services/projects.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This module is for the configuration of supported projects.""" import logging import re from common import constants from findit_v2.services.chromeos_ap...
36.291005
80
0.586237
d55c295eb8f4b8fc30ac2ed25e6437c90096ecb9
1,036
py
Python
examples/accessor/plot_hist_functionality.py
adamancer/imagery_accessor
9f527891d63b250c1e49dc87b6ba91e90642545d
[ "MIT" ]
null
null
null
examples/accessor/plot_hist_functionality.py
adamancer/imagery_accessor
9f527891d63b250c1e49dc87b6ba91e90642545d
[ "MIT" ]
null
null
null
examples/accessor/plot_hist_functionality.py
adamancer/imagery_accessor
9f527891d63b250c1e49dc87b6ba91e90642545d
[ "MIT" ]
null
null
null
"""Calculate and plot histograms Adapted from https://github.com/earthlab/earthpy/blob/main/examples/plot_hist_functionality.py. The original file contains more detail about the functions and calculations shown here. """ import os import matplotlib.pyplot as plt import earthpy as et import imagery_accessor as ixr #...
22.521739
82
0.741313
d55c3a7733a66e5074dd2eb8e9a7f4c996529f34
2,511
py
Python
leetcode_python/Tree/flip-binary-tree-to-match-preorder-traversal.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Tree/flip-binary-tree-to-match-preorder-traversal.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Tree/flip-binary-tree-to-match-preorder-traversal.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://buptwc.com/2019/01/09/Leetcode-971-Flip-Binary-Tree-to-Match-Preorder-Traversal/ class Solution(object): def flipMatchVoyage(self, root, voyage): self.index = 0 res = [] def dfs(root): if not root: return True if root.val != voyage[self.index]: r...
31.78481
97
0.550777
d55c53af2cf00069a513641a3ed95507d1a1f471
321
py
Python
TAREA_FINAL_MANEJO_DE_DATOS/Tarea_examen_3.py
jrtorresb/TAREAS_FC
e997308468b0aea6858f285eba7d9ea607bfad00
[ "MIT" ]
null
null
null
TAREA_FINAL_MANEJO_DE_DATOS/Tarea_examen_3.py
jrtorresb/TAREAS_FC
e997308468b0aea6858f285eba7d9ea607bfad00
[ "MIT" ]
null
null
null
TAREA_FINAL_MANEJO_DE_DATOS/Tarea_examen_3.py
jrtorresb/TAREAS_FC
e997308468b0aea6858f285eba7d9ea607bfad00
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import pandas as pd def Peliculas_JSON(file_1): """ input: ubicacion del archivo txt Convierte el archivo txt a json """ df = pd.read_table(file_1, sep="|") df.head() df.to_json("peliculas.json",orient="records") Peliculas_JSON("peliculas.txt") ...
13.956522
49
0.64486
d55c53ffa0ccbd5829dc3a4096165221a5c6e6c6
1,724
py
Python
model.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
model.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
model.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
from input_data import InputData from tensorflow.contrib.estimator import RNNClassifier import tensorflow as tf import tensorflow.contrib.feature_column as contrib_feature_column import tensorflow.feature_column as feature_column import os class Model: # Sequence length that will be feeded to the network SEQU...
38.311111
116
0.695476
d55c57d386d2a1e0ea80e4aaf296c63e5e2523b9
19,814
py
Python
src/spnego/_ntlm_raw/crypto.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
25
2020-05-23T10:17:46.000Z
2022-02-21T16:52:02.000Z
src/spnego/_ntlm_raw/crypto.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
33
2020-07-04T00:05:55.000Z
2022-03-15T23:20:29.000Z
src/spnego/_ntlm_raw/crypto.py
ghettorce/pyspnego
5376adb1b3fb7cfccd00be2317e85b7150f177a0
[ "MIT" ]
7
2020-08-27T03:44:46.000Z
2022-01-21T04:50:05.000Z
# Copyright: (c) 2020, Jordan Borean (@jborean93) <jborean93@gmail.com> # MIT License (see LICENSE or https://opensource.org/licenses/MIT) """NTLM Cryptographic Operations Implements the various cryptographic operations that are defined in `MS-NLMP Crypto Operations`_. Some crypto operations aren't implemented due to...
35.830018
119
0.659281
d55c739aeb1587f8d80938b983e8c86ce280ed74
718
py
Python
moneydog/lib/decorators.py
Falldog/moneydog
86e7cab1c0b35f07d1fe42e699e1159f57f1bef5
[ "Apache-2.0" ]
null
null
null
moneydog/lib/decorators.py
Falldog/moneydog
86e7cab1c0b35f07d1fe42e699e1159f57f1bef5
[ "Apache-2.0" ]
null
null
null
moneydog/lib/decorators.py
Falldog/moneydog
86e7cab1c0b35f07d1fe42e699e1159f57f1bef5
[ "Apache-2.0" ]
null
null
null
from google.appengine.api import users from functools import wraps import flask from flask import abort, redirect, url_for from datetime import date def login_required(func, redirect_url='/'): @wraps(func) def new_func(*argv, **argd): user = users.get_current_user() if user: retur...
23.16129
65
0.647632
d55c88b109544dbaed7c2b6bffc17d4512129649
13,272
py
Python
views/crafting.py
euloggeradmin/LootNanny
ae421fcc8d67276b6f081feb1788d89727d9da38
[ "MIT" ]
9
2021-11-23T04:11:00.000Z
2022-03-28T17:36:27.000Z
views/crafting.py
euloggeradmin/LootNanny
ae421fcc8d67276b6f081feb1788d89727d9da38
[ "MIT" ]
2
2021-12-09T13:53:29.000Z
2021-12-11T03:38:49.000Z
views/crafting.py
euloggeradmin/LootNanny
ae421fcc8d67276b6f081feb1788d89727d9da38
[ "MIT" ]
3
2022-01-04T00:03:28.000Z
2022-02-26T05:08:00.000Z
import os import json import webbrowser import time from decimal import Decimal from PyQt5.QtWidgets import QFileDialog, QTextEdit, QHBoxLayout, QFormLayout, QHeaderView, QTabWidget, QCheckBox, QGridLayout, QComboBox, QLineEdit, QLabel, QApplication, QWidget, QPushButton, QVBoxLayout, QTableWidget, QTableWidgetItem f...
45.765517
236
0.671263
d55c97cc314d6b2206cd78c6a52bb0581ec4be45
363
py
Python
utils/prettyconcat.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
2
2021-07-05T12:00:39.000Z
2021-07-05T12:00:49.000Z
utils/prettyconcat.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
null
null
null
utils/prettyconcat.py
mallusrgreatv2/PyHDISCORD
e414976441cbdb3a57b2c545ab164810bebe2e4b
[ "MIT" ]
null
null
null
def pretty_concat(strings, single_suffix='', multi_suffix=''): """Concatenates things in a pretty way""" if len(strings) == 1: return strings[0] + single_suffix elif len(strings) == 2: return '{} and {}{}'.format(*strings, multi_suffix) else: return '{}, and {}{}'.format(', '.joi...
45.375
88
0.600551
d55cc69b0573f7146e435f0afb3eb81d03411fc5
8,063
py
Python
sshkernel/ssh_wrapper_plumbum.py
flab2nii/sshkernel
0088fd92877f4c2d6933feb81fc0e85a414bc0a1
[ "BSD-3-Clause" ]
null
null
null
sshkernel/ssh_wrapper_plumbum.py
flab2nii/sshkernel
0088fd92877f4c2d6933feb81fc0e85a414bc0a1
[ "BSD-3-Clause" ]
null
null
null
sshkernel/ssh_wrapper_plumbum.py
flab2nii/sshkernel
0088fd92877f4c2d6933feb81fc0e85a414bc0a1
[ "BSD-3-Clause" ]
null
null
null
import os import time import re import paramiko from plumbum.machines.paramiko_machine import ParamikoMachine import yaml from .ssh_wrapper import SSHWrapper class SSHWrapperPlumbum(SSHWrapper): """ A plumbum remote machine wrapper SSHWrapperPlumbum wraps ssh client. Attributes: * ._remote : ...
27.42517
98
0.619869
d55cec0eb2eeadfdea6a79b82cd1ded8bd655531
2,600
py
Python
models/PartialConvTranspose1d.py
mihamerstan/lidar_ordered_points
ca0aca20cbb5c1434529d4722ee1125b095e37e1
[ "MIT" ]
1
2021-05-17T19:08:05.000Z
2021-05-17T19:08:05.000Z
models/PartialConvTranspose1d.py
mihamerstan/lidar_ordered_points
ca0aca20cbb5c1434529d4722ee1125b095e37e1
[ "MIT" ]
null
null
null
models/PartialConvTranspose1d.py
mihamerstan/lidar_ordered_points
ca0aca20cbb5c1434529d4722ee1125b095e37e1
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch import nn, cuda from torch.autograd import Variable class PartialConvTranspose1d(nn.ConvTranspose1d): def __init__(self, *args, **kwargs): super(PartialConvTranspose1d, self).__init__(*args, **kwargs) self.weight_maskUpdater = torch.ones(sel...
45.614035
171
0.615769
d55cf9c6248a7ea831bc1484f3dd203b1688959f
38,606
py
Python
sdks/python/appcenter_sdk/api/export_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/api/export_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/api/export_api.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import re # noqa: F401 # pytho...
46.014303
152
0.642076
d55d04ed3c8e28281a48ba02fa56d6de92d9e729
2,153
py
Python
reveries/scripts/post_task/publish_by_task.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
reveries/scripts/post_task/publish_by_task.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
reveries/scripts/post_task/publish_by_task.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import os import logging import subprocess log = logging.getLogger("APTS.publish_by_task") def __main__(*args): """Run publish on task completed This script will run publish on any task completed, if the subset of this task already been published, run file integration. (NOTE) Post task script will...
25.329412
77
0.606595
d55d0c6b41d6101cea07965156c6c5f0f2a20bbe
4,628
py
Python
rumalchemy/tests/test_repository.py
nothink/RumAlchemy
4709f430d04b0dac382930b431dc3bd781ae4d20
[ "MIT" ]
null
null
null
rumalchemy/tests/test_repository.py
nothink/RumAlchemy
4709f430d04b0dac382930b431dc3bd781ae4d20
[ "MIT" ]
null
null
null
rumalchemy/tests/test_repository.py
nothink/RumAlchemy
4709f430d04b0dac382930b431dc3bd781ae4d20
[ "MIT" ]
1
2020-03-20T06:30:17.000Z
2020-03-20T06:30:17.000Z
import os from unittest import TestCase from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker from rumalchemy.tests import model from rumalchemy import SARepositoryFactory from rum import transaction, query engine = create_engine(os.environ.get('DBURL','sqlite:///:memory:')) cl...
32.822695
78
0.628781
d55d1dcffe880e702ab84ff57cb97000e6c2d59c
3,064
py
Python
car/views.py
orsandra89/test-car-api
9d4a0417d80b3922f760ab81428b04ab1cff67b6
[ "MIT" ]
1
2021-12-12T15:14:48.000Z
2021-12-12T15:14:48.000Z
car/views.py
orsandra89/test-car-api
9d4a0417d80b3922f760ab81428b04ab1cff67b6
[ "MIT" ]
null
null
null
car/views.py
orsandra89/test-car-api
9d4a0417d80b3922f760ab81428b04ab1cff67b6
[ "MIT" ]
null
null
null
from rest_framework import viewsets from rest_framework import authentication from rest_framework.authentication import TokenAuthentication from rest_framework.decorators import authentication_classes, permission_classes from rest_framework.permissions import IsAuthenticated from core.models import Carbrand, Carmodel,...
38.3
80
0.720627
d55d7577ffe6dba5ac6809d002a1163518ec20f0
4,999
py
Python
QA/tools/utils.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
13
2020-05-09T07:19:15.000Z
2021-11-22T08:30:23.000Z
QA/tools/utils.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
null
null
null
QA/tools/utils.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
5
2020-07-13T12:19:22.000Z
2021-01-27T08:32:29.000Z
import collections import os import re from glob import glob import tensorflow as tf import tensorflow.contrib.slim as slim import torch def check_args(args): args.setting_file = os.path.join(args.checkpoint_dir, args.setting_file) args.log_file = os.path.join(args.checkpoint_dir, args.log_file) os.maked...
34.006803
117
0.634127
d55d80ac626d7fdca0620f19af557638b5352b9a
1,653
py
Python
utils.py
AMGAS14/Sudoku-Udacity-P1
505e55a11a29b414ae06ae930de4e1579725ab81
[ "MIT" ]
1
2020-01-21T18:37:37.000Z
2020-01-21T18:37:37.000Z
utils.py
AMGAS14/Sudoku-Udacity-P1
505e55a11a29b414ae06ae930de4e1579725ab81
[ "MIT" ]
null
null
null
utils.py
AMGAS14/Sudoku-Udacity-P1
505e55a11a29b414ae06ae930de4e1579725ab81
[ "MIT" ]
null
null
null
rows = 'ABCDEFGHI' cols = '123456789' def cross(a, b): return [s+t for s in a for t in b] boxes = cross(rows, cols) row_units = [cross(r, cols) for r in rows] column_units = [cross(rows, c) for c in cols] square_units = [cross(rs, cs) for rs in ('ABC','DEF','GHI') for cs in ('123','456','789')] unitlist = row_u...
30.611111
101
0.597096
d55d8a3181d06c1281bd9c8e3490a2b2611e7a29
333
py
Python
dvol_python/__init__.py
ClusterHQ/dvol
adf6c49bbf74d26fbc802a3cdd02ee47e18ad934
[ "Apache-2.0" ]
276
2015-11-03T23:14:11.000Z
2021-11-08T11:05:57.000Z
dvol_python/__init__.py
ClusterHQ/dvol
adf6c49bbf74d26fbc802a3cdd02ee47e18ad934
[ "Apache-2.0" ]
62
2015-11-12T02:02:14.000Z
2022-02-02T21:10:05.000Z
dvol_python/__init__.py
ClusterHQ/dvol
adf6c49bbf74d26fbc802a3cdd02ee47e18ad934
[ "Apache-2.0" ]
19
2015-11-14T08:17:14.000Z
2017-07-19T13:32:57.000Z
import os from hypothesis import settings, Verbosity settings.register_profile("ci", settings(max_examples=100)) settings.register_profile("dev", settings(max_examples=5)) settings.register_profile("debug", settings(max_examples=10, verbosity=Verbosity.verbose)) settings.load_profile(os.environ.get(u'HYPOTHESIS_PROFI...
37
90
0.816817
d55d8e2fee768246b7d3d8b193eb1c0659eba87d
491
py
Python
scripts/get_data_script.py
BrandonHoeft/chicovidtracker
6a1b45f012cdadea6f6168e4fac97532a7cfbb14
[ "MIT" ]
null
null
null
scripts/get_data_script.py
BrandonHoeft/chicovidtracker
6a1b45f012cdadea6f6168e4fac97532a7cfbb14
[ "MIT" ]
null
null
null
scripts/get_data_script.py
BrandonHoeft/chicovidtracker
6a1b45f012cdadea6f6168e4fac97532a7cfbb14
[ "MIT" ]
null
null
null
import pandas as pd from chicovidtracker.api_helpers import load_config, get_env_vars, build_url_from_config from chicovidtracker.get_api_data import get_api_json # Setup for an API call to Socrata Chicago Data Portal config = load_config("chicovidtracker/api_config.json") key_id, key_secret = get_env_vars(config['env...
44.636364
88
0.814664
d55d98b8c4fc9327730b40012d5dde5377e9210f
4,017
py
Python
scripts/create_visu_data/create_observation_preds.py
floriantoque/visu-spacetimeseries
dfa6ff0174c549e9099de5f91d181ed84bfb7d9d
[ "MIT" ]
null
null
null
scripts/create_visu_data/create_observation_preds.py
floriantoque/visu-spacetimeseries
dfa6ff0174c549e9099de5f91d181ed84bfb7d9d
[ "MIT" ]
null
null
null
scripts/create_visu_data/create_observation_preds.py
floriantoque/visu-spacetimeseries
dfa6ff0174c549e9099de5f91d181ed84bfb7d9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import sys sys.path.insert(0, '../') import utils from tqdm import tqdm import pandas as pd from datetime import datetime as dtlib import os import yaml import argparse from yaml import load, dump try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError:...
35.236842
135
0.627583
d55d9e7c7a16cfc334301faf64f35b95c1c3ecd6
1,028
py
Python
BinarySearch/template.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
BinarySearch/template.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
BinarySearch/template.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" Article : https://leetcode.com/discuss/general-discussion/786126/python-powerful-ultimate-binary-search-template-solved-many-problems we only need to modify three parts after copy-pasting this template, and never need to worry about corner cases and bugs in code any more: 1. Correctly initialize the boundary vari...
39.538462
133
0.709144
d55d9fb7dd2ddf9bdab403b6136ec0d9b1dd935d
13,169
py
Python
ellipsefits_unittest.py
perwin/ellipsefits
f573b1c7ab321ccacbbf5dec277ffaa03d72758f
[ "BSD-3-Clause" ]
6
2016-08-17T18:44:45.000Z
2020-06-06T16:18:58.000Z
ellipsefits_unittest.py
perwin/ellipsefits
f573b1c7ab321ccacbbf5dec277ffaa03d72758f
[ "BSD-3-Clause" ]
null
null
null
ellipsefits_unittest.py
perwin/ellipsefits
f573b1c7ab321ccacbbf5dec277ffaa03d72758f
[ "BSD-3-Clause" ]
1
2021-03-10T15:03:34.000Z
2021-03-10T15:03:34.000Z
#!/usr/bin/env python3 """Unit test for ellipsefits.py""" import unittest import numpy as np from scipy.interpolate import InterpolatedUnivariateSpline as Interp import ellipsefits_copy as ellipsefits # module to be tested # prepare input and reference data efitFileDir = '/Beleriand/data/sdss/n5831/' efitFile_...
42.073482
100
0.627079
d55db2f7170de0813347374bd6cd2813557c258c
4,334
py
Python
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_credits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_credits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_credits_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.777778
199
0.700046
d55dd86f46fb0ca9e88ab40f86addb54b13041eb
1,480
py
Python
image_reconstruction/reconstruction_utils/pre_processing/bandpass_filter.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
3
2021-09-07T10:44:48.000Z
2021-12-15T10:51:39.000Z
image_reconstruction/reconstruction_utils/pre_processing/bandpass_filter.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
12
2021-11-14T23:01:28.000Z
2022-03-29T19:08:13.000Z
image_reconstruction/reconstruction_utils/pre_processing/bandpass_filter.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
null
null
null
""" SPDX-FileCopyrightText: 2021 International Photoacoustic Standardisation Consortium (IPASC) SPDX-FileCopyrightText: 2021 Janek Gröhl SPDX-License-Identifier: MIT """ from scipy.signal import butter, lfilter def _butter_bandpass(sampling_rate, lowcut=None, highcut=None, order=5): """ Creates the b, a filt...
24.666667
91
0.627027
d55ddbefd22893ef58df5d1d0b768a398b8ec59e
4,237
py
Python
models/resnet.py
renebidart/pytorch-cifar
8f623299c25f7f219bab34bc7df41fe24232b1af
[ "MIT" ]
null
null
null
models/resnet.py
renebidart/pytorch-cifar
8f623299c25f7f219bab34bc7df41fe24232b1af
[ "MIT" ]
null
null
null
models/resnet.py
renebidart/pytorch-cifar
8f623299c25f7f219bab34bc7df41fe24232b1af
[ "MIT" ]
null
null
null
'''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): expansi...
32.844961
102
0.611282
d55deefd0ca445f95abfbcbb3334e1cd0b98d8fa
2,526
py
Python
stable_baselines/ppo1/mlp_policy.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/ppo1/mlp_policy.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
null
null
null
stable_baselines/ppo1/mlp_policy.py
jfsantos/stable-baselines
5bd4ffa98e364b9e8e8b4e64bc2d1be9b6e4897a
[ "MIT" ]
1
2019-12-25T16:45:54.000Z
2019-12-25T16:45:54.000Z
import tensorflow as tf from stable_baselines.common.input import observation_input from stable_baselines.common.distributions import make_proba_dist_type class BasePolicy(object): def __init__(self, placeholders=None): """ A base policy object for PPO1 :param placeholders: (dict) To fee...
31.974684
92
0.639351
d55df2e845b5fdcef6eba54938832a901c747d9b
26,248
py
Python
tf_seq2seq_losses/classic_ctc_loss.py
nicolas-raoul/tf_seq2seq_losses
984b21336788cc2fe54d655ab74373c3dbd89d5e
[ "Apache-2.0" ]
2
2022-02-14T18:29:27.000Z
2022-02-15T20:31:24.000Z
tf_seq2seq_losses/classic_ctc_loss.py
nicolas-raoul/tf_seq2seq_losses
984b21336788cc2fe54d655ab74373c3dbd89d5e
[ "Apache-2.0" ]
null
null
null
tf_seq2seq_losses/classic_ctc_loss.py
nicolas-raoul/tf_seq2seq_losses
984b21336788cc2fe54d655ab74373c3dbd89d5e
[ "Apache-2.0" ]
1
2022-02-16T08:56:14.000Z
2022-02-16T08:56:14.000Z
# Copyright 2021 Alexey Tochin # # 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...
46.871429
120
0.632505
d55e02acf4926cb075955fce9915431716c2d709
12,729
py
Python
cinder/volume/drivers/zfssa/restclient.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/zfssa/restclient.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/volume/drivers/zfssa/restclient.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. 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 ...
33.763926
79
0.562259
d55e0392f0f30e4452a8b66c230265cc66d4e0a9
2,364
py
Python
keepupthespaceenv/lib/python3.7/site-packages/tests/test_operator.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
null
null
null
keepupthespaceenv/lib/python3.7/site-packages/tests/test_operator.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
4
2021-06-08T21:10:15.000Z
2022-03-12T00:21:24.000Z
keepupthespaceenv/lib/python3.7/site-packages/tests/test_operator.py
olom70/pKeepUpThePace
9fd2cd1a6aa20a21bf41cbad854ab244089d8746
[ "MIT" ]
null
null
null
import unittest from unittest.mock import MagicMock, sentinel from typing import Callable from switch_case import Operator, _ as inst class TestOperator(unittest.TestCase): def test_eq(self): predicate = Operator() == 0 self.assertIsInstance(predicate, Callable) self.assertTrue(predicate...
29.924051
88
0.662437
d55e154c5e1952bc28c83ad7c89c6a0da0d4f760
7,021
py
Python
qe/net_layers.py
jiyeonkim127/PSI
5c525d5304fb756c9314ea3e225bbb180e521b9a
[ "Xnet", "X11" ]
null
null
null
qe/net_layers.py
jiyeonkim127/PSI
5c525d5304fb756c9314ea3e225bbb180e521b9a
[ "Xnet", "X11" ]
null
null
null
qe/net_layers.py
jiyeonkim127/PSI
5c525d5304fb756c9314ea3e225bbb180e521b9a
[ "Xnet", "X11" ]
null
null
null
import copy import torch # import dsntnn import torchvision import torch.nn as nn import sys, os class Swish(nn.Module): def __init__(self): ''' Init method. ''' super().__init__() # init the base class def forward(self, x): ''' Forward pass of the func...
28.54065
98
0.510469
d55e203b5a320fb34f4b86128dab0bafbcd37eec
2,668
py
Python
nozama-cloudsearch-data/nozama/cloudsearch/data/tests/test_backend_searching.py
iGamesInc/nozama-cloudsearch
2f3637a98d4ef594cec0273a9c9c4cd8a8aac375
[ "BSD-3-Clause" ]
null
null
null
nozama-cloudsearch-data/nozama/cloudsearch/data/tests/test_backend_searching.py
iGamesInc/nozama-cloudsearch
2f3637a98d4ef594cec0273a9c9c4cd8a8aac375
[ "BSD-3-Clause" ]
null
null
null
nozama-cloudsearch-data/nozama/cloudsearch/data/tests/test_backend_searching.py
iGamesInc/nozama-cloudsearch
2f3637a98d4ef594cec0273a9c9c4cd8a8aac375
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ """ from nozama.cloudsearch.data import document #from nozama.cloudsearch.data.db import get_es def test_search_with_no_content(logger, mongodb, elastic): """Test search an empty system doesn't raise exceptions. """ assert document.all() == [] results = document.search() ...
25.169811
71
0.502999
d55e35018a366fc5178c137f5395bbe831182b09
1,705
py
Python
test/test_depydent.py
vluzko/dependency-hell
1ddf366cee78647d6f4335500ee971282b16c4e3
[ "MIT" ]
null
null
null
test/test_depydent.py
vluzko/dependency-hell
1ddf366cee78647d6f4335500ee971282b16c4e3
[ "MIT" ]
10
2017-02-19T01:03:10.000Z
2017-02-23T02:12:51.000Z
test/test_depydent.py
vluzko/dependency-hell
1ddf366cee78647d6f4335500ee971282b16c4e3
[ "MIT" ]
null
null
null
from depydent import depydent import pytest def test_in_check(): @depydent.depydent() def in_range_check(a: int, b: float, c: float): """ Args: a: b: c: Returns: y: The sum of the inputs Requires: a in range(0, 1) ...
16.881188
51
0.469795
d55e431293fd33e0dcaaaf4d8757b968e1b800fd
200
py
Python
bridger/utils/settings.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
bridger/utils/settings.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
bridger/utils/settings.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
def historical_models(historical_app_models): models = list() for app in historical_app_models: models.extend(list(map(lambda model: f"{app[0]}.{model}", app[1]))) return models
25
75
0.68
d55e4d6703b6cca94069e7990e1533c72029b5db
595
py
Python
Ground_Station/GUI/Release/Tethered_Flight_1.0/globals.py
jswitt/FlightSoftware
af7e03976db98527b7072a8a35ba7b9769b59d4f
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2017-09-06T14:50:37.000Z
2020-02-03T20:54:23.000Z
Ground_Station/GUI/Release/Tethered_Flight_1.0/globals.py
jswitt/FlightSoftware
af7e03976db98527b7072a8a35ba7b9769b59d4f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
Ground_Station/GUI/Release/Tethered_Flight_1.0/globals.py
jswitt/FlightSoftware
af7e03976db98527b7072a8a35ba7b9769b59d4f
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2016-10-02T17:52:25.000Z
2021-03-19T22:26:10.000Z
############################################################# # # Property of Eagle Eye. # # Authors: # Jared Danner # ############################################################# # Serial port objects. Object class defined at bottom of communication.py. PORT_MC_LORA = None PORT_CRAFT_LORA = None PORT_C...
22.037037
75
0.598319
d55e92e079018f16c3c31669740f5025f128f4b5
5,146
bzl
Python
third_party/workspace.bzl
amusi/tensorboard
865bd1902395f13866f350de42601684974bd492
[ "Apache-2.0" ]
1
2021-03-21T15:38:27.000Z
2021-03-21T15:38:27.000Z
third_party/workspace.bzl
amusi/tensorboard
865bd1902395f13866f350de42601684974bd492
[ "Apache-2.0" ]
null
null
null
third_party/workspace.bzl
amusi/tensorboard
865bd1902395f13866f350de42601684974bd492
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
46.36036
136
0.719199
d55eb6ff0dc20398f0c1d6194f0de3a9670c0ed7
3,216
py
Python
experiments/fafb/curate_lists.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
2
2019-10-13T12:10:00.000Z
2021-10-09T11:49:43.000Z
experiments/fafb/curate_lists.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
null
null
null
experiments/fafb/curate_lists.py
neptunes5thmoon/simpleference
96c74187bd3d83f6f1e910e72e56f45d6cc8d5d9
[ "MIT" ]
1
2018-05-08T14:10:59.000Z
2018-05-08T14:10:59.000Z
import json import os class NamingScheme(object): def __init__(self, basename='/nrs/saalfeld/heinrichl/fafb_meta_copy2/', list_extension=''): self.basename = basename self.list_extension = list_extension self.full_list_name = 'list_gpu_%i'+list_extension+'.json' self.updated_list_n...
40.2
111
0.658893
d55eb725d040cbee7808a5aad5d334f47949704a
2,009
py
Python
src/nitpick/constants.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
251
2019-08-06T08:50:01.000Z
2022-03-26T13:49:19.000Z
src/nitpick/constants.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
429
2019-06-07T09:12:52.000Z
2022-03-31T23:29:26.000Z
src/nitpick/constants.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
18
2019-08-12T14:16:28.000Z
2022-03-15T13:54:26.000Z
"""Constants.""" import os import jmespath PROJECT_OWNER = "andreoliwa" PROJECT_NAME = "nitpick" FLAKE8_PREFIX = "NIP" CACHE_DIR_NAME = ".cache" TOML_EXTENSION = ".toml" DOT_NITPICK_TOML = f".nitpick{TOML_EXTENSION}" NITPICK_STYLE_TOML = f"nitpick-style{TOML_EXTENSION}" MERGED_STYLE_TOML = f"merged-style{TOML_EXTENSI...
25.75641
119
0.739671
d55eba155667c4a3974c666ccc2315e84cbc7f1d
2,069
py
Python
demo/threadpooltest.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
22
2015-06-01T03:31:00.000Z
2022-03-18T09:12:28.000Z
demo/threadpooltest.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
3
2017-03-24T19:16:02.000Z
2021-01-27T14:34:30.000Z
demo/threadpooltest.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
6
2015-07-10T15:28:08.000Z
2022-03-17T19:30:45.000Z
"""Demonstrate use of a threadpool.ThreadPool Hmm, unsure about this. Seem to be able to get a numpy call to multithread nicely (100% of a 2 core machine), but calls to my own C code (compiled from Cython code) doesn't multithread. This suggests that my Cython code is calling the interpreter somewhere/somehow and touc...
32.84127
124
0.688255
d55ede7f12fb18eaf754eba4cdecd5e863b6d5b9
3,118
py
Python
st2client/tests/unit/test_config_parser.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2client/tests/unit/test_config_parser.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2client/tests/unit/test_config_parser.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
38.02439
95
0.623477
d55f6cb8b3966fd45c2979e6829f36a0c2cdec64
2,274
py
Python
salo/events/github/audit/hook.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
32
2022-01-14T02:28:52.000Z
2022-03-27T16:17:43.000Z
salo/events/github/audit/hook.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
1
2022-02-28T04:14:47.000Z
2022-02-28T04:14:47.000Z
salo/events/github/audit/hook.py
isabella232/salo
8586096a2c2cc1b55ab554157ed1fe1cbce08827
[ "Apache-2.0" ]
2
2022-03-25T14:59:27.000Z
2022-03-27T16:53:43.000Z
#!/usr/bin/env python3 # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
33.441176
75
0.735268
d55f838844fda67a35f48f3688e63f3ce04f7891
2,950
py
Python
datasets/bert_dataset_collator.py
angelinaku/wsd_pipeline
f0dc3b2b0e7940a5a062381031535f099edcbf48
[ "Apache-2.0" ]
null
null
null
datasets/bert_dataset_collator.py
angelinaku/wsd_pipeline
f0dc3b2b0e7940a5a062381031535f099edcbf48
[ "Apache-2.0" ]
null
null
null
datasets/bert_dataset_collator.py
angelinaku/wsd_pipeline
f0dc3b2b0e7940a5a062381031535f099edcbf48
[ "Apache-2.0" ]
null
null
null
from typing import Tuple, List import torch from torch.utils.data import Dataset import pandas as pd import numpy as np from transformers import AutoTokenizer class BasicDataset(Dataset): def __init__(self, data: pd.DataFrame): """ Class to create pytorch dataset from initial data :param ...
27.830189
107
0.637288
d55f83cdb833737950e62fa8bfe3dbd572047ea4
293
py
Python
2021/1/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/1/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/1/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
with open("input.txt") as input_file: lines = input_file.readlines() numbers = [int(n) for n in lines] counter = 0 for n in range(len(numbers)-2): current_sum = sum(numbers[n:n+3]) next_sum = sum(numbers[n+1:n+4]) if next_sum > current_sum: counter += 1 print(counter)
26.636364
37
0.651877
d55f9852f75340198733f34871f448f2c04f7123
3,152
py
Python
eland/tests/setup_tests.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
null
null
null
eland/tests/setup_tests.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
1
2020-05-06T01:34:25.000Z
2020-05-06T01:34:25.000Z
eland/tests/setup_tests.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
1
2020-05-06T01:31:18.000Z
2020-05-06T01:31:18.000Z
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information import pandas as pd from elasticsearch import helpers from eland.tests import ( FLIGHTS_FILE_NAME, FLIGHTS_I...
30.019048
95
0.687817
d55f9cec0e17ebf595d9fd9f259c006f0186746f
5,268
py
Python
cinder/volume/flows/manager/manage_existing.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/flows/manager/manage_existing.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/flows/manager/manage_existing.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 IBM Corp. # # 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...
39.313433
79
0.609719
d55fd5c2e09939aafabd924cfb9878706cda1d4d
436
py
Python
docs/source/code_examples/tutorials/projects/adding_datasets_to_projects.py
encord-team/encord-client-python
665963c21d7a06e63dce105f9d29daf660617ad5
[ "Apache-2.0" ]
4
2022-02-09T00:31:18.000Z
2022-03-04T17:19:47.000Z
docs/source/code_examples/tutorials/projects/adding_datasets_to_projects.py
encord-team/encord-client-python
665963c21d7a06e63dce105f9d29daf660617ad5
[ "Apache-2.0" ]
21
2022-02-07T10:05:08.000Z
2022-03-16T19:52:58.000Z
docs/source/code_examples/tutorials/projects/adding_datasets_to_projects.py
encord-team/encord-client-python
665963c21d7a06e63dce105f9d29daf660617ad5
[ "Apache-2.0" ]
2
2022-02-21T13:55:54.000Z
2022-03-04T17:15:19.000Z
from encord.client import EncordClientProject from encord.user_client import EncordUserClient user_client: EncordUserClient = EncordUserClient.create_with_ssh_private_key( "<your_private_key>" ) project_client: EncordClientProject = user_client.get_project_client( "<project_hash>" ) success: bool = project_cl...
22.947368
77
0.731651
d55fde76fcb1385e74861b0b3da4d983a9d28d74
706
py
Python
SCRAPE/Lib/site-packages/twisted/conch/test/loopback.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/conch/test/loopback.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/conch/test/loopback.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Loopback helper used in test_ssh and test_recvline """ from twisted.protocols import loopback class LoopbackRelay(loopback.LoopbackRelay): clearCall = None def logPrefix(self): return f"LoopbackRelay({self.target.__class__....
24.344828
67
0.696884
d55fe0e2624e9160a8feb957ed239958d09e0c3e
1,254
py
Python
tests/utilities/mocks/mock_features.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
tests/utilities/mocks/mock_features.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
tests/utilities/mocks/mock_features.py
briandcho/unleash-client-python
ce7f69028265fd7aae774aa41144b4f5e078c91d
[ "MIT" ]
null
null
null
MOCK_FEATURE_RESPONSE = { "version": 1, "features": [ { "name": "testFlag", "description": "This is a test!", "enabled": True, "strategies": [ { "name": "default", "parameters": {} } ...
27.26087
71
0.338118
d55ff8d107bf9e7e6108609330ac6a29f9a72cfc
3,959
py
Python
Spacy/source2.7/spacy/cli/_messages.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Spacy/source2.7/spacy/cli/_messages.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Spacy/source2.7/spacy/cli/_messages.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
# coding: utf8 from __future__ import unicode_literals class Messages(object): M001 = ("Download successful but linking failed") M002 = ("Creating a shortcut link for 'en' didn't work (maybe you " "don't have admin permissions?), but you can still load the " "model via its full package ...
53.5
79
0.636019
d56009f156a0cfd5ffcd36a754c6bfd51e5b29fe
49,918
py
Python
kafka-gpb-tester/src/tr451_vomci_nbi_message_pb2.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
kafka-gpb-tester/src/tr451_vomci_nbi_message_pb2.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
kafka-gpb-tester/src/tr451_vomci_nbi_message_pb2.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tr451_vomci_nbi_message.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import refl...
39.398579
4,527
0.759906
d56027e20f4506ba670957f64ab9469d35d90a63
11,389
py
Python
homeassistant/config.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
4
2017-03-22T21:16:45.000Z
2021-06-11T05:08:14.000Z
homeassistant/config.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
null
null
null
homeassistant/config.py
mweinelt/home-assistant
cc0d0a38d7f24885e5146bd0826fa8ba3e2b39a1
[ "MIT" ]
4
2016-11-27T01:59:49.000Z
2018-03-11T07:17:25.000Z
"""Module to help with parsing and generating configuration files.""" import asyncio import logging import os import shutil from types import MappingProxyType # pylint: disable=unused-import from typing import Any, Tuple # NOQA import voluptuous as vol from homeassistant.const import ( CONF_LATITUDE, CONF_LONGI...
32.355114
79
0.665906
d5608895f71d5cbb9064a61d2e017f316d315f76
12,063
py
Python
ggsolver/logic/pl.py
abhibp1993/ggsolver
5d448b2b5e5763bdbe571f23a6504cdeca73b88e
[ "BSD-3-Clause" ]
null
null
null
ggsolver/logic/pl.py
abhibp1993/ggsolver
5d448b2b5e5763bdbe571f23a6504cdeca73b88e
[ "BSD-3-Clause" ]
null
null
null
ggsolver/logic/pl.py
abhibp1993/ggsolver
5d448b2b5e5763bdbe571f23a6504cdeca73b88e
[ "BSD-3-Clause" ]
null
null
null
""" Parser for Propositional Logic. Reference: ltlf2dfa (https://github.com/whitemech/LTLf2DFA) Note. The logic definitions used here may differ from LTLf2DFA library. """ import logging import networkx as nx from pathlib import Path from lark import Lark, Transformer, Visitor from lark.exceptions import UnexpectedCh...
31.744737
101
0.589323
d5608baea0c3392839b5fd089f4abc1bcbd310a8
45,518
py
Python
venv/Lib/site-packages/pyrogram/raw/types/__init__.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/__init__.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/__init__.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
57.111669
153
0.906235
d560a28b62a49b5530fbf4fa0052338960a98f2d
15,130
py
Python
azure/multiapi/storage/v2016_05_31/file/models.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2016_05_31/file/models.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2016_05_31/file/models.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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.apa...
38.110831
114
0.653073
d56124463a0793ffdfe2d1aae031cdf9edbf910a
3,631
py
Python
PyFuzzyBot/pysimbotlib/core/App.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
1
2022-01-24T13:03:29.000Z
2022-01-24T13:03:29.000Z
PyFuzzyBot/pysimbotlib/core/App.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
null
null
null
PyFuzzyBot/pysimbotlib/core/App.py
huak95/PySimBot-extended
cac233150ca5da87af19057d80d458a59c9d1ce9
[ "Apache-2.0" ]
null
null
null
from kivy.config import Config Config.set('graphics', 'resizable', '0') #0 being off 1 being on as in true/false Config.set('input', 'mouse', 'mouse,multitouch_on_demand') import os import platform from kivy.app import App from kivy.logger import Logger from kivy.lang import Builder from kivy.clock import Clock from k...
41.261364
105
0.607546
d56150de723cac8addc19f96f5239c4634b8fa11
726
py
Python
DDQN/replay_memory.py
D0miH/deep-learning-super-mario
51932b0eba3e13d29e8fab6ea5f7e9c6c109c848
[ "MIT" ]
9
2019-08-28T14:07:10.000Z
2021-12-24T18:58:01.000Z
DDQN/replay_memory.py
D0miH/deep-learning-super-mario
51932b0eba3e13d29e8fab6ea5f7e9c6c109c848
[ "MIT" ]
null
null
null
DDQN/replay_memory.py
D0miH/deep-learning-super-mario
51932b0eba3e13d29e8fab6ea5f7e9c6c109c848
[ "MIT" ]
1
2022-01-26T12:34:06.000Z
2022-01-26T12:34:06.000Z
import random class ReplayMemory(object): """Replay memory for learning.""" def __init__(self, capacity): self.capacity = capacity self.memory = [] self.position = 0 def push(self, state, action, reward, next_state, done): """Adds a transition to the replay memory.""" ...
30.25
78
0.625344
d5615ce268ce1ebb2fa8a5052d233e4e07926dd1
398
py
Python
test.py
dyabel/owod_attention
5b3e442237d7a0803b4a5d47f3412ef18f6e7c68
[ "Apache-2.0" ]
null
null
null
test.py
dyabel/owod_attention
5b3e442237d7a0803b4a5d47f3412ef18f6e7c68
[ "Apache-2.0" ]
null
null
null
test.py
dyabel/owod_attention
5b3e442237d7a0803b4a5d47f3412ef18f6e7c68
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/5/10 10:46 # @Author : duyu # @Email : abelazady@foxmail.com # @File : test.py.py # @Software: PyCharm from detectron2.utils.registry import Registry ROI_HEADS_REGISTRY = Registry("ROI_HEADS") @ROI_HEADS_REGISTRY.register() class test(object): def __init__(s...
24.875
47
0.640704
d5617c7dd643d0e2148b98c8be61163656227e72
20,136
py
Python
syndicate/core/handlers.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
syndicate/core/handlers.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
syndicate/core/handlers.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 EPAM Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
43.117773
81
0.653159
d5617e7cf69a38fca9c766beb30632d33b53d95e
5,112
py
Python
juneberry/config/experiment_outline.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
juneberry/config/experiment_outline.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
juneberry/config/experiment_outline.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # ========================================================================================================================================================== # Copyright 2021 Carnegie Mellon University. # # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIA...
49.153846
156
0.643975
d5618d8d1656c2989b5b63e3505aa92e82e6d885
3,170
py
Python
state_budgets/tamil_nadu_budgets_scraper.py
cbgaindia/scrappers
f8aab1d0f0a52007d8f0ab94e7ea38047e6e46a9
[ "MIT" ]
null
null
null
state_budgets/tamil_nadu_budgets_scraper.py
cbgaindia/scrappers
f8aab1d0f0a52007d8f0ab94e7ea38047e6e46a9
[ "MIT" ]
null
null
null
state_budgets/tamil_nadu_budgets_scraper.py
cbgaindia/scrappers
f8aab1d0f0a52007d8f0ab94e7ea38047e6e46a9
[ "MIT" ]
null
null
null
'Code for scrapping Tamil Budgets Data' import argparse from lxml import etree import logging from logging.config import fileConfig import os import re import simplejson as json from scrappers.scrapping_utils import ScrappingUtils import sys, traceback fileConfig('scrappers/logging_config.ini') logger = logging.getLo...
45.285714
130
0.601262
d561b02b035b049cc963afa233a89a15edce1444
1,107
py
Python
wasp_map/__init__.py
anthony-aylward/wasp_map
eadf96c44bb81e416c43ce2e33b7fbb164772cce
[ "MIT" ]
1
2021-02-16T19:50:26.000Z
2021-02-16T19:50:26.000Z
wasp_map/__init__.py
anthony-aylward/wasp_map
eadf96c44bb81e416c43ce2e33b7fbb164772cce
[ "MIT" ]
null
null
null
wasp_map/__init__.py
anthony-aylward/wasp_map
eadf96c44bb81e416c43ce2e33b7fbb164772cce
[ "MIT" ]
null
null
null
"""Utilites for the mapping pipeline from WASP Examples -------- wasp.write_positions_snps( '~/vcf_dir/chr{}.dose.vcf', '~/snp_dir/snps', het_only=True, r2=0.9, samples=args.vcf_sample, keep_filtered_vcfs=True ) wasp.find_intersecting_snps( '~/SAMPLE.sort.bam', '~/snp_dir', is_pai...
26.357143
78
0.719061
d561f7077d79eeab7288213e7aa349d2a7ea7f90
3,484
py
Python
2019/Python/Day_10/visibility_graph_solution.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_10/visibility_graph_solution.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_10/visibility_graph_solution.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
""" I'm not particularly happy with the approach I hacked together. Have read up a bit on computational geometry and visibility graphs, going to try a cleaner approach """ EMPTY = "." OBSTACLE = "#" def get_obstacles(coordinate_grid): obstacles = set() for y, row in enumerate(coordinate_grid): for x,...
39.590909
109
0.616246
d5620db6b5cc1d7992104b24f476b52a4ff8f3b6
10,403
py
Python
sphinxcontrib/versioning/routines.py
muggenhor/sphinxcontrib-versioning
d1e3a2cd33b7b91bfe0950d6318812e260f0ede0
[ "MIT" ]
null
null
null
sphinxcontrib/versioning/routines.py
muggenhor/sphinxcontrib-versioning
d1e3a2cd33b7b91bfe0950d6318812e260f0ede0
[ "MIT" ]
null
null
null
sphinxcontrib/versioning/routines.py
muggenhor/sphinxcontrib-versioning
d1e3a2cd33b7b91bfe0950d6318812e260f0ede0
[ "MIT" ]
null
null
null
"""Functions that perform main tasks. Code is here instead of in cli.py.""" import json import logging import os import re import subprocess import sys from sphinxcontrib.versioning.git import export, fetch_commits, filter_and_date, GitError, list_remote from sphinxcontrib.versioning.lib import Config, HandledError, ...
41.446215
147
0.63424
d562165b7c886bb2fee6a5bca22ca6025debd333
5,976
py
Python
hatchet/readers/spotdb_reader.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
hatchet/readers/spotdb_reader.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
hatchet/readers/spotdb_reader.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
# Copyright 2017-2022 Lawrence Livermore National Security, LLC and other # Hatchet Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: MIT import pandas as pd import hatchet.graphframe from hatchet.node import Node from hatchet.graph import Graph from hatchet.frame import Fra...
31.619048
84
0.551205
d5621e26cbc3c9c50cd93a48e7aa7c8b025500ba
3,066
py
Python
gaphor/UML/tests/test_elementfactory.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/UML/tests/test_elementfactory.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/UML/tests/test_elementfactory.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
import gc import pytest from gaphor.UML import * from gaphor.UML.event import * from gaphor.application import Application from gaphor.core import event_handler from gaphor.services.eventmanager import EventManager @pytest.fixture def factory(): event_manager = EventManager() return ElementFactory(event_man...
22.711111
75
0.709393
d56246995db281dab12ceef45da89c23700c73bb
31,983
py
Python
phonenumbers/asyoutypeformatter.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
1
2015-01-31T01:17:14.000Z
2015-01-31T01:17:14.000Z
python/phonenumbers/asyoutypeformatter.py
titansgroup/python-phonenumbers
f06490405094cd3def8e48a0543b1df335ac4ccf
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/asyoutypeformatter.py
titansgroup/python-phonenumbers
f06490405094cd3def8e48a0543b1df335ac4ccf
[ "Apache-2.0" ]
null
null
null
"""A formatter which formats phone numbers as they are entered. An AsYouTypeFormatter can be created by invoking AsYouTypeFormatter(region_code). After that digits can be added by invoking input_digit() on the formatter instance, and the partially formatted phone number will be returned each time a digit is added. cle...
52.951987
162
0.691117
d562a0834fb63c15f6d6da1ccd9e9e1de9d65bab
2,484
py
Python
atlas/datatables/parametrized.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/datatables/parametrized.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/datatables/parametrized.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
# Django from django.db.models import Q __all__ = ['Parameter','Parametrized'] class Parameter(object): def __init__(self, id=0, label=0, name=0, model_field=0, get_Q=0): if id: self.id=id if label: self.label=label if model_field: self.model_field=model...
30.666667
94
0.559581
d562a8886afa58a4e8f90028d56d47b4deedcb18
1,171
py
Python
demos/typewriter_managed.py
talwai/jygsaw
70847c797ff1fb3034bf9d6f95fa6dce1b9056f7
[ "WTFPL" ]
2
2017-11-21T03:04:47.000Z
2020-03-10T11:05:15.000Z
demos/typewriter_managed.py
talwai/jygsaw
70847c797ff1fb3034bf9d6f95fa6dce1b9056f7
[ "WTFPL" ]
null
null
null
demos/typewriter_managed.py
talwai/jygsaw
70847c797ff1fb3034bf9d6f95fa6dce1b9056f7
[ "WTFPL" ]
null
null
null
# typewriter_managed.py # # Jygsaw demo - Implements a typewriter with Jygsaw # # Attribution: inspired by the words demo in Processing # from http://processingjs.org/learning/basic/words/ # written by Casey Reas and Ben Fry from jygsaw.graphics import * canvas(750, 360) background(DARK_GRAY) line_height = 60 TEXT_HE...
23.42
84
0.669513
d562dc179a3339d04573f676f9e5158e1abe5b90
308
py
Python
interfaces/recipe.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
interfaces/recipe.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
interfaces/recipe.py
loleg/swipeat-backend
ba0e250283226b36a690e12f8989e13ae2231b7e
[ "BSD-3-Clause" ]
null
null
null
# # list.py : Interfaces to access recipes. # from interfaces import app import json from query import Ingredients from query import OpenFood def get_ingredients(queryrequest): ingredientobject = OpenFood(queryrequest) ingredients = Ingredients(ingredientobject) return ingredients.get_meals()
22
47
0.788961
d562e301cf52c79689e0265b76c182be7191a86a
110
py
Python
LR/lr/tests/functional/test_services.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
26
2015-04-14T03:11:58.000Z
2022-01-06T14:31:07.000Z
LR/lr/tests/functional/test_services.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
11
2015-04-03T21:54:03.000Z
2017-05-02T17:20:03.000Z
LR/lr/tests/functional/test_services.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
16
2015-02-11T09:30:18.000Z
2020-11-20T02:06:24.000Z
from lr.tests import * class TestServicesController(TestController): def test_index(self): pass
15.714286
45
0.718182
d5632f0098afc3c4a151c1869b67c4f8b4e598cf
9,269
py
Python
src/robot/output/logger.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/output/logger.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/output/logger.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
34.077206
83
0.643327
d563581cdd58c11eb52d72f1b036c6b6ea420bbf
9,987
py
Python
riboviz/get_cds_codons.py
rasilab/riboviz
a2ebaa7dac383e6ce0972626bf57fdba105d1780
[ "Apache-2.0" ]
2
2019-07-23T11:00:53.000Z
2019-11-19T14:38:44.000Z
riboviz/get_cds_codons.py
rasilab/riboviz
a2ebaa7dac383e6ce0972626bf57fdba105d1780
[ "Apache-2.0" ]
128
2019-05-08T14:23:12.000Z
2020-03-04T12:04:58.000Z
riboviz/get_cds_codons.py
rasilab/riboviz
a2ebaa7dac383e6ce0972626bf57fdba105d1780
[ "Apache-2.0" ]
1
2020-02-06T16:00:48.000Z
2020-02-06T16:00:48.000Z
""" Functions use CDS entries within a GFF file to get the codons from each coding sequence in a complementary FASTA file. """ import csv import os import warnings import gffutils from pyfaidx import Fasta from riboviz import provenance from riboviz.fasta_gff import CDS_FEATURE_FORMAT GENE = "Gene" """ Codon position...
36.582418
78
0.639231
d5638403d6f80077482963f0c7b1d2d578885377
6,823
py
Python
src/main/python/object_detection_base.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
null
null
null
src/main/python/object_detection_base.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
1
2021-07-27T18:27:42.000Z
2021-07-27T18:27:42.000Z
src/main/python/object_detection_base.py
SmartDogHouse/SmartDogHouse-SurveillanceSystem
06bc08e69f3fad7e4a31e3c1ea1daa3f577197d7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import argparse import cv2 import os import time def extract_boxes_confidences_classids(outputs, confidence, width, height): boxes = [] confidences = [] classIDs = [] for output in outputs: for detection in output: # Extract the scores, c...
38.548023
257
0.614099
d563998981e1af532b3c1327b2faab7994cd8875
1,022
py
Python
myia/operations/prim_scalar_uadd.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
222
2019-02-13T07:56:28.000Z
2022-03-28T07:07:54.000Z
myia/operations/prim_scalar_uadd.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
107
2019-02-12T21:56:39.000Z
2022-03-12T01:08:03.000Z
myia/operations/prim_scalar_uadd.py
strint/myia
3d00d3fb3df80ab7a264a724226c5f56c6ff1a8a
[ "MIT" ]
27
2017-11-14T17:58:15.000Z
2019-01-14T01:36:09.000Z
"""Definitions for the primitive `scalar_uadd`.""" from ..lib import ( UniformPrimitiveInferrer, assert_scalar, bprop_to_grad_transform, ) from ..xtype import Number from . import primitives as P def pyimpl_scalar_uadd(x: Number) -> Number: """Implement `scalar_uadd`.""" assert_scalar(x) retu...
22.711111
65
0.717221
d563ea7e5408e86e09b011fac891c48962686e00
964
py
Python
project/migrations/0001_initial.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
project/migrations/0001_initial.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
3
2022-02-10T11:47:58.000Z
2022-02-23T18:50:24.000Z
project/migrations/0001_initial.py
MTES-MCT/sparte
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-20 21:34 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Project", fields=[ ( "id", ...
27.542857
88
0.447095
d5640e83d3534b2c811f77ff9a6a8c5bab4af7df
1,721
py
Python
larch/wxxas/lasso_panel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/lasso_panel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/wxxas/lasso_panel.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Linear Combination panel """ import os import time import wx import numpy as np from functools import partial from collections import OrderedDict from larch.math import index_of from larch.wxlib import (BitmapButton, FloatCtrl, get_icon, SimpleText, pack, Button, HLi...
30.192982
74
0.548518
d5642b46d3c7fa7d4b3548159a9e13a0a6cc5ec3
2,190
py
Python
packages/python-packages/apistubgentest/setup.py
LarryOsterman/azure-sdk-tools
0146e05f4aee767ed7593218109546663be95ec4
[ "MIT" ]
null
null
null
packages/python-packages/apistubgentest/setup.py
LarryOsterman/azure-sdk-tools
0146e05f4aee767ed7593218109546663be95ec4
[ "MIT" ]
null
null
null
packages/python-packages/apistubgentest/setup.py
LarryOsterman/azure-sdk-tools
0146e05f4aee767ed7593218109546663be95ec4
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
31.73913
75
0.595434
d5643fb97c62ecf0ff261ae9892bb72e89da7e6e
3,723
py
Python
intersight/models/storage_flex_flash_controller_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_flex_flash_controller_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_flex_flash_controller_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class StorageFlexFlashControllerRef(object): """ NO...
24.82
82
0.555466
d564452e75e67a67f684523a9ff815464bc996db
612
py
Python
python/11_Data/06_xml_namespace.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
python/11_Data/06_xml_namespace.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
python/11_Data/06_xml_namespace.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
from xml.etree.ElementTree import parse, Element class XMLNamespaces: def __init__(self, **kwargs): self.namespaces = {} for name, uri in kwargs.items(): self.register(name, uri) def register(self, name, uri): self.namespaces[name] = '{'+uri+'}' def __call...
30.6
68
0.630719
d5644e9772acf800e424da5b260c86fc14c05a5a
1,804
py
Python
hiven/types/room.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
3
2021-08-25T01:41:03.000Z
2021-08-30T17:53:05.000Z
hiven/types/room.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
1
2021-08-30T15:35:57.000Z
2021-08-30T18:02:13.000Z
hiven/types/room.py
Iapetus-11/hiven.py
15f4fdca222bd8b8d93f99b842363f107a618186
[ "MIT" ]
4
2021-08-25T16:37:44.000Z
2021-09-10T11:31:14.000Z
from typing import Dict from hiven.types.channel_emoji import ChannelEmoji from hiven.types.permission_override import PermissionOverride from hiven.types.default_permission_override import DefaultPermissionOverride class RoomSchema: id: str house_id: str type: int emoji: ChannelEmoji ...
34.037736
96
0.654102
d5644fca4bdfe761d8bc10c6ec2be85c9c28d3f5
710
py
Python
data/global-configuration/packs/linux/collectors/collector_loadaverage.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/linux/collectors/collector_loadaverage.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/linux/collectors/collector_loadaverage.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os from opsbro.collector import Collector class LoadAverage(Collector): def launch(self): self.logger.debug('getLoadAvrgs: start') # Get the triplet from the python function try: loadAvrgs_1, loadAvrgs_5, loadAvrgs_15 = os.getloadavg() except (Attribute...
29.583333
88
0.625352
d564511d9ac888f71113cf6c299d31d9b01b6344
1,018
py
Python
setup.py
johncclayton/monitor-fw-13
0b9138d89391c59383b26adb65ad6af20f53868c
[ "MIT" ]
null
null
null
setup.py
johncclayton/monitor-fw-13
0b9138d89391c59383b26adb65ad6af20f53868c
[ "MIT" ]
null
null
null
setup.py
johncclayton/monitor-fw-13
0b9138d89391c59383b26adb65ad6af20f53868c
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="filewave-monitor-v13", version="1.0.5", author="John Clayton", author_email="johnc@filewave.com", description="An additional module that installs programs/config required to monitor v13 in...
28.277778
119
0.64833