hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
b423287a01e7775632fe86e5cc082426aed1cfe0
407
py
Python
src/ifgsim/tests/test_ifgsim.py
tlatzko/gaia
550bb3f8066a8cd9e3bcf7ac83ba018f548d6981
[ "MIT" ]
1
2016-08-29T17:34:01.000Z
2016-08-29T17:34:01.000Z
src/ifgsim/tests/test_ifgsim.py
tlatzko/gaia
550bb3f8066a8cd9e3bcf7ac83ba018f548d6981
[ "MIT" ]
null
null
null
src/ifgsim/tests/test_ifgsim.py
tlatzko/gaia
550bb3f8066a8cd9e3bcf7ac83ba018f548d6981
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_ifgsim ---------------------------------- Tests for `ifgsim` module. """ import sys import unittest if __name__ == '__main__': sys.exit(unittest.main())
11.970588
36
0.572482
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_ifgsim ---------------------------------- Tests for `ifgsim` module. """ import sys import unittest from ifgsim import ifgsim class TestIfgsim(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_000_som...
0
0
0
136
0
0
0
4
46
590f07ca03ec126700a5cde9d5939ddeb7366711
237
py
Python
setup.py
birr-data/capstone2
a9fb471313fc23b2ea275faa658405d3569c60fd
[ "FTL" ]
null
null
null
setup.py
birr-data/capstone2
a9fb471313fc23b2ea275faa658405d3569c60fd
[ "FTL" ]
null
null
null
setup.py
birr-data/capstone2
a9fb471313fc23b2ea275faa658405d3569c60fd
[ "FTL" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Springboard Data Science Program Capstone 2 Project', author='Manuel J Gomez', license='', )
21.545455
70
0.683544
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Springboard Data Science Program Capstone 2 Project', author='Manuel J Gomez', license='', )
0
0
0
0
0
0
0
0
0
d8e19476fa995ab2c9b31f17858d98961b158c2d
407
py
Python
test_item_card.py
erolatex/PyTest-parametrize
ec6e8167359b79ea12ee53677bed2153e6ddd868
[ "MIT" ]
null
null
null
test_item_card.py
erolatex/PyTest-parametrize
ec6e8167359b79ea12ee53677bed2153e6ddd868
[ "MIT" ]
null
null
null
test_item_card.py
erolatex/PyTest-parametrize
ec6e8167359b79ea12ee53677bed2153e6ddd868
[ "MIT" ]
null
null
null
link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/"
33.916667
84
0.77887
import time from selenium.webdriver.support import expected_conditions as EC link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/" def test_order_button_presence(browser): browser.get(link) #time.sleep(30) basket_button = browser.find_element_by_css_selector(".btn-add-to-basket"...
0
0
0
0
0
229
0
33
67
b9fc8ed88602c732627ffe4530f12d73fe7c7f98
2,208
py
Python
script_extractSkeletons.py
paolorota/social_map
7f49e60bd076b2022df68611be2fb0bfbd6e200a
[ "MIT" ]
null
null
null
script_extractSkeletons.py
paolorota/social_map
7f49e60bd076b2022df68611be2fb0bfbd6e200a
[ "MIT" ]
null
null
null
script_extractSkeletons.py
paolorota/social_map
7f49e60bd076b2022df68611be2fb0bfbd6e200a
[ "MIT" ]
null
null
null
import pyopenpose as op import glob from os.path import join import cv2 import numpy as np import tqdm import json source_dir = '/data/social_map/behave01' output_file = '/data/social_map/list.txt' model_folder = "/home/prota/Desktop/openpose/models" filelist = glob.glob(join(source_dir, '*.png')) filelist.sort() ...
29.837838
94
0.556159
import pyopenpose as op import glob from os.path import join import cv2 import numpy as np import tqdm import json from json import JSONEncoder class NumpyArrayEncoder(JSONEncoder): def default(self, obj): if isinstance(obj, np.ndarray): return obj.tolist() return JSONEncoder.default(s...
0
0
0
162
0
0
0
7
45
5b8913a2df5ae972644d03f0b4122b6178f1e5d1
11,915
py
Python
backup/backup.py
matthewrkitson/obs-utilities
15495ce8b8c17872586fd003b8a44bde5c9d203f
[ "MIT" ]
null
null
null
backup/backup.py
matthewrkitson/obs-utilities
15495ce8b8c17872586fd003b8a44bde5c9d203f
[ "MIT" ]
5
2020-12-28T16:15:17.000Z
2020-12-30T11:04:16.000Z
backup/backup.py
matthewrkitson/obs-utilities
15495ce8b8c17872586fd003b8a44bde5c9d203f
[ "MIT" ]
null
null
null
import os import wx import wx if __name__ == "__main__": app = wx.App() backup = Backup(os.path.expanduser("~/obs-backups"), os.path.expanduser("~/.config/obs-studio")) obs = Obs() frame = ObsBackupFrame(title="OBS Backup Tool", backup=backup, obs=obs) frame.Show() app.MainLoop()
41.371528
153
0.662946
import datetime import os import psutil import shutil import subprocess import wx class Obs: def __init__(self): pass def is_running(self): try: return any([proc.name().lower() == "obs" for proc in psutil.process_iter()]) except: return False class Backup: ...
0
1,421
0
10,055
0
0
0
-26
157
ea6981811a6bde3890e4fd29196e4dda551e7470
5,474
py
Python
3-classification/classificationSVM.py.py
parisaheidarei/YRPC
41415104afc42eb98adf9be07b65e81d414f5f82
[ "MIT" ]
null
null
null
3-classification/classificationSVM.py.py
parisaheidarei/YRPC
41415104afc42eb98adf9be07b65e81d414f5f82
[ "MIT" ]
null
null
null
3-classification/classificationSVM.py.py
parisaheidarei/YRPC
41415104afc42eb98adf9be07b65e81d414f5f82
[ "MIT" ]
null
null
null
# data_root = 'C:/Users/parisa/Desktop/csYRPCai/project/train/' # import numpy as np # import pandas as pd # train_photos = pd.read_csv(data_root+'train_photo_to_biz_ids.csv') # train_photo_to_biz = pd.read_csv(data_root+'train_photo_to_biz_ids.csv', index_col='photo_id') # train_df = pd.read_csv(data_root+"tra...
38.549296
126
0.742784
# data_root = 'C:/Users/parisa/Desktop/csYRPCai/project/train/' # import numpy as np # import pandas as pd # train_photos = pd.read_csv(data_root+'train_photo_to_biz_ids.csv') # train_photo_to_biz = pd.read_csv(data_root+'train_photo_to_biz_ids.csv', index_col='photo_id') # train_df = pd.read_csv(data_root+"tra...
0
0
0
0
0
279
0
0
48
1674844e5d234c0cde4ca21a5615c8c2cf808ec4
4,136
py
Python
test/domestic_test.py
taotaotututu/ncov_data
58a40ac4b66d93f1a75a10907ae82f2cadb40d02
[ "MIT" ]
null
null
null
test/domestic_test.py
taotaotututu/ncov_data
58a40ac4b66d93f1a75a10907ae82f2cadb40d02
[ "MIT" ]
null
null
null
test/domestic_test.py
taotaotututu/ncov_data
58a40ac4b66d93f1a75a10907ae82f2cadb40d02
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- ''' Created on 2021/12/11 @author: WHT ''' import unittest if __name__ == '__main__': unittest.main()
35.350427
75
0.440522
# -*- coding:utf-8 -*- ''' Created on 2021/12/11 @author: WHT ''' import unittest import datafactory.futures.domestic as dom class Test(unittest.TestCase): def set_data(self): #self.symbol = '600848' self.date = '2021-12-09' #self.start = '2014-11-24' #self.end = '2016-02-29' ...
0
0
0
3,939
0
0
0
21
45
2a44af6e4f30ee74fa680c6e16874384e9faedae
1,174
py
Python
exercicio-02.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-02.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-02.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np idade = ('0 a 4', '5 a 9', '10 a 14', '15 a 19', '20 a 24', '25 a 29', '30 a 34', '35 a 39', '40 a 44', '45 a 49', '50 a 54', '55 a 59', '60 a 64', '65 a 69', '70 a 74', '75 a 79', '80 a 84', '85 a 89', '90 a 94', '95 a 99', ...
36.6875
68
0.591141
import matplotlib.pyplot as plt import numpy as np idade = ('0 a 4', '5 a 9', '10 a 14', '15 a 19', '20 a 24', '25 a 29', '30 a 34', '35 a 39', '40 a 44', '45 a 49', '50 a 54', '55 a 59', '60 a 64', '65 a 69', '70 a 74', '75 a 79', '80 a 84', '85 a 89', '90 a 94', '95 a 99', ...
0
0
0
0
0
0
0
0
0
f0dc471703f991676e72d0feef41844919dd2068
28,342
py
Python
claripy/claripy/operations.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
claripy/claripy/operations.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
claripy/claripy/operations.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
import itertools # # Extra processors # union_counter = itertools.count() preprocessors = { 'union': preprocess_union, #'intersection': preprocess_intersect } # # Simplifiers # SIMPLE_OPS = ('Concat', 'SignExt', 'ZeroExt') # oh gods simplifiers = { 'Reverse': boolean_reverse_simplifier, 'And': bo...
31.491111
188
0.594242
import operator import itertools import collections from .utils import OrderedSet def op(name, arg_types, return_type, extra_check=None, calc_length=None, do_coerce=True, bound=True): #pylint:disable=unused-argument if type(arg_types) in (tuple, list): #pylint:disable=unidiomatic-typecheck expected_num_ar...
0
0
0
0
2,779
17,288
0
44
890
4a294a073e4440e341ef9948b85546bcc49524ba
257
py
Python
catkin_boost_python_buildtool/catkin_boost_python_buildtool_test/test/test.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
2
2020-11-24T11:16:48.000Z
2021-04-02T05:14:44.000Z
catkin_boost_python_buildtool/catkin_boost_python_buildtool_test/test/test.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
1
2021-02-19T14:31:39.000Z
2021-12-24T02:55:39.000Z
catkin_boost_python_buildtool/catkin_boost_python_buildtool_test/test/test.py
565353780/pytorch-voxblox-plus-plus
fd319495b36651cf8c0c9244e0f664fac1afd5ca
[ "BSD-3-Clause" ]
3
2021-03-24T08:34:25.000Z
2022-02-28T07:17:54.000Z
#!/usr/bin/env python import unittest if __name__ == '__main__': unittest.main()
16.0625
39
0.727626
#!/usr/bin/env python import unittest import catkin_boost_python_test as cbpt from nose import SkipTest class TestTest(unittest.TestCase): def test_test(self): self.assertEqual(cbpt.test(), 42) if __name__ == '__main__': unittest.main()
0
0
0
78
0
0
0
22
68
a2501e24aa712d7ddb060fe6ecaccd708b7467f5
1,031
py
Python
day2/netmiko/netmiko_ex2.py
caseymorris87/pynet-ons-dec21
6dea8bfc3620225656a765cb0f5be7d055fb474f
[ "Apache-2.0" ]
1
2021-12-21T04:57:32.000Z
2021-12-21T04:57:32.000Z
day2/netmiko/netmiko_ex2.py
caseymorris87/pynet-ons-dec21
6dea8bfc3620225656a765cb0f5be7d055fb474f
[ "Apache-2.0" ]
null
null
null
day2/netmiko/netmiko_ex2.py
caseymorris87/pynet-ons-dec21
6dea8bfc3620225656a765cb0f5be7d055fb474f
[ "Apache-2.0" ]
11
2021-12-07T16:04:22.000Z
2022-02-09T12:20:05.000Z
#!/usr/bin/env python """Exercises using Netmiko""" from __future__ import print_function from getpass import getpass from netmiko import ConnectHandler def main(): """Exercises using Netmiko""" passwd = getpass("Enter password: ") device = { "device_type": "cisco_nxos", "host": "nxos1.la...
25.146341
65
0.600388
#!/usr/bin/env python """Exercises using Netmiko""" from __future__ import print_function from getpass import getpass from netmiko import ConnectHandler def main(): """Exercises using Netmiko""" passwd = getpass("Enter password: ") device = { "device_type": "cisco_nxos", "host": "nxos1.la...
0
0
0
0
0
0
0
0
0
bd0d2096cbd1c817fe658c04346514721998a5d7
671
py
Python
compsocsite/polls/migrations/0053_auto_20160719_1935.py
ReedyChen/opra
86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f
[ "MIT" ]
8
2017-03-07T19:46:51.000Z
2021-06-01T01:41:37.000Z
compsocsite/polls/migrations/0053_auto_20160719_1935.py
ReedyChen/opra
86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f
[ "MIT" ]
null
null
null
compsocsite/polls/migrations/0053_auto_20160719_1935.py
ReedyChen/opra
86ce88c7219d92e321cd9aa3d0bc2bf631e4b90f
[ "MIT" ]
9
2016-06-09T03:36:20.000Z
2019-09-11T20:56:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-19 18:35 from __future__ import unicode_literals
23.964286
73
0.591654
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-19 18:35 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0052_response_comment'), ] operations = [ migrations.RemoveField( ...
0
0
0
493
0
0
0
19
46
38ae7c50b1a600e6e4b98390345ac2f262b541ff
1,265
py
Python
Rules/RuleAllSpace.py
soumikmohianuta/pixtoapp
f103a580e015ef7779998f14c9533a238a4bf1d1
[ "BSD-3-Clause" ]
31
2018-03-19T19:30:29.000Z
2022-02-16T08:50:42.000Z
Rules/RuleAllSpace.py
soumikmohianuta/pixtoapp
f103a580e015ef7779998f14c9533a238a4bf1d1
[ "BSD-3-Clause" ]
4
2018-10-04T08:01:15.000Z
2019-04-25T15:50:36.000Z
Rules/RuleAllSpace.py
soumikmohianuta/pixtoapp
f103a580e015ef7779998f14c9533a238a4bf1d1
[ "BSD-3-Clause" ]
12
2018-07-24T18:52:07.000Z
2021-07-15T11:36:14.000Z
# Contain: all spaces, all invisible chars, or all non-ascii chars # * # * @param text # * @return # */
28.111111
95
0.64664
from Rules.ASingleRule import ASingleRule from Utils import ColorUtil from RectUtils import RectUtil from Rules.TextValidator import TextValidator from Utils import Constants from Utils import GroupUtil from Utils import TextUtils from string import printable def containAllSpacesOrInvalidChars(text): if TextUtils...
0
0
0
459
0
365
0
84
222
3216c6dae79761d0693e1b2e6ab01fefd6310a66
489
py
Python
object/HiloInterfaz.py
martinezmizael/Escribir-con-la-mente
f93456bc2ff817cf0ae808a0f711168f82e142ff
[ "MIT" ]
null
null
null
object/HiloInterfaz.py
martinezmizael/Escribir-con-la-mente
f93456bc2ff817cf0ae808a0f711168f82e142ff
[ "MIT" ]
null
null
null
object/HiloInterfaz.py
martinezmizael/Escribir-con-la-mente
f93456bc2ff817cf0ae808a0f711168f82e142ff
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' Created on: 2015 Author: Mizael Martinez ''' import sys sys.path.append("../view")
18.111111
48
0.713701
# -*- encoding: utf-8 -*- ''' Created on: 2015 Author: Mizael Martinez ''' import sys, os,threading, time sys.path.append("../view") from inicio import Ui_inicio from PyQt4 import QtCore, QtGui class HiloInterfaz(threading.Thread): def __init__(self,evento,datos,login,inicio): threading.Thread.__init_...
0
0
0
260
0
0
0
37
68
fcb28294aaa889396d0e3e5fcc04b8d73e8eba4e
3,022
py
Python
main.py
Resisst/Phosphate
a347e85891ec7704b1a6ff8a7e6b467363d9b010
[ "MIT" ]
null
null
null
main.py
Resisst/Phosphate
a347e85891ec7704b1a6ff8a7e6b467363d9b010
[ "MIT" ]
null
null
null
main.py
Resisst/Phosphate
a347e85891ec7704b1a6ff8a7e6b467363d9b010
[ "MIT" ]
null
null
null
reverse_shuffle = """ def f(s:str): if len(s) % 4 == 0: l = int(len(s) / 2) s = s[l:] + s[:l] l = int(l / 2) s = s[l:] + s[:l] l = l * 2 s = s[l:] + s[:l] return s else: return False""" deobfuscate_function = """ h = p + o def b(s...
30.22
206
0.485771
import phosphate from colorama import Fore from codecs import encode as c_encode reverse_shuffle = """ def f(s:str): if len(s) % 4 == 0: l = int(len(s) / 2) s = s[l:] + s[:l] l = int(l / 2) s = s[l:] + s[:l] l = l * 2 s = s[l:] + s[:l] return s ...
0
0
0
0
0
1,584
0
15
117
c7944611ab5127a9345f4cdd5c08aa32a7a9f93f
1,216
py
Python
two_factor/management/commands/verifytoken.py
chartbeat/django-two-factor-auth
5d52f6d221fc7a3353cd8cbaf4d057387f88e029
[ "MIT" ]
null
null
null
two_factor/management/commands/verifytoken.py
chartbeat/django-two-factor-auth
5d52f6d221fc7a3353cd8cbaf4d057387f88e029
[ "MIT" ]
null
null
null
two_factor/management/commands/verifytoken.py
chartbeat/django-two-factor-auth
5d52f6d221fc7a3353cd8cbaf4d057387f88e029
[ "MIT" ]
null
null
null
from __future__ import print_function from django.conf import settings TF_FORWARD_DRIFT = getattr(settings,'TF_FORWARD_DRIFT', 1) TF_BACKWARD_DRIFT = getattr(settings,'TF_BACKWARD_DRIFT', 1)
35.764706
77
0.645559
from __future__ import print_function from django.contrib.auth.models import User from django.core.management import BaseCommand, CommandError from oath.totp import accept_totp from django.conf import settings TF_FORWARD_DRIFT = getattr(settings,'TF_FORWARD_DRIFT', 1) TF_BACKWARD_DRIFT = getattr(settings,'TF_BACKWARD_...
0
0
0
861
0
0
0
73
89
52e7af4dd9ee10ed721c4a4a3f1b0de564231028
1,276
py
Python
python/pipeline/codex/cli/utils.py
eric-czech/codex
23e880d483bf4c57809ebbd214640f6246c8fd37
[ "Apache-2.0" ]
null
null
null
python/pipeline/codex/cli/utils.py
eric-czech/codex
23e880d483bf4c57809ebbd214640f6246c8fd37
[ "Apache-2.0" ]
null
null
null
python/pipeline/codex/cli/utils.py
eric-czech/codex
23e880d483bf4c57809ebbd214640f6246c8fd37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Utility CLI Application This CLI is helpful for managing CODEX metadata """ import fire # RegionNumber TileX TileY Xposition Yposition # 1 1 1 0 0 # 1 1 2 0 1008 # 1 1 3 0 2016 # 1 1 4 0 3024 # 1 1 5 0 4032 # 1 2 1 1344 0 # 1 2 2 1344 1008 # 1 2 3 1344 2016 # 1 2 4 1344 3024 if __name__ == '__ma...
28.355556
101
0.625392
#!/usr/bin/python """Utility CLI Application This CLI is helpful for managing CODEX metadata """ import fire # RegionNumber TileX TileY Xposition Yposition # 1 1 1 0 0 # 1 1 2 0 1008 # 1 1 3 0 2016 # 1 1 4 0 3024 # 1 1 5 0 4032 # 1 2 1 1344 0 # 1 2 2 1344 1008 # 1 2 3 1344 2016 # 1 2 4 1344 3024 class CodexUtils(obje...
0
0
0
901
0
0
0
0
22
d736f182bf81e45414ce816793e1a667e92c3e39
1,923
py
Python
core/grpc_comm/grpc_server.py
monadyn/fedlearn-algo
c4459d421139b0bb765527d636fff123bf17bda4
[ "Apache-2.0" ]
3
2021-11-25T10:42:30.000Z
2022-03-03T12:25:32.000Z
core/grpc_comm/grpc_server.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
null
null
null
core/grpc_comm/grpc_server.py
fedlearnAI/fedlearnalgo
63d9ceb64d331ff2b5103ae49e54229cad7e2095
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Fedlearn authors. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
38.46
104
0.73843
# Copyright 2021 Fedlearn authors. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
0
0
0
0
0
0
0
0
0
5c4cb13c6c3d58928fa1a0dd59fbee8be02fd0ea
1,785
py
Python
test.py
haofanwang/Score-CAM
0d7197c49c290c50507ae3095ad99cd0316eecb2
[ "MIT" ]
297
2020-04-13T12:00:17.000Z
2022-03-30T09:14:43.000Z
test.py
haofanwang/Score-CAM
0d7197c49c290c50507ae3095ad99cd0316eecb2
[ "MIT" ]
21
2020-04-27T04:28:24.000Z
2022-03-23T10:38:27.000Z
test.py
haofanwang/Score-CAM
0d7197c49c290c50507ae3095ad99cd0316eecb2
[ "MIT" ]
59
2020-04-20T10:00:46.000Z
2022-02-11T12:30:24.000Z
# pip install importlib_resources import torch import torchvision.models as models # alexnet alexnet = models.alexnet(pretrained=True).eval() alexnet_model_dict = dict(type='alexnet', arch=alexnet, layer_name='features_10',input_size=(224, 224)) alexnet_scorecam = ScoreCAM(alexnet_model_dict) input_image = load_imag...
35.7
103
0.783193
# pip install importlib_resources import torch import torch.nn.functional as F import torchvision.models as models from utils import * from cam.scorecam import * # alexnet alexnet = models.alexnet(pretrained=True).eval() alexnet_model_dict = dict(type='alexnet', arch=alexnet, layer_name='features_10',input_size=(224...
0
0
0
0
0
0
0
13
67
6ef1da14e5fe52cf65151c2116b993160d4de496
1,017
py
Python
chapter02/list_tuple_dic.py
persevere-in-coding-persist-in-learning/python2
b207d0040232abae63638784b34a950b932bef77
[ "Apache-2.0" ]
3
2020-08-05T01:15:41.000Z
2020-08-05T09:28:36.000Z
chapter02/list_tuple_dic.py
persevere-in-coding-persist-in-learning/python2
b207d0040232abae63638784b34a950b932bef77
[ "Apache-2.0" ]
null
null
null
chapter02/list_tuple_dic.py
persevere-in-coding-persist-in-learning/python2
b207d0040232abae63638784b34a950b932bef77
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ desc: Python Version: 0.1 Author: huijz Date: 2020-08-05 """ list = ['runoob', 786, 2.23, 'john', 70.2] tinyList = [123, 'john'] print list # print list[0] # print list[1:3] # print list[2:] # print tinyList * 2 # print list + tinyList # tuple = ('runoob', 786, 2.23, 'john', 70.2) tinyt...
24.214286
60
0.648968
# coding=utf-8 """ desc: Python 数据类型列表 Version: 0.1 Author: huijz Date: 2020-08-05 """ list = ['runoob', 786, 2.23, 'john', 70.2] tinyList = [123, 'john'] print list # 输出完整列表 print list[0] # 输出列表的第一个元素 print list[1:3] # 输出第二个至第三个元素 print list[2:] # 输出从第三个开始至列表末尾的所有元素 print tinyList * 2 # 输出列表两次 print list + tinyLi...
519
0
0
0
0
0
0
0
0
8a034f9189b18bb205dc349a2e428e5516f0f1e7
19,002
py
Python
nipype/interfaces/cmtk/parcellation.py
MarcCote/nipype
b4014e1d87509f35242f0547f51d2b8962f83cbe
[ "BSD-3-Clause" ]
1
2018-09-09T14:47:04.000Z
2018-09-09T14:47:04.000Z
nipype/interfaces/cmtk/parcellation.py
MarcCote/nipype
b4014e1d87509f35242f0547f51d2b8962f83cbe
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/cmtk/parcellation.py
MarcCote/nipype
b4014e1d87509f35242f0547f51d2b8962f83cbe
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) >>> datadir = os.path.realpath(os.path.join(filepath,...
44.816038
253
0.631723
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os.path.realpath( __file__ ) ) >>> datadir = os.path.realpath(os.path.join(filepath,...
0
0
0
3,540
0
10,786
0
36
138
4783aede256e5697ecf8c8e2bdc14221df05a5a8
8,771
py
Python
verification/Freyberg/pest_freyberg.py
hwreeves-USGS/pyemu
6b443601fbb9bcb9e97a8c200a78480c11c51f22
[ "BSD-3-Clause" ]
94
2015-01-09T14:19:47.000Z
2022-03-14T18:42:23.000Z
verification/Freyberg/pest_freyberg.py
hwreeves-USGS/pyemu
6b443601fbb9bcb9e97a8c200a78480c11c51f22
[ "BSD-3-Clause" ]
184
2020-05-29T14:25:23.000Z
2022-03-29T04:01:42.000Z
verification/Freyberg/pest_freyberg.py
hwreeves-USGS/pyemu
6b443601fbb9bcb9e97a8c200a78480c11c51f22
[ "BSD-3-Clause" ]
51
2015-01-14T15:55:11.000Z
2021-12-28T17:59:24.000Z
import os import shutil import platform import pandas as pd import flopy import pyemu model_ws = os.path.join("extra_crispy") nam_file = "freyberg.nam" ml = flopy.modflow.Modflow.load(nam_file,exe_name="mf2005",model_ws=model_ws,verbose=True) ml.dis.sr.xul = 619653 ml.dis.sr.yul = 3353277 ml.dis.sr.rotation = 0 ml.di...
37.165254
114
0.672215
import os import shutil import platform import pandas as pd import matplotlib.pyplot as plt import flopy import pyemu model_ws = os.path.join("extra_crispy") nam_file = "freyberg.nam" ml = flopy.modflow.Modflow.load(nam_file,exe_name="mf2005",model_ws=model_ws,verbose=True) ml.dis.sr.xul = 619653 ml.dis.sr.yul = 3353...
0
0
0
0
0
0
0
10
22
61dad9e272aff545d7e1b2f4b1105690f5be5d53
1,827
py
Python
alloy/ros/transform.py
CMU-TBD/alloy
cf66738e044613fb274bd1b159864a7600e15cb5
[ "MIT" ]
null
null
null
alloy/ros/transform.py
CMU-TBD/alloy
cf66738e044613fb274bd1b159864a7600e15cb5
[ "MIT" ]
null
null
null
alloy/ros/transform.py
CMU-TBD/alloy
cf66738e044613fb274bd1b159864a7600e15cb5
[ "MIT" ]
null
null
null
import numpy as np import alloy.math import alloy.ros from geometry_msgs.msg import (Pose, Point, Transform) __all__ = [ 'do_transform_point', 'do_transform_pose' ] def do_transform_point(transform: Transform, point: Point) -> Point: """An implementation of the tf2_geometry_msgs interface to get around P...
29.95082
104
0.720307
import numpy as np import alloy.math import alloy.ros from geometry_msgs.msg import( Pose, Point, Transform ) __all__ = [ 'do_transform_point', 'do_transform_pose' ] def do_transform_point(transform: Transform, point: Point) -> Point: """An implementation of the tf2_geometry_msgs interface to...
0
0
0
0
0
0
0
13
0
23a9fda4fcda6b3de19a0a8272145fd09d2154d6
17,257
py
Python
python_modules/dagster/dagster/core/execution/api.py
shahvineet98/dagster
2471d39c52f660e23e8c0d8e8ded873ddc3df036
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/api.py
shahvineet98/dagster
2471d39c52f660e23e8c0d8e8ded873ddc3df036
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/execution/api.py
shahvineet98/dagster
2471d39c52f660e23e8c0d8e8ded873ddc3df036
[ "Apache-2.0" ]
null
null
null
''' Naming conventions: For public functions: execute_* These represent functions which do purely in-memory compute. They will evaluate expectations the core compute function, and exercise all logging and metrics tracking (outside of outputs), but they will not invoke *any* outputs (and their APIs don't allow the us...
39.220455
102
0.711769
''' Naming conventions: For public functions: execute_* These represent functions which do purely in-memory compute. They will evaluate expectations the core compute function, and exercise all logging and metrics tracking (outside of outputs), but they will not invoke *any* outputs (and their APIs don't allow the us...
0
0
0
0
2,526
6,349
0
252
296
4fd0a50c44bfc753dff980e5d51a3909b3e41b5a
2,725
py
Python
recipes/Python/426620_only_on_change_decorator/recipe-426620.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/426620_only_on_change_decorator/recipe-426620.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/426620_only_on_change_decorator/recipe-426620.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# simple check to see if file changed # Function example, will only read file contents when file stats change file('test.txt', 'w').write('original content') print '-'*60 print get_filecontents('test.txt') print '-'*60 print get_filecontents('test.txt') file('test.txt', 'w').write('new and improved content!') p...
33.641975
79
0.644771
def func_onchange(metric): def _inner_onchange(func): "A decorator that runs a function only when a generic metric changes." def decorated(*args, **kwargs): try: mresult = metric(*args, **kwargs) if decorated._last_metric != mresult: de...
0
266
0
-1
0
1,492
0
0
141
22fa5f2bed5475348c6815bba5476ab475c63b7b
864
py
Python
db25_hole_plate/cnc/drill_thru_4-40.py
iorodeo/panels_mpja_1u
6d3a44150b41d25457041b9246be11b1778112bc
[ "Apache-2.0" ]
1
2020-07-23T19:04:06.000Z
2020-07-23T19:04:06.000Z
db25_hole_plate/cnc/drill_thru_4-40.py
iorodeo/panels_mpja_1u
6d3a44150b41d25457041b9246be11b1778112bc
[ "Apache-2.0" ]
null
null
null
db25_hole_plate/cnc/drill_thru_4-40.py
iorodeo/panels_mpja_1u
6d3a44150b41d25457041b9246be11b1778112bc
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import sys from py2gcode import gcode_cmd from py2gcode import cnc_dxf fileName = sys.argv[1] feedrate = 25.0 layerNames = ['hole_thru_4-40'] prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.FeedRate(feedra...
24
44
0.633102
from __future__ import print_function import os import sys from py2gcode import gcode_cmd from py2gcode import cnc_dxf fileName = sys.argv[1] feedrate = 25.0 layerNames = ['hole_thru_4-40'] prog = gcode_cmd.GCodeProg() prog.add(gcode_cmd.GenericStart()) prog.add(gcode_cmd.Space()) prog.add(gcode_cmd.FeedRate(feedra...
0
0
0
0
0
0
0
0
0
43f52589ac4fd3604135449971690b375bb721bb
1,638
py
Python
sidekick/migrations/0007_add_consent_preview_fields.py
praekeltfoundation/rp-sidekick
01f2d1ced8caefb39c93112f74baac70dbe943bc
[ "BSD-3-Clause" ]
1
2018-10-05T21:47:43.000Z
2018-10-05T21:47:43.000Z
sidekick/migrations/0007_add_consent_preview_fields.py
praekeltfoundation/rp-sidekick
01f2d1ced8caefb39c93112f74baac70dbe943bc
[ "BSD-3-Clause" ]
114
2018-08-14T14:37:20.000Z
2020-07-31T15:56:51.000Z
sidekick/migrations/0007_add_consent_preview_fields.py
praekeltfoundation/rp-sidekick
01f2d1ced8caefb39c93112f74baac70dbe943bc
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.1.8 on 2019-05-23 14:21
30.333333
86
0.522589
# Generated by Django 2.1.8 on 2019-05-23 14:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("sidekick", "0006_add_consent_model")] operations = [ migrations.AddField( model_name="consent", name="body_text", fie...
0
0
0
1,524
0
0
0
19
46
f9c81fbc73beef3404fdc2874171e6d134ee9da5
8,889
py
Python
dl/cmems.py
mheen/ocean_data
2db23bc63f8fd6405c9347da4783fa13a2adabe3
[ "MIT" ]
1
2020-09-24T09:43:12.000Z
2020-09-24T09:43:12.000Z
dl/cmems.py
mheen/ocean_data
2db23bc63f8fd6405c9347da4783fa13a2adabe3
[ "MIT" ]
null
null
null
dl/cmems.py
mheen/ocean_data
2db23bc63f8fd6405c9347da4783fa13a2adabe3
[ "MIT" ]
null
null
null
import log from utilities import get_urls, get_logins from utilities import get_n_months, add_month_to_timestamp from ftplib import FTP def ftp_server_retry(output_dir,main_ftp_dir,start_date,end_date,temporal_resolution,log_file='dl/cmems.log',variables=['u','v'],i_depths=[0],i_times=None): '''Calls the ftp_serve...
54.533742
156
0.685454
from modeldata import from_downloaded as modeldata_from_downloaded import log from utilities import get_ncfiles_in_dir from utilities import get_urls,get_logins from utilities import get_n_months,add_month_to_timestamp,convert_time_to_datetime from netCDF4 import Dataset import numpy as np import os from datetime impor...
0
0
0
84
0
3,919
0
109
223
3fea8afbea2080f15a118e761b7be69a9a70af75
2,356
py
Python
sprites/Bullet/Entity.py
mightypanders/pythonlearning
ee2e403ed198f1ae5c8c5bac4cd1e380c1824153
[ "MIT" ]
1
2016-07-04T07:03:32.000Z
2016-07-04T07:03:32.000Z
sprites/Bullet/Entity.py
mightypanders/pythonlearning
ee2e403ed198f1ae5c8c5bac4cd1e380c1824153
[ "MIT" ]
null
null
null
sprites/Bullet/Entity.py
mightypanders/pythonlearning
ee2e403ed198f1ae5c8c5bac4cd1e380c1824153
[ "MIT" ]
null
null
null
black = (0, 0, 0) red = (255, 0, 0)
24.541667
41
0.710102
import pygame black = (0, 0, 0) red = (255, 0, 0) class Bullet(pygame.sprite.Sprite): def __init__(self): super(Bullet, self).__init__() self.image = pygame.Surface([8, 18]) self.image.fill(black) self.rect = self.image.get_rect() def update(self): self.rect.y -= 6 if self.rect.y <= 0: self.kill() ...
0
0
0
2,233
0
0
0
-8
91
69c86595b5a92590260ba6e1bd7b949000ba21b1
19,522
py
Python
business/src/business_helper/system.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2016-10-30T09:51:06.000Z
2016-10-30T09:51:06.000Z
business/src/business_helper/system.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2015-12-29T18:51:07.000Z
2015-12-29T18:51:07.000Z
business/src/business_helper/system.py
hivesolutions/colony_plugins
cfd8fb2ac58037e01002966704b8a642feb37895
[ "Apache-1.1" ]
1
2018-01-26T12:54:13.000Z
2018-01-26T12:54:13.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Colony Framework # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Colony Framework. # # Hive Colony Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
43
108
0.684663
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Colony Framework # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Colony Framework. # # Hive Colony Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
4
0
0
18,143
0
0
0
-42
121
4de9489737f9d6b6ea8a017f3a4c20b28e956167
1,425
py
Python
molecule/resources/tests/test_newdep.py
manics/ansible-role-omero-server
bbe3e51243830f7ce4ad78e5d6152065b17dc14e
[ "BSD-2-Clause" ]
null
null
null
molecule/resources/tests/test_newdep.py
manics/ansible-role-omero-server
bbe3e51243830f7ce4ad78e5d6152065b17dc14e
[ "BSD-2-Clause" ]
null
null
null
molecule/resources/tests/test_newdep.py
manics/ansible-role-omero-server
bbe3e51243830f7ce4ad78e5d6152065b17dc14e
[ "BSD-2-Clause" ]
null
null
null
import os import re import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts( 'omero-server-newdep,omero-server-upgradetovenv') OMERO = '/opt/omero/server/OMERO.server/bin/omero' VERSION_PATTERN = re.compile('(\d...
33.139535
92
0.66807
import os import re import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts( 'omero-server-newdep,omero-server-upgradetovenv') OMERO = '/opt/omero/server/OMERO.server/bin/omero' VERSION_PATTERN = re.compile('(\d...
0
0
0
0
0
983
0
0
92
366f717b3ac7da03d393d209afbc061f4bb770b3
6,251
py
Python
suspect/summary.py
michaelbynum/suspect
efbfbc4a004d8e167fd4a7247b465b6569818433
[ "Apache-2.0" ]
null
null
null
suspect/summary.py
michaelbynum/suspect
efbfbc4a004d8e167fd4a7247b465b6569818433
[ "Apache-2.0" ]
null
null
null
suspect/summary.py
michaelbynum/suspect
efbfbc4a004d8e167fd4a7247b465b6569818433
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Francesco Ceccon # # 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 writ...
31.099502
88
0.62438
# Copyright 2017 Francesco Ceccon # # 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 writ...
0
0
0
2,238
0
0
0
127
89
80b4d6c0a4cc1ead34e2429de521a0f5f5d74ffd
6,323
py
Python
main_tools/housekeeping.py
agladstein/SimPrily
ac1c77b61dbf003fb8e0331597ebdb3325769480
[ "MIT" ]
5
2017-09-12T21:33:45.000Z
2017-11-29T02:43:43.000Z
main_tools/housekeeping.py
agladstein/SimPrily_update
05caea299e2a48a7fe37be68e8b1619eaaa7ac5d
[ "MIT" ]
54
2017-09-06T18:19:01.000Z
2020-02-11T22:06:15.000Z
main_tools/housekeeping.py
agladstein/SimPrily_update
05caea299e2a48a7fe37be68e8b1619eaaa7ac5d
[ "MIT" ]
9
2017-09-12T19:55:08.000Z
2018-10-17T10:43:09.000Z
import argparse from main_tools import global_vars import sys verbos = 0 def process_args(arguments): ''' Parameters: ['simprily.py', 'examples/eg1/param_file_eg1.txt', 'examples/eg1/model_file_eg1.csv', '1', 'output_dir'] Returns: {'SNP file': 'array_template/ill_650_test.bed', 'sim opti...
38.321212
168
0.586589
import argparse import psutil from main_tools import global_vars from main_tools.my_random import MY_RANDOM as random import sys verbos = 0 def prettyPrintSet(level, prefix, element, dictionary=None): if dictionary: print("{}{}{} --> {}".format(prefix, " "*level, element, dictionary[element])) els...
0
0
0
0
0
1,857
0
23
159
91505d1a0c250ea1b2a22a72db7e4d799a0abc3b
966
py
Python
utils/asb.py
qwert-2019/maiev-waf-web
6b0cfd72dd0a942053dca034f962775d8f2001ca
[ "BSD-3-Clause" ]
16
2019-12-16T09:58:43.000Z
2021-06-30T15:36:58.000Z
utils/asb.py
qwert-2019/maiev-waf-web
6b0cfd72dd0a942053dca034f962775d8f2001ca
[ "BSD-3-Clause" ]
1
2021-06-02T00:47:51.000Z
2021-06-02T00:47:51.000Z
utils/asb.py
qwert-2019/maiev-waf-web
6b0cfd72dd0a942053dca034f962775d8f2001ca
[ "BSD-3-Clause" ]
10
2019-12-16T12:28:26.000Z
2021-06-30T15:37:02.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import ansible.playbook import ansible.inventory import ansible.runner from utils.log import log_setting from ansible import callbacks from ansible import utils logger = log_setting("asb") ret = ansble_adhoc_run('shell', '', 'admin', 'uname') print ret
31.16129
85
0.670807
#!/usr/bin/env python # -*- coding: UTF-8 -*- import ansible.playbook import ansible.inventory import ansible.runner from utils.log import log_setting from ansible import callbacks from ansible import utils logger = log_setting("asb") def ansble_adhoc_run(ans_mod, ans_host, ans_user, module_args): inventory = a...
0
0
0
0
0
641
0
0
23
a12053a15eae002d9f47af7a215a9ad32fe741e7
264
py
Python
analyzer/habitat/analysis/__init__.py
yzs-lab/habitat
cd3735b3e818cb036053d0b7868e024a7e0698ad
[ "Apache-2.0" ]
33
2021-06-02T08:12:16.000Z
2022-03-23T02:05:01.000Z
analyzer/habitat/analysis/__init__.py
yzs-lab/habitat
cd3735b3e818cb036053d0b7868e024a7e0698ad
[ "Apache-2.0" ]
10
2021-11-01T06:47:26.000Z
2022-03-16T03:28:50.000Z
analyzer/habitat/analysis/__init__.py
yzs-lab/habitat
cd3735b3e818cb036053d0b7868e024a7e0698ad
[ "Apache-2.0" ]
4
2021-11-24T10:35:48.000Z
2022-03-30T10:45:36.000Z
from habitat.analysis.device import _Device Device = _Device() SPECIAL_OPERATIONS = { # Convolution 'conv2d', # Matrix multiply operations 'linear', 'bmm', # Recurrent operations 'lstm', 'gru', 'rnn_tanh', 'rnn_relu', }
13.894737
43
0.609848
from habitat.analysis.device import _Device Device = _Device() SPECIAL_OPERATIONS = { # Convolution 'conv2d', # Matrix multiply operations 'linear', 'bmm', # Recurrent operations 'lstm', 'gru', 'rnn_tanh', 'rnn_relu', }
0
0
0
0
0
0
0
0
0
53d02596ae8ad22806ea8dd1d4b976f2259f412c
249
py
Python
NSI/Chapitre 2/TP1.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
NSI/Chapitre 2/TP1.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
NSI/Chapitre 2/TP1.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
def factorielle(n): """Fonction rcursive qui renvoie la valeur n! = 1 x 2 x 3 x ... x n """ if n == 0: return 1 return n * factorielle(n - 1) for i in range(7): print('Factorielle(', i, ') =', factorielle(i))
24.9
51
0.526104
def factorielle(n): """Fonction récursive qui renvoie la valeur n! = 1 x 2 x 3 x ... x n """ if n == 0: return 1 return n * factorielle(n - 1) for i in range(7): print('Factorielle(', i, ') =', factorielle(i))
2
0
0
0
0
0
0
0
0
a953907781366cb525193d376da4af9d7d013cfe
384
bzl
Python
third_party/tensorflow/workspace.bzl
isabella232/yggdrasil-decision-forests
52ed2571c46baa9738f81d7341dc27700dbfec73
[ "Apache-2.0" ]
135
2021-05-12T18:02:11.000Z
2022-03-30T16:48:44.000Z
third_party/tensorflow/workspace.bzl
google/yggdrasil-decision-forests
0b284d8afe7ac4773abcdeee88a77681f8681127
[ "Apache-2.0" ]
11
2021-06-25T17:25:38.000Z
2022-03-30T03:31:24.000Z
third_party/tensorflow/workspace.bzl
isabella232/yggdrasil-decision-forests
52ed2571c46baa9738f81d7341dc27700dbfec73
[ "Apache-2.0" ]
10
2021-05-27T02:51:36.000Z
2022-03-28T07:03:52.000Z
"""TensorFlow project.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
32
89
0.682292
"""TensorFlow project.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def deps(): http_archive( name = "org_tensorflow", sha256 = "e3d0ee227cc19bd0fa34a4539c8a540b40f937e561b4580d4bbb7f0e31c6a713", strip_prefix = "tensorflow-2.5.0", urls = ["https://github....
0
0
0
0
0
265
0
0
23
4210aca221d6e77545014f0d1148cfee24637a12
2,160
py
Python
genshin/client/components/hoyolab.py
thesadru/genshin.py
806b8d0dd059a06605e66dead917fdf550a552bc
[ "MIT" ]
63
2021-10-04T19:53:54.000Z
2022-03-30T07:21:03.000Z
genshin/client/components/hoyolab.py
thesadru/genshin.py
806b8d0dd059a06605e66dead917fdf550a552bc
[ "MIT" ]
17
2021-11-16T20:42:52.000Z
2022-03-31T10:11:52.000Z
genshin/client/components/hoyolab.py
thesadru/genshin.py
806b8d0dd059a06605e66dead917fdf550a552bc
[ "MIT" ]
10
2021-10-16T22:41:41.000Z
2022-02-19T17:55:23.000Z
"""Hoyolab component.""" __all__ = ["HoyolabClient"]
35.409836
101
0.625
"""Hoyolab component.""" import typing from genshin import types, utility from genshin.client import cache as client_cache from genshin.client import manager, routes from genshin.client.components import base from genshin.models import hoyolab as models __all__ = ["HoyolabClient"] class HoyolabClient(base.BaseClien...
0
903
796
153
0
0
0
97
156
70faa86f4e03080de0c33afb300c623990803d92
236,252
py
Python
pyboto3/lexmodelbuildingservice.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
91
2016-12-31T11:38:37.000Z
2021-09-16T19:33:23.000Z
pyboto3/lexmodelbuildingservice.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
7
2017-01-02T18:54:23.000Z
2020-08-11T13:54:02.000Z
pyboto3/lexmodelbuildingservice.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
26
2016-12-31T13:11:00.000Z
2022-03-03T21:01:12.000Z
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
35.083457
2,831
0.655237
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
0
0
0
0
0
0
0
0
0
11136302ecb7cf7de598d554c4ce0eb7e64bc019
238
py
Python
cogs/utils/_missing.py
FrostiiWeeb/OpenRobot-Bot
15a17e3aa3a64322b7b5b922cd808f9044fd695d
[ "MIT" ]
8
2021-10-20T06:41:22.000Z
2022-03-30T16:49:30.000Z
cogs/utils/_missing.py
FrostiiWeeb/OpenRobot-Bot
15a17e3aa3a64322b7b5b922cd808f9044fd695d
[ "MIT" ]
1
2021-12-21T10:31:56.000Z
2021-12-21T10:31:56.000Z
cogs/utils/_missing.py
FrostiiWeeb/OpenRobot-Bot
15a17e3aa3a64322b7b5b922cd808f9044fd695d
[ "MIT" ]
2
2021-11-29T10:20:16.000Z
2021-12-21T10:27:48.000Z
from typing import Any MISSING: Any = _Missing()
13.222222
36
0.697479
from typing import Any class _Missing: def __eq__(self, other): return isinstance(other, _Missing) def __bool__(self): return False def __hash__(self): return 0 def __repr__(self): return '...' MISSING: Any = _Missing()
0
0
0
164
0
0
0
0
23
9c034fdc1a81dc8306ce770bb61b1607b89f06e7
1,351
py
Python
experiments/0.data_processing/sentiment/create_demo_data.py
jkvc/modapt
44610e6f03fb151433f2db633e1d23cc0dc470fc
[ "MIT" ]
null
null
null
experiments/0.data_processing/sentiment/create_demo_data.py
jkvc/modapt
44610e6f03fb151433f2db633e1d23cc0dc470fc
[ "MIT" ]
null
null
null
experiments/0.data_processing/sentiment/create_demo_data.py
jkvc/modapt
44610e6f03fb151433f2db633e1d23cc0dc470fc
[ "MIT" ]
1
2021-04-28T17:09:05.000Z
2021-04-28T17:09:05.000Z
# py <script> <savedir> import sys from os import makedirs from os.path import join from random import Random from config import RANDOM_SEED from experiments.datadef.zoo import get_datadef from modapt.dataset.common import to_df _DATADEF = get_datadef("sentiment") _SAVEDIR = sys.argv[1] _N_TRAIN_SAMPLE_PER_DOMAIN = 1...
28.744681
78
0.795707
# py <script> <savedir> import sys from os import makedirs from os.path import join from random import Random import pandas as pd from config import RANDOM_SEED from experiments.datadef.zoo import get_datadef from modapt.dataset.common import to_df _DATADEF = get_datadef("sentiment") _SAVEDIR = sys.argv[1] _N_TRAIN_...
0
0
0
0
0
0
0
-2
23
4033d3883c14a048ee9631b552622595196b6b43
5,875
py
Python
run_perfs.py
MonliH/lulz
2fa58df8440b32477d2bc6e5a3d645a4eff8d3bf
[ "MIT" ]
null
null
null
run_perfs.py
MonliH/lulz
2fa58df8440b32477d2bc6e5a3d645a4eff8d3bf
[ "MIT" ]
null
null
null
run_perfs.py
MonliH/lulz
2fa58df8440b32477d2bc6e5a3d645a4eff8d3bf
[ "MIT" ]
null
null
null
import os import json import matplotlib.pyplot as plt import argparse import numpy as np from glob import glob from tqdm import tqdm parser = argparse.ArgumentParser( description="Run and graph benchmarks between lulz, lci, and python." ) subparsers = parser.add_subparsers(dest="command_type") graph = subparsers...
30.128205
102
0.606298
import os import json import subprocess import matplotlib.pyplot as plt import argparse import numpy as np from glob import glob from tqdm import tqdm parser = argparse.ArgumentParser( description="Run and graph benchmarks between lulz, lci, and python." ) subparsers = parser.add_subparsers(dest="command_type") ...
0
0
0
0
0
1,978
0
-4
95
6a0d92423f51ff7fe7cf41886940ff20107050b4
1,979
py
Python
react/s.py
yuncliu/Learn
6fe2da9a902ac948eafad0349c7ce7c7cabd57d9
[ "BSD-3-Clause" ]
null
null
null
react/s.py
yuncliu/Learn
6fe2da9a902ac948eafad0349c7ce7c7cabd57d9
[ "BSD-3-Clause" ]
null
null
null
react/s.py
yuncliu/Learn
6fe2da9a902ac948eafad0349c7ce7c7cabd57d9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from flask import Flask from mimetypes import MimeTypes app = Flask(__name__) m = MimeTypes() comment = ['aaa', 'bbb', 'ccc'] if __name__=="__main__": app.run(host='0.0.0.0', port=8080, debug=True)
28.681159
76
0.580596
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import json from flask import Flask, render_template, abort, make_response, request from mimetypes import MimeTypes app = Flask(__name__) m = MimeTypes() comment = ['aaa', 'bbb', 'ccc'] @app.route('/api/<api>', methods=['GET', 'POST']) def api(api): if api...
0
1,611
0
0
0
0
0
26
90
6a9a4a95b8b7779e6f9d9f79e3f70ab21eedd457
7,055
py
Python
bistro/cmake/targets_to_cmake_lists.py
nathanawmk/bistro
48f79f3b69a69a9ed50e6e1b41f53a56247758f4
[ "MIT" ]
1,088
2015-07-13T23:29:25.000Z
2022-03-25T13:22:24.000Z
bistro/cmake/targets_to_cmake_lists.py
ciusji/bistro
883b39ea06af8b382baff251cc74bc61ceb21300
[ "MIT" ]
39
2016-01-06T00:19:41.000Z
2022-03-11T21:19:48.000Z
bistro/cmake/targets_to_cmake_lists.py
ciusji/bistro
883b39ea06af8b382baff251cc74bc61ceb21300
[ "MIT" ]
166
2015-07-11T05:35:12.000Z
2022-03-15T06:16:24.000Z
#!/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. ''' Converts Facebook's internal TARGETS files into CMakeLists.txt, used by `run-cmake.sh`. Using Python 2.7 until al...
30.80786
80
0.576471
#!/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. ''' Converts Facebook's internal TARGETS files into CMakeLists.txt, used by `run-cmake.sh`. Using Python 2.7 until al...
0
0
0
863
0
5,353
0
-30
158
a045e3ae3152b0c0d29bf855c8ff7f955805b32f
2,820
py
Python
pytest_splunk_addon_ui_smartx/pages/logging.py
artemrys/addon-factory-smartx-ui-test-library
a0ea68a2f90f5662eac383b74043f69e01830251
[ "Apache-2.0" ]
1
2021-03-29T07:03:15.000Z
2021-03-29T07:03:15.000Z
pytest_splunk_addon_ui_smartx/pages/logging.py
artemrys/addon-factory-smartx-ui-test-library
a0ea68a2f90f5662eac383b74043f69e01830251
[ "Apache-2.0" ]
181
2020-12-15T19:31:07.000Z
2022-03-18T08:06:06.000Z
pytest_splunk_addon_ui_smartx/pages/logging.py
splunk/addon-factory-smartx-ui-test-library
d1bb8d0ce728d53d3c15425c3b5a25e2e526d80e
[ "Apache-2.0" ]
2
2022-02-01T18:39:37.000Z
2022-03-27T16:51:40.000Z
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
34.814815
96
0.654965
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
0
0
0
1,933
0
0
0
131
180
6fe8100f603a28968c98d8e7be9fc09d7aa600b3
2,100
py
Python
L1Trigger/L1CaloTrigger/python/Phase1L1TJetProducer_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
L1Trigger/L1CaloTrigger/python/Phase1L1TJetProducer_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
L1Trigger/L1CaloTrigger/python/Phase1L1TJetProducer_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
from __future__ import absolute_import import FWCore.ParameterSet.Config as cms from math import pi from L1Trigger.L1CaloTrigger.Phase1L1TJets_sincosLUT_cff import sinPhi, cosPhi caloEtaSegmentation = cms.vdouble( -5.0, -4.917, -4.833, -4.75, -4.667, -4.583, -4.5, -4.417, -4.333, -4.25, -4.167, -4.083, -4.0, -3....
47.727273
116
0.601905
from __future__ import absolute_import import FWCore.ParameterSet.Config as cms from math import pi from L1Trigger.L1CaloTrigger.Phase1L1TJets_sincosLUT_cff import sinPhi, cosPhi caloEtaSegmentation = cms.vdouble( -5.0, -4.917, -4.833, -4.75, -4.667, -4.583, -4.5, -4.417, -4.333, -4.25, -4.167, -4.083, -4.0, -3....
0
0
0
0
0
0
0
0
0
617656fff6cdaca070e35e6c1e2c9a976e0aa525
3,881
py
Python
python/alibiexplainer/alibiexplainer/anchor_tabular.py
gipster/kfserving
bbd3da47a708403fb2a203e28955d5454bc2a1d5
[ "Apache-2.0" ]
null
null
null
python/alibiexplainer/alibiexplainer/anchor_tabular.py
gipster/kfserving
bbd3da47a708403fb2a203e28955d5454bc2a1d5
[ "Apache-2.0" ]
null
null
null
python/alibiexplainer/alibiexplainer/anchor_tabular.py
gipster/kfserving
bbd3da47a708403fb2a203e28955d5454bc2a1d5
[ "Apache-2.0" ]
null
null
null
import kfserving import logging logging.basicConfig(level=kfserving.server.KFSERVER_LOGLEVEL)
46.202381
112
0.638753
from typing import Callable, List, Dict, Optional, Any import kfserving import logging import joblib import alibi import numpy as np import pandas as pd from alibiexplainer.explainer_wrapper import ExplainerWrapper logging.basicConfig(level=kfserving.server.KFSERVER_LOGLEVEL) class AnchorTabular(ExplainerWrapper): ...
0
0
0
3,579
0
0
0
51
155
c098eab0563f9d38d99e933c1a210be142050d5d
1,348
py
Python
djangocms_personalise_by_country/cms_plugins.py
divio/djangocms-personalisation
15f52e0911da884c3d96ec3e634dee3c47325f0c
[ "BSD-3-Clause" ]
1
2019-09-07T21:39:39.000Z
2019-09-07T21:39:39.000Z
djangocms_personalise_by_country/cms_plugins.py
divio/djangocms-personalisation
15f52e0911da884c3d96ec3e634dee3c47325f0c
[ "BSD-3-Clause" ]
null
null
null
djangocms_personalise_by_country/cms_plugins.py
divio/djangocms-personalisation
15f52e0911da884c3d96ec3e634dee3c47325f0c
[ "BSD-3-Clause" ]
1
2021-08-20T21:16:38.000Z
2021-08-20T21:16:38.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from cms.plugin_pool import plugin_pool plugin_pool.register_plugin(PersonaliseByCountryPlugin)
27.510204
75
0.710682
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils.translation import ugettext_lazy as _ from cms.plugin_pool import plugin_pool from .utils import get_country_from_request from djangocms_personalisation.cms_plugins import PersonaliseByPluginBase from .models import PersonaliseByCoun...
0
0
0
932
0
0
0
138
114
f767d3e5e04efd4ad18c9991c5a6b885bfdebb2e
3,642
py
Python
change_env_file/change_env_file.py
satyaholla/deepreach
807064649f463b51ffb7502678ecaeaacb7fd787
[ "MIT" ]
null
null
null
change_env_file/change_env_file.py
satyaholla/deepreach
807064649f463b51ffb7502678ecaeaacb7fd787
[ "MIT" ]
null
null
null
change_env_file/change_env_file.py
satyaholla/deepreach
807064649f463b51ffb7502678ecaeaacb7fd787
[ "MIT" ]
null
null
null
DEEPREACH_DIR = '/'.join(__file__.split('/')[:-2]) environment = f'{DEEPREACH_DIR}/environment.yml' not_installed = f'{DEEPREACH_DIR}/change_env_file/packages_not_found.txt' not_in_osx = f'{DEEPREACH_DIR}/change_env_file/not_in_osx.txt' desired_env = f'{DEEPREACH_DIR}/new_environment.yml' def remove_build(s: str) -> ...
35.705882
125
0.628226
DEEPREACH_DIR = '/'.join(__file__.split('/')[:-2]) environment = f'{DEEPREACH_DIR}/environment.yml' not_installed = f'{DEEPREACH_DIR}/change_env_file/packages_not_found.txt' not_in_osx = f'{DEEPREACH_DIR}/change_env_file/not_in_osx.txt' desired_env = f'{DEEPREACH_DIR}/new_environment.yml' def remove_build(s: str) -> ...
0
0
0
0
0
0
0
0
0
8ab0b67af1fc973fb9e3b5a8e061de0659864c37
2,990
py
Python
examples/python/linear_programming.py
mgritter/or-tools
d44fb1b423f9d6658c142c041143a4f54b5106d3
[ "Apache-2.0" ]
2
2018-11-03T15:58:09.000Z
2019-11-24T17:15:48.000Z
examples/python/linear_programming.py
mgritter/or-tools
d44fb1b423f9d6658c142c041143a4f54b5106d3
[ "Apache-2.0" ]
null
null
null
examples/python/linear_programming.py
mgritter/or-tools
d44fb1b423f9d6658c142c041143a4f54b5106d3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # This Python file uses the following encoding: utf-8 # Copyright 2018 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
37.375
84
0.714716
#!/usr/bin/env python # This Python file uses the following encoding: utf-8 # Copyright 2018 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
0
0
0
0
0
0
0
0
0
4ab963fd6d3d5ecda01715e3cf3b45ee163865ce
1,341
py
Python
api/controllers/notifications.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
15
2021-09-24T00:46:04.000Z
2022-03-16T13:24:56.000Z
api/controllers/notifications.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
98
2021-09-22T12:33:21.000Z
2022-03-21T22:23:52.000Z
api/controllers/notifications.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
12
2021-09-25T05:08:18.000Z
2022-02-28T21:02:20.000Z
# 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.
34.384615
85
0.693512
# 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 bottle import common.auth as _auth import common.helpers as util from common.logging import logger from models.notification import Notif...
0
960
0
0
0
0
0
46
158
821b6c40b8e65897aebafed06e88b4211aaf0ca2
2,358
py
Python
examples/undo/example.py
rmcgibbo/apptools
37fa137af30d08086d50aeb49db9ab875fe28027
[ "BSD-3-Clause" ]
23
2015-05-12T00:03:15.000Z
2021-07-14T17:02:23.000Z
examples/undo/example.py
rmcgibbo/apptools
37fa137af30d08086d50aeb49db9ab875fe28027
[ "BSD-3-Clause" ]
186
2015-01-21T20:49:06.000Z
2022-03-09T13:04:11.000Z
examples/undo/example.py
rmcgibbo/apptools
37fa137af30d08086d50aeb49db9ab875fe28027
[ "BSD-3-Clause" ]
20
2015-04-14T10:04:35.000Z
2022-03-18T16:34:09.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2008, Riverbank Computing Limited # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditi...
28.756098
79
0.600933
# ----------------------------------------------------------------------------- # Copyright (c) 2008, Riverbank Computing Limited # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditi...
0
0
0
694
0
0
0
54
67
c2dfd0e6fd2635b83efb60f7e20f4ad4aa759869
2,711
py
Python
tools_webrtc/PRESUBMIT.py
Unacademy/webrtc
79eb4dd92813c035dcbe4024be9b932689863425
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools_webrtc/PRESUBMIT.py
modulesio/webrtc
ea143e774b4c00a74b617f272f5a8f71169cf24e
[ "DOC", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools_webrtc/PRESUBMIT.py
modulesio/webrtc
ea143e774b4c00a74b617f272f5a8f71169cf24e
[ "DOC", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
37.652778
79
0.695315
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
0
0
0
0
0
226
0
0
46
964a60393b3fcf959d99a89ca1b1144808b15af1
1,628
py
Python
homedisplay/repeating_tasks/migrations/0005_auto_20150211_1122.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2016-11-28T04:35:06.000Z
2016-11-28T04:35:06.000Z
homedisplay/repeating_tasks/migrations/0005_auto_20150211_1122.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
160
2015-01-01T20:59:29.000Z
2016-04-25T13:36:52.000Z
homedisplay/repeating_tasks/migrations/0005_auto_20150211_1122.py
ojarva/home-info-display
873d022308732baff94d0dc2381cf9dc7dce23b7
[ "BSD-3-Clause" ]
1
2015-02-25T21:24:01.000Z
2015-02-25T21:24:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals
33.916667
159
0.584767
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('repeating_tasks', '0004_task_snooze'), ] operations = [ migrations.AlterField( model_name='task', na...
0
0
0
1,498
0
0
0
19
46
8cb9457871aac649024a2b5e7fc92d45ccac95e5
4,479
py
Python
QA/pycopia/QA/shellinterface.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
3
2018-11-26T15:00:20.000Z
2022-01-28T23:17:58.000Z
QA/pycopia/QA/shellinterface.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
null
null
null
QA/pycopia/QA/shellinterface.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
1
2018-11-26T15:00:21.000Z
2018-11-26T15:00:21.000Z
#!/usr/bin/python3.4 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 app...
32.693431
79
0.598571
#!/usr/bin/python3.4 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 app...
0
0
0
2,294
0
0
0
5
135
21c23d0ba8ead710266bef4bf279de5cc02fea03
126
py
Python
corehq/apps/data_interfaces/__init__.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/data_interfaces/__init__.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/data_interfaces/__init__.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import unicode_literals default_app_config = 'corehq.apps.data_interfaces.app_config.DataInterfacesAppConfig'
42
85
0.888889
from __future__ import unicode_literals default_app_config = 'corehq.apps.data_interfaces.app_config.DataInterfacesAppConfig'
0
0
0
0
0
0
0
0
0
2d950db23503508c8690d994d3d5718fad446ef6
471
py
Python
src/sylenium/helper/_os_environ_helper.py
symonk/browzer
4d9ee5adba6819d787357247da69b5429af9cde1
[ "MIT" ]
6
2018-07-25T09:14:08.000Z
2020-12-18T21:25:28.000Z
src/sylenium/helper/_os_environ_helper.py
symonk/sylenium
4d9ee5adba6819d787357247da69b5429af9cde1
[ "MIT" ]
32
2018-07-23T19:34:27.000Z
2020-11-18T01:38:42.000Z
src/sylenium/helper/_os_environ_helper.py
symonk/browzer
4d9ee5adba6819d787357247da69b5429af9cde1
[ "MIT" ]
3
2018-10-10T07:43:55.000Z
2020-01-10T21:50:24.000Z
from os import environ from typing import Any def read_from_environ(key: str, default: Any = None) -> Any: """ Wrapper around os environ lookups, can return any default value specified if the lookup was unsuccessful :param key: a str to lookup in os.environ :param default: the default value to return ...
36.230769
108
0.723992
from os import environ from typing import Any def read_from_environ(key: str, default: Any = None) -> Any: """ Wrapper around os environ lookups, can return any default value specified if the lookup was unsuccessful :param key: a str to lookup in os.environ :param default: the default value to return ...
0
0
0
0
0
0
0
0
0
ea4b089facfbfeb4441ee563d7967079914cbf75
12,111
py
Python
tcfl/pos_multiroot.py
d-scott-phillips/tcf
4d5f06b25799f18c103d4e4e8b222652956ebc49
[ "Apache-2.0" ]
null
null
null
tcfl/pos_multiroot.py
d-scott-phillips/tcf
4d5f06b25799f18c103d4e4e8b222652956ebc49
[ "Apache-2.0" ]
null
null
null
tcfl/pos_multiroot.py
d-scott-phillips/tcf
4d5f06b25799f18c103d4e4e8b222652956ebc49
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python2 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # # # FIXME: # # - command line method to discover installed capabiltiies; print # each's __doc__ # # - do not pass device--each function should gather it from target's # tags """ The Provisioning OS multiroot metho...
40.102649
79
0.618446
#! /usr/bin/python2 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # # # FIXME: # # - command line method to discover installed capabiltiies; print # each's __doc__ # # - do not pass device--each function should gather it from target's # tags """ The Provisioning OS multiroot metho...
0
0
0
0
0
7,236
0
-40
179
ebd2d2e4780f529840cbe6108e6c3c081fe57a4c
8,230
py
Python
data_collection/contributor_details_collector.py
lgerhardt45/learning_from_oss_analysis
7a26420f66cdc2ddccc00fe86344148d7add0d3c
[ "MIT" ]
1
2020-01-13T10:48:19.000Z
2020-01-13T10:48:19.000Z
data_collection/contributor_details_collector.py
lgerhardt45/learning_from_oss_analysis
7a26420f66cdc2ddccc00fe86344148d7add0d3c
[ "MIT" ]
2
2020-01-11T20:46:29.000Z
2020-05-02T18:59:00.000Z
data_collection/contributor_details_collector.py
lgerhardt45/learning_from_oss_analysis
7a26420f66cdc2ddccc00fe86344148d7add0d3c
[ "MIT" ]
null
null
null
from data_collection.api.api import API from data_collection.model.observation import Observation def project_in_domain(repo_languages: [], repo_topics: [], domain: str) -> bool: """ checks whether the domain is in the developer repo's languages to determine whether a project is in the domain (i.e. written in...
44.247312
120
0.612029
from data_collection.api.api import API from data_collection.model.observation import Observation def project_in_domain(repo_languages: [], repo_topics: [], domain: str) -> bool: """ checks whether the domain is in the developer repo's languages to determine whether a project is in the domain (i.e. written in...
0
0
0
0
0
1,032
0
0
69
aa31179bbc47b0574b365ebcc03764337323ddd9
3,637
py
Python
Air_canvas_opencv.py
OhmVikrant/Create-an-Air-Canvas-using-OpenCV-
7712e0e898e1d303c172873117154416b29ef6db
[ "MIT" ]
2
2020-09-05T19:04:33.000Z
2020-09-05T19:09:08.000Z
Air_canvas_opencv.py
OhmVikrant/Create-an-Air-Canvas-using-OpenCV-
7712e0e898e1d303c172873117154416b29ef6db
[ "MIT" ]
null
null
null
Air_canvas_opencv.py
OhmVikrant/Create-an-Air-Canvas-using-OpenCV-
7712e0e898e1d303c172873117154416b29ef6db
[ "MIT" ]
null
null
null
import numpy as np import cv2 import imutils from collections import deque red_lower_bound = np.array([0, 100, 100]) # HSV format red_upper_bound = np.array([20, 255, 255]) lower_bound = red_lower_bound upper_bound = red_upper_bound # BGR format # Blue Red Green ...
26.547445
100
0.535606
import numpy as np import cv2 import imutils from collections import deque red_lower_bound = np.array([0, 100, 100]) # HSV format red_upper_bound = np.array([20, 255, 255]) lower_bound = red_lower_bound upper_bound = red_upper_bound # BGR format # Blue Red Green ...
0
0
0
0
0
0
0
0
0
b572c967d3004ad917c980348dff2be9d278652e
1,506
py
Python
adventofcode/2016/3.py
arvinddoraiswamy/blahblah
1b88a04d5fa479a49ee83464ff69ba49f22c1bd0
[ "MIT" ]
7
2015-01-30T04:38:42.000Z
2017-09-05T13:22:48.000Z
adventofcode/2016/3.py
arvinddoraiswamy/blahblah
1b88a04d5fa479a49ee83464ff69ba49f22c1bd0
[ "MIT" ]
1
2017-03-12T15:48:42.000Z
2017-03-12T15:48:42.000Z
adventofcode/2016/3.py
arvinddoraiswamy/blahblah
1b88a04d5fa479a49ee83464ff69ba49f22c1bd0
[ "MIT" ]
5
2016-03-28T17:32:14.000Z
2021-12-15T16:35:12.000Z
if __name__ == '__main__': ''' Each line has the lengths of the sides of a triangle. The sum of any 2 sides must be greater than the 3rd side for the triangle to be valid. ''' filename= '3.txt' triangles= get_input(filename) #Part 1 get_valid_triangles(triangles) #Part 2 col1='' ...
25.525424
144
0.558433
def get_input(filename): with open(filename, 'r') as f: triangles= f.read().splitlines() return triangles def get_valid_triangles(triangles): valid_triangle_count= 0 for triangle in triangles: s1,s2,s3= triangle.split(',') if int(s1) + int(s2) <= int(s3): continue ...
0
0
0
0
0
501
0
0
45
b5a876cbcf50f42f5af57075f9b78076a5aa65fa
2,966
py
Python
bap/bin/python/20a_nonames_split_filt.py
anamariaelek/bap
b0cb0304f340f099d646bffa84a95739810bc6fe
[ "MIT" ]
19
2018-12-22T15:10:43.000Z
2022-03-10T08:34:59.000Z
bap/bin/python/20a_nonames_split_filt.py
anamariaelek/bap
b0cb0304f340f099d646bffa84a95739810bc6fe
[ "MIT" ]
22
2018-12-31T02:39:26.000Z
2021-07-28T18:30:48.000Z
bap/bin/python/20a_nonames_split_filt.py
anamariaelek/bap
b0cb0304f340f099d646bffa84a95739810bc6fe
[ "MIT" ]
7
2019-01-15T18:33:51.000Z
2021-02-03T09:19:49.000Z
from multiprocessing import Pool from optparse import OptionParser opts = OptionParser() usage = "usage: %prog [options] [inputs] Script to process aligned .bam files to 1) split by chromosome and 2) report read ID with bead barcode" opts = OptionParser(usage=usage) opts.add_option("--input", "-i", help="Name of the...
29.078431
144
0.6706
import sys import re import pysam import shutil import os import gzip from multiprocessing import Pool from optparse import OptionParser from collections import Counter from contextlib import contextmanager opts = OptionParser() usage = "usage: %prog [options] [inputs] Script to process aligned .bam files to 1) spli...
0
0
0
0
0
371
0
-36
244
beb39985b4997a19b05d11d4cea097f0bea39f9b
15,903
py
Python
ndcube/tests/test_plotting.py
byrdie/ndcube
ebfabf932870b154e527174253891d007c242d78
[ "BSD-2-Clause" ]
null
null
null
ndcube/tests/test_plotting.py
byrdie/ndcube
ebfabf932870b154e527174253891d007c242d78
[ "BSD-2-Clause" ]
null
null
null
ndcube/tests/test_plotting.py
byrdie/ndcube
ebfabf932870b154e527174253891d007c242d78
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import copy import numpy as np import astropy.units as u try: from sunpy.visualization.animator import ImageAnimatorWCS, LineAnimator except ImportError: from ndcube import NDCube from ndcube.utils.wcs import WCS # sample data for tests # TODO: use a fixture reading from ...
45.962428
100
0.617682
# -*- coding: utf-8 -*- import pytest import datetime import copy import numpy as np import astropy.units as u import matplotlib try: from sunpy.visualization.animator import ImageAnimatorWCS, LineAnimator except ImportError: from sunpy.visualization.imageanimator import ImageAnimatorWCS, LineAnimator from nd...
0
10,785
0
0
0
0
0
56
276
b8d618de48b62e0ccc0b26d686dae80f8004f131
10,247
py
Python
multimodal/models/sensor_fusion.py
cu-asl/multimodal_with_dropout
4548d42e38f64e5959ecdb9df9ac219688551375
[ "MIT" ]
null
null
null
multimodal/models/sensor_fusion.py
cu-asl/multimodal_with_dropout
4548d42e38f64e5959ecdb9df9ac219688551375
[ "MIT" ]
null
null
null
multimodal/models/sensor_fusion.py
cu-asl/multimodal_with_dropout
4548d42e38f64e5959ecdb9df9ac219688551375
[ "MIT" ]
null
null
null
import torch.nn as nn
33.486928
103
0.530887
import torch import torch.nn as nn from models.models_utils import ( duplicate, gaussian_parameters, rescaleImage, product_of_experts, sample_gaussian, filter_depth, ) from models.base_models.encoders import ( ProprioEncoder, ForceEncoder, ImageEncoder, DepthEncoder, ) from model...
0
0
0
9,802
0
0
0
287
134
fbeaee7cf37a2b5c18a008557072f2f3616b1454
485
py
Python
examples/testeventloopnesting.py
miraclx/rodio
5c8b5cf3b667c3e640cf0ff3d42053137e5399a6
[ "Apache-2.0" ]
2
2019-07-12T12:53:46.000Z
2021-02-07T20:54:55.000Z
examples/testeventloopnesting.py
miraclx/rodio
5c8b5cf3b667c3e640cf0ff3d42053137e5399a6
[ "Apache-2.0" ]
null
null
null
examples/testeventloopnesting.py
miraclx/rodio
5c8b5cf3b667c3e640cf0ff3d42053137e5399a6
[ "Apache-2.0" ]
null
null
null
buildEventLoop(1)
25.526316
79
0.715464
import os from multiprocessing import Process from rodio import EventLoop, printfromprocess, get_running_loop, is_within_loop def buildEventLoop(count): if is_within_loop(): parent = get_running_loop() printfromprocess( f"_is_directly_contained: {parent._is_directly_nested}") if co...
0
0
0
0
0
315
0
60
89
6387e8882566ad55bc59c121cf442df9db1b580f
1,211
py
Python
env/lib/python2.7/site-packages/djangobower/templatetags/bower.py
Unchuris/blackmarket
3397335b708d49baa2f551356c2d2b786a7d2a13
[ "BSD-3-Clause" ]
null
null
null
env/lib/python2.7/site-packages/djangobower/templatetags/bower.py
Unchuris/blackmarket
3397335b708d49baa2f551356c2d2b786a7d2a13
[ "BSD-3-Clause" ]
null
null
null
env/lib/python2.7/site-packages/djangobower/templatetags/bower.py
Unchuris/blackmarket
3397335b708d49baa2f551356c2d2b786a7d2a13
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import template register = template.Library() style_template = template.Template( """{% for filename in files %} <link href="{{filename}}" rel="stylesheet" type="text/css"> {% endfor %}""" ) script_template = template.Te...
24.714286
67
0.651528
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os.path from django import template from django.templatetags import static register = template.Library() style_template = template.Template( """{% for filename in files %} <link href="{{filename}}" rel="stylesheet" type="text/css"> ...
0
221
0
0
0
409
0
10
113
fc942ee7b6f69dbb9ed223bf4242ed1bcdaa8e90
2,601
py
Python
byceps/services/board/dbmodels/posting.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
byceps/services/board/dbmodels/posting.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
byceps/services/board/dbmodels/posting.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" byceps.services.board.dbmodels.posting ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """
35.630137
106
0.689735
""" byceps.services.board.dbmodels.posting ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from datetime import datetime from ....database import db, generate_uuid from ....typing import UserID from ....util.instances import...
0
0
0
2,154
0
0
0
78
182
3bcbbe56cc35545dacc24beadab612e50f9202d8
367
py
Python
script/create_all_complemented_guards.py
luigiberducci/v-v-project-2018
315f29504d9e4334aa9c9ccc41ea6ce3a456f416
[ "MIT", "Unlicense" ]
null
null
null
script/create_all_complemented_guards.py
luigiberducci/v-v-project-2018
315f29504d9e4334aa9c9ccc41ea6ce3a456f416
[ "MIT", "Unlicense" ]
null
null
null
script/create_all_complemented_guards.py
luigiberducci/v-v-project-2018
315f29504d9e4334aa9c9ccc41ea6ce3a456f416
[ "MIT", "Unlicense" ]
null
null
null
#Create all the guard mutations. Each one complement a single guard. import os SCRIPT = "create_single_complemented_guard.py" FIRST_MUTABLE_GUARD=0 LAST_MUTABLE_GUARD=5 for i in range(FIRST_MUTABLE_GUARD, LAST_MUTABLE_GUARD+1): command = "python %s %d" %(SCRIPT, i) os.system(command) print "--------------...
30.583333
71
0.634877
#Create all the guard mutations. Each one complement a single guard. import os SCRIPT = "create_single_complemented_guard.py" FIRST_MUTABLE_GUARD=0 LAST_MUTABLE_GUARD=5 for i in range(FIRST_MUTABLE_GUARD, LAST_MUTABLE_GUARD+1): command = "python %s %d" %(SCRIPT, i) os.system(command) print "--------------...
0
0
0
0
0
0
0
0
0
af64454c7fd643a088e94a7ac903c1a7662cfda3
2,216
py
Python
analysis.py
hpduy17/DuolingoAnalysis
3f121f2c475a54c3d7407ba90ab0fd760b9154df
[ "MIT" ]
2
2020-03-08T01:15:18.000Z
2020-03-08T01:15:50.000Z
analysis.py
hpduy17/DuolingoAnalysis
3f121f2c475a54c3d7407ba90ab0fd760b9154df
[ "MIT" ]
null
null
null
analysis.py
hpduy17/DuolingoAnalysis
3f121f2c475a54c3d7407ba90ab0fd760b9154df
[ "MIT" ]
1
2020-03-08T01:16:47.000Z
2020-03-08T01:16:47.000Z
userList = [] writeFilePath = "C:/duolingodata/french/" if __name__ == '__main__': readFilePath = "C:/userlistFrench.txt" file = readfile(readFilePath) userList = file.splitlines() for u in userList: getUserProfile(u, "French")
35.741935
121
0.620036
from duolingo import Duolingo from pprint import pprint import json userList = [] writeFilePath = "C:/duolingodata/french/" def readfile(filename): f = open(filename,"r") result = f.read() f.close() return result def appendfile(filename, data): f = open(filename, "a") f.write(data+"\n") f.c...
0
0
0
0
0
1,825
0
2
134
a67ef7c1e32dfb5792cbca7ae59acdfb9529d431
2,692
py
Python
app/omwebapp/config/routing.py
JojiKoike/OMWebAppEngine
b390a28109add4b9d9631bed44e87090111f2bc3
[ "MIT" ]
null
null
null
app/omwebapp/config/routing.py
JojiKoike/OMWebAppEngine
b390a28109add4b9d9631bed44e87090111f2bc3
[ "MIT" ]
null
null
null
app/omwebapp/config/routing.py
JojiKoike/OMWebAppEngine
b390a28109add4b9d9631bed44e87090111f2bc3
[ "MIT" ]
null
null
null
""" """ from typing import Dict, Union, List from flask_restful import Api from OMPython import ModelicaSystem from .constants import DEFAULT_OPTIONS_POSTFIX, DEFAULT_PARAMS_POSTFIX, AVAILABLE_SOLUTIONS_POSTFIX from ..view.hello import HelloWorld from ..view.create_model import CreateModel from ..view.edit_model impo...
51.769231
112
0.669019
""" ルーティング設定に関するモジュールです。 """ from typing import Dict, Union, List from flask_restful import Api from OMPython import ModelicaSystem from .constants import DEFAULT_OPTIONS_POSTFIX, DEFAULT_PARAMS_POSTFIX, AVAILABLE_SOLUTIONS_POSTFIX from ..view.hello import HelloWorld from ..view.create_model import CreateModel from .....
324
0
0
0
0
0
0
0
0
f9fd8b4e0cbb9b9662f988b905821d18af467d4a
882
py
Python
ghostwriter/shepherd/migrations/0040_auto_20220510_1949.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
1
2022-02-04T20:24:35.000Z
2022-02-04T20:24:35.000Z
ghostwriter/shepherd/migrations/0040_auto_20220510_1949.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/shepherd/migrations/0040_auto_20220510_1949.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.11 on 2022-05-10 19:49 # Django Imports
29.4
98
0.634921
# Generated by Django 3.2.11 on 2022-05-10 19:49 # Django Imports from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('shepherd', '0039_auto_20220510_1909'), ] operations = [ migrations.RunSQL( 'ALTER TABLE shepherd_auxserveraddress ALTE...
0
0
0
758
0
0
0
11
45
be72ee92c9d24f8fe5319f77f0ee752a3ed60c82
3,971
py
Python
code/python/enqueue_outgoing_mails.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/enqueue_outgoing_mails.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
null
null
null
code/python/enqueue_outgoing_mails.py
nsob1c12/tetepy
2defb61dea95c69747b07d7c6b3e106b604455ee
[ "BSD-3-Clause" ]
1
2018-11-21T09:53:44.000Z
2018-11-21T09:53:44.000Z
# This file is part of the TeTePy software # # Copyright (c) 2017, 2018, University of Southampton # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retai...
35.141593
93
0.677915
# This file is part of the TeTePy software # # Copyright (c) 2017, 2018, University of Southampton # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retai...
0
0
0
0
0
2,212
0
38
69
c4dd3211d1f0a10eb221a15780b0c8ccb073dcbd
2,161
py
Python
src/sst/elements/merlin/target_generator/pymerlin-targetgen.py
sudhanshu2/sst-elements
d658e5e4b26e5725488f9e93528506ddb22072ee
[ "BSD-3-Clause" ]
58
2015-10-05T15:22:27.000Z
2022-03-31T01:58:36.000Z
src/sst/elements/merlin/target_generator/pymerlin-targetgen.py
sudhanshu2/sst-elements
d658e5e4b26e5725488f9e93528506ddb22072ee
[ "BSD-3-Clause" ]
1,453
2015-10-07T14:51:06.000Z
2022-03-31T22:22:28.000Z
src/sst/elements/merlin/target_generator/pymerlin-targetgen.py
sudhanshu2/sst-elements
d658e5e4b26e5725488f9e93528506ddb22072ee
[ "BSD-3-Clause" ]
109
2015-10-16T22:03:10.000Z
2022-03-22T23:21:32.000Z
#!/usr/bin/env python # # Copyright 2009-2021 NTESS. Under the terms # of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. # # Copyright (c) 2009-2021, NTESS # All rights reserved. # # Portions are copyright of other developers: # See the file CONTRIBUTORS.TXT in the top ...
30.871429
75
0.704766
#!/usr/bin/env python # # Copyright 2009-2021 NTESS. Under the terms # of Contract DE-NA0003525 with NTESS, the U.S. # Government retains certain rights in this software. # # Copyright (c) 2009-2021, NTESS # All rights reserved. # # Portions are copyright of other developers: # See the file CONTRIBUTORS.TXT in the top ...
0
0
0
1,498
0
0
0
-3
137
bf988ff9e14d028ae80d1e406ff9e8ffcbe23aac
16,103
py
Python
mangrove/datastore/documents.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/datastore/documents.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
mangrove/datastore/documents.py
mariot/mangrove
376bca99818c6cc1d08b1c726f46b364c69b0cc7
[ "BSD-3-Clause" ]
null
null
null
HARD_DELETE = 'hard-delete' SOFT_DELETE = 'soft-delete'
32.465726
128
0.682482
import calendar import datetime import logging from time import struct_time from uuid import uuid1 from couchdb.mapping import TextField, Document, DateTimeField, DictField, BooleanField, ListField, FloatField, \ IntegerField from mangrove.utils.dates import py_datetime_to_js_datestring, js_datestring_to_py_datet...
0
2,456
0
12,756
0
0
0
176
639
68657e0ddfa608c132c5b3f31446c8eb2d0c675b
73
py
Python
app/views/core/company/building/__init__.py
polowis/virtComp
142c623da4722f7443d76fc8bef0e56c0aa3d48e
[ "MIT" ]
null
null
null
app/views/core/company/building/__init__.py
polowis/virtComp
142c623da4722f7443d76fc8bef0e56c0aa3d48e
[ "MIT" ]
null
null
null
app/views/core/company/building/__init__.py
polowis/virtComp
142c623da4722f7443d76fc8bef0e56c0aa3d48e
[ "MIT" ]
null
null
null
from .building_create import BuildingCreate __all__ = ['BuildingCreate']
24.333333
43
0.821918
from .building_create import BuildingCreate __all__ = ['BuildingCreate']
0
0
0
0
0
0
0
0
0
1d1791231157d0eba2dfa92ef599939f3bc67fb6
63,123
py
Python
experiments/utils.py
cyrlemaire/acv00
54af7b1f53c81651f7925d1fa604905949f8fb9a
[ "MIT" ]
null
null
null
experiments/utils.py
cyrlemaire/acv00
54af7b1f53c81651f7925d1fa604905949f8fb9a
[ "MIT" ]
null
null
null
experiments/utils.py
cyrlemaire/acv00
54af7b1f53c81651f7925d1fa604905949f8fb9a
[ "MIT" ]
null
null
null
import itertools from collections import defaultdict from operator import itemgetter import string import random import scipy.stats as stats from typing import Tuple, List from sklearn.cluster import AffinityPropagation import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns # from ...
35.264246
154
0.55978
import itertools from collections import defaultdict from operator import itemgetter import string import random import scipy.stats as stats from typing import Tuple, List from sklearn.cluster import AffinityPropagation import matplotlib.pyplot as plt import numpy as np import pandas as pd import time import seaborn as...
0
0
0
0
0
38,620
0
299
1,704
00336919fa07b8500c55c5b3c877365205db5a16
1,650
py
Python
application/api/dependencies.py
alirzaev/fastapi-auth-service
c843874d117282385b064ff6bd875e1b0f12d9d5
[ "MIT" ]
null
null
null
application/api/dependencies.py
alirzaev/fastapi-auth-service
c843874d117282385b064ff6bd875e1b0f12d9d5
[ "MIT" ]
null
null
null
application/api/dependencies.py
alirzaev/fastapi-auth-service
c843874d117282385b064ff6bd875e1b0f12d9d5
[ "MIT" ]
null
null
null
from fastapi.security import OAuth2PasswordBearer reusable_oauth2 = OAuth2PasswordBearer(tokenUrl='/auth/signin')
30.555556
101
0.693939
from fastapi import Depends, HTTPException from fastapi.security import OAuth2PasswordBearer from jose import jwt # noqa from pydantic import ValidationError from sqlalchemy.ext.asyncio import AsyncSession from application import crud from application.core import security from application.core.config import c...
0
0
963
0
0
0
0
225
338
1d949260989377aeeef6446cd4ad8532d78ccb0e
3,870
py
Python
server.py
nicocavi/ChatRoom-Console
5a42f9ac616c6f98944111b70b6254126f4a4e85
[ "MIT" ]
null
null
null
server.py
nicocavi/ChatRoom-Console
5a42f9ac616c6f98944111b70b6254126f4a4e85
[ "MIT" ]
null
null
null
server.py
nicocavi/ChatRoom-Console
5a42f9ac616c6f98944111b70b6254126f4a4e85
[ "MIT" ]
null
null
null
import socket import psycopg2 IP = "localhost" PORT = 8000 BUFFER_SIZE = 2048 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((IP, PORT)) s.listen(100) list_cliente = [] list_sala = [] mensajes = [] conPsql = psycopg2.connect("dbname=chat user=cavi password=ejemplo") curPsql = conPsql.cursor() print("C...
23.454545
149
0.663824
import socket import threading import psycopg2 import time IP = "localhost" PORT = 8000 BUFFER_SIZE = 2048 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((IP, PORT)) s.listen(100) list_cliente = [] list_sala = [] mensajes = [] class Sala(threading.Thread): def __init__(self, name): # Inicializar c...
0
0
0
2,837
0
191
0
-15
159
bc39436d8d938198f143d5f86990258fbc48415c
1,738
py
Python
FAReinforcement/rltools/xbin.py
jamartinh/ReinforcementLearning
75a90fcc2247216fe1bd635d8067f9590e38086a
[ "Apache-2.0" ]
null
null
null
FAReinforcement/rltools/xbin.py
jamartinh/ReinforcementLearning
75a90fcc2247216fe1bd635d8067f9590e38086a
[ "Apache-2.0" ]
null
null
null
FAReinforcement/rltools/xbin.py
jamartinh/ReinforcementLearning
75a90fcc2247216fe1bd635d8067f9590e38086a
[ "Apache-2.0" ]
null
null
null
rangos=[-10,10] numero = 0 deep = 5 print('Rangos: ',rangos) print('Numero: ',numero) print() s,error =GetBinaryCode(numero,rangos,deep,max_error=0) print('binary code',s,' error mark: ',error) print() print('retro conversion') x = GetNum...
22.282051
55
0.451669
from math import pi def int2bin(num,size=None): num =int(num) strbin = "" if num==0: strbin+='0' while num>0: strbin+= str( num % 2 ) num = num / 2 if not size: return strbin if len(strbin)<size: diff = size-len(strbin) strbin+='0'*(...
0
0
0
0
0
1,224
0
-2
123
76e4551f57f3c2afb208c85f04a015879909e84d
192
py
Python
tests/urlpatterns/included_urls.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
tests/urlpatterns/included_urls.py
ni-ning/django
2e7ba6057cfc82a15a22b6021cd60cf307152e2d
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
tests/urlpatterns/included_urls.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
from django.urls import include, path from . import views urlpatterns = [ path('extra/<extra>/', views.empty_view, name='inner-extra'), path('', include('urlpatterns.more_urls')), ]
21.333333
65
0.682292
from django.urls import include, path from . import views urlpatterns = [ path('extra/<extra>/', views.empty_view, name='inner-extra'), path('', include('urlpatterns.more_urls')), ]
0
0
0
0
0
0
0
0
0
565ce6acdd83cf2d2c5495828f85e30d108f8c1b
13,787
py
Python
Approxilyzer/gem5/scripts/relyzer/inj_create.py
cornell-zhang/GLAIVE
8e29ac621a95a25c19ccfeb5071a9d3595093ef7
[ "BSD-3-Clause" ]
10
2020-11-21T04:13:33.000Z
2022-01-03T23:08:09.000Z
Approxilyzer/gem5/scripts/relyzer/inj_create.py
cornell-zhang/GLAIVE
8e29ac621a95a25c19ccfeb5071a9d3595093ef7
[ "BSD-3-Clause" ]
null
null
null
Approxilyzer/gem5/scripts/relyzer/inj_create.py
cornell-zhang/GLAIVE
8e29ac621a95a25c19ccfeb5071a9d3595093ef7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # This script uses the pruning database with the register info # and outputs final injection list. import os import sys from equiv_class import equiv_class_database from pruning_database import pc_info int_reg_info_64 = [ 'rax', 'rbx', 'rcx', 'rdx', 'rbp', 'rsi', 'rdi', 'rsp', '...
38.4039
84
0.583376
#!/usr/bin/python # This script uses the pruning database with the register info # and outputs final injection list. import os import sys import random from equiv_class import equiv_class_database from pruning_database import pc_info from trace import trace int_reg_info_64 = [ 'rax', 'rbx', 'rcx', 'rdx', 'rbp', ...
0
0
0
2,430
0
4,657
0
-6
158
5b3b752647e92dbf6d48592333ae17bef3e5196f
14,914
py
Python
src/greenbudget/lib/model_tracker/track_model.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/lib/model_tracker/track_model.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
src/greenbudget/lib/model_tracker/track_model.py
nickmflorin/django-proper-architecture-testing
da7c4019697e85f921695144375d2f548f1e98ad
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger('greenbudget')
43.73607
89
0.572549
import logging import threading import django from django.db import models logger = logging.getLogger('greenbudget') class track_model: """ Tracks field alterations and other save behaviors of a :obj:`django.db.models.Model`. NOTE: ---- IMPORTANT: Since the Django `save` method is not calle...
0
815
0
13,955
0
0
0
-6
90
5f2371d14e3531469293a4a48da221b0268993be
1,740
py
Python
sqlite/proje-deneme.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
sqlite/proje-deneme.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
sqlite/proje-deneme.py
onselaydin/pytry
314aa50b6f8535e275dc8a2edd0c21637fb5a745
[ "Apache-2.0" ]
null
null
null
print("""*********************************** Ktphane Programna Hogeldiniz. lemler; 1. Kitaplar Gster 2. Kitap Sorgulama 3. Kitap Ekle 4. Kitap Sil 5. Bask Ykselt kmak iin 'q' ya basn. ***********************************""") ktphane = Ktphane() while True: ilem = input("Yapacanz lem:") if (ilem == "...
13.282443
73
0.518391
from kütüphane import * print("""*********************************** Kütüphane Programına Hoşgeldiniz. İşlemler; 1. Kitapları Göster 2. Kitap Sorgulama 3. Kitap Ekle 4. Kitap Sil 5. Baskı Yükselt Çıkmak için 'q' ya basın. ***********************************""") kütüphane = Kütüphane() while True: işlem ...
146
0
0
0
0
0
0
0
22
d8317975ec26cf42b378fee159bc27c071285911
23,181
py
Python
q1.py
Utd04/Detecting-Forest-Covertype-using-Decision-Forests
99b083709c811868e6501607eab575e54b394b54
[ "MIT" ]
null
null
null
q1.py
Utd04/Detecting-Forest-Covertype-using-Decision-Forests
99b083709c811868e6501607eab575e54b394b54
[ "MIT" ]
null
null
null
q1.py
Utd04/Detecting-Forest-Covertype-using-Decision-Forests
99b083709c811868e6501607eab575e54b394b54
[ "MIT" ]
null
null
null
# def makeTree(Data): if __name__ == "__main__": main()
29.643223
147
0.522583
import sys import pandas as pd import numpy as np import math import matplotlib.pyplot as plt from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import GridSearchCV def fileReading(path): data = (pd.read_csv(path, header=None,skiprows=[1]).values) # print(data) typeDictionary...
0
0
0
450
0
22,088
0
41
521
50653418e54a33a0e86bba421b60ee202fffa621
1,871
py
Python
tools/c7n_sphere11/c7n_sphere11/handler.py
pstephan/cloud-custodian
9b9f21e2dd0fa1f67d661526b5f2f1d3eb75df54
[ "Apache-2.0" ]
1
2017-06-26T18:30:22.000Z
2017-06-26T18:30:22.000Z
tools/c7n_sphere11/c7n_sphere11/handler.py
pstephan/cloud-custodian
9b9f21e2dd0fa1f67d661526b5f2f1d3eb75df54
[ "Apache-2.0" ]
2
2018-05-08T23:39:01.000Z
2018-05-14T16:53:43.000Z
tools/c7n_sphere11/c7n_sphere11/handler.py
pstephan/cloud-custodian
9b9f21e2dd0fa1f67d661526b5f2f1d3eb75df54
[ "Apache-2.0" ]
2
2019-11-22T14:54:28.000Z
2021-06-18T13:49:15.000Z
# Copyright 2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
27.514706
74
0.699091
# Copyright 2017 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
0
0
0
0
0
972
0
-37
180
bf6fe8e52d1fcc97236768437feadfc6712572df
12,983
py
Python
src/utils/test.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
26
2016-12-17T10:39:30.000Z
2020-10-28T14:16:42.000Z
src/utils/test.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
120
2016-09-05T20:53:20.000Z
2021-11-24T18:32:27.000Z
src/utils/test.py
vishalbelsare/cgpm
56a481829448bddc9cdfebd42f65023287d5b7c7
[ "Apache-2.0" ]
8
2017-08-02T23:12:50.000Z
2021-11-16T07:20:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
29.175281
80
0.588847
# -*- coding: utf-8 -*- # Copyright (c) 2015-2016 MIT Probabilistic Computing Project # 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 # Unles...
0
0
0
0
0
6,672
0
27
482
b5714b01b740d4103ad31394410f195fc60ced0c
9,273
py
Python
radiobear/brightness.py
david-deboer/radiobear
aedc716c7acf0c69d278988842407545f1043c17
[ "BSD-2-Clause" ]
3
2019-05-13T21:03:57.000Z
2021-04-22T05:33:33.000Z
radiobear/brightness.py
david-deboer/radiobear
aedc716c7acf0c69d278988842407545f1043c17
[ "BSD-2-Clause" ]
1
2020-02-11T20:34:49.000Z
2020-02-11T20:34:49.000Z
radiobear/brightness.py
david-deboer/radiobear
aedc716c7acf0c69d278988842407545f1043c17
[ "BSD-2-Clause" ]
null
null
null
# -*- mode: python; coding: utf-8 -*- # Copyright 2018 David DeBoer # Licensed under the 2-clause BSD license.
38.799163
100
0.485496
# -*- mode: python; coding: utf-8 -*- # Copyright 2018 David DeBoer # Licensed under the 2-clause BSD license. import numpy as np from scipy.special import expn import os.path from . import utils from . import raypath as ray from . import logging class Brightness(): def __init__(self, config=None, log=None, verb...
0
0
0
9,002
0
0
0
4
155
dd9b3a6fb03398bcc5ce440599a87ea32764a855
260
py
Python
Study/src/com/company/filehanding/remember_me.py
guptasuresh2004/python_handson
8f47784b09bddabd5ab28d38641cfca671869623
[ "MIT" ]
null
null
null
Study/src/com/company/filehanding/remember_me.py
guptasuresh2004/python_handson
8f47784b09bddabd5ab28d38641cfca671869623
[ "MIT" ]
null
null
null
Study/src/com/company/filehanding/remember_me.py
guptasuresh2004/python_handson
8f47784b09bddabd5ab28d38641cfca671869623
[ "MIT" ]
null
null
null
''' Created on Oct 5, 2017 @author: Sku293 ''' import json username = input("What is your name? ") filename = 'username.json' with open(filename, 'w') as f_obj: json.dump(username, f_obj) print("We'll remember you when you come back, " + username + "!")
20
65
0.669231
''' Created on Oct 5, 2017 @author: Sku293 ''' import json username = input("What is your name? ") filename = 'username.json' with open(filename, 'w') as f_obj: json.dump(username, f_obj) print("We'll remember you when you come back, " + username + "!")
0
0
0
0
0
0
0
0
0
ae7c7d1df4d1492dadb6c91b4e310926eaeb941d
727
py
Python
gameserver/models/solve.py
pnoj/pCTF
70d4eab26b07153c19c20a0814cb1ef311036ada
[ "Apache-2.0" ]
null
null
null
gameserver/models/solve.py
pnoj/pCTF
70d4eab26b07153c19c20a0814cb1ef311036ada
[ "Apache-2.0" ]
null
null
null
gameserver/models/solve.py
pnoj/pCTF
70d4eab26b07153c19c20a0814cb1ef311036ada
[ "Apache-2.0" ]
null
null
null
# Create your models here.
23.451613
64
0.631362
from django.db import models from django.urls import reverse from .problem import Problem from .profile import User # Create your models here. class Solve(models.Model): solver = models.ForeignKey( User, on_delete=models.SET_NULL, null=True, blank=True, related_name="solv...
0
0
0
558
0
0
0
28
112
fadcd24d5a965ab0fa488ed563e59455e8c86e71
361
py
Python
setup.py
jdgillespie91/twitter-ads
9485fd2a196e47b012bb1209634a76b89732dfca
[ "MIT" ]
null
null
null
setup.py
jdgillespie91/twitter-ads
9485fd2a196e47b012bb1209634a76b89732dfca
[ "MIT" ]
null
null
null
setup.py
jdgillespie91/twitter-ads
9485fd2a196e47b012bb1209634a76b89732dfca
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='twads', packages=['twads'], version='0.1.8', description='A wrapper for the Twitter Ads API', author='Jacob Gillespie', author_email='jdgillespie91@gmail.com', url='https://github.com/jdgillespie91/twads', install_requires=[ 'reques...
21.235294
52
0.642659
from distutils.core import setup setup( name='twads', packages=['twads'], version='0.1.8', description='A wrapper for the Twitter Ads API', author='Jacob Gillespie', author_email='jdgillespie91@gmail.com', url='https://github.com/jdgillespie91/twads', install_requires=[ 'reques...
0
0
0
0
0
0
0
0
0
b97485edd92e5bfca1967b17a69e2732c2b3a0ee
7,979
py
Python
tests/test_reporters.py
carrier-io/perfreporter
f5b472137af5471bce0252af7de6995cc9d87532
[ "Apache-2.0" ]
null
null
null
tests/test_reporters.py
carrier-io/perfreporter
f5b472137af5471bce0252af7de6995cc9d87532
[ "Apache-2.0" ]
3
2020-10-30T10:33:53.000Z
2022-01-13T16:41:51.000Z
tests/test_reporters.py
carrier-io/perfreporter
f5b472137af5471bce0252af7de6995cc9d87532
[ "Apache-2.0" ]
3
2019-09-06T11:28:39.000Z
2021-07-21T09:07:04.000Z
from perfreporter.reporter import Reporter from perfreporter.ado_reporter import ADOReporter import tests.utils.constants as c reporter = Reporter(config_file="tests/utils/config.yaml") ado_reporter = ADOReporter(ado_config={"org": "my_org", "project": "my_project", "pat": "my_pat", "team": "my_team"}, ...
48.652439
122
0.616368
import pytest import hashlib import requests_mock from perfreporter.reporter import Reporter from perfreporter.ado_reporter import ADOReporter import tests.utils.constants as c reporter = Reporter(config_file="tests/utils/config.yaml") ado_reporter = ADOReporter(ado_config={"org": "my_org", "project": "my_project", "...
0
0
0
0
0
7,271
0
-16
365
75ca971a13043ec9bb143c798396e2db0ae9fef9
2,772
py
Python
assignment_2/test2.py
RushilDaya/cv-assignments
6a09a7b3494fc94f01e11edd5efe195119b5e3f6
[ "MIT" ]
null
null
null
assignment_2/test2.py
RushilDaya/cv-assignments
6a09a7b3494fc94f01e11edd5efe195119b5e3f6
[ "MIT" ]
null
null
null
assignment_2/test2.py
RushilDaya/cv-assignments
6a09a7b3494fc94f01e11edd5efe195119b5e3f6
[ "MIT" ]
null
null
null
# attempting here to determine if we can get a grayscale plot showing intensitity of # were the dog is based on the SIFT method import cv2 import numpy as np MATCH_POINTS = 10 SIFT = cv2.xfeatures2d.SIFT_create() ## process the base image of the dog #################################################### OBJECT = cv2...
33.39759
193
0.689394
# attempting here to determine if we can get a grayscale plot showing intensitity of # were the dog is based on the SIFT method import cv2 import numpy as np import matplotlib.pyplot as plt import inspect MATCH_POINTS = 10 SIFT = cv2.xfeatures2d.SIFT_create() ## process the base image of the dog #################...
0
0
0
0
0
151
0
3
68
e08dda0b9e391685ebb03ca064b5544422ced927
24,322
py
Python
mmtbx/ions/svm/__init__.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/ions/svm/__init__.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/ions/svm/__init__.py
jbeilstenedmands/cctbx_project
c228fb15ab10377f664c39553d866281358195aa
[ "BSD-3-Clause-LBNL" ]
null
null
null
# -*- coding: utf-8; py-indent-offset: 2 -*- """ A set of functions to act upon ChemicalEnvironment and ScatteringEnvironment and produce a single class and vector of features for use with a classifier. This module relies on a SVM classifier generated by the module within phenix_dev.ion_identification.nader_ml. See th...
32.95664
90
0.694227
# -*- coding: utf-8; py-indent-offset: 2 -*- """ A set of functions to act upon ChemicalEnvironment and ScatteringEnvironment and produce a single class and vector of features for use with a classifier. This module relies on a SVM classifier generated by the module within phenix_dev.ion_identification.nader_ml. See th...
0
0
0
6,181
739
0
0
79
181
705e3a4a70c08eb0c1cfb381dd54acd3b3e56569
1,394
py
Python
pygeom/point.py
NaysanSaran/pyGeom2D
b738a5a5ccd5d6ba8a76034ab2da9c1a29524f16
[ "MIT" ]
3
2022-01-17T20:03:26.000Z
2022-02-16T20:38:35.000Z
pygeom/point.py
NaysanSaran/pyGeom2D
b738a5a5ccd5d6ba8a76034ab2da9c1a29524f16
[ "MIT" ]
null
null
null
pygeom/point.py
NaysanSaran/pyGeom2D
b738a5a5ccd5d6ba8a76034ab2da9c1a29524f16
[ "MIT" ]
null
null
null
def midpoint(p1, p2, add_coordinates=True, color='#4ca3dd'): """ Midpoint between two 2D points p1: Point() p2: Point() """ x = (p1[0]+p2[0])/2 y = (p1[1]+p2[1])/2 return Point(x,y, color=color, add_coordinates=add_coordinates)
25.814815
90
0.549498
import matplotlib.pyplot as plt import numpy as np def midpoint(p1, p2, add_coordinates=True, color='#4ca3dd'): """ Midpoint between two 2D points p1: Point() p2: Point() """ x = (p1[0]+p2[0])/2 y = (p1[1]+p2[1])/2 return Point(x,y, color=color, add_coordinates=add_coordinates)...
0
0
0
1,048
0
0
0
7
67
23da1aa79329e8b934c603087c74c7924caf21a1
1,369
py
Python
testing/openlibrarytest.py
darklands1/bkeep
f5aa03bdf2afb7bd631502b5a2c758b6ef0d5ae7
[ "MIT" ]
1
2020-01-08T17:58:39.000Z
2020-01-08T17:58:39.000Z
testing/openlibrarytest.py
swegbun/bkeep
f5aa03bdf2afb7bd631502b5a2c758b6ef0d5ae7
[ "MIT" ]
null
null
null
testing/openlibrarytest.py
swegbun/bkeep
f5aa03bdf2afb7bd631502b5a2c758b6ef0d5ae7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-i') args = parser.parse_args() isbn = args.i if isbn != None: if len(isbn) == 13: isbn = isbn13to10(isbn) if len(isbn) != 10: print("In...
26.326923
116
0.568298
#!/usr/bin/env python3 import argparse import requests def isbn13to10(isbn): isbn = isbn[3:len(isbn) - 1] chkchr = 0 index = 1 for c in isbn: chkchr += int(c) * index index += 1 chkchr %= 11 if chkchr == 10: chkchr = 'X' isbn += str(chkchr) return isbn def ge...
0
0
0
0
0
788
0
-6
91
63a65dcd3a75e2426ecd83c7a15b4b1d6091e325
561
py
Python
code5/11-daili-nofree.py
weijie88/spider_files
9039f7ff0f4c76bc5aa80ca8b87b8280880392cc
[ "Apache-2.0" ]
null
null
null
code5/11-daili-nofree.py
weijie88/spider_files
9039f7ff0f4c76bc5aa80ca8b87b8280880392cc
[ "Apache-2.0" ]
null
null
null
code5/11-daili-nofree.py
weijie88/spider_files
9039f7ff0f4c76bc5aa80ca8b87b8280880392cc
[ "Apache-2.0" ]
null
null
null
import requests # ip daili_url = 'http://kps.kdlapi.com/api/getkps/?orderid=963689621512832&num=1&pt=1&sep=1' response = requests.get(url=daili_url) url = 'http://www.baidu.com/s' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari...
25.5
135
0.686275
import requests #执行这个连接 那么就会返回一个ip以及端口号 daili_url = 'http://kps.kdlapi.com/api/getkps/?orderid=963689621512832&num=1&pt=1&sep=1' response = requests.get(url=daili_url) url = 'http://www.baidu.com/s' headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/...
57
0
0
0
0
0
0
0
0
6ed853bca66bc97bc4f51509e63446f5bb7a1dd6
1,943
py
Python
file-copy/monitor.py
benalexau/PiZWG
729ec6fb4c515b2862d7c44a62ef35806011a845
[ "Apache-2.0" ]
2
2020-12-19T21:24:22.000Z
2021-01-05T14:20:25.000Z
file-copy/monitor.py
benalexau/PiZWG
729ec6fb4c515b2862d7c44a62ef35806011a845
[ "Apache-2.0" ]
null
null
null
file-copy/monitor.py
benalexau/PiZWG
729ec6fb4c515b2862d7c44a62ef35806011a845
[ "Apache-2.0" ]
1
2021-02-06T23:43:26.000Z
2021-02-06T23:43:26.000Z
#!/bin/python3 # Hostname where the ser2net control port is available HOST="localhost" # Port where the ser2net control port is available PORT=4444 # Timeout for telnet connection and read operations TIMEOUT_SECS=5 # Sleep period between successive "showport" commands COMMAND_SLEEP=1 # Line number of ser2net "show...
30.84127
78
0.702522
#!/bin/python3 import re import time from telnetlib import Telnet # Hostname where the ser2net control port is available HOST="localhost" # Port where the ser2net control port is available PORT=4444 # Timeout for telnet connection and read operations TIMEOUT_SECS=5 # Sleep period between successive "showport" comm...
0
0
0
0
0
1,138
0
-15
112
811ecc17d34aee077f12dfb81b23ea2a6ee1daef
2,943
py
Python
age_asian_train.py
nguoido/age-train
deecf12d87f28029b8e2364044a76545ea6fdc1f
[ "MIT" ]
null
null
null
age_asian_train.py
nguoido/age-train
deecf12d87f28029b8e2364044a76545ea6fdc1f
[ "MIT" ]
null
null
null
age_asian_train.py
nguoido/age-train
deecf12d87f28029b8e2364044a76545ea6fdc1f
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
42.652174
124
0.626572
from pathlib import Path import multiprocessing import pandas as pd from sklearn.model_selection import train_test_split import hydra from hydra.utils import to_absolute_path import tensorflow as tf from tensorflow.keras.callbacks import ModelCheckpoint, LearningRateScheduler, EarlyStopping, ReduceLROnPlateau, TensorBo...
0
2,440
0
0
0
0
0
221
243
2403d88629fdc712c4bd73bb84c646b45869e60e
18,927
py
Python
pretrain.py
ku21fan/STR-Fewer-Labels
9ca8c5e6707e5ed1300babd5607b1741a916ddda
[ "MIT" ]
105
2021-03-07T05:40:10.000Z
2022-03-30T02:33:01.000Z
pretrain.py
ku21fan/STR-Fewer-Labels
9ca8c5e6707e5ed1300babd5607b1741a916ddda
[ "MIT" ]
4
2021-03-22T09:38:21.000Z
2022-01-13T04:05:02.000Z
pretrain.py
ku21fan/STR-Fewer-Labels
9ca8c5e6707e5ed1300babd5607b1741a916ddda
[ "MIT" ]
13
2021-06-09T11:37:42.000Z
2022-03-17T16:14:59.000Z
import os import sys import random import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np device = torch.device("cuda" if torch.cuda.is_available() else "cpu") if __name__ == "__main__": ...
35.44382
160
0.552333
import os import sys import time import random import string import argparse import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data import numpy as np from tqdm import tqdm from utils import Averager, adjust_learning_rate, Attn...
0
0
0
0
0
10,656
0
124
211
8072b4723d4f9a8d7c0925897254360d4f2d28a3
13,818
py
Python
unittests/test_frontend_glideinFrontendElement.py
ddbox/glideinwms
1d0efbc1186ff9bd4cc3010fde6681b4cbe7cd54
[ "Apache-2.0" ]
null
null
null
unittests/test_frontend_glideinFrontendElement.py
ddbox/glideinwms
1d0efbc1186ff9bd4cc3010fde6681b4cbe7cd54
[ "Apache-2.0" ]
null
null
null
unittests/test_frontend_glideinFrontendElement.py
ddbox/glideinwms
1d0efbc1186ff9bd4cc3010fde6681b4cbe7cd54
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # SPDX-FileCopyrightText: 2009 Fermi Research Alliance, LLC # SPDX-License-Identifier: Apache-2.0 """ Project: glideinWMS Purpose: unit test for glideinwms/frontend/glideinFrontendElement.py Author: Dennis Box, dbox@fnal.gov """ import unittest import xmlrunner import glideinwms.l...
36.555556
285
0.664713
#!/usr/bin/env python3 # SPDX-FileCopyrightText: 2009 Fermi Research Alliance, LLC # SPDX-License-Identifier: Apache-2.0 """ Project: glideinWMS Purpose: unit test for glideinwms/frontend/glideinFrontendElement.py Author: Dennis Box, dbox@fnal.gov """ import os import unittest from unittest import mock...
0
5,486
0
6,692
0
385
0
263
343