hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
c571321b106ca74b9a46514595d41f26f1db356d
372
py
Python
buatool/util.py
Tyler-Ward/BUATool
a37521c004b3ad4d859e02b7cd165cf212fd35ec
[ "MIT" ]
1
2019-05-19T12:24:07.000Z
2019-05-19T12:24:07.000Z
buatool/util.py
Tyler-Ward/BUATool
a37521c004b3ad4d859e02b7cd165cf212fd35ec
[ "MIT" ]
null
null
null
buatool/util.py
Tyler-Ward/BUATool
a37521c004b3ad4d859e02b7cd165cf212fd35ec
[ "MIT" ]
null
null
null
import hashlib import os
24.8
55
0.580645
import hashlib import os def calculateSHA1Sum(filename): sha1 = hashlib.sha1() if(not os.path.isfile(filename)): raise ValueError("Provided path is not a file") with open(filename, 'rb') as f: while True: data = f.read(65536) if not data: break ...
324
0
23
66981c994a58b64ef65c19dc60838b5456a9500d
3,780
py
Python
baleen/utils/timez.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
baleen/utils/timez.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
baleen/utils/timez.py
Rizwanabro/DataLabs
9e095bc4cac584e906dfd6e38eb77b1ef5afe107
[ "MIT" ]
null
null
null
# baleen.utils.timez # Utility functions for Baleen # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Mon Sep 22 10:14:57 2014 -0400 # # Copyright (C) 2014 Bengfort.com # For license information, see LICENSE.txt # # ID: utils.py [] benjamin@bengfort.com $ """ Utility functions for Baleenc """ ######...
29.53125
88
0.522487
# baleen.utils.timez # Utility functions for Baleen # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Mon Sep 22 10:14:57 2014 -0400 # # Copyright (C) 2014 Bengfort.com # For license information, see LICENSE.txt # # ID: utils.py [] benjamin@bengfort.com $ """ Utility functions for Baleenc """ ######...
309
0
127
5ee3b522c33c47adae3349d6dc20b5937bfd76a3
404
py
Python
数据结构/NowCode/A0_inserttSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/A0_inserttSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/A0_inserttSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 插入排序 if __name__ == '__main__': print(Solution().insertSort([1,8,3,2,6,9]))
26.933333
67
0.45297
# 插入排序 class Solution: def insertSort(self, alist): n = len(alist) for j in range(0, n): for i in range(j, 0, -1): if alist[i] < alist[i - 1]: alist[i], alist[i - 1] = alist[i - 1], alist[i] else: break retur...
279
-6
48
518dc2af56bee9aff5452a0014d070b9795ebd7e
6,436
py
Python
tests/test_genetic_maps.py
LohmuellerLab/stdpopsim
ed2625b31a02a9b110115f37ab00e250cf5d8da5
[ "MIT" ]
1
2020-09-29T18:42:27.000Z
2020-09-29T18:42:27.000Z
tests/test_genetic_maps.py
carjed/stdpopsim
203ed10207ecdbe68c2dd6cf75d17679496a8afa
[ "MIT" ]
null
null
null
tests/test_genetic_maps.py
carjed/stdpopsim
203ed10207ecdbe68c2dd6cf75d17679496a8afa
[ "MIT" ]
2
2019-02-21T18:43:23.000Z
2020-02-23T15:44:51.000Z
""" Tests for the genetic maps management. """ import unittest from unittest import mock import tarfile import tempfile import os.path import shutil import urllib.request import pathlib import msprime import stdpopsim from stdpopsim import genetic_maps import tests # Infrastructure for keeping a local cache of the ...
34.789189
87
0.641703
""" Tests for the genetic maps management. """ import unittest from unittest import mock import tarfile import tempfile import os.path import shutil import urllib.request import pathlib import msprime import stdpopsim from stdpopsim import genetic_maps import tests # Infrastructure for keeping a local cache of the ...
3,043
170
337
8dbd971a036f692b282148fa951cbacea802736c
2,199
py
Python
icetea_lib/Reports/ReportBase.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
6
2018-08-10T17:11:10.000Z
2020-04-29T07:05:36.000Z
icetea_lib/Reports/ReportBase.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
58
2018-08-13T08:36:08.000Z
2021-07-07T08:32:52.000Z
icetea_lib/Reports/ReportBase.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
7
2018-08-10T12:53:18.000Z
2021-11-08T05:15:42.000Z
""" Copyright 2017 ARM Limited 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 dis...
31.869565
91
0.688495
""" Copyright 2017 ARM Limited 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 dis...
83
0
26
8156297ad42cbaaf323ab136147a6386d944cdc0
550
py
Python
datyy/components/bubble_charts.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/components/bubble_charts.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
datyy/components/bubble_charts.py
VladimirSiv/datyy
4f3b54557850212ca3ce4c0d16cd56eb9989d7c4
[ "MIT" ]
null
null
null
import dash_html_components as html import dash_core_components as dcc def simple_bubble_chart(id_, title): """Generates simple bubble chart component Args: id (str): Component id title (str): Component title Returns: obj: Html div object """ return html.Div( cla...
20.37037
54
0.538182
import dash_html_components as html import dash_core_components as dcc def simple_bubble_chart(id_, title): """Generates simple bubble chart component Args: id (str): Component id title (str): Component title Returns: obj: Html div object """ return html.Div( cla...
0
0
0
a8526ddf582fa0cae3b0316eaf1fa135010e78f0
1,288
py
Python
P06/ex04_for.py
ChanganXLTZ/project_test
b6aa323de105beb6281045bf7b89ed3857ed3d9f
[ "CNRI-Python" ]
1
2018-09-16T13:51:06.000Z
2018-09-16T13:51:06.000Z
P06/ex04_for.py
ChanganXLTZ/project_test
b6aa323de105beb6281045bf7b89ed3857ed3d9f
[ "CNRI-Python" ]
null
null
null
P06/ex04_for.py
ChanganXLTZ/project_test
b6aa323de105beb6281045bf7b89ed3857ed3d9f
[ "CNRI-Python" ]
null
null
null
# -*- coding:UTF-8 -*- #! /usr/bin/python3 print('''for循环使用格式: for <variable> in <sequence>: <statements> else: <statements>\n''') # 以下 for 实例中使用了 break 语句,break 语句用于跳出当前循环体 for a in [1,2,3,4,5,5,6,7,7,8,8,9,9,10,12,13,14,56,78]: if a == 8: print('a = 8 了') break # 直接结束循环 pri...
25.254902
82
0.548913
# -*- coding:UTF-8 -*- #! /usr/bin/python3 print('''for循环使用格式: for <variable> in <sequence>: <statements> else: <statements>\n''') # 以下 for 实例中使用了 break 语句,break 语句用于跳出当前循环体 for a in [1,2,3,4,5,5,6,7,7,8,8,9,9,10,12,13,14,56,78]: if a == 8: print('a = 8 了') break # 直接结束循环 pri...
0
0
0
de453d95549c74e5f2f333c385c17e8e764cebe4
2,257
py
Python
test/test_pypi.py
matthewdeanmartin/caniuseonlywheels
8174a1fae1f531750c6a80b044c1b92d85039421
[ "Apache-2.0" ]
null
null
null
test/test_pypi.py
matthewdeanmartin/caniuseonlywheels
8174a1fae1f531750c6a80b044c1b92d85039421
[ "Apache-2.0" ]
null
null
null
test/test_pypi.py
matthewdeanmartin/caniuseonlywheels
8174a1fae1f531750c6a80b044c1b92d85039421
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google Inc. 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 law or agre...
34.19697
87
0.707133
# Copyright 2014 Google Inc. 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 law or agre...
1,177
201
176
557e303fc4ab749b55dfd30c5fb8944a4d715b32
1,554
py
Python
tenderloin/backend.py
ohlol/tenderloin
8b02a56508c97bbde1789e40bb5b17e5b236b182
[ "BSD-2-Clause" ]
1
2018-09-03T14:50:30.000Z
2018-09-03T14:50:30.000Z
tenderloin/backend.py
ohlol/tenderloin
8b02a56508c97bbde1789e40bb5b17e5b236b182
[ "BSD-2-Clause" ]
null
null
null
tenderloin/backend.py
ohlol/tenderloin
8b02a56508c97bbde1789e40bb5b17e5b236b182
[ "BSD-2-Clause" ]
null
null
null
import logging import socket import time from collections import defaultdict
26.793103
80
0.532819
import logging import socket import time from collections import defaultdict class Carbon(object): def __init__(self, host, port): self.data = [] self.host = host self.port = port try: self.sock = self.connect() except socket.error: logging.fatal("...
1,345
0
130
c5c995d4fb4af0698845544bbd38a70bcaadb45a
2,155
py
Python
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
src/code.py
aniketdashpute/Watermark-python
10060af56f6fc67bc66248dd23dbdbb1fbfc40b9
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt from pathlib import Path import glob2 as glob import os import sys savedir = "./output/" # Add main support to run file from terminal directly if __name__ == '__main__': args = sys.argv # args[0] = current file # args[1] = function name ...
31.691176
94
0.673782
import numpy as np import cv2 import matplotlib.pyplot as plt from pathlib import Path import glob2 as glob import os import sys savedir = "./output/" def AddWatermarkFolder(str_foldername, str_watermarkname, alpha1=1.0, alpha2=0.2): path = str_foldername + '/*.png*' for iter, path_name in enumerate(glob.glob...
1,686
0
73
a05068debdb0db6f4431e19ea9382ad99a0d1c27
15,030
py
Python
sdk/servicebus/azure-servicebus/tests/stress_tests/test_stress_queues.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/tests/stress_tests/test_stress_queues.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/tests/stress_tests/test_stress_queues.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- from dateti...
49.768212
148
0.678709
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- from dateti...
9,058
5,163
23
c4d4650937c6fefa07d3075e16469d06ef9bd965
1,454
py
Python
healthtools/scrapers/doctors.py
CodeForAfrica-SCRAPERS/healthtools_thestar
eb1af58d503c67c765b9ac7c49b897a884c6da47
[ "MIT" ]
1
2018-12-25T23:17:35.000Z
2018-12-25T23:17:35.000Z
healthtools/scrapers/doctors.py
CodeForAfrica-SCRAPERS/healthtools_thestar
eb1af58d503c67c765b9ac7c49b897a884c6da47
[ "MIT" ]
34
2017-03-17T08:46:18.000Z
2019-10-17T10:46:44.000Z
healthtools/scrapers/doctors.py
CodeForAfrica-SCRAPERS/healthtools_thestar
eb1af58d503c67c765b9ac7c49b897a884c6da47
[ "MIT" ]
12
2017-03-15T15:26:06.000Z
2018-08-06T05:16:39.000Z
import logging from healthtools.scrapers.base_scraper import Scraper from healthtools.config import SITES from datetime import datetime class DoctorsScraper(Scraper): ''' Scraper for regular doctors on the medical board website ''' def elasticsearch_format(self, entry): """ Format en...
32.311111
77
0.594911
import logging from healthtools.scrapers.base_scraper import Scraper from healthtools.config import SITES from datetime import datetime class DoctorsScraper(Scraper): ''' Scraper for regular doctors on the medical board website ''' def __init__(self): super(DoctorsScraper, self).__init__() ...
433
0
27
2bd37e7d0c7bc38440aa13af148a8f3279a85f85
994
py
Python
src/stringology/lis.py
luismsgomes/stringology
f5c8d4ec5f4b0de64ef3c481b631f7db382a3658
[ "MIT" ]
1
2021-04-08T14:43:01.000Z
2021-04-08T14:43:01.000Z
src/stringology/lis.py
luismsgomes/stringology
f5c8d4ec5f4b0de64ef3c481b631f7db382a3658
[ "MIT" ]
null
null
null
src/stringology/lis.py
luismsgomes/stringology
f5c8d4ec5f4b0de64ef3c481b631f7db382a3658
[ "MIT" ]
null
null
null
from bisect import bisect def lis(seq, indices=False): '''longest increasing subsequence >>> lis([1, 2, 5, 3, 4]) [1, 2, 3, 4] ''' if not seq: return [] # prevs[i] is the index of the previous element in the longest subsequence # containing element i prevs = [None] * len(seq) ...
28.4
78
0.517103
from bisect import bisect def lis(seq, indices=False): '''longest increasing subsequence >>> lis([1, 2, 5, 3, 4]) [1, 2, 3, 4] ''' if not seq: return [] # prevs[i] is the index of the previous element in the longest subsequence # containing element i prevs = [None] * len(seq) ...
0
0
0
0ce71dc2932ed60501397b918dc908d1811ee915
415
py
Python
utils.py
drehak/obscurator
dbcb5d4b43c5bd8a5480fcb95dd3379d12e33573
[ "WTFPL" ]
null
null
null
utils.py
drehak/obscurator
dbcb5d4b43c5bd8a5480fcb95dd3379d12e33573
[ "WTFPL" ]
null
null
null
utils.py
drehak/obscurator
dbcb5d4b43c5bd8a5480fcb95dd3379d12e33573
[ "WTFPL" ]
null
null
null
'''A collection of auxiliary functions that might be useful.''' from obscurator import Obscurator from common import Similarity def showcase(s): '''Showcase all tiers of characters on a given sentence.''' print(s) for tiers in [ [Similarity.HIGH], [Similarity.MEDIUM], [Similarity.LO...
27.666667
63
0.653012
'''A collection of auxiliary functions that might be useful.''' from obscurator import Obscurator from common import Similarity def showcase(s): '''Showcase all tiers of characters on a given sentence.''' print(s) for tiers in [ [Similarity.HIGH], [Similarity.MEDIUM], [Similarity.LO...
0
0
0
4256ed28157b7cdd1ca6284fce7c4cab88eab936
607
py
Python
SmartAnno/test/TestIntroStep.py
jianlins/SmartAnno
e0925c45853967683aa2955588437bd120fe39c3
[ "Apache-2.0" ]
null
null
null
SmartAnno/test/TestIntroStep.py
jianlins/SmartAnno
e0925c45853967683aa2955588437bd120fe39c3
[ "Apache-2.0" ]
null
null
null
SmartAnno/test/TestIntroStep.py
jianlins/SmartAnno
e0925c45853967683aa2955588437bd120fe39c3
[ "Apache-2.0" ]
null
null
null
from SmartAnno.utils.ConfigReader import ConfigReader from SmartAnno.gui.PreviousNextWidgets import PreviousNextHTML from SmartAnno.gui.Workflow import Workflow from SmartAnno.utils.IntroStep import IntroStep ConfigReader('../conf/smartanno_conf2.json') intro=IntroStep('<h2>Welcome to SmartAnno!</h2><h4>First, let&apos...
46.692308
110
0.749588
from SmartAnno.utils.ConfigReader import ConfigReader from SmartAnno.gui.PreviousNextWidgets import PreviousNextHTML from SmartAnno.gui.Workflow import Workflow from SmartAnno.utils.IntroStep import IntroStep ConfigReader('../conf/smartanno_conf2.json') intro=IntroStep('<h2>Welcome to SmartAnno!</h2><h4>First, let&apos...
0
0
0
bf964fa59cf143596c93f31eec4abf46c156d3a5
453
py
Python
Chapter 10/3.py
icaksh/Python-Projects-Protek
dfd56ea5afc637a8850911a9296131652de383c5
[ "MIT" ]
null
null
null
Chapter 10/3.py
icaksh/Python-Projects-Protek
dfd56ea5afc637a8850911a9296131652de383c5
[ "MIT" ]
null
null
null
Chapter 10/3.py
icaksh/Python-Projects-Protek
dfd56ea5afc637a8850911a9296131652de383c5
[ "MIT" ]
null
null
null
import os, sys file = os.path.join(sys.path[0],"txt/2.txt") print(printText(file))
21.571429
45
0.483444
import os, sys def printText(file): file = open(file,'r') fileLine = file.read().splitlines() dataMhs = [] for i in fileLine: data = i.split("|") dataTambah = { "nim": data[0], "nama": data[1], "alamat": data[2] } data...
328
0
25
4efd1e2c58d40550d16328833e77260a19d43711
949
py
Python
chat-bot/datadog.py
NepStark/mee6
4a7ba6b900277dd4e55c1e2a119d49ae9f98814b
[ "MIT" ]
43
2018-02-17T21:53:51.000Z
2022-03-28T08:40:14.000Z
chat-bot/datadog.py
NepStark/mee6
4a7ba6b900277dd4e55c1e2a119d49ae9f98814b
[ "MIT" ]
16
2018-02-18T01:09:32.000Z
2021-07-01T00:36:29.000Z
chat-bot/datadog.py
NepStark/mee6
4a7ba6b900277dd4e55c1e2a119d49ae9f98814b
[ "MIT" ]
42
2018-03-16T01:36:49.000Z
2022-02-22T07:35:45.000Z
import aiomeasures import logging from functools import wraps log = logging.getLogger('discord')
21.088889
58
0.601686
import aiomeasures import logging from functools import wraps log = logging.getLogger('discord') def existance_check(f): @wraps(f) def wrapper(self, *args, **kwargs): if self.agent: func = getattr(self.agent, f.__name__) return func(*args, **kwargs) else: lo...
545
260
46
fbfd34a7d886b9074494a43f11a99f1f4121e169
2,573
py
Python
atomic_reactor/plugins/pre_add_yum_repo_by_url.py
ktdreyer/atomic-reactor
a3cc6a1a5187c7a178b183bef15faf3a4c9de52a
[ "BSD-3-Clause" ]
null
null
null
atomic_reactor/plugins/pre_add_yum_repo_by_url.py
ktdreyer/atomic-reactor
a3cc6a1a5187c7a178b183bef15faf3a4c9de52a
[ "BSD-3-Clause" ]
null
null
null
atomic_reactor/plugins/pre_add_yum_repo_by_url.py
ktdreyer/atomic-reactor
a3cc6a1a5187c7a178b183bef15faf3a4c9de52a
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Add arbitrary yum repo, specified by URL of repo file, to a list of repos which should be injected into built image by the inject_yum_repo plugi...
34.306667
95
0.62534
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Add arbitrary yum repo, specified by URL of repo file, to a list of repos which should be injected into built image by the inject_yum_repo plugi...
0
1,824
23
fb282eef5cc10b99becc6de017eb6671a09ca29d
1,090
py
Python
generateStrategyFile.py
ToiletCommander/hog_contest_2021_cookes
a307289e65d27fa2e60f4b5cdf41bfe4f48ce838
[ "MIT" ]
null
null
null
generateStrategyFile.py
ToiletCommander/hog_contest_2021_cookes
a307289e65d27fa2e60f4b5cdf41bfe4f48ce838
[ "MIT" ]
null
null
null
generateStrategyFile.py
ToiletCommander/hog_contest_2021_cookes
a307289e65d27fa2e60f4b5cdf41bfe4f48ce838
[ "MIT" ]
null
null
null
import final_strategy_train import baseline_strategy import test import time import submissions from os import path TRAIN_START_NAME = submissions.STRATEGY_NAME TRAIN_EPOCH_NUM = submissions.EPOCH_NUM FILENAME = 'savedStrats/' + TRAIN_START_NAME + "_" + str(TRAIN_EPOCH_NUM) + ".pkl" if path.exists(FILENAME): pri...
28.684211
87
0.814679
import final_strategy_train import baseline_strategy import test import time import submissions from os import path TRAIN_START_NAME = submissions.STRATEGY_NAME TRAIN_EPOCH_NUM = submissions.EPOCH_NUM FILENAME = 'savedStrats/' + TRAIN_START_NAME + "_" + str(TRAIN_EPOCH_NUM) + ".pkl" if path.exists(FILENAME): pri...
0
0
0
310a4d9c5225665632367b13fc6b9f3442b8b766
1,845
py
Python
datasetsnx/bamboo/misc/bbox.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
datasetsnx/bamboo/misc/bbox.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
datasetsnx/bamboo/misc/bbox.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
from ..base_internode import BaseInternode __all__ = ['NormCoor']
26.73913
60
0.483469
from ..base_internode import BaseInternode __all__ = ['NormCoor'] class NormCoor(BaseInternode): def __init__(self, size=None, no_forward=False): self.size = size self.no_forward = no_forward def __call__(self, data_dict): if self.no_forward: return data_dict if...
1,610
9
157
e1300f02ac6964b3cd8989d7bdf2ce7f7eb16897
122
py
Python
assets/powerStateOnIndicator.py
patricebeutler/pi-tablet_retropie
66d266f1adf29d362bbca25076a18cd3f9b57cbd
[ "MIT" ]
null
null
null
assets/powerStateOnIndicator.py
patricebeutler/pi-tablet_retropie
66d266f1adf29d362bbca25076a18cd3f9b57cbd
[ "MIT" ]
null
null
null
assets/powerStateOnIndicator.py
patricebeutler/pi-tablet_retropie
66d266f1adf29d362bbca25076a18cd3f9b57cbd
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(14, GPIO.OUT) GPIO.output(14, GPIO.HIGH)
15.25
26
0.729508
#!/usr/bin/python2.7 import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(14, GPIO.OUT) GPIO.output(14, GPIO.HIGH)
0
0
0
309a4f84f15e75c66ecf435c4aab13f1aa2e8d9f
2,475
py
Python
test/test_bad_width.py
jwodder/txtble
682ffabf5bb11c606a457e5c18bd855cd81a5f69
[ "MIT" ]
3
2018-06-10T16:30:07.000Z
2021-08-11T14:26:33.000Z
test/test_bad_width.py
jwodder/txtble
682ffabf5bb11c606a457e5c18bd855cd81a5f69
[ "MIT" ]
25
2018-06-13T17:22:44.000Z
2021-12-02T22:12:37.000Z
test/test_bad_width.py
jwodder/txtble
682ffabf5bb11c606a457e5c18bd855cd81a5f69
[ "MIT" ]
1
2021-09-04T13:23:58.000Z
2021-09-04T13:23:58.000Z
import pytest from txtble import IndeterminateWidthError, Txtble BAD_STRING = "\x01" ERRMSG = repr(BAD_STRING) + ": string has indeterminate width" @pytest.mark.parametrize( "s", [ "\x0E", "\x0F", # altcharset on/off "\033[17;23H", # move cursor "\a", # bell "\b", ...
26.902174
77
0.588283
import pytest from txtble import IndeterminateWidthError, Txtble BAD_STRING = "\x01" ERRMSG = repr(BAD_STRING) + ": string has indeterminate width" @pytest.mark.parametrize( "s", [ "\x0E", "\x0F", # altcharset on/off "\033[17;23H", # move cursor "\a", # bell "\b", ...
1,792
0
137
6e4417f836c6ab50cd566bb21bbd1538762d3bf2
734
py
Python
app.py
septober1/WebScraping-HW
aaf6b12d90f21425108cfd93376c1e9fc9bd4341
[ "MIT" ]
null
null
null
app.py
septober1/WebScraping-HW
aaf6b12d90f21425108cfd93376c1e9fc9bd4341
[ "MIT" ]
null
null
null
app.py
septober1/WebScraping-HW
aaf6b12d90f21425108cfd93376c1e9fc9bd4341
[ "MIT" ]
null
null
null
from flask import Flask, render_template, jsonify, redirect import pymongo import scrape_mars # Establish Flask app & mongodb connection app = Flask(__name__) conn = "mongodb://localhost:27017" client = pymongo.MongoClient(conn) # Connect to mongo db and mars_info collection db = client.mars collection = db.mars_info...
20.971429
59
0.692098
from flask import Flask, render_template, jsonify, redirect import pymongo import scrape_mars # Establish Flask app & mongodb connection app = Flask(__name__) conn = "mongodb://localhost:27017" client = pymongo.MongoClient(conn) # Connect to mongo db and mars_info collection db = client.mars collection = db.mars_info...
274
0
44
860d03b07dff6c4ca42ee6a348de0c593ead8f88
1,422
py
Python
update.py
BertLindeman/PiClock
bcb5dd5980d0fb219c2ce55c044ed755d2efa492
[ "MIT" ]
null
null
null
update.py
BertLindeman/PiClock
bcb5dd5980d0fb219c2ce55c044ed755d2efa492
[ "MIT" ]
1
2018-12-23T16:30:48.000Z
2018-12-23T16:30:48.000Z
update.py
BertLindeman/PiClock
bcb5dd5980d0fb219c2ce55c044ed755d2efa492
[ "MIT" ]
null
null
null
import sys import os.path import re buttonFileName = 'Button/gpio-keys' print "Checking " + buttonFileName if os.path.isfile(buttonFileName): try: print "Setting proper permissions on " + buttonFileName os.chmod(buttonFileName, 0744) except: pass apikeysFileName = 'Clock/ApiKeys.py' wu...
27.346154
67
0.594937
import sys import os.path import re buttonFileName = 'Button/gpio-keys' print "Checking " + buttonFileName if os.path.isfile(buttonFileName): try: print "Setting proper permissions on " + buttonFileName os.chmod(buttonFileName, 0744) except: pass apikeysFileName = 'Clock/ApiKeys.py' wu...
0
0
0
06145c7d9254764743dda2f8ad442d0342e6ead8
234
py
Python
mojang/account/structures/auth.py
Lucino772/pymojang
579aa86131a88a2ffc053d466f585a7b7e6d5d28
[ "MIT" ]
8
2021-11-12T07:30:10.000Z
2022-02-09T09:49:31.000Z
mojang/account/structures/auth.py
Lucino772/pymojang
579aa86131a88a2ffc053d466f585a7b7e6d5d28
[ "MIT" ]
27
2021-09-09T18:46:32.000Z
2022-03-10T16:46:24.000Z
mojang/account/structures/auth.py
Lucino772/pymojang
579aa86131a88a2ffc053d466f585a7b7e6d5d28
[ "MIT" ]
1
2022-02-09T09:49:32.000Z
2022-02-09T09:49:32.000Z
from typing import NamedTuple ## Security class ChallengeInfo(NamedTuple): """ Attributes: id (int): The id of the challenge challenge (str): The challenge to complete """ id: int challenge: str
16.714286
50
0.628205
from typing import NamedTuple ## Security class ChallengeInfo(NamedTuple): """ Attributes: id (int): The id of the challenge challenge (str): The challenge to complete """ id: int challenge: str
0
0
0
a561bc59ba1c18abbd6ff3ba6d4c38307b7d9b3d
4,123
py
Python
picamera2/outputs/ffmpegoutput.py
IanTBlack/picamera2
4d31a56cdb0d8360e71927e754fc6bef50bec360
[ "BSD-2-Clause" ]
71
2022-02-15T14:24:34.000Z
2022-03-29T16:36:46.000Z
picamera2/outputs/ffmpegoutput.py
IanTBlack/picamera2
4d31a56cdb0d8360e71927e754fc6bef50bec360
[ "BSD-2-Clause" ]
37
2022-02-16T12:35:45.000Z
2022-03-31T13:18:42.000Z
picamera2/outputs/ffmpegoutput.py
IanTBlack/picamera2
4d31a56cdb0d8360e71927e754fc6bef50bec360
[ "BSD-2-Clause" ]
15
2022-02-16T12:12:57.000Z
2022-03-31T15:17:58.000Z
import prctl import signal import subprocess from .output import Output class FfmpegOutput(Output): """ The FfmpegOutput class allows an encoded video stream to be passed to FFmpeg for output, meaning we can take advantange of FFmpeg's wide support for different output formats. Optionally audio recor...
48.505882
126
0.65268
import prctl import signal import subprocess from .output import Output class FfmpegOutput(Output): """ The FfmpegOutput class allows an encoded video stream to be passed to FFmpeg for output, meaning we can take advantange of FFmpeg's wide support for different output formats. Optionally audio recor...
2,404
0
107
9a8f7fcce52853bcd0ebaf8aa211fe28d083e403
760
py
Python
tedi/tests/test_jinja_renderer.py
elastic/tedi
446f3eae3fdda1fbf8eae4bfd5568b87c2823d63
[ "Apache-2.0" ]
22
2018-09-10T19:55:57.000Z
2021-11-20T00:14:25.000Z
tedi/tests/test_jinja_renderer.py
bossjones/tedi
446f3eae3fdda1fbf8eae4bfd5568b87c2823d63
[ "Apache-2.0" ]
1
2018-11-29T02:16:35.000Z
2018-11-29T02:16:35.000Z
tedi/tests/test_jinja_renderer.py
bossjones/tedi
446f3eae3fdda1fbf8eae4bfd5568b87c2823d63
[ "Apache-2.0" ]
2
2019-05-21T00:02:46.000Z
2020-11-19T18:14:57.000Z
from pathlib import Path from pytest import fixture from ..factset import Factset from ..jinja_renderer import JinjaRenderer @fixture @fixture
25.333333
74
0.760526
from pathlib import Path from pytest import fixture from ..factset import Factset from ..jinja_renderer import JinjaRenderer @fixture def renderer(): facts = Factset(color='yellow') return JinjaRenderer(facts) @fixture def template(): return Path('tedi/tests/fixtures/template/simple.j2') def test_fact...
497
0
113
95e1dfff156bb957bade2e6c0f36bba364e105a2
530
py
Python
quantbob/preprocessors/feature_corr.py
AxlAlm/QuantBob
ff00cbe866478040365d8fa075bf51e1c9c2e906
[ "MIT" ]
null
null
null
quantbob/preprocessors/feature_corr.py
AxlAlm/QuantBob
ff00cbe866478040365d8fa075bf51e1c9c2e906
[ "MIT" ]
null
null
null
quantbob/preprocessors/feature_corr.py
AxlAlm/QuantBob
ff00cbe866478040365d8fa075bf51e1c9c2e906
[ "MIT" ]
null
null
null
import numpy as np from sklearn.base import BaseEstimator, TransformerMixin
27.894737
106
0.669811
import numpy as np from sklearn.base import BaseEstimator, TransformerMixin class CorrelatedFeatures(BaseEstimator, TransformerMixin): def __init__(self, threshold : float = 0.5): self._threshold = threshold self._features = None def fit(self, X, y = None): corr_matrix = np.abs(np...
310
37
104
52730e6f1dd262aede8560ada89b1a567dcfc07a
9,698
py
Python
src/pathlang.py
mruffalo/path
5de703748da51b653280d5f4e9caf001f9ba682f
[ "MIT" ]
null
null
null
src/pathlang.py
mruffalo/path
5de703748da51b653280d5f4e9caf001f9ba682f
[ "MIT" ]
1
2016-05-30T15:37:08.000Z
2016-06-08T13:29:45.000Z
src/pathlang.py
mruffalo/path
5de703748da51b653280d5f4e9caf001f9ba682f
[ "MIT" ]
null
null
null
# PATH interpreter # Copyright (c) 2003-04 Francis Rogers # # 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...
37.157088
91
0.567127
# PATH interpreter # Copyright (c) 2003-04 Francis Rogers # # 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...
352
0
27
8b87b28c049dd4879ee134ded06428abe59823de
458
py
Python
src/zerohunger/product/migrations/0002_auto_20200528_2033.py
BuildForSDG/Team-250-Backends
1a81e20e3a01f909f26966070db5c9acc508838d
[ "MIT" ]
null
null
null
src/zerohunger/product/migrations/0002_auto_20200528_2033.py
BuildForSDG/Team-250-Backends
1a81e20e3a01f909f26966070db5c9acc508838d
[ "MIT" ]
16
2020-05-27T20:04:04.000Z
2021-09-22T19:07:34.000Z
src/zerohunger/product/migrations/0002_auto_20200528_2033.py
BuildForSDG/Team-250-Backends
1a81e20e3a01f909f26966070db5c9acc508838d
[ "MIT" ]
1
2020-05-17T00:02:57.000Z
2020-05-17T00:02:57.000Z
# Generated by Django 3.0.6 on 2020-05-28 19:33 from django.db import migrations, models
20.818182
47
0.548035
# Generated by Django 3.0.6 on 2020-05-28 19:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0001_initial'), ] operations = [ migrations.AlterField( model_name='produce', name='product_img', ...
0
344
23
ce9d27092e781bc4b5071fb38634b84dfe069529
706
py
Python
tests/test_layout.py
up2cat/flask_extras
7888da0ca2793e49a803a256b405fa43e6e64ae2
[ "MIT" ]
19
2016-08-03T07:10:23.000Z
2022-03-03T16:37:11.000Z
tests/test_layout.py
christabor/jinja2_template_pack
f57300bc2922aa4105d1aa393351b63c86c26048
[ "MIT" ]
7
2016-11-11T21:54:53.000Z
2018-11-21T04:33:46.000Z
tests/test_layout.py
christabor/jinja2_template_pack
f57300bc2922aa4105d1aa393351b63c86c26048
[ "MIT" ]
3
2016-12-30T10:34:02.000Z
2021-04-08T05:40:09.000Z
"""Tests for 'layout' filters.""" from flask_extras.filters import layout class TestBs3Col: """All tests for bs3 col function.""" def test_returns_right_width(self): """Test the return value for a valid type.""" assert layout.bs3_cols(1) == 12 assert layout.bs3_cols(2) == 6 a...
30.695652
56
0.626062
"""Tests for 'layout' filters.""" from flask_extras.filters import layout class TestBs3Col: """All tests for bs3 col function.""" def test_returns_right_width(self): """Test the return value for a valid type.""" assert layout.bs3_cols(1) == 12 assert layout.bs3_cols(2) == 6 a...
0
0
0
d915b38dcfbd37eee4f4627ebb2c7af5d548e0f3
404
py
Python
rainbow_logging_handler/test/test_unicode.py
movermeyer/rainbow_logging_handler
630c226696973d14b6e145bc7b0265180705b18e
[ "Unlicense" ]
69
2015-01-25T22:57:50.000Z
2022-01-02T22:32:47.000Z
rainbow_logging_handler/test/test_unicode.py
movermeyer/rainbow_logging_handler
630c226696973d14b6e145bc7b0265180705b18e
[ "Unlicense" ]
9
2015-04-13T07:35:14.000Z
2020-07-03T10:50:26.000Z
rainbow_logging_handler/test/test_unicode.py
movermeyer/rainbow_logging_handler
630c226696973d14b6e145bc7b0265180705b18e
[ "Unlicense" ]
14
2015-11-20T14:13:37.000Z
2019-10-29T08:08:19.000Z
# -*- coding: utf-8 -*- from nose.tools import * import sys import logging from rainbow_logging_handler import RainbowLoggingHandler
22.444444
57
0.737624
# -*- coding: utf-8 -*- from nose.tools import * import sys import logging from rainbow_logging_handler import RainbowLoggingHandler def setup(): logger = logging.getLogger('test_unicode') logger.setLevel(logging.DEBUG) handler = RainbowLoggingHandler(sys.stderr) logger.addHandler(handler) def test_...
233
0
46
adb4318c29d87b7f0f32e4598b56d9828cf8299f
2,503
py
Python
Modules/mailer.py
DaMuffinDev/ezruh
7c57b8b77f01674c1f46c0adad661f234584e024
[ "MIT" ]
null
null
null
Modules/mailer.py
DaMuffinDev/ezruh
7c57b8b77f01674c1f46c0adad661f234584e024
[ "MIT" ]
null
null
null
Modules/mailer.py
DaMuffinDev/ezruh
7c57b8b77f01674c1f46c0adad661f234584e024
[ "MIT" ]
null
null
null
from Resources.required_modules import pymodules pymodules.install(pymodules.presets.modules("mailer")) from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import smtplib import ssl # Repeated mailing to a single address def mail_repeated_address(message_object, data_object, reciever_a...
42.423729
126
0.713144
from Resources.required_modules import pymodules pymodules.install(pymodules.presets.modules("mailer")) from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import smtplib import ssl class Mailman: plain = "plain" html = "html" def __init__(self, sender_address, sender_passw...
1,345
119
69
b1e8ba08a4bbae0f1f276f60cc1be2217333cfff
10,106
py
Python
src/ImageRetreival.py
midhunharikumar/DeepRetrieval
011e8de70c14fd1404b5980a9d0b8fa618164204
[ "Apache-2.0" ]
null
null
null
src/ImageRetreival.py
midhunharikumar/DeepRetrieval
011e8de70c14fd1404b5980a9d0b8fa618164204
[ "Apache-2.0" ]
null
null
null
src/ImageRetreival.py
midhunharikumar/DeepRetrieval
011e8de70c14fd1404b5980a9d0b8fa618164204
[ "Apache-2.0" ]
null
null
null
from graphSearch import GraphSearch from DeepFeatures import DeepFeatures import os import glob import json <<<<<<< HEAD ======= <<<<<<< HEAD ======= >>>>>>> c5b3a9dac6d0789cc8005df728bc69dff4b455b3 import argparse import numpy as np import scipy from skimage import transform <<<<<<< HEAD ======= >>>>>>> Adding chang...
36.749091
87
0.611419
from graphSearch import GraphSearch from DeepFeatures import DeepFeatures import os import glob import json <<<<<<< HEAD ======= <<<<<<< HEAD ======= >>>>>>> c5b3a9dac6d0789cc8005df728bc69dff4b455b3 import argparse import numpy as np import scipy from skimage import transform <<<<<<< HEAD ======= >>>>>>> Adding chang...
459
589
156
f07cf1975253f1d2cb0dd28d2566e15d87cf3118
576
py
Python
tests/web_driver.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
337
2019-08-27T16:14:50.000Z
2022-03-29T09:58:22.000Z
tests/web_driver.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
225
2019-08-25T15:02:01.000Z
2022-03-31T06:36:09.000Z
tests/web_driver.py
sonvt1710/manga-py
848a78e93b890af0c92056a1a9fc7f6ce5707cf6
[ "MIT" ]
41
2019-10-04T13:28:02.000Z
2022-03-19T08:18:34.000Z
import unittest from selenium.common.exceptions import TimeoutException from manga_py.base_classes.web_driver import make_driver, get_display
27.428571
69
0.663194
import unittest from selenium.common.exceptions import TimeoutException from manga_py.base_classes.web_driver import make_driver, get_display class TestWebDriver(unittest.TestCase): def test_driver(self): driver = make_driver() self.assertIsNotNone(driver) driver.get('https://ya.ru') ...
364
18
49
b305f93cfe4292cf7d2578bfe7c8df446ed775a0
1,742
py
Python
src/group2plugin/threshold/simple_threshold.py
bnorthan/Group2Plugin
f4a1153f2f6838e1651eaea12c49b3b9992ce3b7
[ "BSD-3-Clause" ]
null
null
null
src/group2plugin/threshold/simple_threshold.py
bnorthan/Group2Plugin
f4a1153f2f6838e1651eaea12c49b3b9992ce3b7
[ "BSD-3-Clause" ]
null
null
null
src/group2plugin/threshold/simple_threshold.py
bnorthan/Group2Plugin
f4a1153f2f6838e1651eaea12c49b3b9992ce3b7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'simple_threshold.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
43.55
76
0.719862
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'simple_threshold.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObje...
1,417
1
76
5ef2cc91f98a2d1430613209bbcbd6c4693f34b1
433
py
Python
bob/bob.py
cmccandless/ExercismSolutions-python
d80bf441c842daa2eb446bdba9c03d3e8864ea58
[ "MIT" ]
null
null
null
bob/bob.py
cmccandless/ExercismSolutions-python
d80bf441c842daa2eb446bdba9c03d3e8864ea58
[ "MIT" ]
null
null
null
bob/bob.py
cmccandless/ExercismSolutions-python
d80bf441c842daa2eb446bdba9c03d3e8864ea58
[ "MIT" ]
null
null
null
import re
25.470588
72
0.524249
import re def hey(what): what = what.strip() is_yelling = re.match('(?i).*[a-z]', what) and what.upper() == what is_asking = what and what[-1] == '?' if what == '': return 'Fine. Be that way!' elif is_yelling: if is_asking: return "Calm down, I know what I'm ...
395
0
25
0a3aa6cfe42eca16768cecbfb5046d472f1bf199
1,827
py
Python
cogs/userinfo.py
Ana-gram/Amanager
5ceef312125b1c73dea59d37f8f06e22293c8960
[ "Apache-2.0" ]
12
2021-04-23T18:10:24.000Z
2021-05-03T13:08:54.000Z
cogs/userinfo.py
Ana-gram/Amanager
5ceef312125b1c73dea59d37f8f06e22293c8960
[ "Apache-2.0" ]
3
2021-04-04T17:47:02.000Z
2021-11-20T10:59:46.000Z
cogs/userinfo.py
Margana314/Amanager
87e241d942ca07f3ed8dfc5e1aebfde6f58bbdac
[ "Apache-2.0" ]
3
2021-04-30T11:07:28.000Z
2021-05-01T11:35:27.000Z
import discord from discord.ext import commands from discord_slash import cog_ext from discord_slash.utils.manage_commands import create_option
43.5
139
0.629447
import discord from discord.ext import commands from discord_slash import cog_ext from discord_slash.utils.manage_commands import create_option class Slash(commands.Cog): def __init__(self, bot): self.bot = bot @cog_ext.cog_slash(name="userinfo", description="Afficher les informations à propos de ton ...
1,233
392
69
a4d38a994e6522271df63468d089fc3bb69fa24a
380
py
Python
spoticly/commands/auth.py
onhernandes/spoticly
ed109f4ea118c57557af1e7a10120a120fd29fa4
[ "MIT" ]
6
2018-12-23T16:16:36.000Z
2019-01-11T12:10:49.000Z
spoticly/commands/auth.py
onhernandes/spoticly
ed109f4ea118c57557af1e7a10120a120fd29fa4
[ "MIT" ]
null
null
null
spoticly/commands/auth.py
onhernandes/spoticly
ed109f4ea118c57557af1e7a10120a120fd29fa4
[ "MIT" ]
null
null
null
"""Auth command.""" from .base import Base from .. import settings, spotify import spotipy class Auth(Base): """Authenticate user"""
22.352941
66
0.618421
"""Auth command.""" from .base import Base from .. import settings, spotify import spotipy class Auth(Base): """Authenticate user""" def run(self): token = spotify.get_spotipy_token() settings.set({"SPOTIPY_TOKEN": token}) sp = spotipy.Spotify(auth=token) me = sp.me() ...
213
0
27
774c205c94b08c750fb078f578238da215a66df0
2,685
py
Python
tests/solr_tests/tests/templatetags.py
alepane21/django-haystack
6a863e442b2dbbd728778a47571a5e836fe6b4a6
[ "BSD-3-Clause" ]
null
null
null
tests/solr_tests/tests/templatetags.py
alepane21/django-haystack
6a863e442b2dbbd728778a47571a5e836fe6b4a6
[ "BSD-3-Clause" ]
null
null
null
tests/solr_tests/tests/templatetags.py
alepane21/django-haystack
6a863e442b2dbbd728778a47571a5e836fe6b4a6
[ "BSD-3-Clause" ]
null
null
null
import pysolr from django.conf import settings from django.template import Template, Context from django.test import TestCase from haystack import connections, connection_router from haystack import indexes from haystack.utils.loading import UnifiedIndex from core.models import MockModel from solr_tests.tests.solr_back...
42.619048
474
0.680074
import pysolr from django.conf import settings from django.template import Template, Context from django.test import TestCase from haystack import connections, connection_router from haystack import indexes from haystack.utils.loading import UnifiedIndex from core.models import MockModel from solr_tests.tests.solr_back...
1,959
330
46
d6306d2966bb106ce4fa119d9f81301133c44a19
1,573
py
Python
Analyser/MachineLearning/PositionalEncoding.py
yangtx2009/finance
5ba428f0495a16de89ea852e04e71bde8a00f9ba
[ "MIT" ]
null
null
null
Analyser/MachineLearning/PositionalEncoding.py
yangtx2009/finance
5ba428f0495a16de89ea852e04e71bde8a00f9ba
[ "MIT" ]
null
null
null
Analyser/MachineLearning/PositionalEncoding.py
yangtx2009/finance
5ba428f0495a16de89ea852e04e71bde8a00f9ba
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np class PositionalEncoding(object): """ In https://rubikscode.net/2019/08/05/transformer-with-python-and-tensorflow-2-0-attention-layers/, he uses [sin(w*0), sin(w*1), ..., cos(w*0), cos(w*1), ...] but in tensorflow tutorial https://www.tensorflow.or...
44.942857
109
0.606484
import tensorflow as tf import numpy as np class PositionalEncoding(object): """ In https://rubikscode.net/2019/08/05/transformer-with-python-and-tensorflow-2-0-attention-layers/, he uses [sin(w*0), sin(w*1), ..., cos(w*0), cos(w*1), ...] but in tensorflow tutorial https://www.tensorflow.or...
825
0
80
63ecf56845adb30d091f361db591573e599b3552
17,697
py
Python
bindings/gen_code.py
aldenml/ecc
eb67894406d5f68538f31c9ab11b72770ea3f24e
[ "MIT" ]
7
2021-07-17T20:31:45.000Z
2022-03-28T20:31:34.000Z
bindings/gen_code.py
aldenml/ecc
eb67894406d5f68538f31c9ab11b72770ea3f24e
[ "MIT" ]
2
2022-01-16T03:02:25.000Z
2022-02-12T17:13:47.000Z
bindings/gen_code.py
aldenml/ecc
eb67894406d5f68538f31c9ab11b72770ea3f24e
[ "MIT" ]
1
2022-02-01T01:10:51.000Z
2022-02-01T01:10:51.000Z
# # Copyright (c) 2021-2022, Alden Torres # # Licensed under the terms of the MIT license. # Copy of the license at https://opensource.org/licenses/MIT # import json import re import subprocess ecc_headers = ["util", "hash", "mac", "kdf", "ed25519", "ristretto255", "bls12_381", "h2c", "oprf",...
32.772222
119
0.480025
# # Copyright (c) 2021-2022, Alden Torres # # Licensed under the terms of the MIT license. # Copy of the license at https://opensource.org/licenses/MIT # import json import re import subprocess class ParamComment: def __init__(self, ast): self.ast = ast self.name = ast["param"] self.direc...
15,932
-16
1,264
eea7123f577b3f3ccb46873e4db90471d77c89c8
1,967
py
Python
palantir/metrics.py
Ithil-protocol/palantir
48dcfd05a04890c6e49cff16b26e854c026b104b
[ "MIT" ]
null
null
null
palantir/metrics.py
Ithil-protocol/palantir
48dcfd05a04890c6e49cff16b26e854c026b104b
[ "MIT" ]
null
null
null
palantir/metrics.py
Ithil-protocol/palantir
48dcfd05a04890c6e49cff16b26e854c026b104b
[ "MIT" ]
1
2022-03-03T17:32:03.000Z
2022-03-03T17:32:03.000Z
from enum import Enum from typing import Dict, List, NewType from palantir.clock import Clock from palantir.types import Timestamp Metrics = NewType("Metrics", Dict[Metric, Dict[Timestamp, List[float]]])
28.1
114
0.698017
from enum import Enum from typing import Dict, List, NewType from palantir.clock import Clock from palantir.types import Timestamp class Metric(Enum): GOVERNANCE_FEES_ETHEREUM = "governance_fees_ethereum" INSUFFICIENT_LIQUIDITY = "insufficient_liquidity" INSURANCE_POOL_LIQUIDITY_DAI = "insurance_pool_liq...
906
532
314
993b873e588e1539e601dcb514eb394d2830282f
36,674
py
Python
esnet/src/main/resources/Lib/layer2/common/openflow.py
esnet/enos
460ddf07dc3c78394246753166bf119a15809074
[ "BSD-3-Clause-LBNL" ]
10
2016-02-12T19:11:14.000Z
2019-04-15T08:56:54.000Z
esnet/src/main/resources/Lib/layer2/common/openflow.py
esnet/enos
460ddf07dc3c78394246753166bf119a15809074
[ "BSD-3-Clause-LBNL" ]
99
2016-04-11T15:58:20.000Z
2016-07-25T17:22:01.000Z
esnet/src/main/resources/Lib/layer2/common/openflow.py
esnet/enos
460ddf07dc3c78394246753166bf119a15809074
[ "BSD-3-Clause-LBNL" ]
2
2016-01-19T14:35:28.000Z
2019-08-25T21:30:05.000Z
# # ESnet Network Operating System (ENOS) Copyright (c) 2015, The Regents # of the University of California, through Lawrence Berkeley National # Laboratory (subject to receipt of any required approvals from the # U.S. Dept. of Energy). All rights reserved. # # If you have questions about your rights to use or distrib...
38.685654
159
0.600071
# # ESnet Network Operating System (ENOS) Copyright (c) 2015, The Regents # of the University of California, through Lawrence Berkeley National # Laboratory (subject to receipt of any required approvals from the # U.S. Dept. of Energy). All rights reserved. # # If you have questions about your rights to use or distrib...
15,619
6,735
1,130
d65423122854992b0203011e729a515a62a732f6
5,651
py
Python
raspberry_pi_device.py
jamisonderek/waterconsumption
08238257f18e31fcf51af4c64220ce08e9eeeb95
[ "MIT" ]
null
null
null
raspberry_pi_device.py
jamisonderek/waterconsumption
08238257f18e31fcf51af4c64220ce08e9eeeb95
[ "MIT" ]
null
null
null
raspberry_pi_device.py
jamisonderek/waterconsumption
08238257f18e31fcf51af4c64220ce08e9eeeb95
[ "MIT" ]
1
2021-05-12T01:52:11.000Z
2021-05-12T01:52:11.000Z
from bme280 import Bme280 import busio try: import adafruit_dht except ImportError: print ("\033[91mError importing DHT code -- Are you running on an IoT device?\033[0m") try: import board except NotImplementedError: print ("\033[91mError importing board -- Are you running on an IoT device?\033[0m") ...
37.926174
113
0.61989
from bme280 import Bme280 import busio try: import adafruit_dht except ImportError: print ("\033[91mError importing DHT code -- Are you running on an IoT device?\033[0m") try: import board except NotImplementedError: print ("\033[91mError importing board -- Are you running on an IoT device?\033[0m") ...
1,361
0
26
58c789167d152f559c09f821128f691ff038b7b3
5,490
py
Python
test/test_transition.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
null
null
null
test/test_transition.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
null
null
null
test/test_transition.py
Pat-Laub/pyABC
f23f0ff8d430a8ce0a0c8253b45e19add9121992
[ "BSD-3-Clause" ]
null
null
null
from pyabc.transition import NotEnoughParticles, LocalTransition, Transition from pyabc import MultivariateNormalTransition import pandas as pd import numpy as np import pytest from pyabc import GridSearchCV @pytest.fixture(params=[LocalTransition, MultivariateNormalTransition]) def test_argument_or...
26.911765
76
0.660656
from pyabc.transition import NotEnoughParticles, LocalTransition, Transition from pyabc import MultivariateNormalTransition import pandas as pd import numpy as np import pytest from pyabc import GridSearchCV @pytest.fixture(params=[LocalTransition, MultivariateNormalTransition]) def transition(request): return re...
3,146
0
436
105f5ac14e4c0d87d30b3f8c87a6092ad7a9a60e
592
py
Python
sessionista/tests/test_store.py
pabloriveracelerity/sessionista
83f730d9573742832045d98410c4c5e561e2adc3
[ "MIT" ]
null
null
null
sessionista/tests/test_store.py
pabloriveracelerity/sessionista
83f730d9573742832045d98410c4c5e561e2adc3
[ "MIT" ]
null
null
null
sessionista/tests/test_store.py
pabloriveracelerity/sessionista
83f730d9573742832045d98410c4c5e561e2adc3
[ "MIT" ]
null
null
null
import pytest from sessionista.store import store MY_ACTION = 'my_action'
24.666667
65
0.734797
import pytest from sessionista.store import store MY_ACTION = 'my_action' def my_action(state): state['key'] = 'mutated value' return state def test_register_action(): store.register([my_action]) assert my_action.__name__ in store.actions.keys() def test_store_dispatch_action(): new_state = stor...
402
0
115
fa633b568f10afad94820d6756cfa17b45dfe88a
571
py
Python
mbpert/loss.py
yuanwxu/mbpert
5e21f6647e3203d3160bb12ca4db6fa84dfe97c7
[ "MIT" ]
null
null
null
mbpert/loss.py
yuanwxu/mbpert
5e21f6647e3203d3160bb12ca4db6fa84dfe97c7
[ "MIT" ]
null
null
null
mbpert/loss.py
yuanwxu/mbpert
5e21f6647e3203d3160bb12ca4db6fa84dfe97c7
[ "MIT" ]
null
null
null
import torch def reg_loss_interaction(A, reg_lambda = 0.001, order=2): """ Regularization loss for the off-diag elements of interaction matrix A """ mask = ~torch.eye(A.shape[0], dtype=torch.bool) return reg_lambda * torch.linalg.norm(A[mask], order) def reg_loss_r(r, reg_lambda = 0.001, order=2): """ Regula...
38.066667
79
0.721541
import torch def reg_loss_interaction(A, reg_lambda = 0.001, order=2): """ Regularization loss for the off-diag elements of interaction matrix A """ mask = ~torch.eye(A.shape[0], dtype=torch.bool) return reg_lambda * torch.linalg.norm(A[mask], order) def reg_loss_r(r, reg_lambda = 0.001, order=2): """ Regula...
0
0
0
0c22417d41c99a465d02b74317b81906e4bcecfb
78
py
Python
Source/Python/1002.py
felippegeorge/URI
9ff647a7d42d34bdd128af5edd79a43b8d3453dd
[ "MIT" ]
1
2015-08-15T04:53:56.000Z
2015-08-15T04:53:56.000Z
Source/Python/1002.py
felippegeorge/URI
9ff647a7d42d34bdd128af5edd79a43b8d3453dd
[ "MIT" ]
null
null
null
Source/Python/1002.py
felippegeorge/URI
9ff647a7d42d34bdd128af5edd79a43b8d3453dd
[ "MIT" ]
null
null
null
raio = float(input()) area = (raio * raio) * 3.14159 print("A=%0.4f" %area)
15.6
31
0.576923
raio = float(input()) area = (raio * raio) * 3.14159 print("A=%0.4f" %area)
0
0
0
f00064f6b7fc3ea71807465854d75bed4fea15c4
843
py
Python
human_data_collection/config.py
facebookresearch/bernoulli_lse
8892039dfe88badc390c733fd7b938732375f29f
[ "MIT" ]
2
2022-03-02T21:04:28.000Z
2022-03-12T12:09:07.000Z
human_data_collection/config.py
facebookresearch/bernoulli_lse
8892039dfe88badc390c733fd7b938732375f29f
[ "MIT" ]
null
null
null
human_data_collection/config.py
facebookresearch/bernoulli_lse
8892039dfe88badc390c733fd7b938732375f29f
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. from datetime import datetime """ Develop an experiment that measures and combination of the following features: spatial_frequency temporal_frequency mean_luminance eccentricity field_angle orientation """ constants = dict( savefolder="....
18.326087
78
0.671412
# Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. from datetime import datetime """ Develop an experiment that measures and combination of the following features: spatial_frequency temporal_frequency mean_luminance eccentricity field_angle orientation """ constants = dict( savefolder="....
0
0
0
a32987adbdc3fc0450720a0e201da4981a60b211
1,022
py
Python
output/models/ms_data/model_groups/mg_z004_xsd/mg_z004.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/model_groups/mg_z004_xsd/mg_z004.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/model_groups/mg_z004_xsd/mg_z004.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "urn:test" @dataclass
22.217391
40
0.277886
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "urn:test" @dataclass class Root: class Meta: namespace = "urn:test" content: List[object] = field( default_factory=list, metadata={ "type": "Wildcard", "namespace": "##any", ...
0
894
22
05f1711d5f25dd7b06fc8822aa53033e2fb6bbca
637
py
Python
tethysext/atcore/services/model_database_connection_base.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
3
2020-11-05T23:50:47.000Z
2021-02-26T21:43:29.000Z
tethysext/atcore/services/model_database_connection_base.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
7
2020-10-29T16:53:49.000Z
2021-05-07T19:46:47.000Z
tethysext/atcore/services/model_database_connection_base.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
null
null
null
""" ******************************************************************************** * Name: model_file_database_connection_base.py * Author: nswain * Created On: June 05, 2018 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ class ModelDatabaseConnect...
20.548387
80
0.419152
""" ******************************************************************************** * Name: model_file_database_connection_base.py * Author: nswain * Created On: June 05, 2018 * Copyright: (c) Aquaveo 2018 ******************************************************************************** """ class ModelDatabaseConnect...
0
0
0
0e6736307dc21e4437a017717108fb9cd2e908df
41
py
Python
bowling/sort/selection/__init__.py
necromuralist/Bowling-For-Data
8fb2bff206bf419812f96a5ad243e1d82959a00a
[ "MIT" ]
null
null
null
bowling/sort/selection/__init__.py
necromuralist/Bowling-For-Data
8fb2bff206bf419812f96a5ad243e1d82959a00a
[ "MIT" ]
null
null
null
bowling/sort/selection/__init__.py
necromuralist/Bowling-For-Data
8fb2bff206bf419812f96a5ad243e1d82959a00a
[ "MIT" ]
null
null
null
from .selection import selection_counter
20.5
40
0.878049
from .selection import selection_counter
0
0
0
12c8e470fb7f3c244bc7475fe5cad16b5ecb00c7
3,637
py
Python
episcanpy/plotting/_histograms.py
rLannes/epiScanpy
3d5860551c99fb28ba5b56cb9aa0d246c529acc4
[ "BSD-3-Clause" ]
null
null
null
episcanpy/plotting/_histograms.py
rLannes/epiScanpy
3d5860551c99fb28ba5b56cb9aa0d246c529acc4
[ "BSD-3-Clause" ]
null
null
null
episcanpy/plotting/_histograms.py
rLannes/epiScanpy
3d5860551c99fb28ba5b56cb9aa0d246c529acc4
[ "BSD-3-Clause" ]
null
null
null
import anndata as ad import matplotlib.pyplot as plt import pandas as pd import numpy as np import random import warnings from warnings import warn def cluster_composition(adata, cluster, condition, xlabel='cell cluster', ylabel='cell count', title=None, save=False): """ Deprecated. Us...
33.063636
115
0.59912
import anndata as ad import matplotlib.pyplot as plt import pandas as pd import numpy as np import random import warnings from warnings import warn def cluster_composition(adata, cluster, condition, xlabel='cell cluster', ylabel='cell count', title=None, save=False): """ Deprecated. Us...
0
0
0
5deba5e0b03f29b0604e832936931a0fdecf8281
24,275
py
Python
dynamic_word_embedding/local_jump_dsg_beam_search_gbooks.py
mandt-lab/variational-beam-search
61f217ed6ac6fdda0123f2b3bda37fa42fb4b4c2
[ "MIT" ]
1
2022-03-16T09:50:10.000Z
2022-03-16T09:50:10.000Z
dynamic_word_embedding/local_jump_dsg_beam_search_gbooks.py
mandt-lab/variational-beam-search
61f217ed6ac6fdda0123f2b3bda37fa42fb4b4c2
[ "MIT" ]
null
null
null
dynamic_word_embedding/local_jump_dsg_beam_search_gbooks.py
mandt-lab/variational-beam-search
61f217ed6ac6fdda0123f2b3bda37fa42fb4b4c2
[ "MIT" ]
null
null
null
import sys import os import shutil import subprocess import multiprocessing from multiprocessing import Pool import pickle as pkl import itertools import numpy as np from scipy import stats import tensorflow as tf # mute tensorflow information os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'} tf.com...
53.351648
235
0.547518
import sys import os import shutil import subprocess import multiprocessing from multiprocessing import Pool import pickle as pkl import itertools import numpy as np from scipy import stats import tensorflow as tf # mute tensorflow information os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'} tf.com...
13,202
0
117
e4092deabc1d4e47b58cfaffc0533393eaf1eb12
6,098
py
Python
sktime/transformations/panel/slope.py
mikofski/sktime
87bdf36dbc0990f29942eb6f7fa56a8e6c5fa7b7
[ "BSD-3-Clause" ]
5,349
2019-03-21T14:56:50.000Z
2022-03-31T11:25:30.000Z
sktime/transformations/panel/slope.py
mikofski/sktime
87bdf36dbc0990f29942eb6f7fa56a8e6c5fa7b7
[ "BSD-3-Clause" ]
1,803
2019-03-26T13:33:53.000Z
2022-03-31T23:58:10.000Z
sktime/transformations/panel/slope.py
mikofski/sktime
87bdf36dbc0990f29942eb6f7fa56a8e6c5fa7b7
[ "BSD-3-Clause" ]
911
2019-03-25T01:21:30.000Z
2022-03-31T04:45:51.000Z
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import math import statistics from sktime.transformations.base import _PanelToPanelTransformer from sktime.datatypes._panel._convert import from_nested_to_2d_array from sktime.utils.validation.panel import check_X class SlopeTransformer(_PanelToPanelTrans...
29.892157
80
0.5551
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import math import statistics from sktime.transformations.base import _PanelToPanelTransformer from sktime.datatypes._panel._convert import from_nested_to_2d_array from sktime.utils.validation.panel import check_X class SlopeTransformer(_PanelToPanelTrans...
107
0
27
b36a7074ba94e76b513ea4348cd1c0df60f7bf5f
46
py
Python
tracc/__init__.py
jamaps/tracc
0f71b07b6560ed2f5a9a9f6f94a07e487af254c5
[ "MIT" ]
1
2021-04-20T21:19:32.000Z
2021-04-20T21:19:32.000Z
tracc/__init__.py
jamaps/tracc
0f71b07b6560ed2f5a9a9f6f94a07e487af254c5
[ "MIT" ]
null
null
null
tracc/__init__.py
jamaps/tracc
0f71b07b6560ed2f5a9a9f6f94a07e487af254c5
[ "MIT" ]
null
null
null
from .tracc import * from .functions import *
15.333333
24
0.73913
from .tracc import * from .functions import *
0
0
0
f2aaacc48f9073597461a5749ffc4ff6527d1561
1,092
py
Python
util/update_db_category.py
osu-cascades/iot-lab-inventory
80a0ae05b535449789cd1073e7cb9eebcbb0497f
[ "FSFAP" ]
1
2018-01-11T07:23:28.000Z
2018-01-11T07:23:28.000Z
util/update_db_category.py
osu-cascades/iot-lab-inventory
80a0ae05b535449789cd1073e7cb9eebcbb0497f
[ "FSFAP" ]
38
2017-05-03T07:36:27.000Z
2018-01-11T02:28:10.000Z
util/update_db_category.py
osu-cascades/iot-lab-inventory
80a0ae05b535449789cd1073e7cb9eebcbb0497f
[ "FSFAP" ]
null
null
null
#!/usr/bin/env python # TODO: description of this script # BOB = controller # CAB = cable # COM = misc # DEV = controller # GPS = sensor # LCD = actuator # ROB = actuator # SEN = sensor # TOL = tool # WRL = wireless # KIT = (drop) # LAB = (drop) # PRT = misc import flask_sqlalchemy from iot_lab_inventory import db fro...
24.266667
51
0.509158
#!/usr/bin/env python # TODO: description of this script # BOB = controller # CAB = cable # COM = misc # DEV = controller # GPS = sensor # LCD = actuator # ROB = actuator # SEN = sensor # TOL = tool # WRL = wireless # KIT = (drop) # LAB = (drop) # PRT = misc import flask_sqlalchemy from iot_lab_inventory import db fro...
0
0
0
a7f272674c8d62253b6b7dea768935c680c80359
212
py
Python
stockist/__stockist__.py
mainanick/stockist
abf457f5be77dd01a183a98fc7989463a0a7cbd0
[ "WTFPL" ]
null
null
null
stockist/__stockist__.py
mainanick/stockist
abf457f5be77dd01a183a98fc7989463a0a7cbd0
[ "WTFPL" ]
null
null
null
stockist/__stockist__.py
mainanick/stockist
abf457f5be77dd01a183a98fc7989463a0a7cbd0
[ "WTFPL" ]
null
null
null
__title__ = "stockist" __description__ = "" __version__ = "0.1.1" __author__ = "Maina Nick" __license__ = "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2.0" __copyright__ = "Copyright (C) 2018-Present Maina Nick"
30.285714
63
0.735849
__title__ = "stockist" __description__ = "" __version__ = "0.1.1" __author__ = "Maina Nick" __license__ = "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2.0" __copyright__ = "Copyright (C) 2018-Present Maina Nick"
0
0
0
72755bc746d04b3e5d1fb511a7512ba186454e41
25,748
py
Python
sunshine_conversations_client/__init__.py
zendesk/sunshine-conversations-python
2d0240681b809ffd8ff0e9ed58b33aae844d29f6
[ "Apache-2.0" ]
4
2020-09-27T14:28:25.000Z
2022-02-02T13:51:29.000Z
sunshine_conversations_client/__init__.py
zendesk/sunshine-conversations-python
2d0240681b809ffd8ff0e9ed58b33aae844d29f6
[ "Apache-2.0" ]
3
2021-09-30T18:18:58.000Z
2021-12-04T07:55:23.000Z
sunshine_conversations_client/__init__.py
zendesk/sunshine-conversations-python
2d0240681b809ffd8ff0e9ed58b33aae844d29f6
[ "Apache-2.0" ]
5
2020-11-07T02:08:18.000Z
2021-12-07T17:10:23.000Z
# coding: utf-8 # flake8: noqa """ Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import __version__ = "9.4.6" # import apis into sdk package from sunshine_conversations_client.api.activities_api i...
82.525641
154
0.929121
# coding: utf-8 # flake8: noqa """ Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import __version__ = "9.4.6" # import apis into sdk package from sunshine_conversations_client.api.activities_api i...
0
0
0
ad7a4c7eb7c37da291e249e4519af96fb3c5470b
410
py
Python
pyoanda/__init__.py
toloco/pyoanda
26b3f28a89d07c5c20d2a645884505387f1daae8
[ "MIT" ]
81
2015-03-18T23:02:33.000Z
2021-07-13T15:00:14.000Z
pyoanda/__init__.py
toloco/pyoanda
26b3f28a89d07c5c20d2a645884505387f1daae8
[ "MIT" ]
32
2015-04-18T22:04:00.000Z
2019-02-28T00:58:39.000Z
pyoanda/__init__.py
toloco/pyoanda
26b3f28a89d07c5c20d2a645884505387f1daae8
[ "MIT" ]
32
2015-04-06T16:42:07.000Z
2018-02-13T19:06:19.000Z
__version__ = "1.021" try: from .client import Client from .order import Order except ImportError: pass # OANDA API URLS SANDBOX = ( "http://api-sandbox.oanda.com", "http://stream-sandbox.oanda.com" ) PRACTICE = ( "https://api-fxpractice.oanda.com", "https://stream-fxpractice.oanda.com" ...
17.083333
41
0.643902
__version__ = "1.021" try: from .client import Client from .order import Order except ImportError: pass # OANDA API URLS SANDBOX = ( "http://api-sandbox.oanda.com", "http://stream-sandbox.oanda.com" ) PRACTICE = ( "https://api-fxpractice.oanda.com", "https://stream-fxpractice.oanda.com" ...
0
0
0
833817a5731440fa53ab744b44090b40e1fec9e8
212
py
Python
Python/7/FormTheLargest/form_the_largest.py
hwakabh/codewars
7afce5a7424d35abc55c350301ac134f2d3edd3d
[ "MIT" ]
null
null
null
Python/7/FormTheLargest/form_the_largest.py
hwakabh/codewars
7afce5a7424d35abc55c350301ac134f2d3edd3d
[ "MIT" ]
6
2020-02-21T17:01:59.000Z
2021-05-04T07:04:41.000Z
Python/7/FormTheLargest/form_the_largest.py
hwakabh/codewars
7afce5a7424d35abc55c350301ac134f2d3edd3d
[ "MIT" ]
null
null
null
import sys if __name__ == "__main__": if len(sys.argv) == 2: print(max_number(n=sys.argv[1])) else: sys.exit(1)
17.666667
53
0.584906
import sys def max_number(n): return int(''.join(sorted(str(n), reverse=True))) if __name__ == "__main__": if len(sys.argv) == 2: print(max_number(n=sys.argv[1])) else: sys.exit(1)
51
0
23
ced3891dc62d26c42d905ab39aeb29cacb79e194
1,338
py
Python
Class6/processtxt.py
yipliu/NLPseq2seq
cf676387bb120cd974da71d848c95adb4aa46b19
[ "MIT" ]
null
null
null
Class6/processtxt.py
yipliu/NLPseq2seq
cf676387bb120cd974da71d848c95adb4aa46b19
[ "MIT" ]
null
null
null
Class6/processtxt.py
yipliu/NLPseq2seq
cf676387bb120cd974da71d848c95adb4aa46b19
[ "MIT" ]
null
null
null
import random import re import pandas as pd from sklearn.model_selection import train_test_split """ Translate txt into json """ # Lowercase, trim, and remove non-letter characters if __name__ == "__main__": src_path, trg_path = 'data/hard_pc_src.txt', 'data/hard_pc_tar.txt' raw_data = processData(src_pa...
28.468085
75
0.660688
import random import re import pandas as pd from sklearn.model_selection import train_test_split """ Translate txt into json """ # Lowercase, trim, and remove non-letter characters def normalizeString(s): s = s.lower().strip() #s = re.sub(r"([.!?])", r" \1", s) #s = re.sub(r"[^a-zA-Z.!?]+", r" ", s) r...
544
0
45
e0ce324d88e9cc397f78e062be9c3720116ae51f
1,078
py
Python
custom/ilsgateway/__init__.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
custom/ilsgateway/__init__.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
null
null
null
custom/ilsgateway/__init__.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
null
null
null
from custom.ilsgateway.comparison_reports import ProductsCompareReport, LocationsCompareReport, \ WebUsersCompareReport, SMSUsersCompareReport from custom.ilsgateway.tanzania.reports.alerts import AlertReport from custom.ilsgateway.tanzania.reports.dashboard_report import DashboardReport from custom.ilsgateway.tanz...
35.933333
97
0.78757
from custom.ilsgateway.comparison_reports import ProductsCompareReport, LocationsCompareReport, \ WebUsersCompareReport, SMSUsersCompareReport from custom.ilsgateway.tanzania.reports.alerts import AlertReport from custom.ilsgateway.tanzania.reports.dashboard_report import DashboardReport from custom.ilsgateway.tanz...
0
0
0
3cb131142cd71e055289857ec52a4de26d549093
1,479
py
Python
scripts/check_reaction_ts.py
jensengroup/elementary_step_om
7ae7e5226f6be1f3ace3e3886a0284c4f8923ee9
[ "MIT" ]
null
null
null
scripts/check_reaction_ts.py
jensengroup/elementary_step_om
7ae7e5226f6be1f3ace3e3886a0284c4f8923ee9
[ "MIT" ]
null
null
null
scripts/check_reaction_ts.py
jensengroup/elementary_step_om
7ae7e5226f6be1f3ace3e3886a0284c4f8923ee9
[ "MIT" ]
1
2021-06-23T13:08:07.000Z
2021-06-23T13:08:07.000Z
import sys import pickle from tqdm import tqdm sys.path.append(sys.path[0].rsplit('/', 1)[0]) from elementary_step_om.chem import Fragment from elementary_step_om.external_calculation.xtb_calculations import xTBCalculator from elementary_step_om.external_calculation.gaussian_calculations import GaussianCalculator i...
27.90566
99
0.64165
import sys import pickle from tqdm import tqdm sys.path.append(sys.path[0].rsplit('/', 1)[0]) from elementary_step_om.chem import Fragment from elementary_step_om.external_calculation.xtb_calculations import xTBCalculator from elementary_step_om.external_calculation.gaussian_calculations import GaussianCalculator i...
0
0
0
6cdbb7e727c11d4145e9db16260b9b1cbab53fdc
10,040
py
Python
safe-driver/src/evaluate/evaluate.py
azeltov/safe-driver-prediction-az
6c9e5e21baf78e4c5d16ec62b8e3d45e1291dca4
[ "MIT" ]
null
null
null
safe-driver/src/evaluate/evaluate.py
azeltov/safe-driver-prediction-az
6c9e5e21baf78e4c5d16ec62b8e3d45e1291dca4
[ "MIT" ]
3
2022-02-14T20:57:51.000Z
2022-02-14T21:56:19.000Z
safe-driver/src/evaluate/evaluate.py
azeltov/safe-driver-prediction-az
6c9e5e21baf78e4c5d16ec62b8e3d45e1291dca4
[ "MIT" ]
1
2022-02-14T14:38:47.000Z
2022-02-14T14:38:47.000Z
# Copyright (c) 2021 Microsoft # # This software is released under the MIT License. # https://opensource.org/licenses/MIT import json import logging import os import tempfile from enum import Enum from pathlib import Path from typing import Literal, Tuple, Union import lightgbm import mlflow import numpy as np import...
38.467433
115
0.671414
# Copyright (c) 2021 Microsoft # # This software is released under the MIT License. # https://opensource.org/licenses/MIT import json import logging import os import tempfile from enum import Enum from pathlib import Path from typing import Literal, Tuple, Union import lightgbm import mlflow import numpy as np import...
864
49
92
04d7506b0c868113231f6f68304757c976b482c0
7,988
py
Python
fs_image/vm/vm.py
singhaditya28/fs_image
3d122da48eab8b26e5add6754cc1f91296139c58
[ "MIT" ]
null
null
null
fs_image/vm/vm.py
singhaditya28/fs_image
3d122da48eab8b26e5add6754cc1f91296139c58
[ "MIT" ]
null
null
null
fs_image/vm/vm.py
singhaditya28/fs_image
3d122da48eab8b26e5add6754cc1f91296139c58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import importlib.resources import logging import os import shlex import subprocess import sys import tem...
32.604082
103
0.582123
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import importlib.resources import logging import os import shlex import subprocess import sys import tem...
6,937
190
89
4ccd320efbef1eea7f5ccbd4c9e66d7b30001079
846
py
Python
laelaps_control/src/laelaps_control/images/icons/__init__.py
roadnarrows-robotics/laelaps
6501d28e05d781e2885fb689423c066b6614f6c5
[ "MIT" ]
null
null
null
laelaps_control/src/laelaps_control/images/icons/__init__.py
roadnarrows-robotics/laelaps
6501d28e05d781e2885fb689423c066b6614f6c5
[ "MIT" ]
1
2016-03-10T18:30:13.000Z
2016-06-21T21:52:57.000Z
laelaps_control/src/laelaps_control/images/icons/__init__.py
roadnarrows-robotics/laelaps
6501d28e05d781e2885fb689423c066b6614f6c5
[ "MIT" ]
null
null
null
## All icons in Laelaps package. __all__ = [ 'BotBwdIcon.png', 'BotFwdIcon.png', 'BotLeftIcon.png', 'BotRightIcon.png', 'BotStopIcon.png', 'LaelapsAlarmsIcon.png', 'LaelapsCamIcon.png', 'LaelapsImuIcon.png', 'LaelapsPanelIcon.png', 'LaelapsRangeIcon.png', 'LaelapsTwistIcon.png', 'ROSIcon.png',...
20.634146
32
0.696217
## All icons in Laelaps package. __all__ = [ 'BotBwdIcon.png', 'BotFwdIcon.png', 'BotLeftIcon.png', 'BotRightIcon.png', 'BotStopIcon.png', 'LaelapsAlarmsIcon.png', 'LaelapsCamIcon.png', 'LaelapsImuIcon.png', 'LaelapsPanelIcon.png', 'LaelapsRangeIcon.png', 'LaelapsTwistIcon.png', 'ROSIcon.png',...
0
0
0
a644013a1b42a9740d2b05099f0a49ee16d2b1f7
1,293
py
Python
main.py
clayz/crazy-quiz-web
7601809ad521d95ae251a026f171b9ec6939c55f
[ "Apache-2.0" ]
null
null
null
main.py
clayz/crazy-quiz-web
7601809ad521d95ae251a026f171b9ec6939c55f
[ "Apache-2.0" ]
null
null
null
main.py
clayz/crazy-quiz-web
7601809ad521d95ae251a026f171b9ec6939c55f
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask import render_template from api.user_api import user_api from api.audit_api import audit_api from api.sns_api import sns_api from errors import ParameterError, DataError from utilities import response from constants import APIStatus from batch.notification import apns_push app = Flas...
22.293103
60
0.759474
from flask import Flask from flask import render_template from api.user_api import user_api from api.audit_api import audit_api from api.sns_api import sns_api from errors import ParameterError, DataError from utilities import response from constants import APIStatus from batch.notification import apns_push app = Flas...
426
0
176
512e84e52464c3c39b1c52261bbb25f629450101
4,368
py
Python
test/category_test.py
toddsifleet/staticpy
09b962a7316e142ff917be47502cbfac4aed7ed6
[ "MIT" ]
1
2015-01-31T13:35:42.000Z
2015-01-31T13:35:42.000Z
test/category_test.py
toddsifleet/staticpy
09b962a7316e142ff917be47502cbfac4aed7ed6
[ "MIT" ]
null
null
null
test/category_test.py
toddsifleet/staticpy
09b962a7316e142ff917be47502cbfac4aed7ed6
[ "MIT" ]
null
null
null
from doubles import InstanceDouble, allow from pytest import fixture from staticpy.category import Category @fixture @fixture
29.917808
75
0.651328
from doubles import InstanceDouble, allow from pytest import fixture from staticpy.category import Category def dummy_page(order=0, published=True, **kwargs): return InstanceDouble( 'staticpy.page.Page', order=order, published=published, **kwargs ) def dummy_pages(count=10,...
3,566
32
632
f133e2ff2fff65ea75c2847ad060287345811d01
2,854
py
Python
with mosh everybody python/listMethods.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
with mosh everybody python/listMethods.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
with mosh everybody python/listMethods.py
mrtyasar/PythonLearn
b8fa5d97b9c811365db8457f42f1e1d04e4dc8a4
[ "Apache-2.0" ]
null
null
null
# liste methotları listelerimiz üzerine methotlar sayesinde işlemler yapmamızı sağlar numbers = [5,2,1,7,4] # listeye öğe eklemek için append methodundan yararlanırız numbers.append(20) print(numbers) # listeye indeks numarasına göre öge eklemek numbers.insert(2,10) print(numbers) # listemizde bir öğeyi silmek için r...
33.186047
98
0.783812
# liste methotları listelerimiz üzerine methotlar sayesinde işlemler yapmamızı sağlar numbers = [5,2,1,7,4] # listeye öğe eklemek için append methodundan yararlanırız numbers.append(20) print(numbers) # listeye indeks numarasına göre öge eklemek numbers.insert(2,10) print(numbers) # listemizde bir öğeyi silmek için r...
0
0
0
5c3304d2ed08b39f45fbb412e5ac6ad1311fe85d
1,350
py
Python
onepage.py
costiagur/parsebyocr
3ea3a53112d884cdce160d842d6343a62cedd952
[ "MIT" ]
null
null
null
onepage.py
costiagur/parsebyocr
3ea3a53112d884cdce160d842d6343a62cedd952
[ "MIT" ]
null
null
null
onepage.py
costiagur/parsebyocr
3ea3a53112d884cdce160d842d6343a62cedd952
[ "MIT" ]
null
null
null
from PIL import Image from pdf2image import convert_from_bytes import os import math import random #
23.275862
82
0.495556
from PIL import Image from pdf2image import convert_from_bytes import os import math import random def onepage(scanfile, rollangle=0, hsa=0, vsa=0, dpirate=400): os.makedirs(name='demo', exist_ok=True) os.makedirs(name='drafts', exist_ok=True) images = convert_from_bytes(scanfile, dpi=dpir...
1,218
0
27
79857e041cb12d8eddc2312512f95a4e6eab8c1f
1,301
py
Python
tests/test_patterns.py
Unathi-Skosana/ptycho
95e49a092d1212e2d02349ad4c50ea7db93e2687
[ "MIT" ]
null
null
null
tests/test_patterns.py
Unathi-Skosana/ptycho
95e49a092d1212e2d02349ad4c50ea7db93e2687
[ "MIT" ]
null
null
null
tests/test_patterns.py
Unathi-Skosana/ptycho
95e49a092d1212e2d02349ad4c50ea7db93e2687
[ "MIT" ]
null
null
null
import cv2 import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import ImageGrid from numpy import pi from utils import stripes, get_gradation_2d,\ get_gradation_3d, checkerboard, radial_gradient from utils.filters import gau_kern, circ_mask from skimage.color impor...
32.525
67
0.659493
import cv2 import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import ImageGrid from numpy import pi from utils import stripes, get_gradation_2d,\ get_gradation_3d, checkerboard, radial_gradient from utils.filters import gau_kern, circ_mask from skimage.color impor...
0
0
0
e34e5e2d89e479a1b1c0502022620c288330f897
3,691
py
Python
tools/test.py
starhiking/ATF_HRnet
6b88b26f11d7018cf9b3dc5e2acf63a32ea62a13
[ "MIT" ]
null
null
null
tools/test.py
starhiking/ATF_HRnet
6b88b26f11d7018cf9b3dc5e2acf63a32ea62a13
[ "MIT" ]
null
null
null
tools/test.py
starhiking/ATF_HRnet
6b88b26f11d7018cf9b3dc5e2acf63a32ea62a13
[ "MIT" ]
null
null
null
import os import pprint import argparse import time import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import lib.models as models from lib.config import config, update_config from l...
28.392308
119
0.692495
import os import pprint import argparse import time import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import lib.models as models from lib.config import config, update_config from l...
2,279
0
46
97d604cccda88bedb00314e2a1bf19b3e7650f45
6,476
py
Python
srl_nlp/annotate_documents.py
MeLL-UFF/srl-nlp
97bdae26be03e94536531c581a34847dc419ef67
[ "MIT" ]
null
null
null
srl_nlp/annotate_documents.py
MeLL-UFF/srl-nlp
97bdae26be03e94536531c581a34847dc419ef67
[ "MIT" ]
1
2019-07-02T14:16:24.000Z
2019-07-02T14:16:24.000Z
srl_nlp/annotate_documents.py
MeLL-UFF/srl-nlp
97bdae26be03e94536531c581a34847dc419ef67
[ "MIT" ]
1
2019-02-20T19:30:06.000Z
2019-02-20T19:30:06.000Z
#!/bin/env python2 """ Script for running annotation on the document files. """ from sys import argv as _argv import logging from ConfigParser import ConfigParser from os import path, listdir from typing import List from srl_nlp.framenet.adapter import PARSERS_AVAILABLE, DocumentAdapter from srl_nlp.framenet.corpus...
40.72956
119
0.631872
#!/bin/env python2 """ Script for running annotation on the document files. """ from sys import argv as _argv import logging from ConfigParser import ConfigParser from os import path, listdir from typing import List from srl_nlp.framenet.adapter import PARSERS_AVAILABLE, DocumentAdapter from srl_nlp.framenet.corpus...
5,398
0
76
706acf25ef6d9f0510b5380903590b901503579a
651
py
Python
python_sandbox/python_sandbox/misc/find_owners.py
jduan/cosmos
c4bdc5b800c9b51084daf874769ac73e1c4b7dd5
[ "MIT" ]
null
null
null
python_sandbox/python_sandbox/misc/find_owners.py
jduan/cosmos
c4bdc5b800c9b51084daf874769ac73e1c4b7dd5
[ "MIT" ]
null
null
null
python_sandbox/python_sandbox/misc/find_owners.py
jduan/cosmos
c4bdc5b800c9b51084daf874769ac73e1c4b7dd5
[ "MIT" ]
null
null
null
# This script takes a list of project directories and find the owner info from "_infra/project.yml" import os import sys import yaml if __name__ == '__main__': main()
25.038462
99
0.609831
# This script takes a list of project directories and find the owner info from "_infra/project.yml" import os import sys import yaml def find_owner(file): fullpath = "/Users/jingjing_duan/repos2/treehouse_worktree3/%s/_infra/project.yml" % file if os.path.exists(fullpath): with open(fullpath) as fd: ...
430
0
46
edd0094d77014c17278020051703276e87a9fbca
1,674
py
Python
stream_to_bq.py
VanAurum/gcp-dataflow-stream
f0744e2afb2b1cad434cea737e7c33da0f9c6f84
[ "MIT" ]
null
null
null
stream_to_bq.py
VanAurum/gcp-dataflow-stream
f0744e2afb2b1cad434cea737e7c33da0f9c6f84
[ "MIT" ]
2
2021-04-30T20:58:24.000Z
2021-06-02T00:02:02.000Z
stream_to_bq.py
VanAurum/gcp-dataflow-stream
f0744e2afb2b1cad434cea737e7c33da0f9c6f84
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging import argparse import apache_beam as beam import apache_beam.transforms.window as window '''Normalize pubsub string to json object''' # Lines look like this: # {'datetime': '2017-07-13T21:15:02Z', 'mac': 'FC:FC:48:AE:F6:94', 'status': 1} def run(argv=None): ...
38.045455
130
0.664875
from __future__ import absolute_import import logging import argparse import apache_beam as beam import apache_beam.transforms.window as window '''Normalize pubsub string to json object''' # Lines look like this: # {'datetime': '2017-07-13T21:15:02Z', 'mac': 'FC:FC:48:AE:F6:94', 'status': 1} def parse_pubsub(line):...
117
0
22
d94c2bb00333139d868231ce9412e41d697182d1
1,896
py
Python
SDN_Beginners_with_RYU/part2/ofctl/vlan/topology.py
Brunner-Kibali/RYU-SDN-Code-Playground
9cc6526fe6264c6993fbc6e576b97c144f96c57f
[ "Apache-2.0" ]
null
null
null
SDN_Beginners_with_RYU/part2/ofctl/vlan/topology.py
Brunner-Kibali/RYU-SDN-Code-Playground
9cc6526fe6264c6993fbc6e576b97c144f96c57f
[ "Apache-2.0" ]
null
null
null
SDN_Beginners_with_RYU/part2/ofctl/vlan/topology.py
Brunner-Kibali/RYU-SDN-Code-Playground
9cc6526fe6264c6993fbc6e576b97c144f96c57f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Simple VLAN topology example Linear Topology, Switch1-----Switch2 Switch1-----a1, a2, b1, b2 Switch2-----a3, a4 ,b3, b4 objective: 1. a1,a2,a3,a4, belongs to VLAN 100 2. b1, b2, b3, b4 belongs to VLAN 200 Switch1 to Switch2 connected with 802.1Q TRUNK Links """ from mininet.topo import Top...
27.478261
78
0.604958
#!/usr/bin/python """Simple VLAN topology example Linear Topology, Switch1-----Switch2 Switch1-----a1, a2, b1, b2 Switch2-----a3, a4 ,b3, b4 objective: 1. a1,a2,a3,a4, belongs to VLAN 100 2. b1, b2, b3, b4 belongs to VLAN 200 Switch1 to Switch2 connected with 802.1Q TRUNK Links """ from mininet.topo import Top...
1,070
0
26
cb6f3e6479d694b15767b972b53ef03c92b569f9
1,261
py
Python
chapters/06/src/web/responder/strategy/base.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
13
2020-08-06T17:05:50.000Z
2021-11-08T13:12:11.000Z
chapters/06/src/web/responder/strategy/base.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
4
2020-09-20T05:30:39.000Z
2021-04-01T08:35:40.000Z
chapters/06/src/web/responder/strategy/base.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
12
2020-08-07T06:45:43.000Z
2021-12-08T06:58:23.000Z
# web.responder.strategy.base import json """ Base class for strategies returning JSON responses """
26.829787
94
0.536082
# web.responder.strategy.base import json """ Base class for strategies returning JSON responses """ class Base : headers = [] data = {} error = '' status = 200 link = '' http_status = { 200 : 'OK', 400 : 'BAD REQUEST', 404 : 'NOT FOUND', 500 : ...
782
354
22
06384668c77a4de102f97a0abff46a7011dcdf27
3,305
py
Python
model/lstm.py
LuckyHouse/SpeechGenderRecognition
0ba8342c9d9010984b168e377070f1a142bb3f8e
[ "MIT" ]
4
2019-11-08T07:20:49.000Z
2021-12-09T09:10:36.000Z
model/lstm.py
LuckyHouse/SpeechGenderRecognition
0ba8342c9d9010984b168e377070f1a142bb3f8e
[ "MIT" ]
null
null
null
model/lstm.py
LuckyHouse/SpeechGenderRecognition
0ba8342c9d9010984b168e377070f1a142bb3f8e
[ "MIT" ]
2
2019-11-08T07:20:51.000Z
2021-12-09T09:11:32.000Z
import keras # import tensorflow.keras as keras # from keras.models import Sequential from keras.layers import LSTM,Dense,Activation,SimpleRNN,Conv1D,MaxPool1D,Flatten,Reshape,Dropout,MaxPooling1D,Masking from keras.metrics import categorical_accuracy # from keras.callbacks import EarlyStopping # from keras.metrics imp...
52.460317
172
0.603026
import keras # import tensorflow.keras as keras # from keras.models import Sequential from keras.layers import LSTM,Dense,Activation,SimpleRNN,Conv1D,MaxPool1D,Flatten,Reshape,Dropout,MaxPooling1D,Masking from keras.metrics import categorical_accuracy # from keras.callbacks import EarlyStopping # from keras.metrics imp...
2,880
0
46
425d8c7c5f44c2e40a78b220f413369b8894e110
2,564
py
Python
features/utilities.py
javadch2021/pyfeats
a5d2e24162361a2708d2bbcb7143a44a4e148bcd
[ "MIT" ]
9
2021-11-28T01:51:40.000Z
2022-03-27T12:12:58.000Z
features/utilities.py
javadch2021/pyfeats
a5d2e24162361a2708d2bbcb7143a44a4e148bcd
[ "MIT" ]
3
2022-03-13T03:29:57.000Z
2022-03-23T09:43:08.000Z
features/utilities.py
javadch2021/pyfeats
a5d2e24162361a2708d2bbcb7143a44a4e148bcd
[ "MIT" ]
6
2021-07-08T04:00:37.000Z
2021-11-09T19:12:39.000Z
# -*- coding: utf-8 -*- import numpy as np import math import cv2 __all__ = ['_energy', '_entropy', '_next_power_of_two', '_pad_image_power_2', 'pad_image', '_zero_runs']
33.298701
86
0.533151
# -*- coding: utf-8 -*- import numpy as np import math import cv2 __all__ = ['_energy', '_entropy', '_next_power_of_two', '_pad_image_power_2', 'pad_image', '_zero_runs'] def _energy(x): return np.multiply(x,x).sum() def _entropy(x): return -np.multiply(x, np.log(x+1e-16)).sum() d...
2,199
0
174
a6822cca86ab10a92fbd366103c53f5c566bc7b2
4,795
py
Python
HyAdamC/HyAdamC_Basic.py
Kyungskim8476/Optimization_for_deep_learning
37bec7f34d34b815d976cb2933798acfb895da16
[ "MIT" ]
null
null
null
HyAdamC/HyAdamC_Basic.py
Kyungskim8476/Optimization_for_deep_learning
37bec7f34d34b815d976cb2933798acfb895da16
[ "MIT" ]
null
null
null
HyAdamC/HyAdamC_Basic.py
Kyungskim8476/Optimization_for_deep_learning
37bec7f34d34b815d976cb2933798acfb895da16
[ "MIT" ]
null
null
null
import math import torch from torch.optim import Optimizer
48.928571
131
0.526799
import math import torch from torch.optim import Optimizer class HyAdamC_Basic(Optimizer): device = None gamma = 1.0 def __init__(self, params, lr=1e-3, k_dof=1.0, betas=(0.9, 0.999), eps=1e-8, gamma=1.0): self.gamma = gamma defaults = dict(lr=lr, k_dof=k_dof, betas=betas, eps=ep...
4,479
230
24
3736ebeaff5ce386c0de4031f1ae3597bb60591d
184
py
Python
launcher/globals/LauncherGlobals.py
Trapdoor-NX/switch-launcher
096f186cf449b192b71b11d2df9322ed9ed47950
[ "BSD-3-Clause" ]
15
2018-05-10T11:27:50.000Z
2018-05-22T22:28:45.000Z
launcher/globals/LauncherGlobals.py
Trapdoor-NX/switch-launcher
096f186cf449b192b71b11d2df9322ed9ed47950
[ "BSD-3-Clause" ]
1
2019-03-30T23:47:43.000Z
2019-04-04T07:11:50.000Z
launcher/globals/LauncherGlobals.py
Trapdoor-NX/switch-launcher
096f186cf449b192b71b11d2df9322ed9ed47950
[ "BSD-3-Clause" ]
1
2019-09-22T04:18:37.000Z
2019-09-22T04:18:37.000Z
""" * Written by the Trapdoor-NX team, May 8, 2018. * Licensing information can found in the 'LICENSE' file. * Injector based on reswitched/fusee-launcher. """ CURR_VERSION = '0.1'
26.285714
57
0.706522
""" * Written by the Trapdoor-NX team, May 8, 2018. * Licensing information can found in the 'LICENSE' file. * Injector based on reswitched/fusee-launcher. """ CURR_VERSION = '0.1'
0
0
0
e131a5022e66d8caf86cafef3420a4cbc7ab769e
293
py
Python
examples/docs_snippets_crag/docs_snippets_crag_tests/intro_tutorial_tests/basics/test_complex_pipeline.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
examples/docs_snippets_crag/docs_snippets_crag_tests/intro_tutorial_tests/basics/test_complex_pipeline.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
examples/docs_snippets_crag/docs_snippets_crag_tests/intro_tutorial_tests/basics/test_complex_pipeline.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
from docs_snippets_crag.intro_tutorial.basics.connecting_solids.complex_pipeline import diamond from docs_snippets_crag.intro_tutorial.test_util import patch_cereal_requests @patch_cereal_requests
32.555556
95
0.860068
from docs_snippets_crag.intro_tutorial.basics.connecting_solids.complex_pipeline import diamond from docs_snippets_crag.intro_tutorial.test_util import patch_cereal_requests @patch_cereal_requests def test_complex_graph(): result = diamond.execute_in_process() assert result.success
72
0
22
e497e7f3f770774c5bec3a67be563380312efdd2
64
py
Python
test.py
bmyerz/pysh
693225040ca1f4d8d9ddeeed16b4b8b01541b84f
[ "MIT" ]
null
null
null
test.py
bmyerz/pysh
693225040ca1f4d8d9ddeeed16b4b8b01541b84f
[ "MIT" ]
null
null
null
test.py
bmyerz/pysh
693225040ca1f4d8d9ddeeed16b4b8b01541b84f
[ "MIT" ]
null
null
null
from pysh import pysh a = 1 b = 2 pysh(s['echo $HOME {a} {b}'])
12.8
29
0.578125
from pysh import pysh a = 1 b = 2 pysh(s['echo $HOME {a} {b}'])
0
0
0
a2ec3b39aacd16f080ba698aeee319b68257823e
386
py
Python
setup.py
mdcg/slack-hermes
18330307f5a491dfda5d0ecc369adb3cff21f49a
[ "MIT" ]
1
2020-02-27T18:46:37.000Z
2020-02-27T18:46:37.000Z
setup.py
mdcg/slack-hermes
18330307f5a491dfda5d0ecc369adb3cff21f49a
[ "MIT" ]
null
null
null
setup.py
mdcg/slack-hermes
18330307f5a491dfda5d0ecc369adb3cff21f49a
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup requirements = ["slackclient==2.5.0"] setup( name="slackhermes", version="1.0.0", description="A message notifier for Slack", author="mdcg", url="https://github.com/mdcg/slack-hermes", packages=find_packages(exclude=["tests"]), install_requires=r...
24.125
47
0.696891
from setuptools import find_packages, setup requirements = ["slackclient==2.5.0"] setup( name="slackhermes", version="1.0.0", description="A message notifier for Slack", author="mdcg", url="https://github.com/mdcg/slack-hermes", packages=find_packages(exclude=["tests"]), install_requires=r...
0
0
0
ad47b635b71330042fc78e893a2204b04da03904
8,301
py
Python
crimsobot/utils/text.py
keli5/crimsoBOT
f9489ffbaa115357f910afd562fa2516932c5872
[ "MIT" ]
11
2020-06-28T15:18:13.000Z
2022-02-05T23:09:20.000Z
crimsobot/utils/text.py
keli5/crimsoBOT
f9489ffbaa115357f910afd562fa2516932c5872
[ "MIT" ]
18
2020-03-24T03:18:12.000Z
2022-03-12T01:07:29.000Z
crimsobot/utils/text.py
h-anjru/crimsoBOT
8e678a6408ae99e740abfc8ab337543c666c1fb1
[ "MIT" ]
6
2020-05-08T19:35:49.000Z
2022-02-05T23:09:21.000Z
import re from typing import Any import pendulum from timezonefinder import TimezoneFinder from crimsobot.exceptions import LocationNotFound from crimsobot.utils.astronomy import where_are_you from crimsobot.utils.tools import clib_path_join # This any param is a bummer but it's the only way I can see to make m...
30.076087
100
0.499096
import re from typing import Any import pendulum from timezonefinder import TimezoneFinder from crimsobot.exceptions import LocationNotFound from crimsobot.utils.astronomy import where_are_you from crimsobot.utils.tools import clib_path_join def block(message: str) -> str: block = ':regional_indicator_' num...
8,072
0
114
ef89ae653b52ceb60ad670b2c5c1ffbb89d2b05e
1,673
py
Python
mplisp/functions/special_forms/lambda_expression.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
mplisp/functions/special_forms/lambda_expression.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
mplisp/functions/special_forms/lambda_expression.py
sukovanej/mplisp
a3faf8c06936bcc5cde59899abf41a1b379090f5
[ "MIT" ]
null
null
null
""" Lambda, let, let* Examples: (let ( (a 6)) (* a 1)) """ from typing import List import copy import concurrent.futures from mplisp.structures import env, tree from mplisp import evaluator def lambda_expression(args: List, node): """Return lambda expression""" if len(args) != 2: eval...
27.42623
123
0.662283
""" Lambda, let, let* Examples: (let ( (a 6)) (* a 1)) """ from typing import List import copy import concurrent.futures from mplisp.structures import env, tree from mplisp import evaluator def lambda_expression(args: List, node): """Return lambda expression""" if len(args) != 2: eval...
50
0
30
a82bfee14f9380df1c858837d77b3417b70f7a4f
498
py
Python
merge.py
jankais3r/Video-Depthify
645a61e59dec029f0f52be9e0205d4e89022b6b1
[ "MIT" ]
9
2021-06-08T22:28:32.000Z
2022-02-24T08:28:46.000Z
merge.py
jankais3r/Video-Depthify
645a61e59dec029f0f52be9e0205d4e89022b6b1
[ "MIT" ]
2
2021-07-08T15:39:15.000Z
2022-03-07T23:12:01.000Z
merge.py
jankais3r/Video-Depthify
645a61e59dec029f0f52be9e0205d4e89022b6b1
[ "MIT" ]
4
2021-06-07T21:58:30.000Z
2022-02-24T08:28:47.000Z
#!/usr/bin/env python3 import glob from PIL import Image for file in glob.glob("./rgb/*.jpg"): im1 = Image.open(file) try: im2 = Image.open(file.replace('rgb', 'averaged')) except: im2 = Image.open(file.replace('rgb', 'depth')) get_concat_v(im1, im2).save(file.replace('rgb', 'merged')) #print("Merged: " + fi...
24.9
61
0.656627
#!/usr/bin/env python3 import glob from PIL import Image def get_concat_v(im1, im2): dst = Image.new('RGB', (im1.width, im1.height + im2.height)) dst.paste(im1, (0, 0)) dst.paste(im2, (0, im1.height)) return dst for file in glob.glob("./rgb/*.jpg"): im1 = Image.open(file) try: im2 = Image.open(file.replace('...
137
0
23
6fd3f57e604ef98b4559da3f3f7cfb034c38db88
12,527
py
Python
lib/rgbmatrix.py
bopopescu/ros
5dc6e23a280e1283de7b38f35116332a79ca33d2
[ "MIT" ]
null
null
null
lib/rgbmatrix.py
bopopescu/ros
5dc6e23a280e1283de7b38f35116332a79ca33d2
[ "MIT" ]
null
null
null
lib/rgbmatrix.py
bopopescu/ros
5dc6e23a280e1283de7b38f35116332a79ca33d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, time, colorsys, threading from enum import Enum try: import numpy except ImportError: sys.exit("This script requires the numpy module\nInstall with: sudo pip3 install numpy") from lib.logger import Level, Logger from lib.feature import Feature from lib.enums import Color fr...
34.89415
117
0.453101
#!/usr/bin/env python3 import sys, time, colorsys, threading from enum import Enum try: import numpy except ImportError: sys.exit("This script requires the numpy module\nInstall with: sudo pip3 install numpy") from lib.logger import Level, Logger from lib.feature import Feature from lib.enums import Color fr...
3,345
99
282
348c1a03de5ae6cda71e908b7eb841d23ecdebf1
201
py
Python
src/openpersonen/api/enum/functie_adres.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
2
2020-08-26T11:24:43.000Z
2021-07-28T09:46:40.000Z
src/openpersonen/api/enum/functie_adres.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
153
2020-08-26T10:45:35.000Z
2021-12-10T17:33:16.000Z
src/openpersonen/api/enum/functie_adres.py
maykinmedia/open-personen
ddcf083ccd4eb864c5305bcd8bc75c6c64108272
[ "RSA-MD" ]
null
null
null
from djchoices import ChoiceItem, DjangoChoices
28.714286
55
0.776119
from djchoices import ChoiceItem, DjangoChoices class FunctieAdresChoices(DjangoChoices): woonadres = ChoiceItem("woonadres", "Woonadres") briefadres = ChoiceItem("briefadres", "briefadres")
0
129
23
2b1a4c6401377c4e288636ef5d988082a1d4df90
28
py
Python
snakebids/resources/__init__.py
pvandyken/snakebids
10186d116dc016769e6b43c67f10e0d50264d053
[ "MIT" ]
null
null
null
snakebids/resources/__init__.py
pvandyken/snakebids
10186d116dc016769e6b43c67f10e0d50264d053
[ "MIT" ]
2
2022-02-11T22:08:36.000Z
2022-02-11T22:08:47.000Z
snakebids/resources/__init__.py
pvandyken/snakebids
10186d116dc016769e6b43c67f10e0d50264d053
[ "MIT" ]
null
null
null
# flake8: noqa __all__ = []
9.333333
14
0.607143
# flake8: noqa __all__ = []
0
0
0
8702d9ccd26fb33ff2a7c3bdf5ca119599500b01
247
py
Python
secbox/sign/sign_app.py
jeziellago/android-sec-box
78c1feb577eb644036317ee40150fb91365ab440
[ "Apache-2.0" ]
29
2020-04-02T06:09:56.000Z
2021-11-08T11:45:46.000Z
secbox/sign/sign_app.py
jeziellago/android-sec-box
78c1feb577eb644036317ee40150fb91365ab440
[ "Apache-2.0" ]
null
null
null
secbox/sign/sign_app.py
jeziellago/android-sec-box
78c1feb577eb644036317ee40150fb91365ab440
[ "Apache-2.0" ]
5
2020-04-02T06:09:57.000Z
2021-03-05T15:17:46.000Z
from os import system
27.444444
83
0.676113
from os import system def sign_apk(apk_path): proc = system( 'jarsigner -verbose -sigalg SHA1withRSA -storepass android \ -digestalg SHA1 -keystore sign/key.keystore %s androiddebugkey ' % apk_path ) return proc == 0
201
0
23
6271c20396f1e9fc505fb6d95324f9bd9d4dafa1
3,589
py
Python
models/old_models/vaenet.py
WatChMaL/CNN
2e14397bca6ced2fdfeab406e3c28561bb3af384
[ "CNRI-Python", "RSA-MD" ]
3
2019-05-10T01:38:07.000Z
2021-09-06T16:30:18.000Z
models/old_models/vaenet.py
WatChMaL/VAE
2e14397bca6ced2fdfeab406e3c28561bb3af384
[ "CNRI-Python", "RSA-MD" ]
3
2019-05-11T02:44:53.000Z
2019-05-24T18:37:58.000Z
models/old_models/vaenet.py
WatChMaL/CNN
2e14397bca6ced2fdfeab406e3c28561bb3af384
[ "CNRI-Python", "RSA-MD" ]
8
2019-05-06T22:39:39.000Z
2020-11-29T17:15:50.000Z
""" vaenet.py PyTorch implementation of a Convolutional Neural Network Variational Autoencoder ( VaeNet ) Author : Abhishek . """ # PyTorch Imports import torch.nn as nn # VaeNet class # Initializer for the ConvNetVAE model # Method for the forward pass # Method for the encoder la...
42.72619
105
0.619671
""" vaenet.py PyTorch implementation of a Convolutional Neural Network Variational Autoencoder ( VaeNet ) Author : Abhishek . """ # PyTorch Imports import torch.nn as nn # VaeNet class class VaeNet(nn.Module): # Initializer for the ConvNetVAE model def __init__(self, num_input_channels=19, num_latent_d...
3,019
3
153
66f27b3b918c245ec30ffb47a08658fc60fa8667
568
py
Python
app/__init__.py
PyREit/pyreit.github.io
997287c6eb0fed16bae3e620ae49dc5bf58f0d9d
[ "MIT" ]
3
2018-07-25T10:51:27.000Z
2020-03-15T17:45:13.000Z
app/__init__.py
PyREit/PyRE
997287c6eb0fed16bae3e620ae49dc5bf58f0d9d
[ "MIT" ]
null
null
null
app/__init__.py
PyREit/PyRE
997287c6eb0fed16bae3e620ae49dc5bf58f0d9d
[ "MIT" ]
3
2016-10-03T06:27:34.000Z
2018-07-10T09:16:25.000Z
# Import di flask e degli operatori di templating from flask import Flask, render_template from flask_mail import Mail # Definizione oggetto WSGI app = Flask(__name__) mail = Mail(app) # Configurazioni app.config.from_object('config') app.secret_key = app.config['CSRF_SESSION_KEY'] # HTTP error handling @app.errorh...
23.666667
77
0.783451
# Import di flask e degli operatori di templating from flask import Flask, render_template from flask_mail import Mail # Definizione oggetto WSGI app = Flask(__name__) mail = Mail(app) # Configurazioni app.config.from_object('config') app.secret_key = app.config['CSRF_SESSION_KEY'] # HTTP error handling @app.errorh...
44
0
22
37f0fc9a05516e1ab5fb26a736dca8f8edde7b01
63,805
py
Python
pyoo.py
JavaScriptDude/pyoo
242234b9dd6de9037de8c90cfcad0599ab514226
[ "MIT" ]
29
2017-12-13T17:36:25.000Z
2021-07-01T09:19:24.000Z
pyoo.py
JavaScriptDude/pyoo
242234b9dd6de9037de8c90cfcad0599ab514226
[ "MIT" ]
10
2019-04-02T15:26:58.000Z
2021-11-29T20:11:15.000Z
pyoo.py
JavaScriptDude/pyoo
242234b9dd6de9037de8c90cfcad0599ab514226
[ "MIT" ]
8
2017-12-21T10:32:51.000Z
2021-07-09T09:50:36.000Z
""" PyOO - Pythonic interface to Apache OpenOffice API (UNO) Copyright (c) 2016-2017 Seznam.cz, a.s. Copyright (c) 2017-2019 Miloslav Pojman """ from __future__ import division import datetime import functools import itertools import numbers import os import sys import uno # Filters used when saving document. FI...
32.404774
141
0.637082
""" PyOO - Pythonic interface to Apache OpenOffice API (UNO) Copyright (c) 2016-2017 Seznam.cz, a.s. Copyright (c) 2017-2019 Miloslav Pojman """ from __future__ import division import datetime import functools import itertools import numbers import os import sys import uno # Filters used when saving document. FI...
12,462
674
1,725
d24c75753ad5caa7a1a2e9900d04f82a3777485b
3,575
py
Python
learn_example.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
35
2018-03-15T14:26:33.000Z
2022-02-09T15:37:59.000Z
learn_example.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
1
2020-11-03T04:49:43.000Z
2020-11-17T16:42:48.000Z
learn_example.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
12
2018-04-28T20:11:21.000Z
2021-09-18T22:24:46.000Z
# Author: Zi Wang import cPickle as pickle import os import active_learners.helper as helper from active_learners.active_learner import run_ActiveLearner def gen_data(expid, exp, n_data, save_fnm): ''' Generate initial data for a function associated the experiment. Args: expid: ID of the experimen...
36.479592
83
0.633566
# Author: Zi Wang import cPickle as pickle import os import active_learners.helper as helper from active_learners.active_learner import run_ActiveLearner def gen_data(expid, exp, n_data, save_fnm): ''' Generate initial data for a function associated the experiment. Args: expid: ID of the experimen...
0
0
0
b4a4d274de5bef93dd6f606b38e12fd7d597cd7b
3,151
py
Python
Simulation/dance_moves.py
marakaspers/dancing-robot
96acd30a052a73a1b9ac1beebadfc31f22a71b17
[ "MIT" ]
null
null
null
Simulation/dance_moves.py
marakaspers/dancing-robot
96acd30a052a73a1b9ac1beebadfc31f22a71b17
[ "MIT" ]
null
null
null
Simulation/dance_moves.py
marakaspers/dancing-robot
96acd30a052a73a1b9ac1beebadfc31f22a71b17
[ "MIT" ]
null
null
null
import pybullet as p import time import pybullet_data from math import sin, cos import random physicsClient= p.connect(p.GUI)#or p.DIRECTfor non-graphical version p.setAdditionalSearchPath(pybullet_data.getDataPath()) #optionally p.setGravity(0,0,-10) planeId= p.loadURDF("plane.urdf") robotStartPos= [0,0,1] robotStar...
37.963855
123
0.690892
import pybullet as p import time import pybullet_data from math import sin, cos import random physicsClient= p.connect(p.GUI)#or p.DIRECTfor non-graphical version p.setAdditionalSearchPath(pybullet_data.getDataPath()) #optionally p.setGravity(0,0,-10) planeId= p.loadURDF("plane.urdf") robotStartPos= [0,0,1] robotStar...
0
0
0
084fcd85c33309640a6447a25a86394504f2ce38
10,463
py
Python
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_ome_network_vlan_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_ome_network_vlan_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_ome_network_vlan_info.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Dell EMC OpenManage Ansible Modules # Version 2.1.3 # Copyright (C) 2020 Dell Inc. or its subsidiaries. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_function) _...
53.382653
120
0.646469
# -*- coding: utf-8 -*- # # Dell EMC OpenManage Ansible Modules # Version 2.1.3 # Copyright (C) 2020 Dell Inc. or its subsidiaries. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_function) _...
6,601
0
241
1eaf917fcf46af20e98f8c380ef16042692e0437
5,287
py
Python
brownies/legacy/toENDF6/PoPs_toENDF6/decays/decayData.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
brownies/legacy/toENDF6/PoPs_toENDF6/decays/decayData.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
brownies/legacy/toENDF6/PoPs_toENDF6/decays/decayData.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> from math import sqrt from brownies.legacy.toENDF6 import endfFormats as endfFormatsModule from brownies.legacy.converting.E...
41.304688
120
0.597314
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> from math import sqrt from brownies.legacy.toENDF6 import endfFormats as endfFormatsModule from brownies.legacy.converting.E...
4,579
0
23