hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
978a831843efed4c9a546c08310214668dcc7a6e
7,009
py
Python
docs/database_tables.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
2
2021-07-28T08:46:13.000Z
2022-01-19T17:05:48.000Z
docs/database_tables.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
3
2020-11-10T23:34:17.000Z
2021-03-31T16:19:21.000Z
docs/database_tables.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
null
null
null
"""Read database information from Django models and create a HTML table for the documentation. """ import collections import os import sys import django from loguru import logger DOCS_DIR = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.dirname(DOCS_DIR) sys.path.insert(0, BASE_DIR) os.environ["DJANG...
38.092391
194
0.542017
0
0
0
0
0
0
0
0
2,999
0.42733
978c3f0eef7e90463917faf45f6b1c6c86a54b70
5,454
py
Python
LibraryManagementSystem/settings.py
TejasJogi/Library-Management-System-Django-MYSQL
f6dd1910d4270e42ac200b4eb47f2e76cb0c296d
[ "MIT" ]
2
2021-11-26T16:21:05.000Z
2022-02-25T16:02:48.000Z
LibraryManagementSystem/settings.py
TejasJogi/Library-Management-System-Django-MYSQL
f6dd1910d4270e42ac200b4eb47f2e76cb0c296d
[ "MIT" ]
null
null
null
LibraryManagementSystem/settings.py
TejasJogi/Library-Management-System-Django-MYSQL
f6dd1910d4270e42ac200b4eb47f2e76cb0c296d
[ "MIT" ]
null
null
null
""" Django settings for LibraryManagementSystem project. Generated by 'django-admin startproject' using Django 3.2.9. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ "...
24.790909
103
0.706637
0
0
0
0
0
0
0
0
3,419
0.626879
978c454e2c28df828f082014fc81cd881d17aa27
2,497
py
Python
device/container/src/baseline_device/service/jobs/sample2.py
MartinMReed/aws-iot-baseline
61bdc51708e6f4480d0117a43f0adde5f6a63506
[ "MIT" ]
1
2021-12-31T05:05:30.000Z
2021-12-31T05:05:30.000Z
device/container/src/baseline_device/service/jobs/sample2.py
nelsestu/thing-expert
2e105d718c386258d8efdb329ea60da1072ffbe8
[ "MIT" ]
null
null
null
device/container/src/baseline_device/service/jobs/sample2.py
nelsestu/thing-expert
2e105d718c386258d8efdb329ea60da1072ffbe8
[ "MIT" ]
1
2021-04-05T23:44:12.000Z
2021-04-05T23:44:12.000Z
import json import logging import os import sys import threading import time import paho.mqtt.client as paho import paho.mqtt.publish as paho_publish from baseline_device.util.config import config from baseline_device.util.mqtt import MqttLoggingHandler logging.basicConfig(level=logging.INFO) logger = logging.getLog...
26.284211
109
0.673208
0
0
0
0
0
0
0
0
834
0.334001
978cde5321a929429de3c79977503bd4e3e5a2f0
12,183
py
Python
odoo-13.0/addons/sale/tests/test_onchange.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
12
2021-03-26T08:39:40.000Z
2022-03-16T02:20:10.000Z
odoo-13.0/addons/sale/tests/test_onchange.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
13
2020-12-20T16:00:21.000Z
2022-03-14T14:55:30.000Z
odoo-13.0/addons/sale/tests/test_onchange.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
17
2020-08-31T11:18:49.000Z
2022-02-09T05:57:31.000Z
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from odoo.tests.common import TransactionCase class TestOnchangeProductId(TransactionCase): """Test that when an included tax is mapped by a fiscal position, the included tax must be ...
44.790441
204
0.583682
12,006
0.985472
0
0
0
0
0
0
4,057
0.333005
978e392b87cb419fb505337ab4cee06b350097b0
8,390
py
Python
IEX_29id/utils/folders.py
kellyjelly0904/macros_29id
573946d13eee7f85da049ac666b5dd2d18d19bb1
[ "MIT" ]
null
null
null
IEX_29id/utils/folders.py
kellyjelly0904/macros_29id
573946d13eee7f85da049ac666b5dd2d18d19bb1
[ "MIT" ]
1
2021-11-10T02:00:41.000Z
2021-11-11T03:02:23.000Z
IEX_29id/utils/folders.py
kellyjelly0904/macros_29id
573946d13eee7f85da049ac666b5dd2d18d19bb1
[ "MIT" ]
2
2021-09-28T21:19:47.000Z
2021-10-12T20:51:43.000Z
from epics import caput from IEX_29id.utils.exp import Check_run, BL_Mode_Set, BL_ioc from IEX_29id.mda.file import MDA_CurrentDirectory from IEX_29id.mda.file import MDA_CurrentRun import os import re def Make_DataFolder(run,folder,UserName,scanIOC,ftp): #JM was here ->print full crontab command and change permi...
40.143541
297
0.590703
0
0
0
0
0
0
0
0
3,428
0.408582
978f1fcb3bef9348f27a0824ad9894eb219d2595
2,932
py
Python
sceance/set_watchlist.py
sjmignot/film-to-cal
82d5e96b65197ff96522324d6527fca6f18cc76b
[ "MIT" ]
6
2020-02-05T21:31:57.000Z
2020-03-08T00:35:16.000Z
sceance/set_watchlist.py
sjmignot/film-to-cal
82d5e96b65197ff96522324d6527fca6f18cc76b
[ "MIT" ]
null
null
null
sceance/set_watchlist.py
sjmignot/film-to-cal
82d5e96b65197ff96522324d6527fca6f18cc76b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Starts a Firfox headless brower to see if movies on your watchlist are playing at any of your favorite theaters. Favorite theaters are taken from a txt file (extracted from "theaters.txt"). These showtimes are compared to a watchlist (extracted from "watchlist.txt") -samuel mignot- ''' # ...
32.21978
115
0.62824
0
0
0
0
0
0
0
0
1,206
0.411323
978fc91e48a69b62fda28f8d703d52a062332e01
177
py
Python
app/routes/views.py
izconcept/Turnt
28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3
[ "Apache-2.0" ]
4
2018-01-29T05:51:32.000Z
2018-02-08T05:18:47.000Z
app/routes/views.py
izconcept/Turnt
28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3
[ "Apache-2.0" ]
3
2018-01-30T21:41:09.000Z
2018-01-31T18:20:01.000Z
app/routes/views.py
izconcept/Turnt
28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3
[ "Apache-2.0" ]
1
2019-03-29T19:32:28.000Z
2019-03-29T19:32:28.000Z
from app import app, drinks from flask import render_template, session, redirect, request @app.route('/') def index(): return render_template('index.html', drinks=drinks)
22.125
61
0.745763
0
0
0
0
84
0.474576
0
0
15
0.084746
978fd61709e98a6a4163084a70975c96d6b7f512
21,143
py
Python
ARHMM-code/olfactory_search_xval.py
Smear-Lab/Olfactory_Search
92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff
[ "MIT" ]
null
null
null
ARHMM-code/olfactory_search_xval.py
Smear-Lab/Olfactory_Search
92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff
[ "MIT" ]
null
null
null
ARHMM-code/olfactory_search_xval.py
Smear-Lab/Olfactory_Search
92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff
[ "MIT" ]
null
null
null
#Misc import os, time, argparse import h5py, json import glob, fnmatch,pdb from tqdm import tqdm import multiprocessing #Base import numpy as np import pandas as pd import scipy.stats as st from sklearn.model_selection import StratifiedKFold #Plotting import matplotlib matplotlib.use('Agg') import seaborn as sns from m...
40.895551
185
0.62328
0
0
0
0
0
0
0
0
7,031
0.332545
9793545d6d0e47925c766734e2f8f75b3b0595d3
1,402
py
Python
src/pyeff_io.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
3
2019-06-24T08:04:25.000Z
2020-05-26T03:45:45.000Z
src/pyeff_io.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
null
null
null
src/pyeff_io.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 PyEFF developers # # 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 agree...
40.057143
131
0.574893
0
0
0
0
0
0
0
0
738
0.526391
979375047a16643d63291a0d8aad8d8fc63735f2
22,196
py
Python
declarations_site/catalog/data/mapping_chesno.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
32
2015-04-01T15:17:35.000Z
2021-05-02T20:46:33.000Z
declarations_site/catalog/data/mapping_chesno.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
52
2015-03-23T21:37:04.000Z
2022-02-10T07:27:13.000Z
declarations_site/catalog/data/mapping_chesno.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
18
2015-03-16T22:10:44.000Z
2021-11-01T12:56:12.000Z
from collections import namedtuple SubDocument = namedtuple("SubDocument", ["path_prefix", "mapping"]) NumericOperation = namedtuple("NumericOperation", ["path_prefix", "field", "operation"]) JoinOperation = namedtuple("JoinOperation", ["paths", "separator"]) MAPPING = { "_id": "details/id", "intro": { ...
34.573209
88
0.421157
0
0
0
0
0
0
0
0
10,619
0.47842
9793ec4954370ea87c1224757843713b7976c1e3
3,179
py
Python
common/threads/thread_pool.py
ziizhuwy/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
8
2018-10-11T16:05:14.000Z
2020-12-30T08:21:15.000Z
common/threads/thread_pool.py
keven1z/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
1
2020-04-22T03:36:59.000Z
2020-06-11T06:42:42.000Z
common/threads/thread_pool.py
ziizhuwy/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
4
2019-07-10T06:51:45.000Z
2020-04-19T09:52:09.000Z
# !/usr/bin/env python # -*- coding:utf-8 -*- import queue import threading import traceback from data.config import * from common.log.log_util import LogUtil as log logger = log.getLogger(__name__) class ThreadPool(object): def __init__(self): self.task_queue = queue.Queue() self.threads = []...
32.773196
113
0.557093
2,970
0.934256
0
0
0
0
0
0
1,152
0.362378
9794d489e11c9d85b61fcfda17b5fcf122b391c0
4,431
py
Python
whatsappy/group.py
YohananDiamond/whatsappy
2474839baf32295fea568c4dd30c59edace11e58
[ "MIT" ]
null
null
null
whatsappy/group.py
YohananDiamond/whatsappy
2474839baf32295fea568c4dd30c59edace11e58
[ "MIT" ]
null
null
null
whatsappy/group.py
YohananDiamond/whatsappy
2474839baf32295fea568c4dd30c59edace11e58
[ "MIT" ]
null
null
null
from time import sleep from selenium.webdriver.common.keys import Keys from os import path from .tool import * from .error import BadPathError import traceback def change_group_description(self, description: str): """Changes the group description Args: description (str): New group description """...
31.204225
128
0.594223
0
0
0
0
0
0
0
0
1,988
0.446641
97959af172f3896c43a9153dc3a145cbbaa7178b
365
py
Python
Books/GodOfPython/P16_Networking/SimplehttpServer.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Books/GodOfPython/P16_Networking/SimplehttpServer.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Books/GodOfPython/P16_Networking/SimplehttpServer.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
from http.server import HTTPServer, SimpleHTTPRequestHandler import sys ip = '127.0.0.1' port = 8000 addr = (ip, port) httpd = HTTPServer(addr, SimpleHTTPRequestHandler) Servip, Servport = httpd.socket.getsockname() try: httpd.serve_forever() except KeyboardInterrupt: print('Keyboard interrupt received, exi...
20.277778
60
0.750685
0
0
0
0
0
0
0
0
50
0.136986
9796d5c78ed8b8b2d57b57dbb718992d6e9e2e56
935
py
Python
2020/day10.py
mbmackenzie/advent-of-code
66ef2723b67c84b9c03e05281106fb2811da17a1
[ "MIT" ]
null
null
null
2020/day10.py
mbmackenzie/advent-of-code
66ef2723b67c84b9c03e05281106fb2811da17a1
[ "MIT" ]
null
null
null
2020/day10.py
mbmackenzie/advent-of-code
66ef2723b67c84b9c03e05281106fb2811da17a1
[ "MIT" ]
null
null
null
"""Day 10: Adapter Array""" from collections import Counter from collections import defaultdict from aoc import Solution class Day10(Solution): """Solution to day 10 of the 2020 Advent of Code""" def __init__(self) -> None: super().__init__(2020, 10, "Adapter Array") @property def max_jolta...
25.972222
85
0.594652
810
0.86631
0
0
126
0.134759
0
0
134
0.143316
97970c5a1a0f3349fb93a725c6270efcd0b82297
874
py
Python
train.py
groverkds/hand_sign_recognition
4ae05c43af869e990acc636b0a031f903709dfbc
[ "Apache-2.0" ]
3
2020-02-18T07:12:42.000Z
2022-01-07T14:35:42.000Z
train.py
polawarrushi/hand_sign_recognition
493b3568c462280533a33cab592008c91da1f999
[ "Apache-2.0" ]
null
null
null
train.py
polawarrushi/hand_sign_recognition
493b3568c462280533a33cab592008c91da1f999
[ "Apache-2.0" ]
8
2019-05-22T15:45:17.000Z
2021-09-15T17:28:50.000Z
import numpy as np import pickle from sklearn.model_selection import train_test_split from sklearn import svm from sklearn import metrics import pandas as pd with open('data/dataframe.pickle', 'rb') as handle: df = pickle.load(handle) data = df.copy() data.drop('alphabet', axis=1) target = df.alphabet X_train, X_tes...
30.137931
125
0.771167
0
0
0
0
0
0
0
0
286
0.327231
9797b5af874059d81d0e5f547824f391670ed073
56
py
Python
gnoll/actions/dispatch.py
gnoll-project/gnoll-python
cf2540d2220733ba2203d86ca939fa64f38d0af0
[ "MIT" ]
null
null
null
gnoll/actions/dispatch.py
gnoll-project/gnoll-python
cf2540d2220733ba2203d86ca939fa64f38d0af0
[ "MIT" ]
null
null
null
gnoll/actions/dispatch.py
gnoll-project/gnoll-python
cf2540d2220733ba2203d86ca939fa64f38d0af0
[ "MIT" ]
null
null
null
from pyee import EventEmitter dispatch = EventEmitter()
18.666667
29
0.821429
0
0
0
0
0
0
0
0
0
0
979851dc526feb93a60dbe69c32893824847ba79
1,217
py
Python
dataclasses_serialization/serializer_base/dataclasses.py
blfoster/python-dataclasses-serialization
1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d
[ "MIT" ]
19
2019-04-15T15:57:20.000Z
2021-07-09T07:01:12.000Z
dataclasses_serialization/serializer_base/dataclasses.py
blfoster/python-dataclasses-serialization
1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d
[ "MIT" ]
14
2019-08-01T13:03:53.000Z
2021-04-20T13:26:54.000Z
dataclasses_serialization/serializer_base/dataclasses.py
blfoster/python-dataclasses-serialization
1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d
[ "MIT" ]
11
2019-06-13T21:38:55.000Z
2022-02-28T08:53:20.000Z
from toolz import curry from dataclasses_serialization.serializer_base.errors import DeserializationError from dataclasses_serialization.serializer_base.noop import noop_deserialization from dataclasses_serialization.serializer_base.typing import ( dataclass_field_types, isinstance, ) __all__ = ["dict_to_data...
29.682927
87
0.642564
0
0
0
0
886
0.72802
0
0
158
0.129827
97992e047d22c07ba264c49af6fa5aef078bd341
905
py
Python
pydrift/decorators.py
sergiocalde94/pydrift
8d8968ca80895cc31e86bc55df57ad64712e36d8
[ "MIT" ]
18
2020-06-27T21:05:18.000Z
2021-12-20T15:14:57.000Z
pydrift/decorators.py
sergiocalde94/pydrift
8d8968ca80895cc31e86bc55df57ad64712e36d8
[ "MIT" ]
5
2021-02-03T17:53:53.000Z
2021-04-23T14:03:36.000Z
pydrift/decorators.py
sergiocalde94/pydrift
8d8968ca80895cc31e86bc55df57ad64712e36d8
[ "MIT" ]
7
2020-06-07T10:51:41.000Z
2021-06-13T20:23:28.000Z
from functools import wraps def check_optional_module(_func=None, *, has_module: bool, exception_message: str): def decorator_check_optional_module(func): @wraps(func) def wrapper_check_optional_module(*args, **kwargs): ...
31.206897
67
0.640884
0
0
0
0
368
0.40663
0
0
0
0
979b32ffcbb69c325f9cc6f26076b4bf72ce74b8
93
py
Python
django-version/djversion/apps.py
sarath196/django-mptt-demo-re-version
d570aa8612c0bf838c191a7a8a1b3f57bf2be16f
[ "MIT" ]
null
null
null
django-version/djversion/apps.py
sarath196/django-mptt-demo-re-version
d570aa8612c0bf838c191a7a8a1b3f57bf2be16f
[ "MIT" ]
null
null
null
django-version/djversion/apps.py
sarath196/django-mptt-demo-re-version
d570aa8612c0bf838c191a7a8a1b3f57bf2be16f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjversionConfig(AppConfig): name = 'djversion'
15.5
33
0.763441
56
0.602151
0
0
0
0
0
0
11
0.11828
979b57b2f520e53382dbdd26bd190261e6e49b86
9,359
py
Python
DQN_Qlearning/agent.py
WoShiDongZhiWu/Reinforcement-learning-Algorithm
59fdf29e7feb73048b9ddf3b4755b55f0459efcb
[ "Apache-2.0" ]
1
2019-12-23T02:59:13.000Z
2019-12-23T02:59:13.000Z
DQN_Qlearning/agent.py
WoShiDongZhiWu/reinforcement-learning-algorithm
59fdf29e7feb73048b9ddf3b4755b55f0459efcb
[ "Apache-2.0" ]
null
null
null
DQN_Qlearning/agent.py
WoShiDongZhiWu/reinforcement-learning-algorithm
59fdf29e7feb73048b9ddf3b4755b55f0459efcb
[ "Apache-2.0" ]
null
null
null
''' ################################################################################################# # author wudong # date 20190812 # 功能 # 实现各类算法,Srasa(0),Sarsa(λ),Q-learning,DQN ################################################################################################# ''' from random import random, choic...
35.316981
105
0.543862
9,519
0.929136
0
0
0
0
0
0
2,473
0.241386
979c4c7ab54f0e47ec7248d0082811b92e99c917
3,649
py
Python
DMProject/15.package/15.7.MNIST.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
1
2018-02-26T15:45:17.000Z
2018-02-26T15:45:17.000Z
DMProject/15.package/15.7.MNIST.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
null
null
null
DMProject/15.package/15.7.MNIST.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np from sklearn import svm import matplotlib.colors import matplotlib.pyplot as plt from PIL import Image from sklearn.metrics import accuracy_score import pandas as pd import os import csv from sklearn.model_selection import train_test_split from sklearn.model_...
35.086538
132
0.64456
0
0
0
0
0
0
0
0
697
0.179316
979c80762641e4c8d009fdd05535ea43eb570cd2
4,122
py
Python
examples/collision-avoid/pyplot_staticplan.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/collision-avoid/pyplot_staticplan.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/collision-avoid/pyplot_staticplan.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.animation as animation import matplotlib.colors as mcolors from scipy.interpolate import interp1d from scipy.integrate import solve_ivp import os import re import numpy as np import h5py import sys from os.path import dirname, realpa...
30.761194
83
0.607472
0
0
0
0
0
0
0
0
696
0.16885
979eeaea89fd74c57893ede5d89f60a48b582ae8
2,394
py
Python
source/script/FASelector_SRC/Type/.JPG.py
onsoim/FuzzBuilderEx
d0e8bada27677a0f676e92dc48aaa764ba679508
[ "Apache-2.0" ]
6
2021-03-27T06:07:01.000Z
2022-03-29T04:54:03.000Z
source/script/FASelector_SRC/Type/.JPG.py
onsoim/FuzzBuilderEx
d0e8bada27677a0f676e92dc48aaa764ba679508
[ "Apache-2.0" ]
4
2021-03-24T00:10:59.000Z
2022-03-28T13:41:28.000Z
source/script/FASelector_SRC/Type/.JPG.py
onsoim/FuzzBuilderEx
d0e8bada27677a0f676e92dc48aaa764ba679508
[ "Apache-2.0" ]
2
2021-04-05T06:22:20.000Z
2021-10-01T21:07:18.000Z
#-*- coding:utf-8 -*- import os import re class folder(): def __init__(self,path): self.path = path if path[-1] != '/': self.path += '/' self.filelist = [] self.get_filelist() def get_filelist(self): tmp = os.listdir(self.path) for test in tmp: test = self.path + test if os.path.isfile(test):...
27.837209
81
0.621554
1,060
0.442774
0
0
0
0
0
0
395
0.164996
979f6be94ead98ea08a3e58188d707e4861320f7
3,656
py
Python
Constants.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
Constants.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
Constants.py
unmonk/Project-Infinity
63c22fcf4086adf868967cb172434e3ceba4bac5
[ "CC0-1.0" ]
null
null
null
__author__ = 'Scott' import os import pygame SCREEN_WIDTH = 1280 SCREEN_HEIGHT = 720 GAME_TITLE = "Project Infinity" MAP_COLLISION_LAYER = 2 MAP_DEATH_LAYER = 3 MAP_BACKGROUND_LAYER = 0 MAP_FORGROUND_LAYER = 1 MAP_ENDOFLEVEL_LAYER = 5 MAP_ITEM_LAYER = 4 BACKGROUND_COLOR = (20, 20, 20) screen = pygame.display.set_mode(...
34.490566
105
0.671772
0
0
0
0
0
0
0
0
1,101
0.301149
97a1ff60f08e5d9b17054c1f2b8239c0c712ac7b
17,655
py
Python
vol3/vol3-python-examples/lib/aifh/som.py
Sun-Joong/aifh
1b6363d26f54b77348020ce88ced0670568ed736
[ "Apache-2.0" ]
777
2015-01-17T22:48:26.000Z
2022-03-31T01:10:07.000Z
vol3/vol3-python-examples/lib/aifh/som.py
Sun-Joong/aifh
1b6363d26f54b77348020ce88ced0670568ed736
[ "Apache-2.0" ]
17
2015-01-02T14:41:24.000Z
2017-09-02T02:57:09.000Z
vol3/vol3-python-examples/lib/aifh/som.py
Sun-Joong/aifh
1b6363d26f54b77348020ce88ced0670568ed736
[ "Apache-2.0" ]
445
2015-01-26T17:01:49.000Z
2022-03-24T07:16:58.000Z
#!/usr/bin/env python """ Artificial Intelligence for Humans Volume 3: Deep Learning and Neural Networks Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2015 by Jeff Heaton Licensed under the Apache License, V...
37.886266
114
0.63625
16,599
0.940187
0
0
0
0
0
0
9,625
0.545171
97a29197dc50e799d9651b87306ebbcdd023348a
458
py
Python
loader.py
AmaRocket/TMDBMovieBotTelegram
07d248da0ee5c20e788612814f964917748474ba
[ "MIT" ]
null
null
null
loader.py
AmaRocket/TMDBMovieBotTelegram
07d248da0ee5c20e788612814f964917748474ba
[ "MIT" ]
null
null
null
loader.py
AmaRocket/TMDBMovieBotTelegram
07d248da0ee5c20e788612814f964917748474ba
[ "MIT" ]
null
null
null
import logging import asyncio from aiogram import Bot, Dispatcher from aiogram.contrib.fsm_storage.memory import MemoryStorage import config loop = asyncio.get_event_loop() bot = Bot(token=config.token, parse_mode='HTML') storage = MemoryStorage() dp = Dispatcher(bot, storage=storage) logging.basicConfig(format=u'%...
26.941176
105
0.69869
0
0
0
0
0
0
0
0
83
0.181223
97a4368e398e0b9f09d0d9196d816ae5a12f9c17
4,729
py
Python
animator/entity/basic_shape.py
sherlockdoyle/Animator
5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b
[ "MIT" ]
null
null
null
animator/entity/basic_shape.py
sherlockdoyle/Animator
5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b
[ "MIT" ]
null
null
null
animator/entity/basic_shape.py
sherlockdoyle/Animator
5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b
[ "MIT" ]
null
null
null
import math from animator.entity import Entity from animator.constant import * __all__ = ["Circle", "Ellipse", "Rect", "Square", "Poly"] class Circle(Entity): """ Draws a circle on the scene. :param r: The radius of the circle. Default is 0 """ def __init__(self, r=UNIT, **kwargs): ...
33.778571
117
0.550011
3,051
0.645168
0
0
0
0
0
0
1,783
0.377035
97a57543f9dc26b5f9e4368297bf82071ccf16c7
1,855
py
Python
src/GUI/custom_widgets.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
143
2019-12-31T08:12:36.000Z
2022-03-31T15:59:51.000Z
src/GUI/custom_widgets.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
5
2020-01-28T15:47:23.000Z
2022-02-23T11:18:55.000Z
src/GUI/custom_widgets.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
39
2019-12-30T22:19:38.000Z
2022-03-17T10:24:37.000Z
from Tkinter import * from hard_coded_texts import get_project_name class Header(Frame): """ Generic header template class which is used for construction of different screens """ def __init__(self, parent_window): Frame.__init__(self, parent_window) # Configure the window self...
37.1
112
0.686253
1,775
0.956873
0
0
0
0
0
0
421
0.226954
97a757d0e58b59160fb7713ada622222e925c521
4,479
py
Python
Code/search.py
Keyology/cs-1.3-2020
7b6f02c76dc16f1abafc613ebe6088d51b36b3be
[ "MIT" ]
null
null
null
Code/search.py
Keyology/cs-1.3-2020
7b6f02c76dc16f1abafc613ebe6088d51b36b3be
[ "MIT" ]
4
2020-02-17T23:27:06.000Z
2020-03-10T20:21:22.000Z
Code/search.py
Keyology/cs-1.3-2020
7b6f02c76dc16f1abafc613ebe6088d51b36b3be
[ "MIT" ]
null
null
null
#!python def linear_search(array, item): """return the first index of item in array or None if item is not found""" # implement linear_search_iterative and linear_search_recursive below, then # change this to call your implementation to verify it passes all tests # return linear_search_iterative(array,...
31.542254
95
0.663764
0
0
0
0
0
0
0
0
2,483
0.554365
97aa46050ee4e69349797e69e7c1131f9730f6f8
5,155
py
Python
panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
1
2018-11-27T16:43:37.000Z
2018-11-27T16:43:37.000Z
panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
2
2017-07-27T09:05:03.000Z
2019-04-03T20:28:31.000Z
panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py
CKrawczyk/python-reducers-for-caesar
9c5d9e072906d3fde2497fa61a66e4c8c0113ec2
[ "Apache-2.0" ]
2
2017-07-26T17:30:17.000Z
2017-07-27T09:14:51.000Z
import unittest from collections import Counter import copy import flask import json from panoptes_aggregation.reducers.survey_reducer import process_data, survey_reducer from panoptes_aggregation.reducers.test_utils import extract_in_data extracted_data = [ {'answers_howmanyanimalsdoyousee': {'1': 1.0}, 'answers_...
39.653846
212
0.628904
1,227
0.238021
0
0
0
0
0
0
2,179
0.422696
97affcf5430ea542d75da78b8065ecc199a3cc76
1,898
py
Python
PyMess/FIPS/ANN/ConvertData.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
PyMess/FIPS/ANN/ConvertData.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
PyMess/FIPS/ANN/ConvertData.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
import numpy as np from ... import Globals from .ReadData import ReadData import os import RecarrayTools as RT def _DateStrToDateUT(s): ''' convert date on the format YYYY-MM-DDThh:mm:ss.sss to an integer date and a floating point time. ''' Y = np.array([np.int32(x[0:4]) for x in s]) M = np.array([np.int32(x[5:7...
24.025316
70
0.630664
0
0
0
0
0
0
0
0
622
0.327713
97b17d951641a10dde5adb0978a509ff02ff1d9c
812
py
Python
libapp/migrations/0010_notification.py
Nyagah-Tech/library
2ae1df4e89257c9c7d7f2328ab6c5f6352867997
[ "MIT" ]
null
null
null
libapp/migrations/0010_notification.py
Nyagah-Tech/library
2ae1df4e89257c9c7d7f2328ab6c5f6352867997
[ "MIT" ]
8
2020-06-06T01:24:32.000Z
2022-02-10T12:26:48.000Z
libapp/migrations/0010_notification.py
Nyagah-Tech/library
2ae1df4e89257c9c7d7f2328ab6c5f6352867997
[ "MIT" ]
null
null
null
# Generated by Django 2.2.8 on 2020-01-23 06:58 from django.conf import settings from django.db import migrations, models import tinymce.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('libapp', '0009_comment'), ] ...
31.230769
119
0.626847
664
0.817734
0
0
0
0
0
0
131
0.16133
97b281cd2e09060653c37e8623382835d9e1206e
3,891
py
Python
2_data_files/plotter.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
2
2018-10-09T09:59:45.000Z
2021-11-21T17:01:47.000Z
2_data_files/plotter.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
null
null
null
2_data_files/plotter.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
null
null
null
import csv import matplotlib.pyplot as plt import numpy as np def index_sizes(): fp = open("./index_size.csv") x = csv.reader(fp, delimiter='\t') sizes = [] for line in x: size = float(line[0].strip()[:-1]) sizes.append(size) temp = sorted(sizes[:-1]) nodes = [i for i in range(1...
25.431373
76
0.561809
0
0
0
0
0
0
0
0
977
0.251092
97b47597bcd7e262415d73a5d1a8d5d991bcfe66
3,022
py
Python
generic_editor.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
1
2018-09-22T22:34:35.000Z
2018-09-22T22:34:35.000Z
generic_editor.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
generic_editor.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
# https://github.com/JonathanNickerson/talon_voice_user_scripts # jsc added indent/outdent and simplified jolt from talon.voice import Key, press, Str, Context ctx = Context('generic_editor') # , bundle='com.microsoft.VSCode') numeral_map = dict((str(n), n) for n in range(0, 20)) for n in [20, 30, 40, 50, 60, 70, 80...
26.743363
82
0.625745
0
0
0
0
0
0
0
0
962
0.318332
97b62ed540d6ffc6ab71d19b389a5534151aeb3d
4,260
py
Python
setup.py
blschatz/pyHDT
9553fd49e1e89a89d248e5d75b3a49ad3b3e124f
[ "MIT" ]
null
null
null
setup.py
blschatz/pyHDT
9553fd49e1e89a89d248e5d75b3a49ad3b3e124f
[ "MIT" ]
null
null
null
setup.py
blschatz/pyHDT
9553fd49e1e89a89d248e5d75b3a49ad3b3e124f
[ "MIT" ]
null
null
null
# setup.py # Author: Thomas MINIER - MIT License 2017-2018 from setuptools import setup, Extension from os import listdir import pybind11 import distutils import platform __pyhdt_version__ = "1.2.1" with open('README.rst') as file: long_description = file.read() def list_files(path, extension=".cpp", exclude="S...
37.368421
110
0.698122
0
0
0
0
0
0
0
0
2,058
0.483099
97ba1bc69fa28bb340ca97364cb86adfcaf60e62
2,880
py
Python
src/rest_api/mir_coords_to_csv.py
jonathanleinola/radiohead-master
f0854441c07aba0ccf51bf9ec8904b860eefd683
[ "MIT" ]
null
null
null
src/rest_api/mir_coords_to_csv.py
jonathanleinola/radiohead-master
f0854441c07aba0ccf51bf9ec8904b860eefd683
[ "MIT" ]
null
null
null
src/rest_api/mir_coords_to_csv.py
jonathanleinola/radiohead-master
f0854441c07aba0ccf51bf9ec8904b860eefd683
[ "MIT" ]
null
null
null
import time import sys import urllib3 from time import sleep import json import csv import datetime import requests from datetime import datetime import subprocess # just for changing file ownership at the end of script http = urllib3.PoolManager() ######################################################################...
39.452055
87
0.518056
0
0
0
0
0
0
0
0
1,614
0.560417
97bb0bfb2e83efd2bcd29357e37506cc837d9359
2,704
py
Python
arraycw.py
cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ
1337dacf9568e8e5249ce6aa13bd0e425b31e940
[ "Apache-2.0" ]
null
null
null
arraycw.py
cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ
1337dacf9568e8e5249ce6aa13bd0e425b31e940
[ "Apache-2.0" ]
null
null
null
arraycw.py
cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ
1337dacf9568e8e5249ce6aa13bd0e425b31e940
[ "Apache-2.0" ]
null
null
null
def main(): # problem1() # problem2() # problem3() # problem4() # problem5() def problem1(): awesomePeeps = ["kenn", "Kevin", "Erin", "Meka"] #made an array print(awesomePeeps[2]) #printing the second element print(len(awesomePeeps)) #printing the length and how many inside aweso...
23.719298
144
0.628698
0
0
0
0
0
0
0
0
1,569
0.580251
97be40091dbb9d0bd5f45ca454971f59e1fb204d
3,511
py
Python
timeeval_experiments/algorithms/mscred.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
2
2022-01-29T03:46:31.000Z
2022-02-14T14:06:35.000Z
timeeval_experiments/algorithms/mscred.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
timeeval_experiments/algorithms/mscred.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
from durations import Duration from typing import Any, Dict, Optional from timeeval import Algorithm, TrainingType, InputDimensionality from timeeval.adapters import DockerAdapter from timeeval.params import ParameterConfig import numpy as np import numpy as np from timeeval.utils.window import ReverseWindowing # p...
30.530435
125
0.672173
0
0
0
0
0
0
0
0
1,647
0.469097
97bf1504b82eb929f132872535cb5630bd14f3ad
7,470
py
Python
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional import numpy as np from sklearn.feature_selection import RFE from sklearn.linear_model import LinearRegression, LogisticRegression from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor from fedot.core.data.data import OutputData from fedot.core.operations.evaluation.operat...
37.35
105
0.654485
7,048
0.943507
0
0
197
0.026372
0
0
2,227
0.298126
97c09d6d0c463e1a6cbc1d5065aab627ff77af00
18,595
py
Python
budou/budou.py
aodag/budou
97be13eb87745d5ac78e9c42eda97ac923226259
[ "Apache-2.0" ]
null
null
null
budou/budou.py
aodag/budou
97be13eb87745d5ac78e9c42eda97ac923226259
[ "Apache-2.0" ]
null
null
null
budou/budou.py
aodag/budou
97be13eb87745d5ac78e9c42eda97ac923226259
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 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 requ...
33.625678
81
0.645012
17,728
0.951737
0
0
1,585
0.085092
0
0
8,621
0.462823
97c0da1f40fc823b2243e9c93e971592b96efa4c
318
py
Python
backend/api/admin.py
steviemsiy/FindTheGame
f4a86a38c8133089778735f34b04f9ce6b084c48
[ "MIT" ]
null
null
null
backend/api/admin.py
steviemsiy/FindTheGame
f4a86a38c8133089778735f34b04f9ce6b084c48
[ "MIT" ]
null
null
null
backend/api/admin.py
steviemsiy/FindTheGame
f4a86a38c8133089778735f34b04f9ce6b084c48
[ "MIT" ]
null
null
null
from django.contrib import admin #if ENVIRONMENT == 'PROD': # from api.models import * #else: from api.models import * # Register your models here. admin.site.register(Event, EventAdmin) admin.site.register(ApiKey, ApiKeyAdmin) admin.site.register(PlayerProfile) admin.site.register(Group) admin.site.register(Game)
22.714286
40
0.779874
0
0
0
0
0
0
0
0
86
0.27044
97c0f0316a610972e2430f4b0813c029c750b789
1,456
py
Python
lpd/callbacks/collect_outputs.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
4
2020-10-02T10:04:19.000Z
2022-01-19T12:45:02.000Z
lpd/callbacks/collect_outputs.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
1
2020-10-06T17:43:57.000Z
2020-10-06T17:47:43.000Z
lpd/callbacks/collect_outputs.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
1
2020-10-03T17:21:32.000Z
2020-10-03T17:21:32.000Z
from lpd.enums import Phase, State from lpd.callbacks.callback_base import CallbackBase from lpd.callbacks.callback_context import CallbackContext from typing import Union, List class CollectOutputs(CallbackBase): """ This callback will collect outputs per each state, (it is currently used in trainer.predi...
37.333333
110
0.677885
1,276
0.876374
0
0
0
0
0
0
462
0.317308
97c13a11e20c33272886d8a9d47cf19a001f5c55
107
py
Python
api/constants.py
python-discord/code-jam-management
b6b91357f0afa69f875336917a72ea771eb13556
[ "MIT" ]
6
2021-06-07T17:29:23.000Z
2022-02-25T23:36:16.000Z
api/constants.py
python-discord/code-jam-management
b6b91357f0afa69f875336917a72ea771eb13556
[ "MIT" ]
4
2021-09-04T13:53:40.000Z
2021-12-30T23:13:59.000Z
api/constants.py
python-discord/code-jam-management
b6b91357f0afa69f875336917a72ea771eb13556
[ "MIT" ]
2
2021-06-07T17:18:15.000Z
2021-06-14T19:32:33.000Z
from decouple import config DATABASE_URL = config("DATABASE_URL") LOG_LEVEL = config("LOG_LEVEL", "INFO")
21.4
39
0.766355
0
0
0
0
0
0
0
0
31
0.28972
97c42e24a090f424ea4838812d93847accbf8363
15,022
py
Python
snakebot.py
paulolima18/Snake_Python
f872f374c573963b4347333e4a2099a8956c9de4
[ "MIT" ]
null
null
null
snakebot.py
paulolima18/Snake_Python
f872f374c573963b4347333e4a2099a8956c9de4
[ "MIT" ]
null
null
null
snakebot.py
paulolima18/Snake_Python
f872f374c573963b4347333e4a2099a8956c9de4
[ "MIT" ]
null
null
null
'Game1' ''' x.type são os seguintes (Tudo em Capslock) quit atctiveevent keydown keyup mousemotion mousebuttonup mousebuttondown videioresize ''' #40pygame import pygame_textinput import pygame import random width=800 height=600 bsize=20 thick=20 fps=60 direction = 270 wall = 10 pygame.init() gdisplay=pygame.display....
34.853828
165
0.503462
0
0
0
0
0
0
0
0
2,135
0.142097
97c4ceb646afbf2252dacae9ae06cb0ea8c68412
327
py
Python
simplemap/html_render.py
patrick--/simplemap
1c0a9de1a9c2e35b73f3068511b9c17bc389ba50
[ "MIT" ]
126
2015-12-31T17:31:40.000Z
2020-01-21T19:45:27.000Z
simplemap/html_render.py
ptrks/simplemap
1c0a9de1a9c2e35b73f3068511b9c17bc389ba50
[ "MIT" ]
7
2016-01-01T17:10:02.000Z
2018-08-09T08:16:19.000Z
simplemap/html_render.py
ptrks/simplemap
1c0a9de1a9c2e35b73f3068511b9c17bc389ba50
[ "MIT" ]
14
2015-12-31T21:49:29.000Z
2017-09-13T06:19:32.000Z
""" simplemap.html_render ~~~~~~~~~~~~~~~~~~~~~ This module contains everything related to Jinja2 HTML rendering. """ from jinja2 import Undefined class SilentUndefined(Undefined): """ Allow Jinja2 to continue rendering if undefined tag is parsed """ def _fail_with_undefined_error(self, *args, **kwargs): retu...
20.4375
70
0.718654
175
0.535168
0
0
0
0
0
0
187
0.571865
97c5657c514435f5241d15a78f30c3d6d353de51
487
py
Python
P2.2-Intro Data Science/exercises/lesson_5/aadhaar_generated_quiz/aadhaar_generated_reducer.py
lucasosouza/udacity-data-analysis
2603565cede0c5269ce643584475929f8f2053ce
[ "MIT" ]
null
null
null
P2.2-Intro Data Science/exercises/lesson_5/aadhaar_generated_quiz/aadhaar_generated_reducer.py
lucasosouza/udacity-data-analysis
2603565cede0c5269ce643584475929f8f2053ce
[ "MIT" ]
null
null
null
P2.2-Intro Data Science/exercises/lesson_5/aadhaar_generated_quiz/aadhaar_generated_reducer.py
lucasosouza/udacity-data-analysis
2603565cede0c5269ce643584475929f8f2053ce
[ "MIT" ]
null
null
null
import sys def reducer(): aadhaar_generated = 0 old_key = None #Cycle through the list of key-value pairs emitted #by your mapper, and print out each key once, #along with the total number of Aadhaar generated, #separated by a tab. Assume that the list of key- #value pairs will be ordered...
28.647059
57
0.679671
0
0
0
0
0
0
0
0
355
0.728953
97c69078a7ae6ebe2e0737e89806854c5deb0cda
3,999
py
Python
src/genie/libs/parser/nxos/tests/ShowIpv6RipRouteVrfAll/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/nxos/tests/ShowIpv6RipRouteVrfAll/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/nxos/tests/ShowIpv6RipRouteVrfAll/cli/equal/golden_output_2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { 'vrf': { 'default': { 'address_family': { 'ipv4': { 'instance': { 'rip-1': { 'routes': { '2001:10:12:120::/64': { 'bes...
47.607143
84
0.15954
0
0
0
0
0
0
0
0
783
0.195799
97c76c081c460323a55942e3974a52a93f0623d4
804
py
Python
run_tests.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
11
2018-10-10T03:14:33.000Z
2022-01-05T14:18:15.000Z
run_tests.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
196
2018-03-21T19:44:56.000Z
2021-12-21T21:56:24.000Z
run_tests.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
5
2019-12-09T21:54:45.000Z
2022-03-20T04:22:14.000Z
#!/usr/bin/env python import os import sys import cdat_info class VCSTestRunner(cdat_info.TestRunnerBase): def _prep_nose_options(self): opt = super(VCSTestRunner, self)._prep_nose_options() if self.args.no_vtk_ui: opt += ["-A", "not vtk_ui"] if self.args.vtk is not None: ...
28.714286
75
0.618159
383
0.476368
0
0
0
0
0
0
150
0.186567
97c77c550cf0c53433815e5c8467ef4ace730897
1,007
py
Python
pyrl/cli/util.py
jponf/pyrl
1353d59deee2731c509991a6cca90a7b991779bc
[ "Apache-2.0" ]
2
2021-01-25T15:04:45.000Z
2021-11-05T06:15:40.000Z
pyrl/cli/util.py
jponf/pyrl
1353d59deee2731c509991a6cca90a7b991779bc
[ "Apache-2.0" ]
null
null
null
pyrl/cli/util.py
jponf/pyrl
1353d59deee2731c509991a6cca90a7b991779bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import random import six # SciPy Stack import numpy as np # Torch import torch ############################################################################### def initialize_seed(seed): """Initializes the seed of different PRNGs. :param seed: Value to initialize the PRNGs. ""...
20.55102
79
0.569017
0
0
0
0
0
0
0
0
354
0.351539
97c97448c31c9699860a83ac252dd71c1be4c6a6
1,522
py
Python
code/src/main/python/mos/blocks/contest_meta_block.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
null
null
null
code/src/main/python/mos/blocks/contest_meta_block.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
1
2021-11-03T08:28:31.000Z
2021-11-03T08:28:31.000Z
code/src/main/python/mos/blocks/contest_meta_block.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
1
2022-03-22T14:24:13.000Z
2022-03-22T14:24:13.000Z
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "COSAL" from utils.lib import O class ContestMeta(O): def __init__(self, **kwargs): O.__init__(self, **kwargs) self.submission_id = None self.contest_type = None self.contest_id = None sel...
24.548387
59
0.653745
1,379
0.906045
0
0
555
0.364652
0
0
214
0.140604
97ca9e6d4a2bc51de1e8a75b509fdde60fa6a362
1,312
py
Python
app/Product.py
krishotte/web_sperky
fec2e150c146c69d3b002085407c2cd2d749ec6a
[ "MIT" ]
null
null
null
app/Product.py
krishotte/web_sperky
fec2e150c146c69d3b002085407c2cd2d749ec6a
[ "MIT" ]
null
null
null
app/Product.py
krishotte/web_sperky
fec2e150c146c69d3b002085407c2cd2d749ec6a
[ "MIT" ]
null
null
null
"""Product Model.""" from config.database import Model from orator.orm import belongs_to, belongs_to_many, has_many, has_one class Product(Model): """Product Model.""" __fillable__ = ['name', 'category_id', 'price', 'description', 'image_folder', 'detail', 'note'] @belongs_to('category_id', 'id') de...
27.914894
119
0.681402
1,183
0.901677
0
0
994
0.757622
0
0
306
0.233232
97cc531294afb11301fe771674b2ba6517514180
562
py
Python
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
null
null
null
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
1
2020-02-10T08:11:23.000Z
2020-02-10T08:11:23.000Z
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
3
2020-02-09T11:14:33.000Z
2020-04-11T16:10:17.000Z
from PIL import Image import json import numpy as np from tqdm import tqdm with open('../../../coco/MSCOCO_train_val_Korean.json', 'r', encoding='utf-8') as f: info = json.load(f) # print(info[0]['file_path']) img_path = '../../../coco/' img_size = 64 images = np.empty((len(info), img_size, img_size, 3), dtype=n...
26.761905
84
0.658363
0
0
0
0
0
0
0
0
132
0.234875
97ccf40733199c207a29b866cea4353f6edc523b
630
py
Python
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
1
2021-01-03T06:42:58.000Z
2021-01-03T06:42:58.000Z
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
class Node: def __init__(self, value): self.value = value self.nextnode = None def cycle_check(node): if not node: return False head = node node = node.nextnode while node: if node == head: return True node = node.nextnode return False if _...
17.027027
33
0.539683
98
0.155556
0
0
0
0
0
0
65
0.103175
97cea0095c84b4a1f87650614e47111614016fd2
3,619
py
Python
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
1
2020-07-16T14:51:26.000Z
2020-07-30T12:46:55.000Z
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
null
null
null
from nonebot import on_command, CommandSession from nonebot import on_natural_language, NLPSession, IntentCommand from jieba import posseg @on_command("sushe", aliases=("宿舍", "寝室"), only_to_me=False) async def sushe(session: CommandSession): if session.event.group_id == 818278353: await session.send("""一...
35.480392
109
0.721194
0
0
0
0
4,380
0.959895
3,392
0.743371
1,904
0.417269
97cf3240bc800a83f7619e974f4e80d78228793e
500
py
Python
calculatorapi/calculatorapi_client.py
sufyankhanrao/assignment_7_3_1
4bcf99c3e56f1ef5ae77990f59691f85b0307ff3
[ "MIT" ]
null
null
null
calculatorapi/calculatorapi_client.py
sufyankhanrao/assignment_7_3_1
4bcf99c3e56f1ef5ae77990f59691f85b0307ff3
[ "MIT" ]
null
null
null
calculatorapi/calculatorapi_client.py
sufyankhanrao/assignment_7_3_1
4bcf99c3e56f1ef5ae77990f59691f85b0307ff3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ calculatorapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ from calculatorapi.decorators import lazy_property from calculatorapi.configuration import Configuration from calculatorapi.controllers.simple_calculator_controller import SimpleCalcu...
21.73913
93
0.77
159
0.318
0
0
91
0.182
0
0
133
0.266
97cf4d5a480c01da483d0f38460e002acb1f26fe
3,387
py
Python
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
43.423077
117
0.71804
1,865
0.550635
0
0
0
0
0
0
1,424
0.420431
97d09a3a5d1f3d145292ae525c74f813c38634ca
1,539
py
Python
app/account/migrations/0002_alter_user_options_alter_user_managers_and_more.py
NhatHox23/nhat-inventory-backend
d494d91c9b68a1a441e72d94018be86f07d2141e
[ "MIT" ]
1
2021-12-25T06:54:48.000Z
2021-12-25T06:54:48.000Z
app/account/migrations/0002_alter_user_options_alter_user_managers_and_more.py
NhatHox23/nhat-inventory-backend
d494d91c9b68a1a441e72d94018be86f07d2141e
[ "MIT" ]
null
null
null
app/account/migrations/0002_alter_user_options_alter_user_managers_and_more.py
NhatHox23/nhat-inventory-backend
d494d91c9b68a1a441e72d94018be86f07d2141e
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-17 08:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='user', options={}, ), ...
24.046875
64
0.489279
1,448
0.940871
0
0
0
0
0
0
254
0.165042
8ad8e73f0765a04eca466c875d8845aef87a9bad
372
py
Python
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import unittest from bes.hardware.Ftdi import Ftdi class TestFtdi(unittest.TestCase): def test_find_devices(self): devices = Ftdi.find_devices() for device in devices: print('DEVICE: ', de...
23.25
90
0.693548
159
0.427419
0
0
0
0
0
0
131
0.352151
8ad9c64ca58eeecc2c0887b2257ecd48066ce9be
6,097
py
Python
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
task3.py
Anchorboy/PR_FinalProject
e744723c9c9dd55e6995ae5929eb45f90c70819b
[ "MIT" ]
null
null
null
import os import random from itertools import cycle import cv2 import matplotlib.pyplot as plt import numpy as np from scipy import interp from skimage import exposure from skimage.feature import hog from sklearn import metrics from sklearn.decomposition import PCA from sklearn.preprocessing import label_binarize from...
36.951515
135
0.626866
0
0
0
0
0
0
0
0
1,129
0.185173
8adba14d1116a00200adf306c8aff70161525c2c
6,504
py
Python
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from torch.optim import SGD import torch as t from scipy import constants import numpy as np import pandas as pd from pyhdx.models import Protein class DeltaGFit(nn.Module): def __init__(self, deltaG): super(DeltaGFit, self).__init__() self.del...
36.745763
133
0.64837
5,185
0.797202
0
0
3,368
0.517835
0
0
1,448
0.222632
8adcaaa5e04f3df5fcea316f738bf758a8c1621e
665
py
Python
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
1
2022-03-27T20:51:28.000Z
2022-03-27T20:51:28.000Z
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
null
null
null
backend/models.py
FoamyGuy/PyPortal_Signage_System
46515841bdb413b25e97604697901c2ad6ad471e
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models import uuid # Create your models here. from django.db.models import CASCADE class Plan(models.Model): name = models.CharField(max_length=128) content_image = models.FileField(upload_to="content", blank=True, default='') content_json...
30.227273
81
0.697744
513
0.771429
0
0
0
0
0
0
46
0.069173
8adf4e176f915ff5864e25390bfbffbbd957feee
179
py
Python
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
2
2020-06-12T09:50:09.000Z
2021-06-25T16:06:11.000Z
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
null
null
null
jinja2_error/__init__.py
mumubin/jiaja2_error
f2f2df42ec60a99442f61d480ffbf8c67071a737
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .jinja2_error import ErrorExtension __author__ = 'Robin Hu' __email__ = 'given.hubin@gmail.com' __version__ = '0.1.0' __all__ = ['ErrorExtension']
17.9
40
0.698324
0
0
0
0
0
0
0
0
79
0.441341
8ae079fb5cc787087019878ddc15a079fc9ed4df
2,165
py
Python
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/9/14/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import collections class MaxQueue(object): """ MaxQueue provides a base queue API and tracks the largest item contained in the queue. """ def __init__(self): self.items = [] self.peaks = [] def enqueue(self, x): self.items.append(x) while len(self.peaks) > 0 an...
23.031915
81
0.50485
698
0.322402
0
0
0
0
0
0
200
0.092379
8ae1bf6090dd889c0f197f2b8a758940dc94c4c9
992
py
Python
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
"""tags and base with unique Revision ID: 035e7209663c Revises: Create Date: 2022-04-16 11:22:34.040818 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '035e7209663c' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### comman...
26.810811
72
0.680444
0
0
0
0
0
0
0
0
445
0.448589
8ae23495524de5ac2aff79dd30996961f889e7e8
486
py
Python
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
bot/plugins/bongo.py
JastLucy/twitch-chat-bot
df7cde7e4f78d4789c69e63d0920063bf493d1ca
[ "MIT" ]
null
null
null
from __future__ import annotations from bot.config import Config from bot.data import command from bot.data import esc from bot.data import format_msg from bot.message import Message @command('!bongo') async def cmd_bongo(config: Config, msg: Message) -> str: _, _, rest = msg.msg.partition(' ') rest = rest.s...
23.142857
76
0.683128
0
0
0
0
299
0.615226
280
0.576132
88
0.18107
8ae264be6fcb91ac2eb22ef29be6e415fafa0087
6,079
py
Python
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
4
2020-05-29T22:54:41.000Z
2021-10-03T07:59:07.000Z
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
2
2020-08-28T07:39:43.000Z
2021-04-05T12:45:39.000Z
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
null
null
null
""" This module holds some utility functions used as part of the man command to format text from CLI commands into consistent man pages that respond to the terminal width. """ import curses from recline.arg_types.positional import Positional from recline.arg_types.remainder import Remainder from recline.commands.cli_...
39.474026
92
0.623787
0
0
0
0
0
0
0
0
1,710
0.281296
8ae39804dc5f4ef4b01469e35dccf93770837275
1,759
py
Python
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
3
2022-03-29T17:54:19.000Z
2022-03-29T17:54:42.000Z
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2022 BigML # # 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 ...
37.425532
77
0.675952
0
0
0
0
0
0
0
0
708
0.402501
8ae58acf089690caafb8cdb5422fc701ad32f66a
2,749
py
Python
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
import pandas as pd import streamlit as st import openai import os import jsonlines import pickle from rank_bm25 import BM25Okapi openai.organization = "org-eiJyreiRZUtpiu8pm6LIIA8B" openai.api_key = st.secrets['API_KEY'] """ # Data Science Institute x Disability Research Network: A UTS HASS-DSI Research Project Th...
36.171053
441
0.706075
0
0
0
0
0
0
0
0
1,376
0.500546
8ae5d110cb00dff54458d2c48b5bb3d0525b7694
2,468
py
Python
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_bootstrap_tour(self): self.open("https://xkcd.com/1117/") self.assert_element('img[alt="My Sky"]') self.create_bootstrap_tour() self.add_tour_step("Welcome to XKCD!") self.add_tour_step("This is the XKC...
36.294118
87
0.603728
2,431
0.985008
0
0
1,056
0.427877
0
0
836
0.338736
8ae89e6b4029a557bbcd06a8ce74401ad918eb08
899
py
Python
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
null
null
null
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
1
2016-05-12T21:25:09.000Z
2016-07-20T08:58:57.000Z
tests/strawpoll_api_reader_tests.py
vaibhav-y/py-strawpoll
d725beb9a0e42ced84f9ae648bdf8a7216bd6e55
[ "MIT" ]
null
null
null
from strawpoll import StrawpollAPIReader from random import randrange import requests # Setup test fixtures for poll id `id` id = randrange(1, 1000) BASE_URL = 'https://strawpoll.me' API_PATH = 'api/v2/polls' json = requests.get('/'.join([BASE_URL, API_PATH, str(id)])) sp = dict(json=json.text, api=StrawpollAPIReader...
35.96
128
0.74416
0
0
0
0
0
0
0
0
311
0.34594
8ae9058fefadf30c0326f4f63c43379b31ae9689
9,267
py
Python
src/tests/functional/test_entry_data_endpoint.py
jroberts07/fpl-stats-api
3a7b5faacec5f83643a16143000b46bea70b5364
[ "MIT" ]
null
null
null
src/tests/functional/test_entry_data_endpoint.py
jroberts07/fpl-stats-api
3a7b5faacec5f83643a16143000b46bea70b5364
[ "MIT" ]
7
2019-09-08T21:46:14.000Z
2019-12-23T15:06:53.000Z
src/tests/functional/test_entry_data_endpoint.py
jroberts07/fpl_stats_api
3a7b5faacec5f83643a16143000b46bea70b5364
[ "MIT" ]
null
null
null
from aioresponses import aioresponses from server import app as sanic_app async def test_success_multiple_classics(test_cli): """Test entry data with an array of classic leagues. Args: test_cli (obj): The test event loop. """ with aioresponses(passthrough=['http://127.0.0.1:']) as m: ...
28.601852
75
0.499838
0
0
0
0
0
0
9,169
0.989425
2,412
0.260278
8aec45c46dd80ffcb2b3b4c997ad5691276264a2
916
py
Python
option/asian.py
Michany/pycing
761c3cd1a887d6a168909abc107c6ea0d80992d3
[ "MIT" ]
null
null
null
option/asian.py
Michany/pycing
761c3cd1a887d6a168909abc107c6ea0d80992d3
[ "MIT" ]
1
2020-02-12T15:12:41.000Z
2020-02-12T15:13:34.000Z
option/asian.py
Michany/pycing
761c3cd1a887d6a168909abc107c6ea0d80992d3
[ "MIT" ]
null
null
null
import numpy as np from ..core.derivative import Derivative class AsianCallOption(Derivative): def __init__(self, S, K, T, r, sigma, steps, **kwargs): super().__init__(S_0=S, T=T, r=r, sigma=sigma, steps=steps, **kwargs) self.S = S self.K = K self.T = T self.r = r ...
26.941176
85
0.578603
851
0.929039
0
0
0
0
0
0
0
0
8aed0fd9be816c87487500edc230255c399c0ca8
8,283
py
Python
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
14
2020-09-23T18:51:41.000Z
2020-10-10T11:22:58.000Z
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
null
null
null
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Annotate the output of ReQTL as cis or trans Created on Aug, 29 2020 @author: Nawaf Alomran This module annotates the output of ReQTL as cis or trans based on whether the SNVs resides within its paired gene. Input + Options ---------------- + -r: the path to the ReQTL analysis result...
33
79
0.608234
0
0
0
0
0
0
0
0
4,241
0.512013
8aef1e6b611dba02218b5cc706c486dafbea639a
940
py
Python
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
#!/usr/bin/env python """ Import a Firefox bookmarks file into a single json list """ import json import pprint def walk(struct, depth=0): children = struct.get('children') if children: for child in children: if child.get('type') == 'text/x-moz-place': title = child.get('t...
24.736842
60
0.453191
0
0
0
0
0
0
0
0
165
0.175532
8af06ba56b9d9246907fcee08895d969c1f3947a
429
py
Python
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
null
null
null
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
null
null
null
hostel/devices/migrations/0003_device_photos.py
phylocko/hostel
ff9fb7eb2d38e8cbe4feb096a07f0c5cea1a5365
[ "Apache-2.0" ]
1
2020-10-31T17:33:52.000Z
2020-10-31T17:33:52.000Z
# Generated by Django 2.0.5 on 2021-10-05 00:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0004_photos'), ('devices', '0002_auto_20201017_2132'), ] operations = [ migrations.AddField( model_name='devic...
21.45
60
0.589744
336
0.783217
0
0
0
0
0
0
132
0.307692
8af62ad39d558e0d5a5806871f1e4a6b7a8df43e
194,948
py
Python
src/lib/tracker/multitracker.py
DerryHub/FairMOT-attack
2678cebe939eb8e14106c1e9e07f0c44b5ba975f
[ "MIT" ]
18
2021-11-18T15:38:46.000Z
2022-03-22T07:24:27.000Z
src/lib/tracker/multitracker.py
DerryHub/FairMOT-attack
2678cebe939eb8e14106c1e9e07f0c44b5ba975f
[ "MIT" ]
null
null
null
src/lib/tracker/multitracker.py
DerryHub/FairMOT-attack
2678cebe939eb8e14106c1e9e07f0c44b5ba975f
[ "MIT" ]
1
2021-11-25T03:14:37.000Z
2021-11-25T03:14:37.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # ------------------------------------------------------------------------------ from collections import deque import cv2 import numpy as np im...
43.986462
201
0.56671
191,751
0.983601
0
0
4,324
0.02218
0
0
17,894
0.091789
8af66fdc8a9ee446bc7b0332263e370019166959
2,130
py
Python
t_system/db_fetching.py
sevgiun/T_System
2664e38843c36578bfb6c61e2642b56bd537352a
[ "MIT" ]
7
2019-11-06T10:00:39.000Z
2021-06-29T20:31:54.000Z
imline/db_fetching.py
MCYBA/ImLine
0d1bde9d196432905f3ed00b41cb048c97cf1b44
[ "MIT" ]
741
2019-11-01T11:23:33.000Z
2022-03-31T13:49:17.000Z
imline/db_fetching.py
MCYBA/ImLine
0d1bde9d196432905f3ed00b41cb048c97cf1b44
[ "MIT" ]
6
2019-11-01T11:49:27.000Z
2022-03-18T03:04:16.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ .. module:: database :platform: Unix :synopsis: the top-level submodule of T_System that contains the functions and classes related to T_System's database and table creation ability. Powered by TinyDB. .. moduleauthor:: Cem Baybars GÜÇLÜ <cem.baybars@gmail.com> "...
34.354839
168
0.615493
1,723
0.807782
0
0
422
0.197843
0
0
1,572
0.73699
8af9408c776206126f843ee9b5587d4d0acab636
5,153
py
Python
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
2
2021-01-26T02:07:32.000Z
2021-02-03T03:56:55.000Z
# Copied from cellSNP, https://github.com/single-cell-genetics/cellSNP/blob/purePython/cellSNP/utils/pileup_regions.py # Utilility functions for pileup SNPs across regions # originally in from pileup_utils.py # Author: Yuanhua Huang # Date: 21/05/2018 # Modified by: Xianjie Huang from .pileup import * from .sam import...
38.744361
118
0.622938
0
0
0
0
0
0
0
0
1,963
0.380943
8af96d0df5555eb37bb2040db58c0c8a963553d0
374
py
Python
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
import importlib # from scrapy_framework.config.settings import SPIDERS # # # for data in SPIDERS: # print(data) # path=data.rsplit(".",1)[0] # cls_name=data.rsplit(".",1)[1] # module=importlib.import_module(path) # cls=getattr(module, cls_name) # print(cls) d = {'a':1,'b':4,'c':2} c=sorted(...
20.777778
54
0.63369
0
0
0
0
0
0
0
0
265
0.708556
8afad3555501f5f26b1ee0d4bb4ad784ace7da70
812
py
Python
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
null
null
null
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
2
2018-05-10T21:53:27.000Z
2018-05-15T17:37:20.000Z
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
null
null
null
from django.urls import path from .views import LibraryView, PhotosView, AlbumsView, PhotoView, AlbumView from .views import PhotoCreateView, AlbumCreateView, PhotoEditView, AlbumEditView urlpatterns = [ path('library/', LibraryView.as_view(), name='library'), path('photos/', PhotosView.as_view(), name='photo...
47.764706
81
0.704433
0
0
0
0
0
0
0
0
221
0.272167
8afb51114e53c381340def1b8d3f0d6726b17916
310
py
Python
Python/049group_anagrams.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
4
2020-03-17T03:08:51.000Z
2022-03-14T17:33:28.000Z
Python/049group_anagrams.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
null
null
null
Python/049group_anagrams.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
3
2021-04-29T16:51:02.000Z
2022-03-19T17:37:56.000Z
class Solution: def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] """ result = collections.defaultdict(list) for s in strs: key = "".join(sorted(s)) result[key].append(s) return result.values()
25.833333
46
0.509677
309
0.996774
0
0
0
0
0
0
79
0.254839
8afb97d50c56a425188ed738b021e57471f05003
758
py
Python
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
1
2021-05-03T14:55:20.000Z
2021-05-03T14:55:20.000Z
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
2
2021-03-01T16:37:30.000Z
2021-05-03T20:37:56.000Z
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
null
null
null
from django.urls import path from app import views app_name = 'poll' urlpatterns = [ path('', views.home, name='home'), path('register', views.register, name='register'), path('login', views.admin_login, name='login'), path('create_poll/', views.create_poll, name='create_poll'), path('show_polls/'...
39.894737
77
0.675462
0
0
0
0
0
0
0
0
278
0.366755
8afe34ceebaf6f7db1a23f0d092b72c7df8780de
501
py
Python
1200-minimum-absolute-difference/1200-minimum-absolute-difference.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1200-minimum-absolute-difference/1200-minimum-absolute-difference.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1200-minimum-absolute-difference/1200-minimum-absolute-difference.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
class Solution: def minimumAbsDifference(self, arr: List[int]) -> List[List[int]]: results = [] mini = 1000000000 arr.sort() for a,b in zip(arr,arr[1:]): diff = abs(a-b) if diff == mini: results.append([a,b]) #print("pp...
29.470588
70
0.423154
484
0.966068
0
0
0
0
0
0
42
0.083832
8aff4d08b156fe05c3178ca97948dcab05b52a18
1,588
py
Python
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class SEBlock(nn.Module): def __init__(self, in_c, kernel_size, r, dummy_x) -> None: super().__init__() self.in_c = in_c self.conv1 = nn.Conv1d(in_channels=self.in_c, out_channels=self.in_c, kernel_size=kernel_size, padding=...
30.538462
108
0.537783
1,311
0.825567
0
0
0
0
0
0
124
0.078086
8aff5ab7850fa3bfa7318217948a0adf3698bd28
532
py
Python
otk/test/test_rii.py
draustin/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
7
2020-05-17T14:26:42.000Z
2022-02-14T04:52:54.000Z
otk/test/test_rii.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
17
2020-04-10T22:50:00.000Z
2020-06-18T04:54:19.000Z
otk/test/test_rii.py
uamhforever/otk
c6e91423ec79b85b380ee9385f6d27c91f92503d
[ "MIT" ]
1
2022-02-14T04:52:45.000Z
2022-02-14T04:52:45.000Z
import numpy as np from otk import rii def test_rii(): pages = rii.search('Eimerl-o', 'BaB2O4') assert len(pages) == 1 entry = rii.load_page(pages[0]) index = rii.parse_entry(entry) assert (abs(index(220e-9) - 1.8284) < 1e-3) def test_lookup_index(): assert (abs(rii.lookup_index('Malitson', ...
31.294118
93
0.640977
0
0
0
0
0
0
0
0
62
0.116541
c1019da9fdbebdeb2177f41e024ec8a2375bfc50
355
py
Python
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('motech', '0001_initial'), ] operations = [ migrations.AddField( model_name='requestlog', name='payload_id', field=models.CharField(blank=True, max_length...
20.882353
74
0.588732
311
0.876056
0
0
0
0
0
0
46
0.129577
c10256e1a56feb6756445ccac8a450d8e5c12102
754
py
Python
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
from . import base from revibe._helpers import const, status # ----------------------------------------------------------------------------- class ParameterMissingError(base.ExpectationFailedError): default_detail = "missing paramter, please check the docs for request requirements" class SerializerValidationErr...
31.416667
87
0.71618
598
0.793103
0
0
0
0
0
0
295
0.391247
c1041af258749524bc55eafa1ab81f6db8f7fd21
1,188
py
Python
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
3
2021-04-20T11:23:58.000Z
2022-01-17T02:57:33.000Z
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
null
null
null
erhsh/utils/file_util.py
erhsh/erhsh-python
aeb04352948a2e1f8125a2681b80104b5146bff8
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime def list_sub_dirs(dir_path): if not os.path.exists(dir_path): raise RuntimeError("invalid dir path.") if not os.path.isdir(dir_path): raise RuntimeError("invalid dir path.") sub_dirs = [] sub_files = os.listdir(dir_path) for sub_file_name i...
31.263158
79
0.677609
0
0
0
0
0
0
0
0
106
0.089226
c1099cb2a2632c598917595fb2f7f6e6745f4161
3,885
py
Python
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
#Clean Code for Picture uploader for social media platform import praw import random import pandas as pd import config from openpyxl import load_workbook import requests import json #Reddit Creds r = praw.Reddit( client_id= "Enter Info Here", client_secret= "Enter Info Here", user_agent= "Enter Info Here",...
28.566176
97
0.605405
0
0
0
0
0
0
0
0
1,246
0.320721
c10abea2f9bc648d3729f1ca476f5d8723fdfb12
3,914
py
Python
eph/interface.py
bluePhlavio/eph
9ad8d753ba70d7ed147a591c4181edd56b9533cc
[ "MIT" ]
1
2021-05-07T23:35:32.000Z
2021-05-07T23:35:32.000Z
eph/interface.py
bluePhlavio/eph
9ad8d753ba70d7ed147a591c4181edd56b9533cc
[ "MIT" ]
8
2019-11-02T01:04:26.000Z
2021-06-02T00:01:37.000Z
eph/interface.py
bluePhlavio/eph
9ad8d753ba70d7ed147a591c4181edd56b9533cc
[ "MIT" ]
1
2019-03-20T13:55:52.000Z
2019-03-20T13:55:52.000Z
""" Contains classes and functions useful to interact with the `Jpl Horizons service`_ from NASA. .. _`Jpl Horizons service`: https://ssd.jpl.nasa.gov/?horizons """ import requests from astropy.table import QTable from .util import addparams2url, wrap from .config import read_config from .models import BaseMap from...
28.992593
92
0.628258
3,490
0.891671
0
0
0
0
0
0
2,090
0.533981
c10b7e02be55b3e42b50607092409d07c6db24f8
64
py
Python
phanpy/pokedex/admin.py
wengole/phanpy
17392d3770af16a35198f35a7b2bfa24ff18a1be
[ "BSD-3-Clause" ]
null
null
null
phanpy/pokedex/admin.py
wengole/phanpy
17392d3770af16a35198f35a7b2bfa24ff18a1be
[ "BSD-3-Clause" ]
1
2016-02-03T00:07:34.000Z
2016-02-03T00:07:34.000Z
phanpy/pokedex/admin.py
wengole/phanpy
17392d3770af16a35198f35a7b2bfa24ff18a1be
[ "BSD-3-Clause" ]
null
null
null
from .autoregister import autoregister autoregister('pokedex')
16
38
0.828125
0
0
0
0
0
0
0
0
9
0.140625
c10de940ca61195f3abd45d17f60bcb7de5621f4
3,834
py
Python
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
null
null
null
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
13
2019-06-25T13:23:30.000Z
2022-02-10T07:00:39.000Z
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
null
null
null
from django.template import Library, Node, TemplateSyntaxError, Variable, VariableDoesNotExist from django.template.base import render_value_in_context from django.utils.safestring import SafeData, mark_safe register = Library() class FormattedTranslateNode(Node): def __init__(self, filter_expression, noop, for...
36.865385
116
0.603286
1,629
0.424883
0
0
1,968
0.513302
0
0
709
0.184924
c10e02e2fe07318224fa852f647944dd03346223
422
py
Python
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
omnipark/api/v1/login/views.py
ryanpineo/omnipark-back
2b8fa6a4e576a6c187c3ad1ce42a95d7accbe29f
[ "Apache-2.0" ]
null
null
null
from rest_framework import response, viewsets from .serializers import LoginSerializer class LoginViewSet(viewsets.GenericViewSet): serializer_class = LoginSerializer def create(self, request, *args, **kwargs): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exc...
30.142857
59
0.734597
331
0.78436
0
0
0
0
0
0
7
0.016588
c1151c01209f2be4a1e7c4a0edc5ad3a63d4466c
3,425
py
Python
generate_text/generate_tensorflow.py
renjunxiang/Text_Generate
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
101
2018-07-31T16:02:57.000Z
2022-03-20T22:50:33.000Z
generate_text/generate_tensorflow.py
renjunxiang/generate_text
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
1
2020-12-07T04:32:38.000Z
2021-08-18T04:47:49.000Z
generate_text/generate_tensorflow.py
Jiaogh/Text_Generate
209f2fcf58aed7661de71f34549d555e33feae53
[ "MIT" ]
26
2019-01-21T06:36:00.000Z
2022-03-15T06:29:45.000Z
import os import numpy as np import tensorflow as tf from .rnn import model_tensorflow import re import pickle DIR = os.path.dirname(os.path.abspath(__file__)) def generate_tensorflow(process_path=DIR + '/model/poem/poem.pkl', model_path=DIR + '/model/poem/train', maxl...
36.052632
89
0.494891
0
0
0
0
0
0
0
0
607
0.167172
c1162fbd326c2f2b744b4495ef4678ed8f97bd59
1,042
py
Python
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
ymir/backend/src/ymir-app/app/models/model.py
elliotmessi/ymir
3ec8145a1f894778116eb5218de223f6dd805b70
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from sqlalchemy import ( Boolean, Column, DateTime, Float, Integer, String, Text, UniqueConstraint, ) from app.config import settings from app.db.base_class import Base class Model(Base): __tablename__ = "model" id = Column(Integer, primary_key=T...
28.162162
82
0.696737
806
0.773512
0
0
0
0
0
0
38
0.036468
c117e2d8b5f1b909c31dcd1e8e67fe7c83ac1b66
2,348
py
Python
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
59
2015-08-29T10:51:34.000Z
2021-11-03T10:00:25.000Z
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
4
2015-09-02T08:55:42.000Z
2017-05-15T10:33:00.000Z
apps/checkout/views.py
amyhoo/django-oscar-alipay
eacad65416428c6e09974219487a206577d34312
[ "BSD-3-Clause" ]
22
2015-08-10T10:46:18.000Z
2020-04-04T07:11:55.000Z
####################################################################################### # 重写 PaymentMethodView 提供多种支付方法的选择, # 重写 PaymentDetailsView 支付细节在具体支付方法包(例如alipay)中实现 ####################################################################################### from oscar.apps.checkout.views import PaymentMethodView,Pa...
44.301887
101
0.668654
1,691
0.694741
0
0
0
0
0
0
885
0.363599
c1186e20834312aecb510b36bdf673c14a6fdea9
553
py
Python
studzie/keras_tutor/keras_cifar100.py
amozie/amozie
fb7c16ce537bc5567f9c87cfc22c564a4dffc4ef
[ "Apache-2.0" ]
null
null
null
studzie/keras_tutor/keras_cifar100.py
amozie/amozie
fb7c16ce537bc5567f9c87cfc22c564a4dffc4ef
[ "Apache-2.0" ]
null
null
null
studzie/keras_tutor/keras_cifar100.py
amozie/amozie
fb7c16ce537bc5567f9c87cfc22c564a4dffc4ef
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential, Model from keras.layers import Dense, Activation, Input, Dropout, Flatten, Reshape, \ Conv2D, MaxPooling2D, concatenate, GlobalMaxPooling2D from keras.datasets import cifar100 from keras.callbacks import EarlyStopping from keras...
39.5
79
0.819168
0
0
0
0
0
0
0
0
6
0.01085
c11b5bc00c820d2149831a6a5219b716f80b5da6
497
py
Python
evaluate.py
QData/DeepDiff
2aef9c5520595b14da265578c2c04c3d65a4ad01
[ "Apache-2.0" ]
6
2021-04-28T22:46:11.000Z
2022-02-06T05:02:57.000Z
evaluate.py
QData/DeepDiff
2aef9c5520595b14da265578c2c04c3d65a4ad01
[ "Apache-2.0" ]
null
null
null
evaluate.py
QData/DeepDiff
2aef9c5520595b14da265578c2c04c3d65a4ad01
[ "Apache-2.0" ]
1
2022-03-11T01:41:49.000Z
2022-03-11T01:41:49.000Z
import numpy import torch import scipy import scipy.sparse as sp import logging from six.moves import xrange from collections import OrderedDict import sys import pdb from sklearn import metrics import torch.nn.functional as F from torch.autograd import Variable def compute_metrics(predictions, targets): pred=predic...
20.708333
70
0.810865
0
0
0
0
0
0
0
0
0
0
c11bc2c07ea4c7d0324366918fff40bddd73b06c
1,585
py
Python
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from scrapy_ffxiv.items import FfxivGatheringNode """ Spider to gather info from `www.ffxiv-gathering.com` """ class GatheringSpider(CrawlSpider): name = 'ff14-gathering' allowed_domains = [ ...
35.222222
157
0.55142
1,360
0.858044
1,015
0.640379
0
0
0
0
556
0.350789
c11c4e38953d87d8740e1177783eb8eb9e19cef3
927
py
Python
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
import pytest @pytest.mark.parametrize("name", [ ("openstack-dashboard"), ("httpd"), ("memcached"), ]) def test_packages(host, name): pkg = host.package(name) assert pkg.is_installed @pytest.mark.parametrize("name,port", [ ("httpd","80"), ("httpd-ssl","443"), ("memcached","11211"), ]) ...
25.054054
58
0.651564
0
0
0
0
905
0.976268
0
0
218
0.235167