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
804b9dcfe64b7676e4cb3e82339b0395f8d54822
2,309
py
Python
homography-transformation-points.py
Tomikrys/RePhoto
ae0710c68efd91edff5a54f159d8452ea43f5a19
[ "BSD-3-Clause" ]
null
null
null
homography-transformation-points.py
Tomikrys/RePhoto
ae0710c68efd91edff5a54f159d8452ea43f5a19
[ "BSD-3-Clause" ]
null
null
null
homography-transformation-points.py
Tomikrys/RePhoto
ae0710c68efd91edff5a54f159d8452ea43f5a19
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import cv2 import sys import json import os if (len(sys.argv) != 5): print('2 arguments required') exit() img1 = cv2.imread(sys.argv[1]) img2 = cv2.imread(sys.argv[2]) file = open(sys.argv[4], "r") points = json.loads(file.read()) dst_pts = np.float32(points['old']).reshape(-1,1,2) src_p...
27.819277
88
0.607189
0
0
0
0
0
0
0
0
1,232
0.533564
804b9f804c6f3973c7e0b57683f0dc138f768005
1,634
py
Python
cpp/opt.py
AtsushiSakai/optuna_sample
06282ea35e8fcd2a4b0ffafb8080f56ffbf3ff66
[ "MIT" ]
1
2019-02-06T09:43:04.000Z
2019-02-06T09:43:04.000Z
cpp/opt.py
AtsushiSakai/optuna_sample
06282ea35e8fcd2a4b0ffafb8080f56ffbf3ff66
[ "MIT" ]
null
null
null
cpp/opt.py
AtsushiSakai/optuna_sample
06282ea35e8fcd2a4b0ffafb8080f56ffbf3ff66
[ "MIT" ]
null
null
null
""" Parameter optimization with optuna for Cpp code author: Atsushi Sakai """ import optuna import numpy as np import matplotlib.pyplot as plt import subprocess def HimmelblauFunction(x, y): """ Himmelblau's function see Himmelblau's function - Wikipedia, the free encyclopedia http://en.wikipedia....
21.786667
66
0.618115
0
0
0
0
0
0
0
0
569
0.348225
804bc1d2b19b9534b855e8e39ec3bfa6a9bb4dd1
5,385
py
Python
gui/select_excel.py
Tac213/ECConverter
d66d35f7e4ac2802f83ab4e595764c7f8004d317
[ "MIT" ]
1
2021-08-17T04:46:16.000Z
2021-08-17T04:46:16.000Z
gui/select_excel.py
Tac213/ECConverter
d66d35f7e4ac2802f83ab4e595764c7f8004d317
[ "MIT" ]
null
null
null
gui/select_excel.py
Tac213/ECConverter
d66d35f7e4ac2802f83ab4e595764c7f8004d317
[ "MIT" ]
1
2021-08-17T04:46:18.000Z
2021-08-17T04:46:18.000Z
# -*- coding: utf-8 -*- # author: Tac # contact: gzzhanghuaxiong@corp.netease.com import os.path from PyQt6.QtWidgets import QFrame, QVBoxLayout, QPushButton, QSizePolicy, QFileDialog, QMessageBox from PyQt6.QtCore import Qt, QDir, QModelIndex from gui.excel_list_view import ExcelListView from gui.model.excel_list_m...
37.922535
109
0.594429
5,403
0.933322
0
0
0
0
0
0
1,245
0.215063
804caf63ac2093aca40cc342a98958d4f3398ae7
16,359
py
Python
i3razer/i3_razer.py
leofah/i3razer
526db521d99e371b643d6e1a05a29788c239a95a
[ "MIT" ]
5
2020-07-30T20:59:37.000Z
2021-11-13T02:17:12.000Z
i3razer/i3_razer.py
leofah/i3razer
526db521d99e371b643d6e1a05a29788c239a95a
[ "MIT" ]
1
2022-03-31T21:38:08.000Z
2022-03-31T22:37:38.000Z
i3razer/i3_razer.py
leofah/i3razer
526db521d99e371b643d6e1a05a29788c239a95a
[ "MIT" ]
null
null
null
from logging import getLogger from openrazer.client import DeviceManager, constants as razer_constants from i3razer import config_contants as conf from i3razer.config_parser import ConfigParser from i3razer.layout import layouts from i3razer.pyxhook import HookManager ERR_DAEMON_OFF = -2 # openrazer is not running ...
38.311475
120
0.599609
15,948
0.974876
0
0
0
0
0
0
4,357
0.266337
804d7d8b57791079c4cce17fe9505b784c3b6b5e
1,471
py
Python
samples/storage.py
xdvlabs/xumm-sdk-py
c92066a6e9738e402e0ae1627dd21fbc6b3bead1
[ "MIT" ]
4
2022-01-29T11:22:06.000Z
2022-03-01T03:36:59.000Z
samples/storage.py
CASL-AE/xumm-py
dbe040f409ffc5f918086a12f190ef289e709d22
[ "MIT" ]
4
2022-01-14T22:49:02.000Z
2022-01-18T17:32:21.000Z
samples/storage.py
CASL-AE/xumm-py
dbe040f409ffc5f918086a12f190ef289e709d22
[ "MIT" ]
2
2022-03-01T03:32:35.000Z
2022-03-20T17:11:56.000Z
#!/usr/bin/env python # coding: utf-8 import logging import asyncio import xumm class StorageExample: def __init__(self): logging.debug('') self.sdk = xumm.XummSdk('API_KEY', 'API_SECRET') self.logger = logging.getLogger(self.__module__) self.logger.setLevel(level=logging.DEBUG) ...
29.42
105
0.638341
1,230
0.836166
0
0
0
0
989
0.672332
385
0.261727
804e64952849f44f6670f2c038c06ff8ef3ff239
2,318
py
Python
packages/w3af/w3af/core/controllers/misc/dns_cache.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/controllers/misc/dns_cache.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/controllers/misc/dns_cache.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" dns_cache.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope that i...
31.324324
77
0.684211
0
0
0
0
0
0
0
0
1,534
0.661777
80524ca8ae4e4f10430fd0ea3cbd3e1253bc5c64
3,875
py
Python
fretboard/chord.py
honorabel/python-fretboard
fb6a37e29bf6a19bee11940e9b42d58220c1306c
[ "MIT" ]
69
2016-11-18T02:11:01.000Z
2022-03-26T12:54:55.000Z
fretboard/chord.py
honorabel/python-fretboard
fb6a37e29bf6a19bee11940e9b42d58220c1306c
[ "MIT" ]
3
2018-05-24T15:08:46.000Z
2020-09-19T21:49:36.000Z
fretboard/chord.py
honorabel/python-fretboard
fb6a37e29bf6a19bee11940e9b42d58220c1306c
[ "MIT" ]
16
2018-06-12T10:34:26.000Z
2021-01-09T15:21:55.000Z
import copy import attrdict import svgwrite import yaml from .compat import StringIO from .fretboard import Fretboard from .utils import dict_merge CHORD_STYLE = ''' string: muted_font_color: silver open_font_color: steelblue ''' class Chord(object): default_style = dict_merge( yaml.safe_load(...
27.877698
116
0.543742
3,624
0.935226
0
0
0
0
0
0
242
0.062452
805364bb7db976a9ae2d3096d0339f8997426097
2,610
py
Python
cheatsheets/py/pyython.6a.keras.py
questsin/cheats
e8bfe3d206a240e29ded7b199113437f4aa42544
[ "Apache-2.0" ]
null
null
null
cheatsheets/py/pyython.6a.keras.py
questsin/cheats
e8bfe3d206a240e29ded7b199113437f4aa42544
[ "Apache-2.0" ]
3
2021-03-19T11:26:35.000Z
2021-09-08T01:43:48.000Z
cheatsheets/py/pyython.6a.keras.py
questsin/cheats
e8bfe3d206a240e29ded7b199113437f4aa42544
[ "Apache-2.0" ]
null
null
null
from keras.datasets import imdb top_words = 10000 (x_train, y_train), (x_test, y_test) = imdb.load_data(num_words=top_words) #imdb.get_word_index() word_dict = imdb.get_word_index() word_dict = { key:(value + 3) for key, value in word_dict.items() } word_dict[''] = 0 # Padding word_dict['>'] = 1 # Start word_dict['?'...
33.461538
94
0.728736
0
0
0
0
0
0
0
0
466
0.178544
8053775f8d98b076220bbf63085b0a13451f988a
2,145
py
Python
Analytics/resources/moving_sensors/export_to_kml.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/resources/moving_sensors/export_to_kml.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/resources/moving_sensors/export_to_kml.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
from http import HTTPStatus import simplekml from flask_jwt_extended import jwt_required from flask_restful import Resource from flask_restful import reqparse from models.pin_location_data import Tracker class ExportToKML(Resource): """ Export Location Data to KML """ def __init__(self) -> None: ...
36.982759
79
0.621911
1,936
0.902564
0
0
1,361
0.634499
0
0
679
0.31655
80559713ec52ee98cc95d60ae305cc0f76247d7f
4,658
py
Python
graphene_mongo/tests/conftest.py
pfrantz/graphene-mongo
f7d4f3e194ec41793e6da547934c34e11fd9ef51
[ "MIT" ]
null
null
null
graphene_mongo/tests/conftest.py
pfrantz/graphene-mongo
f7d4f3e194ec41793e6da547934c34e11fd9ef51
[ "MIT" ]
null
null
null
graphene_mongo/tests/conftest.py
pfrantz/graphene-mongo
f7d4f3e194ec41793e6da547934c34e11fd9ef51
[ "MIT" ]
null
null
null
import os import pytest from datetime import datetime from .models import ( Article, Editor, EmbeddedArticle, Player, Reporter, Child, ProfessorMetadata, ProfessorVector, ChildRegisteredBefore, ChildRegisteredAfter, ParentWithRelationship, CellTower, Publisher, ) cu...
27.4
86
0.608201
0
0
0
0
4,273
0.917347
0
0
475
0.101975
80561b7e18a127e210a8a735291399c3216ea532
471
py
Python
scratch.py
chappers/lightning-rl
3c4ec35db983f256fc1ee82c9cab8ed8725bc58b
[ "MIT" ]
null
null
null
scratch.py
chappers/lightning-rl
3c4ec35db983f256fc1ee82c9cab8ed8725bc58b
[ "MIT" ]
null
null
null
scratch.py
chappers/lightning-rl
3c4ec35db983f256fc1ee82c9cab8ed8725bc58b
[ "MIT" ]
null
null
null
import curses scr = curses.initscr() curses.halfdelay(5) # How many tenths of a second are waited, from 1 to 255 curses.noecho() # Wont print the input while True: char = scr.getch() # This blocks (waits) until the time has elapsed, # or there is input to be handled scr.clear() # Clears the screen ...
33.642857
76
0.658174
0
0
0
0
0
0
0
0
231
0.490446
805782c90511b1092705178abcf7d9ba97014167
669
py
Python
src/thenewboston/factories/network_validator.py
achalpatel/thenewboston-python
4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9
[ "MIT" ]
122
2020-07-12T23:08:49.000Z
2021-12-18T16:14:10.000Z
src/thenewboston/factories/network_validator.py
achalpatel/thenewboston-python
4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9
[ "MIT" ]
47
2020-07-15T02:18:09.000Z
2021-09-22T19:51:59.000Z
src/thenewboston/factories/network_validator.py
achalpatel/thenewboston-python
4044ce07cb5e0d1f92b4332bbd8c6ac8f33bcdb9
[ "MIT" ]
52
2020-07-13T10:49:52.000Z
2021-10-30T03:34:55.000Z
from factory import Faker from .network_node import NetworkNodeFactory from ..constants.network import ACCOUNT_FILE_HASH_LENGTH, BLOCK_IDENTIFIER_LENGTH, MAX_POINT_VALUE, MIN_POINT_VALUE from ..models.network_validator import NetworkValidator class NetworkValidatorFactory(NetworkNodeFactory): daily_confirmation_...
39.352941
115
0.807175
422
0.630792
0
0
0
0
0
0
24
0.035874
80581742c4e9dd6b7cf6b2c14279d454b5d3049b
365
py
Python
core/facade.py
vitorpvcampos/djmenu
49f9984007c94474b50122d81727a96b9c6c56c3
[ "MIT" ]
10
2020-06-02T16:23:15.000Z
2021-05-25T16:17:19.000Z
core/facade.py
vitorpvcampos/djmenu
49f9984007c94474b50122d81727a96b9c6c56c3
[ "MIT" ]
241
2019-11-18T14:57:29.000Z
2022-03-18T16:09:38.000Z
core/facade.py
vitorpvcampos/djmenu
49f9984007c94474b50122d81727a96b9c6c56c3
[ "MIT" ]
3
2020-03-12T15:08:04.000Z
2020-06-22T19:50:16.000Z
from menu.models import Menu from products.models import Product, Category def get_dashboard_data_summary(): cardapios = Menu.objects.all() produtos = Product.objects.all() categorias = Category.objects.all() return {'total_cardapios': len(cardapios), 'total_produtos': len(produtos), ...
28.076923
48
0.69863
0
0
0
0
0
0
0
0
51
0.139726
8058a85467ead4f2df3d7aeae90f5f3cb7569943
9,954
py
Python
database/crawler/crawl_drugbank.py
tttor/csipb-jamu-prj
33b08a8a12054c8a5a7240681a28c8b233b329ba
[ "MIT" ]
5
2017-03-31T03:25:09.000Z
2021-12-17T02:28:24.000Z
database/crawler/crawl_drugbank.py
tttor/csipb-jamu-prj
33b08a8a12054c8a5a7240681a28c8b233b329ba
[ "MIT" ]
165
2016-08-11T01:59:47.000Z
2017-10-10T06:32:12.000Z
database/crawler/crawl_drugbank.py
tttor/csipb-jamu-prj
33b08a8a12054c8a5a7240681a28c8b233b329ba
[ "MIT" ]
11
2015-06-15T04:25:59.000Z
2021-04-18T09:39:16.000Z
# crawl_drugbank.py import time import pickle import json import MySQLdb import httplib import urllib2 as urllib from collections import defaultdict import dbcrawler_util as util from datetime import datetime from bs4 import BeautifulSoup as bs outDir = '/home/tor/robotics/prj/csipb-jamu-prj/dataset/drugbank/drugbank...
35.55
140
0.544806
0
0
0
0
0
0
0
0
3,595
0.361161
8058ac0f97a55a2585c802f841a4705f0c870641
1,051
py
Python
k2/__init__.py
sequeender/k2
26dab3332dd8620264fec522ab3a0455f21377cc
[ "Apache-2.0" ]
null
null
null
k2/__init__.py
sequeender/k2
26dab3332dd8620264fec522ab3a0455f21377cc
[ "Apache-2.0" ]
1
2021-03-27T15:52:06.000Z
2021-03-27T15:52:06.000Z
k2/__init__.py
sequeender/k2
26dab3332dd8620264fec522ab3a0455f21377cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # flake8: noqa # -------------- Add path of _k2.so into sys.path -------------- import os as _os import sys as _sys _current_module = _sys.modules[__name__] _k2_dir = _os.path.dirname(_current_module.__file__) if not hasattr(_current_module, "__path__"): __path__ = [_k2_dir] elif _k2_dir...
27.657895
75
0.652712
0
0
0
0
0
0
0
0
552
0.525214
80596cc485da66469ca3499c45d5b0772370bbd1
3,569
py
Python
amipy/core/spiderhub.py
01ly/Amipy
254ef5cf1b34f9671ec8eecc3ee61633644b3ff8
[ "MIT" ]
24
2019-03-06T17:27:39.000Z
2021-02-27T16:56:51.000Z
amipy/core/spiderhub.py
01ly/Amipy
254ef5cf1b34f9671ec8eecc3ee61633644b3ff8
[ "MIT" ]
1
2020-03-28T12:43:23.000Z
2020-03-30T04:59:44.000Z
amipy/core/spiderhub.py
01ly/Amipy
254ef5cf1b34f9671ec8eecc3ee61633644b3ff8
[ "MIT" ]
13
2019-07-30T17:17:49.000Z
2021-07-23T08:10:36.000Z
#coding:utf-8 ''' author : linkin e-mail : yooleak@outlook.com date : 2018-11-15 ''' import amipy from amipy.BaseClass import Hub from amipy.middlewares import MiddleWareManager from amipy.util.load import load_py from amipy.log import getLogger class SpiderHub(Hub): def __new__(cls, *args, **kwargs...
35.336634
94
0.591202
3,307
0.92659
0
0
1,008
0.282432
0
0
741
0.207621
3376cbd09166d238ee459563762207df8c790db5
194
py
Python
contentcuration/contentcuration/test_settings.py
DXCanas/content-curation
06ac2cf2a49d2420cb8a418f5df2bfee53ef644b
[ "MIT" ]
null
null
null
contentcuration/contentcuration/test_settings.py
DXCanas/content-curation
06ac2cf2a49d2420cb8a418f5df2bfee53ef644b
[ "MIT" ]
null
null
null
contentcuration/contentcuration/test_settings.py
DXCanas/content-curation
06ac2cf2a49d2420cb8a418f5df2bfee53ef644b
[ "MIT" ]
null
null
null
from .not_production_settings import * # noqa DEBUG = True WEBPACK_LOADER["DEFAULT"][ # noqa "LOADER_CLASS" ] = "contentcuration.tests.webpack_loader.TestWebpackLoader" TEST_ENV = True
19.4
60
0.752577
0
0
0
0
0
0
0
0
91
0.469072
3378b86277aabe910e76e1f65855932a66f3625e
1,050
py
Python
estpop/simulation.py
defragworks/estpop
d843200cb9c7b8587db956ac0d15f0690da36c04
[ "MIT" ]
null
null
null
estpop/simulation.py
defragworks/estpop
d843200cb9c7b8587db956ac0d15f0690da36c04
[ "MIT" ]
null
null
null
estpop/simulation.py
defragworks/estpop
d843200cb9c7b8587db956ac0d15f0690da36c04
[ "MIT" ]
null
null
null
import numpy as np def ratios(pops1, pops2): totals1 = np.array(pops1[0]) + np.array(pops1[1]) totals2 = np.array(pops2[0]) + np.array(pops2[1]) change_ratio = np.delete(totals2, 0) / np.delete(totals1, -1) change_ratio = np.delete(change_ratio, -1) baby_ratio = totals2[0] / np.sum(np.array(pops1...
32.8125
72
0.635238
0
0
0
0
0
0
0
0
0
0
337be1ea8a2157dad08a162f07bb9bd2265babca
2,710
py
Python
python_exc_3/copyspecial.py
fpecek/python-exercise
065c6441f1472a4835cbd1faab09ac96c2c9457b
[ "Apache-2.0" ]
null
null
null
python_exc_3/copyspecial.py
fpecek/python-exercise
065c6441f1472a4835cbd1faab09ac96c2c9457b
[ "Apache-2.0" ]
null
null
null
python_exc_3/copyspecial.py
fpecek/python-exercise
065c6441f1472a4835cbd1faab09ac96c2c9457b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ import sys import re import os import shutil import subprocess import zipfile """ Copy Speci...
24.862385
85
0.627306
0
0
0
0
0
0
0
0
1,272
0.469373
337c43e3035cea7241ab7d941456f0a2c78bf961
2,054
py
Python
models/autoencoder_model.py
piyushkaul/information_geometry
56b2800e6e8b8d5c6a9a02a42a79ee86ab613d8c
[ "MIT" ]
null
null
null
models/autoencoder_model.py
piyushkaul/information_geometry
56b2800e6e8b8d5c6a9a02a42a79ee86ab613d8c
[ "MIT" ]
null
null
null
models/autoencoder_model.py
piyushkaul/information_geometry
56b2800e6e8b8d5c6a9a02a42a79ee86ab613d8c
[ "MIT" ]
null
null
null
import torch.nn as nn from core.fim_model import ModelFIM import torch features = [784,1000,500,250,30] class Autoencoder(ModelFIM): def __init__(self, args, init_from_rbm=False, hook_enable=True, logger=None): super(Autoencoder, self).__init__(args) self.encoder = nn.Sequential( nn.L...
40.27451
152
0.598832
1,945
0.946933
0
0
0
0
0
0
153
0.074489
337dd50916fb840e7091ed51530bebf7c3ed34d3
188
py
Python
tests/test.py
ZhenningLang/py-proj-init
f6e0da044c4e3140537ac6c4240124c071e89261
[ "MIT" ]
null
null
null
tests/test.py
ZhenningLang/py-proj-init
f6e0da044c4e3140537ac6c4240124c071e89261
[ "MIT" ]
null
null
null
tests/test.py
ZhenningLang/py-proj-init
f6e0da044c4e3140537ac6c4240124c071e89261
[ "MIT" ]
null
null
null
import os import sys CURRENT_PATH = os.path.split(os.path.realpath(__file__))[0] sys.path.append(os.path.join(CURRENT_PATH, '..')) from py_proj_init.__main__ import main # noqa main()
18.8
59
0.744681
0
0
0
0
0
0
0
0
10
0.053191
337f5a2410ae79413a6e7633d2512fb55d86d5f7
4,620
py
Python
pysimpleframe/interface/display/tables/NavigationTable.py
OriDevTeam/PySimpleFrame
105654736a0ecc2ddb00921f1bc139faeaba2c84
[ "BSD-3-Clause" ]
null
null
null
pysimpleframe/interface/display/tables/NavigationTable.py
OriDevTeam/PySimpleFrame
105654736a0ecc2ddb00921f1bc139faeaba2c84
[ "BSD-3-Clause" ]
null
null
null
pysimpleframe/interface/display/tables/NavigationTable.py
OriDevTeam/PySimpleFrame
105654736a0ecc2ddb00921f1bc139faeaba2c84
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Name: TOFILL\n Description: TOFILL """ """PySimpleFrame Author: Miguel Silva License: Check LICENSE file """ ## System imports ## ## Library imports ## import termtables from colorama import Fore, Back, Style ## Application imports ## from pysimpleframe...
26.25
82
0.670563
4,260
0.922078
0
0
0
0
0
0
1,656
0.358442
337fb62497c441679efa5ff81eacc164419c490b
458
py
Python
setup.py
Julian/giraffe
8ef37fcb0a7cc5aa24c684d17568c55ad04692dc
[ "MIT" ]
1
2017-05-02T21:28:02.000Z
2017-05-02T21:28:02.000Z
setup.py
Julian/giraffe
8ef37fcb0a7cc5aa24c684d17568c55ad04692dc
[ "MIT" ]
null
null
null
setup.py
Julian/giraffe
8ef37fcb0a7cc5aa24c684d17568c55ad04692dc
[ "MIT" ]
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup( name="giraffe", version="0.1", package_dir={"giraffe" : ""}, packages=["giraffe"], cmdclass = {'build_ext': build_ext}, ext_modules = [ Exten...
28.625
75
0.576419
0
0
0
0
0
0
0
0
109
0.237991
3382bb7349a27982996e8cd4a61dd6fd63ae8070
2,267
py
Python
library/github/tests/Issue494.py
Sangraha/Github-to-S3
e88345dc800b2b2f7ec10ee10bb864582335f1ad
[ "Apache-2.0" ]
null
null
null
library/github/tests/Issue494.py
Sangraha/Github-to-S3
e88345dc800b2b2f7ec10ee10bb864582335f1ad
[ "Apache-2.0" ]
null
null
null
library/github/tests/Issue494.py
Sangraha/Github-to-S3
e88345dc800b2b2f7ec10ee10bb864582335f1ad
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2016 Sam Corbett <sam.corbett@cloudsoftcorp.com> # # Copyright 2018 sfdye <tsfdye@gmail.com> ...
58.128205
83
0.422144
434
0.191274
0
0
0
0
0
0
1,916
0.844425
3383b63311713ea3400e46bf259718c4551057ed
921
py
Python
modules/report6.py
Seyon7/report
ac8b4778287cbc0f9c48aca61e65f41ef612d385
[ "MIT" ]
null
null
null
modules/report6.py
Seyon7/report
ac8b4778287cbc0f9c48aca61e65f41ef612d385
[ "MIT" ]
null
null
null
modules/report6.py
Seyon7/report
ac8b4778287cbc0f9c48aca61e65f41ef612d385
[ "MIT" ]
null
null
null
import click from modules.processor import build_report, print_report @click.group(invoke_without_command=True) @click.option('--files', '-f', required=True, type=str, prompt="Provide the path to data files") @click.pass_context def cli_root(ctx, files): ctx.meta['files'] = files @cli_root.command() @click.argu...
29.709677
107
0.710098
0
0
0
0
915
0.920523
0
0
308
0.309859
3384b78fcc5bcef1498e5ddfdbf1f5b8988cca4c
538
py
Python
backend/search_algorithms/search_result.py
akashmunjial/CS520
f399427b3946358950feb357fa9e94b447c826ee
[ "MIT" ]
1
2021-05-07T12:26:39.000Z
2021-05-07T12:26:39.000Z
backend/search_algorithms/search_result.py
akashmunjial/CS520
f399427b3946358950feb357fa9e94b447c826ee
[ "MIT" ]
null
null
null
backend/search_algorithms/search_result.py
akashmunjial/CS520
f399427b3946358950feb357fa9e94b447c826ee
[ "MIT" ]
null
null
null
class SearchResult(object): """Class representing a return object for a search query. Attributes: path: An array representing the path from a start node to the end node, empty if there is no path. path_len: The length of the path represented by path, 0 if path is empty. ele_gain: The cu...
41.384615
106
0.672862
537
0.998141
0
0
0
0
0
0
357
0.663569
338533386fe5a86b5d7b0d4e0de9f37f1da09eea
2,531
py
Python
tech_project/lib/python2.7/site-packages/djangocms_picture/cms_plugins.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/djangocms_picture/cms_plugins.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/djangocms_picture/cms_plugins.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.conf import settings from django.utils.translation import ugettext_lazy as _ from .forms import PictureForm from .models import Picture # enable nesting of plugins inside the picture plugin PICTURE_NE...
32.037975
80
0.566574
2,101
0.830107
0
0
0
0
0
0
785
0.310154
3385d0740834d136b94244297d0e01af822e4328
622
py
Python
Blatt1/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
Blatt1/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
Blatt1/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib # Set fontsize larger for latex plots matplotlib.rcParams.update({'font.size': 20}) # Generate data from file x, y = np.genfromtxt("bin/python_Aufgabe2.txt", unpack=True) m, n = x[-1], y[-1] # Plotting plt.figure(figsize=(12,7)) plt.grid() plt.xla...
27.043478
70
0.680064
0
0
0
0
0
0
0
0
167
0.268489
33868319c19ba1edc4a009ab8aec531548edc673
1,350
py
Python
editregions/migrations/0001_initial.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
1
2015-01-11T18:21:27.000Z
2015-01-11T18:21:27.000Z
editregions/migrations/0001_initial.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
editregions/migrations/0001_initial.py
kezabelle/django-editregions
961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import editregions.utils.regions class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
37.5
121
0.586667
1,208
0.894815
0
0
0
0
0
0
303
0.224444
3386cfd4a875f26af378b42735047ac756a1b6cf
887
py
Python
histVarPng.py
AineNicD/pands-project
55f7dbab4f106f4776be4e0248c941a4246e64ac
[ "MIT" ]
null
null
null
histVarPng.py
AineNicD/pands-project
55f7dbab4f106f4776be4e0248c941a4246e64ac
[ "MIT" ]
null
null
null
histVarPng.py
AineNicD/pands-project
55f7dbab4f106f4776be4e0248c941a4246e64ac
[ "MIT" ]
null
null
null
#Saves a historgram of each variable to png files import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #read data data = pd.read_csv("irisDataSet.csv") #names of variables names = ['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species'] # sepe...
22.74359
121
0.723788
0
0
0
0
0
0
0
0
524
0.590755
3387d6dfab24bbf352088172ca1497dc6db9c9b1
712
py
Python
build.py
LagoLunatic/GCFT
d838614804058c7b7ea5c62b37251a2795f5c791
[ "MIT" ]
38
2020-01-14T01:20:15.000Z
2022-02-15T00:03:33.000Z
build.py
LagoLunatic/GCFT
d838614804058c7b7ea5c62b37251a2795f5c791
[ "MIT" ]
7
2020-01-13T18:08:07.000Z
2022-01-13T02:20:30.000Z
build.py
LagoLunatic/GCFT
d838614804058c7b7ea5c62b37251a2795f5c791
[ "MIT" ]
1
2021-09-23T19:30:55.000Z
2021-09-23T19:30:55.000Z
from zipfile import ZipFile import os from version import VERSION base_name = "GameCube File Tools" base_name_with_version = base_name + " " + VERSION import struct if (struct.calcsize("P") * 8) == 64: base_name_with_version += "_64bit" base_zip_name = base_name_with_version else: base_name_with_version += "_...
26.37037
56
0.723315
0
0
0
0
0
0
0
0
139
0.195225
338824f1551a38d9cfd8d8f7b8e6193c7a8c97ff
2,894
py
Python
Settings/RobotData.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Settings/RobotData.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
Settings/RobotData.py
xzhang-wr/DAnTE_V2
8b433973aa5ab47ef237d8dfaca6232a6d9f526b
[ "Apache-2.0" ]
null
null
null
#!usr/bin/env python __author__ = "X Zhang" __email__ = "xzhang@westwoodrobotics.net" __copyright__ = "Copyright 2020 Westwood Robotics Corp." __date__ = "Feb 14, 2020" __version__ = "0.1.0" __status__ = "Beta" from Settings.Constants_DAnTE import * import math import numpy as np class FingerDataStructure(object): ...
37.584416
107
0.658604
2,600
0.898411
0
0
0
0
0
0
1,020
0.352453
3388f9df9b80255086f1204a7c8b7e0f3646bb15
2,012
py
Python
src/main/resources/servicenow/OpenTicket.py
xdanw/xld-servicenow-incidentlog
9ae4ccf5a110dab0294aa38cd04b2abc8615acba
[ "MIT" ]
null
null
null
src/main/resources/servicenow/OpenTicket.py
xdanw/xld-servicenow-incidentlog
9ae4ccf5a110dab0294aa38cd04b2abc8615acba
[ "MIT" ]
null
null
null
src/main/resources/servicenow/OpenTicket.py
xdanw/xld-servicenow-incidentlog
9ae4ccf5a110dab0294aa38cd04b2abc8615acba
[ "MIT" ]
null
null
null
import json import requests import requests.utils # Fixes some issues with TLS import os os.environ['REQUESTS_CA_BUNDLE'] = 'ca.pem'; # --- Debug Purposes Only, Server Config Is Hard Coded --- # # # print "Debug ... " + deployed.ResultUri; # response = requests.get('https://webhook.site/062e2ea7-5a36-4abb-a2c8-862...
30.484848
123
0.695328
0
0
0
0
0
0
0
0
1,321
0.656561
338945537366a67604118a7d7b4f22b6a5da388b
4,318
py
Python
code/joint_pca.py
craig-willis/SOMOSPIE
0e2b43bd047252d992bc533285a3469ea5d60e09
[ "BSD-3-Clause" ]
null
null
null
code/joint_pca.py
craig-willis/SOMOSPIE
0e2b43bd047252d992bc533285a3469ea5d60e09
[ "BSD-3-Clause" ]
null
null
null
code/joint_pca.py
craig-willis/SOMOSPIE
0e2b43bd047252d992bc533285a3469ea5d60e09
[ "BSD-3-Clause" ]
3
2020-02-14T14:31:50.000Z
2022-01-04T16:51:40.000Z
#!/usr/bin/env python3 # This script assumes that the non-numerical column headers # in train and predi files are identical. # Thus the sm header(s) in the train file must be numeric (day/month/year). import sys import numpy as np import pandas as pd from sklearn.decomposition import PCA #TruncatedSVD as SVD from skl...
33.472868
113
0.700787
0
0
0
0
0
0
0
0
1,697
0.393006
338af8622848bff11a1275eae70f3a73f237b0cc
439
py
Python
algoanim/stats.py
Gaming32/Python-AlgoAnim
c6df06e263f52d57ca91471830ff8fa14f1d85db
[ "MIT" ]
null
null
null
algoanim/stats.py
Gaming32/Python-AlgoAnim
c6df06e263f52d57ca91471830ff8fa14f1d85db
[ "MIT" ]
null
null
null
algoanim/stats.py
Gaming32/Python-AlgoAnim
c6df06e263f52d57ca91471830ff8fa14f1d85db
[ "MIT" ]
null
null
null
class Stats: writes: int reads: int accesses: int def __init__(self) -> None: self.reset() def reset(self) -> None: self.writes = 0 self.reads = 0 self.accesses = 0 def add_reads(self, count: int = 1) -> None: self.reads += count self.accesses +...
20.904762
49
0.542141
438
0.997722
0
0
0
0
0
0
0
0
338b6987963d5d47f633929d5f959e0cea5cc7d2
120
py
Python
models/__init__.py
MartinPernus/MaskFaceGAN
e10b7c5b2f74113118b89913089a7529d709dce1
[ "MIT" ]
11
2021-07-28T12:52:26.000Z
2022-02-28T02:53:23.000Z
models/__init__.py
MartinPernus/MaskFaceGAN
e10b7c5b2f74113118b89913089a7529d709dce1
[ "MIT" ]
2
2021-11-01T09:36:48.000Z
2021-12-13T12:32:09.000Z
models/__init__.py
MartinPernus/MaskFaceGAN
e10b7c5b2f74113118b89913089a7529d709dce1
[ "MIT" ]
1
2021-11-01T09:36:55.000Z
2021-11-01T09:36:55.000Z
from .attribute_classifier import BranchedTinyAttr from .face_parser import FaceParser from .stylegan2 import Generator
30
50
0.875
0
0
0
0
0
0
0
0
0
0
338b7280d85cf38ca0b11c2d5921f28082cfcfc1
2,787
py
Python
tests/utils_tests.py
djt5019/queries
6bae5fa9a0cb397a43a41dd6692a81b9fb389096
[ "BSD-3-Clause" ]
null
null
null
tests/utils_tests.py
djt5019/queries
6bae5fa9a0cb397a43a41dd6692a81b9fb389096
[ "BSD-3-Clause" ]
null
null
null
tests/utils_tests.py
djt5019/queries
6bae5fa9a0cb397a43a41dd6692a81b9fb389096
[ "BSD-3-Clause" ]
null
null
null
""" Tests for functionality in the utils module """ import mock try: import unittest2 as unittest except ImportError: import unittest from queries import utils class GetCurrentUserTests(unittest.TestCase): @mock.patch('pwd.getpwuid') def test_get_current_user(self, getpwuid): """get_current...
32.788235
79
0.679584
2,608
0.935773
0
0
239
0.085755
0
0
864
0.310011
338bdb61b810291631438e77fffbc7457c38058b
1,421
py
Python
Core/Stealer/FileZilla.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
375
2020-03-17T06:20:50.000Z
2022-03-29T22:27:23.000Z
Core/Stealer/FileZilla.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
44
2020-04-06T22:37:59.000Z
2020-11-15T15:53:39.000Z
Core/Stealer/FileZilla.py
HugoMskn/Telegram-RAT
53989b2509b1c844c6a33f670aece5f8dbf15305
[ "MIT" ]
173
2020-04-01T17:17:26.000Z
2022-03-24T13:28:15.000Z
# Import modules import os from xml.dom import minidom from base64 import b64decode # Fetch servers from FileZilla FileZilla = os.getenv('AppData') + '\\FileZilla\\' def StealFileZilla(): if not os.path.exists(FileZilla): return [] RecentServersPath = FileZilla + 'recentservers.xml' SiteManag...
33.046512
148
0.696692
0
0
0
0
0
0
0
0
301
0.211823
338c3eed58a47fa30a2aa03ae3da78bb3efa67b1
535
py
Python
oldcontrib/tools/gallery/urls.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/tools/gallery/urls.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
oldcontrib/tools/gallery/urls.py
servee/django-servee-oldcontrib
836447ebbd53db0b53879a35468c02e57f65105f
[ "BSD-Source-Code" ]
null
null
null
from django.conf.urls.defaults import * urlpatterns = patterns('oldcontrib.tools.gallery.views', url(r'^add_to_gallery/$', view='add_to_gallery', name='add_to_gallery'), url(r'^remove_from_gallery/$', view='remove_from_gallery', name='remove_from_gallery'), url(r'^create_gallery/$', view='create_gallery', ...
59.444444
94
0.745794
0
0
0
0
0
0
0
0
343
0.641121
338c9be69572a77ed6dc3ba19bdccb2d83d6f3ff
4,333
py
Python
server/app/mod_api/endpoints.py
meyersj/TamaleNow
59003d2122ce6af4928a8b16a0fe0ab547df66b9
[ "MIT" ]
null
null
null
server/app/mod_api/endpoints.py
meyersj/TamaleNow
59003d2122ce6af4928a8b16a0fe0ab547df66b9
[ "MIT" ]
1
2015-08-28T01:59:24.000Z
2015-08-28T01:59:24.000Z
server/app/mod_api/endpoints.py
meyersj/TamaleNow
59003d2122ce6af4928a8b16a0fe0ab547df66b9
[ "MIT" ]
null
null
null
# Copyright (C) 2015 Jeffrey Meyers # # This program is released under the "MIT License". # Please see the file COPYING in this distribution for # license terms. import datetime from flask import Blueprint, request, jsonify from webargs import Arg from webargs.flaskparser import use_args import geoalchemy2.functions...
27.775641
75
0.632587
0
0
0
0
2,995
0.691207
0
0
954
0.220171
338d8b38b7ae2a594d977bc4df33b494659dacc1
2,896
py
Python
src/spn/structure/leaves/conditional/MLE.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
src/spn/structure/leaves/conditional/MLE.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
src/spn/structure/leaves/conditional/MLE.py
kripa-experiments/SPFlow
32eada604bf5442d8aa10223581b187f7a57d540
[ "Apache-2.0" ]
null
null
null
''' Created on April 15, 2018 @author: Alejandro Molina ''' import numpy as np import warnings from scipy.stats import gamma, lognorm from sklearn.linear_model import ElasticNet from spn.structure.leaves.conditional.Conditional import Conditional_Gaussian, Conditional_Poisson, \ Conditional_Bernoulli import stats...
34.891566
113
0.667472
0
0
0
0
0
0
0
0
489
0.168854
338eac6a7e1d38c11cb457c1d528a675949db378
5,077
py
Python
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
33
2017-08-18T16:31:27.000Z
2022-03-28T09:43:50.000Z
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
319
2017-01-12T14:22:07.000Z
2022-03-23T20:53:25.000Z
src/fparser/two/tests/fortran2003/test_control_edit_descriptor_r1011.py
sturmianseq/fparser
bf3cba3f31a72671d4d4a93b6ef4f9832006219f
[ "BSD-3-Clause" ]
17
2017-10-13T07:12:28.000Z
2022-02-11T14:42:18.000Z
# Copyright (c) 2019 Science and Technology Facilities Council # All rights reserved. # Modifications made as part of the fparser project are distributed # under the following license: # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condi...
39.053846
74
0.696868
0
0
0
0
0
0
0
0
3,235
0.637187
338f8fbc58d791841bc38c5b6a72926e9899414e
6,486
py
Python
PSPNet/utils.py
keyme/deep_learning
1d08a739d889cf736e75b87cc30ec0476c3dec6d
[ "MIT" ]
12
2018-03-14T18:06:16.000Z
2020-07-21T12:06:53.000Z
PSPNet/utils.py
keyme/deep_learning
1d08a739d889cf736e75b87cc30ec0476c3dec6d
[ "MIT" ]
10
2018-02-26T21:18:15.000Z
2019-01-25T17:16:20.000Z
PSPNet/utils.py
keyme/deep_learning
1d08a739d889cf736e75b87cc30ec0476c3dec6d
[ "MIT" ]
7
2018-02-26T19:23:00.000Z
2019-03-11T01:21:54.000Z
""" This module contains utility functions used in the conversion of the downloaded data to TFrecords as well as functions used by the model/training script. Semantic segmenation evaluations methods were taken from https://github.com/martinkersner/py_img_seg_eval """ import os import fnmatch import logging import cv...
35.442623
111
0.68301
0
0
828
0.12766
0
0
0
0
1,985
0.306044
3390381ad2adf5630233e515d79350ddfc4af053
5,685
py
Python
NumPyNet/layers/activation_layer.py
Nico-Curti/NumPyNet
bc4153f58a054d4e60bb14c993bf61a058458e8b
[ "MIT" ]
28
2019-08-19T15:46:12.000Z
2022-02-17T16:32:13.000Z
NumPyNet/layers/activation_layer.py
Nico-Curti/NumPyNet
bc4153f58a054d4e60bb14c993bf61a058458e8b
[ "MIT" ]
3
2020-07-05T17:16:44.000Z
2022-03-28T10:03:36.000Z
NumPyNet/layers/activation_layer.py
Nico-Curti/NumPyNet
bc4153f58a054d4e60bb14c993bf61a058458e8b
[ "MIT" ]
7
2019-09-17T09:13:57.000Z
2022-02-15T08:50:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function from NumPyNet.activations import Activations from NumPyNet.utils import _check_activation from NumPyNet.utils import check_is_fitted import numpy as np from NumPyNet.layers.base import BaseLayer __aut...
25.840909
119
0.63131
3,730
0.656113
0
0
0
0
0
0
3,099
0.545119
339039daaf7ffa710ba3dbd6f69316cd722f2b38
843
py
Python
anymesh/tests/reactortester.py
AnyMesh/anyMesh-Python
017b7808f2fbdc765604488d325678c28be438c0
[ "MIT" ]
39
2015-04-09T12:55:25.000Z
2022-01-09T17:56:39.000Z
anymesh/tests/reactortester.py
AnyMesh/anyMesh-Python
017b7808f2fbdc765604488d325678c28be438c0
[ "MIT" ]
null
null
null
anymesh/tests/reactortester.py
AnyMesh/anyMesh-Python
017b7808f2fbdc765604488d325678c28be438c0
[ "MIT" ]
13
2015-12-17T21:56:26.000Z
2019-06-01T18:22:02.000Z
import unittest from twisted.internet import reactor, task class ReactorTestCase(unittest.TestCase): def __init__(self, *args, **kwargs): super(ReactorTestCase, self).__init__(*args, **kwargs) self.done = False def timeOutAfter(self, seconds): f = reactor.callLater(seconds, self.timedO...
28.1
62
0.619217
782
0.927639
0
0
0
0
0
0
66
0.078292
3390fdfb284aecfe0fd47351543fe7cd80e19246
1,068
py
Python
old/accurate_landing.py
domnantas/landing-system
408f352ce56d83ec63882e0aee370df5f5d683ad
[ "MIT" ]
1
2021-09-15T08:06:03.000Z
2021-09-15T08:06:03.000Z
old/accurate_landing.py
domnantas/landing-system
408f352ce56d83ec63882e0aee370df5f5d683ad
[ "MIT" ]
null
null
null
old/accurate_landing.py
domnantas/landing-system
408f352ce56d83ec63882e0aee370df5f5d683ad
[ "MIT" ]
null
null
null
from oled import TrackerOled from color_tracker import ColorTracker import cv2 from threading import Thread tracker_oled = TrackerOled() color_tracker = ColorTracker() def write_fps(): tracker_oled.writeTextCenter("FPS: {:.2f}".format(color_tracker.fps.fps())) tracker_oled.writeTextCenter("READY") while True: ...
30.514286
79
0.690075
0
0
0
0
0
0
0
0
182
0.170412
3393b84012cd8093cec6722d84c146ceb9736287
6,692
py
Python
lightconfig/lightconfig.py
daassh/LightConfig
e7d962bafae47e635b8a14abe8f6f98cb3ea16a9
[ "MIT" ]
2
2018-07-24T02:16:41.000Z
2018-08-06T06:52:15.000Z
lightconfig/lightconfig.py
daassh/LightConfig
e7d962bafae47e635b8a14abe8f6f98cb3ea16a9
[ "MIT" ]
null
null
null
lightconfig/lightconfig.py
daassh/LightConfig
e7d962bafae47e635b8a14abe8f6f98cb3ea16a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # get a easy way to edit config file """ >>> from lightconfig import LightConfig >>> cfg = LightConfig("config.ini") >>> cfg.section1.option1 = "value1" >>> print(cfg.section1.option1) value1 >>> "section1" in cfg True >>> "option1" in cfg.section1 True """ import os import codecs i...
36.568306
139
0.609534
6,206
0.927376
0
0
0
0
0
0
1,103
0.164824
3393bcf3b27570f5d59ffe21a0c2d9ebb337faa5
2,414
py
Python
assets/scikit-learn_linear_regression.py
tbienias/blog
78babd9cab487a4f8746a0918d363985ea8cd8a8
[ "MIT" ]
6
2020-12-10T00:39:38.000Z
2022-02-10T20:16:04.000Z
assets/scikit-learn_linear_regression.py
tbienias/blog
78babd9cab487a4f8746a0918d363985ea8cd8a8
[ "MIT" ]
null
null
null
assets/scikit-learn_linear_regression.py
tbienias/blog
78babd9cab487a4f8746a0918d363985ea8cd8a8
[ "MIT" ]
null
null
null
""" This script shows the usage of scikit-learns linear regression functionality. """ # %% [markdown] # # Linear Regression using Scikit-Learn # # %% [markdown] # ## Ice Cream Dataset ## # | Temperature C° | Ice Cream Sales | # |:--------------:|:---------------:| # | 15 | 34 | # | 24 ...
22.146789
77
0.511599
0
0
0
0
0
0
0
0
1,194
0.49441
339506ce1e95c27d7ca74c94295129c3b605e640
9,195
py
Python
RNN.py
AuckeBos/Speaker-count-estimation-with-single-speakers
e56f53c0a49e0a2ed446e55ec8764182f67fd236
[ "MIT" ]
null
null
null
RNN.py
AuckeBos/Speaker-count-estimation-with-single-speakers
e56f53c0a49e0a2ed446e55ec8764182f67fd236
[ "MIT" ]
null
null
null
RNN.py
AuckeBos/Speaker-count-estimation-with-single-speakers
e56f53c0a49e0a2ed446e55ec8764182f67fd236
[ "MIT" ]
null
null
null
from datetime import datetime import numpy as np import tensorflow as tf import tensorflow.keras.backend as K import tensorflow_probability as tfp from sklearn.metrics import mean_absolute_error from tensorflow.python.keras.callbacks import EarlyStopping, ReduceLROnPlateau, ModelCheckpoint from tensorflow.python.keras...
39.12766
139
0.657423
8,455
0.919421
0
0
488
0.053067
0
0
3,371
0.366572
3397953b644d0f59b96f9efd7c056d0243abb45a
380
py
Python
src/run-shoutcloud/run-shoutcloud-aws.py
kpwbo/comparing-FaaS
dfede88cc9efb1a70ef96603e851436bdc177429
[ "MIT" ]
null
null
null
src/run-shoutcloud/run-shoutcloud-aws.py
kpwbo/comparing-FaaS
dfede88cc9efb1a70ef96603e851436bdc177429
[ "MIT" ]
null
null
null
src/run-shoutcloud/run-shoutcloud-aws.py
kpwbo/comparing-FaaS
dfede88cc9efb1a70ef96603e851436bdc177429
[ "MIT" ]
null
null
null
from locust import HttpLocust, TaskSet, task class WebsiteTasks(TaskSet): @task def bcrypt(self): headers = { "Content-type": "application/json" } payload = '{"message":"hello world"}' self.client.post("/SHOUTCLOUD", payload, headers = headers) class WebsiteUser(HttpLocust): ...
27.142857
67
0.642105
323
0.85
0
0
198
0.521053
0
0
72
0.189474
3398cb226db154c17c5156d32cace490ac81678b
198
py
Python
02_sequences/0201_listcomp/020103_cartesian/__main__.py
forseti/py-workout-01
9ebb36748ec7d4751b2c81086134df320c0f58ed
[ "Apache-2.0" ]
null
null
null
02_sequences/0201_listcomp/020103_cartesian/__main__.py
forseti/py-workout-01
9ebb36748ec7d4751b2c81086134df320c0f58ed
[ "Apache-2.0" ]
null
null
null
02_sequences/0201_listcomp/020103_cartesian/__main__.py
forseti/py-workout-01
9ebb36748ec7d4751b2c81086134df320c0f58ed
[ "Apache-2.0" ]
null
null
null
colors = ['black', 'white'] sizes = ['S', 'M', 'L'] tshirts = [ (color, size) for color in colors for size in sizes ] print(f"Cartesian products from {colors} and {sizes}: {tshirts}")
18
65
0.59596
0
0
0
0
0
0
0
0
81
0.409091
3399587139e4c6f0b9e4a5bc16f77ab6a41e223b
807
py
Python
software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py
vthakur7f/OpenCellular
0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2019-01-17T21:03:51.000Z
2019-01-17T21:03:51.000Z
software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py
vthakur7f/OpenCellular
0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
software/pawsc/pawsc_blocks/PAWSC_REST_API_RICHARD_II/django/base/src/urls.py
vthakur7f/OpenCellular
0d5d7b005327e4378bd5c7fd44d7b8dc5ab796f6
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# create this file # rerouting all requests that have ‘api’ in the url to the <code>apps.core.urls from django.conf.urls import url from django.urls import path from rest_framework import routers from base.src import views from base.src.views import InitViewSet #from base.src.views import UploadFileForm #upload stuf...
26.9
79
0.759603
0
0
0
0
0
0
0
0
292
0.360049
33998c2c6881fb81dfbebc65e0a2eb0c23324496
2,456
py
Python
res/test_Rainbow_pen.py
nomissbowling/gcc_Springhead
5a03cb61e13c61143e394e86d57016d28c79b051
[ "MIT" ]
null
null
null
res/test_Rainbow_pen.py
nomissbowling/gcc_Springhead
5a03cb61e13c61143e394e86d57016d28c79b051
[ "MIT" ]
null
null
null
res/test_Rainbow_pen.py
nomissbowling/gcc_Springhead
5a03cb61e13c61143e394e86d57016d28c79b051
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- '''test_Rainbow_pen ''' import sys, os import numpy as np from matplotlib import pyplot as plt from PIL import Image FN_OUT = 'rainbow_pen_320x240.png' def mk_col(w, h, x, y): a = 255 i = int(7 * y / h) if i == 0: c, u, v = (192, 0, 0), (32, 0, 0), (0, 32, 0) # R...
29.590361
73
0.513844
0
0
0
0
0
0
0
0
390
0.158795
3399c4cddcb4d17b9d9aef1da6a020e45290b8d3
15,780
py
Python
kaggle_tutorial_mod.py
DistrictDataLabs/02-seefish
e39189b37f0e925a2c7e9c34be608cbd8243733e
[ "Apache-2.0" ]
null
null
null
kaggle_tutorial_mod.py
DistrictDataLabs/02-seefish
e39189b37f0e925a2c7e9c34be608cbd8243733e
[ "Apache-2.0" ]
null
null
null
kaggle_tutorial_mod.py
DistrictDataLabs/02-seefish
e39189b37f0e925a2c7e9c34be608cbd8243733e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jan 16 17:31:42 2015 This is adapted from the kaggle tutorial for the National Data Science Bowl at https://www.kaggle.com/c/datasciencebowl/details/tutorial Any code section lifted from the tutorial will start with # In tutorial [n]. My adaption will start with # Adapted 2/2...
36.443418
80
0.721229
0
0
0
0
0
0
0
0
10,181
0.645184
339ad92405feefc3b07ccc7b60e49d33ef95a496
14,810
py
Python
src/k3d.py
maiki/k3x
dd817dbd2baf6eb40a4e7d043f41133ab7e120dc
[ "MIT" ]
188
2020-04-23T07:58:04.000Z
2022-03-30T19:39:29.000Z
src/k3d.py
maiki/k3x
dd817dbd2baf6eb40a4e7d043f41133ab7e120dc
[ "MIT" ]
29
2020-06-08T16:09:08.000Z
2022-03-21T21:52:30.000Z
src/k3d.py
maiki/k3x
dd817dbd2baf6eb40a4e7d043f41133ab7e120dc
[ "MIT" ]
14
2020-06-24T13:56:58.000Z
2022-03-16T12:13:54.000Z
# k3d.py # # Copyright 2020 Alvaro Saurin # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distribu...
32.336245
122
0.576637
12,235
0.826131
208
0.014045
3,664
0.2474
0
0
4,648
0.313842
339c2850fe3848ca48de45f881ca59f6d9fd81f3
153
py
Python
locale/pot/api/utilities/_autosummary/pyvista-Disc-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/utilities/_autosummary/pyvista-Disc-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/utilities/_autosummary/pyvista-Disc-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a disc with 50 points in the circumferential direction. # import pyvista mesh = pyvista.Disc(c_res=50) mesh.plot(show_edges=True, line_width=5)
25.5
64
0.784314
0
0
0
0
0
0
0
0
65
0.424837
339d94c7e05fc5f397dd56538bd484357362ee32
7,364
py
Python
gamemaster.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
gamemaster.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
gamemaster.py
josephko91/checkers-ai
e5963ffebf9a64724604a620d2432c1798505c22
[ "MIT" ]
null
null
null
import os from utility import write_to_output, print_board, color_is_black, board_to_list, print_results from board import Board import time from algorithm import minimax, minimax_alpha_beta, minimax_alpha_beta_final, minimax_alpha_beta_rand from math import sqrt, floor start = time.time() # parse input file with ope...
48.768212
158
0.576589
0
0
0
0
0
0
0
0
3,071
0.417029
339e1f9b6047c43589a665151b5f5b6446ffe99f
1,407
py
Python
api/v2/views/image_version_license.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
api/v2/views/image_version_license.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
api/v2/views/image_version_license.py
xuhang57/atmosphere
f53fea2a74ee89ccc8852906799b1d9a7e9178b7
[ "BSD-3-Clause" ]
null
null
null
from django.db.models import Q import django_filters from core.models import ApplicationVersionLicense as ImageVersionLicense from api.v2.serializers.details import ImageVersionLicenseSerializer from api.v2.views.base import AuthModelViewSet class VersionFilter(django_filters.FilterSet): version_id = django_filt...
33.5
81
0.734186
1,158
0.823028
0
0
0
0
0
0
253
0.179815
339ebff6a47b6fc0d76354525972cdafcdf197e6
216
py
Python
osvolbackup/verbose.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
1
2019-02-27T12:59:49.000Z
2019-02-27T12:59:49.000Z
osvolbackup/verbose.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
4
2019-03-07T09:31:51.000Z
2019-03-12T15:19:40.000Z
osvolbackup/verbose.py
CCSGroupInternational/osvolbackup
d0d93812a729acdb6c961c6bdd1cc2cb5c9c87f5
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from os import getenv from datetime import datetime def vprint(*a, **k): if not getenv('VERBOSE'): return print(datetime.now(), ' ', end='') print(*a, **k)
19.636364
38
0.643519
0
0
0
0
0
0
0
0
14
0.064815
339ef85148fe55aaa28cf0f86e5f3b80b5277dee
1,964
py
Python
pypybox2d/joints/__init__.py
the-mba/Progra-Super-Mario
90dc2a4ba815732b6e92652c7f8bb4a345d25e91
[ "MIT" ]
null
null
null
pypybox2d/joints/__init__.py
the-mba/Progra-Super-Mario
90dc2a4ba815732b6e92652c7f8bb4a345d25e91
[ "MIT" ]
null
null
null
pypybox2d/joints/__init__.py
the-mba/Progra-Super-Mario
90dc2a4ba815732b6e92652c7f8bb4a345d25e91
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # C++ version Copyright (c) 2006-2011 Erin Catto http://www.box2d.org # Python port by Ken Lauer / http://pybox2d.googlecode.com # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any ...
42.695652
99
0.735234
0
0
0
0
0
0
0
0
1,312
0.668024
339fda81b9c470880acae060465b85a254b0eac1
3,939
py
Python
LDPC-library/encode.py
sz3/ProtographLDPC
0fe057a58d94a2c1f8599c6718e24a027113818c
[ "MIT" ]
22
2020-08-27T00:24:30.000Z
2021-12-31T07:11:21.000Z
LDPC-library/encode.py
sz3/ProtographLDPC
0fe057a58d94a2c1f8599c6718e24a027113818c
[ "MIT" ]
1
2021-06-30T16:50:38.000Z
2021-06-30T16:50:38.000Z
LDPC-library/encode.py
sz3/ProtographLDPC
0fe057a58d94a2c1f8599c6718e24a027113818c
[ "MIT" ]
6
2020-11-04T11:11:00.000Z
2021-06-30T16:48:39.000Z
import subprocess import os import argparse import tempfile def get_parser(): # argument parser parser = argparse.ArgumentParser(description='Input') parser.add_argument('--pchk-file', '-p', action='store', dest='pchk_file', type=str,...
41.904255
101
0.551409
0
0
0
0
0
0
0
0
1,512
0.383854
33a406fd3d5662cdfecad65c9a454e308ebff473
274
py
Python
survivethevoid/utils/math_func.py
LMikeH/SurviveTheVoid
e517870d1dca388a54f8f523879c6c8583101a02
[ "bzip2-1.0.6" ]
null
null
null
survivethevoid/utils/math_func.py
LMikeH/SurviveTheVoid
e517870d1dca388a54f8f523879c6c8583101a02
[ "bzip2-1.0.6" ]
null
null
null
survivethevoid/utils/math_func.py
LMikeH/SurviveTheVoid
e517870d1dca388a54f8f523879c6c8583101a02
[ "bzip2-1.0.6" ]
null
null
null
import numpy as np def R(angle): rad_angle = (angle)*np.pi/180 return np.array([[np.cos(rad_angle), -np.sin(rad_angle)], [np.sin(rad_angle), np.cos(rad_angle)]]) if __name__ == "__main__": a = np.array([0, 1]) print(np.dot(R(180), a))
24.909091
61
0.572993
0
0
0
0
0
0
0
0
10
0.036496
33a43569f2dc889b1051e353b42c5978e08a2be2
35
py
Python
app/__init__.py
lwalter/flask-angular-starter
31d5468777d429701c8ae0e790458a980fee6837
[ "MIT" ]
13
2016-03-24T03:12:05.000Z
2021-03-15T14:58:36.000Z
app/__init__.py
lwalter/flask-angular-starter
31d5468777d429701c8ae0e790458a980fee6837
[ "MIT" ]
7
2016-03-24T03:20:05.000Z
2017-07-19T03:06:13.000Z
app/__init__.py
lwalter/flask-angular-starter
31d5468777d429701c8ae0e790458a980fee6837
[ "MIT" ]
4
2017-06-22T05:52:08.000Z
2022-02-25T15:25:57.000Z
from app.factory import create_app
17.5
34
0.857143
0
0
0
0
0
0
0
0
0
0
33a4eb8004a4d73add7bc089b176207822d20abb
39,949
py
Python
darmtbl3.py
TaintTrap/darm
f42b509adabbb3a0fbb87937db33d14c2d213bee
[ "BSD-3-Clause" ]
104
2015-01-01T06:14:40.000Z
2021-12-11T08:05:03.000Z
darmtbl3.py
z4ziggy/darm
f42b509adabbb3a0fbb87937db33d14c2d213bee
[ "BSD-3-Clause" ]
5
2015-02-09T10:16:50.000Z
2016-04-07T12:58:10.000Z
darmtbl3.py
z4ziggy/darm
f42b509adabbb3a0fbb87937db33d14c2d213bee
[ "BSD-3-Clause" ]
18
2015-02-09T02:36:19.000Z
2019-07-19T15:29:20.000Z
from darmtbl2 import Bitsize, Rn, Rm, Rt, Rt2 from darmtbl2 import i, imm3, imm4, imm6, imm8, imm4H, imm4L from darmtbl2 import P, W, D, N, M, cond Vd = Bitsize('Vd', 4, 'Vector Destination Register') Vn = Bitsize('Vn', 4, 'Vector Source Register') Vm = Bitsize('Vm', 4, 'Second Vector Source Register')...
101.136709
132
0.395329
0
0
0
0
0
0
0
0
10,708
0.268042
33a5d6a0778311e0740b6ce7a927d2f68fa7baf5
380
py
Python
lang/tags/data_null.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
5
2020-02-16T13:39:10.000Z
2020-02-19T19:29:56.000Z
lang/tags/data_null.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
null
null
null
lang/tags/data_null.py
ghouston/knausj_talon
098bb3e89261b19f4b2eda0ca0696f398c50e931
[ "MIT" ]
2
2020-02-19T15:10:44.000Z
2020-02-19T16:55:38.000Z
from talon import Context, Module ctx = Context() mod = Module() mod.tag("code_data_null", desc="Tag for enabling commands relating to null") @mod.action_class class Actions: def code_insert_null(): """Inserts null""" def code_insert_is_null(): """Inserts check for null""" def code_ins...
20
76
0.665789
215
0.565789
0
0
233
0.613158
0
0
138
0.363158
33a71005f3058f76ab1ae55200dbe62d59fe1b2f
17,810
py
Python
epidemiology_model.py
sei-international/epidemic-macro-model
9bb4089c1ed031376304d3024b5593525132d0a7
[ "Apache-2.0" ]
4
2021-12-17T18:54:49.000Z
2022-01-03T20:52:17.000Z
epidemiology_model.py
sei-international/epidemic-macro-model
9bb4089c1ed031376304d3024b5593525132d0a7
[ "Apache-2.0" ]
null
null
null
epidemiology_model.py
sei-international/epidemic-macro-model
9bb4089c1ed031376304d3024b5593525132d0a7
[ "Apache-2.0" ]
null
null
null
from numpy import array as np_array, zeros as np_zeros, sum as np_sum, empty as np_empty, \ amax as np_amax, interp as np_interp, ones as np_ones, tile as np_tile, isnan as np_isnan import yaml from seir_model import SEIR_matrix from common import Window, get_datetime, timesteps_between_dates, get_datetime_arra...
56.719745
178
0.607805
0
0
0
0
0
0
0
0
2,661
0.14941
33a772f892d4ed50cf326d5af75052977fcc4c7b
695
py
Python
body/tests/test_medicine.py
dylanjboyd/bodytastic
ee2299ba523c8c6b627028d70ab32b6da97cb2ea
[ "MIT" ]
null
null
null
body/tests/test_medicine.py
dylanjboyd/bodytastic
ee2299ba523c8c6b627028d70ab32b6da97cb2ea
[ "MIT" ]
81
2022-03-04T23:46:02.000Z
2022-03-19T13:06:46.000Z
body/tests/test_medicine.py
dylanjboyd/bodytastic
ee2299ba523c8c6b627028d70ab32b6da97cb2ea
[ "MIT" ]
null
null
null
from body.tests.login_test_case import LoginTestCase from body.tests.model_helpers import create_ledger_entry, create_medicine from freezegun import freeze_time from django.utils.timezone import make_aware, datetime @freeze_time(make_aware(datetime(2022, 3, 1))) class MedicineTests(LoginTestCase): def test_ledger...
38.611111
95
0.755396
429
0.617266
0
0
476
0.684892
0
0
111
0.159712
33a790e4cc50cc09ac9352f7aad0bd45b97fcd11
84
py
Python
src/apps/users/forms/__init__.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
27
2020-05-03T11:01:27.000Z
2022-03-17T05:33:10.000Z
src/apps/users/forms/__init__.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
54
2020-05-09T01:18:41.000Z
2022-01-22T10:31:15.000Z
src/apps/users/forms/__init__.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
9
2020-09-29T11:31:32.000Z
2022-03-09T01:37:50.000Z
from .user_change import UserChangeForm from .user_creation import UserCreationForm
28
43
0.880952
0
0
0
0
0
0
0
0
0
0
33a9396a5c748b360eebc18de6c808b8faa43521
20,818
py
Python
bqskit/utils/test/types.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
13
2021-05-26T21:32:26.000Z
2022-03-15T17:48:10.000Z
bqskit/utils/test/types.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
20
2021-05-26T20:17:15.000Z
2022-02-27T20:04:10.000Z
bqskit/utils/test/types.py
BQSKit/bqskit
8471f28299a7fb49a2d9d82b24e49c331c9dec22
[ "BSD-3-Clause-LBNL" ]
2
2021-10-05T16:00:47.000Z
2021-10-08T01:30:06.000Z
"""This module contains functions to generate strategies from annotations.""" from __future__ import annotations import collections import inspect import sys from itertools import chain from itertools import combinations from typing import Any from typing import Callable from typing import Iterable from typing import ...
35.893103
80
0.619944
0
0
0
0
1,232
0.05918
0
0
2,955
0.141944
33a977da8d2c47f04abb08e18a45125c2af8f923
3,600
py
Python
reframechecks/mpip/mpip.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
3
2020-02-18T12:48:08.000Z
2021-02-06T01:43:30.000Z
reframechecks/mpip/mpip.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
5
2020-03-28T11:59:57.000Z
2020-08-28T08:46:02.000Z
reframechecks/mpip/mpip.py
reframe-hpc/hpctools
ad3efe478334fabb7f64aa3d1566c88e4c488aaf
[ "BSD-3-Clause" ]
3
2020-03-17T16:10:56.000Z
2020-07-10T06:24:34.000Z
# Copyright 2019-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # HPCTools Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import os import sys import reframe as rfm import reframe.utility.sanity as sn sys.path.append(os.path.abspath(os.path.join(o...
34.951456
79
0.570833
3,056
0.848889
0
0
3,073
0.853611
0
0
1,517
0.421389
33a9e48d845125b9644014be228bb6ef28ca1951
4,743
py
Python
Forward_Warp/python/forward_warp_python.py
hologerry/Forward-Warp
82a32a372383b3c69f9666cb5b8189dbfb05d328
[ "MIT" ]
81
2019-07-04T20:51:34.000Z
2022-03-26T15:58:42.000Z
Forward_Warp/python/forward_warp_python.py
wbhu/Forward-Warp
90e7e32f2c0e666ffc029b7b274b30b3a45cd3ce
[ "MIT" ]
9
2020-05-04T04:59:16.000Z
2021-12-21T19:06:31.000Z
Forward_Warp/python/forward_warp_python.py
wbhu/Forward-Warp
90e7e32f2c0e666ffc029b7b274b30b3a45cd3ce
[ "MIT" ]
9
2019-09-04T02:09:12.000Z
2021-11-27T09:31:49.000Z
import torch from torch.nn import Module, Parameter from torch.autograd import Function class Forward_Warp_Python: @staticmethod def forward(im0, flow, interpolation_mode): im1 = torch.zeros_like(im0) B = im0.shape[0] H = im0.shape[2] W = im0.shape[3] if interpolation_m...
46.5
81
0.356525
4,652
0.980814
0
0
4,615
0.973013
0
0
0
0
33aa02868cbd8dfb15a12fdd973d56d5d7e99fb1
10,890
py
Python
slingen/src/algogen/Algorithm.py
danielesgit/slingen
e7cfee7f6f2347b57eb61a077746c9309a85411c
[ "BSD-3-Clause" ]
23
2018-03-13T07:52:26.000Z
2022-03-24T02:32:00.000Z
SRC/Algorithm.py
dfabregat/Cl1ck
d9ae627f0616dc23b1f98ff41ce94f43926bb2b0
[ "BSD-3-Clause" ]
2
2018-09-28T18:29:25.000Z
2019-02-20T13:22:19.000Z
SRC/Algorithm.py
dfabregat/Cl1ck
d9ae627f0616dc23b1f98ff41ce94f43926bb2b0
[ "BSD-3-Clause" ]
3
2018-06-13T13:51:57.000Z
2020-01-11T14:47:02.000Z
import itertools import Partitioning class Algorithm( object ): def __init__( self, linv, variant, init, repart, contwith, before, after, updates ): self.linv = linv self.variant = variant if init: #assert( len(init) == 1 ) self.init = init[0] else: ...
39.314079
118
0.485399
9,551
0.877043
507
0.046556
0
0
0
0
1,571
0.144261
33aa970f90cce46880eed9d5a6bf196cf7546cbc
939
py
Python
NbSe2/PBE-0.01/5-epw/epc_plot.py
sinansevim/EBT617E
0907846e09173b419dfb6c3a5eae20c3ef8548bb
[ "MIT" ]
1
2021-03-12T13:16:39.000Z
2021-03-12T13:16:39.000Z
NbSe2/PBE-0.01/5-epw/epc_plot.py
sinansevim/EBT617E
0907846e09173b419dfb6c3a5eae20c3ef8548bb
[ "MIT" ]
null
null
null
NbSe2/PBE-0.01/5-epw/epc_plot.py
sinansevim/EBT617E
0907846e09173b419dfb6c3a5eae20c3ef8548bb
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt import matplotlib.gridspec as gs import sys data = np.loadtxt('NbSe2.freq.gp') symmetryfile = 'plotband.out' lbd = np.loadtxt("lambda.dat") lbd_val = np.where(lbd<1 , lbd, 1) def Symmetries(fstring): f = open(fstring, 'r') x = np....
28.454545
74
0.668797
0
0
0
0
0
0
0
0
117
0.124601
33ac31110619eeecf53e6d049d77405ba061c204
341
py
Python
CA117/Lab_5/numcomps_32.py
PRITI1999/OneLineWonders
91a7368e0796e5a3b5839c9165f9fbe5460879f5
[ "MIT" ]
6
2016-02-04T00:15:20.000Z
2019-10-13T13:53:16.000Z
CA117/Lab_5/numcomps_32.py
PRITI1999/OneLineWonders
91a7368e0796e5a3b5839c9165f9fbe5460879f5
[ "MIT" ]
2
2016-03-14T04:01:36.000Z
2019-10-16T12:45:34.000Z
CA117/Lab_5/numcomps_32.py
PRITI1999/OneLineWonders
91a7368e0796e5a3b5839c9165f9fbe5460879f5
[ "MIT" ]
10
2016-02-09T14:38:32.000Z
2021-05-25T08:16:26.000Z
print(("Multiples of {}: {}\n"*6).format("3",[n for n in range(1,31)if not n%3],"3 squared",[n**2for n in range(1,31)if not n%3],"4 doubled",[n*2for n in range(1,31)if not n%4],"3 or 4",[n for n in range(1,31)if not(n%4and n%3)],"3 and 4",[n for n in range(1,31)if not(n%4or n%3)],"3 replaced",[n%3and n or'X'for n in ra...
170.5
340
0.609971
0
0
0
0
0
0
0
0
80
0.234604
33ac8b55bf9e88be389ec358327a0af6df0dcc61
5,594
py
Python
pydeconz/group.py
Lokaltog/deconz
88c726c0ed4c320af3caa82f2c2fb60937ea186a
[ "MIT" ]
null
null
null
pydeconz/group.py
Lokaltog/deconz
88c726c0ed4c320af3caa82f2c2fb60937ea186a
[ "MIT" ]
null
null
null
pydeconz/group.py
Lokaltog/deconz
88c726c0ed4c320af3caa82f2c2fb60937ea186a
[ "MIT" ]
null
null
null
"""Python library to connect deCONZ and Home Assistant to work together.""" import logging from .light import DeconzLightBase _LOGGER = logging.getLogger(__name__) class DeconzGroup(DeconzLightBase): """deCONZ light group representation. Dresden Elektroniks documentation of light groups in deCONZ http...
29.442105
78
0.604934
5,421
0.969074
0
0
1,845
0.329818
629
0.112442
2,183
0.39024
33ad3f8d85b0ae17f8d1f68deb1a77ffc336a163
155
py
Python
nocolon_main.py
paradoxxxzero/nocolon
80bffe09e200b148cd836fd8289c59f2cd33719b
[ "BSD-3-Clause" ]
73
2015-05-08T09:22:03.000Z
2021-05-20T15:17:18.000Z
nocolon_main.py
paradoxxxzero/nocolon
80bffe09e200b148cd836fd8289c59f2cd33719b
[ "BSD-3-Clause" ]
3
2017-05-12T20:57:10.000Z
2017-05-15T10:10:30.000Z
nocolon_main.py
paradoxxxzero/nocolon
80bffe09e200b148cd836fd8289c59f2cd33719b
[ "BSD-3-Clause" ]
5
2016-10-21T09:29:39.000Z
2017-11-15T19:16:29.000Z
# Import the encoding import nocolon # Now you can import files with the nocolon encoding: from nocolon_test import nocolon_function nocolon_function(4)
19.375
53
0.819355
0
0
0
0
0
0
0
0
74
0.477419
33adb93bec718e8a93becbae4939a6d055886757
1,033
py
Python
yarlp/tests/agent_tests/test_ddqn.py
btaba/yarlp
e6bc70afe32f8617f56180d60d6a100c83868119
[ "MIT" ]
12
2018-02-26T05:00:24.000Z
2020-01-07T03:04:47.000Z
yarlp/tests/agent_tests/test_ddqn.py
btaba/yarlp
e6bc70afe32f8617f56180d60d6a100c83868119
[ "MIT" ]
6
2018-10-23T17:43:57.000Z
2022-02-10T00:00:24.000Z
yarlp/tests/agent_tests/test_ddqn.py
btaba/yarlp
e6bc70afe32f8617f56180d60d6a100c83868119
[ "MIT" ]
1
2018-08-20T23:47:41.000Z
2018-08-20T23:47:41.000Z
""" Regression tests for the REINFORCE agent on OpenAI gym environments """ import pytest import numpy as np import shutil from yarlp.utils.env_utils import NormalizedGymEnv from yarlp.agent.ddqn_agent import DDQNAgent env = NormalizedGymEnv( 'PongNoFrameskip-v4', is_atari=True ) def test_ddqn(): a...
21.978723
71
0.648596
0
0
0
0
0
0
0
0
135
0.130687
33aee20a7b69a67ee353d635818abf32c9a23996
555
py
Python
arbeitsplan/migrations/0009_mitglied_arbeitslast.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
3
2015-02-20T14:53:17.000Z
2020-12-01T19:29:14.000Z
arbeitsplan/migrations/0009_mitglied_arbeitslast.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
67
2015-01-06T19:48:59.000Z
2022-03-20T16:56:22.000Z
arbeitsplan/migrations/0009_mitglied_arbeitslast.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
2
2015-12-07T09:21:10.000Z
2015-12-30T18:36:53.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('arbeitsplan', '0008_auto_20141208_1906'), ] operations = [ migrations.AddField( model_name='mitglied', ...
26.428571
159
0.646847
446
0.803604
0
0
0
0
0
0
166
0.299099
33aefac32f09c23801a6116bba41fc7dfac6eba4
789
py
Python
fedireads/activitypub/__init__.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/activitypub/__init__.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
fedireads/activitypub/__init__.py
johnbartholomew/bookwyrm
a6593eced7db88f0a68bd19a0e6ba441bf1053c3
[ "CC0-1.0" ]
null
null
null
''' bring activitypub functions into the namespace ''' from .actor import get_actor from .book import get_book, get_author, get_shelf from .create import get_create, get_update from .follow import get_following, get_followers from .follow import get_follow_request, get_unfollow, get_accept, get_reject from .outbox impo...
46.411765
76
0.844106
0
0
0
0
0
0
0
0
54
0.068441
33af08b32aa16f66ff5e4dd78fe22ef1749cfda7
645
py
Python
generated-libraries/python/netapp/ems/eventseverity.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/ems/eventseverity.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/ems/eventseverity.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class Eventseverity(basestring): """ EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFORMATIONAL|DEBUG Possible values: <ul> <li> "emergency" - System is unusable, <li> "alert" - Action must be taken immediately, <li> "critical" - Critical condition, <li> "error" ...
30.714286
69
0.587597
639
0.990698
0
0
70
0.108527
0
0
537
0.832558
33b07a2a4560968ed7e8bf918e25e34e366baaa5
8,110
py
Python
example.py
DesmondTMB/i3pyblocks
4732340ba45bf6b6b7b5bd3ff3c32af3796e7fa3
[ "MIT" ]
15
2020-09-19T20:18:34.000Z
2021-06-12T15:16:02.000Z
example.py
DesmondTMB/i3pyblocks
4732340ba45bf6b6b7b5bd3ff3c32af3796e7fa3
[ "MIT" ]
141
2019-08-13T23:38:47.000Z
2021-11-10T16:20:34.000Z
example.py
DesmondTMB/i3pyblocks
4732340ba45bf6b6b7b5bd3ff3c32af3796e7fa3
[ "MIT" ]
2
2021-05-24T17:04:35.000Z
2021-11-09T00:43:13.000Z
#!/usr/bin/env python3 import asyncio import logging import signal from pathlib import Path import psutil from i3pyblocks import Runner, types, utils from i3pyblocks.blocks import ( # shell, datetime, dbus, http, i3ipc, inotify, ps, pulse, x11, ) # Configure logging, so we can have ...
34.219409
87
0.606165
0
0
0
0
0
0
7,330
0.89576
4,642
0.567274
33b1e4daad97a94cb573d3a29eb181822c6e57a2
9,131
py
Python
context_nmt/pipelines/context_indicators_generator.py
jesa7955/context-translation
3cb1f4fdcf5a6829eea02d6008c4c4d7ba5ad993
[ "MIT" ]
2
2020-01-22T05:18:19.000Z
2021-11-14T17:18:46.000Z
context_nmt/pipelines/context_indicators_generator.py
jesa7955/context-translation
3cb1f4fdcf5a6829eea02d6008c4c4d7ba5ad993
[ "MIT" ]
1
2020-03-31T11:03:22.000Z
2020-03-31T11:03:22.000Z
context_nmt/pipelines/context_indicators_generator.py
jesa7955/context-translation
3cb1f4fdcf5a6829eea02d6008c4c4d7ba5ad993
[ "MIT" ]
null
null
null
import collections import logging import json import os import luigi import gokart import tqdm import torch import sentencepiece as spm import sacrebleu import MeCab from fairseq.models.transformer import TransformerModel from fairseq.data import LanguagePairDataset from context_nmt.pipelines.conversation_dataset_mer...
42.868545
88
0.54419
8,702
0.953017
0
0
0
0
0
0
507
0.055525
33b33555cc6216929a203498dda0d15a42f493e0
855
py
Python
log_task_id.py
Sendhub/flashk_util
fe42c117be6a9e9655e38cd48a3104b6144873ba
[ "BSD-3-Clause" ]
null
null
null
log_task_id.py
Sendhub/flashk_util
fe42c117be6a9e9655e38cd48a3104b6144873ba
[ "BSD-3-Clause" ]
1
2016-01-20T22:13:53.000Z
2016-01-20T22:13:53.000Z
log_task_id.py
Sendhub/flashk_util
fe42c117be6a9e9655e38cd48a3104b6144873ba
[ "BSD-3-Clause" ]
null
null
null
import logging from celery._state import get_current_task class TaskIDFilter(logging.Filter): """ Adds celery contextual information to a log record, if appropriate. https://docs.python.org/2/howto/logging-cookbook.html #using-filters-to-impart-contextual-information """ def filter(self, rec...
27.580645
74
0.612865
794
0.928655
0
0
0
0
0
0
387
0.452632
33b43ed36a9638956d846bca8d46fb665ecc2a68
2,295
py
Python
e/mail-relay/web/apps/localized_mail/models.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web/apps/localized_mail/models.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web/apps/localized_mail/models.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
#coding=utf-8 import os from django.db import models from django.contrib.auth.models import User from django.conf import settings from apps.core.models import Customer CHECK_RESULT = ( ('', '--'), ('high_risk', u'高危邮件'), ('sender_blacklist', u'发件黑'), ('keyword_blacklist', u'内容黑'), ('subject_blackl...
38.898305
119
0.67756
1,612
0.644542
0
0
0
0
0
0
671
0.268293
33b740adf83b98dff3bbdd2ad1fbbad7dd39228a
2,691
py
Python
src/softfab/pages/InspectDone.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
20
2019-02-07T17:03:04.000Z
2020-03-16T20:45:19.000Z
src/softfab/pages/InspectDone.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
36
2019-02-11T08:57:16.000Z
2020-09-29T05:32:08.000Z
src/softfab/pages/InspectDone.py
boxingbeetle/softfab
0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD-3-Clause from typing import ClassVar, Mapping, cast from softfab.ControlPage import ControlPage from softfab.Page import InvalidRequest, PageProcessor from softfab.pageargs import DictArg, EnumArg, StrArg from softfab.pagelinks import TaskIdArgs from softfab.request import Request from ...
36.364865
79
0.623932
2,097
0.779264
0
0
0
0
1,361
0.50576
540
0.200669
33b8da2d72ef09ad6eef64de8e3cb74d42aa9d37
414
py
Python
src/uwds3_core/estimation/dense_optical_flow_estimator.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
1
2021-06-08T02:55:15.000Z
2021-06-08T02:55:15.000Z
src/uwds3_core/estimation/dense_optical_flow_estimator.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
null
null
null
src/uwds3_core/estimation/dense_optical_flow_estimator.py
underworlds-robot/uwds3_core
3aec39f83ec5ba2c0b70485aa23bf6eeaedeeda7
[ "MIT" ]
null
null
null
import cv2 class DenseOpticalFlowEstimator(object): def __init__(self): self.previous_frame = None def estimate(self, frame): if first_frame is None: return None gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) flow = cv2.calcOpticalFlowFarneback(self.previous_frame,...
27.6
102
0.644928
400
0.966184
0
0
0
0
0
0
0
0
33bb74b917e15d0d3580148ef539ee108a577454
2,071
py
Python
2020/day-22/day-22.py
mrMetalWood/advent-of-code
b850aa50474c622e23e924c5da53775b4cae05b2
[ "MIT" ]
1
2018-12-02T12:38:31.000Z
2018-12-02T12:38:31.000Z
2020/day-22/day-22.py
mrMetalWood/advent-of-code
b850aa50474c622e23e924c5da53775b4cae05b2
[ "MIT" ]
7
2020-07-16T14:03:31.000Z
2020-12-02T10:46:49.000Z
2020/day-22/day-22.py
mrMetalWood/advent-of-code
b850aa50474c622e23e924c5da53775b4cae05b2
[ "MIT" ]
null
null
null
import os from copy import deepcopy with open(os.path.join(os.path.dirname(__file__), "input.txt"), "r") as file: lines = [l.strip() for l in file.readlines()] p1 = list(reversed([int(i) for i in lines[1:26]])) p2 = list(reversed([int(i) for i in lines[28:]])) def part1(player1, player2): while playe...
27.25
85
0.522453
0
0
0
0
0
0
0
0
154
0.07436
33bd39e35c4992a15a6d443f02ff02fed9014dd8
2,075
py
Python
Exercise05/5-30.py
ywyz/IntroducingToProgrammingUsingPython
614d59eacb7e37aece871a00f7d1518f7de88708
[ "Apache-2.0" ]
null
null
null
Exercise05/5-30.py
ywyz/IntroducingToProgrammingUsingPython
614d59eacb7e37aece871a00f7d1518f7de88708
[ "Apache-2.0" ]
null
null
null
Exercise05/5-30.py
ywyz/IntroducingToProgrammingUsingPython
614d59eacb7e37aece871a00f7d1518f7de88708
[ "Apache-2.0" ]
null
null
null
''' @Date: 2019-11-02 09:19:19 @Author: ywyz @LastModifiedBy: ywyz @Github: https://github.com/ywyz @LastEditors: ywyz @LastEditTime: 2019-11-02 10:13:44 ''' year = eval(input("Enter the year: ")) day = eval(input("Enter the day of the week: ")) for months in range(1, 13): if months == 1: month = "January"...
26.948052
68
0.52
0
0
0
0
0
0
0
0
443
0.213494
33be9763c347a4744c14215a01a14f94308620b5
587
py
Python
insights_messaging/downloaders/s3.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
6
2019-12-12T14:19:30.000Z
2020-04-08T16:20:04.000Z
insights_messaging/downloaders/s3.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
14
2020-01-27T17:04:39.000Z
2021-03-16T15:18:30.000Z
insights_messaging/downloaders/s3.py
dpensi/insights-core-messaging
a964cecdf5cbb57407dae9e9208a31fc5e9318e4
[ "Apache-2.0" ]
13
2019-12-16T09:32:38.000Z
2021-05-05T12:39:38.000Z
import shutil from contextlib import contextmanager from tempfile import NamedTemporaryFile from s3fs import S3FileSystem class S3Downloader: def __init__(self, tmp_dir=None, chunk_size=16 * 1024, **kwargs): self.tmp_dir = tmp_dir self.chunk_size = chunk_size self.fs = S3FileSystem(**kwa...
26.681818
69
0.647359
460
0.783646
236
0.402044
256
0.436116
0
0
0
0
33bea67e17e2e48816f3acbadb4afec665fa95a1
142
py
Python
Code/hypers.py
taoqi98/KIM
dc897026d5a639a9a554d06ac036b121fcbcf6a0
[ "MIT" ]
7
2021-08-13T12:43:17.000Z
2022-03-24T11:25:52.000Z
Code/hypers.py
JulySinceAndrew/KIM-SIGIR-2021
87b1c21f79a5389cc4a0d122e7ded5f63a63da28
[ "MIT" ]
5
2021-07-20T07:27:05.000Z
2022-02-25T07:28:39.000Z
Code/hypers.py
JulySinceAndrew/KIM-SIGIR-2021
87b1c21f79a5389cc4a0d122e7ded5f63a63da28
[ "MIT" ]
null
null
null
MAX_SENTENCE = 30 MAX_ALL = 50 MAX_SENT_LENGTH=MAX_SENTENCE MAX_SENTS=MAX_ALL max_entity_num = 10 num = 100 num1 = 200 num2 = 100 npratio=4
11.833333
28
0.774648
0
0
0
0
0
0
0
0
0
0
33bf14c77a779be90d64a6d8759da4a08a0088fa
1,022
py
Python
ai-control/mirror.py
futurice/maximum-aittack
6b39e7987f6c142cc80f186043c4348f01743850
[ "MIT" ]
null
null
null
ai-control/mirror.py
futurice/maximum-aittack
6b39e7987f6c142cc80f186043c4348f01743850
[ "MIT" ]
null
null
null
ai-control/mirror.py
futurice/maximum-aittack
6b39e7987f6c142cc80f186043c4348f01743850
[ "MIT" ]
null
null
null
import os, json from PIL import Image import numpy as np from skimage import io basePath = './log/log_joku/' json_files = [pos_json for pos_json in os.listdir(basePath) if pos_json.endswith('.json')] for file in json_files: if file != 'meta.json': #print(file) with open(basePath + file) as f: ...
37.851852
90
0.572407
0
0
0
0
0
0
0
0
187
0.182975
33c1247fa87d16457ea55bc1e3f8ebb9f2eb5bf2
21
py
Python
portfolios/trader/__init__.py
ahwkuepper/portfolio
4ab6eebbb36c6064d58df62dbe931ead3b297be4
[ "BSD-3-Clause" ]
4
2020-08-18T09:52:37.000Z
2021-03-26T19:59:03.000Z
portfolios/trader/__init__.py
ahwkuepper/portfolio
4ab6eebbb36c6064d58df62dbe931ead3b297be4
[ "BSD-3-Clause" ]
4
2019-07-06T17:48:46.000Z
2020-05-11T01:40:18.000Z
portfolios/trader/__init__.py
ahwkuepper/portfolio
4ab6eebbb36c6064d58df62dbe931ead3b297be4
[ "BSD-3-Clause" ]
2
2019-02-28T08:02:47.000Z
2019-07-09T04:23:23.000Z
__all__ = ["orders"]
10.5
20
0.619048
0
0
0
0
0
0
0
0
8
0.380952
33c380aba8f0a3a85e233adf8c61cab373192d50
5,474
py
Python
gym_holdem/holdem/player.py
pokeraigym/PokerAI
8f768704aaacf40c39af724c4d3cc1c68db58b00
[ "MIT" ]
null
null
null
gym_holdem/holdem/player.py
pokeraigym/PokerAI
8f768704aaacf40c39af724c4d3cc1c68db58b00
[ "MIT" ]
null
null
null
gym_holdem/holdem/player.py
pokeraigym/PokerAI
8f768704aaacf40c39af724c4d3cc1c68db58b00
[ "MIT" ]
null
null
null
from gym_holdem.holdem.bet_round import BetRound from gym_holdem.holdem.poker_rule_violation_exception import PokerRuleViolationException from pokereval_cactus import Card class Player: def __init__(self, stakes, table=None, name=None): self.table = table self.name = name self.bet = 0 ...
33.175758
183
0.598465
5,298
0.967848
0
0
151
0.027585
0
0
1,212
0.22141
33c4d9cd799c0848aed6273bf409593aceac5368
1,441
py
Python
app.py
abdur75648/ai-image-generator
82b10d1360efb2af9afbc580744eca4d9763c687
[ "MIT" ]
null
null
null
app.py
abdur75648/ai-image-generator
82b10d1360efb2af9afbc580744eca4d9763c687
[ "MIT" ]
null
null
null
app.py
abdur75648/ai-image-generator
82b10d1360efb2af9afbc580744eca4d9763c687
[ "MIT" ]
1
2022-03-05T20:48:08.000Z
2022-03-05T20:48:08.000Z
from flask import Flask, request, send_from_directory, redirect, send_file, render_template import os,cv2 import neuralStyleProcess app = Flask(__name__) APP_ROOT = os.path.dirname(os.path.abspath(__file__)) @app.route("/") def index(): return render_template("upload.html") @app.route("/upload", methods=['POST']) d...
30.020833
91
0.746704
0
0
0
0
1,130
0.784178
0
0
290
0.201249
33c563ef96dc01994469a37d5d17819ff8a430d8
9,678
py
Python
src/mappings_validator.py
center-for-threat-informed-defense/attack_to_veris
e5305debf7b5eb35704628dd02d3ce0d45ee0e32
[ "Apache-2.0" ]
35
2021-08-28T05:11:11.000Z
2022-02-24T05:50:59.000Z
src/mappings_validator.py
center-for-threat-informed-defense/attack_to_veris
e5305debf7b5eb35704628dd02d3ce0d45ee0e32
[ "Apache-2.0" ]
1
2021-09-16T00:32:19.000Z
2021-09-16T00:35:59.000Z
src/mappings_validator.py
center-for-threat-informed-defense/attack_to_veris
e5305debf7b5eb35704628dd02d3ce0d45ee0e32
[ "Apache-2.0" ]
1
2021-12-07T13:10:12.000Z
2021-12-07T13:10:12.000Z
# Copyright (c) 2021, MITRE Engenuity. Approved for public release. # See LICENSE for complete terms. import argparse import json import pathlib import numpy import requests from src.create_mappings import get_sheets, get_sheet_by_name def get_argparse(): desc = "ATT&CK to VERIS Mappings Validator" argpars...
39.82716
117
0.646828
0
0
0
0
0
0
0
0
3,581
0.370014
33c5b1377d8bbccb253528d320f78fa3c49f64f2
2,015
py
Python
cases/config_d1_tno_art.py
micstein89/cosmo-emission-processing
7628b6354abb80c7c69b1f13ac3d1757f0455272
[ "CC-BY-4.0" ]
null
null
null
cases/config_d1_tno_art.py
micstein89/cosmo-emission-processing
7628b6354abb80c7c69b1f13ac3d1757f0455272
[ "CC-BY-4.0" ]
null
null
null
cases/config_d1_tno_art.py
micstein89/cosmo-emission-processing
7628b6354abb80c7c69b1f13ac3d1757f0455272
[ "CC-BY-4.0" ]
null
null
null
# "constant" paths and values for TNO, regular lat/lon # for MeteoTest Swiss inventory, use calculated regular domain in the code import os import time from emiproc.grids import COSMOGrid, TNOGrid # inventory inventory = 'TNO' # model either "cosmo-art" or "cosmo-ghg" (affects the output units) model = 'cosmo-art' ...
23.988095
87
0.649132
0
0
0
0
0
0
0
0
1,290
0.640199
33c69f7358ad122b465adeb2350740a2a675b997
45,876
py
Python
spytest/apis/system/ztp.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
spytest/apis/system/ztp.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
spytest/apis/system/ztp.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
# This file contains the list of API's for operations on ZTP # @author : Chaitanya Vella (chaitanya-vella.kumar@broadcom.com) from spytest import st import apis.system.basic as basic_obj import utilities.utils as utils_obj import apis.system.switch_configuration as switch_conf_obj import apis.system.interface as intf_o...
48.960512
180
0.637545
0
0
0
0
0
0
0
0
13,948
0.304037
33c6fc7c6a43f33fca1acd3e80bf340a6e154be0
2,881
py
Python
pisces/algid.py
danieljohnlewis/pisces
7e7ed9c87692c01b591e14db73a3a7047992e91c
[ "MIT" ]
1
2021-02-03T23:05:19.000Z
2021-02-03T23:05:19.000Z
pisces/algid.py
danieljohnlewis/pisces
7e7ed9c87692c01b591e14db73a3a7047992e91c
[ "MIT" ]
null
null
null
pisces/algid.py
danieljohnlewis/pisces
7e7ed9c87692c01b591e14db73a3a7047992e91c
[ "MIT" ]
1
2017-04-05T16:11:11.000Z
2017-04-05T16:11:11.000Z
"""Handle for X.509 AlgorithmIdentifier objects This module understands a minimal number of OIDS, just enough X.509 stuff needed for PKCS 1 & 7. """ import types from pisces import asn1 oid_dsa = asn1.OID((1, 2, 840, 10040, 4, 1)) oid_dsa_sha1 = asn1.OID((1, 2, 840, 10040, 4, 3)) oid_rsa = asn1.OID((1, 2, 840, 1135...
31.659341
132
0.596668
2,065
0.716765
0
0
0
0
0
0
740
0.256855
33c729c649ab0cb56e1862e14fe0847fbb9b4398
230
py
Python
exercicios/Lista3/Q31.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista3/Q31.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
exercicios/Lista3/Q31.py
AlexandrePeBrito/CursoUdemyPython
3de58cb30c9f333b32078309847179ff3f9d7e22
[ "MIT" ]
null
null
null
#Faça um programa que calcule e escreva o valor de S # S=1/1+3/2+5/3+7/4...99/50 u=1 valores=[] for c in range(1,100): if(c%2==1): valores.append(round(c/u,2)) u+=1 print(valores) print(f"S = {sum(valores)}")
19.166667
52
0.586957
0
0
0
0
0
0
0
0
101
0.437229
33c94b4ecccf7fc17e12956a7c221ae80de3cbe0
3,138
py
Python
examples/for_debug.py
gottadiveintopython/kivyx.uix.drawer
a4de9c8ee65892c16278499f1134b93678a5a01b
[ "MIT" ]
null
null
null
examples/for_debug.py
gottadiveintopython/kivyx.uix.drawer
a4de9c8ee65892c16278499f1134b93678a5a01b
[ "MIT" ]
null
null
null
examples/for_debug.py
gottadiveintopython/kivyx.uix.drawer
a4de9c8ee65892c16278499f1134b93678a5a01b
[ "MIT" ]
null
null
null
from kivy.app import runTouchApp from kivy.properties import StringProperty from kivy.uix.button import Button from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.lang import Builder from kivyx.uix.drawer import KXDrawer class Numpad(GridLayout): def on_kv_post(self, *ar...
24.904762
66
0.500319
500
0.159337
0
0
76
0.024219
0
0
2,251
0.717336