hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
a35e6e841d261fd60759e6dd545e889c2b1e5cd5
724
py
Python
examples/search/test_select.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
1
2021-07-19T19:21:30.000Z
2021-07-19T19:21:30.000Z
examples/search/test_select.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
null
null
null
examples/search/test_select.py
VkoHov/aim
92567b48437a8c71b4bde3b034fc0e5c61479cf9
[ "Apache-2.0" ]
null
null
null
from pprint import pprint from aim.engine.repo.repo import AimRepo from aim.ql.grammar.statement import Statement if __name__ == '__main__': repo = AimRepo.get_working_repo(mode='r') query = 'metric_2, metric ' \ ' if experiment in (test_metrics, test_metrics_2)' \ ' and context.foo ...
27.846154
77
0.694751
from pprint import pprint from aim.engine.repo.repo import AimRepo from aim.ql.grammar.statement import Statement if __name__ == '__main__': repo = AimRepo.get_working_repo(mode='r') query = 'metric_2, metric ' \ ' if experiment in (test_metrics, test_metrics_2)' \ ' and context.foo ...
0
0
0
0
0
0
0
0
0
db7f763b164a8cbaa2e9c017c953ccbf5a22dc54
1,558
py
Python
synthesis/schemes.py
AryaGuo/cadical
159af5b21fbe090e5c1514d7659d2bee92b3402a
[ "MIT" ]
null
null
null
synthesis/schemes.py
AryaGuo/cadical
159af5b21fbe090e5c1514d7659d2bee92b3402a
[ "MIT" ]
null
null
null
synthesis/schemes.py
AryaGuo/cadical
159af5b21fbe090e5c1514d7659d2bee92b3402a
[ "MIT" ]
null
null
null
static = """ bumped = lhs; """ inc = """ bumped = lhs + 1; """ sum = """ bumped = lhs + i; """ vsids = """ if (i % 256 == 0) unbumped = lhs * 0.5; bumped = lhs + 1; """ nvsids = """ unbumped = 0.8 * lhs; bumped = lhs + (1 - 0.8); ""...
19
50
0.332478
static = """ bumped = lhs; """ inc = """ bumped = lhs + 1; """ sum = """ bumped = lhs + i; """ vsids = """ if (i % 256 == 0) unbumped = lhs * 0.5; bumped = lhs + 1; """ nvsids = """ unbumped = 0.8 * lhs; bumped = lhs + (1 - 0.8); ""...
0
0
0
0
0
0
0
0
0
fa9449adbef94e9bb707a78df5b363148f9431ed
2,848
py
Python
plugins/chapiv1rpc/plugin.py
hussamnasir/geni-ch
b6626a14e95768ba33bbc1faca9e4e74b0040920
[ "MIT" ]
3
2015-05-01T12:48:35.000Z
2017-02-25T07:13:07.000Z
plugins/chapiv1rpc/plugin.py
GENI-NSF/geni-ch
184909ef656976071fd891091caeaf892c99deb1
[ "MIT" ]
466
2015-05-20T03:49:54.000Z
2020-03-18T23:09:52.000Z
plugins/chapiv1rpc/plugin.py
hussamnasir/geni-ch
b6626a14e95768ba33bbc1faca9e4e74b0040920
[ "MIT" ]
6
2015-05-06T13:44:13.000Z
2017-07-12T17:57:17.000Z
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
41.275362
80
0.721208
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
0
0
0
0
0
1,284
0
191
156
f2d07ec872be66cc3029d7de191b5b45afa75f3f
126
py
Python
prebuild/jupyter-caf-kernel/jupyter_caf_kernel/__main__.py
sourceryinstitute/jupyter-CAF-kernel
d09464d7c02107d6e9779962619d70a11011d32d
[ "MIT" ]
57
2017-06-16T00:00:24.000Z
2022-02-13T02:30:59.000Z
prebuild/jupyter-caf-kernel/jupyter_caf_kernel/__main__.py
ZhouHaoNB/jupyterNotebookDemo
95617939032acfd0e4cdbc2dfa9330ac00208993
[ "MIT" ]
5
2017-09-06T16:22:39.000Z
2022-01-24T04:40:42.000Z
prebuild/jupyter-caf-kernel/jupyter_caf_kernel/__main__.py
ZhouHaoNB/jupyterNotebookDemo
95617939032acfd0e4cdbc2dfa9330ac00208993
[ "MIT" ]
12
2017-09-07T13:56:12.000Z
2022-01-24T19:03:53.000Z
from ipykernel.kernelapp import IPKernelApp from .kernel import CafKernel IPKernelApp.launch_instance(kernel_class=CafKernel)
31.5
51
0.880952
from ipykernel.kernelapp import IPKernelApp from .kernel import CafKernel IPKernelApp.launch_instance(kernel_class=CafKernel)
0
0
0
0
0
0
0
0
0
d8fafb6d3549e32565c848e9e2929c33a9f792f0
757
py
Python
kalite_gtk/validators.py
benjaoming/ka-lite-gtk
cb1a50de14036dee5a8376200d5030ccc8adc85a
[ "BSD-3-Clause" ]
null
null
null
kalite_gtk/validators.py
benjaoming/ka-lite-gtk
cb1a50de14036dee5a8376200d5030ccc8adc85a
[ "BSD-3-Clause" ]
null
null
null
kalite_gtk/validators.py
benjaoming/ka-lite-gtk
cb1a50de14036dee5a8376200d5030ccc8adc85a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from __future__ import unicode_literals def validator(func): """ :param: none_if_invalid """ return inline
18.463415
68
0.628798
from __future__ import print_function from __future__ import unicode_literals import pwd from .exceptions import ValidationError def validator(func): """ :param: none_if_invalid """ def inline(value, none_if_invalid=False): try: return func(value) except ValidationError: ...
0
292
0
0
0
174
0
7
118
cb6fc2d5b8cc0b56144338d4343e72000c5f7406
9,384
py
Python
texttab/table.py
owenjklan/texttab
4023d83bfcc888d7758290b43193ff65f99607b2
[ "MIT" ]
null
null
null
texttab/table.py
owenjklan/texttab
4023d83bfcc888d7758290b43193ff65f99607b2
[ "MIT" ]
null
null
null
texttab/table.py
owenjklan/texttab
4023d83bfcc888d7758290b43193ff65f99607b2
[ "MIT" ]
null
null
null
""" Basic text-based table classes """ import texttab.const as const
34.755556
90
0.568201
""" Basic text-based table classes """ import texttab.const as const from texttab.const import FG_COLOURS, BG_COLOURS class BasicTable(object): def __init__(self, columns=None, border="single", fg=None, bg=None, head_fg=None, head_bg=None): self.__col_width_calculated = False sel...
0
0
0
9,242
0
0
0
27
45
d53a81dd7fcd89c5c93df491d0187257115cbd95
375
py
Python
tests/test/algorithms/generate/SvSequence/init/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
10
2020-06-28T11:16:36.000Z
2021-08-09T21:41:43.000Z
tests/test/algorithms/generate/SvSequence/init/test.py
Bestfast/reamberPy
91b76ca6adf11fbe8b7cee7c186481776a4d7aaa
[ "MIT" ]
35
2020-06-18T13:05:50.000Z
2022-02-18T10:13:35.000Z
tests/test/algorithms/generate/SvSequence/init/test.py
Eve-ning/reamber_base_py
6d19c84f2c110b60e633b82b73e0516396466f56
[ "MIT" ]
2
2021-05-26T17:05:06.000Z
2021-06-12T18:42:13.000Z
import unittest if __name__ == '__main__': unittest.main()
23.4375
108
0.672
import unittest from reamber.algorithms.generate.sv.SvSequence import SvSequence, SvObj class TestInit(unittest.TestCase): def testMixed(self): # Quick Init Mixed seq = SvSequence([100, (200, 2.0, True), (400, 3.0), SvObj(offset=800, multiplier=5.0, fixed=True)]) self.assertEqual(len(seq...
0
0
0
213
0
0
0
50
46
4d6e20b9ad85e5fe59e0cba3ab46e4ac51cfcaac
322
py
Python
ToDoList/base/migrations/0007_remove_task_attach.py
ColonelAVP/deploy-todoapp
dbc69caf4f1013dbeae2321131874b5f2800d8c0
[ "MIT" ]
null
null
null
ToDoList/base/migrations/0007_remove_task_attach.py
ColonelAVP/deploy-todoapp
dbc69caf4f1013dbeae2321131874b5f2800d8c0
[ "MIT" ]
1
2021-09-08T04:37:47.000Z
2021-09-08T04:37:47.000Z
ToDoList/base/migrations/0007_remove_task_attach.py
ColonelAVP/deploy-todoapp
dbc69caf4f1013dbeae2321131874b5f2800d8c0
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-22 07:57
17.888889
47
0.583851
# Generated by Django 3.2.6 on 2021-08-22 07:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('base', '0006_alter_task_attach'), ] operations = [ migrations.RemoveField( model_name='task', name='attach', ), ...
0
0
0
216
0
0
0
11
46
e637633f62a266bc0417e5e116dc2b719ed36608
1,204
py
Python
jsb/drivers/xmpp/presence.py
NURDspace/jsonbot
400dce602700a93db80e10707c3785a0fbdfaaeb
[ "MIT" ]
1
2019-04-12T12:20:12.000Z
2019-04-12T12:20:12.000Z
jsb/drivers/xmpp/presence.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
null
null
null
jsb/drivers/xmpp/presence.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
# jsb/socklib/xmpp/presence.py # # """ Presence. """ # jsb imports ## basic imports ## classes
25.617021
59
0.615449
# jsb/socklib/xmpp/presence.py # # """ Presence. """ # jsb imports from jsb.lib.eventbase import EventBase from jsb.utils.trace import whichmodule from jsb.lib.gozerevent import GozerEvent ## basic imports import time import logging ## classes class Presence(GozerEvent): def __init__(self, nodedict={}): ...
0
0
0
930
0
0
0
39
136
4481eba33e7ae47cea7908ddf8c5d0895aa4d9e4
4,688
py
Python
game-hub/old/logic.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
game-hub/old/logic.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
game-hub/old/logic.py
Yadkee/orphans
1208a9cbd95ca7608da9855b27d717beaff1711e
[ "MIT" ]
null
null
null
#! python3 KING_CACHE = [king_moves(i) for i in range(64)] NIGHT_CACHE = [night_moves(i) for i in range(64)] VERTICAL_CACHE = [vertical_moves(i) for i in range(64)] DIAGONAL_CACHE = [diagonal_moves(i) for i in range(64)] if __name__ == "__main__": from main import run run()
30.640523
77
0.505546
#! python3 from itertools import chain def king_moves(pos): r, c = divmod(pos, 8) zip1 = zip((-8, 0, 8), (r, 1, r < 7)) zip2 = list(zip((-1, 0, 1), (c, 1, c < 7))) return set(pos + v + h for v, c1 in zip1 if c1 for h, c2 in zip2 if c2 and v | h) KING_CACHE = [king_moves(i) for i in rang...
0
0
0
0
0
4,112
0
6
275
4c1d135f78a90fd8a65cc2450bd4360f76646306
88
py
Python
enthought/chaco/scales/scales.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/chaco/scales/scales.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/chaco/scales/scales.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import
22
38
0.829545
# proxy module from __future__ import absolute_import from chaco.scales.scales import *
0
0
0
0
0
0
0
12
22
5abd4486a8a894952fa08fa385535ce633878115
4,109
py
Python
construct_editor/gallery/test_renamed.py
0rShemesh/construct-editor
a4deb9d9f09cc1045a2613d838b2aadca002815e
[ "MIT" ]
7
2021-04-07T07:05:27.000Z
2022-03-06T18:51:08.000Z
construct_editor/gallery/test_renamed.py
0rShemesh/construct-editor
a4deb9d9f09cc1045a2613d838b2aadca002815e
[ "MIT" ]
11
2021-04-15T17:18:43.000Z
2022-03-13T10:06:10.000Z
construct_editor/gallery/test_renamed.py
0rShemesh/construct-editor
a4deb9d9f09cc1045a2613d838b2aadca002815e
[ "MIT" ]
2
2021-04-15T12:05:48.000Z
2022-03-04T02:22:54.000Z
import construct_typed as cst from . import GalleryItem constr = "renamed_test" / cst.DataclassStruct(RenamedTest) gallery_item = GalleryItem( construct=constr, example_binarys={ "Zeros": bytes(constr.sizeof()), }, )
100.219512
599
0.767827
import construct as cs import construct_typed as cst import dataclasses import typing as t from . import GalleryItem @dataclasses.dataclass class RenamedTest(cst.DataclassMixin): doc: int = cst.csfield(cs.Int8sb, doc="This is a one line documentation") doc_multiline: int = cst.csfield( cs.Int8sb, ...
0
3,785
0
0
0
0
0
-5
89
ecba3d88769bba171987d4bc34b4172c00a4ebd0
20
py
Python
venv/Lib/site-packages/msgpack/_version.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/thirdparty/pythonpkgs/msgpack/msgpack_0.5.1/lib/python2.7/site-packages/msgpack/_version.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/thirdparty/pythonpkgs/msgpack/msgpack_0.5.1/lib/python2.7/site-packages/msgpack/_version.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
version = (0, 5, 1)
10
19
0.5
version = (0, 5, 1)
0
0
0
0
0
0
0
0
0
f628b85403016be53fcd174e44902a498a1ce7a2
2,067
py
Python
ml_studio/services/singleton.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
1
2020-01-30T09:37:00.000Z
2020-01-30T09:37:00.000Z
ml_studio/services/singleton.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
3
2019-12-05T19:37:59.000Z
2020-03-31T05:49:53.000Z
ml_studio/services/singleton.py
john-james-ai/ml-studio
2230fcd6579d2291c761e559ec93b18ddd7a96e6
[ "BSD-3-Clause" ]
null
null
null
# =========================================================================== # # SINGLETON METACLASS # # =========================================================================== # # =========================================================================== # ...
60.794118
81
0.323174
# =========================================================================== # # SINGLETON METACLASS # # =========================================================================== # # =========================================================================== # ...
0
0
0
80
0
0
0
0
22
91c375086ee21ffdb11087ed49c11dd22753cd12
9,149
py
Python
envi/archs/arm/const.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-12T03:50:06.000Z
2017-11-12T03:50:06.000Z
envi/archs/arm/const.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
envi/archs/arm/const.py
mubix/vivisect
2900c0bf59838cb9fc398a8668f76f887b7f54e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
MODE_ARM = 0 MODE_THUMB = 1 MODE_JAZELLE = 2 #IFLAGS - keep bottom 8-bits for cross-platform flags like envi.IF_NOFALL and envi.IF_BRFALL IF_PSR_S = 1<<32 # This DP instruciton can update CPSR IF_B = 1<<33 # Byte IF_H = 1<<35 # HalfWord IF_S = 1<<36 # Signed IF_...
38.766949
139
0.662805
MODE_ARM = 0 MODE_THUMB = 1 MODE_JAZELLE = 2 #IFLAGS - keep bottom 8-bits for cross-platform flags like envi.IF_NOFALL and envi.IF_BRFALL IF_PSR_S = 1<<32 # This DP instruciton can update CPSR IF_B = 1<<33 # Byte IF_H = 1<<35 # HalfWord IF_S = 1<<36 # Signed IF_...
0
0
0
0
0
45
0
0
23
01105065ebbe254a725234433c75363f3d9ba456
1,078
py
Python
app/flags/migrations/0059_auto_20211008_1432.py
baikov/allflags
3fd28255b3616a6d4342cd9b735ec7cca52f6e63
[ "MIT" ]
null
null
null
app/flags/migrations/0059_auto_20211008_1432.py
baikov/allflags
3fd28255b3616a6d4342cd9b735ec7cca52f6e63
[ "MIT" ]
null
null
null
app/flags/migrations/0059_auto_20211008_1432.py
baikov/allflags
3fd28255b3616a6d4342cd9b735ec7cca52f6e63
[ "MIT" ]
null
null
null
# Generated by Django 3.1.8 on 2021-10-08 11:32
27.641026
58
0.577922
# Generated by Django 3.1.8 on 2021-10-08 11:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flags', '0058_auto_20211008_0005'), ] operations = [ migrations.AlterField( model_name='colorgroup', name='created_d...
0
0
0
964
0
0
0
19
46
37fc33c3b3205946ecccf7722aabf506ae3c9899
160
py
Python
grage/maintenance/admin.py
hashlash/grage
cf6d2abfa94fab9fca4b0fb0e5bb3d83e4641dc3
[ "MIT" ]
null
null
null
grage/maintenance/admin.py
hashlash/grage
cf6d2abfa94fab9fca4b0fb0e5bb3d83e4641dc3
[ "MIT" ]
null
null
null
grage/maintenance/admin.py
hashlash/grage
cf6d2abfa94fab9fca4b0fb0e5bb3d83e4641dc3
[ "MIT" ]
null
null
null
from django.contrib import admin from grage.maintenance.models import Maintenance, MaintenanceItem admin.site.register([ Maintenance, MaintenanceItem, ])
20
65
0.80625
from django.contrib import admin from grage.maintenance.models import Maintenance, MaintenanceItem admin.site.register([ Maintenance, MaintenanceItem, ])
0
0
0
0
0
0
0
0
0
58f3e44e42996bfc3dd046731d739697f0cd4722
45,242
py
Python
scri/waveform_base.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
scri/waveform_base.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
scri/waveform_base.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Michael Boyle # See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE> def waveform_alterations(func): """Temporarily increment history depth safely This decorator stores the value of `self.__history_depth__`, then increments it by 1, calls the function, r...
43.376798
120
0.617435
# Copyright (c) 2015, Michael Boyle # See LICENSE file for details: <https://github.com/moble/scri/blob/master/LICENSE> import os import inspect import functools import warnings import socket import datetime import pprint import copy import numpy as np import quaternion import scipy.constants as spc from scipy.interpo...
0
18,495
0
24,996
0
82
0
-47
429
2ceadf6ade8334f195bbc851d64332c677c13a1b
5,618
py
Python
testdata/PyFEM-master/pyfem/elements/SLS.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
3
2021-01-28T17:40:50.000Z
2021-10-05T17:48:32.000Z
testdata/PyFEM-master/pyfem/elements/SLS.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
1
2021-07-04T14:38:48.000Z
2021-07-04T14:38:48.000Z
testdata/PyFEM-master/pyfem/elements/SLS.py
Konstantin8105/py4go
7c9f3cf0d939ad94d13abe109d15c885ca849cda
[ "MIT" ]
2
2021-07-11T12:51:08.000Z
2021-10-05T17:48:44.000Z
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
38.217687
82
0.452118
############################################################################ # This Python file is part of PyFEM, the code that accompanies the book: # # # # 'Non-Linear Finite Element Analysis of Solids and Structures' # # R. ...
0
0
0
3,084
0
0
0
224
190
ef6350216b9dbe430ff24393e0bcc1974ca87c7f
5,700
py
Python
pysnmp/CISCO-XGCP-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-XGCP-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-XGCP-CAPABILITY.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-XGCP-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-XGCP-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 18:05:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
95
523
0.769123
# # PySNMP MIB module CISCO-XGCP-CAPABILITY (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-XGCP-CAPABILITY # Produced by pysmi-0.3.4 at Mon Apr 29 18:05:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
0
0
0
0
0
0
0
0
0
4609b1247cb76847644fca695eccc65dd6ac5a43
7,520
py
Python
src/oci/core/models/update_instance_pool_placement_configuration_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/update_instance_pool_placement_configuration_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/update_instance_pool_placement_configuration_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
38.762887
245
0.712633
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
0
6,989
0
0
0
0
0
105
82
a4dee7cfc6e6834be2a51c1b22acc2d8b4dfad06
2,041
py
Python
circle_core/cli/debug.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
3
2019-01-11T04:30:18.000Z
2019-01-11T04:31:18.000Z
circle_core/cli/debug.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
16
2018-11-21T11:47:18.000Z
2021-09-01T03:52:35.000Z
circle_core/cli/debug.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CLI debug commands.""" # system module from typing import TYPE_CHECKING # community module if TYPE_CHECKING:
24.890244
108
0.681529
# -*- coding: utf-8 -*- """CLI debug commands.""" # system module import math import time from typing import TYPE_CHECKING from uuid import UUID # community module import click from dateutil import parser from circle_core.timed_db import TimedDBBundle if TYPE_CHECKING: from typing import List, Tuple @click.g...
9
1,656
0
0
0
0
0
11
229
188d5261333fb138b4e3b96bb1812ccf54b78631
4,953
py
Python
cf_sample_gen.py
BrandonPacewic/CodeForcesSampleGen
6c01c00610d645331aea1473d07e69cadce58b47
[ "MIT" ]
null
null
null
cf_sample_gen.py
BrandonPacewic/CodeForcesSampleGen
6c01c00610d645331aea1473d07e69cadce58b47
[ "MIT" ]
null
null
null
cf_sample_gen.py
BrandonPacewic/CodeForcesSampleGen
6c01c00610d645331aea1473d07e69cadce58b47
[ "MIT" ]
null
null
null
#!/usr/bin/python3 TEMPLATE = 'template.cc' LANGUAGE = 'C++17' SAMPLE_INPUT = 'input' SAMPLE_OUTPUT = 'output' MY_OUTPUT = 'my_output' VERSION = 'CodeForces Parser v1.5.1: Modified by Brandon' RED_F = '\033[31m' GREEN_F = '\033[32m' BOLD = '\033[1m' NORM = '\033[0m' if __name__ == '__main__': main()
31.954839
124
0.585908
#!/usr/bin/python3 from urllib.request import urlopen from html.parser import HTMLParser from subprocess import call from functools import partial, wraps from typing import Any, List, Tuple import re import argparse import platform TEMPLATE = 'template.cc' LANGUAGE = 'C++17' SAMPLE_INPUT = 'input' SAMPLE_OUTPUT = ...
0
0
0
2,897
0
1,407
0
37
294
7a66e46a70be98f183970aa96afb84d331508fff
3,601
py
Python
techminer2/clean_keywords.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
techminer2/clean_keywords.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
techminer2/clean_keywords.py
jdvelasq/techminer-api
d2bb7d20c326f2fe7cc06d7005dfb3f2053ea1da
[ "MIT" ]
null
null
null
""" Clean Keywords =============================================================================== Cleans the keywords columns using the file keywords.txt, located in the same directory as the documents.csv file. >>> from techminer2 import * >>> directory = "/workspaces/techminer2/data/" >>> clean_keywords(directory...
34.625
87
0.601777
""" Clean Keywords =============================================================================== Cleans the keywords columns using the file keywords.txt, located in the same directory as the documents.csv file. >>> from techminer2 import * >>> directory = "/workspaces/techminer2/data/" >>> clean_keywords(directory...
0
0
0
0
0
0
0
0
0
d2f3104cd66f758e12788f8effed5519bfd97655
5,569
py
Python
allauth/socialaccount/providers/apple/tests.py
321core/django-allauth
60c30bd3373d650fb1453002490bdd69511317b8
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/apple/tests.py
321core/django-allauth
60c30bd3373d650fb1453002490bdd69511317b8
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/apple/tests.py
321core/django-allauth
60c30bd3373d650fb1453002490bdd69511317b8
[ "MIT" ]
null
null
null
import json import jwt # Generated on https://mkjwk.org/, used to sign and verify the apple id_token TESTING_JWT_KEYSET = { "p": ( "4ADzS5jKx_kdQihyOocVS0Qwwo7m0f7Ow56EadySJ-cmnwoHHF3AxgRaq-h-KwybSphv" "dc-X7NbS79-b9dumHKyt1MeVLAsDZD1a-uQCEneY1g9LsQkscNr7OggcpvMg5UUFwv6A" "kavu8cB0iyhNdha...
35.025157
78
0.66511
import json from datetime import datetime, timedelta from django.urls import reverse import jwt from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import AppleProvider # Generated on https://mkjwk.org/, used to sign and verify the apple id_to...
0
0
0
2,344
0
0
0
107
136
87ee50adf3b57dbd9a36484ebfc4b7b5ebace2e7
3,602
py
Python
cli/quicklinks.py
4shub/quicklinks
c8b6a3de7237e7775ad7ad4552821bd6e8326f6e
[ "MIT" ]
2
2019-03-06T07:53:03.000Z
2019-03-06T20:51:13.000Z
cli/quicklinks.py
4shub/quicklinks
c8b6a3de7237e7775ad7ad4552821bd6e8326f6e
[ "MIT" ]
3
2019-04-08T03:30:48.000Z
2019-04-08T05:38:39.000Z
cli/quicklinks.py
4shub/quicklinks
c8b6a3de7237e7775ad7ad4552821bd6e8326f6e
[ "MIT" ]
1
2019-04-05T04:48:54.000Z
2019-04-05T04:48:54.000Z
import sys import os import api def open_existing_link(search_key): """ Opens a link given particular key :param search_key: key to search in the quicklinks file :return: """ did_succeed = api.search_for_value(search_key, open_link) if not did_succeed: raise ValueError('''No ...
25.188811
140
0.621877
import webbrowser import sys import os import os.path import api def check_for_invalid_index(arg_index, error_message=''): if len(sys.argv) <= arg_index: if error_message: print(error_message) else: print('You are missing an argument') exit(0) def check_if_quickl...
0
0
0
0
0
2,793
0
-11
186
9777308f17cc1e98e814b32c08e4cbe031293b2c
646
py
Python
export_model_weights.py
kkleidal/kens_tf_utils
b650475bceec4221044dabc9a2c219bf281672d0
[ "MIT" ]
1
2019-02-19T16:09:56.000Z
2019-02-19T16:09:56.000Z
export_model_weights.py
kkleidal/kens_tf_utils
b650475bceec4221044dabc9a2c219bf281672d0
[ "MIT" ]
null
null
null
export_model_weights.py
kkleidal/kens_tf_utils
b650475bceec4221044dabc9a2c219bf281672d0
[ "MIT" ]
2
2018-05-28T15:49:01.000Z
2021-02-09T13:12:14.000Z
#!/usr/bin/env python3 import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='Export tensorflow variables from checkpoint to numpy file') parser.add_argument('logdir', metavar='TF_LOGDIR', type=str, help='the tensorflow log directory to import the lates...
40.375
109
0.674923
#!/usr/bin/env python3 from model_weights import * import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description='Export tensorflow variables from checkpoint to numpy file') parser.add_argument('logdir', metavar='TF_LOGDIR', type=str, help='the tensorflow log ...
0
0
0
0
0
0
0
6
23
683ef35c10f5ecc3ac9619e4bd454e519622ddd4
6,675
py
Python
tests/test_rule.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
tests/test_rule.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
tests/test_rule.py
A-kirami/nonebot2
a77664297de435c8ffb119bf3b9f864e0759ff8e
[ "MIT" ]
null
null
null
# TODO: shell command # TODO: regex
29.932735
75
0.638951
from typing import Tuple, Union import pytest from nonebug import App from utils import make_fake_event, make_fake_message @pytest.mark.asyncio async def test_rule(app: App): from nonebot.rule import Rule from nonebot.exception import SkippedException async def falsy(): return False async ...
0
6,343
0
0
0
0
0
35
251
511ecbe4d033a46ba8557de0f323b1e246ed708a
45
py
Python
mix_gamma/example2.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
mix_gamma/example2.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
mix_gamma/example2.py
TomiBelan/multiparser
d23ee69c0771d2b0f899d1cc88bde16aa22f7a9f
[ "Apache-2.0" ]
null
null
null
print(@@calc1+2*@@python3+@@lua4@@@@@@@@@)
11.25
42
0.488889
print(@@calc1+2*@@python3+@@lua4@@@@@@@@@)
0
0
0
0
0
0
0
0
0
d9f59eee5965bb0537a8e2cfd0a5d77b76c8ec0b
3,362
py
Python
src/save_filepath_label.py
yogeshk4/EduMeet
b86dfbe525a2f4da6946d8684816333cdda6654b
[ "MIT" ]
8
2021-02-18T02:55:07.000Z
2021-12-21T15:31:36.000Z
src/save_filepath_label.py
yogeshkamat181/user-engagement-recognition
b86dfbe525a2f4da6946d8684816333cdda6654b
[ "MIT" ]
1
2022-03-19T06:01:17.000Z
2022-03-19T06:01:17.000Z
src/save_filepath_label.py
yogeshkamat181/user-engagement-recognition
b86dfbe525a2f4da6946d8684816333cdda6654b
[ "MIT" ]
3
2021-03-12T03:48:24.000Z
2022-01-30T19:39:40.000Z
import argparse from pathlib import Path import pandas as pd import numpy as np from progressbar import ProgressBar def save_filepath_label(usage, frame_dir, label_dir, out_dir): """ Save filepaths of all the frames and their respective output label as numpy array. Namely this numpy array's would be ...
39.093023
77
0.65586
import argparse from pathlib import Path import pandas as pd import numpy as np from progressbar import ProgressBar def save_filepath_label(usage, frame_dir, label_dir, out_dir): """ Save filepaths of all the frames and their respective output label as numpy array. Namely this numpy array's would be ...
0
0
0
0
0
0
0
0
0
35088cfad7a99be913a3aa1f4c02435d1712cc31
1,681
py
Python
scripts/reformat_tab.py
lascivaroma/PaPie
260440d0ad27a853350bdc4cf2a77d1655e231f8
[ "MIT" ]
16
2019-01-17T08:15:41.000Z
2021-11-12T15:17:41.000Z
scripts/reformat_tab.py
lascivaroma/PaPie
260440d0ad27a853350bdc4cf2a77d1655e231f8
[ "MIT" ]
64
2018-12-16T14:52:51.000Z
2021-05-20T07:58:40.000Z
scripts/reformat_tab.py
datatjej/pie
0ca4311a57b2439994e5fcdc02f4d008ee268a9c
[ "MIT" ]
4
2019-03-29T14:35:02.000Z
2021-05-19T13:31:48.000Z
import os ORIGINAL_TASK_ORDER = ('lemma', 'pos', 'morph') EMPTY = '_' if __name__ == '__main__': dirpath = 'datasets/capitula_classic/' all_tasks = get_all_tasks(dirpath) all_tasks = list(all_tasks) print(all_tasks) for f in os.listdir(dirpath): print("Processing file: ", f) ...
27.557377
87
0.552647
import os import collections ORIGINAL_TASK_ORDER = ('lemma', 'pos', 'morph') EMPTY = '_' def parse_morph(line): output = {} for field in line.split('|'): try: k, v = field.split('=') output[k] = v except ValueError: pass return output def get_all_ta...
0
0
0
0
0
1,201
0
-3
91
b2f8299978ff83882c505e793cdb20649dbd59d3
1,943
py
Python
dns-amplification.py
venkat-abhi/network-attacks
56a9251a6e413c1b377c793526f8d99e328854a0
[ "Apache-2.0" ]
1
2020-11-13T04:50:45.000Z
2020-11-13T04:50:45.000Z
dns-amplification.py
venkat-abhi/network-attacks
56a9251a6e413c1b377c793526f8d99e328854a0
[ "Apache-2.0" ]
null
null
null
dns-amplification.py
venkat-abhi/network-attacks
56a9251a6e413c1b377c793526f8d99e328854a0
[ "Apache-2.0" ]
1
2021-01-30T13:15:00.000Z
2021-01-30T13:15:00.000Z
g_target_ip = "" g_name_servers = ["8.8.8.8"] # Default; can be overwritten using -n flag g_domain = "www.google.com" # Default; can be overwritten using -d flag """ This function creates and sends spoofed DNS queries to a list of DNS resolver. """ """ This function adds user defined DNS resolvers to the list o...
26.986111
98
0.695831
from scapy.all import DNS, DNSQR, IP, ICMP, RandShort, send, UDP import argparse import sys g_target_ip = "" g_name_servers = ["8.8.8.8"] # Default; can be overwritten using -n flag g_domain = "www.google.com" # Default; can be overwritten using -d flag """ This function creates and sends spoofed DNS queries to a ...
0
0
0
0
0
1,397
0
26
133
ca3edf4d9c0e34f8bdd705ddcd4e63d43fc37710
1,928
py
Python
utils/myResponse.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
utils/myResponse.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
utils/myResponse.py
cijianciqing/myWX_l_ningmo
df4c80554b0f3c58060352fc0d5fc6c649f805c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*-encoding=utf8 -*- # @Author : imooc # @Email : imooc@foxmail.com # @Created at : 2018/11/30 # @Filename : myResponse.py # @Desc : #...
28.352941
83
0.547199
#!/usr/bin/python # -*-encoding=utf8 -*- # @Author : imooc # @Email : imooc@foxmail.com # @Created at : 2018/11/30 # @Filename : myResponse.py # @Desc : #...
9
992
0
211
0
304
0
0
94
f7a025a13ff92e14e9f3775f23ceacbcfb5f6f5e
12,595
py
Python
test_project/testapp/tests/test_access_policy.py
oguzhancelikarslan/drf-access-policy
6c6516a14f0f53652c9f3ef3d15d4dc9e50024cf
[ "MIT" ]
null
null
null
test_project/testapp/tests/test_access_policy.py
oguzhancelikarslan/drf-access-policy
6c6516a14f0f53652c9f3ef3d15d4dc9e50024cf
[ "MIT" ]
null
null
null
test_project/testapp/tests/test_access_policy.py
oguzhancelikarslan/drf-access-policy
6c6516a14f0f53652c9f3ef3d15d4dc9e50024cf
[ "MIT" ]
null
null
null
import unittest.mock as mock
33.586667
101
0.575546
import unittest.mock as mock from django.contrib.auth.models import AnonymousUser, Group, User from django.test import TestCase from rest_access_policy import AccessPolicy, AccessPolicyException from rest_framework.decorators import api_view from rest_framework.viewsets import ModelViewSet class FakeRequest(object):...
0
49
0
12,182
0
0
0
152
180
55dfd18084f08f2b6f1537cac0c84ba712ff2aef
1,728
py
Python
inference_terminal.py
Dmitry-Khochanskiy/unet_single_class
4fd3b62c63e95075ecaa603c77f2d1012318cde7
[ "MIT" ]
null
null
null
inference_terminal.py
Dmitry-Khochanskiy/unet_single_class
4fd3b62c63e95075ecaa603c77f2d1012318cde7
[ "MIT" ]
null
null
null
inference_terminal.py
Dmitry-Khochanskiy/unet_single_class
4fd3b62c63e95075ecaa603c77f2d1012318cde7
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: utf-8 ''' script for single image or batch predicition. Accepts folder or single file path''' if __name__ == '__main__': accept_arguments()
35.265306
98
0.62963
#!/usr/bin/env python #coding: utf-8 import argparse import sys import inference import os ''' script for single image or batch predicition. Accepts folder or single file path''' def accept_arguments(): script_path = sys.path[0] my_parser = argparse.ArgumentParser(description='Inference of single image or a fol...
0
0
0
0
0
1,475
0
-34
110
53288cd3f3fe6c0ca781d51cfff1e7589cfb1970
1,216
py
Python
images/views.py
Ruweydha/Photo-Gallery
1023cd665dfd60b82d3d1dea2e00aed704178b1e
[ "Unlicense" ]
null
null
null
images/views.py
Ruweydha/Photo-Gallery
1023cd665dfd60b82d3d1dea2e00aed704178b1e
[ "Unlicense" ]
null
null
null
images/views.py
Ruweydha/Photo-Gallery
1023cd665dfd60b82d3d1dea2e00aed704178b1e
[ "Unlicense" ]
null
null
null
from .models import Images # Create your views here.
34.742857
127
0.727796
from email.mime import image from django.shortcuts import render from django.http import HttpResponse from .models import Images, Location from images.models import Images # Create your views here. def home(request): images = Images.objects.all() location_list = Location.objects.all() return render(reques...
0
0
0
0
0
946
0
57
157
d34ddc8bf449753ebc04382f94c2f617a14eda65
747
py
Python
Scripts/featureextraction.py
avinashsai/Cross-domain-sentiment-analysis
44ab1ef74f0bfdbc81fcac0aa9a296b4197b9578
[ "MIT" ]
4
2018-03-23T05:09:37.000Z
2020-05-08T03:04:46.000Z
Scripts/featureextraction.py
avinashsai/Cross-domain-sentiment-analysis
44ab1ef74f0bfdbc81fcac0aa9a296b4197b9578
[ "MIT" ]
null
null
null
Scripts/featureextraction.py
avinashsai/Cross-domain-sentiment-analysis
44ab1ef74f0bfdbc81fcac0aa9a296b4197b9578
[ "MIT" ]
7
2018-04-19T13:46:49.000Z
2021-09-07T14:16:14.000Z
vector_parameters = [[2,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8], [3,0.8],[3,0.8],[3,0.8]]
25.758621
108
0.756359
import os import re import sklearn import pandas as pd import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer vector_parameters = [[2,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8],[3,0.8], [3,0.8],[3,0.8],[3,0.8]] def featureextraction(train_corpus,test_corpus,label_train,tra...
0
0
0
0
0
465
0
2
157
bd3169b772ecbfacb4278241d9c69a39bfe57166
474
py
Python
tests/test_utilities_efficiency.py
chrisgilmerproj/brewing
fd8251e5bf34c20342034187fb30d9fffc723aa8
[ "MIT" ]
21
2016-08-16T17:34:17.000Z
2021-05-09T13:44:48.000Z
tests/test_utilities_efficiency.py
chrisgilmerproj/brewing
fd8251e5bf34c20342034187fb30d9fffc723aa8
[ "MIT" ]
16
2016-11-16T17:07:12.000Z
2020-12-16T18:11:49.000Z
tests/test_utilities_efficiency.py
chrisgilmerproj/brewing
fd8251e5bf34c20342034187fb30d9fffc723aa8
[ "MIT" ]
4
2016-08-16T16:40:49.000Z
2019-10-31T01:53:00.000Z
# -*- coding: utf-8 -*-
27.882353
70
0.725738
# -*- coding: utf-8 -*- import unittest from brew.utilities.efficiency import calculate_brew_house_yield from fixtures import recipe class TestEfficiencyUtilities(unittest.TestCase): def setUp(self): self.recipe = recipe def test_calculate_brew_house_yield(self): out = calculate_brew_house_y...
0
0
0
316
0
0
0
43
90
35a2ecea4f98c8fb88015b032be7e24e5c9849ac
767
py
Python
recursion_tree/settings.py
IgorZyktin/recursion_tree
022d2381361689a12da2b2833dd4b00fda88b109
[ "MIT" ]
3
2019-01-11T18:16:03.000Z
2020-02-14T01:45:27.000Z
recursion_tree/settings.py
IgorZyktin/recursion_tree
022d2381361689a12da2b2833dd4b00fda88b109
[ "MIT" ]
null
null
null
recursion_tree/settings.py
IgorZyktin/recursion_tree
022d2381361689a12da2b2833dd4b00fda88b109
[ "MIT" ]
1
2019-05-26T18:25:31.000Z
2019-05-26T18:25:31.000Z
""" Settings module """ settings = { 'file': None, 'autostart': True, 'min_node_width': 50, 'min_node_height': 50, 'char_width': 9, 'char_height': 10, 'ver_spacing': 200, 'margin': 20, 'draw_calls': True, 'draw_boundary': False, 'color_background': 'gray', 'color_nu...
22.558824
38
0.602347
""" Settings module """ settings = { 'file': None, 'autostart': True, 'min_node_width': 50, 'min_node_height': 50, 'char_width': 9, 'char_height': 10, 'ver_spacing': 200, 'margin': 20, 'draw_calls': True, 'draw_boundary': False, 'color_background': 'gray', 'color_nu...
0
0
0
0
0
0
0
0
0
e0217e724727753105495e746bd9da882260864b
426
py
Python
euler 28.py
janajolovic/euler_project-
8ed82f9ac82a17f7ba731a38d412a7c12b56c78b
[ "MIT" ]
null
null
null
euler 28.py
janajolovic/euler_project-
8ed82f9ac82a17f7ba731a38d412a7c12b56c78b
[ "MIT" ]
null
null
null
euler 28.py
janajolovic/euler_project-
8ed82f9ac82a17f7ba731a38d412a7c12b56c78b
[ "MIT" ]
null
null
null
#num is also the first terms of spiral num = 1 x = 2 final_sum = 0 for i in range(500): #for each for number in one circle (four numbers on diagonals), the numbers increases by the same numbers (x) #in first circle it is 3,5,7,9, increases by 2 #in second it is 13,17,21,25, increases by 4... for i in ra...
30.428571
113
0.643192
#num is also the first terms of spiral num = 1 x = 2 final_sum = 0 for i in range(500): #for each for number in one circle (four numbers on diagonals), the numbers increases by the same numbers (x) #in first circle it is 3,5,7,9, increases by 2 #in second it is 13,17,21,25, increases by 4... for i in ra...
0
0
0
0
0
0
0
0
0
23c6906dc262e1bedff61096ac6336aad872615f
2,800
py
Python
src/inscriptis/model/canvas/block.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
90
2016-01-29T15:09:21.000Z
2022-03-08T15:08:57.000Z
src/inscriptis/model/canvas/block.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
27
2016-01-14T10:30:10.000Z
2022-03-24T08:00:31.000Z
src/inscriptis/model/canvas/block.py
rlskoeser/inscriptis
e23f79a4ad561f53943c3c6dd70a7d4981b0e0fb
[ "Apache-2.0" ]
20
2016-01-14T12:50:55.000Z
2022-03-04T07:26:30.000Z
"""Representation of a text block within the HTML canvas."""
30.107527
76
0.577857
"""Representation of a text block within the HTML canvas.""" from html import unescape from inscriptis.html_properties import WhiteSpace class Block: """The current block of text. A block usually refers to one line of output text. .. note:: If pre-formatted content is merged with a block, it may...
0
231
0
2,408
0
0
0
32
67
80e0004ed68b1652ad16eb9b10e624bafeb15546
5,084
py
Python
tests/data_reviews/test_data_reviews_queries.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
3
2019-05-04T02:07:28.000Z
2020-10-16T17:47:44.000Z
tests/data_reviews/test_data_reviews_queries.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
604
2019-02-21T18:14:51.000Z
2022-02-10T08:13:54.000Z
tests/data_reviews/test_data_reviews_queries.py
kids-first/kf-api-study-creator
93a79b108b6474f9b4135ace06c89ddcf63dd257
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import get_user_model User = get_user_model() DATA_REVIEW = """ query ($id: ID!) { dataReview(id: $id) { id kfId createdAt name description state validationResultset { id failed passed didNotRun downloadReportUrl download...
26.617801
90
0.56845
import pytest from graphql_relay import to_global_id from django.contrib.auth import get_user_model from creator.studies.models import Membership from creator.data_reviews.factories import DataReviewFactory from creator.ingest_runs.factories import ValidationResultsetFactory from creator.studies.models import Study Us...
0
3,347
0
0
0
0
0
138
201
aaafbfbd244d63f08d04a40c0fe3403a417b9be4
1,281
py
Python
rl/PolicyNetwork.py
johntiger1/vaal_querying
c20da3b0b5ca9f25334523f831d0ba8a11f710ca
[ "BSD-2-Clause" ]
1
2019-12-04T22:37:38.000Z
2019-12-04T22:37:38.000Z
rl/PolicyNetwork.py
johntiger1/vaal_querying
c20da3b0b5ca9f25334523f831d0ba8a11f710ca
[ "BSD-2-Clause" ]
null
null
null
rl/PolicyNetwork.py
johntiger1/vaal_querying
c20da3b0b5ca9f25334523f831d0ba8a11f710ca
[ "BSD-2-Clause" ]
null
null
null
import torch.nn as nn ''' Direct Policy Gradient network. Takes in STATE_DIM size vector, and outputs ACTIONS_DIM size vector. Action select (sampling), and reward backprop is done in another function. Make sure to subtract a baseline! ''' # # ''' # This Policy net takes in state which is the per class acc, and...
29.790698
109
0.68306
import torch import torch.nn as nn import torch.nn.functional as F ''' Direct Policy Gradient network. Takes in STATE_DIM size vector, and outputs ACTIONS_DIM size vector. Action select (sampling), and reward backprop is done in another function. Make sure to subtract a baseline! ''' class PolicyNet(nn.Module)...
0
0
0
412
0
0
0
1
68
df3f54b00aab8f0617251d68b88095e11661dd08
2,672
py
Python
api/src/rate_limit/rate_limit.py
sjohnson31/ttbud
456de60c7765f33630a8fd4bd18c4f6e75e1bf67
[ "MIT" ]
null
null
null
api/src/rate_limit/rate_limit.py
sjohnson31/ttbud
456de60c7765f33630a8fd4bd18c4f6e75e1bf67
[ "MIT" ]
152
2019-10-24T22:22:42.000Z
2020-05-03T04:18:38.000Z
api/src/rate_limit/rate_limit.py
sjohnson31/ttbud
456de60c7765f33630a8fd4bd18c4f6e75e1bf67
[ "MIT" ]
1
2020-04-28T23:24:52.000Z
2020-04-28T23:24:52.000Z
from __future__ import annotations MAX_ROOMS_PER_TEN_MINUTES = 50 MAX_CONNECTIONS_PER_USER = 10 MAX_CONNECTIONS_PER_ROOM = 20 SERVER_LIVENESS_EXPIRATION_SECONDS = 60 * 10
32.987654
83
0.676272
from __future__ import annotations from typing import Protocol, AsyncContextManager, Iterator MAX_ROOMS_PER_TEN_MINUTES = 50 MAX_CONNECTIONS_PER_USER = 10 MAX_CONNECTIONS_PER_ROOM = 20 SERVER_LIVENESS_EXPIRATION_SECONDS = 60 * 10 class RoomFullException(Exception): pass class TooManyConnectionsException(Excep...
0
0
1,554
790
0
0
0
37
115
bc8caf871ea748fe7bbbec33022ed18ae8769dc2
646
py
Python
Pyo_module/documentation_practice/filters/lowpass.py
sebcampos/music
b508654f9524127bd2681628a9ec4b88dc607c8d
[ "MIT" ]
null
null
null
Pyo_module/documentation_practice/filters/lowpass.py
sebcampos/music
b508654f9524127bd2681628a9ec4b88dc607c8d
[ "MIT" ]
null
null
null
Pyo_module/documentation_practice/filters/lowpass.py
sebcampos/music
b508654f9524127bd2681628a9ec4b88dc607c8d
[ "MIT" ]
null
null
null
#!/usr/local/Caskroom/miniconda/base/envs/music_venv/bin/pythonw s = Server().boot() # white noise generator n = Noise(0.5) # Common cutoff frequency control freq = Sig(1000) freq.ctrl([SLMap(50, 5000, "lin", "value", 1000)], title = "Cutoff Frequency") # Three different lowpass filters tone = Tone(n, freq) butlp...
22.275862
78
0.712074
#!/usr/local/Caskroom/miniconda/base/envs/music_venv/bin/pythonw from pyo import * s = Server().boot() # white noise generator n = Noise(0.5) # Common cutoff frequency control freq = Sig(1000) freq.ctrl([SLMap(50, 5000, "lin", "value", 1000)], title = "Cutoff Frequency") # Three different lowpass filters tone = ...
0
0
0
0
0
0
0
-4
23
12d78236984c5665e4a055657333b8e5ac52d714
148
py
Python
faq/urls.py
ryansujana15/tugas-tengah-semester-pbp
c61c3f7ed6c31f60bfe251c41de06e44052b2ba2
[ "MIT" ]
null
null
null
faq/urls.py
ryansujana15/tugas-tengah-semester-pbp
c61c3f7ed6c31f60bfe251c41de06e44052b2ba2
[ "MIT" ]
null
null
null
faq/urls.py
ryansujana15/tugas-tengah-semester-pbp
c61c3f7ed6c31f60bfe251c41de06e44052b2ba2
[ "MIT" ]
null
null
null
from django.urls import path from .views import index, qs urlpatterns = [ path('', index, name='index_faq'), path('qs', qs, name='qs'), ]
16.444444
38
0.628378
from django.urls import path from .views import index, qs urlpatterns = [ path('', index, name='index_faq'), path('qs', qs, name='qs'), ]
0
0
0
0
0
0
0
0
0
ea75d5f94d9b7d2c764c9afc0a1431c3bf565cca
1,098
py
Python
contrib/vecs_io.py
ScriptBox99/facebook-faiss
04d31fac53c609b6487a4cd6ead1c8b4ad926b0c
[ "MIT" ]
17,006
2017-03-01T02:54:26.000Z
2022-03-31T19:08:11.000Z
contrib/vecs_io.py
ScriptBox99/facebook-faiss
04d31fac53c609b6487a4cd6ead1c8b4ad926b0c
[ "MIT" ]
2,154
2017-03-01T10:30:34.000Z
2022-03-31T11:35:40.000Z
contrib/vecs_io.py
ScriptBox99/facebook-faiss
04d31fac53c609b6487a4cd6ead1c8b4ad926b0c
[ "MIT" ]
2,790
2017-03-01T14:09:44.000Z
2022-03-31T06:49:39.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ I/O functions in fvecs, bvecs, ivecs formats definition of the formats here: http://corpus-texmex.irisa.fr/ """
21.529412
65
0.619308
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np """ I/O functions in fvecs, bvecs, ivecs formats definition of the formats here: http://corpus-texmex.irisa.fr/ """ def ...
0
0
0
0
0
616
0
-3
184
420d2a0bc5060f2fc0cac50b4f35cd76f8ea034c
415
py
Python
numpy/8view_copy.py
vikaskushwah312/DS
cf8382d9ac5e24acd29ffe5da084e118e9fa4869
[ "bzip2-1.0.6" ]
null
null
null
numpy/8view_copy.py
vikaskushwah312/DS
cf8382d9ac5e24acd29ffe5da084e118e9fa4869
[ "bzip2-1.0.6" ]
null
null
null
numpy/8view_copy.py
vikaskushwah312/DS
cf8382d9ac5e24acd29ffe5da084e118e9fa4869
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np '''view Example :- Board casting hoti h es me''' arr = np.array([5,10,15]) arr_slice= arr[0:2] # print(arr_slice) #[5,10] arr_slice[:]= 0 # print(arr_slice) #[0,0] # print(arr) #[0,0,15] '''Copy Example :- Board casting hoti h es me''' arr_copy = np.array([5,10,15]) arr_slice2= arr_copy[0:2]....
14.310345
48
0.640964
import numpy as np '''view Example :- Board casting hoti h es me''' arr = np.array([5,10,15]) arr_slice= arr[0:2] # print(arr_slice) #[5,10] arr_slice[:]= 0 # print(arr_slice) #[0,0] # print(arr) #[0,0,15] '''Copy Example :- Board casting hoti h es me''' arr_copy = np.array([5,10,15]) arr_slice2= arr_copy[0:2]....
0
0
0
0
0
0
0
0
0
5761b6a11ad60027a18e18fa121096e72cfb84bc
427
py
Python
metamapper/conf/gunicorn.py
getmetamapper/metamapper
0b2f67eec03fbf7ece35ff9f58ea9bb2dde4d85f
[ "BSD-2-Clause" ]
53
2020-07-01T23:11:59.000Z
2022-03-31T19:10:28.000Z
metamapper/conf/gunicorn.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
5
2020-11-25T19:48:57.000Z
2022-02-27T23:50:18.000Z
metamapper/conf/gunicorn.py
metamapper-io/metamapper
376716e72bcaca62f1ec09ca9a13a0346e5502f9
[ "BSD-2-Clause" ]
5
2020-08-29T16:43:59.000Z
2022-01-17T19:05:30.000Z
# # Gunicorn (https://docs.gunicorn.org/en/stable/configure.html) # # Metamapper uses Gunicorn to handle web requests by default. We recommend # spinning up a few of these and putting them behind a reverse proxy like nginx. # # You can override these default settings by creating your own file and referencing the # path...
35.583333
87
0.777518
# # Gunicorn (https://docs.gunicorn.org/en/stable/configure.html) # # Metamapper uses Gunicorn to handle web requests by default. We recommend # spinning up a few of these and putting them behind a reverse proxy like nginx. # # You can override these default settings by creating your own file and referencing the # path...
0
0
0
0
0
0
0
0
0
6c0667e924b11406522ed8a61a42f58da1d716b2
675
py
Python
tests/import/import11.py
ktok07b6/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
83
2015-11-30T09:59:13.000Z
2021-08-03T09:12:28.000Z
tests/import/import11.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
4
2017-02-10T01:43:11.000Z
2020-07-14T03:52:25.000Z
tests/import/import11.py
jesseclin/polyphony
657c5c7440520db6b4985970bd50547407693ac4
[ "MIT" ]
11
2016-11-18T14:39:15.000Z
2021-02-23T10:05:20.000Z
test()
17.307692
53
0.69037
import polyphony import sub1 from sub3 import SUB3_GLOBAL_ARRAY, SUB3_GLOBAL_TUPLE def import11_a(i): return sub1.SUB1_GLOBAL_ARRAY[i] def import11_b(i): return sub1.SUB1_GLOBAL_TUPLE[i] def import11_c(i): return SUB3_GLOBAL_ARRAY[i] def import11_d(i): return SUB3_GLOBAL_TUPLE[i] def import11_e...
0
284
0
0
0
156
0
17
204
08ae8ea695d2ebee6958e8066c472b62a744059f
2,590
py
Python
dz4/tests/test_jsonplaceholder.py
sergey-sy/otus_automation_homework
e283433e9beeea7ab2d8f34b6214e90c2f4d8776
[ "MIT" ]
null
null
null
dz4/tests/test_jsonplaceholder.py
sergey-sy/otus_automation_homework
e283433e9beeea7ab2d8f34b6214e90c2f4d8776
[ "MIT" ]
null
null
null
dz4/tests/test_jsonplaceholder.py
sergey-sy/otus_automation_homework
e283433e9beeea7ab2d8f34b6214e90c2f4d8776
[ "MIT" ]
null
null
null
import requests import json from jsonschema import validate API_LINK = 'https://jsonplaceholder.typicode.com/posts' TMP_FILE = 'test_jsonplaceholder.json' def test_check_json_schema(get_api_responce): """Validate json-schema for https://jsonplaceholder.typicode.com/guide.html""" schema = { 'type':...
28.777778
107
0.607336
import pytest import requests import json import os from jsonschema import validate API_LINK = 'https://jsonplaceholder.typicode.com/posts' TMP_FILE = 'test_jsonplaceholder.json' @pytest.yield_fixture(scope='session', autouse=True) def make_tmp_file(): """Create temporary file and delete in the end of the test ...
0
1,575
0
0
0
0
0
-20
113
cb1d900bfbbf37ec61e677dde0333b576f0746b3
5,613
py
Python
geotagx/view/blog.py
othieno/plugin-geotagx
a8b6ea0c8bb8a2c8fe1b333431b3ddd1e717ce36
[ "MIT" ]
null
null
null
geotagx/view/blog.py
othieno/plugin-geotagx
a8b6ea0c8bb8a2c8fe1b333431b3ddd1e717ce36
[ "MIT" ]
5
2016-07-31T15:52:54.000Z
2016-11-10T04:06:22.000Z
geotagx/view/blog.py
othieno/plugin-geotagx
a8b6ea0c8bb8a2c8fe1b333431b3ddd1e717ce36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This module is part of the GeoTag-X PyBossa plugin. # # Author: Jeremy Othieno (j.othieno@gmail.com) # # Copyright (c) 2016 UNITAR/UNOSAT # # The MIT License (MIT) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation f...
34.018182
128
0.664529
# -*- coding: utf-8 -*- # # This module is part of the GeoTag-X PyBossa plugin. # # Author: Jeremy Othieno (j.othieno@gmail.com) # # Copyright (c) 2016 UNITAR/UNOSAT # # The MIT License (MIT) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation f...
0
1,315
0
0
0
0
0
24
46
fb45d049f50bebedf5b8348f862b13e281846a62
17,515
py
Python
appv1/awsdetails.py
CBitLabs/atlas
d205924dc3938ef49f156148ac1dda20220f7575
[ "MIT" ]
null
null
null
appv1/awsdetails.py
CBitLabs/atlas
d205924dc3938ef49f156148ac1dda20220f7575
[ "MIT" ]
null
null
null
appv1/awsdetails.py
CBitLabs/atlas
d205924dc3938ef49f156148ac1dda20220f7575
[ "MIT" ]
null
null
null
import boto
62.109929
152
0.588752
import boto, boto.ec2 import re, datetime from dateutil import parser from dateutil import tz import collections from collections import OrderedDict import ast from operator import add from atlas_helper_methods import AtlasHelper from aws_helper import AwsHelper class AwsInstanceHelper: #class to fetch data from aws f...
0
0
0
17,228
0
0
0
53
221
4f71f62ff5be4c448e42605a9846a850fd9c58e7
28,275
py
Python
scripts/addons/RetopoFlow/addon_common/common/useractions.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
1,600
2015-03-19T12:26:15.000Z
2022-03-30T21:07:37.000Z
addon_common/common/useractions.py
Varelshen/retopoflow
5e9fd7ff65e7a5a64bf3078c78fb71cc270fdb71
[ "OML" ]
1,026
2015-03-18T22:17:42.000Z
2022-03-28T17:47:04.000Z
addon_common/common/useractions.py
Varelshen/retopoflow
5e9fd7ff65e7a5a64bf3078c78fb71cc270fdb71
[ "OML" ]
241
2015-03-19T13:44:36.000Z
2022-03-30T21:07:39.000Z
''' Copyright (C) 2021 CG Cookie http://cgcookie.com hello@cgcookie.com Created by Jonathan Denning, Jonathan Williamson This program 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 ...
42.327844
244
0.594271
''' Copyright (C) 2021 CG Cookie http://cgcookie.com hello@cgcookie.com Created by Jonathan Denning, Jonathan Williamson This program 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 ...
0
309
0
21,452
0
2,508
0
126
314
98c281f4477afafc99134cbb0f13513959bd60c0
4,327
py
Python
openmdao/components/interp_util/interp_lagrange2.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
null
null
null
openmdao/components/interp_util/interp_lagrange2.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
1
2015-08-12T17:58:18.000Z
2015-08-12T17:58:18.000Z
openmdao/components/interp_util/interp_lagrange2.py
Subraiz/OpenMDAO
ba247746e76fc3a46b768d0f09955ef58ee71ae4
[ "Apache-2.0" ]
1
2021-01-17T14:03:48.000Z
2021-01-17T14:03:48.000Z
""" Interpolate using a second order Lagrange polynomial. Based on NPSS implementation. """
33.284615
98
0.536862
""" Interpolate using a second order Lagrange polynomial. Based on NPSS implementation. """ import numpy as np from openmdao.components.interp_util.interp_algorithm import InterpAlgorithm class InterpLagrange2(InterpAlgorithm): """ Interpolate using a second order Lagrange polynomial. """ def __ini...
0
0
0
4,113
0
0
0
52
68
71de7cc1f6e8248a81b96ae7117976e8f263c5dd
6,248
py
Python
src/kivy_garden/zbarcam/zbarcam.py
richierh/zbarcam
fb989ec236da2d1e19d3272e6eecee5fb6125974
[ "MIT" ]
71
2019-09-09T02:32:14.000Z
2022-03-17T09:22:58.000Z
src/kivy_garden/zbarcam/zbarcam.py
richierh/zbarcam
fb989ec236da2d1e19d3272e6eecee5fb6125974
[ "MIT" ]
58
2019-08-30T20:42:48.000Z
2022-03-12T00:00:41.000Z
src/kivy_garden/zbarcam/zbarcam.py
richierh/zbarcam
fb989ec236da2d1e19d3272e6eecee5fb6125974
[ "MIT" ]
26
2019-09-30T10:51:47.000Z
2022-03-12T19:40:03.000Z
import os MODULE_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
30.930693
77
0.630922
import os from collections import namedtuple import PIL from kivy.clock import Clock from kivy.lang import Builder from kivy.logger import Logger from kivy.properties import ListProperty from kivy.uix.anchorlayout import AnchorLayout from .utils import fix_android_image MODULE_DIRECTORY = os.path.dirname(os.path.rea...
0
1,066
0
4,725
0
0
0
85
293
42719be315b0012f075051bae2b76e3dbfb22822
1,450
py
Python
mental_arithmetic.py
Traftmine/mental_arithmetic
e20d24f884b3ffc53003cbc1c2998e4d60034ffe
[ "MIT" ]
null
null
null
mental_arithmetic.py
Traftmine/mental_arithmetic
e20d24f884b3ffc53003cbc1c2998e4d60034ffe
[ "MIT" ]
null
null
null
mental_arithmetic.py
Traftmine/mental_arithmetic
e20d24f884b3ffc53003cbc1c2998e4d60034ffe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jun 20 18:12:59 2021 @author: Traftmine """ #the computer choose a number between 1 and a number x chosen by the user import random as rm import time as t NUMBER_LIM = int(input("What's the limit number you're ok with? ")) Y = int(input("How many rounds do y...
23.015873
78
0.530345
# -*- coding: utf-8 -*- """ Created on Sun Jun 20 18:12:59 2021 @author: Traftmine """ #the computer choose a number between 1 and a number x chosen by the user import random as rm import time as t NUMBER_LIM = int(input("What's the limit number you're ok with? ")) Y = int(input("How many rounds do y...
0
0
0
0
0
0
0
0
0
edce1039bf7e6c901af6f50f97b236f286cda78f
2,100
py
Python
setup.py
Hoxbro/pyctdev
837773ab8b05772d5ad9a240e717b6907e7c964a
[ "BSD-3-Clause" ]
3
2019-10-12T11:17:20.000Z
2020-07-01T13:49:31.000Z
setup.py
Hoxbro/pyctdev
837773ab8b05772d5ad9a240e717b6907e7c964a
[ "BSD-3-Clause" ]
62
2019-11-17T12:52:13.000Z
2022-03-20T09:13:59.000Z
setup.py
Hoxbro/pyctdev
837773ab8b05772d5ad9a240e717b6907e7c964a
[ "BSD-3-Clause" ]
4
2019-11-29T10:35:29.000Z
2021-12-26T10:55:48.000Z
#! /usr/bin/env python import sys from setuptools import setup import versioneer setup_args = dict( name = 'pyctdev', description = 'python packaging common tasks for developers', long_description=open("README.md").read(), long_description_content_type="text/markdown", version = versioneer.get_ve...
34.42623
71
0.622381
#! /usr/bin/env python import sys from setuptools import setup import versioneer setup_args = dict( name = 'pyctdev', description = 'python packaging common tasks for developers', long_description=open("README.md").read(), long_description_content_type="text/markdown", version = versioneer.get_ve...
0
0
0
0
0
0
0
0
0
a173b8c3eb3ac293d3ccb0af0521b7185f04426c
769
py
Python
s8_deployment/exercise_files/main.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
s8_deployment/exercise_files/main.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
s8_deployment/exercise_files/main.py
jaschn/dtu_mlops
59f404cffc756739433b5ccebb46ef6bfd467436
[ "Apache-2.0" ]
null
null
null
import torch from torchvision import transforms from google.cloud import storage import io BUCKET_NAME = "cloud_fn_storage" MODEL_FILE = "deployable_model.pt" client = storage.Client() bucket = client.get_bucket(BUCKET_NAME) blob = bucket.get_blob(MODEL_FILE) my_model = blob.download_as_string() my_model = io.BytesIO...
25.633333
39
0.73472
from git import base import torch from PIL import Image from torchvision import transforms from google.cloud import storage import io import base64 BUCKET_NAME = "cloud_fn_storage" MODEL_FILE = "deployable_model.pt" client = storage.Client() bucket = client.get_bucket(BUCKET_NAME) blob = bucket.get_blob(MODEL_FILE) m...
0
0
0
0
0
291
0
-9
89
a28670ba50f26eff3c150ed92e03e9b425388695
173
py
Python
src/ClipSpeech/__main__.py
Match-Yang/ClipSpeech
5588e47886c30e7d7294ab23fb49e1d95bed8ec6
[ "MIT" ]
1
2022-02-22T10:04:37.000Z
2022-02-22T10:04:37.000Z
src/ClipSpeech/__main__.py
Match-Yang/ClipSpeech
5588e47886c30e7d7294ab23fb49e1d95bed8ec6
[ "MIT" ]
1
2021-12-14T07:45:17.000Z
2021-12-14T07:46:03.000Z
src/ClipSpeech/__main__.py
Match-Yang/ClipSpeech
5588e47886c30e7d7294ab23fb49e1d95bed8ec6
[ "MIT" ]
1
2022-02-22T10:04:39.000Z
2022-02-22T10:04:39.000Z
import sys, os # -msys.path sys.path.append(os.path.dirname(__file__)) from app import main if __name__ == '__main__': main()
21.625
48
0.722543
import sys, os # 为了兼容-m模式运行,我们主动将当前目录加入到sys.path,这样就能搜索本项目的的模块 sys.path.append(os.path.dirname(__file__)) from app import main if __name__ == '__main__': main()
105
0
0
0
0
0
0
0
0
c000be31c1c0e50b6d483d1e52392173fdd2283e
2,812
py
Python
modipyd/__init__.py
ishikawa/modipyd
30bd7df9e9babb29b848dac6a46b1c909ab1e180
[ "MIT" ]
1
2016-05-08T13:21:04.000Z
2016-05-08T13:21:04.000Z
modipyd/__init__.py
ishikawa/modipyd
30bd7df9e9babb29b848dac6a46b1c909ab1e180
[ "MIT" ]
null
null
null
modipyd/__init__.py
ishikawa/modipyd
30bd7df9e9babb29b848dac6a46b1c909ab1e180
[ "MIT" ]
null
null
null
""" Modipyd: Autotest for Python, and more ======================================= **Modipyd** is a `Python`_ module dependency analysis and monitoring modification framework, written by Takanori Ishikawa and licensed under `the MIT license`_. **This project aims to provide:** * Automated testing tool **pyautotest**...
32.697674
80
0.6234
""" Modipyd: Autotest for Python, and more ======================================= **Modipyd** is a `Python`_ module dependency analysis and monitoring modification framework, written by Takanori Ishikawa and licensed under `the MIT license`_. **This project aims to provide:** * Automated testing tool **pyautotest**...
0
0
0
0
0
0
0
-12
23
3ef017799d782b2927eb9e02595b18c35769b231
199
py
Python
examples/docker/app.py
k24d/ssm-vault
d5876cc74d385cab96956068f013c5aa7619a20a
[ "MIT" ]
3
2020-01-17T02:31:35.000Z
2021-06-11T17:24:23.000Z
examples/docker/app.py
k24d/ssm-vault
d5876cc74d385cab96956068f013c5aa7619a20a
[ "MIT" ]
null
null
null
examples/docker/app.py
k24d/ssm-vault
d5876cc74d385cab96956068f013c5aa7619a20a
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config app = Flask(__name__) app.config.from_object(Config()) db = SQLAlchemy(app) db.engine.execute('select 1')
18.090909
39
0.788945
from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config app = Flask(__name__) app.config.from_object(Config()) db = SQLAlchemy(app) db.engine.execute('select 1')
0
0
0
0
0
0
0
0
0
a89bcb20a2d2ac470f841e015ea6342ab57b0a37
390
py
Python
dog_finder/score_analyzer.py
jojo-en-code/foundations-project-template
4378bbba60353710e9ec5424c7e0314b3361472c
[ "MIT" ]
null
null
null
dog_finder/score_analyzer.py
jojo-en-code/foundations-project-template
4378bbba60353710e9ec5424c7e0314b3361472c
[ "MIT" ]
null
null
null
dog_finder/score_analyzer.py
jojo-en-code/foundations-project-template
4378bbba60353710e9ec5424c7e0314b3361472c
[ "MIT" ]
null
null
null
# from website import score_comp
35.454545
51
0.717949
# from website import score_comp def calculate_range(dog_breed_list, score): dog_breed_range_list = [] for dog_breed in dog_breed_list: min_score=dog_breed.min_score max_score=dog_breed.max_score if score > min_score and score < max_score: dog_name=dog_breed.name ...
0
0
0
0
0
336
0
0
22
0583262e1f547923b232c541d32988870414fa9b
404
py
Python
example_helloworld.py
htsong/manim
4e6b7c73bb63c3a79f39e5277147e97df3d1298c
[ "MIT" ]
null
null
null
example_helloworld.py
htsong/manim
4e6b7c73bb63c3a79f39e5277147e97df3d1298c
[ "MIT" ]
null
null
null
example_helloworld.py
htsong/manim
4e6b7c73bb63c3a79f39e5277147e97df3d1298c
[ "MIT" ]
null
null
null
# from big_ol_pile_of_manim_imports import * TEX_USE_CTEX = True
33.666667
82
0.663366
# from big_ol_pile_of_manim_imports import * from manimlib.imports import * from manimlib.constants import * TEX_USE_CTEX = True class Hello_World(Scene): def construct(self): # helloworld = TextMobject("hello, manim!", color=BLUE) helloworld = Text("hello, manim!你好!", color=BLUE, font="Mic...
9
0
0
245
0
0
0
20
70
bbb8059668ebe690434ab4184e851cea7d48e91e
509
py
Python
src/fact/lib.py
kown7/python-blueprint
50e275cfd24ddedab10d8d00d53be8ff1c6216b1
[ "MIT" ]
null
null
null
src/fact/lib.py
kown7/python-blueprint
50e275cfd24ddedab10d8d00d53be8ff1c6216b1
[ "MIT" ]
null
null
null
src/fact/lib.py
kown7/python-blueprint
50e275cfd24ddedab10d8d00d53be8ff1c6216b1
[ "MIT" ]
null
null
null
def factorial(n: int) -> int: """Computes the factorial through a recursive algorithm. Args: n: A positive input value. Raises: InvalidFactorialError: If n is less than 0. Returns: Computed factorial. """ if n < 0: raise InvalidFactorialError(f'n is less than...
22.130435
65
0.620825
class InvalidFactorialError(RuntimeError): """Error generated if an invalid factorial input is given.""" def factorial(n: int) -> int: """Computes the factorial through a recursive algorithm. Args: n: A positive input value. Raises: InvalidFactorialError: If n is less than 0. Re...
0
0
0
87
0
0
0
0
22
423df074e92eff0f9482dd6cc080cfe837174aab
977
py
Python
fom/interfaces/topologies/finite_product_topology.py
MichalKononenko/FoundationsOfMechanics
d1ca2cc961a98be4761b3938f3a7f58d82daed62
[ "MIT" ]
null
null
null
fom/interfaces/topologies/finite_product_topology.py
MichalKononenko/FoundationsOfMechanics
d1ca2cc961a98be4761b3938f3a7f58d82daed62
[ "MIT" ]
null
null
null
fom/interfaces/topologies/finite_product_topology.py
MichalKononenko/FoundationsOfMechanics
d1ca2cc961a98be4761b3938f3a7f58d82daed62
[ "MIT" ]
null
null
null
""" Defines a finite product topology. This is a product topology formed by multiplying two finite topologies. """ from typing import TypeVar X = TypeVar('X') Y = TypeVar('Y')
29.606061
79
0.702149
""" Defines a finite product topology. This is a product topology formed by multiplying two finite topologies. """ import abc from .finite_topology import FiniteTopology from .product_topology import ProductTopology from typing import TypeVar, Tuple, Set, Generic X = TypeVar('X') Y = TypeVar('Y') class FiniteProduct...
0
252
0
402
0
0
0
56
89
ca9591aabe9dd5bb2938791c9e049200e7adf4e8
6,778
py
Python
lm_eval/models/dec_only_t5.py
lintangsutawika/lm-evaluation-harness
babaf9082b626f13d5392e5665da730c5bf91d50
[ "MIT" ]
null
null
null
lm_eval/models/dec_only_t5.py
lintangsutawika/lm-evaluation-harness
babaf9082b626f13d5392e5665da730c5bf91d50
[ "MIT" ]
null
null
null
lm_eval/models/dec_only_t5.py
lintangsutawika/lm-evaluation-harness
babaf9082b626f13d5392e5665da730c5bf91d50
[ "MIT" ]
null
null
null
### I very much dislike this solution. TODO: fix this abomination for jay-z repo import os import sys from pathlib import Path path = Path(os.path.realpath(__file__)) workfolder = str(path.parent.parent.parent.parent) sys.path.append(workfolder) ###
42.628931
151
0.607996
from transformers import T5TokenizerFast import torch import torch.nn.functional as F from lm_eval.base import LM from lm_eval import utils from tqdm import tqdm ### I very much dislike this solution. TODO: fix this abomination for jay-z repo import os import sys from pathlib import Path path = Path(os.path.realpath(_...
0
234
0
6,048
0
0
0
68
177
a66665c688d5ea4fef712b8572555f0a25a89ae6
7,778
py
Python
main.py
Muia23/Pass-Locker
8e15a27478fa98c96044437892e50476b77256a2
[ "Unlicense" ]
null
null
null
main.py
Muia23/Pass-Locker
8e15a27478fa98c96044437892e50476b77256a2
[ "Unlicense" ]
null
null
null
main.py
Muia23/Pass-Locker
8e15a27478fa98c96044437892e50476b77256a2
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3.8 from user import User from credentials import Credential Process = [] #sign in user #program running program_run = True #exit program #sign up user def signup_user(username, password): ''' Function to sign up a user ''' new_user = User(username,password) return new_...
23.21791
185
0.506814
#!/usr/bin/env python3.8 from user import User from credentials import Credential import random import string Process = [] #sign in user #program running program_run = True #exit program def exit_program(): global program_run program_run = False #sign up user def signup_user(username, password): ''' ...
0
0
0
0
0
4,793
0
-16
134
89b738341a9febb6783af2686ce10240384d0eed
353
py
Python
__init__.py
kamyarkalhor/chopen
505e1b927245e601aec140d0e61a9c6785700304
[ "MIT" ]
null
null
null
__init__.py
kamyarkalhor/chopen
505e1b927245e601aec140d0e61a9c6785700304
[ "MIT" ]
null
null
null
__init__.py
kamyarkalhor/chopen
505e1b927245e601aec140d0e61a9c6785700304
[ "MIT" ]
null
null
null
import os CHOPEN_PATH = os.path.dirname(os.path.realpath(__file__))
25.214286
92
0.68272
import sys import os import django CHOPEN_PATH = os.path.dirname(os.path.realpath(__file__)) def django_setup(): if CHOPEN_PATH not in sys.path: sys.path.append(CHOPEN_PATH) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "web_app.settings") # web_app should be an app on the...
0
0
0
0
0
236
0
-19
67
878fcd250a87073cd29acdb61c82ab8d848b58aa
1,099
py
Python
test/trace_processor/parsing/very_long_sched.py
ztlevi/perfetto
a0de991bf39c5744ab4eef00eae823c378eb99a9
[ "Apache-2.0" ]
933
2019-12-10T10:45:28.000Z
2022-03-31T03:43:44.000Z
test/trace_processor/parsing/very_long_sched.py
ztlevi/perfetto
a0de991bf39c5744ab4eef00eae823c378eb99a9
[ "Apache-2.0" ]
252
2019-12-10T16:13:57.000Z
2022-03-31T09:56:46.000Z
test/trace_processor/parsing/very_long_sched.py
ztlevi/perfetto
a0de991bf39c5744ab4eef00eae823c378eb99a9
[ "Apache-2.0" ]
153
2020-01-08T20:17:27.000Z
2022-03-30T20:53:21.000Z
#!/usr/bin/env python3 # Copyright (C) 2019 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
31.4
74
0.747953
#!/usr/bin/env python3 # Copyright (C) 2019 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
0
0
0
0
0
0
0
6
0
3ac89cc64e8c1680393223828af8aa45e828e58a
12,992
py
Python
data/augmentation.py
chrizandr/FootAndBall
b42ffad4a0dba4bb6e6144754f71927c7c5a6c0e
[ "MIT" ]
55
2020-10-21T22:24:03.000Z
2022-03-23T18:31:53.000Z
data/augmentation.py
chrizandr/FootAndBall
b42ffad4a0dba4bb6e6144754f71927c7c5a6c0e
[ "MIT" ]
5
2020-11-07T02:49:43.000Z
2022-03-06T15:39:42.000Z
data/augmentation.py
chrizandr/FootAndBall
b42ffad4a0dba4bb6e6144754f71927c7c5a6c0e
[ "MIT" ]
14
2021-01-22T08:39:41.000Z
2022-03-29T00:48:15.000Z
# FootAndBall: Integrated Player and Ball Detector # Jacek Komorowski, Grzegorz Kurzejamski, Grzegorz Sarwas # Copyright (c) 2020 Sport Algorithmics and Gaming from torchvision import transforms import numpy as np import torchvision.transforms as transforms # Labels starting from 0 BALL_LABEL = 1 PLAYER_LABEL = 2 #...
39.015015
128
0.612762
# FootAndBall: Integrated Player and Ball Detector # Jacek Komorowski, Grzegorz Kurzejamski, Grzegorz Sarwas # Copyright (c) 2020 Sport Algorithmics and Gaming from torchvision import transforms from PIL import Image import numpy as np import numbers import random import cv2 import torchvision.transforms as transform...
0
0
0
8,946
0
1,220
0
-2
363
d791b2f17c28bd4384f27cff306a400f0bb904f7
11,020
py
Python
instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py
epsagon/opentelemetry-python-contrib
2671ff53c8643ad55dcf78dad072f2f0b82e84e1
[ "Apache-2.0", "BSD-3-Clause" ]
3
2019-11-26T14:31:09.000Z
2020-01-09T23:04:49.000Z
instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py
epsagon/opentelemetry-python-contrib
2671ff53c8643ad55dcf78dad072f2f0b82e84e1
[ "Apache-2.0", "BSD-3-Clause" ]
16
2020-02-07T10:01:02.000Z
2020-04-06T22:03:31.000Z
instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py
epsagon/opentelemetry-python-contrib
2671ff53c8643ad55dcf78dad072f2f0b82e84e1
[ "Apache-2.0", "BSD-3-Clause" ]
5
2020-02-05T14:59:12.000Z
2020-04-03T15:34:16.000Z
# Copyright 2020, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
35.779221
239
0.684936
# Copyright 2020, OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
0
0
0
2,002
0
3,091
0
403
245
43d050af4fe22db0849ef1bc24742390be5fd565
7,688
py
Python
wom_tributary/utils/tweet_summarizers.py
tibonihoo/wateronmars
bd5c71b3386d62200a08899659349657f053eed2
[ "CC-BY-3.0", "Apache-2.0" ]
18
2015-05-07T15:43:08.000Z
2018-05-11T18:41:15.000Z
wom_tributary/utils/tweet_summarizers.py
tibonihoo/wateronmars
bd5c71b3386d62200a08899659349657f053eed2
[ "CC-BY-3.0", "Apache-2.0" ]
10
2015-03-29T20:11:28.000Z
2017-05-02T21:37:14.000Z
wom_tributary/utils/tweet_summarizers.py
tibonihoo/wateronmars
bd5c71b3386d62200a08899659349657f053eed2
[ "CC-BY-3.0", "Apache-2.0" ]
13
2015-05-05T19:02:34.000Z
2018-01-10T18:31:13.000Z
# -*- coding: utf-8; indent-tabs-mode: nil; python-indent: 2 -*- # # Copyright (C) 2019 Thibauld Nion # # This file is part of WaterOnMars (https://github.com/tibonihoo/wateronmars) # # WaterOnMars is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as p...
32.033333
160
0.662721
# -*- coding: utf-8; indent-tabs-mode: nil; python-indent: 2 -*- # # Copyright (C) 2019 Thibauld Nion # # This file is part of WaterOnMars (https://github.com/tibonihoo/wateronmars) # # WaterOnMars is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as p...
0
556
0
306
0
3,910
0
3
229
f64cc932d8441b43e990b5d8b3b0f07dea405ce5
663
py
Python
setup.py
jfreissmann/SWSHplotting
3cc6516115c43513de2ff817b7bce4b2c5abc076
[ "MIT" ]
null
null
null
setup.py
jfreissmann/SWSHplotting
3cc6516115c43513de2ff817b7bce4b2c5abc076
[ "MIT" ]
null
null
null
setup.py
jfreissmann/SWSHplotting
3cc6516115c43513de2ff817b7bce4b2c5abc076
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.rst', 'r') as f: long_discription = f.read() setup( name='SWSHplotting', version='0.0.1', author='Jonas Freimann', author_email='jonas.freissmann@hs-flensburg.de', description='Plotting package for SWSH project.', long_discription=long_discrip...
27.625
54
0.660633
from setuptools import setup with open('README.rst', 'r') as f: long_discription = f.read() setup( name='SWSHplotting', version='0.0.1', author='Jonas Freißmann', author_email='jonas.freissmann@hs-flensburg.de', description='Plotting package for SWSH project.', long_discription=long_discri...
2
0
0
0
0
0
0
0
0
95fdcd84ec7a4cb3a4fffd244709e83994b1e4f2
145
py
Python
custom_components/ping_socket/__init__.py
gtjamesa/hacs-ping-socket
f6573085c93b08227b2c9146589cdf52ee07208b
[ "Apache-2.0" ]
null
null
null
custom_components/ping_socket/__init__.py
gtjamesa/hacs-ping-socket
f6573085c93b08227b2c9146589cdf52ee07208b
[ "Apache-2.0" ]
null
null
null
custom_components/ping_socket/__init__.py
gtjamesa/hacs-ping-socket
f6573085c93b08227b2c9146589cdf52ee07208b
[ "Apache-2.0" ]
null
null
null
"""The Ping (Socket) integration.""" from __future__ import annotations
20.714286
44
0.8
"""The Ping (Socket) integration.""" from __future__ import annotations from homeassistant.core import HomeAssistant from .const import DOMAIN
0
0
0
0
0
0
0
27
46
ef6dafc292592cc65495f02716c37ee2bd4f3e34
10,693
py
Python
11- TP 3/pruebas_grafo.py
ordonezf/algo2
5aa4d2594e558747cdb7f28eb302f5b386b920d9
[ "MIT" ]
null
null
null
11- TP 3/pruebas_grafo.py
ordonezf/algo2
5aa4d2594e558747cdb7f28eb302f5b386b920d9
[ "MIT" ]
null
null
null
11- TP 3/pruebas_grafo.py
ordonezf/algo2
5aa4d2594e558747cdb7f28eb302f5b386b920d9
[ "MIT" ]
3
2019-10-10T22:11:51.000Z
2020-10-29T19:28:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import time global resultados_pruebas resultados_pruebas = { "OK" : 0, "ERROR" : 0 } def correr_prueba(caso_prueba, descripcion): ''' Comprueba la igualdad pasada por parmetro como caso_prueba y muestra la descripcin y su resultado en pantalla. ...
41.607004
127
0.59076
#!/usr/bin/env python # -*- coding: utf-8 -*- import time from grafo import * global resultados_pruebas resultados_pruebas = { "OK" : 0, "ERROR" : 0 } def correr_prueba(caso_prueba, descripcion): ''' Comprueba la igualdad pasada por parámetro como caso_prueba y muestra la descripción y su r...
8
0
0
0
0
8,690
0
-2
267
ac49714a48fb337d24a723172e257715708640b0
5,542
py
Python
packages/models-library/src/models_library/utils/database_models_factory.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
packages/models-library/src/models_library/utils/database_models_factory.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
packages/models-library/src/models_library/utils/database_models_factory.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
""" Automatic creation of pydantic model classes from a sqlalchemy table SEE: Copied and adapted from https://github.com/tiangolo/pydantic-sqlalchemy/blob/master/pydantic_sqlalchemy/main.py """ import json import warnings from datetime import datetime from typing import Any, Callable, Optional, Tuple, Type from uuid ...
32.6
116
0.652652
""" Automatic creation of pydantic model classes from a sqlalchemy table SEE: Copied and adapted from https://github.com/tiangolo/pydantic-sqlalchemy/blob/master/pydantic_sqlalchemy/main.py """ import json import warnings from datetime import datetime from typing import Any, Callable, Container, Dict, List, Optional,...
0
0
0
27
0
2,283
0
87
113
1d6be19e939e1916d9f24b481180000afcaae393
721
py
Python
setup.py
colin-nolan/patchwork-docker
084b077724e98f0cdcdcf24626dee625b02ee38c
[ "MIT" ]
null
null
null
setup.py
colin-nolan/patchwork-docker
084b077724e98f0cdcdcf24626dee625b02ee38c
[ "MIT" ]
2
2018-11-15T21:51:13.000Z
2019-12-24T19:15:20.000Z
setup.py
colin-nolan/patchwork-docker
084b077724e98f0cdcdcf24626dee625b02ee38c
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from patchworkdocker.meta import VERSION, DESCRIPTION, PACKAGE_NAME, EXECUTABLE_NAME setup( name=PACKAGE_NAME, version=VERSION, author="Colin Nolan", author_email="cn580@alumni.york.ac.uk", packages=find_packages(exclude=["tests"]), install_requires=...
30.041667
84
0.693481
from setuptools import setup, find_packages from patchworkdocker.meta import VERSION, DESCRIPTION, PACKAGE_NAME, EXECUTABLE_NAME setup( name=PACKAGE_NAME, version=VERSION, author="Colin Nolan", author_email="cn580@alumni.york.ac.uk", packages=find_packages(exclude=["tests"]), install_requires=...
0
0
0
0
0
0
0
0
0
dcb01feee41c2fe13555c3a52882495029d903b3
1,073
py
Python
config.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
1
2017-10-04T12:21:20.000Z
2017-10-04T12:21:20.000Z
config.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
null
null
null
config.py
nonemaw/YeTi
92a3ba89f5b7fd8b2d5d3f5929ade0bf0b9e5cbe
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) config = { 'test': TestingConfig, 'production': Config, 'default': DevelopmentConfig }
27.512821
84
0.708295
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: # MASTER_KEY: for password encryption / decryption # SECRET_KEY: for token encryption / decryption MASTER_KEY = os.environ.get('MASTER_KEY') or 'QnpNp9A5tUFJKnQtWXRBHSnknRil24JmH' SECRET_KEY = os.environ.get('SECRET_KEY') or ...
0
28
0
809
0
0
0
0
69
157911bd40ad412e9ac2c7bb943ae3def4b20fad
37,204
py
Python
setup_process_process.py
karttur/geoimagine03-setup_processes
375b2fbf7486c4326f60e4ce2cfcc4ffa7216133
[ "BSD-3-Clause" ]
null
null
null
setup_process_process.py
karttur/geoimagine03-setup_processes
375b2fbf7486c4326f60e4ce2cfcc4ffa7216133
[ "BSD-3-Clause" ]
null
null
null
setup_process_process.py
karttur/geoimagine03-setup_processes
375b2fbf7486c4326f60e4ce2cfcc4ffa7216133
[ "BSD-3-Clause" ]
null
null
null
''' Created on 20 Jan 2021 @author: thomasgumbricht ''' # Standard library imports from os import path, makedirs from sys import exit # Third party imports from base64 import b64encode import netrc from pyproj import Proj, transform # Package application imports from geoimagine.ancillary import ProcessAncilla...
29.550437
199
0.552279
''' Created on 20 Jan 2021 @author: thomasgumbricht ''' # Standard library imports from os import path, makedirs from sys import exit # Third party imports import psycopg2 from base64 import b64encode, b64decode import netrc from pyproj import Proj, transform # Package application imports from geoimagine.anc...
0
0
0
17,168
0
0
0
86
138
db6aa0223ca8dc9eebb1ca064d506c779b6d6969
453
py
Python
fedoralink/tests/test_inheritance.py
CESNET/fedoralink
d8afdccbfe8514522fb167fc7c59c4876a579b28
[ "Apache-2.0" ]
null
null
null
fedoralink/tests/test_inheritance.py
CESNET/fedoralink
d8afdccbfe8514522fb167fc7c59c4876a579b28
[ "Apache-2.0" ]
14
2017-06-02T12:50:40.000Z
2020-06-06T07:49:21.000Z
fedoralink/tests/test_inheritance.py
CESNET/fedoralink
d8afdccbfe8514522fb167fc7c59c4876a579b28
[ "Apache-2.0" ]
null
null
null
import django django.setup()
19.695652
54
0.746137
import django from rdflib.namespace import DC from unittest import TestCase from fedoralink.common_namespaces.dc import DCObject from fedoralink.indexer.fields import IndexedTextField django.setup() class BlahObject(DCObject): blah = IndexedTextField(DC.blah) class DCObjectTestCase(TestCase): def setUp(s...
0
0
0
203
0
0
0
82
136
c716ccca771f7f65da1c9401ff45f2e241878ac9
1,229
py
Python
mosek/9.0/tools/examples/python/opt_server_sync.py
star2dust/MOSEK-MATLAB
c9be61935573ae07a5d4fdf76079874c6f821ca3
[ "MIT" ]
null
null
null
mosek/9.0/tools/examples/python/opt_server_sync.py
star2dust/MOSEK-MATLAB
c9be61935573ae07a5d4fdf76079874c6f821ca3
[ "MIT" ]
null
null
null
mosek/9.0/tools/examples/python/opt_server_sync.py
star2dust/MOSEK-MATLAB
c9be61935573ae07a5d4fdf76079874c6f821ca3
[ "MIT" ]
1
2022-02-24T02:51:35.000Z
2022-02-24T02:51:35.000Z
## # Copyright : Copyright (c) MOSEK ApS, Denmark. All rights reserved. # # File : opt_server_sync.py # # Purpose : Demonstrates how to use MOSEK OptServer # to solve optimization problem asynchronously ## import mosek import sys if len(sys.argv) <= 3: print("Missing argument, syntax is:") ...
29.261905
74
0.637917
## # Copyright : Copyright (c) MOSEK ApS, Denmark. All rights reserved. # # File : opt_server_sync.py # # Purpose : Demonstrates how to use MOSEK OptServer # to solve optimization problem asynchronously ## import mosek import sys def streamprinter(msg): sys.stdout.write(msg) sys.stdout.f...
0
0
0
0
0
51
0
0
23
626900ffe1de120755b7f4fdf185f221175d8c4e
4,683
py
Python
api/pages/node/tasks.py
isabella232/incubator-warble-server
fa26696793fb7998ca7c207780d556f8006f63d9
[ "Apache-2.0" ]
1
2021-11-10T15:55:50.000Z
2021-11-10T15:55:50.000Z
api/pages/node/tasks.py
apache/incubator-warble-server
fa26696793fb7998ca7c207780d556f8006f63d9
[ "Apache-2.0" ]
1
2021-11-04T12:36:21.000Z
2021-11-04T12:36:21.000Z
api/pages/node/tasks.py
isabella232/incubator-warble-server
fa26696793fb7998ca7c207780d556f8006f63d9
[ "Apache-2.0" ]
2
2021-11-04T12:34:14.000Z
2021-11-10T15:55:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, ...
38.385246
133
0.542814
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, ...
0
0
0
0
2,985
0
0
-29
112
b6366e7bfc0344901258f14b4e44a60e4ac76ab4
1,405
py
Python
benchmarks/bm-solver.py
MaxDesiatov/ttstar
4ac6e124bddfbeaa133713d829dccaa596626be6
[ "BSD-3-Clause" ]
18
2015-06-12T14:58:05.000Z
2021-08-31T14:36:48.000Z
benchmarks/bm-solver.py
MaxDesiatov/ttstar
4ac6e124bddfbeaa133713d829dccaa596626be6
[ "BSD-3-Clause" ]
1
2016-02-03T12:43:32.000Z
2017-09-12T17:13:40.000Z
benchmarks/bm-solver.py
MaxDesiatov/ttstar
4ac6e124bddfbeaa133713d829dccaa596626be6
[ "BSD-3-Clause" ]
1
2021-08-31T19:08:56.000Z
2021-08-31T19:08:56.000Z
#!/usr/bin/env python3 WARMUPS = 8 SAMPLES = 64 if __name__ == '__main__': main()
26.018519
96
0.520285
#!/usr/bin/env python3 import os import time import json import subprocess WARMUPS = 8 SAMPLES = 64 def time_cmd(cmd): # TODO: use perf stat -x \; ts_start = time.perf_counter() subprocess.check_call(cmd, stdout=subprocess.DEVNULL) ts_end = time.perf_counter() return ts_end - ts_start def bench...
0
0
0
0
205
990
0
-36
158
4d84a444f2a53283c6de1b3e601f11d5f427c1d0
54
py
Python
cwltool/__main__.py
wtsi-hgi/cwltool
6d3e9f0b0f2c4fb78b76eb4270451f29515322f3
[ "Apache-2.0" ]
2
2017-07-06T13:25:23.000Z
2017-07-06T13:26:15.000Z
cwltool/__main__.py
igormusinov/cwl_parser_python3
5b2cd24496c424fbe0923d6b1f715076fab1ca4c
[ "Apache-2.0" ]
1
2018-05-10T06:45:21.000Z
2018-05-10T06:45:21.000Z
cwltool/__main__.py
wtsi-hgi/cwltool
6d3e9f0b0f2c4fb78b76eb4270451f29515322f3
[ "Apache-2.0" ]
null
null
null
import sys from . import main sys.exit(main.main())
9
21
0.703704
import sys from . import main sys.exit(main.main())
0
0
0
0
0
0
0
0
0
2c2d44421849e740579640e697d887ed33ae10ff
339
py
Python
python/Array/array_optimal_task.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
51
2020-09-27T15:28:05.000Z
2021-09-29T02:07:25.000Z
python/Array/array_optimal_task.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
152
2020-09-27T12:12:12.000Z
2021-10-03T18:22:15.000Z
python/Array/array_optimal_task.py
parizadas/HacktoberFest2020-3
48cb0c7f2d43d38cb7d8343df18035c9288c63ea
[ "MIT" ]
453
2020-09-27T12:34:35.000Z
2021-10-16T08:33:33.000Z
''' Problem Statement: Assign tasks to workers so that the time it takes to complete all the tasks is minimized given a count of workers and an array where each element indicates the duration of a task. Each worker must work on exactly two tasks. ''' A = [5, 6, 1, 8, 3, 8] A = sorted(A) for i in range(len(A)//2): ...
28.25
70
0.696165
''' Problem Statement: Assign tasks to workers so that the time it takes to complete all the tasks is minimized given a count of workers and an array where each element indicates the duration of a task. Each worker must work on exactly two tasks. ''' A = [5, 6, 1, 8, 3, 8] A = sorted(A) for i in range(len(A)//2): ...
0
0
0
0
0
0
0
0
0
ea1a2a78718980b8b801d1f988b6e1deee5bf27a
556
py
Python
async_demos/async_demos/app_auth/views.py
Minkov/python-web-framework-demos-
30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305
[ "MIT" ]
2
2022-03-06T11:56:35.000Z
2022-03-20T09:31:45.000Z
async_demos/async_demos/app_auth/views.py
Minkov/python-web-framework-demos-
30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305
[ "MIT" ]
null
null
null
async_demos/async_demos/app_auth/views.py
Minkov/python-web-framework-demos-
30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305
[ "MIT" ]
4
2022-03-17T18:05:19.000Z
2022-03-22T16:38:11.000Z
from django.contrib.auth import get_user_model UserModel = get_user_model()
27.8
86
0.730216
import random from django.contrib.auth import get_user_model from django.http import HttpResponse from django.contrib.auth.views import PasswordResetView UserModel = get_user_model() def create_fake_user(request): rand_count = 6 username_suffix = ''.join(str(random.randint(1, 1000)) for _ in range(rand_cou...
0
0
0
0
0
347
0
41
90
18d9b55a173fb8d115633edf07fb1af23e4a65aa
2,957
py
Python
fire_risk/backends/__init__.py
tbuffington7/fire-risk
c85fec01ae6d9940aed184db910a8d994ee7f8a1
[ "MIT" ]
4
2015-10-21T03:11:28.000Z
2019-05-29T15:53:16.000Z
fire_risk/backends/__init__.py
tbuffington7/fire-risk
c85fec01ae6d9940aed184db910a8d994ee7f8a1
[ "MIT" ]
3
2015-07-30T14:06:03.000Z
2017-03-16T15:41:11.000Z
fire_risk/backends/__init__.py
tbuffington7/fire-risk
c85fec01ae6d9940aed184db910a8d994ee7f8a1
[ "MIT" ]
7
2015-04-30T15:13:22.000Z
2017-01-19T00:26:34.000Z
if __name__ == '__main__': import doctest doctest.testmod()
26.401786
112
0.620561
import psycopg2 from .queries import ALL_RESIDENTIAL_FIRES, RESIDENTIAL_FIRES_BY_FDID_STATE_HAZARD from psycopg2.extras import DictCursor class Backend(object): """ Backend mixin that should be used to implement APIs to read data. """ def connect(self): """ Connect to the backend. ...
0
0
0
2,676
0
0
0
72
136
75fa7f1f4b459809c4fe9c021ab8b1be2dbea216
9,404
py
Python
src/hyperad/contents.py
huykingsofm/hyperad
f0de456a9d9550492263b134fad612fa8954f1f3
[ "MIT" ]
null
null
null
src/hyperad/contents.py
huykingsofm/hyperad
f0de456a9d9550492263b134fad612fa8954f1f3
[ "MIT" ]
null
null
null
src/hyperad/contents.py
huykingsofm/hyperad
f0de456a9d9550492263b134fad612fa8954f1f3
[ "MIT" ]
null
null
null
from typing import Dict _REQUEST_PARAMS = Dict
30.237942
79
0.579647
import io import os import abc import mimetypes from json import dumps as jsondumps from typing import Any, Dict, Iterable, List, Optional, Union from hyperad.constants import ( CONTENT_TYPE, CONTENT_DISPOSITION, APPLICATION_JSON, MULTIPART_FORM_DATA, TEXT_PLAIN, APPLICATION_X_WWW_FORM_URLENCODED, APPLICAT...
0
266
0
7,699
0
792
0
203
385
544bf537de2cb45094c403f8ac2839fa63362728
590
py
Python
doc/src/harmonic/Programs/p1plot.py
Shield94/Physics321
9875a3bf840b0fa164b865a3cb13073aff9094ca
[ "CC0-1.0" ]
20
2020-01-09T17:41:16.000Z
2022-03-09T00:48:58.000Z
doc/src/harmonic/Programs/p1plot.py
Shield94/Physics321
9875a3bf840b0fa164b865a3cb13073aff9094ca
[ "CC0-1.0" ]
6
2020-01-08T03:47:53.000Z
2020-12-15T15:02:57.000Z
doc/src/harmonic/Programs/p1plot.py
Shield94/Physics321
9875a3bf840b0fa164b865a3cb13073aff9094ca
[ "CC0-1.0" ]
33
2020-01-10T20:40:55.000Z
2022-02-11T20:28:41.000Z
# Common imports import numpy as np import matplotlib.pyplot as plt Deltax = 0.01 #set up arrays xinitial = -5.0 xfinal = 5.0 n = ceil((xfinal-xinitial)/Deltax) x = np.zeros(n) for i in range(n): x[i] = xinitial+i*Deltax V = np.zeros(n) # Initial conditions as compact 2-dimensional arrays alpha = 10.0 beta = 2.0...
17.352941
52
0.659322
# Common imports import numpy as np import pandas as pd from math import * import matplotlib.pyplot as plt Deltax = 0.01 #set up arrays xinitial = -5.0 xfinal = 5.0 n = ceil((xfinal-xinitial)/Deltax) x = np.zeros(n) for i in range(n): x[i] = xinitial+i*Deltax V = np.zeros(n) # Initial conditions as compact 2-dim...
0
0
0
0
0
0
0
-5
44
808ddbc1ca80591d7d979f4448e9dc357298467a
8,180
py
Python
tests/test_cache.py
linkyndy/freon
d8bbfc0c0e53d082426faefc392a99c0074aa990
[ "MIT" ]
1
2020-05-17T09:09:03.000Z
2020-05-17T09:09:03.000Z
tests/test_cache.py
linkyndy/freon
d8bbfc0c0e53d082426faefc392a99c0074aa990
[ "MIT" ]
1
2019-06-02T10:10:13.000Z
2019-06-02T10:10:13.000Z
tests/test_cache.py
linkyndy/freon
d8bbfc0c0e53d082426faefc392a99c0074aa990
[ "MIT" ]
1
2020-05-17T07:12:15.000Z
2020-05-17T07:12:15.000Z
try: from unittest import mock except ImportError:
39.516908
96
0.712714
try: from unittest import mock except ImportError: import mock from . import BaseTestCase from freon.cache import Cache from freon.backends.redis import RedisBackend from freon.serializers.msgpack import MsgpackSerializer class CacheTestCase(BaseTestCase): def setUp(self): self.cache = Cache() ...
0
2,084
0
5,624
0
0
0
61
346
f83d8fb2f22e4e4fb416e8955b98fde400ff2ba7
799
py
Python
source/commons/environment.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
source/commons/environment.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
source/commons/environment.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
import os APPLICATION_DEBUG = os.environ.get('APPLICATION_DEBUG', True) APPLICATION_HOST = os.environ.get('APPLICATION_HOST', '0.0.0.0') APPLICATION_PORT = os.environ.get('APPLICATION_PORT', 5000) AWS_REGION = os.environ.get('AWS_REGION', 'us-east-1') DATABASE_HOST = os.environ.get('DATABASE_HOST', 'hgpoker.c13gml6m...
47
99
0.779725
import os APPLICATION_DEBUG = os.environ.get('APPLICATION_DEBUG', True) APPLICATION_HOST = os.environ.get('APPLICATION_HOST', '0.0.0.0') APPLICATION_PORT = os.environ.get('APPLICATION_PORT', 5000) AWS_REGION = os.environ.get('AWS_REGION', 'us-east-1') DATABASE_HOST = os.environ.get('DATABASE_HOST', 'hgpoker.c13gml6m...
0
0
0
0
0
0
0
0
0
546ffb6b7151bc82ed6e85afe3a5ce8babc0960a
231
py
Python
math-and-algorithm/015.py
silphire/training-with-books
bd07f7376996828b6cb4000d654cdc5f53d1c589
[ "MIT" ]
null
null
null
math-and-algorithm/015.py
silphire/training-with-books
bd07f7376996828b6cb4000d654cdc5f53d1c589
[ "MIT" ]
4
2020-01-04T14:05:45.000Z
2020-01-19T14:53:03.000Z
math-and-algorithm/015.py
silphire/training-with-books
bd07f7376996828b6cb4000d654cdc5f53d1c589
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_o a, b = map(int, input().split()) a, b = max(a, b), min(a, b) while b > 0: if a > b: a, b = b, a % b else: a, b = b % a, a print(a)
23.1
75
0.536797
# https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_o a, b = map(int, input().split()) a, b = max(a, b), min(a, b) while b > 0: if a > b: a, b = b, a % b else: a, b = b % a, a print(a)
0
0
0
0
0
0
0
0
0
16134b52b06ba3893dd34ead991a3bbda761e6bd
6,415
py
Python
test_demo/test.py
ymli39/ACEnet-for-Neuroanatomy-Segmentation
6b3f59ece3f6bf04753b8ac78a6e0cf4d927f90b
[ "MIT" ]
16
2020-02-21T15:35:47.000Z
2022-02-17T09:08:30.000Z
test_demo/test.py
ymli39/ACEnet-for-Neuroanatomy-Segmentation
6b3f59ece3f6bf04753b8ac78a6e0cf4d927f90b
[ "MIT" ]
4
2021-06-13T13:53:09.000Z
2021-07-30T02:38:01.000Z
test_demo/test.py
ymli39/ACEnet-for-Neuroanatomy-Segmentation
6b3f59ece3f6bf04753b8ac78a6e0cf4d927f90b
[ "MIT" ]
2
2021-06-29T00:19:57.000Z
2022-01-04T07:01:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Yuemeng Li """ #######run command########### #python CUDA_VISIBLE_DEVICES=0 test.py --data-name /home/yli/MRI_project/resampled/testing-images/1003_3.nii.gz --save-dir ./MRI_model/MALC_coarse/output --seg-task coarse if __name__ == '__main_...
37.95858
171
0.577553
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Yuemeng Li """ from backbone import Backbone import torch import argparse import os import numpy as np from torch.utils.data import DataLoader from tqdm import tqdm from torch.nn import DataParallel import nibabel as nib import pdb #######run command#######...
0
0
0
2,828
0
2,978
0
-3
267
a9d7da95d3c11bcacfb51db7bb4dd4b42dbb6edd
11,456
py
Python
cfc_app/legiscan_api.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
44
2020-10-19T13:06:10.000Z
2022-01-23T10:56:31.000Z
cfc_app/legiscan_api.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
111
2020-10-20T22:12:58.000Z
2022-03-28T00:25:13.000Z
cfc_app/legiscan_api.py
ephyle/Legit-Info
7f3845563a64299aa64e4fdba75949276ed9a711
[ "BSD-2-Clause", "CC-BY-4.0", "Apache-2.0" ]
31
2021-02-08T22:32:37.000Z
2022-03-11T10:57:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # LegiscanAPI.py -- Pull data from Legiscan.com API # By Uchechukwu Uboh and Tony Pearson, IBM, 202 # # LegiscanAPI class automates the retrival and curation of bill data for a # particular US state. Before running this class, your Legiscan.com apikey # needs to be an ...
37.933775
79
0.577339
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # LegiscanAPI.py -- Pull data from Legiscan.com API # By Uchechukwu Uboh and Tony Pearson, IBM, 202 # # LegiscanAPI class automates the retrival and curation of bill data for a # particular US state. Before running this class, your Legiscan.com apikey # needs to be an ...
0
153
0
4,802
0
0
0
-12
91
0750c61416b4988b208fa6de0bc198d85c47ad49
17,662
py
Python
databricks/koalas/tests/test_indexing.py
manuzhang/koalas
6d242edcf920233448d7be9a491595dbb3c58cb6
[ "Apache-2.0" ]
2
2020-01-13T14:40:37.000Z
2020-03-13T20:59:08.000Z
databricks/koalas/tests/test_indexing.py
bogdanghit/koalas
b1e9033691cce74236382c23010c1ef4b1572f0e
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_indexing.py
bogdanghit/koalas
b1e9033691cce74236382c23010c1ef4b1572f0e
[ "Apache-2.0" ]
1
2019-12-31T16:38:32.000Z
2019-12-31T16:38:32.000Z
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
41.952494
100
0.544163
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
0
7,087
0
9,404
0
0
0
142
181
04c0f4a82986e04ce4ffab231bc208f979f99bca
1,825
py
Python
code/gifs-filter/c3d-models/train.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
94
2016-04-07T15:07:13.000Z
2022-02-25T07:19:57.000Z
code/gifs-filter/c3d-models/train.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
9
2016-08-22T15:35:27.000Z
2020-10-13T15:48:52.000Z
code/gifs-filter/c3d-models/train.py
raingo/TGIF-Release
3e54d2f71418d8a2e9f5f61aa5be0edb9c0ac2b8
[ "BSD-3-Clause" ]
22
2016-04-07T15:39:57.000Z
2022-03-04T08:04:47.000Z
#!/usr/bin/env python """ Python source code - replace this with a description of the code and write the code below this text. """ if __name__ == "__main__": main() # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
26.071429
191
0.664658
#!/usr/bin/env python """ Python source code - replace this with a description of the code and write the code below this text. """ import os.path as osp from sklearn import grid_search from sklearn.ensemble import RandomForestClassifier from sklearn import metrics from sklearn.cross_validation import StratifiedKFold...
0
0
0
0
0
1,317
0
77
204
8acf7db52f991b13a6ffcaf21bf61c0336798336
9,213
py
Python
scripts/ci/pre_commit/pre_commit_check_setup_extra_packages_ref.py
jkugiya/airflow
1dfbb8d2031cb8a3e95e4bf91aa478857c5c3a85
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2021-07-30T16:46:46.000Z
2021-10-19T07:18:47.000Z
scripts/ci/pre_commit/pre_commit_check_setup_extra_packages_ref.py
jkugiya/airflow
1dfbb8d2031cb8a3e95e4bf91aa478857c5c3a85
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
210
2021-07-17T00:25:52.000Z
2021-12-29T00:44:48.000Z
scripts/ci/pre_commit/pre_commit_check_setup_extra_packages_ref.py
jkugiya/airflow
1dfbb8d2031cb8a3e95e4bf91aa478857c5c3a85
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-04-14T11:15:17.000Z
2021-12-15T16:58:24.000Z
#!/usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
35.848249
102
0.717356
#!/usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "...
0
0
0
0
0
171
0
68
23
f00c8279de3ad9ca8cc305d62c3b23b069617356
4,011
py
Python
my_code/plot_results.py
ilyakava/kaggle-dr
a025ab992b35b2680249d84bc631d63306f2d431
[ "MIT" ]
56
2015-07-28T04:57:46.000Z
2021-06-23T02:56:20.000Z
my_code/plot_results.py
MissZhou666/kaggle-dr
a025ab992b35b2680249d84bc631d63306f2d431
[ "MIT" ]
2
2015-07-30T12:34:40.000Z
2016-03-30T12:25:29.000Z
my_code/plot_results.py
MissZhou666/kaggle-dr
a025ab992b35b2680249d84bc631d63306f2d431
[ "MIT" ]
20
2015-07-28T05:03:13.000Z
2019-04-25T08:52:52.000Z
import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-f", "--result-file", type=str, default=None) parser.add_argument("-m", "--max-epoch", t...
41.78125
127
0.636749
import sys import cPickle import numpy import matplotlib.pyplot as plt import argparse import pdb def plot_results(result_file, max_epoch, include_training_variance): result_file_id = result_file.split('-')[0].split('/')[-1] f = open(result_file) historical_train_losses, historical_val_losses, historical_...
0
0
0
0
0
3,275
0
-28
134
d5f9acc5dc85c187806173357e4b6049068939aa
494
py
Python
backend/components/models.py
VilhelmPrytz/pong-online
d90d2cd8b1ee38972b36f6f5152588cb8c73e386
[ "MIT" ]
null
null
null
backend/components/models.py
VilhelmPrytz/pong-online
d90d2cd8b1ee38972b36f6f5152588cb8c73e386
[ "MIT" ]
null
null
null
backend/components/models.py
VilhelmPrytz/pong-online
d90d2cd8b1ee38972b36f6f5152588cb8c73e386
[ "MIT" ]
null
null
null
# pong-online # https://github.com/VilhelmPrytz/pong-online # Copyright (C) Vilhelm Prytz 2019 # 1 - waiting for opponent to join # 2 - in game
20.583333
50
0.6417
# pong-online # https://github.com/VilhelmPrytz/pong-online # Copyright (C) Vilhelm Prytz 2019 from components.tools import random_string # 1 - waiting for opponent to join # 2 - in game class Game: def __init__(self): self.p1_pos = 0 self.p2_pos = 0 self.p1_key = random_string(length=50...
0
0
0
281
0
0
0
21
46