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
c4ec1e134627fcfd2dd069c062bd66ddc12bdac3
1,788
py
Python
src/xmlxplode/simple_xml_utils.py
LeonPoon/pydtsxplode
cbfdac6fe16c15d7d8edcc616dc4505ef0c216c9
[ "Apache-2.0" ]
null
null
null
src/xmlxplode/simple_xml_utils.py
LeonPoon/pydtsxplode
cbfdac6fe16c15d7d8edcc616dc4505ef0c216c9
[ "Apache-2.0" ]
null
null
null
src/xmlxplode/simple_xml_utils.py
LeonPoon/pydtsxplode
cbfdac6fe16c15d7d8edcc616dc4505ef0c216c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Leon Poon and Contributors # # 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 ...
34.384615
86
0.672819
# Copyright 2016 Leon Poon and Contributors # # 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 ...
0
0
0
0
0
1,052
0
20
100
14aeb9d74c2ab7933914a759084abac2ca04914c
194
py
Python
students/k3343/laboratory_works/Revenko_Anna/laboratory_work_1/hotel_project/hotel_app/admin.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3343/laboratory_works/Revenko_Anna/laboratory_work_1/hotel_project/hotel_app/admin.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3343/laboratory_works/Revenko_Anna/laboratory_work_1/hotel_project/hotel_app/admin.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
from django.contrib import admin # Register your models here. admin.site.register(Hotel) admin.site.register(Owner) admin.site.register(Room) admin.site.register(Comment)
21.555556
32
0.798969
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Hotel) admin.site.register(Owner) admin.site.register(Room) admin.site.register(Comment)
0
0
0
0
0
0
0
0
22
7f6c1a26de6ce129ba75b956c00124b94744ec31
1,575
py
Python
test/python/old/test_crumbs.py
Hap-Hugh/quicksel
10eee90b759638d5c54ba19994ae8e36e90e12b8
[ "Apache-2.0" ]
15
2020-07-07T16:32:53.000Z
2022-03-16T14:23:23.000Z
test/python/old/test_crumbs.py
Hap-Hugh/quicksel
10eee90b759638d5c54ba19994ae8e36e90e12b8
[ "Apache-2.0" ]
2
2020-09-02T15:25:39.000Z
2020-09-24T08:37:18.000Z
test/python/old/test_crumbs.py
Hap-Hugh/quicksel
10eee90b759638d5c54ba19994ae8e36e90e12b8
[ "Apache-2.0" ]
6
2020-08-14T22:02:07.000Z
2021-03-31T07:08:29.000Z
import numpy as np data = generate_dataset() past_queries = [] past_queries.append(Query([0.2, 0.2, 0.6, 0.6], 0.4, 1)) test_queries, freqmat = generate_test_queries(data) quickSel = Crumbs() quickSel.assign_optimal_freq(past_queries) crumbs_answers = map(lambda t: quickSel.answer(t), test_queries) import matplotl...
26.694915
71
0.596825
from test_include import * import numpy as np def generate_dataset(size = 100000, seed = 1): np.random.seed(seed) cov = np.array([[0.09, 0.04], [0.04, 0.09]]) mean = np.array([0.5, 0.5]) return np.random.multivariate_normal(mean, cov, size) def count_tuple(data, boundary): assert(len(boundary) == ...
0
0
0
0
0
1,044
0
5
114
c8e19931de78fc46235c3868273adb5e0c660448
2,340
py
Python
tdp/mtc/Clean/HurcoDataClean.py
usnistgov/smstestbed
968279f14ebe96c03c8877eeb1901cf6b4c8fbab
[ "Unlicense" ]
16
2016-04-04T17:50:39.000Z
2021-07-24T02:46:03.000Z
tdp/mtc/Clean/HurcoDataClean.py
Liming-Jsl/smstestbed
968279f14ebe96c03c8877eeb1901cf6b4c8fbab
[ "Unlicense" ]
1
2019-06-23T00:18:57.000Z
2019-08-06T12:44:17.000Z
tdp/mtc/Clean/HurcoDataClean.py
Liming-Jsl/smstestbed
968279f14ebe96c03c8877eeb1901cf6b4c8fbab
[ "Unlicense" ]
9
2016-09-10T18:27:23.000Z
2021-01-01T23:42:05.000Z
#!/usr/bin/env python3 # Define input and output files fileToClean = '/Users/tdh1/Desktop/MTCdata/2-17-2017-Hurco04.txt' #input file fileToSave = '/Users/tdh1/Desktop/MTCdata/2-17-2017-Hurco04-Clean.txt' #output file fileToTemp = '/Users/tdh1/Desktop/MTCdata/Temp.txt' #temp file tempFile = open( fileToClean, 'r' ) di...
39.661017
128
0.705128
#!/usr/bin/env python3 import os import sys import fileinput import itertools # Define input and output files fileToClean = '/Users/tdh1/Desktop/MTCdata/2-17-2017-Hurco04.txt' #input file fileToSave = '/Users/tdh1/Desktop/MTCdata/2-17-2017-Hurco04-Clean.txt' #output file fileToTemp = '/Users/tdh1/Desktop/MTCdata/Temp....
0
0
0
0
0
0
0
-33
88
1cc4e97ba2410ce58873d30debcd0de6996ebae1
319
py
Python
python-codes/m2_curso_em_video_estruturas_de_controle/ex060.0.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
python-codes/m2_curso_em_video_estruturas_de_controle/ex060.0.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
python-codes/m2_curso_em_video_estruturas_de_controle/ex060.0.py
lucasportella/learning_repo
a9449dffd489e7e1f1619e3acef86bc2c64f0f14
[ "MIT" ]
null
null
null
num = int(input('Digite um valor p/ saber seu fatorial: ')) c = num d = num print('{}!= {}x'.format(num,num),end='') while c != 1: c -= 1 num += (c * num) - num if c != 1: print('{}x'.format(c), end='') else: print('{}'.format(c), end='') print('\nO fatorial de {} {}.'.format(d,num))
24.538462
59
0.489028
num = int(input('Digite um valor p/ saber seu fatorial: ')) c = num d = num print('{}!= {}x'.format(num,num),end='') while c != 1: c -= 1 num += (c * num) - num if c != 1: print('{}x'.format(c), end='') else: print('{}'.format(c), end='') print('\nO fatorial de {} é {}.'.format(d,num))
2
0
0
0
0
0
0
0
0
9549f4377bf3752dfffca66c9c950253f91c9298
3,814
py
Python
ymir/utils/indexes.py
karlcow/ymir
17480db4a6b782130c3c68f5fa255999d2aec8e6
[ "MIT" ]
1
2021-07-08T08:41:25.000Z
2021-07-08T08:41:25.000Z
ymir/utils/indexes.py
karlcow/ymir
17480db4a6b782130c3c68f5fa255999d2aec8e6
[ "MIT" ]
16
2015-10-29T00:24:03.000Z
2021-05-16T23:28:55.000Z
ymir/utils/indexes.py
karlcow/ymir
17480db4a6b782130c3c68f5fa255999d2aec8e6
[ "MIT" ]
1
2020-12-06T22:05:12.000Z
2020-12-06T22:05:12.000Z
#!/usr/bin/env python # encoding: utf-8 """ Parses and updates indexes files. Created by Karl Dubost on 2018-03-25. Copyright (c) 2018 Grange. All rights reserved. see LICENSE.TXT """ import datetime import logging import os import string import sys import lxml.html from lxml import etree from ymir.utils import hel...
30.758065
72
0.673047
#!/usr/bin/env python # encoding: utf-8 """ Parses and updates indexes files. Created by Karl Dubost on 2018-03-25. Copyright (c) 2018 Grange. All rights reserved. see LICENSE.TXT """ import datetime import logging import os import string import sys import lxml.html from lxml import etree from ymir.utils import hel...
3
0
0
0
0
0
0
18
22
3cf6585d47a80e33ad90b80b6f06cdc977d3d26a
7,983
py
Python
io-apparillo6.py
RO-LIP/Apparillo-6
f332df3404565f7b289d4615e3dab1f4aaf23eb4
[ "MIT" ]
2
2019-11-05T16:47:26.000Z
2020-07-22T09:26:04.000Z
io-apparillo6.py
RO-LIP/Apparillo-6
f332df3404565f7b289d4615e3dab1f4aaf23eb4
[ "MIT" ]
null
null
null
io-apparillo6.py
RO-LIP/Apparillo-6
f332df3404565f7b289d4615e3dab1f4aaf23eb4
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from gpiozero import RGBLED, Button, LED, DigitalOutputDevice from time import sleep from subprocess import getoutput ''' Script zum aktivieren verschiedener Ein- und Ausgabegeraete -Rotary Encoder zur Lautstaerkeregelung -RGB LED zur Anzeige/Visualisierung des Lautstaerkepegels -Taster zum Pausiere...
37.834123
150
0.721909
#!/usr/bin/python3 from gpiozero import RGBLED, Button, LED, DigitalOutputDevice from time import sleep from subprocess import getoutput from signal import pause from os import system ''' Script zum aktivieren verschiedener Ein- und Ausgabegeraete -Rotary Encoder zur Lautstaerkeregelung -RGB LED zur Anzeige/Visualisie...
8
0
0
0
0
2,387
0
3
251
b66d30840dbe7bbb7607d1d78f5f8a7ee0f6d9a1
8,672
py
Python
pkgs/ipywidgets-4.1.1-py27_0/lib/python2.7/site-packages/ipywidgets/widgets/widget_selection.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
pkgs/ipywidgets-4.1.1-py27_0/lib/python2.7/site-packages/ipywidgets/widgets/widget_selection.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
pkgs/ipywidgets-4.1.1-py27_0/lib/python2.7/site-packages/ipywidgets/widgets/widget_selection.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
"""Selection classes. Represents an enumeration using a widget. """ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License.
37.541126
129
0.618773
"""Selection classes. Represents an enumeration using a widget. """ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from collections import OrderedDict from threading import Lock from .widget import DOMWidget, register from traitlets import ( Unicode, Bool, A...
0
1,805
0
6,271
0
0
0
142
273
1d85abc996c1aa159699afac88d2c880583b1ea5
5,152
py
Python
channels/views/subscribers_test.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
12
2017-09-27T21:23:27.000Z
2020-12-25T04:31:30.000Z
channels/views/subscribers_test.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
3,293
2017-06-30T18:16:01.000Z
2022-03-31T18:01:34.000Z
channels/views/subscribers_test.py
mitodl/open-discussions
ab6e9fac70b8a1222a84e78ba778a7a065c20541
[ "BSD-3-Clause" ]
1
2020-04-13T12:19:57.000Z
2020-04-13T12:19:57.000Z
"""Tests for views for REST APIs for channels""" # pylint: disable=unused-argument import pytest from django.urls import reverse from rest_framework import status from open_discussions.constants import NOT_AUTHENTICATED_ERROR_TYPE from open_discussions.factories import UserFactory pytestmark = [pytest.mark.betamax, p...
37.064748
88
0.715256
"""Tests for views for REST APIs for channels""" # pylint: disable=unused-argument import pytest from django.urls import reverse from rest_framework import status from open_discussions.constants import NOT_AUTHENTICATED_ERROR_TYPE from open_discussions.factories import UserFactory pytestmark = [pytest.mark.betamax, p...
0
1,017
0
0
0
0
0
0
46
2e8f783bec79c4f99b4c04359ccca01d0df7da5c
2,983
py
Python
Platforms/Web/Processing/Api/Discord/Levels/get.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Api/Discord/Levels/get.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
Platforms/Web/Processing/Api/Discord/Levels/get.py
HeapUnderfl0w/Phaazebot
54e637bd4bc213b8efdaf23d5f331f2569e96843
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING if TYPE_CHECKING: DEFAULT_LIMIT:int = 50 MAX_LIMIT:int = 100
33.144444
190
0.745558
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Web.index import WebIndex from Platforms.Discord.main_discord import PhaazebotDiscord import json import discord from aiohttp.web import Response, Request from Utils.Classes.webrequestcontent import WebRequestContent from Platforms.Discord.utils impor...
0
0
2,347
0
0
0
0
295
246
3aeb56580501070191a78807b1b87cf2ec8fa414
77
py
Python
xtp_job_control/__init__.py
votca/xtp_job_control
e996e848666780fd2135b74550fb0111cb2be7bd
[ "Apache-2.0" ]
null
null
null
xtp_job_control/__init__.py
votca/xtp_job_control
e996e848666780fd2135b74550fb0111cb2be7bd
[ "Apache-2.0" ]
9
2019-01-08T12:04:06.000Z
2020-03-06T13:24:00.000Z
xtp_job_control/__init__.py
votca/xtp_job_control
e996e848666780fd2135b74550fb0111cb2be7bd
[ "Apache-2.0" ]
2
2019-01-24T12:14:59.000Z
2021-02-10T15:36:51.000Z
from .workflows.run_workflow import run_workflow __all__ = ['run_workflow']
19.25
48
0.805195
from .workflows.run_workflow import run_workflow __all__ = ['run_workflow']
0
0
0
0
0
0
0
0
0
af2a991f446833fd155e1c954b8639131eac45b0
1,346
py
Python
image.py
dhruvsheth-ai/Spatio-Temporal-GAN
2a4c63ec4e9ecc941c0d182c0580642000a4cb08
[ "MIT" ]
null
null
null
image.py
dhruvsheth-ai/Spatio-Temporal-GAN
2a4c63ec4e9ecc941c0d182c0580642000a4cb08
[ "MIT" ]
null
null
null
image.py
dhruvsheth-ai/Spatio-Temporal-GAN
2a4c63ec4e9ecc941c0d182c0580642000a4cb08
[ "MIT" ]
null
null
null
import cv2 import numpy as np import cmapy img = cv2.imread('/home/pi/opencv/video0007_frame0007gt_R128x128.png').astype(np.float) # BGR, float blue = img[:,:,2] green = img[:,:,1] red = img[:,:,0] exg = 2*green - red - blue print("max exg", exg.max()) print("mean exg", exg.mean()) print("min exg", exg.min()) im...
24.035714
102
0.681278
import cv2 import numpy as np import cmapy import matplotlib.pyplot as plt img = cv2.imread('/home/pi/opencv/video0007_frame0007gt_R128x128.png').astype(np.float) # BGR, float blue = img[:,:,2] green = img[:,:,1] red = img[:,:,0] exg = 2*green - red - blue print("max exg", exg.max()) print("mean exg", exg.mean())...
0
0
0
0
0
0
0
10
23
e3cd58004511256002daf9b2dcdae5ea0fc7c768
313
py
Python
pdsf_py2/pydysofu/__init__.py
probablytom/pydysofu
6b760f288fb4305561e885e54652cfb11c80ef14
[ "MIT" ]
null
null
null
pdsf_py2/pydysofu/__init__.py
probablytom/pydysofu
6b760f288fb4305561e885e54652cfb11c80ef14
[ "MIT" ]
null
null
null
pdsf_py2/pydysofu/__init__.py
probablytom/pydysofu
6b760f288fb4305561e885e54652cfb11c80ef14
[ "MIT" ]
null
null
null
""" Front end API for the fuzzi_moss library. """
34.777778
97
0.84345
""" Front end API for the fuzzi_moss library. """ from .fuzz_decorator import fuzz, set_fuzzer from .fuzz_weaver import fuzz_clazz, defuzz_class, fuzz_module, defuzz_all_classes from .config import pydysofu_random from .core_fuzzers import fuzzer_invocations, fuzzer_invocations_count, reset_invocation_counters
0
0
0
0
0
0
0
174
89
f9f1158c6d3659c9073133ff360cd049679377b1
262
py
Python
py/place/unpack.py
teppchan/tkintertips
dc4b43e86185906d72ba5d5712edee94c76f8b37
[ "MIT" ]
null
null
null
py/place/unpack.py
teppchan/tkintertips
dc4b43e86185906d72ba5d5712edee94c76f8b37
[ "MIT" ]
null
null
null
py/place/unpack.py
teppchan/tkintertips
dc4b43e86185906d72ba5d5712edee94c76f8b37
[ "MIT" ]
null
null
null
#!/usr/bin/env python import Tkinter as Tk root=Tk.Tk() label=Tk.Label(root, text="Label") label.pack(side='top') button=Tk.Button(root, text="unpack", command=label_unpack) button.pack(side='top') root.mainloop()
17.466667
59
0.717557
#!/usr/bin/env python import Tkinter as Tk root=Tk.Tk() label=Tk.Label(root, text="Label") label.pack(side='top') def label_unpack(): label.pack_forget() button=Tk.Button(root, text="unpack", command=label_unpack) button.pack(side='top') root.mainloop()
0
0
0
0
0
22
0
0
23
4270d790afa4624619214e25915fee27c2b4bfc1
2,032
py
Python
graph.py
jnguyen1098/gryph-graph
adede75e594e34af7a3da62ee1177c177e7e527a
[ "0BSD" ]
null
null
null
graph.py
jnguyen1098/gryph-graph
adede75e594e34af7a3da62ee1177c177e7e527a
[ "0BSD" ]
2
2020-06-10T02:28:55.000Z
2021-04-15T19:50:52.000Z
graph.py
jnguyen1098/gryph-graph
adede75e594e34af7a3da62ee1177c177e7e527a
[ "0BSD" ]
1
2020-10-02T14:32:58.000Z
2020-10-02T14:32:58.000Z
#!/usr/bin/env python3 import sys import re prereq_reg = re.compile(r'[A-Z]{2,4}\*[0-9]{4}') restrict_reg = re.compile(r'[A-Z]{2,4}\*[0-9]{4}') if __name__ == "__main__": sys.exit(main(sys.argv))
28.619718
105
0.619094
#!/usr/bin/env python3 import pygraphviz import wyvern import random import pydot import sys import csv import re prereq_reg = re.compile(r'[A-Z]{2,4}\*[0-9]{4}') restrict_reg = re.compile(r'[A-Z]{2,4}\*[0-9]{4}') class Course: def __init__(self, name, prereqs, restricts): self.name = name self.p...
0
0
0
221
0
1,446
0
-40
203
66e56ce61a75cf31386ee63dde0e174382ec639d
1,726
py
Python
xsadmin_server.py
burningcx/shadowsocksr-p
615f793edbdace4ab1001560054d4b2a6720e905
[ "Apache-2.0" ]
null
null
null
xsadmin_server.py
burningcx/shadowsocksr-p
615f793edbdace4ab1001560054d4b2a6720e905
[ "Apache-2.0" ]
null
null
null
xsadmin_server.py
burningcx/shadowsocksr-p
615f793edbdace4ab1001560054d4b2a6720e905
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' @author: alishtory @site: https://github.com/alishtory @file: xsadmin_server.py @time: 2017/3/10 16:33 @description: ''' import config_xsadmin as config import time, logging if __name__ == '__main__': manager = XsadminServerManager() while(True): try:...
31.962963
102
0.681344
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' @author: alishtory @site: https://github.com/alishtory @file: xsadmin_server.py @time: 2017/3/10 16:33 @description: ''' import config_xsadmin as config import requests, hashlib import time, random, logging from ServerManager import AbstractServerManager class Xsadmi...
18
0
0
415
0
652
0
37
136
dfb688b2d22b7a27719b37abd2123f2772bfb0a7
426
py
Python
orders/urls.py
MrRezoo/django-online-shop
2b0044ed41fe1b89c5fd2c2ea73822c6f43b5f6e
[ "MIT" ]
1
2021-09-14T14:54:16.000Z
2021-09-14T14:54:16.000Z
orders/urls.py
MrRezoo/django-online-shop
2b0044ed41fe1b89c5fd2c2ea73822c6f43b5f6e
[ "MIT" ]
1
2022-01-18T07:20:57.000Z
2022-01-18T07:20:57.000Z
orders/urls.py
MrRezoo/django-online-shop
2b0044ed41fe1b89c5fd2c2ea73822c6f43b5f6e
[ "MIT" ]
null
null
null
from django.urls import path from orders import views app_name = 'orders' urlpatterns = [ path('create/', views.order_create, name='order_create'), path('<int:order_id>/', views.detail, name='detail'), path('payment/<int:order_id>/<int:price>', views.payment, name='payment'), path('verify/', views.ve...
30.428571
81
0.685446
from django.urls import path from orders import views app_name = 'orders' urlpatterns = [ path('create/', views.order_create, name='order_create'), path('<int:order_id>/', views.detail, name='detail'), path('payment/<int:order_id>/<int:price>', views.payment, name='payment'), path('verify/', views.ve...
0
0
0
0
0
0
0
0
0
d420e0659329ea1196870644b7417fb120f63575
614
py
Python
main.py
nitoc-ict/slack-FileRemove
8e9c96b0603fd8ee8056198b55ad0676a4229172
[ "MIT" ]
1
2020-02-15T12:04:00.000Z
2020-02-15T12:04:00.000Z
main.py
nitoc-ict/slack-FileRemove
8e9c96b0603fd8ee8056198b55ad0676a4229172
[ "MIT" ]
null
null
null
main.py
nitoc-ict/slack-FileRemove
8e9c96b0603fd8ee8056198b55ad0676a4229172
[ "MIT" ]
null
null
null
import files_list import files_delete from datetime import datetime import time if __name__ == "__main__": while True: files = files_list.get_files_list() if files == -1: print("failed files get") else: now_time = datetime.now() for file in files: ...
32.315789
76
0.574919
import files_list import files_delete from datetime import datetime import time if __name__ == "__main__": while True: files = files_list.get_files_list() if files == -1: print("failed files get") else: now_time = datetime.now() for file in files: ...
0
0
0
0
0
0
0
0
0
57dfb265080de79b9bbf7be66786483cf9b4fd2c
5,803
py
Python
cogs/depreciated/profiles.py
Greenfoot5/BattleBot
f4318124bb85786c3d0ff562132121c382445c36
[ "MIT" ]
2
2020-01-13T22:58:22.000Z
2020-02-19T16:47:17.000Z
cogs/depreciated/profiles.py
Greenfoot5/BattleBot
f4318124bb85786c3d0ff562132121c382445c36
[ "MIT" ]
29
2020-01-13T23:30:03.000Z
2020-06-26T18:08:01.000Z
cogs/depreciated/profiles.py
Greenfoot5/BattleBot
f4318124bb85786c3d0ff562132121c382445c36
[ "MIT" ]
2
2020-01-15T00:20:10.000Z
2020-02-18T00:02:55.000Z
import asyncio ranksRP = [int(5*(i**1.5)+50*i+100) for i in range(50)]
39.746575
345
0.580562
import discord from discord.ext import commands import asyncio import pickle import time import datetime import asyncio ranksRP = [int(5*(i**1.5)+50*i+100) for i in range(50)] def get_rank_from(rp): remRP = int(rp) rank = 0 while remRP >= ranksRP[rank]: remRP -= ranksRP[rank] rank += 1 ...
0
5,018
0
374
0
165
0
-27
201
4456e341bc297f786596507017dd94b4fa146a2f
3,281
py
Python
substitution_cipher/tests/test_encdec.py
onstop4/SubstitutionCipher
21751d3e687fe770562266cbcbf885cc8923016e
[ "MIT" ]
null
null
null
substitution_cipher/tests/test_encdec.py
onstop4/SubstitutionCipher
21751d3e687fe770562266cbcbf885cc8923016e
[ "MIT" ]
null
null
null
substitution_cipher/tests/test_encdec.py
onstop4/SubstitutionCipher
21751d3e687fe770562266cbcbf885cc8923016e
[ "MIT" ]
null
null
null
from substitution_cipher.decrypt import reverse_dict key = { "a": "X", "b": "B", "c": "R", "d": "Z", "e": "A", "f": "Y", "g": "J", "h": "M", "i": "C", "j": "D", "k": "O", "l": "U", "m": "N", "n": "E", "o": "T", "p": "Q", "q": "H", "r": "W", "s...
23.775362
80
0.538555
from substitution_cipher.decrypt import decrypt_file, decrypt_text, reverse_dict from substitution_cipher.encrypt import encrypt_file, encrypt_text key = { "a": "X", "b": "B", "c": "R", "d": "Z", "e": "A", "f": "Y", "g": "J", "h": "M", "i": "C", "j": "D", "k": "O", "l": ...
0
0
0
1,897
0
0
0
73
68
a89a8081129c506b7f7c3d57b7d30060d145ea78
19,474
py
Python
env/lib/python3.5/site-packages/cartopy/io/img_tiles.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.5/site-packages/cartopy/io/img_tiles.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.5/site-packages/cartopy/io/img_tiles.py
project-pantheon/pantheon_glob_planner
c0d50a53b36c4678192ec75ad7a4cd68c570daef
[ "BSD-3-Clause" ]
null
null
null
# (C) British Crown Copyright 2011 - 2018, Met Office # # This file is part of cartopy. # # cartopy is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option)...
35.151625
79
0.575126
# (C) British Crown Copyright 2011 - 2018, Met Office # # This file is part of cartopy. # # cartopy is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option)...
0
39
0
16,085
0
0
0
17
365
439cf7fbcd727fbfcc01dd0a6b64de38c7c9d1e7
207
py
Python
python/getLiveCovidData.py
tanvidaware17/hacktoberfest-2020
7c442d2c7471f248856801176e147c3a95173c4f
[ "MIT" ]
1
2020-10-19T02:12:48.000Z
2020-10-19T02:12:48.000Z
python/getLiveCovidData.py
tanvidaware17/hacktoberfest-2020
7c442d2c7471f248856801176e147c3a95173c4f
[ "MIT" ]
null
null
null
python/getLiveCovidData.py
tanvidaware17/hacktoberfest-2020
7c442d2c7471f248856801176e147c3a95173c4f
[ "MIT" ]
1
2021-10-30T07:14:02.000Z
2021-10-30T07:14:02.000Z
# importing the package covid # can be installed with pip install covid from covid import Covid covid= Covid() # setting a country, here India india = covid.get_status_by_country_name("india") print(india)
23
49
0.782609
# importing the package covid # can be installed with pip install covid from covid import Covid covid= Covid() # setting a country, here India india = covid.get_status_by_country_name("india") print(india)
0
0
0
0
0
0
0
0
0
9121353aac22029780ce202eaf1a5b6813c9330a
1,687
py
Python
Python/VK/VK_bit.py
GeorgiyDemo/scrapheap
1d298eb63e0e6a8fc92ab84a05372d2ed33beba1
[ "MIT" ]
null
null
null
Python/VK/VK_bit.py
GeorgiyDemo/scrapheap
1d298eb63e0e6a8fc92ab84a05372d2ed33beba1
[ "MIT" ]
null
null
null
Python/VK/VK_bit.py
GeorgiyDemo/scrapheap
1d298eb63e0e6a8fc92ab84a05372d2ed33beba1
[ "MIT" ]
1
2019-03-14T15:48:23.000Z
2019-03-14T15:48:23.000Z
import datetime import requests import schedule import time import vk session = vk.Session(access_token="token1") admin = vk.Session(access_token="token2") api = vk.API(session) human = vk.API(admin) maingroup = 128947927 maingroup_fix = -128947927 # schedule.every(1).minutes.do(messages) # schedule.ever...
25.179104
82
0.632484
import datetime import requests import schedule import time import vk session = vk.Session(access_token="token1") admin = vk.Session(access_token="token2") api = vk.API(session) human = vk.API(admin) maingroup = 128947927 maingroup_fix = -128947927 def get_users(): users = api.groups.getMembers(group_id=maingrou...
258
0
0
0
0
619
0
0
69
bff11961cc103dada421a2d85d28dae8a7822fdf
846
py
Python
routes/app.py
barretobrock/bobrock.dev
60b2d2d357bb9233027e876cc8197e71fe03e519
[ "MIT" ]
null
null
null
routes/app.py
barretobrock/bobrock.dev
60b2d2d357bb9233027e876cc8197e71fe03e519
[ "MIT" ]
null
null
null
routes/app.py
barretobrock/bobrock.dev
60b2d2d357bb9233027e876cc8197e71fe03e519
[ "MIT" ]
null
null
null
from flask import Flask # Internal packages from configurations import BaseConfig from flask_base import db, bcrypt, log_mgr from .admin import admin from .api import api from .errors import errors from .main import main from .posts import posts from .user import users def create_app(*args, **kwargs) -> Flask: ""...
29.172414
69
0.728132
from flask import Flask # Internal packages from configurations import BaseConfig from flask_base import db, bcrypt, log_mgr from .admin import admin from .api import api from .errors import errors from .main import main from .posts import posts from .user import users def create_app(*args, **kwargs) -> Flask: ""...
0
0
0
0
0
0
0
0
0
ea8cb6c91ffb3f93a9aa87923fb2123046e6f8ac
209
py
Python
testapp/plugin_t/test_with_plugins.py
majacQ/django-nose
161ad932799a8b41c9bac624eaa552a11a653e4a
[ "BSD-3-Clause" ]
318
2015-01-02T05:17:03.000Z
2019-07-01T05:07:04.000Z
testapp/plugin_t/test_with_plugins.py
majacQ/django-nose
161ad932799a8b41c9bac624eaa552a11a653e4a
[ "BSD-3-Clause" ]
183
2015-01-05T18:09:34.000Z
2019-07-03T06:41:21.000Z
testapp/plugin_t/test_with_plugins.py
majacQ/django-nose
161ad932799a8b41c9bac624eaa552a11a653e4a
[ "BSD-3-Clause" ]
120
2015-01-08T21:47:34.000Z
2019-06-24T04:58:29.000Z
"""Test loading of additional plugins.""" from nose.tools import eq_ def test_one(): """Test that the test plugin was initialized.""" from testapp import plugins eq_(plugins.plugin_began, True)
20.9
52
0.708134
"""Test loading of additional plugins.""" from nose.tools import eq_ def test_one(): """Test that the test plugin was initialized.""" from testapp import plugins eq_(plugins.plugin_began, True)
0
0
0
0
0
0
0
0
0
a158c434359106c74052a6281a48b7163da6480f
1,041
py
Python
notifications/providers/django_channels.py
gaybro8777/django-notifs
f349fdf2dc87f2b579055c4e2abd95832ad9df5b
[ "MIT" ]
null
null
null
notifications/providers/django_channels.py
gaybro8777/django-notifs
f349fdf2dc87f2b579055c4e2abd95832ad9df5b
[ "MIT" ]
null
null
null
notifications/providers/django_channels.py
gaybro8777/django-notifs
f349fdf2dc87f2b579055c4e2abd95832ad9df5b
[ "MIT" ]
null
null
null
"""Notification channels for django-notifs.""" try: HAS_DEPENDENCIES = True except ImportError: HAS_DEPENDENCIES = False
23.659091
79
0.741595
"""Notification channels for django-notifs.""" try: from channels.layers import get_channel_layer HAS_DEPENDENCIES = True except ImportError: HAS_DEPENDENCIES = False from asgiref.sync import async_to_sync from pydantic import BaseModel from .base import BaseNotificationProvider class DjangoChannelsSc...
0
154
0
543
0
0
0
71
140
0c0fa541e96bc999034f271c4efe4caf7360009d
4,937
py
Python
demo_infer.py
eddy4112/PSPNet-Full
ae51ad173900c4d466c1e57a084400071e0bd019
[ "MIT" ]
150
2018-04-22T18:24:54.000Z
2022-03-02T05:02:03.000Z
demo_infer.py
eddy4112/PSPNet-Full
ae51ad173900c4d466c1e57a084400071e0bd019
[ "MIT" ]
32
2018-05-19T17:18:53.000Z
2021-08-31T04:18:32.000Z
demo_infer.py
eddy4112/PSPNet-Full
ae51ad173900c4d466c1e57a084400071e0bd019
[ "MIT" ]
35
2018-05-09T09:42:24.000Z
2020-12-09T13:26:05.000Z
import tensorflow as tf if __name__ == '__main__': tf.app.run()
36.57037
120
0.655054
import tensorflow as tf import os import numpy as np import cv2 from args import FLAGS from database import reader, helper, helper_cityscapes from model import pspnet_mg from experiment_manager.utils import sorted_str_dict def gpu_num(): return len(FLAGS.visible_gpus.split(',')) def infer(image_filename, i_ckp...
0
0
0
0
0
4,595
0
45
224
5419c06b2466a67dec41806b75853918d1979b65
49,834
py
Python
fonts/truetype/chango_32.py
slabua/st7789py_mpy
31e6f94592563e2b5ad716c48486e605ca3911bb
[ "MIT" ]
153
2020-02-02T11:03:14.000Z
2022-03-30T05:47:07.000Z
examples/TWATCH-2020/prop_fonts/chango_32.py
skylin008/st7789_mpy
f304991fc5558be653df5f0de928494b85cbc60d
[ "MIT" ]
58
2020-04-11T23:23:02.000Z
2022-03-26T20:45:23.000Z
examples/TWATCH-2020/prop_fonts/chango_32.py
skylin008/st7789_mpy
f304991fc5558be653df5f0de928494b85cbc60d
[ "MIT" ]
50
2020-02-02T11:05:23.000Z
2022-03-22T15:24:42.000Z
# -*- coding: utf-8 -*- # Converted from Chango-Regular.ttf using: # ./font2bitmap.py Chango-Regular.ttf 32 -c 0x20-0x7f MAP = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" BPP = 1 HEIGHT = 35 MAX_WIDTH = 49 _WIDTHS = \ b'\x0d\x10\x13\x1c\x1a\x30\x21\x0b\x...
71.600575
106
0.671329
# -*- coding: utf-8 -*- # Converted from Chango-Regular.ttf using: # ./font2bitmap.py Chango-Regular.ttf 32 -c 0x20-0x7f MAP = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~" BPP = 1 HEIGHT = 35 MAX_WIDTH = 49 _WIDTHS = \ b'\x0d\x10\x13\x1c\x1a\x30\x21\x0b\x...
0
0
0
0
0
0
0
0
0
2941a56fa2c2f7eb394aca0cdacc3c0a1c07c5eb
2,391
py
Python
fdoc.py
jessekrubin/funk_docktor
39ec026fe8edf272a79e8c0a74eac6860eaef768
[ "MIT" ]
null
null
null
fdoc.py
jessekrubin/funk_docktor
39ec026fe8edf272a79e8c0a74eac6860eaef768
[ "MIT" ]
null
null
null
fdoc.py
jessekrubin/funk_docktor
39ec026fe8edf272a79e8c0a74eac6860eaef768
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* from os import getcwd CD = getcwd() def fmt_line(line, col, phillup=False): """ :param line: :param col: :return: # >>> format_line([]) """ if len(line) == 1: code = line[0] if phillup: return ''.join((code, ' ' * (1 + col - len(code)), '#$#')) ...
31.88
86
0.498954
# -*- coding: utf-8 -* from itertools import chain from os import getcwd, path import argparse from pupy.decorations import tictoc CD = getcwd() def fmt_line(line, col, phillup=False): """ :param line: :param col: :return: # >>> format_line([]) """ if len(line) == 1: code = line[...
0
886
0
0
0
863
0
20
112
3d2cde815cce311a485e511efc147c4a6651bdf1
3,021
py
Python
munininfluxdb/utils.py
mback2k/munin-influxdb
08ecde755e649f6f71deb4e8d27247f69382b13c
[ "BSD-2-Clause" ]
88
2015-01-14T13:33:34.000Z
2021-12-14T13:51:56.000Z
munininfluxdb/utils.py
mback2k/munin-influxdb
08ecde755e649f6f71deb4e8d27247f69382b13c
[ "BSD-2-Clause" ]
17
2015-07-27T20:16:41.000Z
2019-07-08T08:04:16.000Z
munininfluxdb/utils.py
mback2k/munin-influxdb
08ecde755e649f6f71deb4e8d27247f69382b13c
[ "BSD-2-Clause" ]
40
2015-01-30T20:23:16.000Z
2021-12-14T13:52:03.000Z
# -*- coding: utf-8 -*- from __future__ import print_function def parse_handle(handle): """ Parses a connection handle to get it's subparts (user, password, host, port, dbname) @return (user, passwd, host, port, dbname) @example 127.0.0.1 -> (None, None, '127.0.0.1', None, None) ro...
30.826531
140
0.54386
# -*- coding: utf-8 -*- from __future__ import print_function import sys class Color: GREEN = "\033[92m" RED = "\033[91m" BLUE = "\033[94m" YELLOW = "\033[93m" BOLD = "\033[1m" CLEAR = "\033[0m" class Symbol: OK = "✓" NOK = "✗" WARN = "⚠" OK_GREEN = "{0}{1}{2}"...
9
0
0
1,193
0
444
0
-11
172
8066c88d80723199425abc63c47807e5ee992971
561
py
Python
tests/test_priority.py
StefanBRas/todoist-taskwarrior
08dc877452d621a7c1ec3ed13de06d4c1fedb266
[ "MIT" ]
null
null
null
tests/test_priority.py
StefanBRas/todoist-taskwarrior
08dc877452d621a7c1ec3ed13de06d4c1fedb266
[ "MIT" ]
1
2021-03-11T04:56:02.000Z
2021-03-11T21:42:33.000Z
tests/test_priority.py
StefanBRas/todoist-taskwarrior
08dc877452d621a7c1ec3ed13de06d4c1fedb266
[ "MIT" ]
null
null
null
""" Priority Tests Test conversions between Todoist and Taskwarrior priorities. """
26.714286
60
0.709447
""" Priority Tests Test conversions between Todoist and Taskwarrior priorities. """ import pytest from todoist_taskwarrior import utils def test_priorities(): assert utils.ti_priority_to_tw(1) == None assert utils.ti_priority_to_tw(2) == 'L' assert utils.ti_priority_to_tw(3) == 'M' assert utils.ti_pr...
0
0
0
0
0
376
0
8
90
5d91d3e984e54a6abe0c50447e3205ca98d4fec6
389
py
Python
python/ex022_string_meths.py
lucasdiogomartins/curso-em-video
9da92b6255a11021f719a9e0ce994db639e1ac38
[ "MIT" ]
null
null
null
python/ex022_string_meths.py
lucasdiogomartins/curso-em-video
9da92b6255a11021f719a9e0ce994db639e1ac38
[ "MIT" ]
null
null
null
python/ex022_string_meths.py
lucasdiogomartins/curso-em-video
9da92b6255a11021f719a9e0ce994db639e1ac38
[ "MIT" ]
null
null
null
nome = input('Digite seu nome: ').strip() print('\n Nome em maisculas:', nome.upper()) print(' Nome em minsculas:', nome.lower()) print(' Quantidade de letras:', len(nome.replace(' ', ''))) print(' Quantidade de letras:', len(nome)-nome.count(' ')) # 2 opo print(' Q. de letras primeiro nome:', len(nome.split()[0])) pr...
48.625
70
0.640103
nome = input('Digite seu nome: ').strip() print('\n Nome em maiúsculas:', nome.upper()) print(' Nome em minúsculas:', nome.lower()) print(' Quantidade de letras:', len(nome.replace(' ', ''))) print(' Quantidade de letras:', len(nome)-nome.count(' ')) # 2° opção print(' Q. de letras primeiro nome:', len(nome.split()[0]...
16
0
0
0
0
0
0
0
0
b6ab9337b7ef728f089b9d25f36c451ed88425ad
8,373
py
Python
notebooks/python/utils/plotters.py
MindFoundry/optaas-tutorials
9231a316554988da4fbcf9bd207cdb407adc5071
[ "MIT" ]
1
2021-05-17T14:30:07.000Z
2021-05-17T14:30:07.000Z
notebooks/python/utils/plotters.py
MindFoundry/optaas-tutorials
9231a316554988da4fbcf9bd207cdb407adc5071
[ "MIT" ]
null
null
null
notebooks/python/utils/plotters.py
MindFoundry/optaas-tutorials
9231a316554988da4fbcf9bd207cdb407adc5071
[ "MIT" ]
3
2019-06-18T14:26:31.000Z
2020-03-06T15:10:11.000Z
PLOT_TYPES = {'random', 'grid', 'exploration', 'exploitation', 'initialisation', 'default', 'user-defined'}
37.048673
117
0.607668
from typing import Dict import matplotlib.pyplot as plt import numpy as np from IPython.core.display import display from matplotlib.ticker import FormatStrFormatter, MaxNLocator from mpl_toolkits.mplot3d import Axes3D from plotly import offline as plotly, graph_objs as go, tools PLOT_TYPES = {'random', 'grid', 'explo...
0
0
0
7,911
0
0
0
126
224
1bcde50ce43af8077dac6e8dfe503ac3aa0f10aa
16,124
py
Python
nox/src/nox/webapps/webserver/webauth.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/nox/webapps/webserver/webauth.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/nox/webapps/webserver/webauth.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
# Copyright 2008 (C) Nicira, Inc. # # This file is part of NOX. # # NOX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # NOX is dist...
34.675269
105
0.652382
# Copyright 2008 (C) Nicira, Inc. # # This file is part of NOX. # # NOX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # NOX is dist...
0
0
0
14,013
0
446
0
88
590
4c41e63283fc018dba3147ad647705cc469d056e
68,669
py
Python
lib/GUI/Dialogs/__init__.py
Connor22/hydrus
d0ae4a8898742a0d13601e1167d5ba697b31c395
[ "WTFPL" ]
null
null
null
lib/GUI/Dialogs/__init__.py
Connor22/hydrus
d0ae4a8898742a0d13601e1167d5ba697b31c395
[ "WTFPL" ]
null
null
null
lib/GUI/Dialogs/__init__.py
Connor22/hydrus
d0ae4a8898742a0d13601e1167d5ba697b31c395
[ "WTFPL" ]
null
null
null
import wx import wx.lib.agw.customtreectrl # Option Enums ID_NULL = wx.NewId() ID_TIMER_UPDATE = wx.NewId() ...
32.68396
246
0.540389
from . import HydrusConstants as HC from . import ClientConstants as CC from . import ClientData from . import ClientDefaults from . import ClientDownloading from . import ClientDragDrop from . import ClientExporting from . import ClientCaches from . import ClientFiles from . import ClientGUIACDropdown from . import Cl...
0
0
0
65,426
0
1,162
0
179
1,560
84ffc28bf041ee10ab164a930515ed2e59878b34
2,739
py
Python
disvoice/phonation/phonation_functions.py
jcvasquezc/Disvoice
ed9dbd42c3f01f041f90848f96004be8ebb78d8d
[ "MIT" ]
null
null
null
disvoice/phonation/phonation_functions.py
jcvasquezc/Disvoice
ed9dbd42c3f01f041f90848f96004be8ebb78d8d
[ "MIT" ]
null
null
null
disvoice/phonation/phonation_functions.py
jcvasquezc/Disvoice
ed9dbd42c3f01f041f90848f96004be8ebb78d8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Jul 21 2017 @author: J. C. Vasquez-Correa """ import numpy as np def PQ(x,k): """ Perturbation Quotient in percentage of the signal x :params x: input sequence: F0 values or Amplitude values per window :params k: average factor (must be an odd number) ...
22.45082
73
0.581599
# -*- coding: utf-8 -*- """ Created on Jul 21 2017 @author: J. C. Vasquez-Correa """ import numpy as np import sys def jitter_env(vPPS, iNumPuntos): iLongSec=len(vPPS) if (iLongSec < 2): sys.warn('Pitch sequence is too short' ) vJitta=np.zeros(iNumPuntos) return vJitta vJitta...
0
0
0
0
0
1,595
0
-11
114
5b024c665d7b8d2d46dc13314fe85d1c41361fb4
23,864
py
Python
test/test_read_preferences.py
detrack/mongo-python-driver
42c5df83fbd30e6e8a188d48b2eb35659fbce861
[ "Apache-2.0" ]
null
null
null
test/test_read_preferences.py
detrack/mongo-python-driver
42c5df83fbd30e6e8a188d48b2eb35659fbce861
[ "Apache-2.0" ]
null
null
null
test/test_read_preferences.py
detrack/mongo-python-driver
42c5df83fbd30e6e8a188d48b2eb35659fbce861
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2016 MongoDB, 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 writin...
36.713846
80
0.595835
# Copyright 2011-2016 MongoDB, 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 writin...
0
3,734
0
17,892
0
0
0
564
567
d52980e8aea5821b35988c68f49eebf5711892b0
1,247
py
Python
metatests/cloudcafe/compute/hypervisors/client/responses.py
ProjectMeniscus/cloudcafe
fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9
[ "Apache-2.0" ]
null
null
null
metatests/cloudcafe/compute/hypervisors/client/responses.py
ProjectMeniscus/cloudcafe
fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9
[ "Apache-2.0" ]
null
null
null
metatests/cloudcafe/compute/hypervisors/client/responses.py
ProjectMeniscus/cloudcafe
fa8fd796b303f0c5f0d6e98b2b5d01f6ea8fefe9
[ "Apache-2.0" ]
1
2020-11-17T19:05:08.000Z
2020-11-17T19:05:08.000Z
""" Copyright 2013 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
33.702703
72
0.623897
""" Copyright 2013 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
0
588
0
23
0
0
0
0
77
53061ba6cb93a24d52de7c0fd2bda627c28ad47c
710
py
Python
nvchecker_source/cran.py
pombredanne/nvchecker
2067131848526b16d76d3e2392054e9250e85133
[ "MIT" ]
null
null
null
nvchecker_source/cran.py
pombredanne/nvchecker
2067131848526b16d76d3e2392054e9250e85133
[ "MIT" ]
null
null
null
nvchecker_source/cran.py
pombredanne/nvchecker
2067131848526b16d76d3e2392054e9250e85133
[ "MIT" ]
null
null
null
# MIT licensed # Copyright (c) 2022 Pekka Ristola <pekkarr [at] protonmail [dot] com>, et al. CRAN_URL = 'https://cran.r-project.org/package=%s/DESCRIPTION' VERSION_FIELD = 'Version: '
26.296296
78
0.702817
# MIT licensed # Copyright (c) 2022 Pekka Ristola <pekkarr [at] protonmail [dot] com>, et al. from nvchecker.api import session, GetVersionError CRAN_URL = 'https://cran.r-project.org/package=%s/DESCRIPTION' VERSION_FIELD = 'Version: ' async def request(pkg): url = CRAN_URL % pkg res = await session.get(url) r...
0
0
426
0
0
0
0
29
69
23f1395154681da8f1ddd6ef9a310e4ecac19223
1,896
py
Python
pylp/lib/stream.py
pylp/pylp
7ebaa55fbaf61cb8175f211dd41ef2928c22d4d4
[ "MIT" ]
4
2018-05-19T09:10:32.000Z
2020-10-25T02:54:06.000Z
pylp/lib/stream.py
pylp/pylp
7ebaa55fbaf61cb8175f211dd41ef2928c22d4d4
[ "MIT" ]
null
null
null
pylp/lib/stream.py
pylp/pylp
7ebaa55fbaf61cb8175f211dd41ef2928c22d4d4
[ "MIT" ]
null
null
null
""" Asynchronous stream with a piping system. Copyright (C) 2017 The Pylp Authors. This file is under the MIT License. """
21.793103
76
0.716245
""" Asynchronous stream with a piping system. Copyright (C) 2017 The Pylp Authors. This file is under the MIT License. """ import asyncio class Stream(): """An asynchronous stream containing a transformer with a piping system.""" def __init__(self, files = None): # Files to transform and number of transforme...
0
0
0
1,730
0
0
0
-7
46
3fe160455f0db5ab15b4cabd404b9c7e12797cd6
78
py
Python
uvloop/_noop.py
Psycojoker/uvloop
03487c80a508ea92e66f976fa196e64514894205
[ "Apache-2.0", "MIT" ]
10
2020-06-11T23:20:03.000Z
2022-01-14T16:07:27.000Z
uvloop/_noop.py
Psycojoker/uvloop
03487c80a508ea92e66f976fa196e64514894205
[ "Apache-2.0", "MIT" ]
5
2021-06-02T03:55:08.000Z
2022-03-12T00:54:02.000Z
uvloop/_noop.py
Psycojoker/uvloop
03487c80a508ea92e66f976fa196e64514894205
[ "Apache-2.0", "MIT" ]
2
2020-06-22T09:46:57.000Z
2021-04-25T21:32:04.000Z
def noop(): """Empty function to invoke CPython ceval loop.""" return
19.5
54
0.641026
def noop(): """Empty function to invoke CPython ceval loop.""" return
0
0
0
0
0
0
0
0
0
b3192c2406886cb67eddb7e7e935e7708c5e3805
32,482
py
Python
aiobungie/interfaces/factory.py
nxtlo/aiobungie
ca0a842bf5a7217662f0d8d63456ad277f313ef1
[ "MIT" ]
36
2021-07-09T19:26:18.000Z
2022-03-26T09:12:43.000Z
aiobungie/interfaces/factory.py
nxtlo/aiobungie
ca0a842bf5a7217662f0d8d63456ad277f313ef1
[ "MIT" ]
149
2021-07-13T21:46:21.000Z
2022-03-29T12:21:38.000Z
aiobungie/interfaces/factory.py
nxtlo/aiobungie
ca0a842bf5a7217662f0d8d63456ad277f313ef1
[ "MIT" ]
4
2021-07-21T05:33:11.000Z
2022-02-19T11:15:31.000Z
# MIT License # Copyright (c) 2020 - Present nxtlo # # 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...
30.701323
147
0.623022
# MIT License # Copyright (c) 2020 - Present nxtlo # # 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...
0
28,392
0
2,129
0
0
0
211
463
bc2cfd528415c4bbb23cf1d66a0344b381f02df4
1,753
py
Python
android_appium_profiler/apps/etar.py
qiangxu1996/android-appium-profiler
3f25bd023c113af35c4e7e6e3cec7c3c0abecc6a
[ "MIT" ]
null
null
null
android_appium_profiler/apps/etar.py
qiangxu1996/android-appium-profiler
3f25bd023c113af35c4e7e6e3cec7c3c0abecc6a
[ "MIT" ]
null
null
null
android_appium_profiler/apps/etar.py
qiangxu1996/android-appium-profiler
3f25bd023c113af35c4e7e6e3cec7c3c0abecc6a
[ "MIT" ]
null
null
null
import logging from .. import app_test logger = logging.getLogger(__name__)
38.108696
116
0.641187
import logging import time import adb from .. import app_test logger = logging.getLogger(__name__) class App(app_test.AppTest): def __init__(self, **kwargs): extra_cap = kwargs.setdefault('extra_cap', {}) extra_cap.setdefault('noReset', False) super().__init__('ws.xsoh.etar.debug', 'com....
0
0
0
1,628
0
0
0
-21
68
6bea82f48a588df6984acd4336b01b9442d82f2c
754
py
Python
mmvae_hub/celeba/CelebaTrainer.py
Jimmy2027/MMVAE_mnist_svhn_text
e6e74059bd5feefc0af088f7b1abc31b0e9f2ab7
[ "MIT" ]
null
null
null
mmvae_hub/celeba/CelebaTrainer.py
Jimmy2027/MMVAE_mnist_svhn_text
e6e74059bd5feefc0af088f7b1abc31b0e9f2ab7
[ "MIT" ]
24
2021-11-15T14:22:08.000Z
2022-02-28T14:30:23.000Z
mmvae_hub/celeba/CelebaTrainer.py
Jimmy2027/MMVAE_mnist_svhn_text
e6e74059bd5feefc0af088f7b1abc31b0e9f2ab7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
32.782609
67
0.748011
# -*- coding: utf-8 -*- from mmvae_hub.utils.utils import save_and_log_flags from torch.utils.tensorboard import SummaryWriter from mmvae_hub.base.BaseCallback import BaseCallback from mmvae_hub.base.BaseTrainer import BaseTrainer from mmvae_hub.celeba.CelebaLogger import CelebALogger class CelebaTrainer(BaseTrainer...
0
0
0
443
0
0
0
152
134
3ce9adce92e632d0521ddee7340e76612f12cccb
12,158
py
Python
mysync.py
xuboying/mysync
819d9bcc3d0addc2760f098b5eb2b1d5ae6d1e0b
[ "BSD-3-Clause" ]
1
2018-05-15T12:46:21.000Z
2018-05-15T12:46:21.000Z
mysync.py
xuboying/mysync
819d9bcc3d0addc2760f098b5eb2b1d5ae6d1e0b
[ "BSD-3-Clause" ]
null
null
null
mysync.py
xuboying/mysync
819d9bcc3d0addc2760f098b5eb2b1d5ae6d1e0b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python # -*- coding: utf-8 -*- # BSD LICENSE # # Copyright (c) 2016, Boying Xu All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the fol...
35.758824
142
0.610709
#!/usr/bin/env python3 # vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python # -*- coding: utf-8 -*- # BSD LICENSE # # Copyright (c) 2016, Boying Xu All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the fol...
0
222
3,314
2,822
0
732
0
-22
249
9b4d9e54705180942223e41e39982abe65ca94f0
149
py
Python
Python/Alternating Characters/solution_test.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
Python/Alternating Characters/solution_test.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
Python/Alternating Characters/solution_test.py
arpitran/HackerRank_solutions
a3a77c858edd3955ea38530916db9051b1aa93f9
[ "MIT" ]
null
null
null
# Import Pytest Package
21.285714
47
0.791946
# Import Pytest Package import pytest from solution import alternatingCharacters def test_result(): assert alternatingCharacters("AABBAB") == 2
0
0
0
0
0
45
0
13
68
9b053f47b98ece9ca9e57a5bdc8c3dd63ff13111
812
py
Python
zadanie/articles/urls.py
szymanskirafal/zadanie
8668976955eeea45e4abec673ba5a6c4f3848e16
[ "MIT" ]
null
null
null
zadanie/articles/urls.py
szymanskirafal/zadanie
8668976955eeea45e4abec673ba5a6c4f3848e16
[ "MIT" ]
null
null
null
zadanie/articles/urls.py
szymanskirafal/zadanie
8668976955eeea45e4abec673ba5a6c4f3848e16
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'articles' urlpatterns = [ path( '', views.ArticlesListView.as_view(), name = 'list'), path( 'create/', views.ArticleCreateView.as_view(), name = 'create'), path( 'created/', views.A...
20.820513
51
0.530788
from django.urls import path from . import views app_name = 'articles' urlpatterns = [ path( '', views.ArticlesListView.as_view(), name = 'list'), path( 'create/', views.ArticleCreateView.as_view(), name = 'create'), path( 'created/', views.A...
0
0
0
0
0
0
0
0
0
a68b55a31736cacbbb792f9aeb765afea58b9f7e
377
py
Python
browse/urls.py
machinalis/django-srd20
00c969cbe9353128e681c308bdc6810dfbd46b70
[ "BSD-3-Clause" ]
16
2015-04-12T00:57:49.000Z
2018-07-24T16:06:55.000Z
browse/urls.py
machinalis/django-srd20
00c969cbe9353128e681c308bdc6810dfbd46b70
[ "BSD-3-Clause" ]
null
null
null
browse/urls.py
machinalis/django-srd20
00c969cbe9353128e681c308bdc6810dfbd46b70
[ "BSD-3-Clause" ]
5
2015-07-04T14:39:00.000Z
2018-07-24T16:06:57.000Z
urlpatterns = patterns('browse.views', url(r'^spell/(?P<slug>[\w-]+)/$', 'spell_detail', name='spell_detail'), url(r'^feat/(?P<slug>[\w-]+)/$', 'feat_detail', name='feat_detail'), url(r'^monster/(?P<slug>[\w-]+)/$', 'monster_detail', name='monster_detail'), url(r'^favorites/$', 'favorites', name='favo...
34.272727
81
0.62069
from django.conf.urls.defaults import * urlpatterns = patterns('browse.views', url(r'^spell/(?P<slug>[\w-]+)/$', 'spell_detail', name='spell_detail'), url(r'^feat/(?P<slug>[\w-]+)/$', 'feat_detail', name='feat_detail'), url(r'^monster/(?P<slug>[\w-]+)/$', 'monster_detail', name='monster_detail'), url(...
0
0
0
0
0
0
0
18
22
74b6b1d58af00822913b7e71a4685f211d56d1dc
439
py
Python
globo/aplications/core/migrations/0005_sumasysaldos_cierre_anterior.py
orlandor55/globo
bb236e2b0a9c803794416478470e71081116bd56
[ "MIT" ]
null
null
null
globo/aplications/core/migrations/0005_sumasysaldos_cierre_anterior.py
orlandor55/globo
bb236e2b0a9c803794416478470e71081116bd56
[ "MIT" ]
null
null
null
globo/aplications/core/migrations/0005_sumasysaldos_cierre_anterior.py
orlandor55/globo
bb236e2b0a9c803794416478470e71081116bd56
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-03 17:25
23.105263
93
0.626424
# Generated by Django 3.2.9 on 2021-11-03 17:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20211103_1646'), ] operations = [ migrations.AddField( model_name='sumasysaldos', name='cierre_ant...
0
0
0
325
0
0
0
19
46
60fbacea377357c74a26eb60c0057dd00fba5f87
1,277
py
Python
3.py
elp2/advent_of_code_2015
7b16d175f3241c45e77ecbd1db98c484c75465e5
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
2015/3.py
elp2/advent_of_code
600e2db9a7d5b576937c9b39c5c6805db406f57b
[ "Apache-2.0" ]
null
null
null
2015/3.py
elp2/advent_of_code
600e2db9a7d5b576937c9b39c5c6805db406f57b
[ "Apache-2.0" ]
null
null
null
CHALLENGE_DAY = "3" REAL = open(CHALLENGE_DAY + ".txt").read() SAMPLE = open(CHALLENGE_DAY + ".sample.txt").read() SAMPLE_EXPECTED = 2 sample = solve(SAMPLE) if sample != SAMPLE_EXPECTED: print("SAMPLE FAILED: ", sample, " != ", SAMPLE_EXPECTED) assert sample == SAMPLE_EXPECTED print("\n*** SAMPLE PASSED ***\n") ...
26.061224
81
0.600626
from collections import defaultdict, deque import re CHALLENGE_DAY = "3" REAL = open(CHALLENGE_DAY + ".txt").read() SAMPLE = open(CHALLENGE_DAY + ".sample.txt").read() SAMPLE_EXPECTED = 2 def parse_lines(raw): # Groups. # groups = raw.split("\n\n") # return list(map(lambda group: group.split("\n"), groups...
0
0
0
0
0
686
0
9
90
500ecbcb33b44f6c1fe4788fb6d28a4afafba07a
225
py
Python
manager/director/apps/auth/apps.py
darius-kia/director4
1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9
[ "MIT" ]
7
2020-08-23T23:08:34.000Z
2021-12-02T04:17:37.000Z
manager/director/apps/auth/apps.py
darius-kia/director4
1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9
[ "MIT" ]
43
2020-08-24T16:48:29.000Z
2022-03-02T19:45:54.000Z
manager/director/apps/auth/apps.py
darius-kia/director4
1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9
[ "MIT" ]
10
2020-08-17T20:42:52.000Z
2021-07-16T03:46:51.000Z
# SPDX-License-Identifier: MIT # (c) 2019 The TJHSST Director 4.0 Development Team & Contributors
22.5
66
0.742222
# SPDX-License-Identifier: MIT # (c) 2019 The TJHSST Director 4.0 Development Team & Contributors from django.apps import AppConfig class AuthConfig(AppConfig): name = "director.apps.auth" label = "authentication"
0
0
0
68
0
0
0
12
46
5e617b741acb066a7457b5e29fd528a290a1e809
2,105
py
Python
protocolo/migrations/0001_initial.py
clowdcap/arq-django
3feb313e940c3900dc7e60f80ef0afff15fa2461
[ "MIT" ]
null
null
null
protocolo/migrations/0001_initial.py
clowdcap/arq-django
3feb313e940c3900dc7e60f80ef0afff15fa2461
[ "MIT" ]
null
null
null
protocolo/migrations/0001_initial.py
clowdcap/arq-django
3feb313e940c3900dc7e60f80ef0afff15fa2461
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-11-09 14:16
39.716981
148
0.578147
# Generated by Django 3.2.8 on 2021-11-09 14:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
0
0
0
1,925
0
0
0
41
90
c1787fbdf6fd7e22388f94226ac3f8937c435d6d
5,349
py
Python
osm2rdf/updateUsageStats.py
CarlQLange/sophox
f5874d75e3a77874f5f27dd46193d1497bfa7a8f
[ "Apache-2.0" ]
24
2018-11-16T20:57:17.000Z
2022-03-17T21:37:19.000Z
osm2rdf/updateUsageStats.py
CarlQLange/sophox
f5874d75e3a77874f5f27dd46193d1497bfa7a8f
[ "Apache-2.0" ]
21
2018-11-19T17:18:16.000Z
2021-10-14T06:30:43.000Z
osm2rdf/updateUsageStats.py
UFOKN/sophox
c3b43bdc8cc00ab9b6f7776962afab2baa7f4b2f
[ "Apache-2.0" ]
5
2020-09-07T18:32:01.000Z
2021-06-01T19:52:04.000Z
#!/usr/bin/env python3 # Copyright Yuri Astrakhan <YuriAstrakhan@gmail.com> info_keys = [ 'count_all', 'count_all_fraction', 'count_nodes', 'count_nodes_fraction', 'count_ways', 'count_ways_fraction', 'count_relations', 'count_relations_fraction', 'values_all', 'users_all' ] if __name__ == '__main__': ...
35.66
114
0.575061
#!/usr/bin/env python3 # Copyright Yuri Astrakhan <YuriAstrakhan@gmail.com> import json import logging import time from typing import Dict import argparse import requests from datetime import datetime from utils import stringify, chunks, query_status, set_status_query, parse_utc from sparql import Sparql info_keys ...
0
0
0
4,749
0
0
0
32
223
cca9411b91416b1366ba5c8eb8274781c238ebb6
618
py
Python
src/MyGL.py
hedlx/machuchu
4926a931f81ccd892261a9b13c9d3cf78cc72c01
[ "MIT" ]
null
null
null
src/MyGL.py
hedlx/machuchu
4926a931f81ccd892261a9b13c9d3cf78cc72c01
[ "MIT" ]
3
2021-07-07T20:05:26.000Z
2021-07-07T20:11:35.000Z
src/MyGL.py
hedlx/machuchu
4926a931f81ccd892261a9b13c9d3cf78cc72c01
[ "MIT" ]
null
null
null
# Pyopengl shader compilation errors are unreadable, so we'll define our own # routine.
29.428571
76
0.723301
from OpenGL import GL # Pyopengl shader compilation errors are unreadable, so we'll define our own # routine. class ShaderCompilationError(Exception): def __init__(self, text): super().__init__("Shader compile failure:\n{}".format(text)) self.text = text def compileShader(source, shaderType): ...
0
0
0
143
0
316
0
0
68
a1385e4aefd67a6e8363bc3fce53670aa1ea871f
6,861
py
Python
covidaid/tools/read_data.py
sabuj7177/CovidProject
b4b7bcfa5ace165520507f489dc74da7b695e2f0
[ "Apache-2.0" ]
null
null
null
covidaid/tools/read_data.py
sabuj7177/CovidProject
b4b7bcfa5ace165520507f489dc74da7b695e2f0
[ "Apache-2.0" ]
null
null
null
covidaid/tools/read_data.py
sabuj7177/CovidProject
b4b7bcfa5ace165520507f489dc74da7b695e2f0
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ Read images and corresponding labels. """
36.887097
153
0.594957
# encoding: utf-8 """ Read images and corresponding labels. """ import torch from torch.utils.data import Dataset from PIL import Image import os import random class ChestXrayDataSetTest(Dataset): def __init__(self, image_list_file, transform=None, combine_pneumonia=False): """ Create the Data Lo...
0
0
0
6,652
0
0
0
-14
157
6a5630d99e2816cc0a269463a2bc880ec28715f8
6,613
py
Python
user/tests/test_user_api.py
fateme-zka/recipe-app-api
269deb5ac964b32d90eb5a6f5a0d64552996f839
[ "MIT" ]
null
null
null
user/tests/test_user_api.py
fateme-zka/recipe-app-api
269deb5ac964b32d90eb5a6f5a0d64552996f839
[ "MIT" ]
null
null
null
user/tests/test_user_api.py
fateme-zka/recipe-app-api
269deb5ac964b32d90eb5a6f5a0d64552996f839
[ "MIT" ]
null
null
null
from django.urls import reverse # constant values which we define at the first of the code. # url to create user CREATE_USER_URL = reverse('user:create') # url to generate the user token TOKEN_URL = reverse('user:token') # update user endpoint url user/"me" => the account of the user who is authenticated ME_URL = rev...
39.598802
112
0.662332
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status # constant values which we define at the first of the code. # url to create user CREATE_USER_URL = reverse('user:create') # url to...
0
0
0
5,678
0
149
0
68
155
3fb7ad36b6a4561499e23b7103181d84a4b929cc
62,934
py
Python
cascada/bitvector/operation.py
ranea/CASSCA
d00770206fc91170d020c8224f81421ad220bce7
[ "MIT" ]
null
null
null
cascada/bitvector/operation.py
ranea/CASSCA
d00770206fc91170d020c8224f81421ad220bce7
[ "MIT" ]
null
null
null
cascada/bitvector/operation.py
ranea/CASSCA
d00770206fc91170d020c8224f81421ad220bce7
[ "MIT" ]
null
null
null
"""Provide the common bit-vector operators.""" import functools import itertools from sympy.core import cache from cascada.bitvector import core zip = functools.partial(zip, strict=True) def _cacheit(func): """Cache functions if `CacheContext` is enabled.""" cfunc = cache.cacheit(func) return cached_f...
31.962417
113
0.580433
"""Provide the common bit-vector operators.""" import collections import functools import itertools import math from sympy.core import cache from sympy.printing import precedence as sympy_precedence from cascada.bitvector import context from cascada.bitvector import core zip = functools.partial(zip, strict=True) ...
18
28,091
0
32,099
0
262
0
39
782
f1bb3a1de13a5215f33ff2284cef317137a79142
14,792
py
Python
word_analysis/main.py
umitkoc/python_lesson
a127e5d81053c622b8f8d8dd9879167e17f8d6e8
[ "MIT" ]
3
2021-02-26T21:11:45.000Z
2022-03-03T16:35:58.000Z
word_analysis/main.py
umitkoc/python_lesson
a127e5d81053c622b8f8d8dd9879167e17f8d6e8
[ "MIT" ]
1
2021-05-09T13:40:00.000Z
2021-05-09T13:40:00.000Z
word_analysis/main.py
umitkoc/python_lesson
a127e5d81053c622b8f8d8dd9879167e17f8d6e8
[ "MIT" ]
null
null
null
# from PDFNetPython3 import * ----> python version 3.5-3.8 with working # from PDFNetPython3.PDFNetPython import Element, Image, PDFDoc, Point # site.addsitedir("../../../PDFNetC/Lib") # Resim yollar resim karma dosyasna yollanr # def ImageExtractPath(file): # doc = PDFDoc(file) # doc.InitSecurit...
32.725664
120
0.466604
from json import dump from operator import itemgetter from os import listdir, mkdir, path, remove from time import sleep import fitz from docx2pdf import convert # from PDFNetPython3 import * ----> python version 3.5-3.8 with working # from PDFNetPython3.PDFNetPython import Element, Image, PDFDoc, Point from PyPDF2 i...
180
0
0
0
0
10,423
0
56
499
c7dab99d9335ca65d8fad764be81284012109512
1,216
py
Python
src/yamlfig/__init__.py
ktkalaru/yamlfig
a6ddb2c8346ae5695402c25921fdc0d2aaa9b3a1
[ "MIT" ]
1
2021-03-26T08:31:18.000Z
2021-03-26T08:31:18.000Z
src/yamlfig/__init__.py
ktkalaru/yamlfig
a6ddb2c8346ae5695402c25921fdc0d2aaa9b3a1
[ "MIT" ]
null
null
null
src/yamlfig/__init__.py
ktkalaru/yamlfig
a6ddb2c8346ae5695402c25921fdc0d2aaa9b3a1
[ "MIT" ]
null
null
null
"""Verify the structure of YAML-formatted configuration files. The yamlfig package provides developers with a framework for defining rules that test and verify a config file's structure. Those rules are captured in a parser object which can be applied to YAML-based config files to validate them. In particular, this ...
33.777778
70
0.778783
"""Verify the structure of YAML-formatted configuration files. The yamlfig package provides developers with a framework for defining rules that test and verify a config file's structure. Those rules are captured in a parser object which can be applied to YAML-based config files to validate them. In particular, this ...
0
0
0
0
0
0
0
10
68
013b5ffbce8389c2ccc782914a093247c85589c1
7,163
py
Python
UserCode/jzhang/sbc_run6_mergeall.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
4
2018-08-27T18:02:34.000Z
2020-06-09T21:19:04.000Z
UserCode/jzhang/sbc_run6_mergeall.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
null
null
null
UserCode/jzhang/sbc_run6_mergeall.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
4
2019-06-20T21:36:26.000Z
2020-11-10T17:23:14.000Z
import numpy as np import SBCcode as sbc import os import re from SBCcode.DataHandling.WriteBinary import WriteBinaryNtupleFile as wb # import ipdb modules = [ 'AcousticAnalysis_', 'DytranAnalysis_', 'EventAnalysis_', 'HistoryAnalysis_', 'ImageAnalysis_', 'TimingAnalysis_', 'PMTfastDAQalign...
36.176768
468
0.50356
import numpy as np import SBCcode as sbc import os import re from SBCcode.DataHandling.WriteBinary import WriteBinaryNtupleFile as wb # import ipdb modules = [ 'AcousticAnalysis_', 'DytranAnalysis_', 'EventAnalysis_', 'HistoryAnalysis_', 'ImageAnalysis_', 'TimingAnalysis_', 'PMTfastDAQalign...
0
0
0
0
0
0
0
0
0
bbc1a5d12e9554bcfb2d4d205210bffca54f0c00
372
py
Python
HelloWorld/sequence_operators.py
kumarvgit/python3
318c5e7503fafc9c60082fa123e2930bd82a4ec9
[ "MIT" ]
null
null
null
HelloWorld/sequence_operators.py
kumarvgit/python3
318c5e7503fafc9c60082fa123e2930bd82a4ec9
[ "MIT" ]
null
null
null
HelloWorld/sequence_operators.py
kumarvgit/python3
318c5e7503fafc9c60082fa123e2930bd82a4ec9
[ "MIT" ]
null
null
null
""" Python3 has three sequence type String list tuple range byte and byte array """ string1 = "he's " string2 = "probably " string3 = "pining " string4 = "for the " string5 = "fjords" print(string1, string2, string3, string4, string5) print(string1 * 5) # string multiplication print(string1 * (5+4)) # operator pr...
15.5
50
0.698925
""" Python3 has three sequence type String list tuple range byte and byte array """ string1 = "he's " string2 = "probably " string3 = "pining " string4 = "for the " string5 = "fjords" print(string1, string2, string3, string4, string5) print(string1 * 5) # string multiplication print(string1 * (5+4)) # operator pr...
0
0
0
0
0
0
0
0
0
3becd57d8f0f84c471e090d235eb725279a99986
182
py
Python
docs/examples/compute/rackspace/instantiate_next_gen.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
null
null
null
docs/examples/compute/rackspace/instantiate_next_gen.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2021-12-06T12:29:13.000Z
2021-12-06T12:29:13.000Z
docs/examples/compute/rackspace/instantiate_next_gen.py
rgharris/libcloud
90971e17bfd7b6bb97b2489986472c531cc8e140
[ "Apache-2.0" ]
1
2021-12-06T10:26:33.000Z
2021-12-06T10:26:33.000Z
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver cls = get_driver(Provider.RACKSPACE) driver = cls("username", "api key", region="iad")
30.333333
49
0.791209
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver cls = get_driver(Provider.RACKSPACE) driver = cls("username", "api key", region="iad")
0
0
0
0
0
0
0
0
0
b42095240c69f586ff442cf47cdd820364bf6eb6
28,084
py
Python
panqec/codes/base/_stabilizer_code.py
ehua7365/bn3d
b2ab7411c32c836fe5d0e48900461c1911408774
[ "MIT" ]
null
null
null
panqec/codes/base/_stabilizer_code.py
ehua7365/bn3d
b2ab7411c32c836fe5d0e48900461c1911408774
[ "MIT" ]
null
null
null
panqec/codes/base/_stabilizer_code.py
ehua7365/bn3d
b2ab7411c32c836fe5d0e48900461c1911408774
[ "MIT" ]
null
null
null
from typing import Dict, Tuple import os import panqec os.environ['PANQEC_ROOT_DIR'] = os.path.dirname(panqec.__file__) Operator = Dict[Tuple, str] # Coordinate to pauli ('X', 'Y' or 'Z')
33.836145
79
0.573067
from typing import Dict, Tuple, Optional, List import os from abc import ABCMeta, abstractmethod import numpy as np import json from scipy.sparse import csr_matrix, dok_matrix import panqec from panqec.bpauli import bcommute, get_effective_error from panqec import bsparse os.environ['PANQEC_ROOT_DIR'] = os.path.dirna...
0
11,730
0
15,920
0
0
0
86
155
c498aaf0fde9570e6460accf87281b6d2ba2d1c0
337
py
Python
arkbreeder/db.py
dgasmith/ARKBreeder
7c1ad3a75d427dbf21b92e359a042030b3cfb6c8
[ "MIT" ]
null
null
null
arkbreeder/db.py
dgasmith/ARKBreeder
7c1ad3a75d427dbf21b92e359a042030b3cfb6c8
[ "MIT" ]
null
null
null
arkbreeder/db.py
dgasmith/ARKBreeder
7c1ad3a75d427dbf21b92e359a042030b3cfb6c8
[ "MIT" ]
null
null
null
from typing import Any from sqlalchemy.ext.declarative import declarative_base Base: Any = declarative_base()
21.0625
55
0.735905
from typing import Any from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base: Any = declarative_base() class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) name = Column(String) fullname = Column(String) nickname ...
0
0
0
154
0
0
0
25
46
b61f9156fac150f760b016abece30bc74162db2a
1,087
py
Python
test/multi_prompt_minmax.py
temptitle/big-sleep
ac7e62a45829b3d8ab82aafb62db5475d7f644da
[ "MIT" ]
null
null
null
test/multi_prompt_minmax.py
temptitle/big-sleep
ac7e62a45829b3d8ab82aafb62db5475d7f644da
[ "MIT" ]
null
null
null
test/multi_prompt_minmax.py
temptitle/big-sleep
ac7e62a45829b3d8ab82aafb62db5475d7f644da
[ "MIT" ]
null
null
null
import time import shutil import torch from big_sleep import Imagine terminate = False num_attempts = 4 for attempt in range(num_attempts): dream = Imagine( text = "an armchair in the form of pikachu\\an armchair imitating pikachu\\abstract", text_min = "blur\\zoom", lr = 7e-2, ima...
24.155556
93
0.599816
import time import shutil import torch from big_sleep import Imagine terminate = False def signal_handling(signum,frame): global terminate terminate = True num_attempts = 4 for attempt in range(num_attempts): dream = Imagine( text = "an armchair in the form of pikachu\\an armchair imitating pikac...
0
0
0
0
0
55
0
0
23
58445b4211c8de947653300404d77c29c83fe35f
2,073
py
Python
pystil/events.py
arthru/pystil
60e02da290fa7e0596dc94ed0a0a3c6c293cee78
[ "BSD-3-Clause" ]
null
null
null
pystil/events.py
arthru/pystil
60e02da290fa7e0596dc94ed0a0a3c6c293cee78
[ "BSD-3-Clause" ]
null
null
null
pystil/events.py
arthru/pystil
60e02da290fa7e0596dc94ed0a0a3c6c293cee78
[ "BSD-3-Clause" ]
null
null
null
POLLS = {} CACHE_SIZE = 20
28.013514
63
0.58466
import pickle import sys import pika import gevent from gevent.event import Event POLLS = {} CACHE_SIZE = 20 class Poll(object): def __init__(self, site): self.event = Event() self.visits = [] self._offset = 0 def get(self, i): if i == len(self.visits) + self._offset: ...
0
0
0
527
0
1,363
0
-28
180
e9dd9b72b49ba30d47740bbac04b144d52e958f6
2,567
py
Python
getBert_embed.py
singaln/Chinese-BertWord-Embedding
36e3ca33b356f0387bb490bc6bb968600c865a82
[ "Apache-2.0" ]
6
2021-02-23T02:04:42.000Z
2022-01-19T11:24:21.000Z
getBert_embed.py
soul-an/Chinese-BertWord-Embedding
93788abf701ede543bd890b0f6505c74bf089416
[ "Apache-2.0" ]
null
null
null
getBert_embed.py
soul-an/Chinese-BertWord-Embedding
93788abf701ede543bd890b0f6505c74bf089416
[ "Apache-2.0" ]
2
2021-01-07T12:21:46.000Z
2022-02-03T01:54:29.000Z
# coding = utf-8 import jieba import logging from transformers import BertModel, BertTokenizer jieba.setLogLevel(logging.INFO) bert_path = "../chinese_wwm_ext_pytorch" bert = BertModel.from_pretrained(bert_path) token = BertTokenizer.from_pretrained(bert_path) # Bert # char False True get_bert_...
36.671429
120
0.56603
# coding = utf-8 import jieba import logging import numpy as np from transformers import BertModel, BertTokenizer jieba.setLogLevel(logging.INFO) bert_path = "../chinese_wwm_ext_pytorch" bert = BertModel.from_pretrained(bert_path) token = BertTokenizer.from_pretrained(bert_path) # Bert 字向量生成 def get_d...
126
0
0
0
0
2,075
0
-3
71
4d184df95c7ce4a81fcf99a4f14815b59c4e451b
4,860
py
Python
examples/training/avg_word_embeddings/training_stsbenchmark_bow.py
faezakamran/sentence-transformers
2158fff3aa96651b10fe367c41fdd5008a33c5c6
[ "Apache-2.0" ]
7,566
2019-07-25T07:45:17.000Z
2022-03-31T22:15:35.000Z
examples/training/avg_word_embeddings/training_stsbenchmark_bow.py
faezakamran/sentence-transformers
2158fff3aa96651b10fe367c41fdd5008a33c5c6
[ "Apache-2.0" ]
1,444
2019-07-25T11:53:48.000Z
2022-03-31T15:13:32.000Z
examples/training/avg_word_embeddings/training_stsbenchmark_bow.py
faezakamran/sentence-transformers
2158fff3aa96651b10fe367c41fdd5008a33c5c6
[ "Apache-2.0" ]
1,567
2019-07-26T15:19:28.000Z
2022-03-31T19:57:35.000Z
""" This example uses a simple bag-of-words (BoW) approach. A sentence is mapped to a sparse vector with e.g. 25,000 dimensions. Optionally, you can also use tf-idf. To make the model trainable, we add multiple dense layers to create a Deep Averaging Network (DAN). """ from torch.utils.data import DataLoader import ma...
37.384615
130
0.72037
""" This example uses a simple bag-of-words (BoW) approach. A sentence is mapped to a sparse vector with e.g. 25,000 dimensions. Optionally, you can also use tf-idf. To make the model trainable, we add multiple dense layers to create a Deep Averaging Network (DAN). """ from torch.utils.data import DataLoader import ma...
0
0
0
0
0
0
0
22
22
43800dd1999f9cc6aaf991ed15e2934d7e8cd0e6
358
py
Python
segmentfault/apps/users/migrations/0007_auto_20190730_2122.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
segmentfault/apps/users/migrations/0007_auto_20190730_2122.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
12
2020-02-12T01:14:42.000Z
2022-03-11T23:54:43.000Z
segmentfault/apps/users/migrations/0007_auto_20190730_2122.py
Yookyiss/segmentfault
8fb7890c8b650ac34541a8fb14c3cd9bef98d120
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-07-30 13:22
18.842105
47
0.578212
# Generated by Django 2.2.2 on 2019-07-30 13:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0006_user_brithday'), ] operations = [ migrations.RenameField( model_name='user', old_name='brithday', ...
0
0
0
252
0
0
0
11
46
5c99d355819ba57a67a8e1e71ccdfd63bdfe263b
2,060
py
Python
f_face_detector_occlusion.py
weariestDuet/face_recognition_occlusion
1881361fb7563b84632d5e87477f8f9c9e9420e0
[ "MIT" ]
null
null
null
f_face_detector_occlusion.py
weariestDuet/face_recognition_occlusion
1881361fb7563b84632d5e87477f8f9c9e9420e0
[ "MIT" ]
null
null
null
f_face_detector_occlusion.py
weariestDuet/face_recognition_occlusion
1881361fb7563b84632d5e87477f8f9c9e9420e0
[ "MIT" ]
null
null
null
""" tensorflow_version --> '2.0.0' keras_version -------> '2.3.1' """ ''' para usar: 1. instanciar modelo face_detector = f_face_detector.detector_face_occlusion() 2. ingresar alguna imagen con un rostro y predecir boxes_face = face_detector.detect_face(img) Nota: devuleve los bounding_box donde encontro rost...
32.698413
107
0.571359
from keras.models import load_model import numpy as np import cv2 """ tensorflow_version --> '2.0.0' keras_version -------> '2.3.1' """ ''' para usar: 1. instanciar modelo face_detector = f_face_detector.detector_face_occlusion() 2. ingresar alguna imagen con un rostro y predecir boxes_face = face_detector.de...
0
0
0
1,641
0
0
0
0
90
53a5ba0992d505829f7140dd423574f69bf148c9
3,465
py
Python
x_mushroom_rl/environments/dm_control_env.py
ml-research/X-mushroom-rl
ef5f131d3cfa9c229a614c044d8c001afe8812d2
[ "MIT" ]
null
null
null
x_mushroom_rl/environments/dm_control_env.py
ml-research/X-mushroom-rl
ef5f131d3cfa9c229a614c044d8c001afe8812d2
[ "MIT" ]
null
null
null
x_mushroom_rl/environments/dm_control_env.py
ml-research/X-mushroom-rl
ef5f131d3cfa9c229a614c044d8c001afe8812d2
[ "MIT" ]
null
null
null
import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning)
33
88
0.631169
import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore", category=DeprecationWarning) from dm_control import suite from x_mushroom_rl.environments import Environment, MDPInfo from x_mushroom_rl.utils.spaces import * from x_mushroom_rl.utils.viewer import ImageViewer class DMControl(...
0
712
0
2,427
0
0
0
93
116
aee56e840cfeaf493a5b6492623d950bbdaebfda
1,006
py
Python
webapp/hoptimgui/home/urls.py
erwan-rouzel/hoptim
b7b8204073e1ed5b4fefa81ea74e8bd0b96c4411
[ "Apache-2.0", "MIT" ]
null
null
null
webapp/hoptimgui/home/urls.py
erwan-rouzel/hoptim
b7b8204073e1ed5b4fefa81ea74e8bd0b96c4411
[ "Apache-2.0", "MIT" ]
null
null
null
webapp/hoptimgui/home/urls.py
erwan-rouzel/hoptim
b7b8204073e1ed5b4fefa81ea74e8bd0b96c4411
[ "Apache-2.0", "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'home' urlpatterns = [ # ex: /home/ url(r'^$', views.hbase_region_servers, name='hbase_region_servers$'), url(r'^opentsdb/split$', views.opentsdb_split, name='opentsdb_split'), url(r'^opentsdb/regions/(?P<encoded_name>[a-f0-9]+)$...
52.947368
122
0.701789
from django.conf.urls import url from . import views app_name = 'home' urlpatterns = [ # ex: /home/ url(r'^$', views.hbase_region_servers, name='hbase_region_servers$'), url(r'^opentsdb/split$', views.opentsdb_split, name='opentsdb_split'), url(r'^opentsdb/regions/(?P<encoded_name>[a-f0-9]+)$...
0
0
0
0
0
0
0
0
0
193fe1aecdddc1bd5ac7e1b2ded1ffd52765a22b
2,066
py
Python
deluca/lung/utils/data/jax_data.py
google/deluca-lung
8c665f3ac53f2251945f08c9990f2cfa099fdf06
[ "Apache-2.0" ]
1
2021-12-20T13:19:57.000Z
2021-12-20T13:19:57.000Z
deluca/lung/utils/data/jax_data.py
google/deluca-lung
8c665f3ac53f2251945f08c9990f2cfa099fdf06
[ "Apache-2.0" ]
null
null
null
deluca/lung/utils/data/jax_data.py
google/deluca-lung
8c665f3ac53f2251945f08c9990f2cfa099fdf06
[ "Apache-2.0" ]
3
2021-10-17T11:56:43.000Z
2022-02-26T21:07:37.000Z
# https://pypi.org/project/jax-data/
27.918919
89
0.605518
# https://pypi.org/project/jax-data/ import jax import jax.numpy as jnp import numpy as np def default_collate_fn(samples): X = jnp.array([sample[0] for sample in samples]) Y = jnp.array([sample[1] for sample in samples]) return X, Y class Dataset(object): def __init__(self): pass def _...
0
0
0
1,749
0
133
0
-12
160
fc7c4ff6f8bf69bd3579e184c4a2fbbfded6adcc
10,655
py
Python
test/test_app.py
gahoo/SNAP
6595a8ab781830e557c75ebd1612c59fdc96114d
[ "MIT" ]
1
2020-01-06T12:07:47.000Z
2020-01-06T12:07:47.000Z
test/test_app.py
gahoo/SNAP
6595a8ab781830e557c75ebd1612c59fdc96114d
[ "MIT" ]
null
null
null
test/test_app.py
gahoo/SNAP
6595a8ab781830e557c75ebd1612c59fdc96114d
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
42.114625
962
0.587236
from core.app import App, AppParameter, AppFile import unittest import shutil import pdb class TestAppParameter(unittest.TestCase): """ test for App Parameters """ def test_check_error_parameter_type(self): param = {'type': 'error type'} self.assertRaises(TypeError, AppParameter, param)...
0
0
0
10,449
0
0
0
7
135
97c1eb61027e713ba5851051084bca36413e1efd
4,370
py
Python
src/run.py
amiiiirrrr/Machine_learning_task
2d066d06ea8622b06bd9e4e9f791074a44f80173
[ "Apache-2.0" ]
null
null
null
src/run.py
amiiiirrrr/Machine_learning_task
2d066d06ea8622b06bd9e4e9f791074a44f80173
[ "Apache-2.0" ]
null
null
null
src/run.py
amiiiirrrr/Machine_learning_task
2d066d06ea8622b06bd9e4e9f791074a44f80173
[ "Apache-2.0" ]
null
null
null
""" run.py is written to train and evaluate the model """ import logging __author__ = "Amir Mousavi" __license__ = "Public Domain" __maintainer__ = "Amir Mousavi" __email__ = "azmusavi19@gmail.com" __status__ = "Production" logger = logging.getLogger(__name__) if __name__ == '__main__': run_model_o...
38.333333
98
0.577803
""" run.py is written to train and evaluate the model """ import os import logging import glob from Regression.configuration import BaseConfig from Regression.methods import RegressionModel, save_model, load_trained from Regression.dataloader import DataframeLoader from Regression.train import TrainingEvaluati...
0
0
0
3,732
0
0
0
109
163
1eaefe466bdf55df8a9049202e7ab912858d4e2f
78
py
Python
tests/settings.py
Junzki/Essen
ef735a9229a3de3e07a7cf998b51c66809293dad
[ "BSD-3-Clause" ]
null
null
null
tests/settings.py
Junzki/Essen
ef735a9229a3de3e07a7cf998b51c66809293dad
[ "BSD-3-Clause" ]
null
null
null
tests/settings.py
Junzki/Essen
ef735a9229a3de3e07a7cf998b51c66809293dad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- BROKER_TRANSPORT = 'sqs'
15.6
28
0.666667
# -*- coding:utf-8 -*- from essen.settings import * BROKER_TRANSPORT = 'sqs'
0
0
0
0
0
0
0
7
22
1cfe5d222951f47251d81921718167419dc6f130
8,835
py
Python
PAD3/config.py
yueyechen/cvpr20
69e6f9fd2393048bf48d7542a19ff0087b97d033
[ "Apache-2.0" ]
1
2020-12-18T06:02:29.000Z
2020-12-18T06:02:29.000Z
PAD3/config.py
yueyechen/cvpr20
69e6f9fd2393048bf48d7542a19ff0087b97d033
[ "Apache-2.0" ]
4
2020-06-13T03:25:05.000Z
2022-01-13T02:17:29.000Z
PAD3/config.py
yueyechen/cvpr20
69e6f9fd2393048bf48d7542a19ff0087b97d033
[ "Apache-2.0" ]
3
2020-03-02T10:10:48.000Z
2020-05-11T08:27:40.000Z
import torch.nn as nn
64.963235
261
0.728014
from easydict import EasyDict as edict from torchvision import transforms as trans import torch.nn as nn from label_smoothing import LabelSmoothing, LabelSmoothingLoss def get_config(training = True): conf = edict() conf.model = edict() conf.train = edict() conf.eval = edict() conf.gpu = 3 co...
0
0
0
0
0
8,644
0
80
89
df0afb38100643b24602d182444fbf379e417486
40,046
py
Python
gprm/datasets/Reconstructions.py
siwill22/GPlatesReconstructionModel
4306b8aa00eac35cd35a9f67e11f5bdf5106bb81
[ "MIT" ]
7
2020-05-04T03:05:09.000Z
2022-01-28T13:52:53.000Z
gprm/datasets/Reconstructions.py
siwill22/GPlatesReconstructionModel
4306b8aa00eac35cd35a9f67e11f5bdf5106bb81
[ "MIT" ]
null
null
null
gprm/datasets/Reconstructions.py
siwill22/GPlatesReconstructionModel
4306b8aa00eac35cd35a9f67e11f5bdf5106bb81
[ "MIT" ]
3
2021-05-23T01:53:52.000Z
2021-09-14T12:21:53.000Z
from pooch import os_cache as _os_cache from pooch import retrieve as _retrieve from pooch import HTTPDownloader as _HTTPDownloader from pooch import Unzip as _Unzip import pandas as _pd #import geopandas as _gpd import os as _os #from gprm import ReconstructionModel as _ReconstructionModel # TODO # Add: Domeier and ...
65.865132
205
0.788293
from pooch import os_cache as _os_cache from pooch import retrieve as _retrieve from pooch import HTTPDownloader as _HTTPDownloader from pooch import Unzip as _Unzip import pandas as _pd #import geopandas as _gpd import os as _os #from gprm import ReconstructionModel as _ReconstructionModel # TODO # Add: Domeier and ...
0
0
0
0
0
0
0
0
0
d16bf7608b2e1f0fa122bd80173d1bb78a8ef9a9
2,375
py
Python
advent/day_2.py
rickdkk/advent-of-code-2021
49eed2d191d7b4a12f10ec8af9dc57408ba1b1fe
[ "MIT" ]
null
null
null
advent/day_2.py
rickdkk/advent-of-code-2021
49eed2d191d7b4a12f10ec8af9dc57408ba1b1fe
[ "MIT" ]
null
null
null
advent/day_2.py
rickdkk/advent-of-code-2021
49eed2d191d7b4a12f10ec8af9dc57408ba1b1fe
[ "MIT" ]
null
null
null
from pathlib import Path def read_commands(path: Path) -> list[tuple[str, int]]: """Read sub commands from a file.""" commands = [] with open(path, "r") as file: for line in file.readlines(): command, amount = line.split() commands.append((command, int(amount))) retur...
29.320988
98
0.587368
from pathlib import Path class Sub: def __init__(self, x: int = 0, y: int = 0): self.x = x self.y = y @property def depth(self) -> int: return -self.y @property def total(self) -> int: return self.x * self.depth def process_command(self, command: str, amount:...
0
90
0
1,572
0
272
0
0
69
840560aa85c2e903fda4564108dc18923bc1988a
3,638
py
Python
src/flowproc/flowprocd.py
shuntingyard/flowproc
6d6f32b021f5f71d8fa177c9a891d2080364856e
[ "MIT" ]
null
null
null
src/flowproc/flowprocd.py
shuntingyard/flowproc
6d6f32b021f5f71d8fa177c9a891d2080364856e
[ "MIT" ]
null
null
null
src/flowproc/flowprocd.py
shuntingyard/flowproc
6d6f32b021f5f71d8fa177c9a891d2080364856e
[ "MIT" ]
1
2020-05-19T14:36:23.000Z
2020-05-19T14:36:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The flow collector daemon """ import argparse import logging import socketserver import sys from flowproc import __version__ __author__ = "Tobias Frei" __copyright__ = "Tobias Frei" __license__ = "mit" logger = logging.getLogger(__name__) def parse_args(args): ...
23.777778
72
0.603079
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The flow collector daemon """ import argparse import logging import socketserver import sys from flowproc import process from flowproc import __version__ __author__ = "Tobias Frei" __copyright__ = "Tobias Frei" __license__ = "mit" logger = logging.getLogger(__name__...
0
0
0
268
0
0
0
7
46
49d5654d2989f6feb125b78d3a712f9bf8defdf8
2,622
py
Python
nhlscrapi/games/repscrwrap.py
jcnavin/nhlscrapi
2273683497ff27b0e92c8d1557ff0ce962dbf43b
[ "Apache-2.0" ]
72
2015-01-16T04:44:34.000Z
2021-12-04T15:07:11.000Z
nhlscrapi/games/repscrwrap.py
jcnavin/nhlscrapi
2273683497ff27b0e92c8d1557ff0ce962dbf43b
[ "Apache-2.0" ]
16
2015-10-29T02:51:18.000Z
2021-03-21T05:24:49.000Z
nhlscrapi/games/repscrwrap.py
jcnavin/nhlscrapi
2273683497ff27b0e92c8d1557ff0ce962dbf43b
[ "Apache-2.0" ]
43
2015-04-18T23:12:58.000Z
2021-12-18T20:45:04.000Z
def dispatch_loader(scraper, loader_name): """ Decorator that enforces one time loading for scrapers. The one time loading is applied to partial loaders, e.g. only parse and load the home team roster once. This is not meant to be used directly. :param scraper: property name (string) containing...
31.97561
116
0.575133
from functools import wraps from abc import ABCMeta, abstractmethod def dispatch_loader(scraper, loader_name): """ Decorator that enforces one time loading for scrapers. The one time loading is applied to partial loaders, e.g. only parse and load the home team roster once. This is not meant to be used...
0
1,024
0
876
0
47
0
24
102
bbc37378d583057e324abfde45264ae1fa219795
3,007
py
Python
pikka_bird_collector/collector.py
tiredpixel/pikka-bird-collector-py
5273b9f1ee89831a84044e863db480bbf4730552
[ "MIT" ]
2
2015-06-12T19:55:16.000Z
2019-04-05T22:33:05.000Z
pikka_bird_collector/collector.py
tiredpixel/pikka-bird-collector-py
5273b9f1ee89831a84044e863db480bbf4730552
[ "MIT" ]
3
2015-06-06T20:56:03.000Z
2020-01-29T14:41:54.000Z
pikka_bird_collector/collector.py
tiredpixel/pikka-bird-collector-py
5273b9f1ee89831a84044e863db480bbf4730552
[ "MIT" ]
null
null
null
import importlib COLLECTORS = [ 'system', # keep first; sort rest 'mongodb', 'mysql', 'postgresql', 'rabbitmq', 'redis'] COLLECTORS_MODULE_P = 'pikka_bird_collector.collectors.' for c in COLLECTORS: importlib.import_module(COLLECTORS_MODULE_P + c)
30.683673
85
0.555703
import datetime import importlib import logging import os import platform import socket import sys import pikka_bird_collector from .config import Config COLLECTORS = [ 'system', # keep first; sort rest 'mongodb', 'mysql', 'postgresql', 'rabbitmq', 'redis'] COLLECTORS_MODULE_P = 'pikka_bird_...
0
0
0
2,566
0
0
0
-39
200
327c78ea41edf197dc20b356653ae754a30a9fc3
4,782
py
Python
src/OTLMOW/OTLModel/Classes/Damwand.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/Damwand.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/Damwand.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 # Generated with OTLClassCreator. To modify: extend, do not edit
47.346535
132
0.592012
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.ConstructieElement import ConstructieElement from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.KlDamwandMateriaal import KlDamwandMateriaal from OTLMOW.OTLModel.Data...
8
1,079
0
3,092
0
0
0
349
176
236203ec0284a523da7e3d5e6f6fdd84cebe5792
8,116
py
Python
mambo/cli.py
mardix/mambo
36f856baf3a382ba4ea5ffd1454be5a0b935294f
[ "MIT" ]
2
2016-09-27T04:34:59.000Z
2019-06-04T00:47:48.000Z
mambo/cli.py
mardix/mambo
36f856baf3a382ba4ea5ffd1454be5a0b935294f
[ "MIT" ]
null
null
null
mambo/cli.py
mardix/mambo
36f856baf3a382ba4ea5ffd1454be5a0b935294f
[ "MIT" ]
null
null
null
import os import logging import pkg_resources logging.basicConfig(filename='./error.log', level=logging.ERROR, format='%(asctime)s %(levelname)s %(name)s %(message)s') logger = logging.getLogger(__name__) CWD = os.getcwd() TPL_HEADER = """ --- title: Page Title description: Page Description --- """ TPL_BOD...
26.436482
121
0.581444
import os import sys import time import click import logging import pkg_resources from livereload import Server, shell from . import Mambo from .mambo import PAGE_FORMAT from .__about__ import * logging.basicConfig(filename='./error.log', level=logging.ERROR, format='%(asctime)s %(levelname)s %(name)s %(message)s') ...
0
4,640
0
220
0
1,535
0
-5
568
79c4753bc1e55ee32d6213d40a1236f4797c4880
17,743
py
Python
pipecaster/cross_validation.py
ajcallegari/pipecaster
dc283db67662385a54179310e3dbede04ec3db84
[ "MIT" ]
null
null
null
pipecaster/cross_validation.py
ajcallegari/pipecaster
dc283db67662385a54179310e3dbede04ec3db84
[ "MIT" ]
1
2021-03-26T21:06:06.000Z
2021-03-26T21:06:06.000Z
pipecaster/cross_validation.py
ajcallegari/pipecaster
dc283db67662385a54179310e3dbede04ec3db84
[ "MIT" ]
null
null
null
""" Cross validation functions supporting both MultichannelPipeline and scikit-learn predictors. """ import numpy as np from sklearn.metrics import balanced_accuracy_score, explained_variance_score from sklearn.metrics import roc_auc_score from sklearn.model_selection import KFold, StratifiedKFold, GroupKFold import...
42.447368
79
0.598095
""" Cross validation functions supporting both MultichannelPipeline and scikit-learn predictors. """ import numpy as np import scipy.sparse as sp from sklearn.metrics import balanced_accuracy_score, explained_variance_score from sklearn.metrics import roc_auc_score from sklearn.preprocessing import LabelEncoder from ...
0
0
0
0
0
307
0
29
67
2f772422b2b31056a6c104e32bc2ac789a69e657
1,649
py
Python
src/rez/utils/json.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rez/utils/json.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
null
null
null
src/rez/utils/json.py
maxnbk/rez
762c5cfce17eabde67eb5582498406eb3544daf0
[ "Apache-2.0" ]
1
2020-09-24T08:33:43.000Z
2020-09-24T08:33:43.000Z
# Copyright Contributors to the Rez 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 # # Unless required by applicable law or agreed ...
31.711538
105
0.637356
# Copyright Contributors to the Rez 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 # # Unless required by applicable law or agreed ...
0
0
0
0
0
587
0
0
57
baab28c526f98ca7b609eaad29e08f67a7a58fc0
383
py
Python
apps/cpq/utils/__init__.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
206
2015-10-15T07:05:08.000Z
2021-02-19T11:48:36.000Z
apps/cpq/utils/__init__.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
8
2017-10-16T10:18:31.000Z
2022-03-09T14:24:27.000Z
apps/cpq/utils/__init__.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
61
2015-10-15T08:12:44.000Z
2022-03-10T12:25:06.000Z
# HTK Imports
47.875
66
0.86423
# HTK Imports from htk.apps.cpq.utils.accounting import get_invoice_years from htk.apps.cpq.utils.accounting import get_receivables_by_year from htk.apps.cpq.utils.crypto import compute_cpq_code from htk.apps.cpq.utils.crypto import compute_cpq_code_check_hash from htk.apps.cpq.utils.crypto import is_valid_cpq_code_che...
0
0
0
0
0
0
0
237
132
578e63e25596bc80d5eda6aa4be6ccb5730ebf1e
394
py
Python
config/settings.py
buckyroberts/Discord-Python-Framework
8731e9a01c2e2f83af9882838ad809696fe89e22
[ "MIT" ]
10
2021-10-04T01:21:51.000Z
2021-11-17T09:26:17.000Z
config/settings.py
buckyroberts/Discord-Python-Framework
8731e9a01c2e2f83af9882838ad809696fe89e22
[ "MIT" ]
1
2021-10-04T01:38:15.000Z
2021-10-04T01:38:15.000Z
config/settings.py
buckyroberts/Discord-Python-Framework
8731e9a01c2e2f83af9882838ad809696fe89e22
[ "MIT" ]
2
2021-11-20T14:41:56.000Z
2022-02-09T18:49:29.000Z
import os from dotenv import load_dotenv load_dotenv() # Application MAXIMUM_CONFIRMATION_CHECKS = 20 # thenewboston BANK_IP = '54.183.16.194' BANK_PROTOCOL = 'http' BOT_ACCOUNT_NUMBER = '598428d3a9df5423aab3e593b5d1b5f056b9fa353607fccb1aa76385cf233851' # Discord DISCORD_TOKEN = os.getenv('DISCORD_TOKEN') # Mongo...
17.909091
87
0.80203
import os from dotenv import load_dotenv load_dotenv() # Application MAXIMUM_CONFIRMATION_CHECKS = 20 # thenewboston BANK_IP = '54.183.16.194' BANK_PROTOCOL = 'http' BOT_ACCOUNT_NUMBER = '598428d3a9df5423aab3e593b5d1b5f056b9fa353607fccb1aa76385cf233851' # Discord DISCORD_TOKEN = os.getenv('DISCORD_TOKEN') # Mongo...
0
0
0
0
0
0
0
0
0
91dc00db8c954cb72689eac289edc05225abd6cf
62
py
Python
teamActivites/ta04-stretch/ta04.py
Zuzuni7/CS241
d631483ce3fe9e6cd996f13ee33642a998226050
[ "MIT" ]
1
2021-10-13T01:50:27.000Z
2021-10-13T01:50:27.000Z
teamActivites/ta04-stretch/ta04.py
Zuzuni7/CS241
d631483ce3fe9e6cd996f13ee33642a998226050
[ "MIT" ]
null
null
null
teamActivites/ta04-stretch/ta04.py
Zuzuni7/CS241
d631483ce3fe9e6cd996f13ee33642a998226050
[ "MIT" ]
3
2020-05-13T04:28:49.000Z
2021-05-14T23:13:30.000Z
""" CS241 Team Activity 4 Written by Chad Macbeth """
7.75
23
0.612903
""" CS241 Team Activity 4 Written by Chad Macbeth """
0
0
0
0
0
0
0
0
0
a8fe0a6a0010c7b92b04559f0576c2bf6f49484a
3,499
py
Python
sopel/privileges.py
Exirel/sopel
6305e40972cdda65c244d8779dfcdc303eb9884e
[ "EFL-2.0" ]
555
2015-07-25T21:21:43.000Z
2022-03-28T02:22:38.000Z
sopel/privileges.py
Exirel/sopel
6305e40972cdda65c244d8779dfcdc303eb9884e
[ "EFL-2.0" ]
1,177
2015-07-31T09:52:31.000Z
2022-03-26T05:10:34.000Z
sopel/privileges.py
Exirel/sopel
6305e40972cdda65c244d8779dfcdc303eb9884e
[ "EFL-2.0" ]
406
2015-07-28T20:34:02.000Z
2022-03-18T00:37:01.000Z
"""Constants for user privileges in channels. Privilege levels ================ Historically, there were two user privileges in channels: * :data:`OP`: channel operator, or chanop, set and unset by ``+o`` and ``-o`` * :data:`VOICE`: the privilege to send messages to a channel with the ``+m`` mode, set and unset by...
25.540146
79
0.673335
"""Constants for user privileges in channels. Privilege levels ================ Historically, there were two user privileges in channels: * :data:`OP`: channel operator, or chanop, set and unset by ``+o`` and ``-o`` * :data:`VOICE`: the privilege to send messages to a channel with the ``+m`` mode, set and unset by...
0
0
0
0
0
0
0
0
0
0698c0ad871df5f4a4d46aab1d58212c27a0ddca
12,758
py
Python
plugins/point_cloud.py
chris-code/DaVis
c32054e4a32382717b7e2139b357b21846676801
[ "MIT" ]
null
null
null
plugins/point_cloud.py
chris-code/DaVis
c32054e4a32382717b7e2139b357b21846676801
[ "MIT" ]
10
2015-08-18T12:50:50.000Z
2015-08-30T17:12:29.000Z
plugins/point_cloud.py
chris-code/DaVis
c32054e4a32382717b7e2139b357b21846676801
[ "MIT" ]
null
null
null
try: except ImportError: raise Exception('This plugin requires the numpy library, which failed to import. \ Install the python3 version of numpy.') import tkinter.ttk as ttk
40.501587
141
0.714532
try: import numpy as np except ImportError: raise Exception('This plugin requires the numpy library, which failed to import. \ Install the python3 version of numpy.') import tkinter as tk import tkinter.ttk as ttk import tkinter.colorchooser as tkcc import plugin class Distribution_Query_Window(tk.Toplevel): def _...
0
1,023
0
11,393
0
0
0
2
158
3cbbe299bd73122586e1ab7c4277a704b494af84
832
py
Python
gradplanner/planner/utils.py
ferenctorok/potential_field_planner
7a9f7ae70a91523cc6d42029f869f9020cc1ea35
[ "MIT" ]
null
null
null
gradplanner/planner/utils.py
ferenctorok/potential_field_planner
7a9f7ae70a91523cc6d42029f869f9020cc1ea35
[ "MIT" ]
null
null
null
gradplanner/planner/utils.py
ferenctorok/potential_field_planner
7a9f7ae70a91523cc6d42029f869f9020cc1ea35
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def plot_grad_field(field, occupancy_grid): """Plots the gradient field of the np.array of pixels given by field""" eps = 1e-6 N, M = field.shape # matrix for the x and y coordinates in every point: x, y = np.zeros((N, M)), np.zeros((N, M)) ...
28.689655
75
0.56851
import numpy as np import matplotlib.pyplot as plt def plot_grad_field(field, occupancy_grid): """Plots the gradient field of the np.array of pixels given by field""" eps = 1e-6 N, M = field.shape # matrix for the x and y coordinates in every point: x, y = np.zeros((N, M)), np.zeros((N, M)) ...
0
0
0
0
0
0
0
0
0
fc768c735b5c2799e112fc068ad224cad82b0fd0
10,647
py
Python
src/olympia/access/tests.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-11-15T20:06:40.000Z
2020-11-15T20:06:40.000Z
src/olympia/access/tests.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/access/tests.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
import pytest from .acl import (match_rules) pytestmark = pytest.mark.django_db def test_match_rules(): """ Unit tests for the match_rules method. """ rules = ( '*:*', 'Editors:*,Admin:EditAnyAddon,Admin:flagged,Admin:addons,' 'Admin:EditAnyCollection', 'Tests:*,Adm...
39
79
0.695783
from unittest import mock import pytest from django.contrib.auth.models import AnonymousUser from olympia import amo from olympia.access.models import Group, GroupUser from olympia.addons.models import Addon, AddonUser from olympia.amo.tests import addon_factory, TestCase, req_factory_factory from olympia.users.model...
0
0
0
8,746
0
120
0
371
248
abd0635dd700fdb50e2dfeeaf201614b5959f92d
1,270
py
Python
morph_seg/seq2seq/train_many.py
e9t/morph-segmentation
c6f398166a3edc57302f0bbef897608a4c5b974d
[ "MIT" ]
null
null
null
morph_seg/seq2seq/train_many.py
e9t/morph-segmentation
c6f398166a3edc57302f0bbef897608a4c5b974d
[ "MIT" ]
null
null
null
morph_seg/seq2seq/train_many.py
e9t/morph-segmentation
c6f398166a3edc57302f0bbef897608a4c5b974d
[ "MIT" ]
1
2021-02-19T07:56:11.000Z
2021-02-19T07:56:11.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright 2017 Judit Acs <judit@sch.bme.hu> # # Distributed under terms of the MIT license. from __future__ import unicode_literals if __name__ == '__main__': import logging log_fmt = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' ...
28.863636
79
0.66063
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 Judit Acs <judit@sch.bme.hu> # # Distributed under terms of the MIT license. from __future__ import unicode_literals from argparse import ArgumentParser from sys import stdin from experiment import Seq2seqExperiment from data import ...
2
0
0
0
0
707
0
36
136
ebfafc554e1a0948f8589b02a293ccdcc226d23f
7,091
py
Python
kc.py
bostrt/koala
4cb546eaa006617a9ff08204336f49b89109ecff
[ "MIT" ]
null
null
null
kc.py
bostrt/koala
4cb546eaa006617a9ff08204336f49b89109ecff
[ "MIT" ]
null
null
null
kc.py
bostrt/koala
4cb546eaa006617a9ff08204336f49b89109ecff
[ "MIT" ]
null
null
null
#!/usr/bin/python import argparse import sys KOALA_LOGIN_FILE='login' KOALA_SERVER="http://localhost:5000/" KOALA_API_PATH="" X_KOALA_USERNAME='x-koala-username' X_KOALA_KEY='x-koala-key' parser = argparse.ArgumentParser() subparser = parser.add_subparsers() loginparser = subparser.add_parser('login') registerparser...
32.527523
137
0.653786
#!/usr/bin/python import argparse from xdg import BaseDirectory import requests import json import sys KOALA_LOGIN_FILE='login' KOALA_SERVER="http://localhost:5000/" KOALA_API_PATH="" X_KOALA_USERNAME='x-koala-username' X_KOALA_KEY='x-koala-key' parser = argparse.ArgumentParser() subparser = parser.add_subparsers() ...
0
0
0
0
0
4,218
0
-8
296
72b6a2f8f4710ded36c79ed121ddcaeef8f7c738
4,056
py
Python
enaml/wx/wx_bounded_date.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
11
2015-01-04T14:29:23.000Z
2019-12-25T05:38:37.000Z
enaml/wx/wx_bounded_date.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
36
2015-02-20T00:56:53.000Z
2020-12-04T10:02:14.000Z
enaml/wx/wx_bounded_date.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
3
2015-11-19T15:11:37.000Z
2019-03-11T23:45:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ import datetime from dateutil import parser as isoparser import wx def as_wx_date(iso_date): ...
30.044444
80
0.497041
#------------------------------------------------------------------------------ # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ import datetime from dateutil import parser as isoparser import wx from .wx_control import WxCo...
0
0
0
3,117
0
0
0
12
46
dfa3dffa027e32af24fdecf871e3d8776de4b297
1,583
py
Python
cbsapp/urls.py
gmaclinuxer/django_cbs_rest
ae754611672a5edcb5707aeb611cd09f10316d36
[ "MIT" ]
null
null
null
cbsapp/urls.py
gmaclinuxer/django_cbs_rest
ae754611672a5edcb5707aeb611cd09f10316d36
[ "MIT" ]
null
null
null
cbsapp/urls.py
gmaclinuxer/django_cbs_rest
ae754611672a5edcb5707aeb611cd09f10316d36
[ "MIT" ]
null
null
null
from django.conf.urls import url, patterns from django.contrib.auth.decorators import login_required, permission_required from django.views.generic import TemplateView from cbsapp import views as v urlpatterns = patterns( 'cbsapp.views', url(r'success/', v.MyView1.as_view()), url(r'func/', 'my_view'), ...
49.46875
112
0.674668
from django.conf.urls import url, patterns from django.contrib.auth.decorators import login_required, permission_required from django.views.generic import TemplateView from cbsapp import views as v urlpatterns = patterns( 'cbsapp.views', url(r'success/', v.MyView1.as_view()), url(r'func/', 'my_view'), ...
0
0
0
0
0
0
0
0
0
90ca6c3e11e8ee5e509aae0779e0d0d5e5783f52
211
py
Python
image_manipulation/read_img.py
amithapa/opencv_learning
010c378596647bf57e685140fcf0abd758ff88c1
[ "MIT" ]
null
null
null
image_manipulation/read_img.py
amithapa/opencv_learning
010c378596647bf57e685140fcf0abd758ff88c1
[ "MIT" ]
null
null
null
image_manipulation/read_img.py
amithapa/opencv_learning
010c378596647bf57e685140fcf0abd758ff88c1
[ "MIT" ]
null
null
null
import cv2 # Load an image in grayscale img = cv2.imread('football.jpg', cv2.IMREAD_GRAYSCALE) # Displaying an Image cv2.imshow("Football Picha", img) cv2.waitKey(0) cv2.destroyAllWindows()
19.181818
54
0.763033
import cv2 import numpy as np # Load an image in grayscale img = cv2.imread('football.jpg', cv2.IMREAD_GRAYSCALE) # Displaying an Image cv2.imshow("Football Picha", img) cv2.waitKey(0) cv2.destroyAllWindows()
0
0
0
0
0
0
0
-3
22
a7fe7991321387bc87d988004822ea803397098e
17,795
py
Python
inforalgopanel.py
analyticd/bondpricer
04f4e4f7f4da26f66104ed3e6e8fb8b21248cec8
[ "Apache-2.0" ]
null
null
null
inforalgopanel.py
analyticd/bondpricer
04f4e4f7f4da26f66104ed3e6e8fb8b21248cec8
[ "Apache-2.0" ]
null
null
null
inforalgopanel.py
analyticd/bondpricer
04f4e4f7f4da26f66104ed3e6e8fb8b21248cec8
[ "Apache-2.0" ]
1
2020-03-04T10:47:13.000Z
2020-03-04T10:47:13.000Z
""" Inforalgo control panel Written by Alexandre Almosni alexandre.almosni@gmail.com (C) 2016 Alexandre Almosni Released under Apache 2.0 license. More info at http://www.apache.org/licenses/LICENSE-2.0 """ import wx #import datetime # def wxdate2pydate(date): # """Function to convert wx.datetime to datetime.d...
57.21865
170
0.677887
""" Inforalgo control panel Written by Alexandre Almosni alexandre.almosni@gmail.com (C) 2016 Alexandre Almosni Released under Apache 2.0 license. More info at http://www.apache.org/licenses/LICENSE-2.0 """ import wx #import datetime import wx.grid as gridlib import inforalgo from wx.lib.scrolledpanel import Scroll...
0
0
0
16,939
0
0
0
24
112
06b37cdda04cd8bfeb7abfb7a2c1aa6d7f04bc24
1,691
py
Python
main/urls.py
AcaciaTrading/acacia_main
b778aed98894775eeea6b999c10be6c6d7cc5ac9
[ "MIT" ]
25
2016-07-14T05:52:07.000Z
2021-01-18T19:53:50.000Z
main/urls.py
AcaciaTrading/acacia_main
b778aed98894775eeea6b999c10be6c6d7cc5ac9
[ "MIT" ]
null
null
null
main/urls.py
AcaciaTrading/acacia_main
b778aed98894775eeea6b999c10be6c6d7cc5ac9
[ "MIT" ]
12
2016-07-14T09:29:38.000Z
2021-01-18T19:53:58.000Z
from django.conf.urls import url from django.views.generic import TemplateView from .models import Strategy, TradingBot from . import views urlpatterns = [ # Landing page, etc url(r'^$', views.landing, name="landing"), url(r'^faq$', TemplateView.as_view(template_name="landing/faq.html"), name="faq"), ...
45.702703
101
0.6712
from django.conf.urls import include, url from django.views.generic import TemplateView from .models import Strategy, TradingBot from . import views urlpatterns = [ # Landing page, etc url(r'^$', views.landing, name="landing"), url(r'^faq$', TemplateView.as_view(template_name="landing/faq.html"), name="fa...
0
0
0
0
0
0
0
9
0