hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
044c29dfd4938e9d3a0b918cff044b0eb8475e97
14,797
py
Python
metro.py
Vicmart1/metro.css
0a8aab2e322f1287d41a05762c70b16daed48d85
[ "FSFAP" ]
null
null
null
metro.py
Vicmart1/metro.css
0a8aab2e322f1287d41a05762c70b16daed48d85
[ "FSFAP" ]
null
null
null
metro.py
Vicmart1/metro.css
0a8aab2e322f1287d41a05762c70b16daed48d85
[ "FSFAP" ]
null
null
null
import sys central_line = [] #-----------------------# if len(sys.argv) < 3: error("Usage: python metro.py [read file] [write file]") f = open(sys.argv[2],'w') f.write("<html><head><style>@font-face { font-family: KeepCalm; src: url(http://ff.static.1001fonts.net/k/e/keep-calm.regular.ttf); } html { overflow-x...
106.453237
7,870
0.635399
import sys central_line = [] def drawLine(line, f): global central_line data_points = line.split(":") if len(data_points) > 1: f.write("<div class='center' style='height:" + data_points[len(data_points) - 1][:-1] + "px'>") color = "background:" + central_line[1] css = "" if len(d...
4,793
0
138
56d00e9ea4255959b91186ed8950e53e4f5cf101
2,873
py
Python
neo4j/work/query.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
neo4j/work/query.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
neo4j/work/query.py
matilda-me/neo4j-python-driver
4fb25a266841bf2a861f00d5dcf257bd5ae5c686
[ "Apache-2.0" ]
null
null
null
# Copyright (c) "Neo4j" # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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...
36.833333
217
0.695092
# Copyright (c) "Neo4j" # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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...
315
0
80
8c4fe0837a9374641799001ce8bab8594ee46fcc
2,567
py
Python
.local/share/OpenSCAD/libraries/NopSCADlib/scripts/set_config.py
IlyaMZP/dotfiles
b55e0cd63117c09778ea917b02313da74f7c1067
[ "MIT" ]
null
null
null
.local/share/OpenSCAD/libraries/NopSCADlib/scripts/set_config.py
IlyaMZP/dotfiles
b55e0cd63117c09778ea917b02313da74f7c1067
[ "MIT" ]
null
null
null
.local/share/OpenSCAD/libraries/NopSCADlib/scripts/set_config.py
IlyaMZP/dotfiles
b55e0cd63117c09778ea917b02313da74f7c1067
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # NopSCADlib Copyright Chris Palmer 2018 # nop.head@gmail.com # hydraraptor.blogspot.com # # This file is part of NopSCADlib. # # NopSCADlib 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 Foundatio...
27.021053
106
0.618231
#!/usr/bin/env python # # NopSCADlib Copyright Chris Palmer 2018 # nop.head@gmail.com # hydraraptor.blogspot.com # # This file is part of NopSCADlib. # # NopSCADlib 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 Foundatio...
1,381
0
92
0a464262545f510b0608fec709c27136cd12f3e5
418
py
Python
app/views/ApiTest/RunTest.py
DDDDanny/MintBlue-TestPlatform-Soul
e5a763f6537e424cf85f04d4d36516a0d88fe8cc
[ "Apache-2.0" ]
2
2020-12-01T03:33:46.000Z
2020-12-15T05:34:32.000Z
app/views/ApiTest/RunTest.py
DDDDanny/MintBlue-TestPlatform-Soul
e5a763f6537e424cf85f04d4d36516a0d88fe8cc
[ "Apache-2.0" ]
null
null
null
app/views/ApiTest/RunTest.py
DDDDanny/MintBlue-TestPlatform-Soul
e5a763f6537e424cf85f04d4d36516a0d88fe8cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/03/13 17:31:29 # @Author : DannyDong # @File : RunTest.py # @Describe: 用例执行逻辑 from app.Utils import DataReceive # 测试执行类 # 处理前置条件 # 用例执行逻辑
18.173913
57
0.602871
# -*- coding: utf-8 -*- # @Time : 2021/03/13 17:31:29 # @Author : DannyDong # @File : RunTest.py # @Describe: 用例执行逻辑 from app.Utils import DataReceive # 测试执行类 class RunTest(object): def __init__(self, data, cookie): self.data_list = DataReceive(data).data_resolve() self.cookie = cookie ...
120
1
100
d0f4a5199ea563644879e47ea3488566519ed300
1,528
py
Python
bitcoder/bitcoder.py
jemoster/bitcoder
85457ce41895a536ab587461db1e0de3bd7741d5
[ "MIT" ]
2
2018-03-11T04:30:13.000Z
2018-04-04T16:35:52.000Z
bitcoder/bitcoder.py
jemoster/bitcoder
85457ce41895a536ab587461db1e0de3bd7741d5
[ "MIT" ]
null
null
null
bitcoder/bitcoder.py
jemoster/bitcoder
85457ce41895a536ab587461db1e0de3bd7741d5
[ "MIT" ]
null
null
null
from collections import OrderedDict __author__ = 'Joe'
25.898305
88
0.567408
from collections import OrderedDict __author__ = 'Joe' class DescriptorAccessMixin: def _list_instances(self, *targets): rtn = {} for name, field in self.__class__.__dict__.items(): if isinstance(field, targets): rtn[name] = field return rtn class Field(objec...
1,100
224
144
4e202c624eec481747bcf67eea4f1525add9e7c5
686
py
Python
51-100/p81.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
1
2019-02-25T13:00:31.000Z
2019-02-25T13:00:31.000Z
51-100/p81.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
null
null
null
51-100/p81.py
YiWeiShen/Project-Euler-Hints
a79cacab075dd98d393516f083aaa7ffc6115a06
[ "MIT" ]
null
null
null
with open('p081_matrix.txt') as f: content = f.readlines() print(content) clear_list = [] for i in range(0, len(content)): clear_list.append(content[i].strip().split(',')) for i in range(1,80): clear_list[0][i] = int(clear_list[0][i]) + int(clear_list[0][i-1]) for i in range(1,80): clear_list[i][0]...
27.44
78
0.59621
with open('p081_matrix.txt') as f: content = f.readlines() print(content) clear_list = [] for i in range(0, len(content)): clear_list.append(content[i].strip().split(',')) for i in range(1,80): clear_list[0][i] = int(clear_list[0][i]) + int(clear_list[0][i-1]) for i in range(1,80): clear_list[i][0]...
0
0
0
60860857d6b9dfa13faef9faf8f141e8a9eb5134
3,051
py
Python
jolla/plugins.py
salamer/jolla
c3662a1743c4b0a3c5e7311190a6914b33beb524
[ "Apache-2.0" ]
162
2016-04-14T14:50:21.000Z
2021-09-04T05:48:21.000Z
jolla/plugins.py
salamer/jolla
c3662a1743c4b0a3c5e7311190a6914b33beb524
[ "Apache-2.0" ]
2
2016-09-02T16:30:08.000Z
2020-11-05T09:42:54.000Z
jolla/plugins.py
salamer/jolla
c3662a1743c4b0a3c5e7311190a6914b33beb524
[ "Apache-2.0" ]
26
2016-04-24T17:54:06.000Z
2021-01-19T08:29:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import os from HTTPerror import HTTP404Error, HTTP302Error from server import static_setting import logging
30.207921
108
0.56801
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import os from HTTPerror import HTTP404Error, HTTP302Error from server import static_setting import logging class HeaderError(Exception): def __init__(self): pass class HeaderTupleError(HeaderError): def __init__(self): logging.de...
2,662
23
192
f2afb385ccd9dd4521f8cce6c9c5b05356f0c18c
53
py
Python
cnas/evaluation/core/criterion/__init__.py
lilujunai/CNAS
f68bb46031597725196c3be3c301dd5853eaf08d
[ "BSD-3-Clause" ]
17
2020-06-23T10:41:23.000Z
2021-11-10T13:39:03.000Z
cnas/evaluation/core/criterion/__init__.py
guoyongcs/CNAS
f68bb46031597725196c3be3c301dd5853eaf08d
[ "BSD-3-Clause" ]
null
null
null
cnas/evaluation/core/criterion/__init__.py
guoyongcs/CNAS
f68bb46031597725196c3be3c301dd5853eaf08d
[ "BSD-3-Clause" ]
4
2021-04-16T08:31:41.000Z
2021-09-14T10:56:46.000Z
from .label_smooth import LabelSmoothCrossEntropyLoss
53
53
0.924528
from .label_smooth import LabelSmoothCrossEntropyLoss
0
0
0
e9eb893f6de71453ec421be4a6af987c6444f28c
440
py
Python
languageBot/messengerBot/tests.py
singhvisha/LanguageBot
9cef316bceb2f6951863af2fa869398fb5242519
[ "MIT" ]
null
null
null
languageBot/messengerBot/tests.py
singhvisha/LanguageBot
9cef316bceb2f6951863af2fa869398fb5242519
[ "MIT" ]
1
2021-06-10T23:09:30.000Z
2021-06-10T23:09:30.000Z
languageBot/messengerBot/tests.py
singhvisha/LanguageBot
9cef316bceb2f6951863af2fa869398fb5242519
[ "MIT" ]
null
null
null
from django.test import TestCase from views import translate_text # Create your tests here.
31.428571
92
0.709091
from django.test import TestCase from views import translate_text # Create your tests here. class testLanguageChange(TestCase): def testTranslateText(self): self.assertEqual(translate_text('fr', 'Hello'), 'Bonjour', msg="Wrong translation!") self.assertEqual(translate_text('de', 'Hello'), 'Hallo',...
281
14
49
59ea2c195581a0bb42cb64d93051f5bb1a490ac8
393
py
Python
tests/libgsync/sync/test_file.py
iwonbigbro/gsync
03db22fe826f073e56877918b0acb7b4ba908f18
[ "BSD-3-Clause" ]
199
2015-01-05T04:45:03.000Z
2021-08-15T12:04:03.000Z
tests/libgsync/sync/test_file.py
iwonbigbro/gsync
03db22fe826f073e56877918b0acb7b4ba908f18
[ "BSD-3-Clause" ]
42
2015-01-06T13:38:49.000Z
2021-11-23T19:36:20.000Z
tests/libgsync/sync/test_file.py
iwonbigbro/gsync
03db22fe826f073e56877918b0acb7b4ba908f18
[ "BSD-3-Clause" ]
49
2015-01-06T13:45:11.000Z
2022-03-22T11:46:29.000Z
#!/usr/bin/env python # Copyright (C) 2014 Craig Phillips. All rights reserved. import unittest from libgsync.sync.file import SyncFile
24.5625
63
0.681934
#!/usr/bin/env python # Copyright (C) 2014 Craig Phillips. All rights reserved. import unittest from libgsync.sync.file import SyncFile class TestSyncFile(unittest.TestCase): def test_SyncFile_relative_to(self): f = SyncFile("/gsync_unittest") self.assertEqual( f.relative_to("/gsync...
188
17
49
186325fe9221ca9117f4f4f9b967e01e6dfe17c0
10,758
py
Python
misago/misago/threads/tests/test_thread_postbulkdelete_api.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/threads/tests/test_thread_postbulkdelete_api.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/threads/tests/test_thread_postbulkdelete_api.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
import json from datetime import timedelta from django.urls import reverse from django.utils import timezone from .. import test from ..models import Post, Thread from ..test import patch_category_acl from .test_threads_api import ThreadsApiTestCase
38.014134
88
0.628555
import json from datetime import timedelta from django.urls import reverse from django.utils import timezone from .. import test from ..models import Post, Thread from ..test import patch_category_acl from .test_threads_api import ThreadsApiTestCase class PostBulkDeleteApiTests(ThreadsApiTestCase): def setUp(se...
469
10,013
23
9101a106c619fd7c812be346af49ac1c33d6d4de
1,039
py
Python
watchmen/connector/kafka/kafka_connector.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
125
2021-03-13T07:39:46.000Z
2022-02-28T03:14:17.000Z
watchmen/connector/kafka/kafka_connector.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
null
null
null
watchmen/connector/kafka/kafka_connector.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
17
2021-03-13T07:31:58.000Z
2021-05-20T09:38:02.000Z
import asyncio import json import logging import traceback from watchmen.collection.model.topic_event import TopicEvent from watchmen_boot.config.config import settings from watchmen.raw_data.service.import_raw_data import import_raw_topic_data log = logging.getLogger("app." + __name__) loop = asyncio.get_event_loop(...
29.685714
75
0.733397
import asyncio import json import logging import traceback from watchmen.collection.model.topic_event import TopicEvent from watchmen_boot.config.config import settings from watchmen.raw_data.service.import_raw_data import import_raw_topic_data log = logging.getLogger("app." + __name__) loop = asyncio.get_event_loop(...
611
0
23
2c642124c4cc7d91de11529279b7e2e5b3fa1712
4,213
py
Python
scr/Maze.py
IanDrunk/MazeBuilder
84f516ca1331960170874bfef2a556f8a8e4a3b5
[ "MIT" ]
null
null
null
scr/Maze.py
IanDrunk/MazeBuilder
84f516ca1331960170874bfef2a556f8a8e4a3b5
[ "MIT" ]
null
null
null
scr/Maze.py
IanDrunk/MazeBuilder
84f516ca1331960170874bfef2a556f8a8e4a3b5
[ "MIT" ]
null
null
null
import random import sys """ This class represents a maze instance """ # Maze class itself # Represents single node in the maze
27.180645
85
0.471873
import random import sys """ This class represents a maze instance """ # Maze class itself class Maze: size = 0 layout = list() def __init__(self, dimensions): layout = self.layout self.size = dimensions # Build initial layout for xx in range(dimensions): row...
3,513
523
44
3a09d11f2686ef5c5f0bcc180ffeabd3ab369001
1,525
py
Python
Widgets/color_btns.py
connorjrw/hue_gui
a90e03bbb20829efe1e922c6b696b3c737138eca
[ "MIT" ]
null
null
null
Widgets/color_btns.py
connorjrw/hue_gui
a90e03bbb20829efe1e922c6b696b3c737138eca
[ "MIT" ]
null
null
null
Widgets/color_btns.py
connorjrw/hue_gui
a90e03bbb20829efe1e922c6b696b3c737138eca
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QPushButton from hue import UnauthorizedUserError, GenericHueError
36.309524
67
0.638689
from PyQt5.QtWidgets import QPushButton from hue import UnauthorizedUserError, GenericHueError class ColorBtn(QPushButton): def __init__(self, color, hex_color, pos, parent): super().__init__("", parent) self.connection_handler = parent.connection_handler self.parent = parent self...
1,292
7
130
a3bf597e741229e477fc37b44fecb33fafa4826f
4,775
py
Python
src/lib/handling/entities.py
Toblobs/RPGOnline
3cdbf21219d71f2890b4e61eef54d83bad7d65d0
[ "MIT" ]
1
2022-03-29T18:18:41.000Z
2022-03-29T18:18:41.000Z
src/lib/handling/entities.py
Toblobs/RPGOnline
3cdbf21219d71f2890b4e61eef54d83bad7d65d0
[ "MIT" ]
null
null
null
src/lib/handling/entities.py
Toblobs/RPGOnline
3cdbf21219d71f2890b4e61eef54d83bad7d65d0
[ "MIT" ]
null
null
null
### RPGOnline ### A Synergy Studios Project import random # - GAME CLASSES - # class Game: """A class for a single game that stores all the other classes. For now, this refers to local-game only classes.""" class Shop: """A class to represent the shop, in which players can buy from.""" pass #...
23.638614
132
0.62199
### RPGOnline ### A Synergy Studios Project import random # - GAME CLASSES - # class Game: """A class for a single game that stores all the other classes. For now, this refers to local-game only classes.""" def __init__(self): self.players = {} #PlayerID, PlayerClass class Shop: """A ...
978
0
189
6681e1fb83dbed43de80cfe92266c1da0981a122
3,150
py
Python
home/home.py
abkraynak/smart-home
26439a322ee75811731da413c8e80d8fb89ab876
[ "MIT" ]
null
null
null
home/home.py
abkraynak/smart-home
26439a322ee75811731da413c8e80d8fb89ab876
[ "MIT" ]
null
null
null
home/home.py
abkraynak/smart-home
26439a322ee75811731da413c8e80d8fb89ab876
[ "MIT" ]
null
null
null
# home.py from .alarm import Alarm from .light import Light from .lock import Lock
30.882353
72
0.573016
# home.py from .alarm import Alarm from .light import Light from .lock import Lock class Home(object): def __init__(self, first_name: str, address: str): self._username = 'abkraynak' self._password = 'mypassword' self._first_name = first_name self._address = address self._a...
2,574
-2
495
fb329dc6d8a1d5c4374cc30489618e6b2c079d66
8,732
py
Python
homefinder.py
sheegl/home-finder
81830931bdd87243d0b14841e536eb0846b6da12
[ "MIT" ]
null
null
null
homefinder.py
sheegl/home-finder
81830931bdd87243d0b14841e536eb0846b6da12
[ "MIT" ]
null
null
null
homefinder.py
sheegl/home-finder
81830931bdd87243d0b14841e536eb0846b6da12
[ "MIT" ]
null
null
null
from io import StringIO from typing import NamedTuple, List, Set, Tuple, Optional from sites import SELECTORS from preferences import URLS from selenium.webdriver import FirefoxProfile, FirefoxOptions, Firefox from selenium.common.exceptions import NoSuchElementException from notification import notify_about_home, noti...
32.70412
114
0.545121
from io import StringIO from typing import NamedTuple, List, Set, Tuple, Optional from sites import SELECTORS from preferences import URLS from selenium.webdriver import FirefoxProfile, FirefoxOptions, Firefox from selenium.common.exceptions import NoSuchElementException from notification import notify_about_home, noti...
1,527
0
129
3c913f668c30268c7d5383a29723d2a5a48524db
547
py
Python
check_compatibility.py
rongxiao2014/ONNX-helpers
7deaaa9055db0c91e9dc58afb6d164b0fc28bd04
[ "MIT" ]
null
null
null
check_compatibility.py
rongxiao2014/ONNX-helpers
7deaaa9055db0c91e9dc58afb6d164b0fc28bd04
[ "MIT" ]
null
null
null
check_compatibility.py
rongxiao2014/ONNX-helpers
7deaaa9055db0c91e9dc58afb6d164b0fc28bd04
[ "MIT" ]
null
null
null
import onnx import onnx.numpy_helper as numpy_helper import numpy as np # This function checks whether two onnx files (onnx_A and onnx_B) have the same underlying computational graph and operators.
30.388889
125
0.714808
import onnx import onnx.numpy_helper as numpy_helper import numpy as np # This function checks whether two onnx files (onnx_A and onnx_B) have the same underlying computational graph and operators. def check_model(onnx_A, onnx_B): model_A = onnx.load(onnx_A) model_B = onnx.load(onnx_B) if model_A.graph.in...
325
0
22
76aa7154783688f93ffe35e1edb556109a3a8e23
1,055
py
Python
data/contacts.py
Pavlov85/python_training
55169bbc7b4e9aba69e70e39d800c5a46342cdcf
[ "Apache-2.0" ]
null
null
null
data/contacts.py
Pavlov85/python_training
55169bbc7b4e9aba69e70e39d800c5a46342cdcf
[ "Apache-2.0" ]
null
null
null
data/contacts.py
Pavlov85/python_training
55169bbc7b4e9aba69e70e39d800c5a46342cdcf
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact testdata = [ Contact(firstname="qqqqqqqq", middlename="wwwwwww", nickname="eeefdeeee", title="vvvvvvvvvv", lastname="eeeeeeeee", company="xccccccccc", adress="ffcvcxvcvcxvxcvx", home="23144124214", mobile="45565656678", work="56678678678", fax="...
58.611111
97
0.636967
from model.contact import Contact testdata = [ Contact(firstname="qqqqqqqq", middlename="wwwwwww", nickname="eeefdeeee", title="vvvvvvvvvv", lastname="eeeeeeeee", company="xccccccccc", adress="ffcvcxvcvcxvxcvx", home="23144124214", mobile="45565656678", work="56678678678", fax="...
0
0
0
747d5363eb18a36a4ee219760f7ab5b01e63e00f
3,847
py
Python
Examples/PDFTool/MergeNew_cmd.py
wxh0000mm/TKinterDesigner
01878e78746082413a09444283edbd52118d15ef
[ "Apache-2.0" ]
1
2022-03-09T08:43:41.000Z
2022-03-09T08:43:41.000Z
Examples/PDFTool/MergeNew_cmd.py
wxh0000mm/TKinterDesigner
01878e78746082413a09444283edbd52118d15ef
[ "Apache-2.0" ]
null
null
null
Examples/PDFTool/MergeNew_cmd.py
wxh0000mm/TKinterDesigner
01878e78746082413a09444283edbd52118d15ef
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 import sys import os from os.path import abspath, dirname sys.path.append(abspath(dirname(__file__))) import tkinter import tkinter.filedialog from tkinter import * import Fun ElementBGArray={} ElementBGArray_Resize={} ElementBGArray_IM={} from PyPDF2 import PdfFileReader, PdfFileWriter DirPath=""...
36.292453
162
0.675331
#coding=utf-8 import sys import os from os.path import abspath, dirname sys.path.append(abspath(dirname(__file__))) import tkinter import tkinter.filedialog from tkinter import * import Fun ElementBGArray={} ElementBGArray_Resize={} ElementBGArray_IM={} from PyPDF2 import PdfFileReader, PdfFileWriter DirPath=""...
3,517
0
220
38ec129fdce345e5491f76cdf291fe1044bda1e6
2,090
py
Python
books/dongbin-na/part3_sorting/sorting_3.py
livlikwav/Algorithms
dbb443aeb56946252ed8fa2fccd3c35026697a16
[ "MIT" ]
1
2019-11-28T02:47:48.000Z
2019-11-28T02:47:48.000Z
books/dongbin-na/part3_sorting/sorting_3.py
livlikwav/Algorithms
dbb443aeb56946252ed8fa2fccd3c35026697a16
[ "MIT" ]
6
2019-11-27T14:01:51.000Z
2020-12-03T16:34:27.000Z
books/dongbin-na/part3_sorting/sorting_3.py
livlikwav/BOJstack
dbb443aeb56946252ed8fa2fccd3c35026697a16
[ "MIT" ]
null
null
null
''' <실수 줄이기 메모> 소요 시간 30분(권장 20분 문제) 초기화 하는 과정(누산) 알고리즘을 잘 못 짜서 헤맸다. 쉬운 문제일수록, 집중해서 정확히 한번에 풀고 끝내자 ㅜㅜ! <답안 꿀팁> 1) python list.count(<<특정 값>>) 시간 복잡도 O(N) 근데 사실 내가 짠 코드가 한번 loop로 끝이니 더 빠르긴함. 다만 여유로우니 위 built-in 사용하면 코드가 깔끔함. 2) stages 1부터 차례로 실패율을 계산하면서, 전체 사람수를 줄여나감 fail = count / length length -= count 이렇게 하면 더 코드...
21.326531
61
0.528708
''' <실수 줄이기 메모> 소요 시간 30분(권장 20분 문제) 초기화 하는 과정(누산) 알고리즘을 잘 못 짜서 헤맸다. 쉬운 문제일수록, 집중해서 정확히 한번에 풀고 끝내자 ㅜㅜ! <답안 꿀팁> 1) python list.count(<<특정 값>>) 시간 복잡도 O(N) 근데 사실 내가 짠 코드가 한번 loop로 끝이니 더 빠르긴함. 다만 여유로우니 위 built-in 사용하면 코드가 깔끔함. 2) stages 1부터 차례로 실패율을 계산하면서, 전체 사람수를 줄여나감 fail = count / length length -= count 이렇게 하면 더 코드...
1,166
0
22
8a4dd649f486cc91d2dc2ff4b2a59f4b61a25860
7,188
py
Python
test/basetest/vramsteg.py
GothenburgBitFactory/vramsteg
627f22e248f07fd90bd6df3b0f0715c3ce7a00fa
[ "MIT" ]
3
2018-08-30T23:16:21.000Z
2020-12-07T04:54:20.000Z
test/basetest/vramsteg.py
GothenburgBitFactory/vramsteg
627f22e248f07fd90bd6df3b0f0715c3ce7a00fa
[ "MIT" ]
null
null
null
test/basetest/vramsteg.py
GothenburgBitFactory/vramsteg
627f22e248f07fd90bd6df3b0f0715c3ce7a00fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import atexit import json import os import shlex import shutil import tempfile import unittest from .exceptions import CommandError from .utils import run_cmd_wait, run_cmd_wait_nofail, which, vramsteg_binary_location, DEFAULT_EXTENSION_PATH from .compat import STRING_TYPE class Vramsteg(obje...
34.228571
109
0.617418
# -*- coding: utf-8 -*- import atexit import json import os import shlex import shutil import tempfile import unittest from .exceptions import CommandError from .utils import run_cmd_wait, run_cmd_wait_nofail, which, vramsteg_binary_location, DEFAULT_EXTENSION_PATH from .compat import STRING_TYPE class Vramsteg(obje...
282
0
54
0092f61bf18250eb90f5c964a082b9a9f0503b57
238
py
Python
passing/cq_examples/test_ex016.py
RubenRubens/cq-testing
558631a56b5751ef529f33d0aea4fe62ed8d5549
[ "WTFPL" ]
null
null
null
passing/cq_examples/test_ex016.py
RubenRubens/cq-testing
558631a56b5751ef529f33d0aea4fe62ed8d5549
[ "WTFPL" ]
null
null
null
passing/cq_examples/test_ex016.py
RubenRubens/cq-testing
558631a56b5751ef529f33d0aea4fe62ed8d5549
[ "WTFPL" ]
null
null
null
import unittest import cq_examples.Ex016_Using_Construction_Geometry as ex
26.444444
58
0.718487
import unittest import cq_examples.Ex016_Using_Construction_Geometry as ex class TestExample016(unittest.TestCase): def test_Ex016(self): # Import and validate R = ex.result self.assertTrue(R.val().isValid())
95
19
49
29c2607d7bf80b32cb7d218c68ceb4a4a69ab6c6
1,166
py
Python
tests/test_imdb_list_interface.py
thisirs/Flexget
4dacd31e89dd37c6c8afce0c11b37eeb177ebc0f
[ "MIT" ]
null
null
null
tests/test_imdb_list_interface.py
thisirs/Flexget
4dacd31e89dd37c6c8afce0c11b37eeb177ebc0f
[ "MIT" ]
null
null
null
tests/test_imdb_list_interface.py
thisirs/Flexget
4dacd31e89dd37c6c8afce0c11b37eeb177ebc0f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import pytest from flexget.entry import Entry from flexget.plugins.list.imdb_list import ImdbEntrySet @pytest.mark.online
24.291667
74
0.650086
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import pytest from flexget.entry import Entry from flexget.plugins.list.imdb_list import ImdbEntrySet @pytest.mark.online class TestIMDBList(object): config = """ ...
632
242
22
3fe60292e8f54a8cdf394b5e09f8a3d2bca7605c
3,080
py
Python
src/finn/transformation/fpgadataflow/insert_dwc.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
1
2021-01-29T14:39:48.000Z
2021-01-29T14:39:48.000Z
src/finn/transformation/fpgadataflow/insert_dwc.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/fpgadataflow/insert_dwc.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
1
2022-03-07T02:57:55.000Z
2022-03-07T02:57:55.000Z
from onnx import TensorProto from onnx import helper as oh from finn.custom_op.registry import getCustomOp from finn.transformation import Transformation from finn.util.fpgadataflow import is_fpgadataflow_node class InsertDWC(Transformation): """Ensure that the graph is terminated with a TLastMarker node, inse...
35
82
0.503571
from onnx import TensorProto from onnx import helper as oh from finn.custom_op.registry import getCustomOp from finn.transformation import Transformation from finn.util.fpgadataflow import is_fpgadataflow_node def _is_dwc_node(node): if node.op_type == "StreamingDataWidthConverter_Batch": return True ...
2,629
0
100
1dbf3897d67d8c520db975995e72908a8e56a9a7
116
py
Python
src/data/__init__.py
tinyperegrine/techex
4e468f8b6196b56b1422a41c9e2dd44e3d9b5970
[ "MIT" ]
null
null
null
src/data/__init__.py
tinyperegrine/techex
4e468f8b6196b56b1422a41c9e2dd44e3d9b5970
[ "MIT" ]
null
null
null
src/data/__init__.py
tinyperegrine/techex
4e468f8b6196b56b1422a41c9e2dd44e3d9b5970
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() from .models import User from .models import CoffeeShop
16.571429
39
0.810345
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() from .models import User from .models import CoffeeShop
0
0
0
7970f629d43eb990a4ac94737529ac11599e9e41
3,445
py
Python
SnakeSegment.py
tanvirtin/PySnake
af389217f7c69cfa0e48950b2013f33506b3c79e
[ "MIT" ]
null
null
null
SnakeSegment.py
tanvirtin/PySnake
af389217f7c69cfa0e48950b2013f33506b3c79e
[ "MIT" ]
null
null
null
SnakeSegment.py
tanvirtin/PySnake
af389217f7c69cfa0e48950b2013f33506b3c79e
[ "MIT" ]
null
null
null
import pygame from GameObj import GameObj import random # draws the segment, go_through by default is false # checks the boundary for the segment # goes through the boundary and comes through the other end
41.011905
202
0.651089
import pygame from GameObj import GameObj import random class SnakeSegment(GameObj): def __init__(self, x, y, speed, boundary_x, boundary_y, head = False, default_direction = "up"): self.body_size = 20 super().__init__(x, y, self.body_size, self.body_size) self.weird_boundary_offset = 19 ...
3,062
7
155
9a271fccc8ec544dcd26b1db9167fe40336bf114
2,982
py
Python
guidesyn/dataset/scripts/dudsds+/View.py
eth-sri/guiding-synthesizers
3622b80eb3bf633be65036dc47e4ed7b98c3fce8
[ "Apache-2.0" ]
9
2020-04-04T16:20:20.000Z
2021-07-01T04:11:38.000Z
guidesyn/dataset/scripts/dudsds+/View.py
eth-sri/guiding-synthesizers
3622b80eb3bf633be65036dc47e4ed7b98c3fce8
[ "Apache-2.0" ]
1
2020-02-23T20:16:43.000Z
2020-02-24T13:10:23.000Z
guidesyn/dataset/scripts/dudsds+/View.py
eth-sri/guiding-synthesizers
3622b80eb3bf633be65036dc47e4ed7b98c3fce8
[ "Apache-2.0" ]
3
2020-04-05T16:57:50.000Z
2022-02-18T01:46:37.000Z
""" Copyright 2019 Software Reliability Lab, ETH Zurich 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 i...
38.727273
118
0.629108
""" Copyright 2019 Software Reliability Lab, ETH Zurich 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 i...
1,896
-10
400
daaed69bee1675e209be9bef60c0811ff5f119df
2,579
py
Python
schematizer/models/base_model.py
Yelp/schematizer
035845d27945a05db475f00eb76f59e8825dbaa4
[ "Apache-2.0" ]
86
2016-11-17T17:39:13.000Z
2021-06-01T15:19:05.000Z
schematizer/models/base_model.py
tomzhang/schematizer
035845d27945a05db475f00eb76f59e8825dbaa4
[ "Apache-2.0" ]
2
2016-12-01T20:57:43.000Z
2021-09-28T09:26:25.000Z
schematizer/models/base_model.py
tomzhang/schematizer
035845d27945a05db475f00eb76f59e8825dbaa4
[ "Apache-2.0" ]
26
2016-11-29T22:38:11.000Z
2021-03-02T19:44:17.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ag...
36.842857
79
0.677007
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ag...
662
0
52
1fbe0a27731d89d2903d37723d788e47be5f98f0
246
py
Python
src/tushare/main.py
frosh-li/stocks
9f55e82376471af7735223e433d5ef1eca5c1e34
[ "MIT" ]
null
null
null
src/tushare/main.py
frosh-li/stocks
9f55e82376471af7735223e433d5ef1eca5c1e34
[ "MIT" ]
3
2020-07-17T06:16:03.000Z
2022-01-22T12:42:25.000Z
src/tushare/main.py
frosh-li/stocks
9f55e82376471af7735223e433d5ef1eca5c1e34
[ "MIT" ]
null
null
null
import tushare as ts import pymongo import json stock_lists = ts.get_stock_basics() #获取所有股票列表 conn = pymongo.MongoClient('127.0.0.1', port=27017) conn.db.tickdata.insert_many(json.loads(stock_lists.to_json(orient='records'))) print(stock_lists)
27.333333
79
0.792683
import tushare as ts import pymongo import json stock_lists = ts.get_stock_basics() #获取所有股票列表 conn = pymongo.MongoClient('127.0.0.1', port=27017) conn.db.tickdata.insert_many(json.loads(stock_lists.to_json(orient='records'))) print(stock_lists)
0
0
0
ea3cb6e3c90e2b527b53dee5264a9f0e700dc0e6
746
py
Python
tst/regression/scripts/tests/diffusion/viscous_diffusion_sts.py
lucyundead/athena--fork
04a4027299145f61bdc08528548e0b1b398ba0a6
[ "BSD-3-Clause" ]
null
null
null
tst/regression/scripts/tests/diffusion/viscous_diffusion_sts.py
lucyundead/athena--fork
04a4027299145f61bdc08528548e0b1b398ba0a6
[ "BSD-3-Clause" ]
null
null
null
tst/regression/scripts/tests/diffusion/viscous_diffusion_sts.py
lucyundead/athena--fork
04a4027299145f61bdc08528548e0b1b398ba0a6
[ "BSD-3-Clause" ]
2
2020-11-21T18:35:02.000Z
2021-03-03T01:08:19.000Z
# Regression test based on the diffusion of a Gaussian # velocity field. Convergence of L1 norm of the error # in v is tested. Expected 1st order conv. for STS. # Modules # (needed for global variables modified in run_tests.py, even w/o athena.run(), etc.) import scripts.utils.athena as athena # noqa import scripts...
28.692308
85
0.752011
# Regression test based on the diffusion of a Gaussian # velocity field. Convergence of L1 norm of the error # in v is tested. Expected 1st order conv. for STS. # Modules # (needed for global variables modified in run_tests.py, even w/o athena.run(), etc.) import scripts.utils.athena as athena # noqa import scripts...
141
0
69
66d4ec547b50f12e68ebec7194564864bf2947bb
4,143
py
Python
credentials_test.py
audreynjiraini/password-Locker
33bcc72ca6811e6583def7444ff2c48be4a71b21
[ "MIT" ]
null
null
null
credentials_test.py
audreynjiraini/password-Locker
33bcc72ca6811e6583def7444ff2c48be4a71b21
[ "MIT" ]
null
null
null
credentials_test.py
audreynjiraini/password-Locker
33bcc72ca6811e6583def7444ff2c48be4a71b21
[ "MIT" ]
null
null
null
import unittest #import unittest module from credentials import User from credentials import Credentials class TestUser(unittest.TestCase): ''' Test class that defines test cases for the user class behaviours. Args: unittest.TestCase: TestCase class that helps in creating test cases ''' ...
34.525
101
0.63384
import unittest #import unittest module from credentials import User from credentials import Credentials class TestUser(unittest.TestCase): ''' Test class that defines test cases for the user class behaviours. Args: unittest.TestCase: TestCase class that helps in creating test cases ''' ...
0
0
0
00b455d8fd1d594c4913d5aab37050e3d6d79a71
1,893
py
Python
main10.py
sgalati528/E02a-Control-Structures
3df2e6437246bce35863cc7dc0f37ea3a01d28c7
[ "MIT" ]
null
null
null
main10.py
sgalati528/E02a-Control-Structures
3df2e6437246bce35863cc7dc0f37ea3a01d28c7
[ "MIT" ]
null
null
null
main10.py
sgalati528/E02a-Control-Structures
3df2e6437246bce35863cc7dc0f37ea3a01d28c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, random assert sys.version_info >= (3,7), "This script requires at least Python 3.7" print('Greetings!')#prints 'Greetings' in window colors = ['red','orange','yellow','green','blue','violet','purple']#list of colors play_again = ''#establishing empty variable best_count = sys.maxsi...
51.162162
98
0.683043
#!/usr/bin/env python3 import sys, random assert sys.version_info >= (3,7), "This script requires at least Python 3.7" print('Greetings!')#prints 'Greetings' in window colors = ['red','orange','yellow','green','blue','violet','purple']#list of colors play_again = ''#establishing empty variable best_count = sys.maxsi...
0
0
0
c111fdff69841b31542b0dd1bc3580614e9ae7a1
2,138
py
Python
tests/modelci/conftest.py
scaleapi/nucleus-python-client
8293cd5e7b368faf12bc2952defef36f712a7ba2
[ "MIT" ]
13
2020-12-02T01:07:12.000Z
2022-03-15T17:28:37.000Z
tests/modelci/conftest.py
scaleapi/nucleus-python-client
8293cd5e7b368faf12bc2952defef36f712a7ba2
[ "MIT" ]
78
2020-10-29T09:33:04.000Z
2022-03-28T20:35:45.000Z
tests/modelci/conftest.py
scaleapi/nucleus-python-client
8293cd5e7b368faf12bc2952defef36f712a7ba2
[ "MIT" ]
8
2020-11-13T06:23:38.000Z
2022-03-03T20:48:06.000Z
import time import pytest from nucleus import BoxAnnotation from tests.helpers import ( TEST_BOX_ANNOTATIONS, TEST_MODEL_NAME, TEST_SLICE_NAME, get_uuid, ) from tests.modelci.helpers import create_box_annotations, create_predictions from tests.test_dataset import make_dataset_items @pytest.fixture(s...
26.395062
93
0.745557
import time import pytest from nucleus import BoxAnnotation from tests.helpers import ( TEST_BOX_ANNOTATIONS, TEST_MODEL_NAME, TEST_SLICE_NAME, get_uuid, ) from tests.modelci.helpers import create_box_annotations, create_predictions from tests.test_dataset import make_dataset_items @pytest.fixture(s...
1,069
0
154
12534567a129ddc28bc58f9b5ad9a2f169707527
1,953
py
Python
setup.py
aurzenligl/prophy
4e60162b3871aa7c43a38f273c2840ce4cf758f7
[ "MIT" ]
14
2015-02-19T22:00:37.000Z
2020-11-30T03:03:55.000Z
setup.py
aurzenligl/prophy
4e60162b3871aa7c43a38f273c2840ce4cf758f7
[ "MIT" ]
31
2015-06-22T11:11:10.000Z
2021-05-12T06:35:47.000Z
setup.py
aurzenligl/prophy
4e60162b3871aa7c43a38f273c2840ce4cf758f7
[ "MIT" ]
16
2015-06-12T06:48:06.000Z
2019-11-26T22:48:13.000Z
from setuptools import setup, find_packages long_description = open('README.rst').read() setup( name='prophy', version='1.2.4', author='Krzysztof Laskowski', author_email='aurzenligl@gmail.com', maintainer='Krzysztof Laskowski', maintainer_email='aurzenligl@gmail.com', license='MIT license...
39.06
82
0.631848
from setuptools import setup, find_packages long_description = open('README.rst').read() setup( name='prophy', version='1.2.4', author='Krzysztof Laskowski', author_email='aurzenligl@gmail.com', maintainer='Krzysztof Laskowski', maintainer_email='aurzenligl@gmail.com', license='MIT license...
0
0
0
f4c88dfe57c4e5b9b4486b7502a46f7a882707ac
6,198
py
Python
torch_geometric/io/pems_bay.py
radandreicristian/pytorch_geometric
715ee2447d0689682c2c622a074442757ff9cc81
[ "MIT" ]
null
null
null
torch_geometric/io/pems_bay.py
radandreicristian/pytorch_geometric
715ee2447d0689682c2c622a074442757ff9cc81
[ "MIT" ]
null
null
null
torch_geometric/io/pems_bay.py
radandreicristian/pytorch_geometric
715ee2447d0689682c2c622a074442757ff9cc81
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List, Optional, Tuple, Union import numpy as np import pandas as pd class PemsBayIo: """A class that encapsulates i/o operations related to the PeMS-Bay dataset. Args: n_readings: The number of readings in the dataset (not to be confunded with ...
36.458824
80
0.616005
from pathlib import Path from typing import List, Optional, Tuple, Union import numpy as np import pandas as pd class PemsBayIo: """A class that encapsulates i/o operations related to the PeMS-Bay dataset. Args: n_readings: The number of readings in the dataset (not to be confunded with ...
762
0
78
3e83d7a6db066dd793c0855847a1c8a44e014f78
1,487
py
Python
sciluigi_code/biobakery_tasks.py
FredHutch/sciluigi-workflows
3a12a3e595682b801a132414021406026e4c0ce2
[ "MIT" ]
null
null
null
sciluigi_code/biobakery_tasks.py
FredHutch/sciluigi-workflows
3a12a3e595682b801a132414021406026e4c0ce2
[ "MIT" ]
null
null
null
sciluigi_code/biobakery_tasks.py
FredHutch/sciluigi-workflows
3a12a3e595682b801a132414021406026e4c0ce2
[ "MIT" ]
null
null
null
import os import sciluigi as sl
25.637931
61
0.513114
import os import sciluigi as sl class HUMAnN2Task(sl.ContainerTask): # Input FASTQ file in_fastq = None # Reference database ref_db = sl.Parameter(default="") # Sample name sample_name = sl.Parameter() # Output folder output_folder = sl.Parameter() # Number of threads to use ...
821
610
23
7c93f6ac49cf6ace4ed9e1f7c1cbc4f6c2227ae9
4,712
py
Python
ambuild2/graph.py
Accelerator74/ambuild
b322668b7ee4063d2443623bc2b777cfad1695c1
[ "BSD-3-Clause" ]
34
2015-02-11T19:43:01.000Z
2022-01-24T10:18:54.000Z
ambuild2/graph.py
Accelerator74/ambuild
b322668b7ee4063d2443623bc2b777cfad1695c1
[ "BSD-3-Clause" ]
64
2015-02-06T19:54:22.000Z
2021-11-07T11:42:47.000Z
ambuild2/graph.py
Accelerator74/ambuild
b322668b7ee4063d2443623bc2b777cfad1695c1
[ "BSD-3-Clause" ]
32
2015-02-06T19:36:51.000Z
2021-12-01T22:05:28.000Z
# vim: set ts=8 sts=2 sw=2 tw=99 et: # # This file is part of AMBuild. # # AMBuild 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. # # ...
32.951049
80
0.610781
# vim: set ts=8 sts=2 sw=2 tw=99 et: # # This file is part of AMBuild. # # AMBuild 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. # # ...
3,304
641
46
34c2231ff683dea892eed3e2e72b153911ddc95f
2,188
py
Python
ImageSegmentationAPI/segmentation.py
ayoolaolafenwa/MLOps
1faec566688dedf7e98a399de546e481b3a6641e
[ "MIT" ]
3
2021-11-24T09:20:15.000Z
2022-02-12T19:44:34.000Z
ImageSegmentationAPI/segmentation.py
ayoolaolafenwa/MLOps
1faec566688dedf7e98a399de546e481b3a6641e
[ "MIT" ]
null
null
null
ImageSegmentationAPI/segmentation.py
ayoolaolafenwa/MLOps
1faec566688dedf7e98a399de546e481b3a6641e
[ "MIT" ]
null
null
null
import flask from flask import Flask, jsonify, render_template, url_for, request, redirect, jsonify, send_from_directory from werkzeug.utils import secure_filename import pixellib from pixellib.torchbackend.instance import instanceSegmentation import os app = Flask(__name__) upload_folder = "static" os.makedirs(uploa...
33.151515
199
0.675503
import flask from flask import Flask, jsonify, render_template, url_for, request, redirect, jsonify, send_from_directory from werkzeug.utils import secure_filename import pixellib from pixellib.torchbackend.instance import instanceSegmentation import os app = Flask(__name__) upload_folder = "static" os.makedirs(uploa...
1,390
0
88
3340464613516bc80450402681fc7fc101fdc4af
1,706
py
Python
miningpool_test/rpc_client.py
tiaotiao00/HSR00qianbao
a88afebeb98e786389f369447bcf9c3a2a352cfa
[ "MIT" ]
66
2017-09-29T07:09:59.000Z
2020-01-12T06:45:08.000Z
miningpool_test/rpc_client.py
tiaotiao00/HSR00qianbao
a88afebeb98e786389f369447bcf9c3a2a352cfa
[ "MIT" ]
5
2017-12-13T13:12:05.000Z
2018-01-18T10:34:02.000Z
miningpool_test/rpc_client.py
tiaotiao00/HSR00qianbao
a88afebeb98e786389f369447bcf9c3a2a352cfa
[ "MIT" ]
11
2017-12-05T07:02:05.000Z
2018-01-28T02:52:50.000Z
#!/usr/bin/env python # encoding: utf-8 __author__ = 'hasee' import socket import json if __name__ == '__main__': pass
25.848485
88
0.590856
#!/usr/bin/env python # encoding: utf-8 __author__ = 'hasee' import socket import json class RpcConnection(object): request_template = '''{"jsonrpc":"2.0","id":"1","method":"%s","params":%s}''' ReadBufSize = 4096 def __init__(self, ip, port): self.rpc_server_ip = ip self.rpc_server_port ...
1,288
220
69
5887a2e5a4198204e4fbd39ba5658f17ca21f81c
1,080
py
Python
gui_and_analytics/analytics/linear_path_solar.py
panzer/capstone-mppt
02e42139ea3031d15924d65de24ef47282327752
[ "MIT" ]
1
2019-11-17T15:15:44.000Z
2019-11-17T15:15:44.000Z
gui_and_analytics/analytics/linear_path_solar.py
panzer/capstone-mppt
02e42139ea3031d15924d65de24ef47282327752
[ "MIT" ]
null
null
null
gui_and_analytics/analytics/linear_path_solar.py
panzer/capstone-mppt
02e42139ea3031d15924d65de24ef47282327752
[ "MIT" ]
null
null
null
import pvlib as pv from datetime import datetime import pandas.plotting from analytics.location.path import LinearPath from analytics.solar_qualities.position import get_solar_position_time_range_track from analytics.plots.plot_solar_position import plot_elevation_azimuth from analytics.plots.plot_path import plot_path...
32.727273
82
0.752778
import pvlib as pv from datetime import datetime import pandas.plotting from analytics.location.path import LinearPath from analytics.solar_qualities.position import get_solar_position_time_range_track from analytics.plots.plot_solar_position import plot_elevation_azimuth from analytics.plots.plot_path import plot_path...
643
0
23
15f64549cba042691451a506d51d93db8572a104
2,583
py
Python
UnitTests/Volume/TypedCoords2Volume/test_backward.py
dendisuhubdy/TorchProteinLibrary
89f0f6c311658b9313484cd92804682a251b1b97
[ "MIT" ]
96
2018-10-18T20:08:32.000Z
2021-09-27T11:31:25.000Z
UnitTests/Volume/TypedCoords2Volume/test_backward.py
dendisuhubdy/TorchProteinLibrary
89f0f6c311658b9313484cd92804682a251b1b97
[ "MIT" ]
24
2018-10-19T13:59:21.000Z
2021-08-04T16:13:48.000Z
UnitTests/Volume/TypedCoords2Volume/test_backward.py
dendisuhubdy/TorchProteinLibrary
89f0f6c311658b9313484cd92804682a251b1b97
[ "MIT" ]
23
2018-12-06T06:17:18.000Z
2021-10-05T12:46:34.000Z
import sys import os import torch import matplotlib.pylab as plt import numpy as np from TorchProteinLibrary.FullAtomModel import Angles2Coords from TorchProteinLibrary.FullAtomModel import Coords2TypedCoords from TorchProteinLibrary.FullAtomModel import Coords2CenteredCoords from TorchProteinLibrary.Volume import Typ...
32.2875
100
0.707317
import sys import os import torch import matplotlib.pylab as plt import numpy as np from TorchProteinLibrary.FullAtomModel import Angles2Coords from TorchProteinLibrary.FullAtomModel import Coords2TypedCoords from TorchProteinLibrary.FullAtomModel import Coords2CenteredCoords from TorchProteinLibrary.Volume import Typ...
0
0
0
5cb23c362a3c6b3acb04e5a8549245bf13d288c3
4,611
py
Python
tests/test_profile.py
sjforeman/halomod
587db6bc71a77ea60a541b306fc3601eeb424bc9
[ "MIT" ]
null
null
null
tests/test_profile.py
sjforeman/halomod
587db6bc71a77ea60a541b306fc3601eeb424bc9
[ "MIT" ]
null
null
null
tests/test_profile.py
sjforeman/halomod
587db6bc71a77ea60a541b306fc3601eeb424bc9
[ "MIT" ]
null
null
null
""" Test various halo profile properties. """ from halomod.concentration import Bullock01Power from halomod import profiles as pf from halomod import TracerHaloModel import pytest import numpy as np bullock = Bullock01Power(ms=1e12) m = np.logspace(10, 15, 100) r = np.logspace(-2, 2, 20) class NFWnum(pf.Profile): ...
25.335165
88
0.612665
""" Test various halo profile properties. """ from halomod.concentration import Bullock01Power from halomod import profiles as pf from halomod import TracerHaloModel import pytest import numpy as np bullock = Bullock01Power(ms=1e12) m = np.logspace(10, 15, 100) r = np.logspace(-2, 2, 20) class NFWnum(pf.Profile): ...
2,321
0
302
6ce137d2082d9c6f59d245ef8965cd4c05d1fee6
3,000
py
Python
app/1.3.py
filangelos/random-forest
0fc7a4f74b1120f3e527e824abc1de1aa32f2b18
[ "MIT" ]
1
2019-10-21T20:49:24.000Z
2019-10-21T20:49:24.000Z
app/1.3.py
filangel/random-forest
0fc7a4f74b1120f3e527e824abc1de1aa32f2b18
[ "MIT" ]
null
null
null
app/1.3.py
filangel/random-forest
0fc7a4f74b1120f3e527e824abc1de1aa32f2b18
[ "MIT" ]
2
2020-09-22T16:27:50.000Z
2020-12-01T21:08:37.000Z
# EXECUTION TIME: 4s # Python 3 ImportError import sys sys.path.append('.') import numpy as np import matplotlib.pyplot as plt import seaborn as sns import src as ya from sklearn import tree import graphviz # prettify plots plt.rcParams['font.family'] = 'Times New Roman' sns.set_style({"xtick.direction": "in", "yti...
31.914894
79
0.557667
# EXECUTION TIME: 4s # Python 3 ImportError import sys sys.path.append('.') import numpy as np import matplotlib.pyplot as plt import seaborn as sns import src as ya from sklearn import tree import graphviz # prettify plots plt.rcParams['font.family'] = 'Times New Roman' sns.set_style({"xtick.direction": "in", "yti...
0
0
0
173abe89ed852b5aeae8f07fd3c6021b2b7e64b0
540
py
Python
message_processor.py
vnrdd/stega-live-video
f1d7d93248ea7c7c4b484543e8b8494fcc252885
[ "MIT" ]
null
null
null
message_processor.py
vnrdd/stega-live-video
f1d7d93248ea7c7c4b484543e8b8494fcc252885
[ "MIT" ]
null
null
null
message_processor.py
vnrdd/stega-live-video
f1d7d93248ea7c7c4b484543e8b8494fcc252885
[ "MIT" ]
null
null
null
from kombu import Connection
36
71
0.568519
from kombu import Connection class MessageProcessor: @staticmethod def get_message() -> str: with Connection('amqp://guest:guest@localhost:5672//') as conn: try: simple_queue = conn.SimpleQueue('messages') message = simple_queue.get(block=True, timeout=0.1) ...
443
46
23
6cdb2cfdf25492c511629572a6ebe4abdfd9eb72
2,168
py
Python
src/translate.py
efrubin/text-translate
8e7ae2af17cbff97e4d55c8644ec5234711593b3
[ "MIT" ]
null
null
null
src/translate.py
efrubin/text-translate
8e7ae2af17cbff97e4d55c8644ec5234711593b3
[ "MIT" ]
null
null
null
src/translate.py
efrubin/text-translate
8e7ae2af17cbff97e4d55c8644ec5234711593b3
[ "MIT" ]
null
null
null
# translate.py # Author: Elias Rubin import requests from config import * def parse_body(body_text): """ param: body_text :: string """ try: split_text = body_text.rsplit(" ") source_lang = split_text[0] target_lang = split_text[1] query_string = " ".join(split_text...
31.42029
79
0.632841
# translate.py # Author: Elias Rubin import requests from config import * def parse_body(body_text): """ param: body_text :: string """ try: split_text = body_text.rsplit(" ") source_lang = split_text[0] target_lang = split_text[1] query_string = " ".join(split_text...
306
0
23
b18e357fe3f57e77ae7a181110857f6803148379
1,078
py
Python
hours/management/commands/update_resource_denormalized_date_periods_data.py
City-of-Helsinki/hauki
f49628c0533baa68c7deb83224065c3b1158f807
[ "MIT" ]
3
2020-03-26T05:04:30.000Z
2022-03-22T15:57:18.000Z
hours/management/commands/update_resource_denormalized_date_periods_data.py
City-of-Helsinki/hauki
f49628c0533baa68c7deb83224065c3b1158f807
[ "MIT" ]
81
2020-06-17T14:31:11.000Z
2022-02-20T19:01:54.000Z
hours/management/commands/update_resource_denormalized_date_periods_data.py
City-of-Helsinki/hauki
f49628c0533baa68c7deb83224065c3b1158f807
[ "MIT" ]
9
2020-06-18T10:52:09.000Z
2022-02-11T13:05:59.000Z
from django.core.management.base import BaseCommand from django.db import transaction from hours.models import Resource
32.666667
82
0.654917
from django.core.management.base import BaseCommand from django.db import transaction from hours.models import Resource class Command(BaseCommand): help = ( "Update denormalized opening hours fields (date_periods_hash and " "date_periods_as_text) in resources" ) def add_arguments(self, p...
734
199
23
7f4b3c1917762fddb659e869cc3527294c28056e
16,572
py
Python
OptimizationSolver.py
purboday/ResilientDeploymentSolver
1ea1471a71e9993cd766abc907694d92b1142b67
[ "MIT" ]
null
null
null
OptimizationSolver.py
purboday/ResilientDeploymentSolver
1ea1471a71e9993cd766abc907694d92b1142b67
[ "MIT" ]
null
null
null
OptimizationSolver.py
purboday/ResilientDeploymentSolver
1ea1471a71e9993cd766abc907694d92b1142b67
[ "MIT" ]
null
null
null
from z3 import * from ModelParser import ModelParser import argparse from configparser import ConfigParser import time from DeplGenerator import DeplGenerator # A = ['A1','A2','A3'] # D = [2,2,2] # C = [['A1','A2']] # S = [[['A1','A2'], ['A3']]] # H = {} # num_nodes = 3 HOSTCONF = '/usr/local/riaps/etc/r...
52.113208
478
0.538861
from z3 import * from ModelParser import ModelParser import argparse from configparser import ConfigParser import time from DeplGenerator import DeplGenerator # A = ['A1','A2','A3'] # D = [2,2,2] # C = [['A1','A2']] # S = [[['A1','A2'], ['A3']]] # H = {} # num_nodes = 3 HOSTCONF = '/usr/local/riaps/etc/r...
15,597
6
394
8dbb579a608c0e6cabd5b059b9d8539d9c061fa1
294
py
Python
app/api/api.py
ridhanf/python-fastapi-challenge
041a2156c222dbd84805d6b6ee1d9b88b8227db3
[ "MIT" ]
null
null
null
app/api/api.py
ridhanf/python-fastapi-challenge
041a2156c222dbd84805d6b6ee1d9b88b8227db3
[ "MIT" ]
null
null
null
app/api/api.py
ridhanf/python-fastapi-challenge
041a2156c222dbd84805d6b6ee1d9b88b8227db3
[ "MIT" ]
null
null
null
from fastapi import APIRouter from app.api.endpoints import user_controller, course_controller api_router = APIRouter() api_router.include_router(user_controller.router, prefix="/users", tags=["users"]) api_router.include_router(course_controller.router, prefix="/courses", tags=["courses"])
36.75
88
0.809524
from fastapi import APIRouter from app.api.endpoints import user_controller, course_controller api_router = APIRouter() api_router.include_router(user_controller.router, prefix="/users", tags=["users"]) api_router.include_router(course_controller.router, prefix="/courses", tags=["courses"])
0
0
0
992eab7cfe01a30b4028dd1e1fb01d94f6009d53
57
py
Python
Tkinter Library/test.py
ssergiuk/codes
ea1dea9cf3985228dacb02d31de01bc929fda939
[ "MIT" ]
null
null
null
Tkinter Library/test.py
ssergiuk/codes
ea1dea9cf3985228dacb02d31de01bc929fda939
[ "MIT" ]
null
null
null
Tkinter Library/test.py
ssergiuk/codes
ea1dea9cf3985228dacb02d31de01bc929fda939
[ "MIT" ]
null
null
null
from backend import * print(search(year = "1918"))
11.4
29
0.631579
from backend import * print(search(year = "1918"))
0
0
0
2b2b4802f14c5cec452653b92e08c2d93f4137e2
953
py
Python
tasks.py
xycfree/spot_trend_grid_web
261e66901ce98fe13fd8a01b96ae7a9771744278
[ "Apache-2.0" ]
4
2021-04-30T10:22:58.000Z
2021-09-16T10:11:23.000Z
tasks.py
xycfree/spot_trend_grid_web
261e66901ce98fe13fd8a01b96ae7a9771744278
[ "Apache-2.0" ]
1
2021-09-16T17:35:13.000Z
2021-09-16T17:35:13.000Z
tasks.py
xycfree/spot_trend_grid_web
261e66901ce98fe13fd8a01b96ae7a9771744278
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django import views from spot_trend_grid.views import SpotTrendGridView, logger, BatchOrderDetailView, BatchOrderView
27.228571
98
0.627492
# -*- coding: utf-8 -*- from django import views from spot_trend_grid.views import SpotTrendGridView, logger, BatchOrderDetailView, BatchOrderView class SpotTrendGridViews(views.View): def spot_start_run(self): logger.debug("趋势策略定时任务开始执行") try: SpotTrendGridView().loop_r...
729
48
161
7d5ec5be628fcb4db2f071463e7c659cd12f6ee7
701
py
Python
pyrevolve/build/sdf/battery.py
braj29/robo_swimmers
b3c3fa91976884095eb6b5e67844167598ec573d
[ "Apache-1.1" ]
24
2017-06-19T20:25:15.000Z
2022-01-03T16:27:34.000Z
pyrevolve/build/sdf/battery.py
Ravi-Bossema/revolve
46ece6f7dc137afcc0ddcde163ffcfe9548bd1ad
[ "Apache-1.1" ]
51
2016-04-19T16:01:34.000Z
2021-09-17T19:07:10.000Z
pyrevolve/build/sdf/battery.py
Ravi-Bossema/revolve
46ece6f7dc137afcc0ddcde163ffcfe9548bd1ad
[ "Apache-1.1" ]
37
2017-02-21T23:20:44.000Z
2022-01-18T16:40:17.000Z
from __future__ import absolute_import from pyrevolve.sdfbuilder import Element from pyrevolve.sdfbuilder.util import number_format as nf class BasicBattery(Element): """ The rv:battery element, to be included in a robot's plugin """ TAG_NAME = 'rv:battery' def __init__(self, level): """...
23.366667
73
0.620542
from __future__ import absolute_import from pyrevolve.sdfbuilder import Element from pyrevolve.sdfbuilder.util import number_format as nf class BasicBattery(Element): """ The rv:battery element, to be included in a robot's plugin """ TAG_NAME = 'rv:battery' def __init__(self, level): """...
0
0
0
350e538d008365e6784c812a01c6607d75ebaa48
116
py
Python
static_website_activitypub/__init__.py
ned14/hugo-activitypub
e5ee1225ace2691a710b736e29a808e1a0fe8005
[ "Apache-2.0" ]
17
2019-01-23T07:05:10.000Z
2021-10-17T07:06:04.000Z
static_website_activitypub/__init__.py
ned14/hugo-activitypub
e5ee1225ace2691a710b736e29a808e1a0fe8005
[ "Apache-2.0" ]
null
null
null
static_website_activitypub/__init__.py
ned14/hugo-activitypub
e5ee1225ace2691a710b736e29a808e1a0fe8005
[ "Apache-2.0" ]
null
null
null
from .cmd import main, version __version__ = version
23.2
34
0.706897
from .cmd import main, version __version__ = version def invoke_main(*args): return next(main(*args), None)
37
0
22
e04d0b8f0cf3c7d97f8345f26315c2cc9d35a3b6
1,510
py
Python
load_balance/decorators.py
kaikwb/load-balance
90cad93cabd777bdd0c55db945b26cce895c1ae5
[ "MIT" ]
null
null
null
load_balance/decorators.py
kaikwb/load-balance
90cad93cabd777bdd0c55db945b26cce895c1ae5
[ "MIT" ]
null
null
null
load_balance/decorators.py
kaikwb/load-balance
90cad93cabd777bdd0c55db945b26cce895c1ae5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import functools import inspect import typing as ty from .exceptions import InvalidArgumentValueException def validate_range(parameter: str, minimum: ty.Union[int, float], maximum: ty.Union[int, float]) -> ty.Callable: """ Validate a parameter range. Args: ...
29.038462
75
0.552318
#!/usr/bin/env python3 import functools import inspect import typing as ty from .exceptions import InvalidArgumentValueException def validate_range(parameter: str, minimum: ty.Union[int, float], maximum: ty.Union[int, float]) -> ty.Callable: """ Validate a parameter range. Args: ...
986
0
27
6d31838be1f74f3976e0e3798e6668779faf3482
1,510
py
Python
src/rpdk/core/submit.py
wbingli/cloudformation-cli
75a39cb7f73596f01ce04c85967dea74fe5a893d
[ "Apache-2.0" ]
200
2019-12-02T03:33:37.000Z
2022-03-31T21:50:23.000Z
src/rpdk/core/submit.py
wbingli/cloudformation-cli
75a39cb7f73596f01ce04c85967dea74fe5a893d
[ "Apache-2.0" ]
353
2019-11-26T20:20:56.000Z
2022-03-31T00:53:05.000Z
src/rpdk/core/submit.py
wbingli/cloudformation-cli
75a39cb7f73596f01ce04c85967dea74fe5a893d
[ "Apache-2.0" ]
110
2019-11-26T21:58:16.000Z
2022-03-26T19:02:11.000Z
"""This sub command uploads the resource type to CloudFormation. Projects can be created via the 'init' sub command. """ import logging from .project import Project LOG = logging.getLogger(__name__)
29.038462
88
0.660927
"""This sub command uploads the resource type to CloudFormation. Projects can be created via the 'init' sub command. """ import logging from .project import Project LOG = logging.getLogger(__name__) def submit(args): project = Project() project.load() project.submit( args.dry_run, args....
1,260
0
46
007058e50c3d63652db41001463200413a3da7c2
1,229
py
Python
inst/python/rpytools/output.py
Mormukut11/R-interface-to-Python
43664503884625f55cd4d452228a7a855ce86ce2
[ "Apache-2.0" ]
null
null
null
inst/python/rpytools/output.py
Mormukut11/R-interface-to-Python
43664503884625f55cd4d452228a7a855ce86ce2
[ "Apache-2.0" ]
null
null
null
inst/python/rpytools/output.py
Mormukut11/R-interface-to-Python
43664503884625f55cd4d452228a7a855ce86ce2
[ "Apache-2.0" ]
1
2019-12-16T13:09:28.000Z
2019-12-16T13:09:28.000Z
import sys try: from StringIO import StringIO except ImportError: from io import StringIO
17.811594
55
0.684296
import sys try: from StringIO import StringIO except ImportError: from io import StringIO def start_stdout_capture(): restore = sys.stdout sys.stdout = StringIO() return restore def end_stdout_capture(restore): output = sys.stdout.getvalue() sys.stdout.close() sys.stdout = restore return output de...
816
5
302
5d886668cc0d5c414da105213543034e5eaa528a
19
py
Python
iode/__init__.py
jugangdae/iode
47af56367e3dbc067314f0c566cd6fbbf8ed5c5e
[ "MIT" ]
null
null
null
iode/__init__.py
jugangdae/iode
47af56367e3dbc067314f0c566cd6fbbf8ed5c5e
[ "MIT" ]
null
null
null
iode/__init__.py
jugangdae/iode
47af56367e3dbc067314f0c566cd6fbbf8ed5c5e
[ "MIT" ]
null
null
null
from .iode import *
19
19
0.736842
from .iode import *
0
0
0
b4818ce695a52ff6cbc3f1cd492575e1570ecafd
105
py
Python
week1.py
alicia3106/csws-week1
3506e2bd288e1427e0a1b87dc25f1e5185a484bd
[ "Apache-2.0" ]
null
null
null
week1.py
alicia3106/csws-week1
3506e2bd288e1427e0a1b87dc25f1e5185a484bd
[ "Apache-2.0" ]
null
null
null
week1.py
alicia3106/csws-week1
3506e2bd288e1427e0a1b87dc25f1e5185a484bd
[ "Apache-2.0" ]
null
null
null
message = "Hello python world" print(message) message = "Hello python crash course world" print(message)
21
43
0.771429
message = "Hello python world" print(message) message = "Hello python crash course world" print(message)
0
0
0
9e9f2bd8f1745c93555461963f8bfcaa19749402
317
py
Python
packages/PIPS/validation/Transformations/pragma.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/PIPS/validation/Transformations/pragma.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/PIPS/validation/Transformations/pragma.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
from __future__ import with_statement # this is to work with python2.5 from pyps import workspace from os import remove import pypips filename="pragma" pypips.delete_workspace(filename) with workspace(filename+".c", parents=[], driver="sse", name=filename) as w: m=w[filename] m.suppress_dead_code() m.display()
24.384615
76
0.772871
from __future__ import with_statement # this is to work with python2.5 from pyps import workspace from os import remove import pypips filename="pragma" pypips.delete_workspace(filename) with workspace(filename+".c", parents=[], driver="sse", name=filename) as w: m=w[filename] m.suppress_dead_code() m.display()
0
0
0
c4ff67927f8cb153b6156d60713471bd0f4c2b5a
9,151
py
Python
run/php/projects/BLB/get.strongs.py
DataWar/-code-
b25a01d2ee34528880da464fec62c2fb3ed36ff4
[ "MIT" ]
null
null
null
run/php/projects/BLB/get.strongs.py
DataWar/-code-
b25a01d2ee34528880da464fec62c2fb3ed36ff4
[ "MIT" ]
null
null
null
run/php/projects/BLB/get.strongs.py
DataWar/-code-
b25a01d2ee34528880da464fec62c2fb3ed36ff4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import sys import os import time # stackoverflow.com/questions/230751/how-to-flush-output-of-print-function # https://opensource.com/article/19/7/parse-arguments-python options = getOptions() print(options) img_small = options.local + "small.png" # if it is cached, l...
27.730303
334
0.722107
#!/usr/bin/env python import argparse import sys import os import time # stackoverflow.com/questions/230751/how-to-flush-output-of-print-function # https://opensource.com/article/19/7/parse-arguments-python def getOptions(args=sys.argv[1:]): parser = argparse.ArgumentParser(description="Parses command.") pa...
654
0
44
e11a5f4db8ff10027a22b3aef00f0134729f3a35
1,068
py
Python
2021/3/main.py
scleond/advent-of-code
a91ebbcb8c36dd89a95a9ddbb0a07319b0e44247
[ "Unlicense" ]
null
null
null
2021/3/main.py
scleond/advent-of-code
a91ebbcb8c36dd89a95a9ddbb0a07319b0e44247
[ "Unlicense" ]
null
null
null
2021/3/main.py
scleond/advent-of-code
a91ebbcb8c36dd89a95a9ddbb0a07319b0e44247
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Dec 4 11:19:02 2021 @author: chris """ # part 1 with open('input.txt') as f: lines = f.read().splitlines() # doesn't read \n reportSum = [0] * len(lines[0]) gammaRateArray = [0] * len(lines[0]) epsilonRateArray = [0] * len(lines[0]) for line...
22.723404
66
0.539326
# -*- coding: utf-8 -*- """ Created on Sat Dec 4 11:19:02 2021 @author: chris """ # part 1 with open('input.txt') as f: lines = f.read().splitlines() # doesn't read \n reportSum = [0] * len(lines[0]) gammaRateArray = [0] * len(lines[0]) epsilonRateArray = [0] * len(lines[0]) for line...
0
0
0
66d246fe1950e294db439302240a2bb421a41938
570
py
Python
src/test/get_page.py
fmontoto/bot-valevista
c7cfd853cbdbd9971d6fbea93865e414b1f12e2a
[ "MIT" ]
null
null
null
src/test/get_page.py
fmontoto/bot-valevista
c7cfd853cbdbd9971d6fbea93865e414b1f12e2a
[ "MIT" ]
null
null
null
src/test/get_page.py
fmontoto/bot-valevista
c7cfd853cbdbd9971d6fbea93865e414b1f12e2a
[ "MIT" ]
null
null
null
"""Test call for testing web retrieve, don't call automatically, as it does a real http GET.""" import unittest from unittest import TestCase from src.utils import Rut from src import web class TestGetPage(TestCase): """Get a real page using dummy_rut.""" def test_client(self): """Simple get and pa...
23.75
77
0.685965
"""Test call for testing web retrieve, don't call automatically, as it does a real http GET.""" import unittest from unittest import TestCase from src.utils import Rut from src import web class TestGetPage(TestCase): """Get a real page using dummy_rut.""" def setUp(self): self.dummy_rut = Rut.build_...
48
0
26
09c07a9b8327b78a0ad1eb60246eb68124587791
2,303
py
Python
main.py
BenTimor/SerializationConceptSystem
0f85dc32063d270a5564cda3199d84d474e5d83e
[ "MIT" ]
1
2020-11-13T22:21:47.000Z
2020-11-13T22:21:47.000Z
main.py
BenTimor/SerializationConceptSystem
0f85dc32063d270a5564cda3199d84d474e5d83e
[ "MIT" ]
null
null
null
main.py
BenTimor/SerializationConceptSystem
0f85dc32063d270a5564cda3199d84d474e5d83e
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, make_response, redirect, url_for from blog import Config, User, Comment, Post app = Flask(__name__) @app.route("/", methods=["POST", "GET"]) @app.route("/admin", methods=["POST", "GET"]) if __name__ == "__main__": Config.setup() app.run(debug=True)
37.145161
106
0.65393
from flask import Flask, render_template, request, make_response, redirect, url_for from blog import Config, User, Comment, Post app = Flask(__name__) def login_or_register(): # If the request method is 'Get' it means that we're just requesting the page and not sending any form if request.method == "POST": ...
1,901
0
90
7213af397d0b6a86148b38681378ea59b6ac1d27
6,067
py
Python
tests/test_alpha_vantage_api.py
NeonJarbas/neon_api_proxy
aec750f393cf0fd7c8c01388cb6e0b23dc6197cf
[ "BSD-3-Clause" ]
null
null
null
tests/test_alpha_vantage_api.py
NeonJarbas/neon_api_proxy
aec750f393cf0fd7c8c01388cb6e0b23dc6197cf
[ "BSD-3-Clause" ]
8
2021-08-17T00:28:50.000Z
2022-03-29T07:06:18.000Z
tests/test_alpha_vantage_api.py
NeonJarbas/neon_api_proxy
aec750f393cf0fd7c8c01388cb6e0b23dc6197cf
[ "BSD-3-Clause" ]
2
2021-08-12T20:36:04.000Z
2022-02-15T01:40:01.000Z
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Development System # All trademark and other rights reserved by their respective owners # Copyright 2008-2021 Neongecko.com Inc. # BSD-3 # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fo...
43.335714
85
0.695896
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Development System # All trademark and other rights reserved by their respective owners # Copyright 2008-2021 Neongecko.com Inc. # BSD-3 # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fo...
3,535
445
23
432ae33aef58d69dd06c76f94265a28f42c013d1
3,896
py
Python
L1Trigger/L1THGCalUtilities/python/hgcalTriggerChains.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
1
2019-08-09T08:42:11.000Z
2019-08-09T08:42:11.000Z
L1Trigger/L1THGCalUtilities/python/hgcalTriggerChains.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1THGCalUtilities/python/hgcalTriggerChains.py
bisnupriyasahu/cmssw
6cf37ca459246525be0e8a6f5172c6123637d259
[ "Apache-2.0" ]
null
null
null
import FWCore.ParameterSet.Config as cms
48.7
100
0.656828
import FWCore.ParameterSet.Config as cms class HGCalTriggerChains: def __init__(self): self.vfe = {} self.concentrator = {} self.backend1 = {} self.backend2 = {} self.ntuple = {} self.chain = [] def register_vfe(self, name, generator): self.vfe[name] = g...
3,608
4
238
86cc5c6cf01ae027dc19d709e6e9f51e63c50a27
2,492
py
Python
models/GPND_ae.py
MPCAICDM/MPCA
c996435a0578ea4160f934bc01041c2ef23468f3
[ "MIT" ]
null
null
null
models/GPND_ae.py
MPCAICDM/MPCA
c996435a0578ea4160f934bc01041c2ef23468f3
[ "MIT" ]
null
null
null
models/GPND_ae.py
MPCAICDM/MPCA
c996435a0578ea4160f934bc01041c2ef23468f3
[ "MIT" ]
null
null
null
from functools import reduce from operator import mul from typing import Tuple import torch import torch.nn as nn import torch.nn.functional as F
33.675676
97
0.610754
from functools import reduce from operator import mul from typing import Tuple import torch import torch.nn as nn import torch.nn.functional as F class Encoder(nn.Module): def __init__(self, z_size, d=128, channels=1): super(Encoder, self).__init__() self.conv1_1 = nn.Conv2d(channels, d, 4, 2, 1) ...
2,024
13
305
624f246eb36fadd0f32835d24814330ec6e4c286
1,416
py
Python
setup.py
jean/plantuml-markdown
f897a6081017a44de0bcaa7e20b0dc388f6b4485
[ "BSD-2-Clause" ]
null
null
null
setup.py
jean/plantuml-markdown
f897a6081017a44de0bcaa7e20b0dc388f6b4485
[ "BSD-2-Clause" ]
null
null
null
setup.py
jean/plantuml-markdown
f897a6081017a44de0bcaa7e20b0dc388f6b4485
[ "BSD-2-Clause" ]
null
null
null
import setuptools from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md")) as f: long_description = f.read() with open(path.join(here, 'requirements.txt')) as f: install_requirements = f.read().splitlines() with open(path.join(here, 'test-requirements.txt')) a...
34.536585
75
0.680085
import setuptools from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md")) as f: long_description = f.read() with open(path.join(here, 'requirements.txt')) as f: install_requirements = f.read().splitlines() with open(path.join(here, 'test-requirements.txt')) a...
0
0
0
c4773bcd889523fd8593c3f90a74fa1be28b1529
366
py
Python
ledplex.py
rishaldyprisly/upy
24986011d82c598ae504c89680a5778b42a7e81f
[ "MIT" ]
null
null
null
ledplex.py
rishaldyprisly/upy
24986011d82c598ae504c89680a5778b42a7e81f
[ "MIT" ]
null
null
null
ledplex.py
rishaldyprisly/upy
24986011d82c598ae504c89680a5778b42a7e81f
[ "MIT" ]
null
null
null
import charlieplex from machine import Pin, I2C from time import sleep i2c = I2C(scl=Pin(22), sda=Pin(21)) display = charlieplex.Matrix(i2c) display.fill(0) x = 0 y = 0 while True: display.pixel(y, x, 255) x += 1 print(x, y) if( x > 7): x = 0 y += 1 if(y>7): display.fill(...
16.636364
36
0.530055
import charlieplex from machine import Pin, I2C from time import sleep i2c = I2C(scl=Pin(22), sda=Pin(21)) display = charlieplex.Matrix(i2c) display.fill(0) x = 0 y = 0 while True: display.pixel(y, x, 255) x += 1 print(x, y) if( x > 7): x = 0 y += 1 if(y>7): display.fill(...
0
0
0
80a1275c5893b3dd18615e4e4f6863e6e4a396a3
2,288
py
Python
mecabpy/test/test_ipa/test_node.py
unaguna/serval-chat
76d441a78573b066343073d60b27006bddd906d9
[ "MIT" ]
null
null
null
mecabpy/test/test_ipa/test_node.py
unaguna/serval-chat
76d441a78573b066343073d60b27006bddd906d9
[ "MIT" ]
null
null
null
mecabpy/test/test_ipa/test_node.py
unaguna/serval-chat
76d441a78573b066343073d60b27006bddd906d9
[ "MIT" ]
null
null
null
import MeCab import mecabpy import mecabpy.ipa class TestNode: """mecabpy.ipa.Node のテスト """ INPUT_TEXT = '太郎はこの本を田中を見た女性に渡した。' def test_attr_surface(self): """NodeWrapper.surface のテスト """ surface = '見' node = mecabpy.ipa.Node(surface=surface, ...
37.508197
98
0.399476
import MeCab import mecabpy import mecabpy.ipa class TestNode: """mecabpy.ipa.Node のテスト """ INPUT_TEXT = '太郎はこの本を田中を見た女性に渡した。' def test_attr_surface(self): """NodeWrapper.surface のテスト """ surface = '見' node = mecabpy.ipa.Node(surface=surface, ...
326
0
27
7515dbca5a2d3801a5c3c5fd4fd17591e3f8cae3
4,087
py
Python
projects_in_python/CS5001/bullsAndCows/test_bulls_n_cows.py
xhusser1/schoolProjects
d1165fdb35e69a9504c5f47fcac3c48c74d866b9
[ "MIT" ]
null
null
null
projects_in_python/CS5001/bullsAndCows/test_bulls_n_cows.py
xhusser1/schoolProjects
d1165fdb35e69a9504c5f47fcac3c48c74d866b9
[ "MIT" ]
null
null
null
projects_in_python/CS5001/bullsAndCows/test_bulls_n_cows.py
xhusser1/schoolProjects
d1165fdb35e69a9504c5f47fcac3c48c74d866b9
[ "MIT" ]
null
null
null
from bulls_n_cows import* TEST_GUESSES = [[1,2, 3, 4], [5, 2, 3, 4], [7, 6, 5, 4], [0, 9, 8, 5], [2, 4, 6, 8], [1, 3, 5, 7], [1, 2, 0, 9] ] TEST_SECRET = [[1,9,8, 7],[2,4,6, 7], [1,2,0, 9],[7,6,5, 4]] def test_count_bulls_and_cows(): ''' Function test_count_bulls_and_cows Input: None. ...
38.556604
78
0.61561
from bulls_n_cows import* TEST_GUESSES = [[1,2, 3, 4], [5, 2, 3, 4], [7, 6, 5, 4], [0, 9, 8, 5], [2, 4, 6, 8], [1, 3, 5, 7], [1, 2, 0, 9] ] TEST_SECRET = [[1,9,8, 7],[2,4,6, 7], [1,2,0, 9],[7,6,5, 4]] def test_count_bulls_and_cows(): ''' Function test_count_bulls_and_cows Input: None. ...
344
0
27
e5afcaf73eee26b665a2379bae43be5ddcea8f9c
784
py
Python
solving/dynamic/maxarraysum.py
williamlagos/chess
7470479e352bf6fa28215e745af8c42dc20d7a1f
[ "MIT" ]
null
null
null
solving/dynamic/maxarraysum.py
williamlagos/chess
7470479e352bf6fa28215e745af8c42dc20d7a1f
[ "MIT" ]
4
2020-04-23T23:17:54.000Z
2021-07-06T17:44:45.000Z
solving/dynamic/maxarraysum.py
williamlagos/chess
7470479e352bf6fa28215e745af8c42dc20d7a1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math import os import random import re import sys # Complete the maxSubsetSum function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') n = int(input()) arr = list(map(int, input().rstrip().split())) res = maxSubsetSum(arr) fptr.write(str...
24.5
73
0.640306
#!/usr/bin/env python3 import math import os import random import re import sys # Complete the maxSubsetSum function below. def maxSubsetSum(arr): including = 0 excluding = 0 for item in arr: # Current max excluding item new_excluding = excluding if excluding > including else includ...
410
0
23
e069a1fcd03860cfe8ce5e858e636a3d45cbe7f8
243
py
Python
ems/algorithms/hospital_selectors/hospital_selector.py
EMSTrack/Algorithms
139160619a935001582a60d3f43c0e33082bce99
[ "BSD-3-Clause" ]
1
2020-07-15T00:16:48.000Z
2020-07-15T00:16:48.000Z
ems/algorithms/hospital_selectors/hospital_selector.py
EMSTrack/Algorithms
139160619a935001582a60d3f43c0e33082bce99
[ "BSD-3-Clause" ]
40
2018-12-06T23:13:52.000Z
2019-07-11T01:24:13.000Z
ems/algorithms/hospital_selectors/hospital_selector.py
EMSTrack/Algorithms
139160619a935001582a60d3f43c0e33082bce99
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from ems.models.ambulances.ambulance import Ambulance
20.25
53
0.683128
from datetime import datetime from ems.models.ambulances.ambulance import Ambulance class HospitalSelector: def select(self, timestamp: datetime, ambulance: Ambulance): raise NotImplementedError()
105
2
50
9a65bd386263b7548bec9e3e4caddbba1d2ef72d
96
py
Python
mobile_auth/apps.py
Kgosi-Motlogelwa/django_mobile_auth
c803477069975507f5a4d0d3a66d8e3a8831b3a9
[ "MIT" ]
5
2018-04-20T07:39:50.000Z
2021-03-04T07:14:48.000Z
mobile_auth/apps.py
Kgosi-Motlogelwa/django_mobile_auth
c803477069975507f5a4d0d3a66d8e3a8831b3a9
[ "MIT" ]
1
2020-06-24T04:45:48.000Z
2020-06-24T04:45:48.000Z
mobile_auth/apps.py
Kgosi-Motlogelwa/django_mobile_auth
c803477069975507f5a4d0d3a66d8e3a8831b3a9
[ "MIT" ]
3
2020-05-26T00:07:10.000Z
2020-10-26T14:45:53.000Z
from django.apps import AppConfig
16
34
0.770833
from django.apps import AppConfig class MobileAuthConfig(AppConfig): name = 'mobile_auth'
0
38
23
86025513073bbd583b38ab9b0144162a56204089
1,712
py
Python
venv/lib/python3.9/site-packages/pendulum/lang/fo.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
venv/lib/python3.9/site-packages/pendulum/lang/fo.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
venv/lib/python3.9/site-packages/pendulum/lang/fo.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
# -*- coding: utf-8 -*- translations = { # Days 'days': { 0: 'sunnudagur', 1: 'mánadagur', 2: 'týsdagur', 3: 'mikudagur', 4: 'hósdagur', 5: 'fríggjadagur', 6: 'leygardagur' }, 'days_abbrev': { 0: 'sun', 1: 'mán', 2: 'týs', ...
20.878049
53
0.390771
# -*- coding: utf-8 -*- translations = { # Days 'days': { 0: 'sunnudagur', 1: 'mánadagur', 2: 'týsdagur', 3: 'mikudagur', 4: 'hósdagur', 5: 'fríggjadagur', 6: 'leygardagur' }, 'days_abbrev': { 0: 'sun', 1: 'mán', 2: 'týs', ...
0
0
0
4773bfcdcb6926ef4713931c494292b64f9253e8
4,041
py
Python
databench/cli.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
databench/cli.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
databench/cli.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Databench command line executable. Run to create a server that serves the analyses pages and runs the python backend.""" import os import sys import signal import random import logging import argparse import werkzeug.serving from . import __version__ as DATABENCH_VERSION def main(): ""...
36.080357
76
0.624103
#!/usr/bin/env python """Databench command line executable. Run to create a server that serves the analyses pages and runs the python backend.""" import os import sys import signal import random import logging import argparse import werkzeug.serving from . import __version__ as DATABENCH_VERSION def main(): ""...
254
0
52
be72c5163f7d5a2340ca95999805965b35464eac
1,164
py
Python
setup.py
RedFT/hexy
f218c051b24e1e5b694aeb2f454b17e1ffbde3f1
[ "MIT" ]
null
null
null
setup.py
RedFT/hexy
f218c051b24e1e5b694aeb2f454b17e1ffbde3f1
[ "MIT" ]
null
null
null
setup.py
RedFT/hexy
f218c051b24e1e5b694aeb2f454b17e1ffbde3f1
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name = 'Hexy', packages = ['hexy'], version = '1.4.4', license='MIT', description = 'A library that makes working with a hexagonal lattice easier.', author = 'Norbu Tsering', author_email = 'norbu.tsering.cs@gmail.com'...
33.257143
83
0.535223
from distutils.core import setup setup( name = 'Hexy', packages = ['hexy'], version = '1.4.4', license='MIT', description = 'A library that makes working with a hexagonal lattice easier.', author = 'Norbu Tsering', author_email = 'norbu.tsering.cs@gmail.com'...
0
0
0
4ef5eb72d6b88f68c782553cb4b8500dc3909479
2,379
py
Python
python/federatedml/nn/backend/pytorch/optimizer.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
3,787
2019-08-30T04:55:10.000Z
2022-03-31T23:30:07.000Z
python/federatedml/nn/backend/pytorch/optimizer.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
1,439
2019-08-29T16:35:52.000Z
2022-03-31T11:55:31.000Z
python/federatedml/nn/backend/pytorch/optimizer.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
1,179
2019-08-29T16:18:32.000Z
2022-03-31T12:55:38.000Z
# Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.041667
94
0.701135
# Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
1,396
84
115
dcf64358b55f2e831059cf099d91dde604f41be3
8,124
py
Python
src/StubLibrary/statistic.py
ravihuang/robotframework-stublibrary
1639ce903bede7ee91d6a6d4ed110c64bbc487ab
[ "Apache-2.0" ]
null
null
null
src/StubLibrary/statistic.py
ravihuang/robotframework-stublibrary
1639ce903bede7ee91d6a6d4ed110c64bbc487ab
[ "Apache-2.0" ]
1
2019-07-29T13:57:08.000Z
2019-07-30T13:20:14.000Z
src/StubLibrary/statistic.py
ravihuang/robotframework-stublibrary
1639ce903bede7ee91d6a6d4ed110c64bbc487ab
[ "Apache-2.0" ]
null
null
null
import json import re
40.824121
120
0.622723
import json import re class RequestedParams: def __init__(self, cookies, body, content_type, files, headers, query_params): self.cookies = cookies self.body = body self.content_type = content_type self.files = files self.headers = headers ...
7,284
685
128
58ca55a8b3be3e80a093ff0f7f1b4489ee1389ff
2,899
py
Python
consensus/apps/user/rest_api/views.py
sam212kh/Application-consensus-1
0e8e65cc57867048beaf61f622bf695e3cedff99
[ "MIT" ]
null
null
null
consensus/apps/user/rest_api/views.py
sam212kh/Application-consensus-1
0e8e65cc57867048beaf61f622bf695e3cedff99
[ "MIT" ]
null
null
null
consensus/apps/user/rest_api/views.py
sam212kh/Application-consensus-1
0e8e65cc57867048beaf61f622bf695e3cedff99
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse from djoser.serializers import UserSerializer from rest_framework import viewsets, permissions, status from rest_framework.decorators import action from rest_framework.response import Response from djoser.views import SetPa...
38.144737
109
0.671266
from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse from djoser.serializers import UserSerializer from rest_framework import viewsets, permissions, status from rest_framework.decorators import action from rest_framework.response import Response from djoser.views import SetPa...
773
1,596
72
20355127e5d4dbc688ecdd03b5a39de30c984e35
3,121
py
Python
icc.modelstudio/setup.py
NGS-ISC/model-studio
22f1a0d0577f868ad650777a465f5da3b7958396
[ "Apache-2.0" ]
null
null
null
icc.modelstudio/setup.py
NGS-ISC/model-studio
22f1a0d0577f868ad650777a465f5da3b7958396
[ "Apache-2.0" ]
null
null
null
icc.modelstudio/setup.py
NGS-ISC/model-studio
22f1a0d0577f868ad650777a465f5da3b7958396
[ "Apache-2.0" ]
null
null
null
# This is your "setup.py" file. # See the following sites for general guide to Python packaging: # * `The Hitchhiker's Guide to Packaging <http://guide.python-distribute.org/>`_ # * `Python Project Howto <http://infinitemonkeycorps.net/docs/pph/>`_ from setuptools import setup, find_packages import sys, os #from C...
32.175258
85
0.662288
# This is your "setup.py" file. # See the following sites for general guide to Python packaging: # * `The Hitchhiker's Guide to Packaging <http://guide.python-distribute.org/>`_ # * `Python Project Howto <http://infinitemonkeycorps.net/docs/pph/>`_ from setuptools import setup, find_packages import sys, os #from C...
0
0
0
00037c73bfc3e38848d6d35fa92da50a5124b004
514
py
Python
snippets/2_transforms/rotate.py
nst/PyCairoVisualDoc
5b0457f33ef20a9e0a7db6d38c2f749822c0c7f4
[ "MIT" ]
6
2019-02-18T08:10:53.000Z
2022-01-23T09:39:49.000Z
snippets/2_transforms/rotate.py
nst/PyCairoVisualDoc
5b0457f33ef20a9e0a7db6d38c2f749822c0c7f4
[ "MIT" ]
null
null
null
snippets/2_transforms/rotate.py
nst/PyCairoVisualDoc
5b0457f33ef20a9e0a7db6d38c2f749822c0c7f4
[ "MIT" ]
null
null
null
import cairo import math
18.357143
64
0.593385
import cairo import math def draw_png_rotate(filename): surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, 512, 300) c = cairo.Context(surface) c.set_source_rgb(1,1,1) c.paint() c.set_source_rgb(0,0,0) c.save() c.translate(50, 50) c.rectangle(0, 0, 250, 150) c.stroke...
466
0
23
11a7b2bbd435b5a25fc2453ee739f54355e1843d
2,737
py
Python
stringbit.py
Exxuslee/sha256
68ad35525eabe2ec25ae65f4124bce6e34b04967
[ "MIT" ]
null
null
null
stringbit.py
Exxuslee/sha256
68ad35525eabe2ec25ae65f4124bce6e34b04967
[ "MIT" ]
null
null
null
stringbit.py
Exxuslee/sha256
68ad35525eabe2ec25ae65f4124bce6e34b04967
[ "MIT" ]
null
null
null
#import math import os w1 = [0]*64 s0 = [0]*64 s1 = [0]*64 for i in range (64): w1[i] = [0]*32 s0[i] = [0]*32 s1[i] = [0]*32 w1hex= [0x0000c020, 0x8e195e82, 0x5806a5ac, 0x9467a653, 0x00fe9de6, 0xf0c34b81, 0x6f230600, 0x00000000, 0x00000000, 0x364c0811, 0x8ea34017, 0xb68edc07, 0x9dd9e834, 0xfbf4c...
23.393162
135
0.436609
#import math import os w1 = [0]*64 s0 = [0]*64 s1 = [0]*64 for i in range (64): w1[i] = [0]*32 s0[i] = [0]*32 s1[i] = [0]*32 w1hex= [0x0000c020, 0x8e195e82, 0x5806a5ac, 0x9467a653, 0x00fe9de6, 0xf0c34b81, 0x6f230600, 0x00000000, 0x00000000, 0x364c0811, 0x8ea34017, 0xb68edc07, 0x9dd9e834, 0xfbf4c...
488
0
345
83ffc5713854064dc7e0b3f6bcf8514b1efcdf9a
2,369
py
Python
submissions/Colburn/myCSPs.py
LukeLT255/aima-python
aa79b0f3db54764052de2559d1d1530b17e61312
[ "MIT" ]
null
null
null
submissions/Colburn/myCSPs.py
LukeLT255/aima-python
aa79b0f3db54764052de2559d1d1530b17e61312
[ "MIT" ]
null
null
null
submissions/Colburn/myCSPs.py
LukeLT255/aima-python
aa79b0f3db54764052de2559d1d1530b17e61312
[ "MIT" ]
1
2018-08-23T19:27:23.000Z
2018-08-23T19:27:23.000Z
import csp rgb = ['R', 'G', 'B','O']#,'White','Gray','Y','Purple','Brown','seafoam','T','Kale'] d2 = { 'A' : rgb, 'B' : rgb, 'C' : ['R'], 'D' : rgb,} domains = { 'SW': ['G'], 'SE': rgb, 'L': rgb, 'EE': rgb, 'W': rgb, 'WM': rgb, 'EM': rgb, 'NW': rgb, 'YH': rgb, 'NE': rgb, ...
22.140187
84
0.456733
import csp rgb = ['R', 'G', 'B','O']#,'White','Gray','Y','Purple','Brown','seafoam','T','Kale'] d2 = { 'A' : rgb, 'B' : rgb, 'C' : ['R'], 'D' : rgb,} domains = { 'SW': ['G'], 'SE': rgb, 'L': rgb, 'EE': rgb, 'W': rgb, 'WM': rgb, 'EM': rgb, 'NW': rgb, 'YH': rgb, 'NE': rgb, ...
149
0
23
f0aa16fa68bab37dc7509384e60eb0ef6def2019
868
py
Python
weatherApi.py
sairam1318/GUI
bd1892a2162993129008fccae0bfccfc11a90f2d
[ "Unlicense" ]
null
null
null
weatherApi.py
sairam1318/GUI
bd1892a2162993129008fccae0bfccfc11a90f2d
[ "Unlicense" ]
null
null
null
weatherApi.py
sairam1318/GUI
bd1892a2162993129008fccae0bfccfc11a90f2d
[ "Unlicense" ]
null
null
null
"""GUI for weather report api """ from tkinter import * import json import requests root = Tk() root.title("Temperature Finder") root.geometry('500x300') root.minsize(150, 150) root.maxsize(1200, 1200) city = Label(text = "Enter a city name to check Temperature: ") cityValue = StringVar() #type of data userEntry ...
29.931034
150
0.693548
"""GUI for weather report api """ from tkinter import * import json import requests def getTemperature(): getReq = requests.get('http://api.openweathermap.org/data/2.5/weather?q=' + userEntry.get() + '&appid=5c89bf395effa277f54aaad228fb81e3&units=metric') getReq_dict = getReq.json() data = "Temperature of " + str(...
357
0
22
de14ffaa31c53a560fa65c555d1949d71a04f45f
937
py
Python
Day 1/Puzzle 2.py
rookuu/AdventOfCode-2015
b94e98f5711d0901412b22342395457a8185bc10
[ "MIT" ]
null
null
null
Day 1/Puzzle 2.py
rookuu/AdventOfCode-2015
b94e98f5711d0901412b22342395457a8185bc10
[ "MIT" ]
null
null
null
Day 1/Puzzle 2.py
rookuu/AdventOfCode-2015
b94e98f5711d0901412b22342395457a8185bc10
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Solution to Day 1 - Puzzle 2 of the Advent Of Code 2015 series of challenges. --- Day 1: Not Quite Lisp --- An opening parenthesis represents an increase in floor and a closing parenthesis represents a decrease in floor. After taking a 7000 character long input string of assorted parenthesi...
25.324324
116
0.661686
#!/usr/bin/env python """ Solution to Day 1 - Puzzle 2 of the Advent Of Code 2015 series of challenges. --- Day 1: Not Quite Lisp --- An opening parenthesis represents an increase in floor and a closing parenthesis represents a decrease in floor. After taking a 7000 character long input string of assorted parenthesi...
0
0
0
a6b48704b98c4da0f085d5ffc3ab02719b31f423
2,072
py
Python
shadowproxy/proxies/aead/server.py
sanshengshi/shadowproxy
28d66ff0803734528301d74d10bd1b2492a4b63f
[ "MIT" ]
1
2019-06-13T17:54:41.000Z
2019-06-13T17:54:41.000Z
shadowproxy/proxies/aead/server.py
sanshengshi/shadowproxy
28d66ff0803734528301d74d10bd1b2492a4b63f
[ "MIT" ]
null
null
null
shadowproxy/proxies/aead/server.py
sanshengshi/shadowproxy
28d66ff0803734528301d74d10bd1b2492a4b63f
[ "MIT" ]
null
null
null
from ... import gvars from .parser import aead_reader from ..base.server import ProxyBase from ..shadowsocks.parser import addr_reader
32.375
75
0.594112
from ... import gvars from .parser import aead_reader from ..base.server import ProxyBase from ..shadowsocks.parser import addr_reader class AEADProxy(ProxyBase): proto = "AEAD" def __init__(self, cipher, bind_addr, via=None, plugin=None, **kwargs): self.cipher = cipher self.bind_addr = bind_...
1,780
133
23
6ca759080a912548446a6b6900634e8696b3753e
1,151
py
Python
python/task-of-pairing.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
21
2015-02-09T18:08:38.000Z
2021-11-08T15:00:48.000Z
python/task-of-pairing.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
7
2020-04-12T23:00:19.000Z
2021-01-30T23:44:24.000Z
python/task-of-pairing.py
gajubadge11/hackerrank-3
132a5019b7ed21507bb95b5063fa66c446b0eff7
[ "MIT" ]
27
2015-07-22T18:08:12.000Z
2022-02-28T19:50:26.000Z
#!/bin/python3 import math import os import random import re import sys # NOTE: This only passes the first three test cases. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') freq_count = int(input().strip()) freq = [] for _ in range(freq_count): freq_item = int(inpu...
22.134615
57
0.601216
#!/bin/python3 import math import os import random import re import sys # NOTE: This only passes the first three test cases. def taskOfPairing(freq): total = number_of_identical_pairs(freq) total += number_of_off_by_one_pairs(freq) return total def number_of_identical_pairs(freq): pairs = [] for...
631
0
68
b94c29b0ecf81aeded292726e39a4eb08fad02b2
10,377
py
Python
rrc_example_package/benchmark_rrc/python/cic/bayesian_opt/eval_code.py
wq13552463699/TriFinger_Research
6ddfab4531cb4ba05a0fbb41227a734295dce378
[ "BSD-3-Clause" ]
12
2021-05-06T18:00:21.000Z
2022-01-11T14:23:22.000Z
rrc_example_package/benchmark_rrc/python/cic/bayesian_opt/eval_code.py
wq13552463699/TriFinger_Research
6ddfab4531cb4ba05a0fbb41227a734295dce378
[ "BSD-3-Clause" ]
3
2021-06-03T16:06:01.000Z
2021-08-15T13:40:09.000Z
rrc_example_package/benchmark_rrc/python/cic/bayesian_opt/eval_code.py
wq13552463699/TriFinger_Research
6ddfab4531cb4ba05a0fbb41227a734295dce378
[ "BSD-3-Clause" ]
4
2021-05-12T02:34:34.000Z
2021-07-18T19:54:50.000Z
""" Bayesian Optimization experiment runner. Relies heavily on BoTorch. """ import os import logging import matplotlib.pyplot as plt import numpy as np import torch import sys # sys.path.append("../") import pickle as pkl from tqdm import tqdm import shutil from distutils.spawn import find_executable from utils.fu...
31.929231
163
0.626385
""" Bayesian Optimization experiment runner. Relies heavily on BoTorch. """ import os import logging import matplotlib.pyplot as plt import numpy as np import torch import sys # sys.path.append("../") import pickle as pkl from tqdm import tqdm import shutil from distutils.spawn import find_executable from utils.fu...
7,383
0
276
7375460754ca7d42306fba1e00be4a1e7269433b
4,026
py
Python
places/views.py
acdh-oeaw/totetiroler
64d361d05eaa8b8513fce9d47eab3655257135a6
[ "MIT" ]
null
null
null
places/views.py
acdh-oeaw/totetiroler
64d361d05eaa8b8513fce9d47eab3655257135a6
[ "MIT" ]
null
null
null
places/views.py
acdh-oeaw/totetiroler
64d361d05eaa8b8513fce9d47eab3655257135a6
[ "MIT" ]
null
null
null
import requests import json from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.shortcuts import render, redirect, get_object_or_404 from django.views import generic from django.views.generic.edit import DeleteView from django.core.urlresolvers impo...
32.731707
98
0.669151
import requests import json from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.shortcuts import render, redirect, get_object_or_404 from django.views import generic from django.views.generic.edit import DeleteView from django.core.urlresolvers impo...
2,642
698
180
7df7d356da1641f7a415acb77141aca46a0e1334
3,821
py
Python
datasets/data_getter.py
pgruening/dl_bio_example
7af124df5b2dd4e6cc63d90f4e75680a187fc98c
[ "MIT" ]
1
2021-12-09T15:17:39.000Z
2021-12-09T15:17:39.000Z
datasets/data_getter.py
pgruening/dl_bio_example
7af124df5b2dd4e6cc63d90f4e75680a187fc98c
[ "MIT" ]
2
2020-11-07T11:24:29.000Z
2020-12-06T20:10:31.000Z
datasets/data_getter.py
pgruening/dl_bio_example
7af124df5b2dd4e6cc63d90f4e75680a187fc98c
[ "MIT" ]
3
2020-10-09T08:48:39.000Z
2021-01-14T16:36:17.000Z
""" # data_getter The data getter manages the initialization of different torch DataLoaders. A dataloader is essentially an Iterable that can be called in a for-loop. A typical training step could for example look like this: data_loaders = data_getter.get_data_loaders(...) for sample in data_loader['train']: imag...
41.532609
150
0.703742
""" # data_getter The data getter manages the initialization of different torch DataLoaders. A dataloader is essentially an Iterable that can be called in a for-loop. A typical training step could for example look like this: data_loaders = data_getter.get_data_loaders(...) for sample in data_loader['train']: imag...
1,212
0
23
4ef2cdc5779f504fd515a387ebea6bcf4d39e387
2,080
py
Python
tests/integration_tests/events_tests/computers_tests/test_recompute_segment_segment_segment_circle_event.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
tests/integration_tests/events_tests/computers_tests/test_recompute_segment_segment_segment_circle_event.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
tests/integration_tests/events_tests/computers_tests/test_recompute_segment_segment_segment_circle_event.py
lycantropos/voronoi
977e0b3e5eff2dd294e2e6ce1a8030c763e86233
[ "MIT" ]
null
null
null
import pytest from _voronoi import recompute_segment_segment_segment_circle_event as bound from hypothesis import given from tests.integration_tests.hints import (BoundPortedCircleEventsPair, BoundPortedSiteEventsPair) from tests.integration_tests.utils import are_bound_porte...
47.272727
78
0.727885
import pytest from _voronoi import recompute_segment_segment_segment_circle_event as bound from hypothesis import given from tests.integration_tests.hints import (BoundPortedCircleEventsPair, BoundPortedSiteEventsPair) from tests.integration_tests.utils import are_bound_porte...
1,382
0
22
5ffc486464df362fefe028354f670f716cd3a9eb
10,655
py
Python
archive/classification/compare_clusters2.py
bernhardtj/DetectorChar
be9fffc0a56c9c8848c67917a839d743a0380ce2
[ "MIT" ]
null
null
null
archive/classification/compare_clusters2.py
bernhardtj/DetectorChar
be9fffc0a56c9c8848c67917a839d743a0380ce2
[ "MIT" ]
null
null
null
archive/classification/compare_clusters2.py
bernhardtj/DetectorChar
be9fffc0a56c9c8848c67917a839d743a0380ce2
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' This script reads in seismic noise data from March 2017 and earthquake data. It shifts the data by time for clustering It creates a list of earthquake times in March when the peak ground motion is greater than a certain amount. It clusters earthquake channels using kmeans and dbscan. It compa...
37.125436
147
0.653965
#!/usr/bin/env python ''' This script reads in seismic noise data from March 2017 and earthquake data. It shifts the data by time for clustering It creates a list of earthquake times in March when the peak ground motion is greater than a certain amount. It clusters earthquake channels using kmeans and dbscan. It compa...
0
0
0
488ab890c5c4fef73dd3bf44853f22b7636e640b
3,347
py
Python
api/migrations/0001_initial.py
d2verb/firmflaws
2ac5dd9fcde46a24b70cdd402af371e2b2f93445
[ "Beerware" ]
null
null
null
api/migrations/0001_initial.py
d2verb/firmflaws
2ac5dd9fcde46a24b70cdd402af371e2b2f93445
[ "Beerware" ]
null
null
null
api/migrations/0001_initial.py
d2verb/firmflaws
2ac5dd9fcde46a24b70cdd402af371e2b2f93445
[ "Beerware" ]
null
null
null
# Generated by Django 3.0 on 2019-12-13 16:34 from django.db import migrations, models import django.db.models.deletion
44.626667
137
0.568569
# Generated by Django 3.0 on 2019-12-13 16:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='BrandModel', fields=[ ...
0
3,202
23
17f9652dc7e758a93380b2b383c1258f794a1c43
3,060
py
Python
Ar_Script/ar_303_测试_获取app信息并且检查包名(其林).py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
Ar_Script/ar_303_测试_获取app信息并且检查包名(其林).py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
1
2020-01-19T01:19:57.000Z
2020-01-19T01:19:57.000Z
Ar_Script/ar_303_测试_获取app信息并且检查包名(其林).py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
import os import subprocess import time import easygui as g import re import requests from selenium import webdriver if __name__ == '__main__': filePath, packageName, lanuchableActivity = getPackagInfo() handle = uninstallApp(packageName) uninstallApp(handle) judgeRunning(handle) print('%s 卸载...
28.333333
142
0.635948
import os import subprocess import time import easygui as g import re import requests from selenium import webdriver def getPackagInfo(): msg = '请选择你要检查的apk安装包' title = '文件选择' default = "*.apk" filePath = g.fileopenbox(msg=msg, title=title, default=default) if ' ' in filePath: os.rename...
2,468
0
115
281f8a6bee10ae2272f3431c8080c5e565fc110a
6,417
py
Python
code/words_perturbation/perturbation.py
JeyDi/Mispelling
e2a91178707532f4b00949bbf37fcd17671f1a08
[ "MIT" ]
1
2019-03-19T23:08:58.000Z
2019-03-19T23:08:58.000Z
code/words_perturbation/perturbation.py
JeyDi/Mispelling
e2a91178707532f4b00949bbf37fcd17671f1a08
[ "MIT" ]
null
null
null
code/words_perturbation/perturbation.py
JeyDi/Mispelling
e2a91178707532f4b00949bbf37fcd17671f1a08
[ "MIT" ]
null
null
null
import os import re import math import random import sys import json import itertools from random import randint from string import ascii_letters from os import path, listdir from configparser import ConfigParser pathname = os.path.dirname(sys.argv[0]) config = ConfigParser() config.read( pathname + '/config.in...
34.132979
152
0.66355
import os import re import math import random import sys import json import itertools from random import randint from string import ascii_letters from os import path, listdir from configparser import ConfigParser pathname = os.path.dirname(sys.argv[0]) config = ConfigParser() config.read( pathname + '/config.in...
5,042
0
159
425fbdb1d73449faaa78f36eccc4823595c54c82
16,273
py
Python
tools/perf-scale-workload/query_executer.py
NeoWu1216/amazon-timestream-tools
dd2a5c8814f438693b44a62f38398e96e8a71429
[ "MIT-0" ]
null
null
null
tools/perf-scale-workload/query_executer.py
NeoWu1216/amazon-timestream-tools
dd2a5c8814f438693b44a62f38398e96e8a71429
[ "MIT-0" ]
1
2021-07-01T03:15:19.000Z
2021-07-01T03:15:19.000Z
tools/perf-scale-workload/query_executer.py
NeoWu1216/amazon-timestream-tools
dd2a5c8814f438693b44a62f38398e96e8a71429
[ "MIT-0" ]
null
null
null
import numpy as np from scipy.stats import gmean from collections import namedtuple import threading import multiprocessing import configparser import timestreamquery as tsquery import os from timeit import default_timer as timer from query_execution_utils import executeQueryInstance, Query import sys, traceback import...
43.862534
276
0.615129
import numpy as np from scipy.stats import gmean from collections import namedtuple import threading import multiprocessing import configparser import timestreamquery as tsquery import os from timeit import default_timer as timer from query_execution_utils import executeQueryInstance, Query import sys, traceback import...
14,094
59
395
0ae91f4747e3ad31c4871f6cc1a4d025b2ec0a6d
3,374
py
Python
mlinsights/search_rank/search_engine_predictions.py
sdpython/mlinsights
bae59cda775a69bcce83b16b88df2f34a092cb60
[ "MIT" ]
48
2017-11-19T14:59:41.000Z
2022-03-03T15:50:24.000Z
mlinsights/search_rank/search_engine_predictions.py
sdpython/mlinsights
bae59cda775a69bcce83b16b88df2f34a092cb60
[ "MIT" ]
87
2017-11-20T00:10:32.000Z
2021-11-20T01:48:09.000Z
mlinsights/search_rank/search_engine_predictions.py
sdpython/mlinsights
bae59cda775a69bcce83b16b88df2f34a092cb60
[ "MIT" ]
12
2019-05-09T07:45:52.000Z
2021-06-28T06:55:53.000Z
""" @file @brief Implements a way to get close examples based on the output of a machine learned model. """ from ..mlmodel import model_featurizer from ..helpers.parameters import format_function_call from .search_engine_vectors import SearchEngineVectors class SearchEnginePredictions(SearchEngineVectors): """ ...
37.076923
84
0.570243
""" @file @brief Implements a way to get close examples based on the output of a machine learned model. """ from ..mlmodel import model_featurizer from ..helpers.parameters import format_function_call from .search_engine_vectors import SearchEngineVectors class SearchEnginePredictions(SearchEngineVectors): """ ...
0
0
0
7196985cb32aa0817350e88277d40a7cd4d5247e
3,514
py
Python
MethodOne/voting.py
rogeroyer/2019-CCF-BDCI-Finance-Information-Negative-Judgment
06e0582b06f99ce3348ad91ea687ab3e9a0cf363
[ "MIT" ]
30
2020-02-28T13:33:09.000Z
2021-09-30T08:21:26.000Z
MethodOne/voting.py
williamjiamin/2019-CCF-BDCI-Finance-Information-Negative-Judgment
06e0582b06f99ce3348ad91ea687ab3e9a0cf363
[ "MIT" ]
1
2020-07-23T07:20:08.000Z
2020-07-24T13:29:58.000Z
MethodOne/voting.py
williamjiamin/2019-CCF-BDCI-Finance-Information-Negative-Judgment
06e0582b06f99ce3348ad91ea687ab3e9a0cf363
[ "MIT" ]
21
2020-03-18T14:43:53.000Z
2022-03-09T08:34:12.000Z
import os import numpy as np import pandas as pd from collections import Counter sub_path = 'sub/' teamates = os.listdir(sub_path) data = pd.read_csv('./single/robertawmmlarge_result_mean.csv', encoding='utf-8').rename(columns={'negative': 'negative_1', 'key_entity': 'key_entity_1'}) index = 2 for member in teamates...
30.293103
153
0.594479
import os import numpy as np import pandas as pd from collections import Counter sub_path = 'sub/' teamates = os.listdir(sub_path) data = pd.read_csv('./single/robertawmmlarge_result_mean.csv', encoding='utf-8').rename(columns={'negative': 'negative_1', 'key_entity': 'key_entity_1'}) index = 2 for member in teamates...
480
0
45
e92321d46cfb00448eca9f9a237edc09c24840b1
718
py
Python
chatette_qiu/adapters/factory.py
fanfanfeng/Chatette
dc88ab195876c6d3ed2e02c2e0005f47bee5ff26
[ "MIT" ]
null
null
null
chatette_qiu/adapters/factory.py
fanfanfeng/Chatette
dc88ab195876c6d3ed2e02c2e0005f47bee5ff26
[ "MIT" ]
null
null
null
chatette_qiu/adapters/factory.py
fanfanfeng/Chatette
dc88ab195876c6d3ed2e02c2e0005f47bee5ff26
[ "MIT" ]
null
null
null
""" Module `chatette_qiu.adapters.factory`. Defines a factory method that allows to create an adapter from a string name. """ from chatette_qiu.adapters.jsonl import JsonListAdapter from chatette_qiu.adapters.rasa import RasaAdapter def create_adapter(adapter_name): """ Instantiate an adapter and returns it ...
28.72
81
0.697772
""" Module `chatette_qiu.adapters.factory`. Defines a factory method that allows to create an adapter from a string name. """ from chatette_qiu.adapters.jsonl import JsonListAdapter from chatette_qiu.adapters.rasa import RasaAdapter def create_adapter(adapter_name): """ Instantiate an adapter and returns it ...
0
0
0
9ecadc0d9aadc241ff77a2e03364560acc855ef8
13,146
py
Python
tests/test_cli.py
RoyalTS/great_expectations
5ce4d499da2301d0c0497b243813a349837e95d7
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
RoyalTS/great_expectations
5ce4d499da2301d0c0497b243813a349837e95d7
[ "Apache-2.0" ]
null
null
null
tests/test_cli.py
RoyalTS/great_expectations
5ce4d499da2301d0c0497b243813a349837e95d7
[ "Apache-2.0" ]
1
2022-02-10T04:20:37.000Z
2022-02-10T04:20:37.000Z
# Since our cli produces unicode output, but we want tests in python2 as well from __future__ import unicode_literals from datetime import datetime from click.testing import CliRunner import great_expectations.version from great_expectations.cli import cli import tempfile import pytest import json import os import shu...
37.346591
115
0.646813
# Since our cli produces unicode output, but we want tests in python2 as well from __future__ import unicode_literals from datetime import datetime from click.testing import CliRunner import great_expectations.version from great_expectations.cli import cli import tempfile import pytest import json import os import shu...
12,067
0
299