hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
1b93212182ff315995c2188f791e82900b2d2157
28,488
py
Python
bach/bach/series/series_datetime.py
objectiv/objectiv-analytics
86ec1508f71c2d61ea7d67479800e4dc417a46e1
[ "Apache-2.0" ]
23
2021-11-10T21:37:42.000Z
2022-03-30T11:46:19.000Z
bach/bach/series/series_datetime.py
objectiv/objectiv-analytics
86ec1508f71c2d61ea7d67479800e4dc417a46e1
[ "Apache-2.0" ]
163
2021-11-10T10:11:26.000Z
2022-03-31T16:04:27.000Z
bach/bach/series/series_datetime.py
objectiv/objectiv-analytics
86ec1508f71c2d61ea7d67479800e4dc417a46e1
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Objectiv B.V. """ import datetime import warnings from abc import ABC from enum import Enum from typing import Union, cast, List, Tuple, Optional, Any import numpy import pandas from sqlalchemy.engine import Dialect from bach import DataFrame from bach.series import Series, SeriesString, SeriesBool...
39.293793
162
0.631354
1b937dd883ff8de284f496b4a8959a68bb61e4f0
5,802
py
Python
infra_validation_engine/infra_tests/components/docker.py
WLCG-Lightweight-Sites/simple_grid_infra_validation_engine
ad1eca7ffe0337f276f0ef9e0c89c80c1070139b
[ "Apache-2.0" ]
1
2020-03-01T12:25:33.000Z
2020-03-01T12:25:33.000Z
infra_validation_engine/infra_tests/components/docker.py
simple-framework/simple_grid_infra_validation_engine
ad1eca7ffe0337f276f0ef9e0c89c80c1070139b
[ "Apache-2.0" ]
14
2019-11-07T14:36:16.000Z
2020-10-01T17:04:33.000Z
infra_validation_engine/infra_tests/components/docker.py
simple-framework/simple_grid_infra_validation_engine
ad1eca7ffe0337f276f0ef9e0c89c80c1070139b
[ "Apache-2.0" ]
1
2019-11-07T15:14:21.000Z
2019-11-07T15:14:21.000Z
# coding: utf-8 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # dist...
34.535714
120
0.586867
1b94105f4a37a772952e690f0af3663ce002ade8
1,380
py
Python
examples/htlc-pyteal-ts/assets/htlc.py
stasgga/algo_builder
eecdc8f564d244ea29c9ca42c37e7695d2c09cd3
[ "Apache-2.0" ]
1
2021-06-28T02:49:29.000Z
2021-06-28T02:49:29.000Z
examples/htlc-pyteal-ts/assets/htlc.py
endlessor/algo-builder
bff4cbaa58742b028b40e16214fc56c327dd8eeb
[ "Apache-2.0" ]
null
null
null
examples/htlc-pyteal-ts/assets/htlc.py
endlessor/algo-builder
bff4cbaa58742b028b40e16214fc56c327dd8eeb
[ "Apache-2.0" ]
null
null
null
# Hash Time Lock Contract Example in pyTeal # Add parent directory to path so that algobpy can be imported import sys sys.path.insert(0,'..') from algobpy.parse import parse_params from pyteal import * if __name__ == "__main__": params = { "bob": "2ILRL5YU3FZ4JDQZQVXEZUYKEWF7IEIGRRCPCMI36VKSGDMAS6FHSBX...
26.037736
78
0.633333
1b941a731326acc3ecffebccafaa639df1c778bf
66,776
py
Python
pyboto3/sqs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/sqs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/sqs.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
59.996406
577
0.694561
1b959493f163006782c0b22480f9fb53e207608f
883
py
Python
disjoint_set.py
sciatti/mazesolving
5b7fb11e52e57112bca7d8051d84bd3c6c01fe16
[ "Unlicense" ]
null
null
null
disjoint_set.py
sciatti/mazesolving
5b7fb11e52e57112bca7d8051d84bd3c6c01fe16
[ "Unlicense" ]
null
null
null
disjoint_set.py
sciatti/mazesolving
5b7fb11e52e57112bca7d8051d84bd3c6c01fe16
[ "Unlicense" ]
null
null
null
import numpy as np
35.32
97
0.643262
1b986bdba6c54856abc4ac0745d2acf81a33c07d
1,356
py
Python
example/schema/tests/unittest/toys.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
18
2015-04-07T14:28:39.000Z
2020-02-08T14:03:38.000Z
example/schema/tests/unittest/toys.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
7
2016-10-05T05:14:06.000Z
2021-05-20T02:07:22.000Z
example/schema/tests/unittest/toys.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
11
2015-12-15T09:49:39.000Z
2021-09-06T18:38:21.000Z
# -*- coding: utf-8 -*- from dp_tornado.engine.schema import Table as dpTable from dp_tornado.engine.schema import Schema as dpSchema from dp_tornado.engine.schema import Attribute as dpAttribute
46.758621
160
0.725664
1b99922b55a031842af64c9ed62df780101dafad
2,278
py
Python
scripts/pre_solve_path.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
10
2021-02-09T19:25:46.000Z
2022-03-29T13:49:23.000Z
scripts/pre_solve_path.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
null
null
null
scripts/pre_solve_path.py
xuzhiying9510/ncflow
3f6f4a5b2c13ac8f6375b097b35f6c55b18d212e
[ "Artistic-1.0-cl8" ]
5
2020-12-23T15:24:40.000Z
2022-01-06T09:42:38.000Z
#! /usr/bin/env python import os import pickle from pathos import multiprocessing import sys sys.path.append('..') from lib.problems import get_problem from lib.algorithms.path_formulation import PathFormulation, PATHS_DIR from lib.path_utils import graph_copy_with_edge_weights, find_paths global G global num_paths...
28.475
78
0.647498
1b99c9f74b3b415c9c0733d8df3d31427c5b3cde
2,628
py
Python
YouTube-PyQt5/09_radio_button.py
dloperab/Python-GUI
ab71f14c7fbb011af0735f48f5196146de11ea23
[ "MIT" ]
2
2019-03-17T16:08:09.000Z
2019-03-29T06:37:16.000Z
YouTube-PyQt5/09_radio_button.py
dloperab/OpenCV-GUI
ab71f14c7fbb011af0735f48f5196146de11ea23
[ "MIT" ]
null
null
null
YouTube-PyQt5/09_radio_button.py
dloperab/OpenCV-GUI
ab71f14c7fbb011af0735f48f5196146de11ea23
[ "MIT" ]
2
2020-03-14T04:32:19.000Z
2021-03-09T17:21:33.000Z
import sys from PyQt5 import QtGui, QtCore from PyQt5.QtWidgets import QApplication, QDialog, QGroupBox, QVBoxLayout, QHBoxLayout, QRadioButton, QLabel if __name__ == "__main__": app = QApplication(sys.argv) window = MainWindow() sys.exit(app.exec())
35.04
108
0.667808
1b9b5b9e063185961a0c23077b632b02171d2fdb
1,233
py
Python
source/guides/migrations/0002_auto_20170123_1809.py
OpenNews/opennews-source
71b557275bc5d03c75eb471fc3293efa492c0ac7
[ "MIT" ]
6
2017-01-05T00:51:48.000Z
2021-11-08T10:26:04.000Z
source/guides/migrations/0002_auto_20170123_1809.py
OpenNews/opennews-source
71b557275bc5d03c75eb471fc3293efa492c0ac7
[ "MIT" ]
146
2017-01-03T16:06:43.000Z
2022-03-11T23:25:43.000Z
source/guides/migrations/0002_auto_20170123_1809.py
OpenNews/opennews-source
71b557275bc5d03c75eb471fc3293efa492c0ac7
[ "MIT" ]
3
2017-02-16T22:52:47.000Z
2019-08-15T16:49:47.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-23 18:09 from __future__ import unicode_literals from django.db import migrations, models import sorl.thumbnail.fields
29.357143
119
0.596107
1b9c385313c2968917d83f61b972f57ca0977ba1
5,609
py
Python
NLP/TextClassfication/task1/train.py
MobtgZhang/ModelZoos
1fe2c983737bd35f6acffe092c21b212930ab6dc
[ "MIT" ]
null
null
null
NLP/TextClassfication/task1/train.py
MobtgZhang/ModelZoos
1fe2c983737bd35f6acffe092c21b212930ab6dc
[ "MIT" ]
null
null
null
NLP/TextClassfication/task1/train.py
MobtgZhang/ModelZoos
1fe2c983737bd35f6acffe092c21b212930ab6dc
[ "MIT" ]
null
null
null
import os import logging import yaml import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from utils import build_simplifyweibo_4_moods_dataset from utils import LabelReviewSplitWordsDataset from utils import bacthfy,to_device from model import TextCNN, TextRNN, RCNN,...
47.940171
185
0.702443
1b9c5cc86b543fca12e20fbcf7f9c14dd78ad47e
374
py
Python
hipyelp/migrations/0014_rename_tagname_drinktag_drinktagname.py
buggydev1/Hip_yelp_Back
f80407d898d267465e5cfbf7f73905b776e91b43
[ "MIT" ]
null
null
null
hipyelp/migrations/0014_rename_tagname_drinktag_drinktagname.py
buggydev1/Hip_yelp_Back
f80407d898d267465e5cfbf7f73905b776e91b43
[ "MIT" ]
null
null
null
hipyelp/migrations/0014_rename_tagname_drinktag_drinktagname.py
buggydev1/Hip_yelp_Back
f80407d898d267465e5cfbf7f73905b776e91b43
[ "MIT" ]
2
2021-04-22T14:42:57.000Z
2021-05-18T01:11:58.000Z
# Generated by Django 3.2 on 2021-04-25 02:49 from django.db import migrations
19.684211
51
0.59893
1b9dd876251bf4f024da196a2aaf6f17236c213b
2,856
py
Python
basic_YOLO/obj_vid_cuda.py
msmcs-robotics/pi-cv-vision
0752fe8b4b754156d0920e202fc147cfee185fdb
[ "ISC" ]
null
null
null
basic_YOLO/obj_vid_cuda.py
msmcs-robotics/pi-cv-vision
0752fe8b4b754156d0920e202fc147cfee185fdb
[ "ISC" ]
null
null
null
basic_YOLO/obj_vid_cuda.py
msmcs-robotics/pi-cv-vision
0752fe8b4b754156d0920e202fc147cfee185fdb
[ "ISC" ]
1
2022-02-05T04:06:33.000Z
2022-02-05T04:06:33.000Z
''' Reference: https://thinkinfi.com/use-opencv-with-gpu-python/ Download cfg: > wget https://raw.githubusercontent.com/pjreddie/darknet/master/cfg/yolov3.cfg Download weights: > wget https://pjreddie.com/media/files/yolov3.weights Dataset: > wget https://raw.githubusercontent.com/pjreddie/darknet/master/data/coco....
27.728155
93
0.616947
1b9ddc52beb4e9bc35334488c0af98f0f61d54c2
1,998
py
Python
examples/container/tabular_benchmark_example.py
pfistfl/HPOBench
a7ad8807bd2e058ff99f703ad057b64ecadd4b66
[ "Apache-2.0" ]
78
2017-01-14T14:25:55.000Z
2020-09-30T22:57:14.000Z
examples/container/tabular_benchmark_example.py
pfistfl/HPOBench
a7ad8807bd2e058ff99f703ad057b64ecadd4b66
[ "Apache-2.0" ]
84
2016-11-24T15:19:20.000Z
2020-11-09T11:34:19.000Z
examples/container/tabular_benchmark_example.py
pfistfl/HPOBench
a7ad8807bd2e058ff99f703ad057b64ecadd4b66
[ "Apache-2.0" ]
31
2016-11-29T19:56:06.000Z
2020-07-10T04:13:33.000Z
""" Tabular benchmark ================= This examples shows the usage of the containerized tabular benchmark. To note: You don't have to pass the container name to the Benchmark-Constructor. It is automatically set, but for demonstration purpose, we show how to set it. container_source can be either a path to a regis...
41.625
121
0.723724
1ba07eaa9253946b4f345408b4a379ec82d0ede6
375
py
Python
recip/util/Address.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
recip/util/Address.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
recip/util/Address.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
from recip.util import DataType from recip.util import Validator
26.785714
40
0.746667
1ba1f83792d3dfefb74bfb86f0f1b1667d473d05
542
py
Python
webapp/models/req_error_log.py
myfreshcity/mystock
3a8832e8c498128683b6af528da92d7fda32386d
[ "MIT" ]
2
2016-09-19T09:18:17.000Z
2022-02-16T14:55:51.000Z
webapp/models/req_error_log.py
myfreshcity/mystock
3a8832e8c498128683b6af528da92d7fda32386d
[ "MIT" ]
2
2020-04-29T13:01:45.000Z
2020-04-29T13:01:45.000Z
webapp/models/req_error_log.py
myfreshcity/mystock
3a8832e8c498128683b6af528da92d7fda32386d
[ "MIT" ]
2
2018-06-29T15:09:36.000Z
2019-09-05T09:26:06.000Z
from datetime import datetime from webapp.services import db
23.565217
63
0.653137
1ba5d06c5362ae2cf5a563053ad286ea87461d19
632
py
Python
frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier_scorecard_standing/supplier_scorecard_standing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier_scorecard_standing/supplier_scorecard_standing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/doctype/supplier_scorecard_standing/supplier_scorecard_standing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document
21.793103
72
0.761076
1ba6078890512ae4e2a9c49facfe629996e04ba9
1,405
py
Python
Server/Protocol/Messages/Server/LoginOkMessage.py
Voeed/Brawl-stars-v11
b60743c306ab471053d81aa59f812b19a2c7f8f3
[ "MIT" ]
3
2021-04-14T18:33:53.000Z
2021-09-26T13:53:54.000Z
Server/Protocol/Messages/Server/LoginOkMessage.py
ImColette-dev/Brawl-stars-v11-server
b3232b574c5b2fcc29803e5c8c9e9650d0d59d73
[ "MIT" ]
1
2021-09-09T12:23:34.000Z
2021-09-09T12:23:34.000Z
Server/Protocol/Messages/Server/LoginOkMessage.py
ImColette-dev/Brawl-stars-v11-server
b3232b574c5b2fcc29803e5c8c9e9650d0d59d73
[ "MIT" ]
1
2021-07-28T16:15:29.000Z
2021-07-28T16:15:29.000Z
from DataStream.ByteStream import ByteStream from Logic.Player import Player
25.089286
61
0.525267
1ba69d7263d302075677d86a662b9416bf88de61
11,790
py
Python
cronjob/python/Loan_bak_-13122019_1118AM/saveDPWorkingDay.py
heodat234/worldfone4xs_ibm
6b508c3d99c48c5b8c9f1d979c356fc573e999a2
[ "MIT" ]
null
null
null
cronjob/python/Loan_bak_-13122019_1118AM/saveDPWorkingDay.py
heodat234/worldfone4xs_ibm
6b508c3d99c48c5b8c9f1d979c356fc573e999a2
[ "MIT" ]
null
null
null
cronjob/python/Loan_bak_-13122019_1118AM/saveDPWorkingDay.py
heodat234/worldfone4xs_ibm
6b508c3d99c48c5b8c9f1d979c356fc573e999a2
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- import re import ftplib import calendar import time import sys import os import json from pprint import pprint from datetime import datetime from datetime import date, timedelta from bson import ObjectId from helper.ftp import Ftp from helper.mongod import Mo...
53.590909
318
0.537065
1baabd5bd4355d53876aed7f693222e894bfb08a
5,524
py
Python
backend/hqlib/metric_source/issue_log/jira_action_list.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
25
2016-11-25T10:41:24.000Z
2021-07-03T14:02:49.000Z
backend/hqlib/metric_source/issue_log/jira_action_list.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
783
2016-09-19T12:10:21.000Z
2021-01-04T20:39:15.000Z
backend/hqlib/metric_source/issue_log/jira_action_list.py
ICTU/quality-report
f6234e112228ee7cfe6476c2d709fe244579bcfe
[ "Apache-2.0" ]
15
2015-03-25T13:52:49.000Z
2021-03-08T17:17:56.000Z
""" Copyright 2012-2019 Ministerie van Sociale Zaken en Werkgelegenheid 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...
48.884956
120
0.696235
1babb441d317176604ca786715349466258b3690
651
py
Python
salt/urls.py
mentix02/Saltan
9ab55be8b36ea6d8c73fcb87e8f936e9b9bb28c0
[ "Apache-2.0" ]
4
2017-04-01T15:33:39.000Z
2017-09-27T11:25:36.000Z
salt/urls.py
mentix02/Saltan
9ab55be8b36ea6d8c73fcb87e8f936e9b9bb28c0
[ "Apache-2.0" ]
null
null
null
salt/urls.py
mentix02/Saltan
9ab55be8b36ea6d8c73fcb87e8f936e9b9bb28c0
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from . import views, salt from django.contrib.auth.views import logout app_name = 'salt' urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^visitor/', include('salt.visitor_urls')), url(r'^profile/', include('salt.profile')), url(r'^salts/$', salt.salts, name='...
38.294118
98
0.65745
1baea6433c91aefdeee1385fa3f02122e8c0dac4
598
py
Python
v2x_solution/car/admin.py
Michaelwwgo/V2X_Project
d26f476329dd7f6083e9275e01e2748d38918afc
[ "MIT" ]
1
2021-02-03T08:15:59.000Z
2021-02-03T08:15:59.000Z
v2x_solution/car/admin.py
Michaelwwgo/V2X_Project
d26f476329dd7f6083e9275e01e2748d38918afc
[ "MIT" ]
null
null
null
v2x_solution/car/admin.py
Michaelwwgo/V2X_Project
d26f476329dd7f6083e9275e01e2748d38918afc
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models
19.933333
41
0.583612
1bb0b59411150c5bdec442937feec3008a2498ad
2,452
py
Python
fate/filecommands.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
fate/filecommands.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
fate/filecommands.py
Mattias1/fate
10266406336bc4c683ff5b23af32ac3447f7f054
[ "MIT" ]
null
null
null
""" This module contains commands for opening, closing, saving and loading files. """ import logging from . import commands from .operation import Operation from . import document from .commandtools import Compose from .selection import Selection, Interval import selectors # Depend on selectors to be loaded from .promp...
25.810526
77
0.619902
1bb2e3f560ed306c26ad373fdafc6aea95fe218d
5,897
py
Python
metrics.py
TUDelftHao/TUDelftHao-4DLongitudinal-MRI-segmentation
c028e3c8b64812a05e39efa80699a327172c095d
[ "MIT" ]
4
2020-07-28T06:03:43.000Z
2021-09-10T09:12:10.000Z
metrics.py
TUDelftHao/TUDelftHao-4DLongitudinal-MRI-segmentation
c028e3c8b64812a05e39efa80699a327172c095d
[ "MIT" ]
null
null
null
metrics.py
TUDelftHao/TUDelftHao-4DLongitudinal-MRI-segmentation
c028e3c8b64812a05e39efa80699a327172c095d
[ "MIT" ]
1
2021-09-10T09:12:21.000Z
2021-09-10T09:12:21.000Z
import numpy as np import torch from loss import to_one_hot from collections import OrderedDict from scipy.ndimage import morphology from medpy.metric.binary import hd, asd if __name__ == '__main__': # yp = np.random.random(size=(2, 5, 3, 3, 3)) # yp = torch.from_numpy(yp) # yt = np.ze...
28.080952
92
0.545192
1bb43f5bab8451713de15545ccf7d1fdb2033a55
8,770
py
Python
apt_smart/backends/debian.py
walkonbothsides/apt-smart
43c4838266356e98c80a274af181f6f63c34f5ad
[ "MIT" ]
null
null
null
apt_smart/backends/debian.py
walkonbothsides/apt-smart
43c4838266356e98c80a274af181f6f63c34f5ad
[ "MIT" ]
null
null
null
apt_smart/backends/debian.py
walkonbothsides/apt-smart
43c4838266356e98c80a274af181f6f63c34f5ad
[ "MIT" ]
null
null
null
# Automated, robust apt-get mirror selection for Debian and Ubuntu. # # Author: martin68 and Peter Odding # Last Change: September 15, 2019 # URL: https://apt-smart.readthedocs.io """ Discovery of Debian package archive mirrors. Here are references to some of the material that I've needed to consult while working on ...
42.572816
115
0.662714
1bb4d37b6f5910fd85a5d687f9ba95669ab512ff
223
py
Python
src/backend/tests/__init__.py
mrzzy/memento
a83db7dd769c949d9924f5ef29930d818b105ef4
[ "MIT" ]
1
2019-11-18T04:30:32.000Z
2019-11-18T04:30:32.000Z
src/backend/tests/__init__.py
mrzzy/NP-Portfolio-2
a83db7dd769c949d9924f5ef29930d818b105ef4
[ "MIT" ]
1
2021-03-10T06:04:20.000Z
2021-03-10T06:04:20.000Z
src/backend/tests/__init__.py
mrzzy/NP-Portfolio-2
a83db7dd769c949d9924f5ef29930d818b105ef4
[ "MIT" ]
null
null
null
# # Memento # Backend # Tests # from .models.identity import * from .models.assignment import * from .models.notification import * from .ops.identity import * from .ops.assignment import * from .ops.notification import *
15.928571
34
0.744395
1bb62a6e4a3e0347985f31deb3133042f6ca02e2
3,380
py
Python
src/kgextractiontoolbox/entitylinking/classifier.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
6
2021-09-17T09:49:59.000Z
2021-12-06T10:07:01.000Z
src/kgextractiontoolbox/entitylinking/classifier.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
null
null
null
src/kgextractiontoolbox/entitylinking/classifier.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
1
2021-09-18T17:56:12.000Z
2021-09-18T17:56:12.000Z
import re from pathlib import Path from typing import Union from kgextractiontoolbox.document.document import TaggedDocument
41.219512
92
0.563609
1bb6d7bdf554c1d1734130831eaf1dc5e76294f2
3,169
py
Python
ism_pkg/ism.py
endsley/stochastic_ISM
6438eb17bd391e8698e989156acb9b786c8f7299
[ "MIT" ]
1
2021-11-04T06:30:22.000Z
2021-11-04T06:30:22.000Z
ism_pkg/ism.py
endsley/stochastic_ISM
6438eb17bd391e8698e989156acb9b786c8f7299
[ "MIT" ]
null
null
null
ism_pkg/ism.py
endsley/stochastic_ISM
6438eb17bd391e8698e989156acb9b786c8f7299
[ "MIT" ]
2
2021-11-04T06:30:24.000Z
2022-02-07T02:04:14.000Z
#!/usr/bin/env python from ism_pkg.kernels.gaussian import gaussian from ism_pkg.optimizer.full_ism import full_ism from ism_pkg.optimizer.stochastic_ism import stochastic_ism from ism_pkg.tools.HSIC_IDS_optimizer import HSIC_IDS_optimizer from ism_pkg.tools.terminal_print import * from ism_pkg.tools.rff_layer import ...
30.76699
164
0.724203
1bb742a4023e045284504065668d9a075bf310a7
3,806
py
Python
ziggurat_foundations/ext/pyramid/sign_in.py
fmigneault/ziggurat_foundations
c4eaac1d3e0d1a5dc09e1a3450e6c6631b701c0d
[ "BSD-3-Clause" ]
null
null
null
ziggurat_foundations/ext/pyramid/sign_in.py
fmigneault/ziggurat_foundations
c4eaac1d3e0d1a5dc09e1a3450e6c6631b701c0d
[ "BSD-3-Clause" ]
null
null
null
ziggurat_foundations/ext/pyramid/sign_in.py
fmigneault/ziggurat_foundations
c4eaac1d3e0d1a5dc09e1a3450e6c6631b701c0d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import importlib import logging import pyramid.security from ziggurat_foundations.models.base import get_db_session from ziggurat_foundations.models.services.user import UserService CONFIG_KEY = "ziggurat_foundations" log = logging.getLogger(__name__) ...
30.448
87
0.672097
1bba5c530c2518836d4b1289c7bb20d6e786e823
856
py
Python
controlinverilog/time_delay.py
simoore/control-in-verilog
9b00ff48c15c8c56458d1611eaa3fec6f4c94bdb
[ "MIT" ]
null
null
null
controlinverilog/time_delay.py
simoore/control-in-verilog
9b00ff48c15c8c56458d1611eaa3fec6f4c94bdb
[ "MIT" ]
null
null
null
controlinverilog/time_delay.py
simoore/control-in-verilog
9b00ff48c15c8c56458d1611eaa3fec6f4c94bdb
[ "MIT" ]
null
null
null
import jinja2
26.75
70
0.566589
1bbcbec7b0ff29eb9f2ca1b3c44280f498408155
1,026
py
Python
app/hacks.py
qaisjp/hackupc17f
01e26a1a671535d80645854a240bb9d000c2db98
[ "MIT" ]
null
null
null
app/hacks.py
qaisjp/hackupc17f
01e26a1a671535d80645854a240bb9d000c2db98
[ "MIT" ]
null
null
null
app/hacks.py
qaisjp/hackupc17f
01e26a1a671535d80645854a240bb9d000c2db98
[ "MIT" ]
null
null
null
from datetime import date
21.829787
63
0.432749
1bbccc04ca561c0de127406dc967af2ae1e1f9f5
7,845
py
Python
codex-py/codex/config/prop.py
egustafson/home-sensors
232b36fe6fa2a2e3bce1391a91dffa192f17b835
[ "Apache-2.0" ]
null
null
null
codex-py/codex/config/prop.py
egustafson/home-sensors
232b36fe6fa2a2e3bce1391a91dffa192f17b835
[ "Apache-2.0" ]
null
null
null
codex-py/codex/config/prop.py
egustafson/home-sensors
232b36fe6fa2a2e3bce1391a91dffa192f17b835
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ## Design notes & thoughts ############################## ## ## Goals: ## * Support nested dict and array objects. ## * Access elements & sub-trees via "obj['key.key.index']" ## * Access via JSON-Path ## - https://jsonpath-rw.readthedocs.io/en/latest/ ## * Serializable to JSON ## * De-...
27.720848
72
0.511918
1bbdb51947871969a82c9e0bfe969e843adddd28
419
py
Python
victim/victim.py
blendin/findpeer_poc
4e57e4a1fe4291a6aa874c25efc0eec8d6680fa8
[ "MIT" ]
3
2017-02-27T18:01:30.000Z
2017-04-11T01:59:55.000Z
victim/victim.py
blendin/findpeer_poc
4e57e4a1fe4291a6aa874c25efc0eec8d6680fa8
[ "MIT" ]
null
null
null
victim/victim.py
blendin/findpeer_poc
4e57e4a1fe4291a6aa874c25efc0eec8d6680fa8
[ "MIT" ]
1
2021-12-09T15:31:39.000Z
2021-12-09T15:31:39.000Z
from flask import Flask, request from subprocess import Popen, PIPE import shlex import os app = Flask(__name__) app.run(host='0.0.0.0', port='8080')
22.052632
62
0.670644
1bbe66e627f5fbbe75b9f195c03efc8b24413bf8
489
py
Python
solutions/2019/prob_15.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
1
2021-02-27T09:46:06.000Z
2021-02-27T09:46:06.000Z
solutions/2019/prob_15.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
null
null
null
solutions/2019/prob_15.py
PolPtoAmo/HPCodeWarsBCN
8a98b1feb6d8b7d2d5b8b4dace3e02af9e6bb4e8
[ "MIT" ]
1
2021-02-27T12:03:33.000Z
2021-02-27T12:03:33.000Z
entrada = input() numeros = entrada.split(' ') numeros = list(map(int, numeros)) print(str(fibonacci(numeros[0])) + " " + str(fibonacci(numeros[1])) + " " + str(fibonacci(numeros[2])) + " " + str(fibonacci(numeros[3])))
19.56
73
0.503067
1bbeef824c196490b52c030d0f2de427178e48b0
441
py
Python
DomJudge/practica10/EsMonti.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
DomJudge/practica10/EsMonti.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
DomJudge/practica10/EsMonti.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
import sys read()
16.961538
42
0.46712
1bc1d594734ef2d4bf40da4822dca6b856406167
8,465
py
Python
turbustat/statistics/cramer/cramer.py
CFD-UTSA/Turbulence-stars
354d02e38d15e3b0d1f751b43f430dbd3a14c250
[ "MIT" ]
42
2016-04-07T20:49:59.000Z
2022-03-28T12:54:13.000Z
turbustat/statistics/cramer/cramer.py
CFD-UTSA/Turbulence-stars
354d02e38d15e3b0d1f751b43f430dbd3a14c250
[ "MIT" ]
131
2015-03-05T21:42:27.000Z
2021-07-22T14:59:04.000Z
turbustat/statistics/cramer/cramer.py
CFD-UTSA/Turbulence-stars
354d02e38d15e3b0d1f751b43f430dbd3a14c250
[ "MIT" ]
21
2015-06-10T17:10:06.000Z
2022-02-28T15:59:42.000Z
# Licensed under an MIT open source license - see LICENSE from __future__ import print_function, absolute_import, division import numpy as np from sklearn.metrics.pairwise import pairwise_distances from ..threeD_to_twoD import _format_data from ...io import input_data, common_types, threed_types def cramer_stat...
34.133065
79
0.553574
1bc4e6e243b1a851a5186fb66f7d5e2b2427c623
1,761
py
Python
examples/simple_automon_node.py
hsivan/automon
222b17651533bdb2abce7de36a80156ab7b9cc21
[ "BSD-3-Clause" ]
1
2022-02-25T17:50:32.000Z
2022-02-25T17:50:32.000Z
examples/simple_automon_node.py
hsivan/automon
222b17651533bdb2abce7de36a80156ab7b9cc21
[ "BSD-3-Clause" ]
null
null
null
examples/simple_automon_node.py
hsivan/automon
222b17651533bdb2abce7de36a80156ab7b9cc21
[ "BSD-3-Clause" ]
1
2022-03-12T08:12:37.000Z
2022-03-12T08:12:37.000Z
import os import logging from timeit import default_timer as timer import numpy as np from automon import AutomonNode from automon.zmq_socket_utils import init_client_socket from function_def import func_inner_product logging.getLogger('automon').setLevel(logging.INFO) NODE_IDX = int(os.getenv('NODE_IDX', '0')) # C...
45.153846
130
0.752981
1bc7b03933c7e93ee398c95e4200d80860ba30bb
886
py
Python
Labs/lab6/l6e4.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
Labs/lab6/l6e4.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
Labs/lab6/l6e4.py
felixchiasson/ITI1520
4208904bf7576433313524ebd1c1bdb9f49277f2
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ################################################################################ # File Name : l6e4.py # Created By : Flix Chiasson (7138723) # Creation Date : [2015-10-20 11:40] # Last Modified : [2015-10-20 13:46] # Description...
29.533333
80
0.460497
1bc7d3bbb363bf058656bb36d4bb63b2262d8270
2,187
py
Python
bin/convertBackup.py
Kuruchy/kuruchy.github.io
d45336739f877c4b4bf00e9556c3b220802ec74b
[ "MIT" ]
null
null
null
bin/convertBackup.py
Kuruchy/kuruchy.github.io
d45336739f877c4b4bf00e9556c3b220802ec74b
[ "MIT" ]
null
null
null
bin/convertBackup.py
Kuruchy/kuruchy.github.io
d45336739f877c4b4bf00e9556c3b220802ec74b
[ "MIT" ]
null
null
null
import os import re import shutil from datetime import date customHeader = """ --- layout: post title: {} categories: {} excerpt: {} --- """ if __name__ == '__main__': ModifiedMarkDownFile()
29.554054
128
0.537723
1bc830b97a2a994105982aa14aea3d79e767f033
7,714
py
Python
website/apps/monster/views.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
61
2015-11-10T17:13:46.000Z
2021-08-06T17:58:30.000Z
website/apps/monster/views.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
13
2015-11-11T07:49:41.000Z
2021-06-09T03:45:31.000Z
website/apps/monster/views.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
18
2015-11-11T04:50:04.000Z
2021-08-20T00:57:11.000Z
import random from django.http import HttpResponseRedirect from django.conf import settings from apps.monster.util import public_api_method from apps.monster.models import (MonsterPart, MonsterInvite, MonsterTileDetails, MONSTER_GROUP, CompletedMonsterSet, mobile_details_from_queryset...
31.876033
127
0.680062
1bc988441eda0d1f7534cd5783137f0074c065e7
802
py
Python
samples/chapter1_projectile.py
carnieri/raytracer
8b518c35ba6648c77d949bb60788e9aed771b1da
[ "BSD-3-Clause" ]
null
null
null
samples/chapter1_projectile.py
carnieri/raytracer
8b518c35ba6648c77d949bb60788e9aed771b1da
[ "BSD-3-Clause" ]
null
null
null
samples/chapter1_projectile.py
carnieri/raytracer
8b518c35ba6648c77d949bb60788e9aed771b1da
[ "BSD-3-Clause" ]
null
null
null
from dataclasses import dataclass from raytracer.tuple import tuple, point, vector, magnitude, normalize, dot, cross from raytracer.util import equal def tick(env, proj): position = proj.position + proj.velocity velocity = proj.velocity + env.gravity + env.wind return Projectile(position, velocity) # p...
25.0625
82
0.680798
1bca72364354424e756eb0857899935691ba79bb
422
py
Python
HIS_void/patient/migrations/0007_auto_20210429_2316.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
HIS_void/patient/migrations/0007_auto_20210429_2316.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
HIS_void/patient/migrations/0007_auto_20210429_2316.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-29 15:16 from django.db import migrations
22.210526
48
0.597156
1bcacdc24776751d11e226a6fb8a723ec45c8c51
2,780
py
Python
server_py/flatgov/flatgov/celery.py
aih/BillMap
d130b1396cb25b415cd7d9ea7389ad558a34eec1
[ "CC0-1.0" ]
2
2022-01-18T14:55:52.000Z
2022-01-31T03:38:39.000Z
server_py/flatgov/flatgov/celery.py
aih/FlatGov
8201ef1813bbc062841421017f492e877f75a5f8
[ "CC0-1.0" ]
321
2020-09-01T16:20:35.000Z
2021-07-03T06:42:34.000Z
server_py/flatgov/flatgov/celery.py
aih/FlatGov
8201ef1813bbc062841421017f492e877f75a5f8
[ "CC0-1.0" ]
1
2022-03-31T15:02:49.000Z
2022-03-31T15:02:49.000Z
import os from celery import Celery from celery.schedules import crontab os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'flatgov.dev') app = Celery('flatgov') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks() app.conf.redbeat_redis_url = os.getenv('REDIS_URL', 'redis://local...
37.567568
85
0.641727
1bce65ef851c4299c8fd10eb4180346ac856e593
1,978
py
Python
Pygame/InvisibleMaze/invisiblemaze.py
kasztp/python-lessons
2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
[ "MIT" ]
35
2015-05-18T08:08:41.000Z
2022-03-07T09:38:02.000Z
Pygame/InvisibleMaze/invisiblemaze.py
kasztp/python-lessons
2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
[ "MIT" ]
1
2021-09-29T02:08:26.000Z
2021-09-29T02:08:26.000Z
Pygame/InvisibleMaze/invisiblemaze.py
kasztp/python-lessons
2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
[ "MIT" ]
40
2015-04-28T00:38:54.000Z
2022-02-13T14:18:34.000Z
import math import pygame from pygame.locals import * from imageutil import loadImage if __name__ == '__main__': main()
27.472222
80
0.581901
1bcec325b98d968512d016ef80af5e36f6c9e424
3,422
py
Python
backend/db/entities/mixin/pengaturan.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/db/entities/mixin/pengaturan.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/db/entities/mixin/pengaturan.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, Numeric from sqlalchemy.ext.declarative import declared_attr from .pengaturan_base import MxPengaturanBase
30.553571
84
0.677382
1bcf3d5c805b7e301f99bf048c1c6a934739d6e9
11,234
py
Python
omnibus/replserver.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
2
2020-06-17T19:54:09.000Z
2020-06-18T20:10:26.000Z
omnibus/replserver.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
omnibus/replserver.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
""" socat - UNIX-CONNECT:repl.sock import sys, threading, pdb, functools def _attach(repl): frame = sys._current_frames()[threading.enumerate()[0].ident] debugger = pdb.Pdb( stdin=repl.conn.makefile('r'), stdout=repl.conn.makefile('w'), ) debugger.reset() while frame: frame...
30.778082
134
0.521186
1bcf7bc1a1dc49cb3796cf30ba83ab69627ad026
6,158
py
Python
datasets/shapes3d.py
zhuxinqimac/CommutativeLieGroupVAE-Pytorch
06020834b1ea4abff305d8fb300c3d8fba5b0f27
[ "Apache-2.0" ]
13
2021-06-08T03:06:36.000Z
2021-11-01T04:53:44.000Z
datasets/shapes3d.py
zhuxinqimac/CommutativeLieGroupVAE-Pytorch
06020834b1ea4abff305d8fb300c3d8fba5b0f27
[ "Apache-2.0" ]
null
null
null
datasets/shapes3d.py
zhuxinqimac/CommutativeLieGroupVAE-Pytorch
06020834b1ea4abff305d8fb300c3d8fba5b0f27
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- # >.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>. # Licensed under the Apache License, Version 2.0 (the "License") # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # --- File Name: shapes3d.py # --- Creation Date: 16-01-2021 # --- Last Modified: Tue 13 A...
36.223529
162
0.628126
1bd06e44fc58003b96dd0ef2c14102eab2685ebb
1,920
py
Python
public_data/serializers.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
57
2016-09-01T21:55:52.000Z
2022-03-27T22:15:32.000Z
public_data/serializers.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
464
2015-03-23T18:08:28.000Z
2016-08-25T04:57:36.000Z
public_data/serializers.py
danamlewis/open-humans
9b08310cf151f49032b66ddd005bbd47d466cc4e
[ "MIT" ]
25
2017-01-24T16:23:27.000Z
2021-11-07T01:51:42.000Z
from collections import OrderedDict from rest_framework import serializers from data_import.models import DataFile from open_humans.models import User from private_sharing.models import project_membership_visible
32
71
0.536458
1bd08961b282ce3b26745bfd817a53d3ce607b1f
164
py
Python
swingtrader/stockmarketapi/__init__.py
kabylkas/swingtrader
8682e33464883f54b80f9764cfaf3cc9248774a0
[ "Apache-2.0" ]
null
null
null
swingtrader/stockmarketapi/__init__.py
kabylkas/swingtrader
8682e33464883f54b80f9764cfaf3cc9248774a0
[ "Apache-2.0" ]
null
null
null
swingtrader/stockmarketapi/__init__.py
kabylkas/swingtrader
8682e33464883f54b80f9764cfaf3cc9248774a0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021-2022 Kabylkas Labs. # Licensed under the Apache License, Version 2.0. from .stockmarketapi import Stock from .stockmarketapi import StockBucket
41
49
0.804878
1bd09b12f21d9acb607142944ec3b8ac94113d29
3,236
py
Python
xero_python/payrolluk/models/timesheet_line_object.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/timesheet_line_object.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
xero_python/payrolluk/models/timesheet_line_object.py
sromero84/xero-python
89558c0baa8080c3f522701eb1b94f909248dbd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.3.4 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel
26.096774
92
0.621755
1bd0cba8c6f81882ac13039efa512c0dfba5b8e9
4,492
py
Python
monocle/resources.py
bigjust/django-monocle
f546a9061834b41a1a701ef89f8371bfaf4f1691
[ "MIT" ]
1
2019-04-21T17:25:16.000Z
2019-04-21T17:25:16.000Z
monocle/resources.py
bigjust/django-monocle
f546a9061834b41a1a701ef89f8371bfaf4f1691
[ "MIT" ]
null
null
null
monocle/resources.py
bigjust/django-monocle
f546a9061834b41a1a701ef89f8371bfaf4f1691
[ "MIT" ]
null
null
null
import json import os import time from django.template import Context from django.template.loader import get_template from django.utils.safestring import mark_safe from monocle.settings import settings def get_ttl(self): """ Returns the TTL of this resource ensuring that it at minimum the value ...
32.085714
88
0.616652
1bd1d5cfc2e0f45a350b9178b490c86e26fca79d
8,346
py
Python
splunk-cluster/splunk_setup.py
outcoldman/docker-splunk-cluster
5b3feb8131197b1a0a574dfea9ec4f20703c189b
[ "MIT" ]
34
2016-07-22T16:37:49.000Z
2021-11-19T22:32:30.000Z
splunk-cluster/splunk_setup.py
mhassan2/docker-splunk-cluster
5b3feb8131197b1a0a574dfea9ec4f20703c189b
[ "MIT" ]
5
2016-07-25T16:02:29.000Z
2017-02-17T19:17:45.000Z
splunk-cluster/splunk_setup.py
outcoldman/docker-splunk-cluster
5b3feb8131197b1a0a574dfea9ec4f20703c189b
[ "MIT" ]
20
2016-07-26T01:02:47.000Z
2019-09-20T03:01:52.000Z
import os import sys import json import time import socket import re import glob import subprocess import requests import splunk.clilib.cli_common import splunk.util var_expandvars_re = re.compile(r'\AENV\((.*)\)$') var_shell_re = re.compile(r'\ASHELL\((.*)\)$') def main(): """ Initialize node. Can run be...
38.818605
186
0.594896
1bd2497956029c869243241e0d24f1edfcdc8997
520
py
Python
darvag/tags/forms.py
Erfi/dorathewordexplorer
85bcbfd0baf3ba7a2bf511ab9a4fd1087c219c8b
[ "MIT" ]
null
null
null
darvag/tags/forms.py
Erfi/dorathewordexplorer
85bcbfd0baf3ba7a2bf511ab9a4fd1087c219c8b
[ "MIT" ]
17
2019-10-03T12:23:41.000Z
2019-11-05T21:28:46.000Z
darvag/tags/forms.py
Erfi/german-api
85bcbfd0baf3ba7a2bf511ab9a4fd1087c219c8b
[ "MIT" ]
null
null
null
from django.forms import Form, MultipleChoiceField, SelectMultiple, ModelMultipleChoiceField # --- customizations --- # ----------------------
30.588235
120
0.715385
1bd33e1813ca1443a89a2ae8c80e1f64e10a3043
316
py
Python
tods/sk_interface/detection_algorithm/SOD_skinterface.py
ZhuangweiKang/tods
fe3f55f8ccb306dd292c668e0f1154f1afdfa556
[ "Apache-2.0" ]
544
2020-09-21T06:02:33.000Z
2022-03-27T07:16:32.000Z
tods/sk_interface/detection_algorithm/SOD_skinterface.py
ZhuangweiKang/tods
fe3f55f8ccb306dd292c668e0f1154f1afdfa556
[ "Apache-2.0" ]
35
2020-09-21T06:33:13.000Z
2022-03-11T14:20:21.000Z
tods/sk_interface/detection_algorithm/SOD_skinterface.py
ZhuangweiKang/tods
fe3f55f8ccb306dd292c668e0f1154f1afdfa556
[ "Apache-2.0" ]
86
2020-09-21T16:44:33.000Z
2022-03-11T18:20:22.000Z
import numpy as np from ..base import BaseSKI from tods.detection_algorithm.PyodSOD import SODPrimitive
28.727273
57
0.787975
1bd36a5a050517e6c0b779b2d7a6a6b544da049f
294
py
Python
app/db_fill.py
justincredble/Circulation
9c7537261a89acf737268943ab69fcb6f7d2af7f
[ "MIT" ]
null
null
null
app/db_fill.py
justincredble/Circulation
9c7537261a89acf737268943ab69fcb6f7d2af7f
[ "MIT" ]
null
null
null
app/db_fill.py
justincredble/Circulation
9c7537261a89acf737268943ab69fcb6f7d2af7f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from app import app, db from app.models import User, Role app_ctx = app.app_context() app_ctx.push() db.create_all() Role.insert_roles() admin = User(name=u'root', email='root@gmail.com', password='password') db.session.add(admin) db.session.commit() app_ctx.pop()
17.294118
71
0.707483
1bd49f7322af6da9c72aaa3079fafb0bea1db117
9,405
py
Python
FuelOxTrades.py
AA-284-Team-AA/Prop_Analysis
47382d628388c3d6a2bb8992e04d483ad5992aed
[ "MIT" ]
1
2020-12-15T11:38:54.000Z
2020-12-15T11:38:54.000Z
FuelOxTrades.py
AA-284-Team-AA/Prop_Analysis
47382d628388c3d6a2bb8992e04d483ad5992aed
[ "MIT" ]
null
null
null
FuelOxTrades.py
AA-284-Team-AA/Prop_Analysis
47382d628388c3d6a2bb8992e04d483ad5992aed
[ "MIT" ]
2
2020-01-24T23:57:09.000Z
2020-12-15T11:38:59.000Z
import numpy as np import matplotlib.pyplot as plt from rocketcea.cea_obj_w_units import CEA_Obj from rocketcea.cea_obj import add_new_fuel # def findER(fu,ox,pcpe): # finds the ideal nozzle expansion ratio # C = CEA_Obj(oxName=ox, fuelName=fu, # isp_units='sec', # cstar_units='m/s') # define CEA object to...
46.102941
174
0.644338
1bd5e7384dac3f4e1c314c62e84166a6ae616194
137
py
Python
lib/nginxlib.py
charmed-kubernetes/juju-layer-nginx
672d27695b512e50f51777b1eb63c5ff157b3d9e
[ "MIT" ]
1
2015-11-04T03:40:24.000Z
2015-11-04T03:40:24.000Z
lib/nginxlib.py
charmed-kubernetes/juju-layer-nginx
672d27695b512e50f51777b1eb63c5ff157b3d9e
[ "MIT" ]
null
null
null
lib/nginxlib.py
charmed-kubernetes/juju-layer-nginx
672d27695b512e50f51777b1eb63c5ff157b3d9e
[ "MIT" ]
null
null
null
from warnings import warn from charms.layer.nginx import * # noqa warn('nginxlib is being deprecated, use charms.layer.nginx instead')
27.4
68
0.781022
1bd8e96793a790da9280643e9022127c10243cec
3,614
py
Python
assignment2.py
andremsouza/dip-t02-enhancement-filtering
2506cd9c704af5adf7136de190762da66dacf27c
[ "MIT" ]
null
null
null
assignment2.py
andremsouza/dip-t02-enhancement-filtering
2506cd9c704af5adf7136de190762da66dacf27c
[ "MIT" ]
null
null
null
assignment2.py
andremsouza/dip-t02-enhancement-filtering
2506cd9c704af5adf7136de190762da66dacf27c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Name: Andr Moreira Souza # NUSP: 9778985 # Course Code: SCC0251 # Semester: 2019/1 # Assignment: 2 - Image enhancement and filtering # - import numpy as np import imageio # ## Defining functions # + # method 1 - limiarization # method 2 - 1d filtering # method 3 - 2d filtering # method...
38.042105
130
0.627006
1bd98169236fadcdd2f4be3bc8f9290368ceb686
15,192
py
Python
test/test_api.py
archoversight/u2fval
ec8b6b9e65f880fd609c7e9f82638696341c781f
[ "BSD-2-Clause" ]
75
2015-02-10T08:33:28.000Z
2021-11-16T21:10:56.000Z
test/test_api.py
archoversight/u2fval
ec8b6b9e65f880fd609c7e9f82638696341c781f
[ "BSD-2-Clause" ]
39
2015-04-09T04:34:26.000Z
2021-09-04T23:18:58.000Z
test/test_api.py
archoversight/u2fval
ec8b6b9e65f880fd609c7e9f82638696341c781f
[ "BSD-2-Clause" ]
31
2015-02-26T08:38:29.000Z
2022-02-17T20:03:25.000Z
from u2fval import app, exc from u2fval.model import db, Client from .soft_u2f_v2 import SoftU2FDevice, CERT from six.moves.urllib.parse import quote from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.serialization import Encoding import unittest i...
39.769634
79
0.535874
1bdb708dd35b54eb9305795bb23aa7f10f6fd2ff
656
py
Python
setup.py
suchanlee/typekit-python
45b1d09b1934ea87b752405c6b2290ce477afa0d
[ "MIT" ]
6
2016-03-17T10:56:22.000Z
2020-09-10T02:55:19.000Z
setup.py
suchanlee/typekit-python
45b1d09b1934ea87b752405c6b2290ce477afa0d
[ "MIT" ]
null
null
null
setup.py
suchanlee/typekit-python
45b1d09b1934ea87b752405c6b2290ce477afa0d
[ "MIT" ]
6
2015-03-13T12:11:59.000Z
2020-05-22T20:42:36.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup from typekit._version import __version__ as version setup( name = 'typekit', packages = ['typekit'], version = version, license='MIT', description = 'Python wrapper for Typekit Developer API', autho...
28.521739
92
0.667683
59edeae5675e92a4f2deb7a85fba31c6c92a2875
1,315
py
Python
organization/migrations/0002_auto_20180325_1529.py
H0neyBadger/pmapi
d34dad32170e53f49e14611f5bfbfcb4eb7b8d4d
[ "MIT" ]
null
null
null
organization/migrations/0002_auto_20180325_1529.py
H0neyBadger/pmapi
d34dad32170e53f49e14611f5bfbfcb4eb7b8d4d
[ "MIT" ]
1
2017-09-07T09:15:07.000Z
2017-09-07T09:15:07.000Z
organization/migrations/0002_auto_20180325_1529.py
H0neyBadger/cmdb
d34dad32170e53f49e14611f5bfbfcb4eb7b8d4d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-25 15:29 from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion
34.605263
190
0.638783
59f118b8a100acdad7416211305340cb179b7ad0
8,673
py
Python
translation/train.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
10
2019-01-19T08:15:05.000Z
2021-12-02T08:54:50.000Z
translation/train.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
null
null
null
translation/train.py
AkshatSh/BinarizedNMT
7fa15149fdfcad6b1fd0956157c3730f3dcd781f
[ "MIT" ]
2
2019-01-25T21:19:49.000Z
2019-03-21T11:38:13.000Z
import torch import pickle import argparse import os from tqdm import trange, tqdm import torch import torchtext from torchtext import data from torchtext import datasets from torch import nn import torch.nn.functional as F import math from models import SimpleLSTMModel, AttentionRNN from train_args import get_arg_par...
35.256098
113
0.591145
59f1c15a95f6ece1eb1189e10c53a789c1ff17ed
1,404
py
Python
rawquery/rawquery.py
joncombe/django-raw-query
b10c8f5731668bd16fd37cfc86b37dcb0ca65f4f
[ "BSD-3-Clause" ]
3
2020-07-16T20:01:57.000Z
2022-03-26T06:39:32.000Z
rawquery/rawquery.py
joncombe/django-raw-query
b10c8f5731668bd16fd37cfc86b37dcb0ca65f4f
[ "BSD-3-Clause" ]
null
null
null
rawquery/rawquery.py
joncombe/django-raw-query
b10c8f5731668bd16fd37cfc86b37dcb0ca65f4f
[ "BSD-3-Clause" ]
null
null
null
from django.db import connection
29.87234
74
0.57265
59f26542f2fe8d0ce4367beee404e46a3371d4b2
37,779
py
Python
src/PythonUnitTests/UFUNCTests/UFUNC_UINT64.py
thild/numpy.net
1a607cfb42263f92314a1e8dbec6f5436a7feb73
[ "BSD-3-Clause" ]
59
2019-01-20T19:43:05.000Z
2022-03-26T06:08:51.000Z
src/PythonUnitTests/UFUNCTests/UFUNC_UINT64.py
thild/numpy.net
1a607cfb42263f92314a1e8dbec6f5436a7feb73
[ "BSD-3-Clause" ]
21
2019-06-06T17:45:01.000Z
2022-03-30T10:37:24.000Z
src/PythonUnitTests/UFUNCTests/UFUNC_UINT64.py
thild/numpy.net
1a607cfb42263f92314a1e8dbec6f5436a7feb73
[ "BSD-3-Clause" ]
7
2019-05-12T21:06:18.000Z
2022-02-13T12:23:23.000Z
import unittest import numpy as np if __name__ == '__main__': unittest.main()
25.682529
73
0.541941
59f29643b40421242d0bea0de29a9058ef247935
49
py
Python
pis_client/__init__.py
ignertic/pis_client
12dd56b6801b53388cb46199a27a0a7d3d214523
[ "MIT" ]
null
null
null
pis_client/__init__.py
ignertic/pis_client
12dd56b6801b53388cb46199a27a0a7d3d214523
[ "MIT" ]
null
null
null
pis_client/__init__.py
ignertic/pis_client
12dd56b6801b53388cb46199a27a0a7d3d214523
[ "MIT" ]
null
null
null
from .model import Client __version__= "0.0.1"
9.8
25
0.714286
59f56393703c13188954083843d72db2967ca6cd
607
py
Python
pychain/node_discovery.py
tylermzeller/pychain
3cbf49a762cacb9d4698a83a9f5851c601e57bd0
[ "MIT" ]
null
null
null
pychain/node_discovery.py
tylermzeller/pychain
3cbf49a762cacb9d4698a83a9f5851c601e57bd0
[ "MIT" ]
10
2018-06-21T01:15:14.000Z
2018-07-30T01:02:35.000Z
pychain/node_discovery.py
tylermzeller/pychain
3cbf49a762cacb9d4698a83a9f5851c601e57bd0
[ "MIT" ]
null
null
null
''' "Node discovery". *Hack* This implementation of p2p node discovery takes advantage of docker and information sharing through environment variables. REAL discovery should probably happen through DNS. ''' # returns a list of node addresses
33.722222
89
0.693575
59f5b6b59a824290eeb563ee136c31e98362ac02
5,483
py
Python
igen/mock_cmd.py
tuan188/MGiGen
8aa505255b95173adbebe7d1e90f83269bd3343f
[ "MIT" ]
15
2019-04-04T00:57:58.000Z
2022-02-09T02:35:48.000Z
igen/mock_cmd.py
tuan188/MGiGen
8aa505255b95173adbebe7d1e90f83269bd3343f
[ "MIT" ]
null
null
null
igen/mock_cmd.py
tuan188/MGiGen
8aa505255b95173adbebe7d1e90f83269bd3343f
[ "MIT" ]
8
2019-05-17T02:39:13.000Z
2021-12-01T07:17:24.000Z
# coding=utf-8 import re from jinja2 import Environment, PackageLoader from .pb import pasteboard_write from .command import Command from .constants import SWIFT_TYPES_DEFAULT_VALUES, SWIFT_TYPES from .str_helpers import upper_first_letter
33.845679
79
0.552435
59f8c3c0d266d9fae2fbc9c6180b27f2870c2fce
2,063
py
Python
mmstructlib/tools/clashes.py
academicRobot/mmstructlib
76949620c9e9ca26faf10ff1a21c6fda1a564f5c
[ "MIT" ]
null
null
null
mmstructlib/tools/clashes.py
academicRobot/mmstructlib
76949620c9e9ca26faf10ff1a21c6fda1a564f5c
[ "MIT" ]
null
null
null
mmstructlib/tools/clashes.py
academicRobot/mmstructlib
76949620c9e9ca26faf10ff1a21c6fda1a564f5c
[ "MIT" ]
null
null
null
from mmstructlib.tools.gridhash import GridHash import numpy as np from scipy.spatial import distance def clash_iter(atoms, min_clash=0.4, radii_attr='radius'): """ Returns an iterator over pairs: -clash value -the pair of clashing atoms min_clash. """ max_radii = max([getattr(a, ...
34.966102
85
0.66699
59fa6071a6de1608fbc8ebf03f1204cc8f58b9fb
2,656
py
Python
tube/settings.py
ohsu-comp-bio/tube
da21ac21448dc50924a01db3b9c48b7b37a60449
[ "Apache-2.0" ]
null
null
null
tube/settings.py
ohsu-comp-bio/tube
da21ac21448dc50924a01db3b9c48b7b37a60449
[ "Apache-2.0" ]
null
null
null
tube/settings.py
ohsu-comp-bio/tube
da21ac21448dc50924a01db3b9c48b7b37a60449
[ "Apache-2.0" ]
null
null
null
import os from cdislogging import get_logger from tube.config_helper import * from utils.general import get_resource_paths_from_yaml logger = get_logger(__name__) LIST_TABLES_FILES = 'tables.txt' # # Load db credentials from a creds.json file. # See config_helper.py for paths searched for creds.json # ex: export XD...
39.058824
128
0.726657
59fdf5e051bfb98a155a9392dc0c9ca866ade75a
5,234
py
Python
t2t_bert/chid_nlpcc2019/model_batch_infer.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
t2t_bert/chid_nlpcc2019/model_batch_infer.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
t2t_bert/chid_nlpcc2019/model_batch_infer.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
from functools import reduce import numpy as np import json import tensorflow as tf from scipy.optimize import linear_sum_assignment import os import time import tensorflow as tf flags = tf.flags FLAGS = flags.FLAGS # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' tf.logging.set_verbosity(tf.logging.INFO) flags.DEFINE_s...
29.908571
104
0.700038
59fe80b466cc0482b71f0268fc89c32034df5ce8
10,255
py
Python
laba/user.py
Snake-Whisper/laba
78db605d594c2a2c2c3245c00269f08303c6b7ea
[ "MIT" ]
null
null
null
laba/user.py
Snake-Whisper/laba
78db605d594c2a2c2c3245c00269f08303c6b7ea
[ "MIT" ]
null
null
null
laba/user.py
Snake-Whisper/laba
78db605d594c2a2c2c3245c00269f08303c6b7ea
[ "MIT" ]
null
null
null
from flask import g, session import pymysql import redis import random import string from json import loads, dumps from exceptions.userException import * from hashlib import sha256 class LoginUser(User): def __init__(self, app, username, password): """Checks User cred and logs in + moves to redis if ready...
33.622951
205
0.583715
59fe8cddb1924c234b109f3ff5d5d0ddb22f9abc
1,697
py
Python
iotbot/config.py
li7yue/python--iotbot
ca721b795114202114a4eb355d20f9ecfd9b8901
[ "MIT" ]
1
2020-10-05T01:09:15.000Z
2020-10-05T01:09:15.000Z
iotbot/config.py
li7yue/python--iotbot
ca721b795114202114a4eb355d20f9ecfd9b8901
[ "MIT" ]
null
null
null
iotbot/config.py
li7yue/python--iotbot
ca721b795114202114a4eb355d20f9ecfd9b8901
[ "MIT" ]
null
null
null
from typing import List from .exceptions import InvalidConfigError from .utils import check_schema try: import ujson as json except Exception: import json _config_dict = {} try: with open('./.iotbot.json', encoding='utf-8') as f: _config_dict = json.load(f) except FileNotFoundError: pass ex...
26.107692
71
0.597525
59ffd86260272037b69140ff81d306c93dca9bd8
3,487
py
Python
munjong/remove_sejong_period_error.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
1,235
2018-11-30T01:35:13.000Z
2022-03-31T03:47:48.000Z
munjong/remove_sejong_period_error.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
91
2018-11-30T05:19:28.000Z
2022-03-14T12:38:44.000Z
munjong/remove_sejong_period_error.py
cjdans5545/khaiii
328d5a8af456a5941130383354c07d1cd0e47cf5
[ "Apache-2.0" ]
332
2018-11-30T00:49:04.000Z
2022-03-30T01:57:54.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ remove wrong sentence breaking marks after period error eojeol __author__ = 'Jamie (jamie.lim@kakaocorp.com)' __copyright__ = 'Copyright (C) 2017-, Kakao Corp. All rights reserved.' """ ########### # imports # ########### from argparse import ArgumentParser import ...
28.818182
98
0.587898
9400374362a198841f41c9a2597aa394d299e8f8
42
py
Python
fluent_contents/__init__.py
pombredanne/django-fluent-contents
b8a999a8c1e2fe03a591023688e74c9e4b472d5c
[ "Apache-2.0" ]
null
null
null
fluent_contents/__init__.py
pombredanne/django-fluent-contents
b8a999a8c1e2fe03a591023688e74c9e4b472d5c
[ "Apache-2.0" ]
null
null
null
fluent_contents/__init__.py
pombredanne/django-fluent-contents
b8a999a8c1e2fe03a591023688e74c9e4b472d5c
[ "Apache-2.0" ]
null
null
null
# following PEP 386 __version__ = "1.0a1"
14
21
0.714286
940087754d4f3fba00dce2ece646519c4b46fb0b
5,417
py
Python
asp/codegen/scala_ast.py
shoaibkamil/asp
2bc5fd5595c475d43b9ee4451db1b51eb9165fdb
[ "BSD-3-Clause" ]
12
2015-03-20T17:39:23.000Z
2021-03-17T17:14:25.000Z
asp/codegen/scala_ast.py
shoaibkamil/asp
2bc5fd5595c475d43b9ee4451db1b51eb9165fdb
[ "BSD-3-Clause" ]
1
2015-12-28T11:22:48.000Z
2015-12-28T11:22:48.000Z
asp/codegen/scala_ast.py
shoaibkamil/asp
2bc5fd5595c475d43b9ee4451db1b51eb9165fdb
[ "BSD-3-Clause" ]
9
2015-01-06T00:36:53.000Z
2020-09-19T14:31:26.000Z
import ast """ I don't use the Generable class inheritance """ if __name__ == '__main__': pass
17.142405
67
0.670113
9400dcaa88a2929b28b3ed85154b671a3195ca83
265
py
Python
upload_test.py
binocular-vision/container
35e86b51c430ccbf5f6a9776e33c21e586eda448
[ "MIT" ]
null
null
null
upload_test.py
binocular-vision/container
35e86b51c430ccbf5f6a9776e33c21e586eda448
[ "MIT" ]
null
null
null
upload_test.py
binocular-vision/container
35e86b51c430ccbf5f6a9776e33c21e586eda448
[ "MIT" ]
null
null
null
from google.cloud import storage import json client = storage.Client() bucket = client.get_bucket('ibvdata') blob = bucket.get_blob("experiments/2018-04-14-03-06-01/outputs/json/a0.05_r3.00_p0.05_t1.00") check = json.loads(blob.download_as_string()) print(check)
26.5
94
0.773585
940152d4021e4a7153b7871ac9b9df4b89170155
1,578
py
Python
cdgo/mathops.py
s-gordon/CDGo
7bd1b3a6780f70f1237a7f0cac5e112c6b804100
[ "MIT" ]
1
2019-01-24T20:52:19.000Z
2019-01-24T20:52:19.000Z
cdgo/mathops.py
s-gordon/CDGo
7bd1b3a6780f70f1237a7f0cac5e112c6b804100
[ "MIT" ]
3
2015-06-18T06:09:37.000Z
2017-09-07T02:48:44.000Z
cdgo/mathops.py
s-gordon/CDGo
7bd1b3a6780f70f1237a7f0cac5e112c6b804100
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np def residuals(fit, obs): """Calculate residuals for fit compared to observed data :fit: list of discrete fit data points :obs: list of observed data points :returns: fit minus observed data points """ return fit-obs def fit_...
23.552239
71
0.653992
94021a64302eb30d02fce61d892fb9559a6b654c
2,932
py
Python
S4/S4 Library/simulation/gsi_handlers/lot_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/gsi_handlers/lot_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/gsi_handlers/lot_handlers.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from gsi_handlers.commodity_tracker_gsi_util import generate_data_from_commodity_tracker, create_schema_for_commodity_tracker from sims4.gsi.dispatcher import GsiHandler from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers import services import sims4 import build_buy lot_info_schema = GsiGridSchema(label='L...
61.083333
306
0.74045
94036080d0fec3020c25a2d6b0cd82b107d85c23
731
py
Python
cubbie/tests/test_production_model.py
rjw57/cubbie
9421c0196d12f8d142ecafde5c347e09f99ec127
[ "MIT" ]
null
null
null
cubbie/tests/test_production_model.py
rjw57/cubbie
9421c0196d12f8d142ecafde5c347e09f99ec127
[ "MIT" ]
null
null
null
cubbie/tests/test_production_model.py
rjw57/cubbie
9421c0196d12f8d142ecafde5c347e09f99ec127
[ "MIT" ]
null
null
null
""" Test Production model """ import pytest from mixer.backend.flask import mixer from cubbie.model import Production, Capability from cubbie.fixture import create_production_fixtures def test_fixtures_created(productions): """The production fixture should have > 3 productions.""" assert Production.query.cou...
27.074074
78
0.756498
940405d6c9775503ef1056bd4a4b8fdb5743beea
3,589
py
Python
scripts/SentenceClusterizer.py
JoseMan90/sentence-clustering
ddbbe50754058e8f3277894644b013ec505d2870
[ "Apache-2.0" ]
null
null
null
scripts/SentenceClusterizer.py
JoseMan90/sentence-clustering
ddbbe50754058e8f3277894644b013ec505d2870
[ "Apache-2.0" ]
null
null
null
scripts/SentenceClusterizer.py
JoseMan90/sentence-clustering
ddbbe50754058e8f3277894644b013ec505d2870
[ "Apache-2.0" ]
1
2021-08-10T20:49:41.000Z
2021-08-10T20:49:41.000Z
import nltk from sklearn.feature_extraction.text import TfidfVectorizer import string from sklearn.decomposition import TruncatedSVD from hdbscan.hdbscan_ import HDBSCAN import pandas as pd from sklearn.model_selection import ShuffleSplit from sklearn.model_selection import RandomizedSearchCV from scripts.DisableCV imp...
37
118
0.710783
940450935e7335999ff4b26c4f843122b393e632
219
py
Python
share/graphql/fields.py
felliott/SHARE
8fd60ff4749349c9b867f6188650d71f4f0a1a56
[ "Apache-2.0" ]
null
null
null
share/graphql/fields.py
felliott/SHARE
8fd60ff4749349c9b867f6188650d71f4f0a1a56
[ "Apache-2.0" ]
null
null
null
share/graphql/fields.py
felliott/SHARE
8fd60ff4749349c9b867f6188650d71f4f0a1a56
[ "Apache-2.0" ]
null
null
null
from graphene.types.scalars import Scalar # Note should define a couple parse methods but this class is only used for serializing
21.9
87
0.744292
9404aefdf46be89ea0882f84aad9a69dde8da596
1,753
py
Python
gene.py
Chappie733/Neat
2414842197c9a146293246e984557b36c8b9fb89
[ "MIT" ]
null
null
null
gene.py
Chappie733/Neat
2414842197c9a146293246e984557b36c8b9fb89
[ "MIT" ]
null
null
null
gene.py
Chappie733/Neat
2414842197c9a146293246e984557b36c8b9fb89
[ "MIT" ]
null
null
null
from enum import Enum
30.754386
129
0.596691
9406b5e9df7638de76766cd50b89ec3226c0cfe2
634
py
Python
test/test_qxh.py
flowerysong/quickxorhash
9cfb16542e2c5020d63f38f0f8e870786593ec64
[ "MIT" ]
1
2021-02-07T07:24:00.000Z
2021-02-07T07:24:00.000Z
test/test_qxh.py
flowerysong/quickxorhash
9cfb16542e2c5020d63f38f0f8e870786593ec64
[ "MIT" ]
2
2020-11-01T13:55:45.000Z
2020-11-03T21:47:15.000Z
test/test_qxh.py
flowerysong/quickxorhash
9cfb16542e2c5020d63f38f0f8e870786593ec64
[ "MIT" ]
2
2019-09-03T18:16:47.000Z
2020-11-03T19:27:53.000Z
#!/usr/bin/env python3 import os import subprocess import pytest
23.481481
76
0.638801
94074a7f69d0726f20e9c615de67c7046452f8cb
778
py
Python
Day 1/Puzzle 1.py
rookuu/AdventOfCode-2015
b94e98f5711d0901412b22342395457a8185bc10
[ "MIT" ]
null
null
null
Day 1/Puzzle 1.py
rookuu/AdventOfCode-2015
b94e98f5711d0901412b22342395457a8185bc10
[ "MIT" ]
null
null
null
Day 1/Puzzle 1.py
rookuu/AdventOfCode-2015
b94e98f5711d0901412b22342395457a8185bc10
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Solution to Day 1 - Puzzle 1 of the Advent Of Code 2015 series of challenges. --- Day 1: Not Quite Lisp --- An opening parenthesis represents an increase in floor and a closing parenthesis represents a decrease in floor. After taking a 7000 character long input string of assorted parenthesi...
29.923077
112
0.676093
94095a079d2202cdff5d27e376cc7dec1b8ab428
22
py
Python
startup.py
felixludos/adversary
bda1d7a07da736056b69903cb51b29ccdf1eb95e
[ "MIT" ]
null
null
null
startup.py
felixludos/adversary
bda1d7a07da736056b69903cb51b29ccdf1eb95e
[ "MIT" ]
null
null
null
startup.py
felixludos/adversary
bda1d7a07da736056b69903cb51b29ccdf1eb95e
[ "MIT" ]
null
null
null
import adversary
5.5
17
0.681818
940a6362456b8a9d850cd76157668ee72585c4d1
5,226
py
Python
vezda/svd_utils.py
aaronprunty/vezda
79a940f30981bf636e68594678d689706b894133
[ "Apache-2.0" ]
3
2019-02-19T17:53:47.000Z
2019-07-21T07:17:19.000Z
vezda/svd_utils.py
aaronprunty/vezda
79a940f30981bf636e68594678d689706b894133
[ "Apache-2.0" ]
null
null
null
vezda/svd_utils.py
aaronprunty/vezda
79a940f30981bf636e68594678d689706b894133
[ "Apache-2.0" ]
2
2018-12-12T15:04:56.000Z
2019-07-20T16:30:16.000Z
import sys import time import numpy as np import scipy.sparse as sp from vezda.math_utils import humanReadable from vezda.LinearOperators import asConvolutionalOperator def make_sparse(A, r, compressedFormat): ''' Return a sparse representation of a matrix A based on the r largest nonzero row/co...
32.6625
92
0.556831
940a8598f3040a3a7046ea34ba748451869cc818
4,448
py
Python
experiments/cub_hypernym/load_cub_hypernym.py
Glaciohound/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
52
2019-12-04T22:26:56.000Z
2022-03-31T17:04:15.000Z
experiments/cub_hypernym/load_cub_hypernym.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
6
2020-08-25T07:35:14.000Z
2021-09-09T04:57:09.000Z
experiments/cub_hypernym/load_cub_hypernym.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
5
2020-02-10T07:39:24.000Z
2021-06-23T02:53:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : load_cub_hypernym.py # Author : Chi Han, Jiayuan Mao # Email : haanchi@gmail.com, maojiayuan@gmail.com # Date : 07.08.2019 # Last Modified Date: 20.11.2019 # Last Modified By : Chi Han # # This file is part of the ...
33.954198
77
0.642536
940b5182827ad683c298cbd7154d0d4cc405715c
1,143
py
Python
Ex_Files_Python_EssT/Exercise Files/Chap01/rockPaperScissors.py
cinthiatengan/Basic-Python
9dbc280af2e9af9b79421018be814d0f178d8097
[ "MIT" ]
null
null
null
Ex_Files_Python_EssT/Exercise Files/Chap01/rockPaperScissors.py
cinthiatengan/Basic-Python
9dbc280af2e9af9b79421018be814d0f178d8097
[ "MIT" ]
null
null
null
Ex_Files_Python_EssT/Exercise Files/Chap01/rockPaperScissors.py
cinthiatengan/Basic-Python
9dbc280af2e9af9b79421018be814d0f178d8097
[ "MIT" ]
null
null
null
""" Rock Paper Scissors -------------------------------------------------------------- """ import random import os import re os.system('cls' if os.name=='nt' else clear) while (1< 2): print ("\n") print ("Rock, Paper, Scissors - Shoot!") userChoice = input("Choose your weapon [R]ock, [P]aper, or [S]cissors...
33.617647
77
0.552931
940ffb0bbc2dbf7544db176a515e248e22ab71ef
16,927
py
Python
skorch/helper.py
sakuranew/skorch
54f5645425db48f49e8adc617fff049c383e0367
[ "BSD-3-Clause" ]
1
2021-04-12T14:24:56.000Z
2021-04-12T14:24:56.000Z
skorch/helper.py
sakuranew/skorch
54f5645425db48f49e8adc617fff049c383e0367
[ "BSD-3-Clause" ]
null
null
null
skorch/helper.py
sakuranew/skorch
54f5645425db48f49e8adc617fff049c383e0367
[ "BSD-3-Clause" ]
1
2020-12-17T14:20:32.000Z
2020-12-17T14:20:32.000Z
"""Helper functions and classes for users. They should not be used in skorch directly. """ from collections import Sequence from collections import namedtuple from functools import partial import numpy as np from sklearn.base import BaseEstimator from sklearn.base import TransformerMixin import torch from skorch.cl...
33.060547
85
0.595971
94109df769819af9aa38b685bf904aecad7d9115
2,530
py
Python
expenses/models.py
mateuszwwwrobel/Expense_Tracker_Django
e84bda82433427608e026faa00a634c46a433179
[ "MIT" ]
null
null
null
expenses/models.py
mateuszwwwrobel/Expense_Tracker_Django
e84bda82433427608e026faa00a634c46a433179
[ "MIT" ]
null
null
null
expenses/models.py
mateuszwwwrobel/Expense_Tracker_Django
e84bda82433427608e026faa00a634c46a433179
[ "MIT" ]
null
null
null
from datetime import datetime from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.db.models import Sum categories = ( ('Food', 'Food'), ('Takeaway', 'Takeaway'), ('Entertainment', 'Entertainment'), ('Bills', 'Bills'...
30.853659
97
0.66087
941112baf421a06451189dbe5c8a03eed694f448
968
py
Python
Quiz/m1_quant_basics/l2_stock_prices/quiz_tests.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
98
2020-05-22T00:41:23.000Z
2022-03-24T12:57:15.000Z
Quiz/m1_quant_basics/l2_stock_prices/quiz_tests.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
1
2020-01-04T05:32:35.000Z
2020-01-04T18:22:21.000Z
Quiz/m1_quant_basics/l2_stock_prices/quiz_tests.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
74
2020-05-05T16:44:42.000Z
2022-03-23T06:59:09.000Z
from collections import OrderedDict import pandas as pd from tests import project_test, assert_output
35.851852
111
0.566116
9412ae8d794817c6aae2c6e712ed2c24d9187000
1,306
py
Python
Problem58.py
Cleancode404/ProjectEuler
2f93b256b107bfb6a395b8aa197cfeacc599b00b
[ "MIT" ]
null
null
null
Problem58.py
Cleancode404/ProjectEuler
2f93b256b107bfb6a395b8aa197cfeacc599b00b
[ "MIT" ]
null
null
null
Problem58.py
Cleancode404/ProjectEuler
2f93b256b107bfb6a395b8aa197cfeacc599b00b
[ "MIT" ]
null
null
null
""" Starting with 1 and spiralling anticlockwise in the following way, a square spiral with side length 7 is formed. 37 36 35 34 33 32 31 38 17 16 15 14 13 30 39 18 5 4 3 12 29 40 19 6 1 2 11 28 41 20 7 8 9 10 27 42 21 22 23 24 25 26 43 44 45 46 47 48 49 It is interesting to note that the odd squares lie al...
28.391304
74
0.613323
94169a27bf1cb9a9f17f568c26d91e83bff1fa33
825
py
Python
src/pretalx/event/migrations/0023_update_featured_visibility.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/event/migrations/0023_update_featured_visibility.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/event/migrations/0023_update_featured_visibility.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
# Generated by Django 3.0.5 on 2020-07-26 15:45 from django.db import migrations
26.612903
78
0.624242
94187ed0c8700f9512490144c63712ffb0927710
2,575
py
Python
meiduo_mall24/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py
MarioKarting/Django_DRF_meiduo_mall
b9dc85d6d538e4655dd02ef1027524bdcbe497d7
[ "MIT" ]
1
2020-04-15T03:22:18.000Z
2020-04-15T03:22:18.000Z
meiduo_mall24/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py
MarioKarting/Django_DRF_meiduo_mall
b9dc85d6d538e4655dd02ef1027524bdcbe497d7
[ "MIT" ]
5
2020-05-11T20:29:00.000Z
2021-11-02T15:46:12.000Z
meiduo_mall24/meiduo_mall/meiduo_mall/apps/meiduo_admin/views/spus.py
MarioKarting/Django_DRF_meiduo_mall
b9dc85d6d538e4655dd02ef1027524bdcbe497d7
[ "MIT" ]
null
null
null
from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from goods.models import SPU, Brand, GoodsCategory, SKU from meiduo_admin.serializers.specs import SPUSerializer from meiduo_admin.serializers.spus import SPUGoodsSerialzier,...
26.822917
102
0.624854
9418c470da8515d5212fe661a684222a75d24302
4,559
py
Python
firmware_kmk/lib/kmk/handlers/sequences.py
telzo2000/NumAtreus_pico
3c8558e80869eca3ee753de21a02afc8108e5fcf
[ "MIT" ]
1
2022-01-21T06:09:18.000Z
2022-01-21T06:09:18.000Z
firmware_kmk/lib/kmk/handlers/sequences.py
telzo2000/NumAtreus_pico
3c8558e80869eca3ee753de21a02afc8108e5fcf
[ "MIT" ]
null
null
null
firmware_kmk/lib/kmk/handlers/sequences.py
telzo2000/NumAtreus_pico
3c8558e80869eca3ee753de21a02afc8108e5fcf
[ "MIT" ]
null
null
null
import gc from kmk.consts import UnicodeMode from kmk.handlers.stock import passthrough from kmk.keys import KC, make_key from kmk.types import AttrDict, KeySequenceMeta IBUS_KEY_COMBO = simple_key_sequence((KC.LCTRL(KC.LSHIFT(KC.U)),)) RALT_KEY = simple_key_sequence((KC.RALT,)) U_KEY = simple_key_sequence((KC.U...
29.412903
88
0.686993
9418ef3b1dbc12d433809a3899f7ad32944ce472
19,494
py
Python
tpDcc/tools/datalibrary/widgets/save.py
tpDcc/tpDcc-tools-datalibrary
fe867ac35a59d13300af20a998dccdabc2e145ba
[ "MIT" ]
null
null
null
tpDcc/tools/datalibrary/widgets/save.py
tpDcc/tpDcc-tools-datalibrary
fe867ac35a59d13300af20a998dccdabc2e145ba
[ "MIT" ]
null
null
null
tpDcc/tools/datalibrary/widgets/save.py
tpDcc/tpDcc-tools-datalibrary
fe867ac35a59d13300af20a998dccdabc2e145ba
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains base save widget for data items """ from __future__ import print_function, division, absolute_import import os import logging import traceback from Qt.QtCore import Signal, QSize from Qt.QtWidgets import QSizePolicy, QFrame, QDialogButtonBox, Q...
36.642857
118
0.606238
9419100ffaf554866684191a2a75d8965ac468d8
154
py
Python
app.py
ankan-fullstack/StocksDataConditionalOperation
a8a1d7122f053a9660787e3aa033e2a4bdfc2e61
[ "MIT" ]
null
null
null
app.py
ankan-fullstack/StocksDataConditionalOperation
a8a1d7122f053a9660787e3aa033e2a4bdfc2e61
[ "MIT" ]
null
null
null
app.py
ankan-fullstack/StocksDataConditionalOperation
a8a1d7122f053a9660787e3aa033e2a4bdfc2e61
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) if __name__ == "__main__": from api import * app.run(host ='0.0.0.0', port = 5000, debug = False)
22
57
0.642857
941a1a67e6695f7c1740b6f37424502f9989d6c5
1,061
py
Python
vframe_cli/commands/synthetic/utils/relabel.py
ngi-nix/vframe
60469e25203136f9d6a5ecaabe2423695ee9a0f2
[ "MIT" ]
null
null
null
vframe_cli/commands/synthetic/utils/relabel.py
ngi-nix/vframe
60469e25203136f9d6a5ecaabe2423695ee9a0f2
[ "MIT" ]
null
null
null
vframe_cli/commands/synthetic/utils/relabel.py
ngi-nix/vframe
60469e25203136f9d6a5ecaabe2423695ee9a0f2
[ "MIT" ]
null
null
null
############################################################################# # # VFRAME # MIT License # Copyright (c) 2019 Adam Harvey and VFRAME # https://vframe.io # ############################################################################# import click from vframe.settings import app_cfg ext_choices = ['jpg',...
27.205128
77
0.607917
941a1f27b0d66e18cd35a64743c98d71580ec9e8
747
py
Python
migrations/versions/7e15c6b3d73b_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/7e15c6b3d73b_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/7e15c6b3d73b_.py
Rdbaker/betly
92c7ae41bd221bbd21997fcd13e0f38b48f66d7d
[ "BSD-3-Clause" ]
null
null
null
"""Adds a unique constraint to name and url_name on bets. Revision ID: 7e15c6b3d73b Revises: 8b9f5b081137 Create Date: 2016-08-27 18:15:32.180825 """ # revision identifiers, used by Alembic. revision = '7e15c6b3d73b' down_revision = '8b9f5b081137' from alembic import op import sqlalchemy as sa
25.758621
63
0.697456
941ba60592ad05d3734afb4acc2a69ff6dc6d844
613
py
Python
notebooks/__code/array.py
neutronimaging/BraggEdgeFitting
233407fc000425ee79897e514964ef196ca27a08
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/array.py
neutronimaging/BraggEdgeFitting
233407fc000425ee79897e514964ef196ca27a08
[ "BSD-3-Clause" ]
2
2020-10-06T13:48:24.000Z
2020-10-07T16:21:46.000Z
notebooks/__code/array.py
neutronimaging/BraggEdgeFitting
233407fc000425ee79897e514964ef196ca27a08
[ "BSD-3-Clause" ]
null
null
null
import numpy as np
25.541667
78
0.724307
941cb3eef0c25d485bb5f643d2bec4dc1acc33ed
6,546
py
Python
prepares/prefix_extra_features.py
nengwenzhao/eWarn
966785001441d62ba27392d8099161eb07125b0f
[ "MIT" ]
null
null
null
prepares/prefix_extra_features.py
nengwenzhao/eWarn
966785001441d62ba27392d8099161eb07125b0f
[ "MIT" ]
null
null
null
prepares/prefix_extra_features.py
nengwenzhao/eWarn
966785001441d62ba27392d8099161eb07125b0f
[ "MIT" ]
null
null
null
# coding: utf-8 import numpy as np from datetime import datetime from utils.write_logs import write_log from prepares.prefix import Prefix from utils.split_data import split_data from functools import reduce
43.350993
174
0.594409