hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
972
max_issues_repo_name
stringlengths
6
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
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
34afc90adb752077ffd56f104a6618bad1c795a3
10,343
py
Python
assets/mediasite/controller.py
d33bs/mediasite_scheduler
057dc17a739f5ac1eee17518ced63479077e9557
[ "MIT" ]
null
null
null
assets/mediasite/controller.py
d33bs/mediasite_scheduler
057dc17a739f5ac1eee17518ced63479077e9557
[ "MIT" ]
null
null
null
assets/mediasite/controller.py
d33bs/mediasite_scheduler
057dc17a739f5ac1eee17518ced63479077e9557
[ "MIT" ]
null
null
null
""" Mediasite controller for medaisite scheduler. Performs various Mediasite API work using web_api client. Last modified: May 2018 By: Dave Bunten License: MIT - see license.txt """ import os import sys import logging import json import time import assets.mediasite.model as model import assets.media...
43.457983
172
0.633955
96785ac761f4d7e95720675d89a5d28a2f78782d
1,301
py
Python
python3/koans/triangle.py
drewmoore/python-koans
d981670d1206bfc0f49fe5507bf95087d9d74b2f
[ "MIT" ]
null
null
null
python3/koans/triangle.py
drewmoore/python-koans
d981670d1206bfc0f49fe5507bf95087d9d74b2f
[ "MIT" ]
null
null
null
python3/koans/triangle.py
drewmoore/python-koans
d981670d1206bfc0f49fe5507bf95087d9d74b2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Triangle Project Code. # Triangle analyzes the lengths of the sides of a triangle # (represented by a, b and c) and returns the type of triangle. # # It returns: # 'equilateral' if all sides are equal # 'isosceles' if exactly 2 sides are equal # 'scalene' ...
25.019231
63
0.574942
ad780375cb3d4cebe57d696318dd8f9ca9d24c98
28
py
Python
prototyper/build/__init__.py
vitalik/django-prototyper
0bf7b2437c45868d2ee90c7c4d69c7d71247c978
[ "MIT" ]
114
2018-03-19T14:45:22.000Z
2022-02-07T20:42:28.000Z
prototyper/build/__init__.py
vitalik/django-prototyper
0bf7b2437c45868d2ee90c7c4d69c7d71247c978
[ "MIT" ]
7
2018-05-04T13:35:20.000Z
2022-02-10T12:03:46.000Z
prototyper/build/__init__.py
vitalik/django-prototyper
0bf7b2437c45868d2ee90c7c4d69c7d71247c978
[ "MIT" ]
8
2018-06-25T08:09:06.000Z
2022-02-07T20:42:36.000Z
from .main import run_build
14
27
0.821429
c972bd595b31caedc3c5da2e0ca0978d7fec36c6
954
py
Python
setup.py
neoden/flask-filecache
54bf9f0862497e139426ab60dba07f767c0df9d2
[ "MIT" ]
null
null
null
setup.py
neoden/flask-filecache
54bf9f0862497e139426ab60dba07f767c0df9d2
[ "MIT" ]
null
null
null
setup.py
neoden/flask-filecache
54bf9f0862497e139426ab60dba07f767c0df9d2
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='Flask-FileCache', version='0.1', url='https://github.com/neoden/flask-filecache/', license='MIT', author='Lenar Imamutdinov', author_email='lenar.imamutdinov@gmail.com', description='File cache', long_description=__doc__, py_modules=['flask...
28.909091
70
0.63522
fef32c06024f115b592a6a16144f7bbf2103999a
3,645
py
Python
example/example_car.py
airysen/racog
8751436437e9e82d80d54617a8b39fae5fd0ebdd
[ "MIT" ]
3
2019-03-06T07:58:22.000Z
2021-03-12T18:10:46.000Z
example/example_car.py
airysen/racog
8751436437e9e82d80d54617a8b39fae5fd0ebdd
[ "MIT" ]
1
2019-08-19T18:51:02.000Z
2019-08-19T18:51:02.000Z
example/example_car.py
airysen/racog
8751436437e9e82d80d54617a8b39fae5fd0ebdd
[ "MIT" ]
1
2019-08-19T19:07:05.000Z
2019-08-19T19:07:05.000Z
# Dataset from https://archive.ics.uci.edu/ml/datasets/Car+Evaluation import numpy as np import pandas as pd from collections import Counter from sklearn.model_selection import train_test_split, GridSearchCV, StratifiedKFold from imblearn.metrics import geometric_mean_score from sklearn.metrics import mean_squared_...
29.395161
99
0.668038
8b4640766e46b0cb611778c75f09964f7f67e2e4
3,437
py
Python
tests/integration/actions/run/test_stdout_tmux.py
saito-hideki/ansible-navigator
0a15b83c2a9a548315765360bd19d6fd270862d4
[ "Apache-2.0" ]
null
null
null
tests/integration/actions/run/test_stdout_tmux.py
saito-hideki/ansible-navigator
0a15b83c2a9a548315765360bd19d6fd270862d4
[ "Apache-2.0" ]
null
null
null
tests/integration/actions/run/test_stdout_tmux.py
saito-hideki/ansible-navigator
0a15b83c2a9a548315765360bd19d6fd270862d4
[ "Apache-2.0" ]
null
null
null
"""Tests for run from CLI, stdout.""" import pytest from ..._interactions import Command from ..._interactions import SearchFor from ..._interactions import UiTestStep from ..._interactions import add_indices from .base import BaseClass from .base import inventory_path from .base import playbook_path from .base import...
29.376068
74
0.603142
0f56dcd9bdff590914b90456c0e9a795e29fae57
99
wsgi
Python
sw2srv.wsgi
FredHutch/swift-switch-account
1658b68943ebe28d1f7892f2e3085c91aa3c4430
[ "Apache-2.0" ]
2
2015-05-22T16:16:53.000Z
2016-06-29T22:44:55.000Z
sw2srv.wsgi
FredHutch/swift-switch-account
1658b68943ebe28d1f7892f2e3085c91aa3c4430
[ "Apache-2.0" ]
23
2015-01-06T16:20:42.000Z
2022-02-14T18:41:50.000Z
sw2srv.wsgi
FredHutch/swift-switch-account
1658b68943ebe28d1f7892f2e3085c91aa3c4430
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, '/var/www/toolbox/sw2srv' ) from sw2srv import server as application
24.75
46
0.777778
2a4d0e6231826085d97ff99c822914fdfefc6260
4,938
py
Python
built-in/TensorFlow/Official/cv/image_classification/AlexNet_ID0259_for_TensorFlow/data_loader.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Official/cv/image_classification/AlexNet_ID0259_for_TensorFlow/data_loader.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Official/cv/image_classification/AlexNet_ID0259_for_TensorFlow/data_loader.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.043796
120
0.616039
32ae2034a929a3647bd9b4b99d896f130f965860
2,970
py
Python
python-utils/demo/python-demo2.py
wgy1109/python-utils
796f977fd5244bda881968839b9b87317d4743e6
[ "MIT" ]
1
2019-10-22T09:04:40.000Z
2019-10-22T09:04:40.000Z
python-utils/demo/python-demo2.py
wgy1109/python-utils
796f977fd5244bda881968839b9b87317d4743e6
[ "MIT" ]
null
null
null
python-utils/demo/python-demo2.py
wgy1109/python-utils
796f977fd5244bda881968839b9b87317d4743e6
[ "MIT" ]
null
null
null
import re # 父类子类继承关系 class Parent: # 定义父类 def myMethod(self): print('调用父类方法') class Child(Parent): # 定义子类 def myMethod(self): print('调用子类方法') # 类的私有方法 class JustCounter: __secretCount = 0 # 私有变量 publicCount = 0 # 公开变量 def count(self): self.__sec...
27.757009
77
0.577441
01d35d0d9e3b58f4946a51c59da0e58ec2d05e22
2,099
py
Python
test/test_server.py
zrthstr/http_shrinkwrap
099e4f3a9f6ccccde758b5d78111f055c6397ce1
[ "Apache-2.0" ]
1
2022-02-26T12:23:14.000Z
2022-02-26T12:23:14.000Z
test/test_server.py
zrthstr/http_shrinkwrap
099e4f3a9f6ccccde758b5d78111f055c6397ce1
[ "Apache-2.0" ]
null
null
null
test/test_server.py
zrthstr/http_shrinkwrap
099e4f3a9f6ccccde758b5d78111f055c6397ce1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from random import randint from flask import Flask, request app = Flask(__name__, static_folder=None) @app.route('/') def info_rsq(): #print(app.url_map) return f'{str(app.url_map)}\n\n{str(request.headers)}\n' @app.route('/empty') def empty_req(): return '' @app.route('/static'...
25.597561
91
0.621725
3582bd3d221091fbed9ed5bd68bb2c11f6f974a1
1,603
py
Python
bin/zip.py
mrshu/stash
773d15b8fb3853a65c15fe160bf5584c99437170
[ "MIT" ]
1,822
2015-01-10T21:46:31.000Z
2022-03-28T13:07:15.000Z
bin/zip.py
geoffrey777/stash
2cbe1d494e62af1d98cd4f1fcaca20e894b249d0
[ "MIT" ]
362
2015-01-01T11:06:17.000Z
2022-03-29T14:54:13.000Z
bin/zip.py
geoffrey777/stash
2cbe1d494e62af1d98cd4f1fcaca20e894b249d0
[ "MIT" ]
261
2015-01-10T21:45:17.000Z
2022-03-28T11:27:21.000Z
# -*- coding: utf-8 -*- """ Package and compress (archive) files and directories """ from __future__ import print_function import os import sys import argparse import zipfile def main(args): ap = argparse.ArgumentParser() ap.add_argument('zipfile', help='') ap.add_argument('list', nargs='+', help='') ...
34.847826
82
0.534623
16b71f7e80ba417f3eec38c77ca01dcf30331a83
56,359
py
Python
tests/unittests/dataset_tests.py
Fariborzzz/fiftyone
06975961f5ee649dd36429feb21c959dfc0744ed
[ "Apache-2.0" ]
1
2021-12-17T10:11:37.000Z
2021-12-17T10:11:37.000Z
tests/unittests/dataset_tests.py
Fariborzzz/fiftyone
06975961f5ee649dd36429feb21c959dfc0744ed
[ "Apache-2.0" ]
null
null
null
tests/unittests/dataset_tests.py
Fariborzzz/fiftyone
06975961f5ee649dd36429feb21c959dfc0744ed
[ "Apache-2.0" ]
null
null
null
""" FiftyOne dataset-related unit tests. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ from datetime import date, datetime import gc import os import numpy as np import pytz import unittest import eta.core.utils as etau import fiftyone as fo from fiftyone import ViewField as F i...
32.919977
79
0.569421
a54485ef9208572c1c5999af0bfec68617ba48c1
309
py
Python
blogproject/blog/search_indexes.py
AcerFeng/DjangoBlog
d77787361f017ce31cb6c743c76ebec0a78f74e0
[ "Apache-2.0" ]
null
null
null
blogproject/blog/search_indexes.py
AcerFeng/DjangoBlog
d77787361f017ce31cb6c743c76ebec0a78f74e0
[ "Apache-2.0" ]
null
null
null
blogproject/blog/search_indexes.py
AcerFeng/DjangoBlog
d77787361f017ce31cb6c743c76ebec0a78f74e0
[ "Apache-2.0" ]
null
null
null
from haystack import indexes from .models import Post class PostIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) def get_model(self): return Post def index_queryset(self, using=None): return self.get_model().objects.all()
28.090909
62
0.731392
43d761d92bfe69d6a54582224ab4bc4ae0fd2bf3
6,330
py
Python
myUniSystem/venv/Lib/site-packages/crispy_forms/layout_slice.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
2,347
2016-09-15T08:59:15.000Z
2022-03-30T19:21:29.000Z
myUniSystem/venv/Lib/site-packages/crispy_forms/layout_slice.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
709
2016-09-15T08:54:20.000Z
2022-03-29T19:30:52.000Z
myUniSystem/venv/Lib/site-packages/crispy_forms/layout_slice.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
427
2016-09-20T16:29:41.000Z
2022-03-24T18:08:37.000Z
from crispy_forms.bootstrap import Container from crispy_forms.exceptions import DynamicError from crispy_forms.layout import Fieldset, MultiField class LayoutSlice: # List of layout objects that need args passed first before fields args_first = (Fieldset, MultiField, Container) def __init__(self, layout...
40.318471
116
0.567299
237d96f1a49a8e7506f60ff772258002d81b3a75
224
py
Python
app/src/configuration/loader.py
syamamura0x00/SlackEventAPIBase
c9f555f0d3e5c35c938ab16691a3838f4e6f04ec
[ "MIT" ]
null
null
null
app/src/configuration/loader.py
syamamura0x00/SlackEventAPIBase
c9f555f0d3e5c35c938ab16691a3838f4e6f04ec
[ "MIT" ]
null
null
null
app/src/configuration/loader.py
syamamura0x00/SlackEventAPIBase
c9f555f0d3e5c35c938ab16691a3838f4e6f04ec
[ "MIT" ]
null
null
null
import os ENV_NAME_FLASK_DEBUG = "FLASK_DEBUG" class _Config(object): def __init__(self): self.FLASK_DEBUG = self._load(ENV_NAME_FLASK_DEBUG) def _load(self, env_name): return os.getenv(env_name)
18.666667
59
0.705357
b4a46863899eb4cfe36f7469889e486fd724df65
2,582
py
Python
src/python/experiments/uncertainty_plot.py
chdhr-harshal/uber-driver-strategy
f21f968e7aa04d8105bf42e046ab120f813aa12f
[ "MIT" ]
5
2019-04-14T22:30:19.000Z
2021-02-05T17:54:25.000Z
src/python/experiments/uncertainty_plot.py
chdhr-harshal/uber-driver-strategy
f21f968e7aa04d8105bf42e046ab120f813aa12f
[ "MIT" ]
1
2018-02-17T10:36:43.000Z
2018-02-17T10:46:33.000Z
src/python/experiments/uncertainty_plot.py
chdhr-harshal/uber_driver_strategy
f21f968e7aa04d8105bf42e046ab120f813aa12f
[ "MIT" ]
null
null
null
#!/usr/local/bin/python from __future__ import division import sys sys.path.insert(1, '..') import os from city import * from driver import * import pandas as pd from multiprocessing import Pool # Set directory structure DATA_DIR = os.path.abspath("/home/grad3/harshal/Desktop/uber_driver_strategy/data/") PLOTS_DATA_...
31.108434
131
0.654531
96141c0a7bf225bcba788cb6d7f939be071e68e6
266
py
Python
Chapter_4/6.py
sai29/Python-John-Zelle-book
b6c54120cfc4742fa651a051b39fc94bf221543d
[ "MIT" ]
14
2015-01-20T15:02:13.000Z
2020-05-20T08:05:37.000Z
Chapter_4/6.py
sai29/Python-John-Zelle-book
b6c54120cfc4742fa651a051b39fc94bf221543d
[ "MIT" ]
1
2016-11-10T16:45:21.000Z
2017-04-17T03:36:46.000Z
Chapter_4/6.py
sai29/Python-John-Zelle-book
b6c54120cfc4742fa651a051b39fc94bf221543d
[ "MIT" ]
11
2015-01-06T18:46:15.000Z
2020-04-02T03:45:53.000Z
def main(): name = raw_input("Enter your name: ").lower() letters = " abcdefghijklmnopqrstuvwxyz" value = 0 for c in name: print c, letters.find(c) value = letters.find(c) + value print "The numeric value of your name is", value main()
22.166667
49
0.631579
7241e459b7e7c0aac705b1d6fcdecd576e4df6c1
168
py
Python
re_basic.py
nwinds/demoServer
73f8f6547bcede5e348bff205d8e48bbd84cf7e1
[ "Apache-2.0" ]
null
null
null
re_basic.py
nwinds/demoServer
73f8f6547bcede5e348bff205d8e48bbd84cf7e1
[ "Apache-2.0" ]
null
null
null
re_basic.py
nwinds/demoServer
73f8f6547bcede5e348bff205d8e48bbd84cf7e1
[ "Apache-2.0" ]
null
null
null
import re pattern = re.compile(r'login') match = pattern.match(r'login?cid=xxxx&eid=xxxxx&url=xxxx') if match: print(match.group()) print('re matching finished')
18.666667
59
0.714286
3188e3322169bd993117cb66289989a66c02d707
3,136
py
Python
ucscsdk/mometa/compute/ComputeProfile.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/mometa/compute/ComputeProfile.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/mometa/compute/ComputeProfile.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the general information for ComputeProfile ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class ComputeProfileConsts(): INT_ID_NONE = "none" POLICY_OWNER_LOCAL = "local" POLI...
52.266667
249
0.644452
7913b66a1025208cab80f3d906185ceaf3a9fb7f
2,549
py
Python
src/CreeDictionary/CreeDictionary/templatetags/url_extras.py
sarahrmoeller/morphodict
74db04b58076b7be5d9b0742d20e8b2014fb4aaa
[ "Apache-2.0" ]
8
2019-06-06T14:24:40.000Z
2020-11-11T01:43:11.000Z
src/CreeDictionary/CreeDictionary/templatetags/url_extras.py
sarahrmoeller/morphodict
74db04b58076b7be5d9b0742d20e8b2014fb4aaa
[ "Apache-2.0" ]
800
2019-05-23T15:32:03.000Z
2021-09-24T15:45:16.000Z
src/CreeDictionary/CreeDictionary/templatetags/url_extras.py
sarahrmoeller/morphodict
74db04b58076b7be5d9b0742d20e8b2014fb4aaa
[ "Apache-2.0" ]
8
2020-12-17T21:57:00.000Z
2021-09-17T20:03:51.000Z
""" Get absolute URLs for static assets. """ from urllib.parse import ParseResult, urlparse, urlunparse from django import template from django.templatetags.static import StaticNode from django.urls import reverse register = template.Library() class AbstaticNode(StaticNode): """ {% abstatic %} is like Djan...
29.988235
136
0.66889
a1df42170262a1f626e6d3abe836f1bfdae91b98
24,403
py
Python
mart/translator.py
yrf105/coot-videotext
da92342cf4271bd668e7180292469f44fa377c67
[ "Apache-2.0" ]
213
2020-11-03T08:16:18.000Z
2022-03-23T05:35:35.000Z
mart/translator.py
yrf105/coot-videotext
da92342cf4271bd668e7180292469f44fa377c67
[ "Apache-2.0" ]
43
2020-11-18T13:59:10.000Z
2022-03-30T17:43:44.000Z
mart/translator.py
yrf105/coot-videotext
da92342cf4271bd668e7180292469f44fa377c67
[ "Apache-2.0" ]
47
2020-11-09T09:23:30.000Z
2022-02-16T08:12:08.000Z
""" Text generation, greedy or beam search. References: Copyright (c) 2017 Jie Lei Licensed under The MIT License, see https://choosealicense.com/licenses/mit/ @inproceedings{lei2020mart, title={MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning}, a...
53.165577
118
0.605131
de853fa49de56953b0ef59e5d98d7ed0a419c9cb
1,832
py
Python
templatealchemy_driver/test_jinja2.py
cadithealth/templatealchemy-jinja2
c5f13172dc6c62f815b211f635c957a03d384cad
[ "MIT" ]
null
null
null
templatealchemy_driver/test_jinja2.py
cadithealth/templatealchemy-jinja2
c5f13172dc6c62f815b211f635c957a03d384cad
[ "MIT" ]
null
null
null
templatealchemy_driver/test_jinja2.py
cadithealth/templatealchemy-jinja2
c5f13172dc6c62f815b211f635c957a03d384cad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # file: $Id$ # lib: templatealchemy.test_jinja2 # auth: Philip J Grabner <grabner@cadit.com> # date: 2013/07/03 # copy: (C) Copyright 2013 Cadit Health Inc., All Rights Reserved. #-----------------------------------...
26.550725
79
0.443777
55b78c1629b436a190e06534b2f2571b153cbcb1
11,008
py
Python
tests/test_ipu_configuration.py
michaelbenayoun/optimum-graphcore
989bf0f4b43fc1dfb77e46f875f5aaee86b111e9
[ "Apache-2.0" ]
25
2021-11-30T17:35:44.000Z
2022-03-10T08:19:10.000Z
tests/test_ipu_configuration.py
michaelbenayoun/optimum-graphcore
989bf0f4b43fc1dfb77e46f875f5aaee86b111e9
[ "Apache-2.0" ]
33
2021-12-15T14:39:15.000Z
2022-03-29T14:35:23.000Z
tests/test_ipu_configuration.py
michaelbenayoun/optimum-graphcore
989bf0f4b43fc1dfb77e46f875f5aaee86b111e9
[ "Apache-2.0" ]
7
2021-12-10T14:48:14.000Z
2022-02-25T12:04:09.000Z
# coding=utf-8 # Copyright 2021 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
49.142857
121
0.684593
c148fa77bd18a808fb66e8ef6f35a57f89b72a4a
1,271
py
Python
extra_apps/DUEditor/models.py
thomaslzb/onlineStore
83bda14c97ece799f3df44dc26b6e3b1c8b8463d
[ "Apache-2.0" ]
3
2020-03-16T02:49:59.000Z
2022-03-21T15:04:44.000Z
extra_apps/DUEditor/models.py
thomaslzb/onlineStore
83bda14c97ece799f3df44dc26b6e3b1c8b8463d
[ "Apache-2.0" ]
1
2020-12-10T08:04:25.000Z
2020-12-10T08:04:25.000Z
extra_apps/DUEditor/models.py
thomaslzb/onlineStore
83bda14c97ece799f3df44dc26b6e3b1c8b8463d
[ "Apache-2.0" ]
2
2020-05-01T08:16:25.000Z
2020-07-21T00:12:06.000Z
#coding: utf-8 from django.db import models from django.contrib.admin import widgets as admin_widgets from .widgets import UEditorWidget,AdminUEditorWidget class UEditorField(models.TextField): """ 百度HTML编辑器字段,初始化时,可以提供以下参数 initial:初始内容 toolbars:提供工具按钮列表,取值为列表,如['bold', 'italic'],取值为:mini,norm...
43.827586
180
0.709677
1d4d46c977d093093abb1f822e6207b1295c60e8
816
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractChiisaiHimeDreamwidthOrg.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractChiisaiHimeDreamwidthOrg.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractChiisaiHimeDreamwidthOrg.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractChiisaiHimeDreamwidthOrg(item): ''' Parser for 'chiisai-hime.dreamwidth.org' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('the villains all fell in love with me', 'the villain...
37.090909
126
0.598039
e1b6b8b91c0f2487a00d717194e4cb4961bfe5d9
2,541
py
Python
app.py
Elysian01/Breast-Cancer-Early-Prediction
0c021028556c1eea18d818353cc68b45f0ecf9be
[ "MIT" ]
2
2020-12-10T06:25:11.000Z
2022-03-19T17:16:50.000Z
app.py
Elysian01/Breast-Cancer-Early-Prediction
0c021028556c1eea18d818353cc68b45f0ecf9be
[ "MIT" ]
4
2021-03-31T19:39:05.000Z
2022-03-12T00:21:05.000Z
app.py
Elysian01/Breast-Cancer-Early-Prediction
0c021028556c1eea18d818353cc68b45f0ecf9be
[ "MIT" ]
2
2020-03-30T15:57:10.000Z
2021-03-01T12:40:57.000Z
from flask import Flask, render_template, request, url_for, send_file, flash, redirect, make_response import pickle import numpy as np import os import termcolor import smtplib # import warnings import CancerModel import PdfConverter from PdfConverter import PDFPageCountError app = Flask(__name__) app.config['SECRET...
31.37037
176
0.59268
d4d2619aa61127ecd72c0b1cd7d8c073e7aa8730
409
py
Python
webapp/webapp/wsgi.py
a-shine/dockerised-django-template
99c72c7b601f970f0a417c8a1752d73027d81895
[ "MIT" ]
null
null
null
webapp/webapp/wsgi.py
a-shine/dockerised-django-template
99c72c7b601f970f0a417c8a1752d73027d81895
[ "MIT" ]
null
null
null
webapp/webapp/wsgi.py
a-shine/dockerised-django-template
99c72c7b601f970f0a417c8a1752d73027d81895
[ "MIT" ]
null
null
null
""" WSGI config for webapp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('...
24.058824
79
0.753056
885c02a40de33de57a836d5549feba790d9c0bc9
493
py
Python
src/compas_blender/__init__.py
Licini/compas
34f65adb3d0abc3f403312ffba62aa76f3376292
[ "MIT" ]
null
null
null
src/compas_blender/__init__.py
Licini/compas
34f65adb3d0abc3f403312ffba62aa76f3376292
[ "MIT" ]
9
2019-09-11T08:53:19.000Z
2019-09-16T08:35:39.000Z
src/compas_blender/__init__.py
Licini/compas
34f65adb3d0abc3f403312ffba62aa76f3376292
[ "MIT" ]
null
null
null
""" ******************************************************************************** compas_blender ******************************************************************************** .. currentmodule:: compas_blender .. toctree:: :maxdepth: 1 compas_blender.artists compas_blender.geometry compas_blende...
20.541667
80
0.462475
bf9deb33510752d1179efc045303c9c70494a8c9
794
py
Python
packages/python/m/cli/commands/ci/release_setup.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
null
null
null
packages/python/m/cli/commands/ci/release_setup.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
null
null
null
packages/python/m/cli/commands/ci/release_setup.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
1
2021-12-31T13:25:33.000Z
2021-12-31T13:25:33.000Z
from ...utils import run_main def add_parser(sub_parser, raw): parser = sub_parser.add_parser( 'release_setup', help='modify the config and changelog files', formatter_class=raw, description='Update the config and changelog files', ) add = parser.add_argument add( ...
24.8125
60
0.602015
3aef763a933e49f08f032aedfeba300995331787
3,549
py
Python
bindings/python/ensmallen/datasets/string/trichodermaatroviride.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/trichodermaatroviride.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/trichodermaatroviride.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Trichoderma atroviride. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein...
32.861111
223
0.677656
30786c949212ea935b3a5ec4399a2b2eb9b80037
51,884
py
Python
falcano/model.py
njsnx/falcano
63807a7b4a70fc78d5b95b1470fecc2d24035b2b
[ "MIT" ]
null
null
null
falcano/model.py
njsnx/falcano
63807a7b4a70fc78d5b95b1470fecc2d24035b2b
[ "MIT" ]
null
null
null
falcano/model.py
njsnx/falcano
63807a7b4a70fc78d5b95b1470fecc2d24035b2b
[ "MIT" ]
null
null
null
''' Handle connections and queries to the Team Model ''' import time import os from decimal import Decimal from datetime import datetime from inspect import getmembers import logging from typing import ( Any, Optional, Dict, Tuple, Type, Mapping, List, cast ) import boto3 import boto3.dynamodb.types as dynamo_t...
38.262537
152
0.619189
c706b34ddb087ca50e58f75f4071d340845c0683
5,229
py
Python
src/mock_vws/_query_tools.py
adamtheturtle/vws-python-mock
1d7ead0c6bd4d4f58c95cefdfbca31ae15e65a25
[ "MIT" ]
1
2018-10-02T21:20:24.000Z
2018-10-02T21:20:24.000Z
src/mock_vws/_query_tools.py
adamtheturtle/vws-python-mock
1d7ead0c6bd4d4f58c95cefdfbca31ae15e65a25
[ "MIT" ]
340
2018-09-08T08:26:15.000Z
2020-05-14T07:17:27.000Z
src/mock_vws/_query_tools.py
adamtheturtle/vws-python-mock
1d7ead0c6bd4d4f58c95cefdfbca31ae15e65a25
[ "MIT" ]
null
null
null
""" Tools for making Vuforia queries. """ from __future__ import annotations import base64 import cgi import datetime import io import uuid from typing import Any, Dict, Set from zoneinfo import ZoneInfo from mock_vws._base64_decoding import decode_base64 from mock_vws._constants import ResultCodes, TargetStatuses f...
30.051724
79
0.666093
09b2a417f34bf9ce6f6b0a12074217f198b21634
420
py
Python
1611.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-09-21T18:50:20.000Z
2021-12-14T13:07:31.000Z
1611.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1611.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
def elevadorLotado(paradas, capacidade): energiaGasta = 0 while paradas: ultimo = paradas[-1] energiaGasta += 2*ultimo paradas = paradas[:-capacidade] return energiaGasta testes = int(input()) for x in range(testes): NCM = input().split() capacidade = int(NCM[1]) destinhos = list(map...
26.25
45
0.659524
ce10bfb784b95d0b70498567fcb4ef7768573458
2,150
py
Python
managesf/model/yamlbkd/resources/dummy.py
softwarefactory-project/managesf
7018d041291f50b90e782ca31d0cfc67abd10170
[ "Apache-2.0" ]
1
2018-08-02T23:30:03.000Z
2018-08-02T23:30:03.000Z
managesf/model/yamlbkd/resources/dummy.py
softwarefactory-project/managesf
7018d041291f50b90e782ca31d0cfc67abd10170
[ "Apache-2.0" ]
1
2021-12-13T18:24:10.000Z
2021-12-13T20:10:39.000Z
managesf/model/yamlbkd/resources/dummy.py
softwarefactory-project/managesf
7018d041291f50b90e782ca31d0cfc67abd10170
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, 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 applica...
25
75
0.533488
4aa83d19904288f0c5ac54abd5f8a1d07a717105
753
py
Python
src/example-app/example_app/urls.py
sebaxtian/docker-django
ad5be9a725806ef6dfa646b0c5cea6f6ace70282
[ "MIT" ]
null
null
null
src/example-app/example_app/urls.py
sebaxtian/docker-django
ad5be9a725806ef6dfa646b0c5cea6f6ace70282
[ "MIT" ]
10
2021-03-19T01:42:26.000Z
2022-02-10T09:09:35.000Z
src/example-app/example_app/urls.py
sebaxtian/docker-django
ad5be9a725806ef6dfa646b0c5cea6f6ace70282
[ "MIT" ]
null
null
null
"""example_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
34.227273
77
0.710491
b6cec4002ed5ebf7b4845ae09447ad8972f7f265
5,279
py
Python
tests/suite.py
dgerod/cb4oru
b5fb3bd52193ab21b30b6917232a799ac41b6c32
[ "Apache-2.0" ]
1
2018-01-22T20:23:27.000Z
2018-01-22T20:23:27.000Z
tests/suite.py
dgerod/cb4oru
b5fb3bd52193ab21b30b6917232a799ac41b6c32
[ "Apache-2.0" ]
null
null
null
tests/suite.py
dgerod/cb4oru
b5fb3bd52193ab21b30b6917232a799ac41b6c32
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
35.42953
89
0.700322
d6adaabd530cf31923efd32c075e133395b25ab7
7,453
py
Python
nats_bench/genotype_utils.py
D-X-Y/NATS-Bench
677b0839990465f88b35f31fd1b52fa9ee8e5c46
[ "MIT" ]
111
2020-10-13T11:00:30.000Z
2022-03-19T17:54:05.000Z
nats_bench/genotype_utils.py
D-X-Y/NATS-Bench
677b0839990465f88b35f31fd1b52fa9ee8e5c46
[ "MIT" ]
40
2020-12-18T19:58:23.000Z
2022-03-25T07:04:56.000Z
nats_bench/genotype_utils.py
D-X-Y/NATS-Bench
677b0839990465f88b35f31fd1b52fa9ee8e5c46
[ "MIT" ]
14
2020-10-25T19:42:33.000Z
2022-03-25T01:10:56.000Z
##################################################### # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019.09 # ##################################################### # Moved from https://github.com/D-X-Y/AutoDL-Projects/blob/main/lib/models/cell_searchs/genotypes.py ##################################################### fro...
42.588571
120
0.541259
2b22eac577ed17c2983e575adb7ae781963564a5
189
py
Python
meetthestack/meetthestack/urls.py
RobSpectre/sunday-service-stack
4b288087ae559428163a72045daafdde9c246dd3
[ "MIT" ]
null
null
null
meetthestack/meetthestack/urls.py
RobSpectre/sunday-service-stack
4b288087ae559428163a72045daafdde9c246dd3
[ "MIT" ]
null
null
null
meetthestack/meetthestack/urls.py
RobSpectre/sunday-service-stack
4b288087ae559428163a72045daafdde9c246dd3
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include from django.urls import path urlpatterns = [ path('sms/', include('sms.urls')), path('admin/', admin.site.urls), ]
21
38
0.703704
30396af40be618f672fd19afb9a4ead0fb54474a
198
py
Python
src/assignments/main_assignment2.py
acc-cosc-1336/cosc-1336-spring-2018-MJBrady13
f8d1ca9073058574a599d9047274b2b7ac8c7bb6
[ "MIT" ]
null
null
null
src/assignments/main_assignment2.py
acc-cosc-1336/cosc-1336-spring-2018-MJBrady13
f8d1ca9073058574a599d9047274b2b7ac8c7bb6
[ "MIT" ]
2
2018-03-01T20:35:59.000Z
2018-03-10T01:48:40.000Z
src/assignments/main_assignment2.py
acc-cosc-1336/cosc-1336-spring-2018-MJBrady13
f8d1ca9073058574a599d9047274b2b7ac8c7bb6
[ "MIT" ]
null
null
null
from assignment2 import faculty_evaluation_result '''Write code to call the faculty_evaluation_result function with data of your choice''' print (faculty_evaluation_result(5, 12, 23, 11, 13, 47))
33
88
0.79798
165443aee5190dedfff78a3b4bf2ed2b1c6a974b
1,172
py
Python
dashboard/migrations/0002_auto_20200325_1537.py
CARV-ICS-FORTH/karvdash
b264e5c70510107a1e424156665a96a330e911d9
[ "Apache-2.0" ]
16
2020-10-10T07:03:44.000Z
2022-02-16T17:59:45.000Z
dashboard/migrations/0002_auto_20200325_1537.py
CARV-ICS-FORTH/karvdash
b264e5c70510107a1e424156665a96a330e911d9
[ "Apache-2.0" ]
29
2020-11-05T09:26:06.000Z
2022-02-13T10:58:00.000Z
dashboard/migrations/0002_auto_20200325_1537.py
CARV-ICS-FORTH/karvdash
b264e5c70510107a1e424156665a96a330e911d9
[ "Apache-2.0" ]
1
2021-03-20T04:33:48.000Z
2021-03-20T04:33:48.000Z
# Generated by Django 3.0.2 on 2020-03-25 15:37 import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auth', '0011_update_proxy_permissions'), ('dashboard', '0001_initial'), ] ...
28.585366
140
0.548635
88f05ec89f5132e028cfa50608df218c4c2e184b
1,200
py
Python
clients/kratos/python/test/test_ui_node_meta.py
vinckr/sdk
5b93557835af7ad3662ef620b3ef10729149d484
[ "Apache-2.0" ]
1
2021-11-29T17:34:24.000Z
2021-11-29T17:34:24.000Z
clients/kratos/python/test/test_ui_node_meta.py
vinckr/sdk
5b93557835af7ad3662ef620b3ef10729149d484
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/test/test_ui_node_meta.py
vinckr/sdk
5b93557835af7ad3662ef620b3ef10729149d484
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
30.769231
446
0.733333
d18542da0e37032e40ef52c779955b0bd68ee3a3
11,549
py
Python
10_advanced_pygame/7_masks.py
PacktPublishing/The-Art-of-Doing-Video-Game-Creation-With-Python-and-Pygame
53518ec6fab1caafdb652f388405c282da102658
[ "MIT" ]
2
2021-09-20T21:57:33.000Z
2021-10-16T01:44:18.000Z
10_advanced_pygame/7_masks.py
PacktPublishing/The-Art-of-Doing-Video-Game-Creation-With-Python-and-Pygame
53518ec6fab1caafdb652f388405c282da102658
[ "MIT" ]
null
null
null
10_advanced_pygame/7_masks.py
PacktPublishing/The-Art-of-Doing-Video-Game-Creation-With-Python-and-Pygame
53518ec6fab1caafdb652f388405c282da102658
[ "MIT" ]
3
2021-12-08T10:50:35.000Z
2021-12-25T15:24:48.000Z
import pygame #Use 2D vectors vector = pygame.math.Vector2 #Initialize pygame pygame.init() #Set display surface (tile size is 32x32 so 960/32 = 30 tiles wide, 640/32 = 20 tiles high) WINDOW_WIDTH = 960 WINDOW_HEIGHT = 640 display_surface = pygame.display.set_mode((WINDOW_WIDTH, WINDOW_HEIGHT)) pygame.display.set_cap...
43.254682
115
0.596935
edc4849d607de2360d73b5dc6b4ea953e8cc6aa3
1,611
py
Python
api/files/permissions.py
kounoAkihiro/SV-COS-osf.io
0a9a68bbf9cf254d2e900d49b20d8a8e6e359c21
[ "Apache-2.0" ]
null
null
null
api/files/permissions.py
kounoAkihiro/SV-COS-osf.io
0a9a68bbf9cf254d2e900d49b20d8a8e6e359c21
[ "Apache-2.0" ]
16
2020-03-24T16:30:32.000Z
2022-03-03T22:39:45.000Z
api/files/permissions.py
kounoAkihiro/SV-COS-osf.io
0a9a68bbf9cf254d2e900d49b20d8a8e6e359c21
[ "Apache-2.0" ]
null
null
null
from rest_framework import permissions from api.base.utils import get_user_auth from osf.models import BaseFileNode from api.preprints.permissions import PreprintPublishedOrAdmin from osf.utils.workflows import DefaultStates class CheckedOutOrAdmin(permissions.BasePermission): def has_object_permission(self, requ...
42.394737
106
0.703911
0ec5745fcea9209fa190e2bbf18a6c3eafa3fb70
7,934
py
Python
pandas/tests/test_downstream.py
bram2000/pandas
3418679ae6556b63966b0dfa67d6a0cc4a5f03e5
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/test_downstream.py
bram2000/pandas
3418679ae6556b63966b0dfa67d6a0cc4a5f03e5
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/test_downstream.py
bram2000/pandas
3418679ae6556b63966b0dfa67d6a0cc4a5f03e5
[ "BSD-3-Clause" ]
null
null
null
""" Testing that we work in the downstream packages """ import importlib import subprocess import sys import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame import pandas._testing as tm # geopandas, xarray, fsspec, fastparquet all produce these py...
29.062271
84
0.689186
02e85f43024ba61300230f968e41d0aed79010c7
374
py
Python
email_api/api/urls.py
PawlikMateusz/DjangoEmailRestApi
1701033de109432a36252ce88389111c65e77249
[ "MIT" ]
null
null
null
email_api/api/urls.py
PawlikMateusz/DjangoEmailRestApi
1701033de109432a36252ce88389111c65e77249
[ "MIT" ]
null
null
null
email_api/api/urls.py
PawlikMateusz/DjangoEmailRestApi
1701033de109432a36252ce88389111c65e77249
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from .views import MailboxViewSet, EmailViewSet, TemplateViewSet app_name = "api" router = routers.DefaultRouter() router.register('mailbox', MailboxViewSet) router.register('template', TemplateViewSet) router.register('email', EmailViewSet) ...
22
64
0.775401
91d14274d1910dcee331749c8e8dd30b879b9b18
2,569
py
Python
fireant/dataset/modifiers.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
2
2019-05-12T15:14:52.000Z
2020-05-28T07:13:34.000Z
fireant/dataset/modifiers.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
null
null
null
fireant/dataset/modifiers.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
null
null
null
from pypika.terms import Term from pypika.utils import format_alias_sql from fireant.utils import ( deepcopy, immutable, ) class Modifier: wrapped_key = "wrapped" def __init__(self, wrapped): wrapped_key = super().__getattribute__("wrapped_key") setattr(self, wrapped_key, wrapped) ...
24.941748
70
0.646944
cc8510c712a4be20649487cd9fbde9bd65999aa4
1,147
py
Python
edifici.py
frephs/getAulePolimi
885c8691ef0e250484b84b876573e6ff25543e0e
[ "MIT" ]
null
null
null
edifici.py
frephs/getAulePolimi
885c8691ef0e250484b84b876573e6ff25543e0e
[ "MIT" ]
null
null
null
edifici.py
frephs/getAulePolimi
885c8691ef0e250484b84b876573e6ff25543e0e
[ "MIT" ]
1
2021-11-24T11:43:16.000Z
2021-11-24T11:43:16.000Z
#FOR REFERENCE edifici = { "COE": "Como", "COE04": "Como - Via Anzani", "COE02": "Como - Via Castelnuovo", "COE03": "Como - Via Valleggio", "COE08": "Como - Via Zezio", "CRG": "Cremona", "CRG01": "Cremona - Via Sesto", "LCF": "Lecco", "LCF04": "Lecco - Via Ghislanzoni", "MNI": "Mantova", "MNI01": "Mantova - Via Scarsel...
35.84375
60
0.666957
53f6a3f4242ef2ecc8b5bc8ae5d5fd792daf3653
6,585
py
Python
programs/util/newplugin.py
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
programs/util/newplugin.py
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
programs/util/newplugin.py
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 templates = { "plugin.json" : """{{ "plugin_name": "{plugin_name}", "plugin_project": "{plugin_provider}_{plugin_name}" }} """, "CMakeLists.txt" : """file(GLOB HEADERS "include/{plugin_provider}/plugins/{plugin_name}/*.hpp") add_library( {plugin_provider}_{plugin_name} ${{HE...
25.823529
118
0.687775
55732aaeaeaa4acd03beff10fa970b07dba273e6
3,309
py
Python
gym_invaders/gym_game/envs/classes/Game/Screens/TwoPlayerGameover.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
4
2020-05-15T11:17:09.000Z
2020-06-30T01:11:41.000Z
gym_invaders/gym_game/envs/classes/Game/Screens/TwoPlayerGameover.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
10
2020-05-16T10:45:32.000Z
2020-07-27T07:17:02.000Z
gym_invaders/gym_game/envs/classes/Game/Screens/TwoPlayerGameover.py
Jh123x/Orbital
6f8f2da4fd26ef1d77c0c6183230c3a5e6bf0bb9
[ "MIT" ]
null
null
null
import pygame import random from pygame.locals import * from . import Screen from .. import State, WHITE, Direction class TwoPlayerGameoverScreen(Screen): #Check if the sound is played sound = None played = False def __init__(self, screen_width:int, screen_height:int, screen, p1_score:int, p2_score:i...
35.580645
147
0.635539
d4205a0639e45df0046cd210fcc7959eea2011d3
2,402
py
Python
enzyme/benchmarks/lit.cfg.py
anandijain/Enzyme
fcaeb498a7fcb941be02ca407444fbb81e31c02e
[ "Apache-2.0" ]
674
2020-10-05T17:55:58.000Z
2022-02-06T11:18:11.000Z
enzyme/benchmarks/lit.cfg.py
anandijain/Enzyme
fcaeb498a7fcb941be02ca407444fbb81e31c02e
[ "Apache-2.0" ]
119
2020-10-07T00:47:20.000Z
2022-02-06T16:46:58.000Z
enzyme/benchmarks/lit.cfg.py
anandijain/Enzyme
fcaeb498a7fcb941be02ca407444fbb81e31c02e
[ "Apache-2.0" ]
55
2020-10-10T14:45:20.000Z
2022-01-30T05:51:07.000Z
# -*clang- Python -*- import os import platform import re import subprocess import lit.formats import lit.util from lit.llvm import llvm_config # Configuration file for the 'lit' test runner. # name: The name of this test suite. config.name = 'BenchEnzyme' # testFormat: The test format to use to interpret tests. #...
33.830986
88
0.657785
762bc4c97b63cbeaa24ee83da9bc85bff8b18739
66
py
Python
imagepy/__main__.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
2
2020-04-17T12:57:55.000Z
2020-04-17T12:57:57.000Z
imagepy/__main__.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
null
null
null
imagepy/__main__.py
BioinfoTongLI/imagepy
b86f33f20e872ee8b86471a9ddfbd5ad064fd64d
[ "BSD-4-Clause" ]
null
null
null
import sys, os sys.path.append('..') import imagepy imagepy.show()
16.5
21
0.727273
9e0b37ecd50931659d502f18c54c25a173ee6c99
2,009
py
Python
day12/sol.py
samstronghammer/adventofcode2020
a03098ce886bbf011e01f5897461e7caac468202
[ "MIT" ]
null
null
null
day12/sol.py
samstronghammer/adventofcode2020
a03098ce886bbf011e01f5897461e7caac468202
[ "MIT" ]
null
null
null
day12/sol.py
samstronghammer/adventofcode2020
a03098ce886bbf011e01f5897461e7caac468202
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import os sys.path.append(f"{os.path.dirname(__file__)}/..") import util import math # Vector math is very precise. Fortunately, I had part 1 set up in such # a way that part 2 was straightforward. fn = f"{os.path.dirname(__file__)}/in.txt" l = util.filetolist(fn) loc = (0, 0) vec = (1...
27.902778
71
0.535092
9588c6a5a738e155c475fb5c5d054846a24d79b1
17,266
py
Python
train_optimizer.py
rlaboulaye/transformer
119195b2be1d2a3418141a73536d5167e97e06ed
[ "MIT" ]
null
null
null
train_optimizer.py
rlaboulaye/transformer
119195b2be1d2a3418141a73536d5167e97e06ed
[ "MIT" ]
5
2021-03-18T21:07:06.000Z
2022-03-11T23:30:49.000Z
train_optimizer.py
rlaboulaye/transformer
119195b2be1d2a3418141a73536d5167e97e06ed
[ "MIT" ]
null
null
null
import os import json import argparse import numpy as np import torch from torch import nn from torch.optim import SGD, Adam from meta.stacked_optimizer import StackedOptimizer from utils import set_seed, get_device, validate_against_schema, get_iterator, verbose_print from data.text_encoder import TextEncoder from d...
53.455108
244
0.740357
8ac879fb24f18a61df9e1e8b719303e1a2869ac3
7,815
py
Python
data/blended.py
jzhangbs/Vis-MVSNet
4d36b518cdd7876834c150baccf2e2610bdd267f
[ "MIT" ]
131
2020-08-17T07:01:26.000Z
2022-03-22T11:09:53.000Z
data/blended.py
jzhangbs/Vis-MVSNet
4d36b518cdd7876834c150baccf2e2610bdd267f
[ "MIT" ]
34
2020-10-14T08:41:44.000Z
2022-03-02T11:29:16.000Z
data/blended.py
jzhangbs/Vis-MVSNet
4d36b518cdd7876834c150baccf2e2610bdd267f
[ "MIT" ]
24
2020-08-26T05:40:03.000Z
2022-03-15T06:45:00.000Z
import json import os from itertools import accumulate import cv2 import numpy as np import torch.utils.data as data from utils.preproc import image_net_center as center_image, mask_depth_image, to_channel_first, resize, random_crop, center_crop, recursive_apply from utils.preproc import random_brightness, random_con...
42.472826
157
0.627639
b5685c58642cf80a7a7bc991f93153da40b2906d
189
py
Python
scipy/sparse/sparsetools/__init__.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/sparse/sparsetools/__init__.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/sparse/sparsetools/__init__.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
"""sparsetools - a collection of routines for sparse matrix operations """ from csr import * from csc import * from coo import * from dia import * from bsr import * from csgraph import *
17.181818
70
0.73545
23c4cab0bf2a3f7a1203777d0079e008fc34da3a
239
py
Python
utils/args/__init__.py
Syler1984/seismo-ml-models-integration
fbfb98cda1b59699bc17e51d51de314be52e259e
[ "MIT" ]
null
null
null
utils/args/__init__.py
Syler1984/seismo-ml-models-integration
fbfb98cda1b59699bc17e51d51de314be52e259e
[ "MIT" ]
1
2021-05-14T00:12:13.000Z
2021-05-14T00:12:13.000Z
utils/args/__init__.py
Syler1984/seismo-ml-models-integration
fbfb98cda1b59699bc17e51d51de314be52e259e
[ "MIT" ]
null
null
null
""" This module purpose is to load and parse all script parameters from all the different sources: command-line arguments, config file parsing, default values, environment variables, SEISAN config files. """ from .args import archive_scan
39.833333
104
0.799163
46604d4c3776032191099378624fc4a8a28dd7fe
725
py
Python
result_plt/plot_confusion_matrix.py
bemu/diagnosis_covid19
625954beb136caa3348edfc75de16cc4db21ee43
[ "MIT" ]
29
2020-03-15T16:53:34.000Z
2021-12-27T15:44:22.000Z
result_plt/plot_confusion_matrix.py
xzwthu/diagnosis_covid19
84abe2fd1cc46e4f16d3f59be18ff3c8b5fa08c0
[ "MIT" ]
7
2020-03-29T01:27:35.000Z
2021-09-29T13:33:23.000Z
result_plt/plot_confusion_matrix.py
xzwthu/diagnosis_covid19
84abe2fd1cc46e4f16d3f59be18ff3c8b5fa08c0
[ "MIT" ]
19
2020-03-29T00:39:50.000Z
2022-02-19T16:17:36.000Z
import numpy as np import seaborn as sns from sklearn.metrics import confusion_matrix import matplotlib.pyplot as plt data=np.load('../re/all_weak_super.npy') y_pred=np.array(data[:,1:-1],np.float) y_pred=np.argmax(y_pred,1) y_true = np.array(data[:,-1],np.uint8) sns.set() f,ax=plt.subplots() C2= confusion_matrix(y_t...
30.208333
77
0.718621
a97957769ac18949bef48a817e8f5c54086d91fc
5,706
py
Python
add_stimulus.py
NevronasInc/RuthazerLab
6f1dd28aea847dbdad996bcf47224dd61261e75d
[ "MIT" ]
null
null
null
add_stimulus.py
NevronasInc/RuthazerLab
6f1dd28aea847dbdad996bcf47224dd61261e75d
[ "MIT" ]
null
null
null
add_stimulus.py
NevronasInc/RuthazerLab
6f1dd28aea847dbdad996bcf47224dd61261e75d
[ "MIT" ]
null
null
null
from pynwb.misc import AnnotationSeries from pynwb.misc import TimeSeries import pandas as pd import numpy as np import scipy import os # Konstantinos Nasiotis 2021 def load_templates_optophysiology(stimuli_mat_file): # This function loads a mat file containing a structure with ALL the possible stimul...
46.390244
170
0.669471
2ade71b8dcd6f61f7e298e1fccf2e55cf9a245a9
14,592
py
Python
selfdrive/car/subaru/values.py
tuantvo/openpilot
c452228a4a3c1f4984b68a719ace27b6317c8feb
[ "MIT" ]
null
null
null
selfdrive/car/subaru/values.py
tuantvo/openpilot
c452228a4a3c1f4984b68a719ace27b6317c8feb
[ "MIT" ]
null
null
null
selfdrive/car/subaru/values.py
tuantvo/openpilot
c452228a4a3c1f4984b68a719ace27b6317c8feb
[ "MIT" ]
null
null
null
# flake8: noqa from selfdrive.car import dbc_dict from cereal import car Ecu = car.CarParams.Ecu class CarControllerParams: STEER_MAX = 2047 # max_steer 4095 STEER_STEP = 2 # how often we update the steer cmd STEER_DELTA_UP = 50 # torque increase per refresh, 0.8s to max ...
40.64624
557
0.544202
61f991191c3eec0e679439528e6d2b1679ce88c8
24,098
py
Python
kapitan/refs/base.py
haggishunk/kapitan
2de00ff2539562d48863a0db23d1bf0d9b23338e
[ "Apache-2.0" ]
null
null
null
kapitan/refs/base.py
haggishunk/kapitan
2de00ff2539562d48863a0db23d1bf0d9b23338e
[ "Apache-2.0" ]
null
null
null
kapitan/refs/base.py
haggishunk/kapitan
2de00ff2539562d48863a0db23d1bf0d9b23338e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "references module" import base64 import errno import hashlib import json import logging import os import re import sys from contextlib import contextmanage...
37.073846
113
0.581874
88831e196d3b8ffba39c2750c855dc4c7ae4a4bd
10,748
py
Python
c7n/resources/fsx.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
8
2021-05-18T02:22:03.000Z
2021-09-11T02:49:04.000Z
c7n/resources/fsx.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
1
2021-04-26T04:38:35.000Z
2021-04-26T04:38:35.000Z
c7n/resources/fsx.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
1
2021-11-10T02:28:47.000Z
2021-11-10T02:28:47.000Z
# Copyright 2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
29.938719
95
0.537961
cf7bd652a9cb09ff26e2d70785ed81aabc230dd5
54,111
py
Python
salt/netapi/rest_tornado/saltnado.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/netapi/rest_tornado/saltnado.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
salt/netapi/rest_tornado/saltnado.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 from __future__ import absolute_import, print_function ''' A non-blocking REST API for Salt ================================ .. py:currentmodule:: salt.netapi.rest_tornado.saltnado :depends: - tornado Python module :configuration: All authentication is done through Salt's :ref:`external auth ...
32.42121
250
0.564211
bfc0374dcdd728ef5e18acca44a52112f93658b9
453
py
Python
classification/migrations/0025_classification_condition_resolution.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
classification/migrations/0025_classification_condition_resolution.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
classification/migrations/0025_classification_condition_resolution.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
# Generated by Django 3.1.6 on 2021-03-12 00:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('classification', '0024_new_ekey_clinvar_conflicting_clinical_significance'), ] operations = [ migrations.AddField( model_name='c...
23.842105
86
0.651214
be4534226d84a7e98e302ff206915690504b98eb
3,787
py
Python
tests/test_output.py
pfriesch/librosa
6d791248832b45c0529045f3ed007860756b2a7a
[ "ISC" ]
2
2018-10-24T09:04:54.000Z
2021-03-29T16:49:01.000Z
tests/test_output.py
pfriesch/librosa
6d791248832b45c0529045f3ed007860756b2a7a
[ "ISC" ]
null
null
null
tests/test_output.py
pfriesch/librosa
6d791248832b45c0529045f3ed007860756b2a7a
[ "ISC" ]
1
2021-03-29T16:49:00.000Z
2021-03-29T16:49:00.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- '''Tests for output functions''' # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except: pass import six import librosa import numpy as np import tempfile from nose.tools import raises, eq_ from test_core import srand import warnings warnings...
28.051852
112
0.543438
4851f6876e6f649c969b7c1f7b1c5036e46ee5c0
19,738
py
Python
lib/base_wizard.py
jcramer/Electron-Cash
5c34c428cb9603b2b941e871f87739d01c18b228
[ "MIT" ]
null
null
null
lib/base_wizard.py
jcramer/Electron-Cash
5c34c428cb9603b2b941e871f87739d01c18b228
[ "MIT" ]
null
null
null
lib/base_wizard.py
jcramer/Electron-Cash
5c34c428cb9603b2b941e871f87739d01c18b228
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- mode: python3 -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2016 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restri...
43.571744
177
0.596616
80baefc68ee4620e9211ba85e598910802429c35
17,012
py
Python
tensorflow/python/ops/parallel_for/array_test.py
jxy/tensorflow
8275aa702f787341451b91cbc76f98b8b307c562
[ "Apache-2.0" ]
4
2015-11-12T20:37:23.000Z
2021-05-25T20:06:32.000Z
tensorflow/python/ops/parallel_for/array_test.py
jxy/tensorflow
8275aa702f787341451b91cbc76f98b8b307c562
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/parallel_for/array_test.py
jxy/tensorflow
8275aa702f787341451b91cbc76f98b8b307c562
[ "Apache-2.0" ]
1
2021-10-07T04:33:44.000Z
2021-10-07T04:33:44.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.043796
88
0.625206
f55edd3f623e9ab4a460e1cc7fd155e027c43ca6
28,133
py
Python
nmutils/gui/ptychoViewer/design_rc.py
alexbjorling/nanomax-analysis-utils
e208d098243e28a90004c6e1c5fb69251177d23e
[ "MIT" ]
3
2017-07-19T10:25:26.000Z
2019-12-17T13:47:06.000Z
nmutils/gui/ptychoViewer/design_rc.py
alexbjorling/nanomax-analysis-utils
e208d098243e28a90004c6e1c5fb69251177d23e
[ "MIT" ]
1
2021-04-07T10:00:33.000Z
2021-04-07T10:20:36.000Z
nmutils/gui/ptychoViewer/design_rc.py
alexbjorling/nanomax-analysis-utils
e208d098243e28a90004c6e1c5fb69251177d23e
[ "MIT" ]
1
2020-10-15T12:05:42.000Z
2020-10-15T12:05:42.000Z
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.12.5) # # WARNING! All changes made in this file will be lost! # from PyQt5 import QtCore from silx.gui import qt as QtCore qt_resource_data = b"\ \x00\x00\x19\x3d\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d...
60.893939
103
0.72726
963af4d3ff9126b99d4b91a108f66ff67e7e5efd
1,895
py
Python
bin/run_processor.py
zhulcher/larcv3
26d1ad33f0c27ddf6bb2c56bc0238aeaddcb772b
[ "MIT" ]
8
2019-05-14T21:53:42.000Z
2021-12-10T13:09:33.000Z
bin/run_processor.py
zhulcher/larcv3
26d1ad33f0c27ddf6bb2c56bc0238aeaddcb772b
[ "MIT" ]
34
2019-05-15T13:33:10.000Z
2022-03-22T17:54:49.000Z
bin/run_processor.py
zhulcher/larcv3
26d1ad33f0c27ddf6bb2c56bc0238aeaddcb772b
[ "MIT" ]
6
2019-10-24T16:11:50.000Z
2021-11-26T14:06:30.000Z
#!/usr/bin/env python import sys,os,argparse import larcv # This script is a simplification of run_processordb but without the proddb dependence. # It incorporates command line arguments but runs stand-alone with just larcv. parser = argparse.ArgumentParser(description='LArCV ProcessDriver execution script (use prodd...
30.564516
97
0.642216
d4fd9302685bd7cde99dada3c5ae4b4ce867bb96
230
py
Python
setup.py
scruffyboy13/RubiksCubeSolver
c963fac31fa39e90612fdf9f7f1c18320e6dd3c0
[ "MIT" ]
null
null
null
setup.py
scruffyboy13/RubiksCubeSolver
c963fac31fa39e90612fdf9f7f1c18320e6dd3c0
[ "MIT" ]
null
null
null
setup.py
scruffyboy13/RubiksCubeSolver
c963fac31fa39e90612fdf9f7f1c18320e6dd3c0
[ "MIT" ]
null
null
null
from setuptools import setup from Cython.Build import cythonize import numpy as np setup( ext_modules = cythonize( [ "rubikscube.pyx" ], annotate=True), include_dirs=[np.get_include()] )
16.428571
34
0.630435
7bfee7cd8612d75f2bd796640b9f1a26fef7c56f
5,525
py
Python
polyglotdb/corpus/pause.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
25
2016-01-28T20:47:07.000Z
2021-11-29T16:13:07.000Z
polyglotdb/corpus/pause.py
michaelhaaf/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
120
2016-04-07T17:55:09.000Z
2022-03-24T18:30:10.000Z
polyglotdb/corpus/pause.py
PhonologicalCorpusTools/PolyglotDB
7640212c7062cf44ae911081241ce83a26ced2eb
[ "MIT" ]
10
2015-12-03T20:06:58.000Z
2021-02-11T03:02:48.000Z
from .importable import ImportContext class PauseContext(ImportContext): """ Class that contains methods for dealing specifically with non-speech elements """ @property def has_pauses(self): """ Check whether corpus has encoded pauses Returns ------- bool ...
44.556452
140
0.545158
40a2629bb38a55923887bd093d60d951f44078f4
1,552
py
Python
src/ZServer/medusa/test/max_sockets.py
datakurre/ZServer
9aa87900463229350f691f1c8877c6e8f13538c8
[ "ZPL-2.1" ]
1
2019-06-14T15:39:18.000Z
2019-06-14T15:39:18.000Z
src/ZServer/medusa/test/max_sockets.py
datakurre/ZServer
9aa87900463229350f691f1c8877c6e8f13538c8
[ "ZPL-2.1" ]
null
null
null
src/ZServer/medusa/test/max_sockets.py
datakurre/ZServer
9aa87900463229350f691f1c8877c6e8f13538c8
[ "ZPL-2.1" ]
null
null
null
import socket import select from six.moves import range # several factors here we might want to test: # 1) max we can create # 2) max we can bind # 3) max we can listen on # 4) max we can connect def max_server_sockets(): sl = [] while 1: try: s = socket.socket(socket.AF_INET, socket.SOCK...
22.492754
69
0.505799
abc5b4cca7e6e98fac5aa58e098081ad0d010d34
72,456
py
Python
intersight/model/boot_usb_device_relationship.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/boot_usb_device_relationship.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/boot_usb_device_relationship.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
62.732468
1,678
0.657792
0d69fd7bac37c51ffb8784ee5d072dac6d7b9a8e
4,037
py
Python
tests/test_eventstudy/test_single_factor_ib_event_study.py
brettelliot/event-study
cffc6a80dbc4b33e68e863488428996af51cc991
[ "MIT" ]
2
2019-10-20T15:53:20.000Z
2020-05-30T22:17:20.000Z
tests/test_eventstudy/test_single_factor_ib_event_study.py
brettelliot/event-study
cffc6a80dbc4b33e68e863488428996af51cc991
[ "MIT" ]
2
2021-03-31T18:50:01.000Z
2021-06-01T22:11:55.000Z
tests/test_eventstudy/test_single_factor_ib_event_study.py
brettelliot/event-study
cffc6a80dbc4b33e68e863488428996af51cc991
[ "MIT" ]
1
2021-07-18T05:22:45.000Z
2021-07-18T05:22:45.000Z
import unittest import datetime as dt from eventstudy.eventstudy import * from eventstudy.ibdatareader import IBDataReader from tests.test_eventstudy.testcarseventstudy import TestCARSEventMatrix class TestSingleFactorIBEventStudy(unittest.TestCase): def setUp(self): # Define the symbols to study ...
39.194175
111
0.624226
1db15346b561dfb969817bfa20c65589d38e001f
3,194
py
Python
tests/v1/run_rule_and_wait_test.py
binarytrails/detection-api
b6b0f8aed06ed9d921470b1973f2ca015b6fadb2
[ "Apache-2.0" ]
null
null
null
tests/v1/run_rule_and_wait_test.py
binarytrails/detection-api
b6b0f8aed06ed9d921470b1973f2ca015b6fadb2
[ "Apache-2.0" ]
null
null
null
tests/v1/run_rule_and_wait_test.py
binarytrails/detection-api
b6b0f8aed06ed9d921470b1973f2ca015b6fadb2
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
35.88764
77
0.690044
8fa7136076e6c44b7250060ca8406fb5c372e8bf
11,310
py
Python
tests/testflows/rbac/tests/privileges/alter/alter_ttl.py
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
2
2020-06-11T11:48:42.000Z
2020-10-10T12:08:13.000Z
tests/testflows/rbac/tests/privileges/alter/alter_ttl.py
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
13
2019-06-06T09:45:53.000Z
2020-05-15T12:03:45.000Z
tests/testflows/rbac/tests/privileges/alter/alter_ttl.py
evryfs/ClickHouse
a9648af0b9e2506ce783106315814ed8dbd0a952
[ "Apache-2.0" ]
22
2019-06-14T10:31:51.000Z
2020-10-12T14:57:44.000Z
import json from testflows.core import * from testflows.core import threading from testflows.asserts import error from rbac.requirements import * from rbac.helper.common import * import rbac.helper.errors as errors from rbac.helper.tables import table_types subprivileges = { "TTL" : 1 << 0, "MATERIALIZE TTL"...
39.545455
143
0.648718
0c5f02ebfafbe65a6116cdae2f781d94960fc05d
2,673
py
Python
tests/backend/localmongodb/test_schema.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
3
2022-01-19T13:39:52.000Z
2022-01-28T05:57:08.000Z
tests/backend/localmongodb/test_schema.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
67
2022-01-13T22:42:17.000Z
2022-03-31T14:18:26.000Z
tests/backend/localmongodb/test_schema.py
roninx991/planetmint
fa2c8a5cc570535ad4740d87daa86dcbd5a123ea
[ "Apache-2.0" ]
7
2022-01-13T16:20:54.000Z
2022-02-07T11:42:05.000Z
# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 def test_init_database_is_graceful_if_db_exists(): import planetmint from planetmint import backend fr...
34.714286
91
0.680509
b6791e36b1b200d01f468edfa49eb25e978a80ea
15,588
py
Python
paddlers/models/ppgan/models/generators/generator_pixel2style2pixel.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
40
2022-02-28T02:07:28.000Z
2022-03-31T09:54:29.000Z
paddlers/models/ppgan/models/generators/generator_pixel2style2pixel.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
5
2022-03-15T12:13:33.000Z
2022-03-31T15:54:08.000Z
paddlers/models/ppgan/models/generators/generator_pixel2style2pixel.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
20
2022-02-28T02:07:31.000Z
2022-03-31T11:40:40.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 appl...
35.752294
80
0.556839
0f85b81f829acd6fad07e54d4e4fe228e7a1f544
1,478
py
Python
code/flis/urls.py
eea/eea.docker.flis
9bc78d9bf3436e9539f15a6a0ba9c2fd7a030907
[ "BSD-3-Clause" ]
null
null
null
code/flis/urls.py
eea/eea.docker.flis
9bc78d9bf3436e9539f15a6a0ba9c2fd7a030907
[ "BSD-3-Clause" ]
null
null
null
code/flis/urls.py
eea/eea.docker.flis
9bc78d9bf3436e9539f15a6a0ba9c2fd7a030907
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, unicode_literals from django.conf import settings from django.conf.urls import include, url from django.contrib import admin from pages.views import index from search import views as search_views from wagtail.wagtailadmin import urls as wagtailadmin_urls from wagtail.wagtailcor...
33.590909
88
0.743572
9a278146cf432902e2723922325fd8d403b70383
403
py
Python
setup.py
yqiuu/hd-region
a94413436996dd415b38da86d45bb80170198aa1
[ "MIT" ]
null
null
null
setup.py
yqiuu/hd-region
a94413436996dd415b38da86d45bb80170198aa1
[ "MIT" ]
null
null
null
setup.py
yqiuu/hd-region
a94413436996dd415b38da86d45bb80170198aa1
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='hdc', version='0.1.0', description='tool to visualise the highest density region (HDR) for MCMC samples', url='https://github.com/yqiuu/hd-region', author='Yisheng Qiu', author_email='yishengq@student.unimelb.edu.au', license='MIT', packages=['h...
28.785714
86
0.665012
4a8d338b4c5797481f181ab6d11d7effe5998187
294
py
Python
eventos/migrations/0006_delete_usuario.py
jairoruizsaenz/django_crud
c91f896d8e9cfc5329d97094021176fbcf486a42
[ "MIT" ]
null
null
null
eventos/migrations/0006_delete_usuario.py
jairoruizsaenz/django_crud
c91f896d8e9cfc5329d97094021176fbcf486a42
[ "MIT" ]
null
null
null
eventos/migrations/0006_delete_usuario.py
jairoruizsaenz/django_crud
c91f896d8e9cfc5329d97094021176fbcf486a42
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-14 17:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('eventos', '0005_auto_20180814_1230'), ] operations = [ migrations.DeleteModel( name='Usuario', ), ]
17.294118
47
0.605442
f534bf29ecce5286425f5ff7c3d6eaab949b3348
12,620
py
Python
python/ccxt/async_support/bitlish.py
honeyligo/ccxt
74717ffc8171bd8266b49819f7583eb8a0c32da7
[ "MIT" ]
5
2019-10-31T12:40:40.000Z
2019-10-31T14:15:01.000Z
python/ccxt/async_support/bitlish.py
honeyligo/ccxt
74717ffc8171bd8266b49819f7583eb8a0c32da7
[ "MIT" ]
null
null
null
python/ccxt/async_support/bitlish.py
honeyligo/ccxt
74717ffc8171bd8266b49819f7583eb8a0c32da7
[ "MIT" ]
1
2019-09-14T03:41:20.000Z
2019-09-14T03:41:20.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange from ccxt.base.errors import NotSupported class bitlish (Exchange): def descri...
36.368876
126
0.462203
1783279850043bbbbcc0d80ae620d0547662057c
8,010
py
Python
src/sdk/pynni/nni/compression/torch/examples.py
TangChangcheng/nni
b8dd756a49f0d998e0e8d3af643360d74eff764e
[ "MIT" ]
3
2020-08-04T09:49:30.000Z
2020-08-27T02:52:20.000Z
src/sdk/pynni/nni/compression/torch/examples.py
zyzzu/nni
b8dd756a49f0d998e0e8d3af643360d74eff764e
[ "MIT" ]
1
2020-06-21T04:56:21.000Z
2020-06-21T04:56:21.000Z
src/sdk/pynni/nni/compression/torch/examples.py
zyzzu/nni
b8dd756a49f0d998e0e8d3af643360d74eff764e
[ "MIT" ]
1
2020-08-27T02:50:27.000Z
2020-08-27T02:50:27.000Z
import logging import os import copy from collections import OrderedDict import torch import torch.nn as nn from nni.compression.torch import apply_compression_results from nni.compression.torch.utils.mask_conflict import fix_mask_conflict from nni.compression.torch.speedup import ModelSpeedup __all__ = [] logger ...
35.919283
201
0.629213
2c118b755cd1382296b9b166ffd4d3dc319c3ff1
10,634
py
Python
enrich_for_runtime.py
ecosystemai/ecosystem-notebooks
7282f22fbe7ab7a43b2b0c06c74b3f176defaca4
[ "MIT" ]
2
2020-08-30T12:50:47.000Z
2020-11-24T12:59:43.000Z
enrich_for_runtime.py
ecosystemai/ecosystem-notebooks
7282f22fbe7ab7a43b2b0c06c74b3f176defaca4
[ "MIT" ]
null
null
null
enrich_for_runtime.py
ecosystemai/ecosystem-notebooks
7282f22fbe7ab7a43b2b0c06c74b3f176defaca4
[ "MIT" ]
2
2020-09-02T16:54:25.000Z
2021-06-20T20:30:11.000Z
import pymongo import sys import time #Date enrichment needs to run on eff_date def getFieldValues(field,collection): #All the values of a specific field in a collection dollar_field = "$"+field field_group_pipeline = [ {"$group":{"_id":None,"values":{"$push":dollar_field}}} ] cursor_group_fields = db[collectio...
32.619632
331
0.660147
acc85223a36b5fd6600ea8408097afe16b60e2dd
414
py
Python
tests/integration/conftest.py
SakornW/uplink
2eba20f8f65862fe4ebd3ef2aa1e2a895ca85d3f
[ "MIT" ]
null
null
null
tests/integration/conftest.py
SakornW/uplink
2eba20f8f65862fe4ebd3ef2aa1e2a895ca85d3f
[ "MIT" ]
null
null
null
tests/integration/conftest.py
SakornW/uplink
2eba20f8f65862fe4ebd3ef2aa1e2a895ca85d3f
[ "MIT" ]
null
null
null
# Third party imports import pytest import requests # Local imports from uplink import clients from tests.integration import MockClient, MockResponse @pytest.fixture def mock_client(mocker): request = mocker.Mock(spec=clients.interfaces.Request) return MockClient(request) @pytest.fixture def mock_response(...
20.7
58
0.78744
1f477dee5fb92ac90f8d3095591856a719f83274
559
py
Python
test/generate/PtrRef.kludge.py
zhangxiao6776/kludge
17a561f4b15399edd8175c883f8410a1b23c4d90
[ "BSD-3-Clause" ]
null
null
null
test/generate/PtrRef.kludge.py
zhangxiao6776/kludge
17a561f4b15399edd8175c883f8410a1b23c4d90
[ "BSD-3-Clause" ]
null
null
null
test/generate/PtrRef.kludge.py
zhangxiao6776/kludge
17a561f4b15399edd8175c883f8410a1b23c4d90
[ "BSD-3-Clause" ]
2
2017-12-01T20:44:14.000Z
2021-08-21T21:47:04.000Z
# # Copyright (c) 2010-2016, Fabric Software Inc. All rights reserved. # ext.add_cpp_quoted_include('PtrRef.hpp') ext.add_func('GetIntCPtrCPtrCPtr', 'int const * const * const *')\ .add_test(""" SInt32_CxxConstPtr_CxxConstPtr_CxxConstPtr result = GetIntCPtrCPtrCPtr(); report(result.cxxDeref().cxxGet().cxxDeref().cx...
23.291667
73
0.697674
aaf0be696e92004f4ea39120ebcdd98e45372150
550
py
Python
docdump/pdf.py
Gholtes/docdump
d29a39108ed89f27495ece1ba608f9b9a1e4cf2a
[ "MIT" ]
null
null
null
docdump/pdf.py
Gholtes/docdump
d29a39108ed89f27495ece1ba608f9b9a1e4cf2a
[ "MIT" ]
null
null
null
docdump/pdf.py
Gholtes/docdump
d29a39108ed89f27495ece1ba608f9b9a1e4cf2a
[ "MIT" ]
null
null
null
from PyPDF2 import PdfFileReader class pdf_reader: def __init__(self): pass def read(self, path): ''' Opens a pdf file, extracts text data inputs: str, a path to a PDF file outputs: str, a string of all the text in the pdf that could be extracted. runtime ~= 0.05sec per pdf ''' text_dump = [] wi...
21.153846
98
0.683636
f9aca4c18c05931d86d633749f7d135a196ddca0
864
py
Python
src/pygaps/utilities/folder_utilities.py
ReginaPeralta/ReginaPeralta
68ab1462083d40d7efb4af77d6fa915ad73de2b8
[ "MIT" ]
null
null
null
src/pygaps/utilities/folder_utilities.py
ReginaPeralta/ReginaPeralta
68ab1462083d40d7efb4af77d6fa915ad73de2b8
[ "MIT" ]
null
null
null
src/pygaps/utilities/folder_utilities.py
ReginaPeralta/ReginaPeralta
68ab1462083d40d7efb4af77d6fa915ad73de2b8
[ "MIT" ]
null
null
null
"""General functions for stepping through folders.""" import os.path from .exceptions import pgError def util_get_file_paths(folder, extension=None): """ Get the paths of the files with the requested extension as a list. Parameters ---------- folder : str Folder where the function will ...
22.736842
70
0.601852
107438a396084068312afa14bc7575d97d842a32
5,168
py
Python
tests/resources/test_add_file_to_dataset.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
null
null
null
tests/resources/test_add_file_to_dataset.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
null
null
null
tests/resources/test_add_file_to_dataset.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019, IRIS-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the foll...
44.17094
80
0.64493
550f7d32fa285b648d2758ff9339c647b7c04c41
30,146
py
Python
lib/googlecloudsdk/core/updater/snapshots.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/updater/snapshots.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/updater/snapshots.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.500639
80
0.701917
73e04f4c941c59a891278cb658b133e27c52f91a
969
py
Python
solutions/python3/problem1002.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem1002.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
solutions/python3/problem1002.py
tjyiiuan/LeetCode
abd10944c6a1f7a7f36bd9b6218c511cf6c0f53e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 1002. Find Common Characters Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (including duplicates). For example, if a character occurs 3 times in all strings but not 4 times, you need to include that ...
26.916667
93
0.611971
49ca8f9ad55e90f9d84f25091263f5c1eb0de617
61,446
py
Python
pandas/core/internals/managers.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
1
2020-11-02T13:14:06.000Z
2020-11-02T13:14:06.000Z
pandas/core/internals/managers.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
null
null
null
pandas/core/internals/managers.py
Japanuspus/pandas
e38e987160c792f315685dc74fc1fc33d9389a71
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict import itertools from typing import ( Any, Callable, DefaultDict, Dict, List, Optional, Sequence, Tuple, TypeVar, Union, ) import warnings import numpy as np from pandas._libs import internals as libinternals, lib from pandas._typing import A...
31.787894
88
0.572014
943704818b743b3b30e1e4b83be2fad7def150a6
332
py
Python
step9/test/clients/__init__.py
banalna/pip-samples-beacons-python
6a26bbb47f0d570e97e8135818ebcd76bfe41d93
[ "MIT" ]
null
null
null
step9/test/clients/__init__.py
banalna/pip-samples-beacons-python
6a26bbb47f0d570e97e8135818ebcd76bfe41d93
[ "MIT" ]
null
null
null
step9/test/clients/__init__.py
banalna/pip-samples-beacons-python
6a26bbb47f0d570e97e8135818ebcd76bfe41d93
[ "MIT" ]
1
2020-08-03T13:12:26.000Z
2020-08-03T13:12:26.000Z
# -*- coding: utf-8 -*- __all__ = ['TestBeaconsHttpClientV1', 'TestBeaconsDirectClientV1', 'BeaconsClientV1Fixture'] from .version1.BeaconsClientV1Fixture import BeaconsClientV1Fixture from .version1.test_BeaconsDirectClientV1 import TestBeaconsDirectClientV1 from .version1.test_BeaconsHttpClientV1 import TestBeacons...
47.428571
92
0.85241
fee3073169920ad2fd7a4fced06f7c75ac48da2a
9,728
py
Python
python/paddle/fluid/tests/unittests/test_scatter_nd_op.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_scatter_nd_op.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_scatter_nd_op.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
33.315068
80
0.576377
dd4bcdd5af5c5338b41f8759386330ae06cf82ae
2,682
py
Python
openaerostruct/structures/fuel_loads.py
EricUrbineer/OpenAeroStruct
26c37a0e86074517680405687824e27b3b2caaec
[ "Apache-2.0" ]
4
2020-09-15T23:24:15.000Z
2021-01-11T19:59:39.000Z
openaerostruct/structures/fuel_loads.py
EricUrbineer/OpenAeroStruct
26c37a0e86074517680405687824e27b3b2caaec
[ "Apache-2.0" ]
null
null
null
openaerostruct/structures/fuel_loads.py
EricUrbineer/OpenAeroStruct
26c37a0e86074517680405687824e27b3b2caaec
[ "Apache-2.0" ]
2
2020-08-25T16:38:14.000Z
2020-12-03T09:49:45.000Z
from __future__ import division, print_function import numpy as np from openmdao.api import ExplicitComponent from openaerostruct.utils.constants import grav_constant def norm(vec): return np.sqrt(np.sum(vec**2)) class FuelLoads(ExplicitComponent): """ Compute the nodal loads from the distributed fuel w...
33.525
122
0.609993
b2d33bfbcb6597618276e20681315d8462ad2218
261
py
Python
app/server.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
2
2020-05-10T16:06:17.000Z
2020-05-10T16:10:03.000Z
app/server.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
8
2020-04-07T16:36:51.000Z
2020-04-26T10:34:26.000Z
app/server.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
4
2020-04-18T22:53:33.000Z
2021-06-04T09:31:13.000Z
import config from app import create_app server = create_app(config) server.config["JWT_SECRET_KEY"] = config.JWT_SECRET_KEY server.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False if __name__ == "__main__": server.run(host=config.HOST, port=config.PORT)
26.1
55
0.785441
c2b913329b907ed4daf0ad86f7113b99b297cc0e
799
py
Python
tests/programs/package_overload/foo/__init__.py
RESP3CT88/Nuitka
0fcc25d9f00c4fc78c79a863c4b7987f573962e1
[ "Apache-2.0" ]
5,421
2018-09-24T08:04:06.000Z
2022-03-31T20:02:37.000Z
tests/programs/package_overload/foo/__init__.py
ztessler/Nuitka
04c9a5471b702a0e5f28398f2661c93b83ab0d1a
[ "Apache-2.0" ]
1,348
2018-09-22T13:41:00.000Z
2022-03-31T22:33:40.000Z
tests/programs/package_overload/foo/__init__.py
ztessler/Nuitka
04c9a5471b702a0e5f28398f2661c93b83ab0d1a
[ "Apache-2.0" ]
396
2018-09-28T15:37:03.000Z
2022-03-29T10:52:09.000Z
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
38.047619
79
0.715895
95c27648e30a7bb47aee540a1bcc543a3d96e307
2,231
py
Python
src/boat.py
ArnaudBuchholz/battleship
e2e435fad98f8365575eb76b28354db84697f798
[ "MIT" ]
null
null
null
src/boat.py
ArnaudBuchholz/battleship
e2e435fad98f8365575eb76b28354db84697f798
[ "MIT" ]
null
null
null
src/boat.py
ArnaudBuchholz/battleship
e2e435fad98f8365575eb76b28354db84697f798
[ "MIT" ]
null
null
null
import random class Boat: DIR_DOWN = 0 DIR_UP = 1 DIR_LEFT = 2 DIR_RIGHT = 3 _DIR_X = [0, 0, -1, 1] _DIR_Y = [1, -1, 0, 0] MAX_RANDOM_PLACING = 100 def __init__(self, size): self.size = size self.remaining = size def _place(self, grid, x, y, dir): dif_x...
27.8875
73
0.495294
1bc209b77ad9b51f215c12e44ee6e59195559fa1
4,512
py
Python
model_training/model_hpc_optimizer.py
cychu5/GenerativeLSTM
33a945465bed5902aa9b101340a429c8a37c4415
[ "Apache-2.0" ]
17
2019-09-11T21:51:12.000Z
2021-12-08T17:20:11.000Z
model_training/model_hpc_optimizer.py
cychu5/GenerativeLSTM
33a945465bed5902aa9b101340a429c8a37c4415
[ "Apache-2.0" ]
3
2020-03-03T07:19:04.000Z
2021-04-16T10:13:17.000Z
model_training/model_hpc_optimizer.py
cychu5/GenerativeLSTM
33a945465bed5902aa9b101340a429c8a37c4415
[ "Apache-2.0" ]
11
2019-08-24T10:04:56.000Z
2022-01-03T13:32:21.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jan 26 15:05:36 2021 @author: Manuel Camargo """ import os import copy import random import itertools import traceback import ast import pandas as pd import utils.support as sup import utils.slurm_multiprocess as slmp class ModelHPCOptimizer(): """ Hyperparameter-o...
36.983607
79
0.511303
0a1919ebd523309e50de52f778b87ef59d0ddbba
9,675
py
Python
bugsy_generalized.py
trattner/bugsy
47b0de9bdb1e50c3bf45fa785ba44266aa48547b
[ "MIT" ]
null
null
null
bugsy_generalized.py
trattner/bugsy
47b0de9bdb1e50c3bf45fa785ba44266aa48547b
[ "MIT" ]
null
null
null
bugsy_generalized.py
trattner/bugsy
47b0de9bdb1e50c3bf45fa785ba44266aa48547b
[ "MIT" ]
null
null
null
#LIS Proto-UROP project #Michael and Andy #2/25/2016 import pdb from heapq import heappush, heappop import planGlobals as glob from traceFile import debugMsg, debug, trAlways, tr """ Procedures and classes for BUGSY as described in https://www.jair.org/media/4047/live-4047-7225-jair.pdf """ class S...
41.523605
88
0.491163
17a3ea5e46c6f0083bf5c6295e00e35e0e3a9320
6,141
py
Python
custom_components/miningpoolhub/sensor.py
CoryKrol/ha-miningpoolhub
234ffea13bbfd176014712f42092d7d535317dc3
[ "Apache-2.0" ]
null
null
null
custom_components/miningpoolhub/sensor.py
CoryKrol/ha-miningpoolhub
234ffea13bbfd176014712f42092d7d535317dc3
[ "Apache-2.0" ]
8
2021-11-17T14:17:02.000Z
2021-12-24T19:11:58.000Z
custom_components/miningpoolhub/sensor.py
CoryKrol/ha-miningpoolhub
234ffea13bbfd176014712f42092d7d535317dc3
[ "Apache-2.0" ]
null
null
null
"""MiningPoolHub sensor platform.""" import logging from datetime import timedelta from typing import Any, Callable, Dict, Optional import miningpoolhub_py.exceptions import voluptuous as vol from aiohttp import ClientError from aiohttp import ClientResponseError from homeassistant import config_entries, core from hom...
33.194595
88
0.679857