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
c2ccffa0a75618b898fb390841847aab6f871afc
412
py
Python
isi_mip/climatemodels/migrations/0044_auto_20170116_1626.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
4
2017-07-05T08:06:18.000Z
2021-03-01T17:23:18.000Z
isi_mip/climatemodels/migrations/0044_auto_20170116_1626.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
4
2020-01-31T09:02:57.000Z
2021-04-20T14:04:35.000Z
isi_mip/climatemodels/migrations/0044_auto_20170116_1626.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
4
2017-10-12T01:48:55.000Z
2020-04-29T13:50:03.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-16 15:26 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('climatemodels', '0043_auto_20170116_1623'), ] operations = [ migrations.RenameModel...
20.6
53
0.631068
262
0.635922
0
0
0
0
0
0
138
0.334951
c2ce62208e5d0f3a5f97c461255fe7d85b8afbee
13,528
py
Python
custom_utils/crop4patches.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
custom_utils/crop4patches.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
custom_utils/crop4patches.py
ziming-liu/ObjectDet
6e25fa784114b9773b052d9d5465aa6fed93468a
[ "Apache-2.0" ]
null
null
null
import numpy import os import json import cv2 import csv import os.path as osp import mmcv import numpy as np def isgood(w,h): if w<2 or h<2: return False if w /h >10.0 or h/w >10.0: return False return True def bbox_iou(box1, box2): b1_x1, b1_y1, b1_x2, b1_y2 = box1 ...
53.05098
190
0.53563
0
0
0
0
0
0
0
0
1,884
0.138591
c2d008457b1988d06b4f36156a0cb0305d850324
1,121
py
Python
rabbitgetapi/__main__.py
Sidon/get-rabbitmq-messages
8feff8c9b9edee863d875966f5e5f3a5eb6ab06a
[ "MIT" ]
11
2022-01-10T13:49:39.000Z
2022-01-11T05:57:45.000Z
rabbitgetapi/__main__.py
Sidon/get-rabbitmq-messages
8feff8c9b9edee863d875966f5e5f3a5eb6ab06a
[ "MIT" ]
null
null
null
rabbitgetapi/__main__.py
Sidon/get-rabbitmq-messages
8feff8c9b9edee863d875966f5e5f3a5eb6ab06a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyleft 2021 Sidon Duarte # import http import sys from typing import Any import colorama import requests from rabbitgetapi import cli from rabbitgetapi import exceptions from rabbitgetapi import build_parser def main() -> Any: try: result = cli.dispatch(sys.argv[1:]) excep...
26.069767
75
0.674398
0
0
0
0
0
0
0
0
253
0.225691
c2d017d8eee0b960215a2642618960e9f03da11f
245
py
Python
src/allyoucanuse/etc/hashing.py
kunlubrain/allyoucanuse
c206d53fa9948cb335b406805d52125921fb71cf
[ "MIT" ]
null
null
null
src/allyoucanuse/etc/hashing.py
kunlubrain/allyoucanuse
c206d53fa9948cb335b406805d52125921fb71cf
[ "MIT" ]
null
null
null
src/allyoucanuse/etc/hashing.py
kunlubrain/allyoucanuse
c206d53fa9948cb335b406805d52125921fb71cf
[ "MIT" ]
null
null
null
from typing import Union, Iterable import hashlib def hash_id(seeds:Union[str, Iterable], n:int=32)->str: """For the moment, use the default simple python hash func """ h = hashlib.sha256(''.join(seeds)).hexdigest()[:n] return h
30.625
62
0.681633
0
0
0
0
0
0
0
0
68
0.277551
c2d2914bf2009ddae6cb71f0693560922df3f83f
12,182
py
Python
SST/datasets/wrapperpolicy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
1
2022-03-25T05:05:55.000Z
2022-03-25T05:05:55.000Z
SST/datasets/wrapperpolicy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
null
null
null
SST/datasets/wrapperpolicy.py
shaoshitong/torchdistill
709ca2d59442090d73a554d363e4c5e37538c707
[ "MIT" ]
null
null
null
import os import numpy as np import torch from torch.utils.data import Dataset import math import torch import torch.nn.functional as F import random import torchvision.datasets from torchvision.transforms import * from torch.utils.data import DataLoader from torchvision import datasets, transforms from PIL import Imag...
40.471761
136
0.613692
9,202
0.755377
0
0
7,600
0.623871
0
0
917
0.075275
c2d3138307df728361eddc71fedd71f1bcf4a126
67
py
Python
Chapter 07/ch7_1m.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 07/ch7_1m.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 07/ch7_1m.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
print(lambda x: x*x (10)) # may give address of lambda function
22.333333
38
0.686567
0
0
0
0
0
0
0
0
38
0.567164
c2d36fb4456d02f1a3cbf08824eb8cded948400d
3,029
py
Python
{{cookiecutter.project_slug}}/backend/app/app/tests/crud/test_item.py
Gjacquenot/full-stack-fastapi-couchbase
5df16af2ffcb22d141c5e689a220611005747939
[ "MIT" ]
353
2019-01-03T09:53:17.000Z
2022-03-27T12:24:45.000Z
{{cookiecutter.project_slug}}/backend/app/app/tests/crud/test_item.py
Gjacquenot/full-stack-fastapi-couchbase
5df16af2ffcb22d141c5e689a220611005747939
[ "MIT" ]
21
2019-01-06T21:50:40.000Z
2021-08-19T11:33:15.000Z
{{cookiecutter.project_slug}}/backend/app/app/tests/crud/test_item.py
Gjacquenot/full-stack-fastapi-couchbase
5df16af2ffcb22d141c5e689a220611005747939
[ "MIT" ]
72
2019-03-07T21:59:55.000Z
2022-03-18T04:59:22.000Z
from app import crud from app.db.database import get_default_bucket from app.models.config import ITEM_DOC_TYPE from app.models.item import ItemCreate, ItemUpdate from app.tests.utils.user import create_random_user from app.tests.utils.utils import random_lower_string def test_create_item(): title = random_lower_...
35.22093
88
0.719379
0
0
0
0
0
0
0
0
0
0
c2d3808ea07cbe15ac6fd167c1f1d94408d838e4
32
py
Python
src/constants.py
argho28/Translation
11e24df4deb29d37dfb1f48cf686cef75eb68397
[ "MIT" ]
15
2019-09-26T09:59:14.000Z
2021-08-14T16:54:42.000Z
src/constants.py
argho28/Translation
11e24df4deb29d37dfb1f48cf686cef75eb68397
[ "MIT" ]
9
2020-03-24T17:53:25.000Z
2022-01-13T01:36:39.000Z
src/constants.py
argho28/Translation
11e24df4deb29d37dfb1f48cf686cef75eb68397
[ "MIT" ]
3
2019-12-30T15:35:32.000Z
2021-01-05T18:02:41.000Z
MODEL_PATH = "./model/model.pt"
16
31
0.6875
0
0
0
0
0
0
0
0
18
0.5625
c2d52797a4915efe6cf6a4bf7bb065954ba40d31
12,271
py
Python
03_ML_training.py
YunxiaoRen/ML-iAMR
6bab74b4dccb5da8bc6155a7ee7ffa9d4811b894
[ "MIT" ]
4
2021-10-10T15:31:23.000Z
2022-02-10T00:17:55.000Z
03_ML_training.py
YunxiaoRen/ML-iAMR
6bab74b4dccb5da8bc6155a7ee7ffa9d4811b894
[ "MIT" ]
null
null
null
03_ML_training.py
YunxiaoRen/ML-iAMR
6bab74b4dccb5da8bc6155a7ee7ffa9d4811b894
[ "MIT" ]
2
2021-12-07T22:04:54.000Z
2022-02-10T07:14:42.000Z
##**************************************************************************************## ## Step1. Load Packages and Input Data ## ##**************************************************************************************## import pandas as pd import nu...
39.079618
193
0.677043
0
0
0
0
0
0
0
0
3,012
0.245457
c2d54bc8670fa3bdf4a2db5b9a515c8fa9d07665
189
py
Python
testspeed/__init__.py
sc-1123/testspeed
0dc560f9019087275d29eba2e4dfc351ba89566e
[ "MIT" ]
1
2019-07-29T03:12:10.000Z
2019-07-29T03:12:10.000Z
testspeed/__init__.py
sc-1123/testspeed
0dc560f9019087275d29eba2e4dfc351ba89566e
[ "MIT" ]
null
null
null
testspeed/__init__.py
sc-1123/testspeed
0dc560f9019087275d29eba2e4dfc351ba89566e
[ "MIT" ]
null
null
null
name = "testspeed" from time import time from sys import argv from os import system tic = time() system('python %s' % (argv[1])) toc = time() print('used %s seconds' % (toc - tic))
21
39
0.640212
0
0
0
0
0
0
0
0
39
0.206349
c2d5cfe13e3252b73bc2d506fd5f87805ad7437d
6,660
py
Python
gdalhelpers/functions/create_points_at_angles_distance_in_direction.py
JanCaha/gdalhelpers
925ecb2552b697b5970617484f1fc259f844ba04
[ "MIT" ]
null
null
null
gdalhelpers/functions/create_points_at_angles_distance_in_direction.py
JanCaha/gdalhelpers
925ecb2552b697b5970617484f1fc259f844ba04
[ "MIT" ]
null
null
null
gdalhelpers/functions/create_points_at_angles_distance_in_direction.py
JanCaha/gdalhelpers
925ecb2552b697b5970617484f1fc259f844ba04
[ "MIT" ]
null
null
null
from osgeo import ogr from typing import List, Union import math import os import warnings import numpy as np from gdalhelpers.checks import values_checks, datasource_checks, layer_checks from gdalhelpers.helpers import layer_helpers, datasource_helpers, geometry_helpers def create_points_at_angles_distance_in_direct...
43.815789
131
0.640841
0
0
0
0
0
0
0
0
2,175
0.326577
c2d600c10308080eab8bee5be84ed3ffe2e71757
151
py
Python
test.py
Imagio/enigma
31c84a40cabe6ed7fc75743dbe9292a1bb622c4e
[ "MIT" ]
null
null
null
test.py
Imagio/enigma
31c84a40cabe6ed7fc75743dbe9292a1bb622c4e
[ "MIT" ]
null
null
null
test.py
Imagio/enigma
31c84a40cabe6ed7fc75743dbe9292a1bb622c4e
[ "MIT" ]
null
null
null
import unittest from rotor_tests import * from rotor_settings_tests import * from reflector_tests import * from enigma_tests import * unittest.main()
18.875
34
0.821192
0
0
0
0
0
0
0
0
0
0
c2d85ba1664d0e7d0a642dbaf8af0b812fb9a534
320
py
Python
forums/__init__.py
sharebears/pulsar-forums
6c1152a181c30bb82c49556fd072f47c2eeaf1cb
[ "MIT" ]
null
null
null
forums/__init__.py
sharebears/pulsar-forums
6c1152a181c30bb82c49556fd072f47c2eeaf1cb
[ "MIT" ]
null
null
null
forums/__init__.py
sharebears/pulsar-forums
6c1152a181c30bb82c49556fd072f47c2eeaf1cb
[ "MIT" ]
null
null
null
from werkzeug import find_modules, import_string from forums import routes from forums.modifications import modify_core def init_app(app): with app.app_context(): for name in find_modules('forums', recursive=True): import_string(name) app.register_blueprint(routes.bp) modify_core()
21.333333
59
0.73125
0
0
0
0
0
0
0
0
8
0.025
c2d8aaeb7cd07de199497544ee9bb719305bd800
1,380
py
Python
polybot/views/ingest.py
evanpcosta/IEEEPolybot
75fd70680f4f9fec8b1b77b4e116e4869eb8c079
[ "Apache-2.0" ]
null
null
null
polybot/views/ingest.py
evanpcosta/IEEEPolybot
75fd70680f4f9fec8b1b77b4e116e4869eb8c079
[ "Apache-2.0" ]
null
null
null
polybot/views/ingest.py
evanpcosta/IEEEPolybot
75fd70680f4f9fec8b1b77b4e116e4869eb8c079
[ "Apache-2.0" ]
1
2021-03-07T20:46:43.000Z
2021-03-07T20:46:43.000Z
"""Routes related to ingesting data from the robot""" import os import logging from pathlib import Path from flask import Blueprint, request, current_app from pydantic import ValidationError from werkzeug.utils import secure_filename from polybot.models import UVVisExperiment logger = logging.getLogger(__name__) b...
30
70
0.674638
0
0
0
0
1,001
0.725362
0
0
446
0.323188
c2d96673325c088ac08245ec7ce49cbb6c73160f
405
py
Python
novice/02-04/lat_DIModule.py
septiannurtrir/praxis-academy
1ef7f959c372ae991d74ccd373123142c2fbc542
[ "MIT" ]
1
2019-08-27T17:06:13.000Z
2019-08-27T17:06:13.000Z
novice/02-04/lat_DIModule.py
septiannurtrir/praxis-academy
1ef7f959c372ae991d74ccd373123142c2fbc542
[ "MIT" ]
null
null
null
novice/02-04/lat_DIModule.py
septiannurtrir/praxis-academy
1ef7f959c372ae991d74ccd373123142c2fbc542
[ "MIT" ]
null
null
null
#dependency Module class AppModule: @singleton @provider def provide_business_logic(self, api: Api) -> BusinessLogic: return BusinessLogic(api=api) @singleton @provider def provide_api(self) -> Api: configuration return Api() if __name__ == '__main__': injector ...
18.409091
64
0.654321
258
0.637037
0
0
230
0.567901
0
0
28
0.069136
c2daf1fd3438e639b7a66547964461828db43284
639
py
Python
qiita_pet/uimodules/base_uimodule.py
JWDebelius/qiita
3378e0fabe40a846691600e5de4fb72a3db70dd1
[ "BSD-3-Clause" ]
null
null
null
qiita_pet/uimodules/base_uimodule.py
JWDebelius/qiita
3378e0fabe40a846691600e5de4fb72a3db70dd1
[ "BSD-3-Clause" ]
null
null
null
qiita_pet/uimodules/base_uimodule.py
JWDebelius/qiita
3378e0fabe40a846691600e5de4fb72a3db70dd1
[ "BSD-3-Clause" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
35.5
79
0.524257
252
0.394366
0
0
0
0
0
0
445
0.696401
c2db78f1fd6b3b030ac80b311ec8e5f6c6ad3962
1,572
py
Python
test/test_mpdstats.py
dfc/beets
96c5121f65b9477e9b424f166dc57369b6457e42
[ "MIT" ]
1
2017-11-15T23:24:35.000Z
2017-11-15T23:24:35.000Z
test/test_mpdstats.py
dfc/beets
96c5121f65b9477e9b424f166dc57369b6457e42
[ "MIT" ]
null
null
null
test/test_mpdstats.py
dfc/beets
96c5121f65b9477e9b424f166dc57369b6457e42
[ "MIT" ]
null
null
null
# This file is part of beets. # Copyright 2015 # # 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, pu...
30.230769
71
0.720738
521
0.331425
0
0
0
0
0
0
653
0.415394
c2db90e9e6960ed73fac71500e3d37978e19257c
1,714
py
Python
renderer/console.py
deeredman1991/CreepSmash
566b87c6d70f3663016f1c6d41d63432f9d0e785
[ "MIT" ]
null
null
null
renderer/console.py
deeredman1991/CreepSmash
566b87c6d70f3663016f1c6d41d63432f9d0e785
[ "MIT" ]
null
null
null
renderer/console.py
deeredman1991/CreepSmash
566b87c6d70f3663016f1c6d41d63432f9d0e785
[ "MIT" ]
null
null
null
import tools.libtcod.libtcodpy as libtcod class Console(object): def __init__(self, x=[0,0], y=[0,0], parent_console=None): self._settings = { "x": x, "y": y, "Parent_Console": parent_console } self._settings["Width"] = int(max(self._settings["x"][1], se...
39.860465
157
0.625438
1,670
0.974329
0
0
486
0.283547
0
0
297
0.173279
c2dbb6ec5c6b594157bfe877b67a7b2cb451fd8a
48,942
py
Python
tests/examples/minlplib/sfacloc2_3_90.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/sfacloc2_3_90.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/sfacloc2_3_90.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 04/21/18 13:54:11 # # Equation counts # Total E G L N X C B # 497 61 388 48 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
37.077273
113
0.650954
0
0
0
0
0
0
0
0
699
0.014282
c2dc055259ce8bd609c68240256323675bd4a1ec
1,236
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cloudsign/models/StampInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cloudsign/models/StampInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/cloudsign/models/StampInfo.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
34.333333
107
0.706311
609
0.475781
0
0
0
0
0
0
934
0.729688
c2de7d7431503150ac6343d65fe89abecb277cb0
3,462
py
Python
authors/apps/likedislike/tests/test_likedislike.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
null
null
null
authors/apps/likedislike/tests/test_likedislike.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
20
2018-11-26T16:22:46.000Z
2018-12-21T10:08:25.000Z
authors/apps/likedislike/tests/test_likedislike.py
andela/ah-code-titans
4f1fc77c2ecdf8ca15c24327d39fe661eac85785
[ "BSD-3-Clause" ]
3
2019-01-24T15:39:42.000Z
2019-09-25T17:57:08.000Z
from rest_framework import status from django.urls import reverse from authors.apps.articles.models import Article from authors.base_test_config import TestConfiguration slug = None class TestLikeDislike(TestConfiguration): """ Class to test for liking and disliking of articles. """ def create_artic...
28.61157
76
0.593299
3,267
0.943674
0
0
0
0
0
0
1,277
0.368862
c2dfd049645c43b5bbb9f0aae0f7145cf2d53a0b
6,843
py
Python
start_gui.py
NIC-VICOROB/sub-cortical_segmentation
324b8f998a666cee6ef94944acd85e2bcd503701
[ "BSD-3-Clause" ]
7
2018-06-17T02:48:49.000Z
2021-02-16T05:38:10.000Z
start_gui.py
NIC-VICOROB/sub-cortical_segmentation
324b8f998a666cee6ef94944acd85e2bcd503701
[ "BSD-3-Clause" ]
null
null
null
start_gui.py
NIC-VICOROB/sub-cortical_segmentation
324b8f998a666cee6ef94944acd85e2bcd503701
[ "BSD-3-Clause" ]
4
2017-09-22T08:52:36.000Z
2019-07-15T14:44:51.000Z
# ------------------------------------------------------------ # Training script example for Keras implementation # # Kaisar Kushibar (2019) # kaisar.kushibar@udg.edu # ------------------------------------------------------------ import os import sys import numpy as np from functools import partial from tkinter import...
37.80663
136
0.650592
5,918
0.864825
0
0
0
0
0
0
1,074
0.156949
c2dfea80584df5547d3541ae560b3208410a1788
3,875
py
Python
source/yahoo_finance.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
7
2019-10-13T18:58:33.000Z
2021-08-07T12:46:22.000Z
source/yahoo_finance.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
7
2019-12-16T21:25:34.000Z
2022-02-10T00:11:22.000Z
source/yahoo_finance.py
mengwangk/myinvestor-toolkit
3dca9e1accfccf1583dcdbec80d1a0fe9dae2e81
[ "MIT" ]
4
2020-02-01T11:23:51.000Z
2021-12-13T12:27:18.000Z
""" ======================= Yahoo Finance source ======================= """ import re import requests import time from json import loads from bs4 import BeautifulSoup from yahoofinancials import YahooFinancials # Yahoo Finance data source class YahooFinanceSource(YahooFinancials): def __init__(self, ticker): ...
40.789474
112
0.627097
3,631
0.937032
0
0
457
0.117935
0
0
845
0.218065
c2e0b6b1770d351e8357e3bd5c3075735bda47ee
695
py
Python
django_monitor/price_monitor/spider/enterprise/enterprise/items.py
jasonljc/enterprise-price-monitor
616396243e909d3584f4cfcc53d4e156510da4bb
[ "MIT" ]
null
null
null
django_monitor/price_monitor/spider/enterprise/enterprise/items.py
jasonljc/enterprise-price-monitor
616396243e909d3584f4cfcc53d4e156510da4bb
[ "MIT" ]
null
null
null
django_monitor/price_monitor/spider/enterprise/enterprise/items.py
jasonljc/enterprise-price-monitor
616396243e909d3584f4cfcc53d4e156510da4bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class EnterpriseItem(scrapy.Item): # define the fields for your item here like: searchTime = scrapy.Field() searchCriteria = scrapy.Field() ...
26.730769
51
0.684892
522
0.751079
0
0
0
0
0
0
189
0.271942
c2e195ab4b278f23e01854b0146790e6742d3324
26,510
py
Python
photoz.py
martinkilbinger/shapepipe_photoz
da4547774f6d599fb0106273eb8ab9819b7fd9eb
[ "MIT" ]
null
null
null
photoz.py
martinkilbinger/shapepipe_photoz
da4547774f6d599fb0106273eb8ab9819b7fd9eb
[ "MIT" ]
null
null
null
photoz.py
martinkilbinger/shapepipe_photoz
da4547774f6d599fb0106273eb8ab9819b7fd9eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 12 10:02:58 2020 @author: Xavier Jimenez """ #------------------------------------------------------------------# # # # # # Imports # # # # # #------------------------------------------------------------------# import numpy as np import os import ...
54.102041
289
0.515805
0
0
0
0
0
0
0
0
9,011
0.339717
c2e28399830065a80ecde0af2720320c90368d6c
776
py
Python
units/prefix/metactl/bin/bin.py
hoefkensj/BTRWin
1432868ad60155f5ae26f33903a890497e089480
[ "MIT" ]
null
null
null
units/prefix/metactl/bin/bin.py
hoefkensj/BTRWin
1432868ad60155f5ae26f33903a890497e089480
[ "MIT" ]
null
null
null
units/prefix/metactl/bin/bin.py
hoefkensj/BTRWin
1432868ad60155f5ae26f33903a890497e089480
[ "MIT" ]
null
null
null
#!/usr/bin/env python import betterwin G=betterwin.confcfg.load_global_config() def read_skell(skel): with open(skel) as template: tpl= template.readlines() def head(tpl): for idx,line in enumerate(tpl): if 'cfg_start' in line: header=tpl[0:idx] return header def bottom(tpl): for idx,line in ...
19.897436
123
0.666237
0
0
271
0.349227
0
0
0
0
159
0.204897
c2e55b26934d85e03276f6736007bed25c578301
1,348
py
Python
network/fs_net_repo/PoseTs.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
10
2022-03-16T02:14:56.000Z
2022-03-31T19:01:34.000Z
network/fs_net_repo/PoseTs.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
1
2022-03-18T06:43:16.000Z
2022-03-18T06:56:35.000Z
network/fs_net_repo/PoseTs.py
lolrudy/GPV_pose
f326a623b3e45e6edfc1963b068e8e7aaea2bfff
[ "MIT" ]
2
2022-03-19T13:06:28.000Z
2022-03-19T16:08:18.000Z
import torch.nn as nn import torch import torch.nn.functional as F import absl.flags as flags from absl import app FLAGS = flags.FLAGS # Point_center encode the segmented point cloud # one more conv layer compared to original paper class Pose_Ts(nn.Module): def __init__(self): super(Pose_Ts, self).__ini...
25.433962
55
0.58457
894
0.663205
0
0
0
0
0
0
106
0.078635
c2e64fced5d7c9dff05319da1da37700db19293c
2,653
py
Python
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/analysis/exportXGBoostNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/analysis/exportXGBoostNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
gQuant/plugins/gquant_plugin/greenflow_gquant_plugin/analysis/exportXGBoostNode.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
from greenflow.dataframe_flow import Node from greenflow.dataframe_flow.portsSpecSchema import (ConfSchema, PortsSpecSchema) from greenflow.dataframe_flow.metaSpec import MetaDataSchema from greenflow.dataframe_flow.util import get_file_path from greenflow.dataframe...
31.211765
74
0.547682
2,232
0.841312
0
0
0
0
0
0
519
0.195628
c2e989f1d471ff586e3048f193d3b0ec35055cc5
623
py
Python
Python/main.py
mrn4344/Mandelbrot
8958b6453b3feafa1329fa18dc2822ab8985cb41
[ "MIT" ]
null
null
null
Python/main.py
mrn4344/Mandelbrot
8958b6453b3feafa1329fa18dc2822ab8985cb41
[ "MIT" ]
null
null
null
Python/main.py
mrn4344/Mandelbrot
8958b6453b3feafa1329fa18dc2822ab8985cb41
[ "MIT" ]
null
null
null
import mandelbrot as mand from PIL import Image width = 1280 height = 720 scale = 2 def pixelToCoord( pos ): (x, y) = pos return ( 4*(x/height - 0.5)/scale , -4*(y/height - 0.5)/scale) def main(): me = mand.mandelbrot(2) img = Image.new('RGB', (width,height), color = 'white') for y in range(0,...
22.25
67
0.5313
0
0
0
0
0
0
0
0
41
0.065811
c2ea645b92efeff22da8081f24ec4c1af5469ade
1,699
py
Python
blockformer/position/relative_position_bias.py
colinski/blockformer
56be6abc08dc25ab97c526384e9c69f6c814c3ed
[ "MIT" ]
null
null
null
blockformer/position/relative_position_bias.py
colinski/blockformer
56be6abc08dc25ab97c526384e9c69f6c814c3ed
[ "MIT" ]
null
null
null
blockformer/position/relative_position_bias.py
colinski/blockformer
56be6abc08dc25ab97c526384e9c69f6c814c3ed
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn.utils.weight_init import trunc_normal_ #adapted from open-mmlab implementation of swin transformer class RelativePositionBias(nn.Module): def __init__(self, window_size=(7, 7), num_heads=8 ): su...
38.613636
78
0.638611
1,517
0.892878
0
0
230
0.135374
0
0
189
0.111242
c2ec07613b902faccf5658ff9af13a51b5b0ec16
6,065
py
Python
__main__.py
vEnhance/dragon
ada173a05e986941f20002ca726041a698eb8a1d
[ "MIT" ]
null
null
null
__main__.py
vEnhance/dragon
ada173a05e986941f20002ca726041a698eb8a1d
[ "MIT" ]
null
null
null
__main__.py
vEnhance/dragon
ada173a05e986941f20002ca726041a698eb8a1d
[ "MIT" ]
null
null
null
#Import some stuff import os import zipfile import ConfigParser import string import argparse from xml.etree.ElementTree import ElementTree from constants import SHORT_NAME, VERSION_NUMBER, FULL_NAME, GEOGEBRA_XML_LOCATION from diagram import AsyDiagram, doCompileDiagramObjects, drawDiagram # Argument parser {{{ pars...
32.783784
232
0.697939
0
0
0
0
0
0
0
0
2,689
0.443364
c2ecefbb6392e5044c1bce089bc79ba2086836e6
1,714
py
Python
ka_model.py
ycjing/AmalgamateGNN.PyTorch
f99a60b374d23002d53385f23da2d540d964c7c2
[ "MIT" ]
15
2021-06-25T05:02:37.000Z
2022-03-20T08:34:15.000Z
ka_model.py
ycjing/AmalgamateGNN.PyTorch
f99a60b374d23002d53385f23da2d540d964c7c2
[ "MIT" ]
2
2022-01-21T05:14:17.000Z
2022-03-23T09:24:45.000Z
ka_model.py
ycjing/AmalgamateGNN.PyTorch
f99a60b374d23002d53385f23da2d540d964c7c2
[ "MIT" ]
1
2021-08-18T06:28:58.000Z
2021-08-18T06:28:58.000Z
import torch from utils import get_teacher1, get_teacher2, get_student def collect_model(args, data_info_s, data_info_t1, data_info_t2): """This is the function that constructs the dictionary containing the models and the corresponding optimizers Args: args (parse_args): parser arguments data...
41.804878
113
0.713536
0
0
0
0
0
0
0
0
831
0.484831
c2ed8ec4755fb9cd0f0e90d7dcf10e9cf020ad38
8,759
py
Python
core/migrations/0001_initial.py
vlafranca/stream_framework_example
3af636c591d4a278f3720f64118d86aeb8091714
[ "MIT" ]
102
2015-01-18T15:02:34.000Z
2021-12-07T17:22:12.000Z
core/migrations/0001_initial.py
vlafranca/stream_framework_example
3af636c591d4a278f3720f64118d86aeb8091714
[ "MIT" ]
11
2015-01-04T14:42:11.000Z
2022-01-13T04:58:10.000Z
core/migrations/0001_initial.py
vlafranca/stream_framework_example
3af636c591d4a278f3720f64118d86aeb8091714
[ "MIT" ]
53
2015-01-12T07:11:10.000Z
2021-07-28T08:40:02.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Item' db.create_table(u'core_item', ( (u'id', self.gf('django.db.models.fields.A...
56.509677
187
0.553488
8,626
0.984816
0
0
0
0
0
0
5,226
0.596643
c2edaf37adb691a52b1dfd785bf639490dc75f3a
3,309
py
Python
desicos/abaqus/conecyl/__init__.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
1
2020-10-22T22:15:24.000Z
2020-10-22T22:15:24.000Z
desicos/abaqus/conecyl/__init__.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
1
2020-10-09T12:42:02.000Z
2020-10-09T12:42:02.000Z
desicos/abaqus/conecyl/__init__.py
saullocastro/desicos
922db8ac4fb0fb4d09df18ce2a14011f207f6fa8
[ "BSD-3-Clause" ]
2
2020-07-14T07:45:31.000Z
2020-12-29T00:22:41.000Z
r""" =================================================== ConeCyl (:mod:`desicos.abaqus.conecyl`) =================================================== .. currentmodule:: desicos.abaqus.conecyl Cone/Cylinder Model ===================== Figure 1 provides a schematic view of the typical model created using this module. T...
30.925234
91
0.676337
0
0
0
0
0
0
0
0
3,245
0.980659
c2ef61f09bff5ba020f8ddabd68c94b0f1037b53
465
py
Python
demo_api/rumour_detection_twitter/create_inputs.py
vincenttzc/sgnlp
44ae12a5ae98c9a1945d346e9373854c7d472a4b
[ "MIT" ]
14
2021-08-02T01:52:18.000Z
2022-01-14T10:16:02.000Z
demo_api/rumour_detection_twitter/create_inputs.py
vincenttzc/sgnlp
44ae12a5ae98c9a1945d346e9373854c7d472a4b
[ "MIT" ]
29
2021-08-02T01:53:46.000Z
2022-03-30T05:40:46.000Z
demo_api/rumour_detection_twitter/create_inputs.py
vincenttzc/sgnlp
44ae12a5ae98c9a1945d346e9373854c7d472a4b
[ "MIT" ]
7
2021-08-02T01:54:19.000Z
2022-01-07T06:37:45.000Z
def generate_structure(thread_len, max_posts): time_delay_ids = [0] * thread_len + [1] * (max_posts - thread_len) structure_ids = [ [3] * idx + [4] + [2] * (thread_len - 1 - idx) + [5] * (max_posts - thread_len) for idx in range(thread_len) ] + [[5] * max_posts] * (max_posts - thread_len) ...
38.75
87
0.627957
0
0
0
0
0
0
0
0
0
0
c2f022d833125248ec963e921ce8841d3ad389bf
1,230
py
Python
rpython/jit/backend/ppc/regname.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
rpython/jit/backend/ppc/regname.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
rpython/jit/backend/ppc/regname.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
class _R(int): def __repr__(self): return "r%s"%(super(_R, self).__repr__(),) __str__ = __repr__ class _F(int): def __repr__(self): return "fr%s"%(super(_F, self).__repr__(),) __str__ = __repr__ class _V(int): def __repr__(self): return "vr%s"%(super(_V, self).__repr__(),) ...
41
78
0.591057
338
0.274797
0
0
0
0
0
0
17
0.013821
c2f080fa5d08bb1269862977727df7460da362c1
445
py
Python
probs/prob9.py
mattrid93/ProjectEuler
3e1cf1bad9581e526b37d17e20b5fe8af837c1c6
[ "MIT" ]
null
null
null
probs/prob9.py
mattrid93/ProjectEuler
3e1cf1bad9581e526b37d17e20b5fe8af837c1c6
[ "MIT" ]
null
null
null
probs/prob9.py
mattrid93/ProjectEuler
3e1cf1bad9581e526b37d17e20b5fe8af837c1c6
[ "MIT" ]
null
null
null
"""Problem 9: Special Pythagorean triplet. Brute force.""" import unittest def find_triple(s): """Returns abc where a^2+b^2=c^2 with a+b+c=s.""" a, b, c = 998, 1, 1 while b < 999: if a**2 + b**2 == c**2: return a*b*c if a == 1: c += 1 b = 1 a...
20.227273
53
0.440449
0
0
0
0
0
0
0
0
118
0.265169
c2f186277f31c8ec4b6c844878711153981d3676
920
py
Python
common/utilities/message_utilities.py
uk-gov-mirror/nhsconnect.integration-adaptor-mhs
bf090a17659da738401667997a10695d8b75b94b
[ "Apache-2.0" ]
15
2019-08-06T16:08:12.000Z
2021-05-24T13:14:39.000Z
common/utilities/message_utilities.py
uk-gov-mirror/nhsconnect.integration-adaptor-mhs
bf090a17659da738401667997a10695d8b75b94b
[ "Apache-2.0" ]
75
2019-04-25T13:59:02.000Z
2021-09-15T06:05:36.000Z
common/utilities/message_utilities.py
uk-gov-mirror/nhsconnect.integration-adaptor-mhs
bf090a17659da738401667997a10695d8b75b94b
[ "Apache-2.0" ]
7
2019-11-12T15:26:34.000Z
2021-04-11T07:23:56.000Z
import uuid import datetime import utilities.file_utilities as file_utilities EBXML_TIMESTAMP_FORMAT = "%Y-%m-%dT%H:%M:%SZ" def get_uuid(): """Generate a UUID suitable for sending in messages to Spine. :return: A string representation of the UUID. """ return str(uuid.uuid4()).upper() def get_times...
27.878788
97
0.738043
0
0
0
0
0
0
0
0
303
0.329348
c2f1a3b7771e7491e2a518b145a7443aeabf7658
81
py
Python
corehq/util/tests/__init__.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
corehq/util/tests/__init__.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
null
null
null
corehq/util/tests/__init__.py
bglar/commcare-hq
972129fc26864c08c7bef07874bd2a7218550bff
[ "BSD-3-Clause" ]
null
null
null
from test_couch import * from test_toggle import * from test_quickcache import *
20.25
29
0.814815
0
0
0
0
0
0
0
0
0
0
c2f1d876ec603c325d5fd840f0aed40ac0a43ab5
998
py
Python
cleanup.py
DuncteBot/tf2-transformer-chatbot
0e364da0537717de025314d40c5b0423891f9dc4
[ "MIT" ]
null
null
null
cleanup.py
DuncteBot/tf2-transformer-chatbot
0e364da0537717de025314d40c5b0423891f9dc4
[ "MIT" ]
null
null
null
cleanup.py
DuncteBot/tf2-transformer-chatbot
0e364da0537717de025314d40c5b0423891f9dc4
[ "MIT" ]
null
null
null
import sqlite3 from helpers import get_db_path, get_timeframes from traceback import print_tb timeframes = get_timeframes() print(timeframes) for timeframe in timeframes: with sqlite3.connect(get_db_path(timeframe)) as connection: try: c = connection.cursor() print("Cleanin up!"...
28.514286
103
0.576152
0
0
0
0
0
0
0
0
295
0.295591
c2f341062556abc813aaebd4a88c681a262c4eb7
8,059
py
Python
visualization/plots.py
yc14600/beta3_IRT
7c3d87b2f04fc9ad7bf59db5d60166df5ca47dc6
[ "MIT" ]
7
2019-06-26T15:23:14.000Z
2021-12-28T14:16:24.000Z
visualization/plots.py
yc14600/beta3_IRT
7c3d87b2f04fc9ad7bf59db5d60166df5ca47dc6
[ "MIT" ]
null
null
null
visualization/plots.py
yc14600/beta3_IRT
7c3d87b2f04fc9ad7bf59db5d60166df5ca47dc6
[ "MIT" ]
4
2019-08-29T19:07:35.000Z
2021-12-28T19:22:11.000Z
from __future__ import division import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec import seaborn as sns import pandas as pd import glob import re from itertools import combinations import matplotlib matplotlib.rcParams['text.usetex'] = True def plot_probabilities(X, probabilities,...
36.631818
173
0.618191
0
0
0
0
0
0
0
0
1,317
0.16342
c2f46b42f5c6546a78b91fb417eafbf47943fbf3
10,125
py
Python
kitchensink/data/catalog.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
2
2015-03-17T05:02:42.000Z
2016-04-07T15:02:28.000Z
kitchensink/data/catalog.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
null
null
null
kitchensink/data/catalog.py
hhuuggoo/kitchensink
1f81050fec7eace52e0b4e1b47851b649a4e4d33
[ "BSD-3-Clause" ]
1
2015-10-07T21:50:44.000Z
2015-10-07T21:50:44.000Z
from os.path import join, exists, isdir, relpath, abspath, dirname import datetime as dt import posixpath import logging import tempfile from os import stat, makedirs, remove import random import uuid from cStringIO import StringIO import time from six import string_types try: import gevent except: gevent = No...
35.904255
95
0.599407
8,989
0.887802
1,122
0.110815
0
0
0
0
2,842
0.280691
c2f4c885d5dce7315988e496badae91eba3b1efc
982
py
Python
nadine/migrations/0034_stripebillingprofile.py
alvienzo720/Dep_Nadine
b23688aa87ba3cfe138f9b243eed3f50a74e1486
[ "Apache-2.0" ]
null
null
null
nadine/migrations/0034_stripebillingprofile.py
alvienzo720/Dep_Nadine
b23688aa87ba3cfe138f9b243eed3f50a74e1486
[ "Apache-2.0" ]
null
null
null
nadine/migrations/0034_stripebillingprofile.py
alvienzo720/Dep_Nadine
b23688aa87ba3cfe138f9b243eed3f50a74e1486
[ "Apache-2.0" ]
1
2020-02-24T08:23:45.000Z
2020-02-24T08:23:45.000Z
# Generated by Django 2.0.3 on 2018-04-06 18:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('nadine', '0033_payment_m...
37.769231
139
0.665988
823
0.838086
0
0
0
0
0
0
246
0.250509
c2f563aefb1bf16c5c0e403fa207c966d043272b
5,212
py
Python
compete.py
ChristopherKlix/sorting_algorithms
5586393fb8e66d41c29c3a1a1a100fe323b6e1b6
[ "MIT" ]
null
null
null
compete.py
ChristopherKlix/sorting_algorithms
5586393fb8e66d41c29c3a1a1a100fe323b6e1b6
[ "MIT" ]
null
null
null
compete.py
ChristopherKlix/sorting_algorithms
5586393fb8e66d41c29c3a1a1a100fe323b6e1b6
[ "MIT" ]
null
null
null
from generate import generate from datetime import datetime from time import sleep # sorting algorithms def linear_sort(unsorted_list): list_len = len(unsorted_list) smallest_int = 0 sorted_list = list() for index in range(list_len): smallest_int = 1000000 for element in unsorted_li...
25.54902
95
0.585955
0
0
0
0
0
0
0
0
1,070
0.205295
c2f6e7fc941847d3304a0d5ca32647ac0c95ed2a
251
py
Python
controller/index.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
4
2015-12-20T14:57:57.000Z
2021-01-23T12:54:20.000Z
controller/index.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
1
2016-03-13T15:19:02.000Z
2016-03-18T03:11:18.000Z
controller/index.py
YunYinORG/social
5020e980cacd8eca39fccc36faabc584f3c3e15f
[ "Apache-2.0" ]
4
2015-12-21T02:26:29.000Z
2016-09-03T02:57:07.000Z
#!/usr/bin/env python # coding=utf-8 import web import lib.user as user """首页[done]""" class index: """首页""" def GET(self): html = web.template.frender('templates/index.html') name = user.getName() return html(name)
16.733333
59
0.59761
166
0.640927
0
0
0
0
0
0
87
0.335907
c2f74385f195f0884b6d65f78882d41fbb6267cb
19,448
py
Python
models/transformer/transformer.py
lsgai/selene
ad23904cad2a5a292732ff350e7689c0b9e511f4
[ "BSD-3-Clause-Clear" ]
null
null
null
models/transformer/transformer.py
lsgai/selene
ad23904cad2a5a292732ff350e7689c0b9e511f4
[ "BSD-3-Clause-Clear" ]
null
null
null
models/transformer/transformer.py
lsgai/selene
ad23904cad2a5a292732ff350e7689c0b9e511f4
[ "BSD-3-Clause-Clear" ]
null
null
null
from __future__ import absolute_import, division, print_function, unicode_literals import json import logging import math import os import sys from io import open import numpy as np import torch from torch import nn from torch.nn import CrossEntropyLoss, MSELoss from pytorch_transformers import WEIGHTS_NAME, CONFIG_N...
47.783784
121
0.722285
17,971
0.924054
0
0
0
0
0
0
10,954
0.563246
c2f98c67de6fff06f026a352c43e196aef39bfda
1,166
py
Python
setup.py
jackschultz/dbactor
57ca01bb257d92b32d6003b56cec69e930b6ea73
[ "MIT" ]
2
2021-11-18T09:35:42.000Z
2021-11-18T14:46:30.000Z
setup.py
jackschultz/dbactor
57ca01bb257d92b32d6003b56cec69e930b6ea73
[ "MIT" ]
null
null
null
setup.py
jackschultz/dbactor
57ca01bb257d92b32d6003b56cec69e930b6ea73
[ "MIT" ]
null
null
null
from setuptools import setup __version__ = '0.0.3' REQUIRES = ['psycopg2-binary'] EXTRAS_REQUIRE = { 'sqlalchemy': ['sqlalchemy'], 'jinjasql': ['jinjasql'], 'pandas': ['jinjasql', 'pandas'], } extras_lists = [vals for k, vals in EXTRAS_REQUIRE.items()] # flattening the values in EXTRAS_REQUIRE from popula...
36.4375
86
0.628645
0
0
0
0
0
0
0
0
361
0.309605
c2fa5f8b735606c6ff049842620445e8616d3b41
603
py
Python
figur/__init__.py
severinsimmler/figur
d42cf6d150cc1b8effe1b4e7093bafd8975377b3
[ "MIT" ]
1
2019-04-29T20:29:15.000Z
2019-04-29T20:29:15.000Z
figur/__init__.py
severinsimmler/figur
d42cf6d150cc1b8effe1b4e7093bafd8975377b3
[ "MIT" ]
2
2019-03-13T14:30:08.000Z
2019-05-28T15:41:27.000Z
figur/__init__.py
severinsimmler/figur
d42cf6d150cc1b8effe1b4e7093bafd8975377b3
[ "MIT" ]
null
null
null
""" Figurenerkennung for German literary texts ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `figur` is very easy to use: ``` >>> import figur >>> text = "Der Gärtner entfernte sich eilig, und Eduard folgte bald." >>> figur.tag(text) SentenceId Token Tag 0 0 Der _ 1 0 Gä...
24.12
70
0.41791
0
0
0
0
0
0
0
0
582
0.961983
c2fb06c89af3c0d869e1710b20eb4d1e629dd002
725
py
Python
CV0101EN-09.02-frames_to_video.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
CV0101EN-09.02-frames_to_video.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
CV0101EN-09.02-frames_to_video.py
reddyprasade/Computer-Vision-with-Python
8eebec61f0fdacb05e122460d6845a32ae506c8f
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os def frames_to_video(inputpath,outputpath,fps): image_array = [] files = [f for f in os.listdir(inputpath) if isfile(join(inputpath, f))] files.sort(key = lambda x: int(x[5:-4])) for i in range(len(files)): img = cv2.imread(inputpath + files[i]) size = ...
29
75
0.66069
0
0
0
0
0
0
0
0
52
0.071724
c2febe7880974ca6e91553584ed0bba9eac9b426
5,303
py
Python
pbt/estimator_worker.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
116
2018-07-11T13:19:56.000Z
2021-07-26T17:22:44.000Z
pbt/estimator_worker.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
1
2019-02-11T02:25:02.000Z
2019-02-11T17:05:19.000Z
pbt/estimator_worker.py
Octavian-ai/mac-graph
3ef978e8a6f79f2dcc46783d34f01934aabf7f19
[ "Unlicense" ]
21
2018-10-11T23:03:22.000Z
2021-07-14T22:42:08.000Z
import tensorflow as tf import numpy as np import traceback import os.path from .worker import Worker from .param import * from .params import * import logging logger = logging.getLogger(__name__) class HeartbeatHook(tf.train.SessionRunHook): def __init__(self, heatbeat, should_continue): self.heatbeat = heat...
24.896714
103
0.666227
4,210
0.79389
0
0
0
0
0
0
996
0.187818
6c01243ea6bcaf63004fe1fe3e588e8eca1e226b
4,064
py
Python
tracer/main.py
LzVv123456/Deep-Reinforced-Tree-Traversal
8e117590c8cd51c9fc9c033232658876160fa638
[ "MIT" ]
20
2021-07-08T08:33:27.000Z
2022-01-14T03:27:35.000Z
tracer/main.py
abcxubu/Deep-Reinforced-Tree-Traversal
8e117590c8cd51c9fc9c033232658876160fa638
[ "MIT" ]
1
2021-10-01T12:39:11.000Z
2021-10-01T13:19:43.000Z
tracer/main.py
abcxubu/Deep-Reinforced-Tree-Traversal
8e117590c8cd51c9fc9c033232658876160fa638
[ "MIT" ]
3
2021-07-08T07:34:48.000Z
2022-01-10T11:41:59.000Z
import os import glob import yaml import torch import argparse from addict import Dict from dataset import * from init import * from utilities import * from train import * def parse_args(): parser = argparse.ArgumentParser(description='infer') parser.add_argument('--config', type=str, default='./tracer/train_...
37.62963
137
0.615404
0
0
0
0
0
0
0
0
657
0.161663
6c0605d359e470dbd90558cdc9d674b331db2e65
181
py
Python
tests/acceptance/__init__.py
datphan/moviecrab
e3bcff700b994388f1ded68d268a960b10d57a81
[ "BSD-3-Clause" ]
null
null
null
tests/acceptance/__init__.py
datphan/moviecrab
e3bcff700b994388f1ded68d268a960b10d57a81
[ "BSD-3-Clause" ]
null
null
null
tests/acceptance/__init__.py
datphan/moviecrab
e3bcff700b994388f1ded68d268a960b10d57a81
[ "BSD-3-Clause" ]
null
null
null
"""acceptance tests""" import unittest from nose.plugins.attrib import attr @attr('acc') class AcceptanceTestCase(unittest.TestCase): """Base AcceptanceTestCase""" pass
15.083333
44
0.729282
87
0.480663
0
0
100
0.552486
0
0
56
0.309392
6c0675ff607912b34920445802ae59f9d31371c8
4,222
py
Python
test/functional/bsv-protoconf.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
8
2019-08-02T02:49:42.000Z
2022-01-17T15:51:48.000Z
test/functional/bsv-protoconf.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
null
null
null
test/functional/bsv-protoconf.py
bxlkm1/yulecoin
3605faf2ff2e3c7bd381414613fc5c0234ad2936
[ "OML" ]
4
2019-08-02T02:50:44.000Z
2021-05-28T03:21:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin SV developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_f...
43.979167
143
0.709853
3,733
0.884178
0
0
0
0
0
0
1,235
0.292515
6c079626dca82782593d5d2bd1f2fb59f4206ddc
1,022
py
Python
apps/goods/migrations/0063_auto_20200108_1555.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
12
2020-02-01T01:52:01.000Z
2021-04-28T15:06:43.000Z
apps/goods/migrations/0063_auto_20200108_1555.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
5
2020-02-06T08:07:58.000Z
2020-06-02T13:03:45.000Z
apps/goods/migrations/0063_auto_20200108_1555.py
lianxiaopang/camel-store-api
b8021250bf3d8cf7adc566deebdba55225148316
[ "Apache-2.0" ]
11
2020-02-03T13:07:46.000Z
2020-11-29T01:44:06.000Z
# Generated by Django 2.1.8 on 2020-01-08 07:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0062_auto_20191205_1656'), ] operations = [ migrations.RenameField( model_name='replgoodstype', old_name='p...
29.2
103
0.589041
945
0.910405
0
0
0
0
0
0
213
0.205202
6c09b1ff084d1e9df9670c57209d4a2a65e97d3c
9,838
py
Python
actor_critic/trainer.py
zamlz/dlcampjeju2018-I2A-cube
85ae7a2084ca490ea685ff3d30e82720fb58c0ea
[ "MIT" ]
14
2018-07-19T03:56:45.000Z
2019-10-01T12:09:01.000Z
actor_critic/trainer.py
zamlz/dlcampjeju2018-I2A-cube
85ae7a2084ca490ea685ff3d30e82720fb58c0ea
[ "MIT" ]
null
null
null
actor_critic/trainer.py
zamlz/dlcampjeju2018-I2A-cube
85ae7a2084ca490ea685ff3d30e82720fb58c0ea
[ "MIT" ]
null
null
null
import gym import numpy as np import tensorflow as tf import time from actor_critic.policy import A2CBuilder from actor_critic.util import discount_with_dones, cat_entropy, fix_tf_name from common.model import NetworkBase from common.multiprocessing_env import SubprocVecEnv from tqdm import tqdm class ActorCritic(...
37.838462
102
0.593617
4,193
0.426205
0
0
0
0
0
0
1,321
0.134275
6c0bbff19246f88fe29603b2519f950e3178d9cc
23,504
py
Python
src/model_ode.py
fkhiro/kws-ode
5751f9b665511908b26e77f6ea5a97bf87823aab
[ "MIT" ]
5
2020-08-12T07:24:12.000Z
2022-02-23T14:04:16.000Z
src/model_ode.py
fkhiro/kws-ode
5751f9b665511908b26e77f6ea5a97bf87823aab
[ "MIT" ]
null
null
null
src/model_ode.py
fkhiro/kws-ode
5751f9b665511908b26e77f6ea5a97bf87823aab
[ "MIT" ]
1
2020-09-03T07:28:19.000Z
2020-09-03T07:28:19.000Z
from enum import Enum import hashlib import math import os import random import re from chainmap import ChainMap from torch.autograd import Variable import librosa import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data as data from .manage_audio import AudioPrepr...
35.185629
200
0.592282
17,743
0.754893
0
0
3,443
0.146486
0
0
2,705
0.115087
6c0d6af23938ca6fed73a619af2c2521273b4c43
7,642
py
Python
tests/test_snapshot.py
arkadiam/virt-backup
b3e8703ae3ab0f792f5d68913ecf5e7270acea46
[ "BSD-2-Clause-FreeBSD" ]
54
2019-06-21T23:29:02.000Z
2022-03-28T14:30:44.000Z
tests/test_snapshot.py
arkadiam/virt-backup
b3e8703ae3ab0f792f5d68913ecf5e7270acea46
[ "BSD-2-Clause-FreeBSD" ]
28
2019-08-18T01:01:25.000Z
2021-07-14T17:39:42.000Z
tests/test_snapshot.py
arkadiam/virt-backup
b3e8703ae3ab0f792f5d68913ecf5e7270acea46
[ "BSD-2-Clause-FreeBSD" ]
12
2019-07-12T10:16:03.000Z
2022-03-09T05:33:30.000Z
import json import os import arrow import libvirt import pytest from virt_backup.backups import DomBackup from virt_backup.domains import get_xml_block_of_disk from virt_backup.backups.snapshot import DomExtSnapshot, DomExtSnapshotCallbackRegistrer from virt_backup.exceptions import DiskNotFoundError, SnapshotNotStart...
36.390476
88
0.634258
7,272
0.951583
0
0
480
0.062811
0
0
1,349
0.176524
6c0dd11197119baf2f7c1d5775874b54734c6eff
554
py
Python
assets/tuned/daemon/tuned/profiles/functions/function_regex_search_ternary.py
sjug/cluster-node-tuning-operator
8654d1c9558d0d5ef03d14373c877ebc737f9736
[ "Apache-2.0" ]
53
2018-11-13T07:02:03.000Z
2022-03-25T00:00:04.000Z
assets/tuned/daemon/tuned/profiles/functions/function_regex_search_ternary.py
sjug/cluster-node-tuning-operator
8654d1c9558d0d5ef03d14373c877ebc737f9736
[ "Apache-2.0" ]
324
2018-10-02T14:18:54.000Z
2022-03-31T23:47:33.000Z
assets/tuned/daemon/tuned/profiles/functions/function_regex_search_ternary.py
sjug/cluster-node-tuning-operator
8654d1c9558d0d5ef03d14373c877ebc737f9736
[ "Apache-2.0" ]
54
2018-10-01T16:55:09.000Z
2022-03-28T13:56:53.000Z
import re from . import base class regex_search_ternary(base.Function): """ Ternary regex operator, it takes arguments in the following form STR1, REGEX, STR2, STR3 If REGEX matches STR1 (re.search is used), STR2 is returned, otherwise STR3 is returned """ def __init__(self): # 4 arguments super(regex_searc...
25.181818
74
0.725632
523
0.944043
0
0
0
0
0
0
224
0.404332
6c0ebaf57bf48ef4c5911547b83ac2a6a45fa5e9
905
py
Python
craft_ai/__init__.py
craft-ai/craft-ai-client-python
3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3
[ "BSD-3-Clause" ]
14
2016-08-26T07:06:57.000Z
2020-09-22T07:41:21.000Z
craft_ai/__init__.py
craft-ai/craft-ai-client-python
3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3
[ "BSD-3-Clause" ]
94
2016-08-02T14:07:59.000Z
2021-10-06T11:50:52.000Z
craft_ai/__init__.py
craft-ai/craft-ai-client-python
3d8b3d9a49c0c70964deaeb9645130dd54f9a0b3
[ "BSD-3-Clause" ]
8
2017-02-07T12:05:57.000Z
2021-10-14T09:45:30.000Z
__version__ = "2.4.3" from . import errors from .client import Client from .interpreter import Interpreter from .time import Time from .formatters import format_property, format_decision_rules from .reducer import reduce_decision_rules from .tree_utils import ( extract_decision_paths_from_tree, extract_decisio...
25.857143
75
0.764641
0
0
0
0
0
0
0
0
425
0.469613
6c0f4bbb43f54fa43e4df577a49de96ebd810921
969
py
Python
bitshares/aio/block.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
102
2018-04-08T23:05:00.000Z
2022-03-31T10:10:03.000Z
bitshares/aio/block.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
246
2018-04-03T12:35:49.000Z
2022-02-28T10:44:28.000Z
bitshares/aio/block.py
silverchen0402/python-bitshares
aafbcf5cd09e7bca99dd156fd60b9df8ba508630
[ "MIT" ]
128
2018-04-14T01:39:12.000Z
2022-03-25T08:56:51.000Z
# -*- coding: utf-8 -*- from .instance import BlockchainInstance from ..block import Block as SyncBlock, BlockHeader as SyncBlockHeader from graphenecommon.aio.block import ( Block as GrapheneBlock, BlockHeader as GrapheneBlockHeader, ) @BlockchainInstance.inject class Block(GrapheneBlock, SyncBlock): """...
25.5
75
0.721362
664
0.685243
0
0
718
0.74097
0
0
569
0.587203
6c0ff50a90211a83518224c4a9e7cb96da0fbca0
1,015
py
Python
DongbinNa/17/pt.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
DongbinNa/17/pt.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
DongbinNa/17/pt.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
# NxN 시험관, 바이러스 매 초 상하좌우로 증식, 낮은 번호의 바이러스부터 우선순위 # 시간동안(for) 낮은 번호부터 증식 시작. 바이러스가 있거나 matrix 범위 이상이면 stop. # 바이러스 종류별 좌표 추가 n, k = map(int, input().split()) matrix = [] for _ in range(n): matrix.append(list(map(int, input().split()))) s, x, y = map(int, input().split()) # 상 하 좌 우 dx = [-1, 1, 0, 0] # 위아래 dy = [0...
23.604651
57
0.519212
0
0
0
0
0
0
0
0
362
0.305485
6c11ff715822a78e65219cb047fa20aeb18248ac
7,843
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/pavelib/i18n.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/pavelib/i18n.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/pavelib/i18n.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2022-02-06T10:48:15.000Z
2022-02-06T10:48:15.000Z
""" Internationalization tasks """ import re import subprocess import sys from path import Path as path from paver.easy import cmdopts, needs, sh, task from .utils.cmd import django_cmd from .utils.envs import Env from .utils.timer import timed try: from pygments.console import colorize except ImportError: ...
23.694864
99
0.651409
0
0
0
0
5,932
0.756343
0
0
4,836
0.616601
6c1262e89c4802e8d7e590c6c84ac0e62c5a4169
2,020
py
Python
sympy/parsing/autolev/test-examples/ruletest9.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/parsing/autolev/test-examples/ruletest9.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/parsing/autolev/test-examples/ruletest9.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
import sympy.physics.mechanics as _me import sympy as _sm import math as m import numpy as _np frame_n = _me.ReferenceFrame('n') frame_a = _me.ReferenceFrame('a') a = 0 d = _me.inertia(frame_a, 1, 1, 1) point_po1 = _me.Point('po1') point_po2 = _me.Point('po2') particle_p1 = _me.Particle('p1', _me.Point('p1_...
36.071429
113
0.688119
0
0
0
0
0
0
0
0
137
0.067822
6c137c12cabff00b49311cbc274302f573ef641a
3,830
py
Python
tests/test_asm_stats.py
hall-lab/tenx-gcp
f204e60cc5efb543a524df9cdbd44d0a8c590673
[ "MIT" ]
null
null
null
tests/test_asm_stats.py
hall-lab/tenx-gcp
f204e60cc5efb543a524df9cdbd44d0a8c590673
[ "MIT" ]
null
null
null
tests/test_asm_stats.py
hall-lab/tenx-gcp
f204e60cc5efb543a524df9cdbd44d0a8c590673
[ "MIT" ]
null
null
null
import filecmp, os, tempfile, unittest from click.testing import CliRunner from tenx.asm_stats import asm_stats_cmd, get_contig_lengths, get_scaffold_and_contig_lengths, get_stats, length_buckets class AsmStatsTest(unittest.TestCase): def setUp(self): self.data_dn = os.path.join(os.path.dirname(__file__),...
40.315789
120
0.629243
3,539
0.924021
0
0
0
0
0
0
430
0.112272
6c1416cedaf37318b018aae01bda9b0f41f3ed30
3,435
py
Python
utils.py
zexihuang/raft-blockchain
a2f7365e10f5a5334c59bac6b551648bae04e2e8
[ "Apache-2.0" ]
1
2021-06-04T03:05:06.000Z
2021-06-04T03:05:06.000Z
utils.py
zexihuang/raft-blockchain
a2f7365e10f5a5334c59bac6b551648bae04e2e8
[ "Apache-2.0" ]
null
null
null
utils.py
zexihuang/raft-blockchain
a2f7365e10f5a5334c59bac6b551648bae04e2e8
[ "Apache-2.0" ]
null
null
null
import socket import pickle import random import string import time import hashlib import os BUFFER_SIZE = 65536 def send_message(msg, port): # Setup socket for the user to be send s_temp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s_temp.connect((socket.gethostname(), port)) # encode and se...
32.714286
115
0.616885
0
0
0
0
0
0
0
0
503
0.146434
6c14181d8879fcc2609ab9415e7fe2cdbb328098
3,850
py
Python
api/data_refinery_api/test/test_dataset_stats.py
AlexsLemonade/refinebio
52f44947f902adedaccf270d5f9dbd56ab47e40a
[ "BSD-3-Clause" ]
106
2018-03-05T16:24:47.000Z
2022-03-19T19:12:25.000Z
api/data_refinery_api/test/test_dataset_stats.py
AlexsLemonade/refinebio
52f44947f902adedaccf270d5f9dbd56ab47e40a
[ "BSD-3-Clause" ]
1,494
2018-02-27T17:02:21.000Z
2022-03-24T15:10:30.000Z
api/data_refinery_api/test/test_dataset_stats.py
AlexsLemonade/refinebio
52f44947f902adedaccf270d5f9dbd56ab47e40a
[ "BSD-3-Clause" ]
15
2019-02-03T01:34:59.000Z
2022-03-29T01:59:13.000Z
import json from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from data_refinery_api.test.test_api_general import API_VERSION from data_refinery_common.models import ( Experiment, ExperimentOrganismAssociation, ExperimentSampleAssociation, Or...
32.627119
100
0.647013
3,505
0.91039
0
0
0
0
0
0
429
0.111429
6c15bfba4b8c0e66ef69eb440d0dc33cc1bed1d7
4,804
py
Python
hetzner_fix_report/hetzner_fix_report.py
flxai/hetzner-fix-report
ab484a3463ed0efc6f14ebd7b45d1b2c1281fb0b
[ "MIT" ]
2
2020-06-20T21:50:38.000Z
2020-06-22T08:37:11.000Z
hetzner_fix_report/hetzner_fix_report.py
flxai/hetzner-fix-report
ab484a3463ed0efc6f14ebd7b45d1b2c1281fb0b
[ "MIT" ]
4
2020-07-01T21:59:08.000Z
2020-07-05T11:33:59.000Z
hetzner_fix_report/hetzner_fix_report.py
flxai/hetzner-fix-report
ab484a3463ed0efc6f14ebd7b45d1b2c1281fb0b
[ "MIT" ]
null
null
null
import pdftotext import sys import numpy as np import pandas as pd import regex as re def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def get_server_type(server_type_str): """Check wether string is contained""" server_type_list = server_type_str.split(' ') if len(server_type_li...
32.90411
118
0.59159
0
0
0
0
0
0
0
0
1,574
0.327235
6c16620f0a89c9e70bfae221558f9859765dc5b0
3,705
py
Python
src/random_forest.py
rrozema12/Data-Mining-Final-Project
4848f3daed4b75879b626c5dc460e8dbd70ae861
[ "MIT" ]
1
2018-02-04T01:10:20.000Z
2018-02-04T01:10:20.000Z
src/random_forest.py
rrozema12/Data-Mining-Final-Project
4848f3daed4b75879b626c5dc460e8dbd70ae861
[ "MIT" ]
null
null
null
src/random_forest.py
rrozema12/Data-Mining-Final-Project
4848f3daed4b75879b626c5dc460e8dbd70ae861
[ "MIT" ]
null
null
null
# random_forest.py # does the random forest calcutlaions import decision_tree import partition import heapq import table_utils import classifier_util from homework_util import strat_folds def run_a_table(table, indexes, class_index, N, M, F): """ Takes a table, splits it into a training and test set. Creates a ...
35.970874
90
0.691768
0
0
0
0
0
0
0
0
1,938
0.523077
6c1838a55b525f71872539fcbbf11141e0709474
5,682
py
Python
model_converter/test_freeze_pb.py
zhangmifigo/MobileDeepPill
270538494488767a7fb36e237b72212be5cf4f45
[ "MIT" ]
4
2020-03-23T20:27:24.000Z
2021-08-12T20:23:53.000Z
model_converter/test_freeze_pb.py
zhangmifigo/MobileDeepPill
270538494488767a7fb36e237b72212be5cf4f45
[ "MIT" ]
null
null
null
model_converter/test_freeze_pb.py
zhangmifigo/MobileDeepPill
270538494488767a7fb36e237b72212be5cf4f45
[ "MIT" ]
3
2019-10-14T07:56:05.000Z
2020-03-23T20:27:27.000Z
import tensorflow as tf from tensorflow.python.framework import graph_util from tensorflow.contrib.slim.python.slim.nets import alexnet from tensorflow.python.ops import random_ops from tensorflow.python.tools import optimize_for_inference_lib from tensorflow.python.framework import dtypes from tensorflow.core.framewor...
36.896104
129
0.707673
0
0
0
0
0
0
0
0
1,447
0.254664
6c184b2174364e3e55c83631e166cd7d528e99e1
60
py
Python
app/comic/container_exec/__init__.py
EYRA-Benchmark/grand-challenge.org
8264c19fa1a30ffdb717d765e2aa2e6ceccaab17
[ "Apache-2.0" ]
2
2019-06-28T09:23:55.000Z
2020-03-18T05:52:13.000Z
app/comic/container_exec/__init__.py
EYRA-Benchmark/comic
8264c19fa1a30ffdb717d765e2aa2e6ceccaab17
[ "Apache-2.0" ]
112
2019-08-12T15:13:27.000Z
2022-03-21T15:49:40.000Z
app/comic/container_exec/__init__.py
EYRA-Benchmark/grand-challenge.org
8264c19fa1a30ffdb717d765e2aa2e6ceccaab17
[ "Apache-2.0" ]
1
2020-03-19T14:19:57.000Z
2020-03-19T14:19:57.000Z
default_app_config = "comic.container_exec.apps.CoreConfig"
30
59
0.85
0
0
0
0
0
0
0
0
38
0.633333
6c186e241fa2559c5801595eef7a0db1d8af608a
18,320
py
Python
run.py
RafaelCenzano/Corona-Virus-Email-Updater
2d5bc071ab21fe8df358689862a019d400c73cd5
[ "MIT" ]
3
2020-03-10T13:52:37.000Z
2020-03-15T17:19:39.000Z
run.py
RafaelCenzano/Corona-Virus-Email-Updater
2d5bc071ab21fe8df358689862a019d400c73cd5
[ "MIT" ]
null
null
null
run.py
RafaelCenzano/Corona-Virus-Email-Updater
2d5bc071ab21fe8df358689862a019d400c73cd5
[ "MIT" ]
2
2020-03-10T13:52:29.000Z
2022-01-13T19:58:28.000Z
import requests import json import os from bs4 import BeautifulSoup as bs from secret import * from smtplib import SMTP from datetime import datetime from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart def maths(num1, num2, num3=None): num1 = int(''.join(num1.split(','))) num2 ...
41.922197
177
0.593177
0
0
0
0
0
0
0
0
11,197
0.61119
6c19d7164f4d767fbe5d4431bf900ccb1c4a00d6
6,494
py
Python
Machine_Learning/Feature_Tutorials/04-tensorflow-ai-optimizer/files/application/app_mt.py
dankernel/Vitis-Tutorials
558791a2350327ea275917db890797a895d0fac2
[ "Apache-2.0" ]
null
null
null
Machine_Learning/Feature_Tutorials/04-tensorflow-ai-optimizer/files/application/app_mt.py
dankernel/Vitis-Tutorials
558791a2350327ea275917db890797a895d0fac2
[ "Apache-2.0" ]
null
null
null
Machine_Learning/Feature_Tutorials/04-tensorflow-ai-optimizer/files/application/app_mt.py
dankernel/Vitis-Tutorials
558791a2350327ea275917db890797a895d0fac2
[ "Apache-2.0" ]
null
null
null
''' Copyright 2020 Xilinx Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
29.788991
172
0.647213
0
0
0
0
0
0
0
0
3,047
0.469202
6c1b6ee9b212e08f8648b06179fcaaa04a11d3e2
545
py
Python
photos/migrations/0008_image_post.py
adriankiprono/imstragram_project
c4935ad745987fb53b62d116c3bc2faff20927ce
[ "MIT" ]
null
null
null
photos/migrations/0008_image_post.py
adriankiprono/imstragram_project
c4935ad745987fb53b62d116c3bc2faff20927ce
[ "MIT" ]
4
2020-06-06T00:31:39.000Z
2022-03-12T00:10:52.000Z
photos/migrations/0008_image_post.py
adriankiprono/instragram_project
c4935ad745987fb53b62d116c3bc2faff20927ce
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-01-07 07:56 import datetime from django.db import migrations from django.utils.timezone import utc import tinymce.models class Migration(migrations.Migration): dependencies = [ ('photos', '0007_auto_20200107_1022'), ] operations = [ migrations.AddField(...
23.695652
113
0.638532
386
0.708257
0
0
0
0
0
0
91
0.166972
6c1bc99ed022294f204e51cb23b911f2274cbb0b
525
py
Python
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_replicant
cadd8dcb3fb1382adf39479cdd9bc7463f269fa0
[ "BSD-3-Clause" ]
12
2020-03-27T13:15:54.000Z
2022-03-25T14:22:26.000Z
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_f1
08b7be7162719b92b4796f18b0caad263f90ea2f
[ "BSD-3-Clause" ]
255
2019-05-10T01:08:51.000Z
2020-01-29T18:45:32.000Z
examples/cuda/bfs/py/vcache.py
bespoke-silicon-group/bsg_replicant
cadd8dcb3fb1382adf39479cdd9bc7463f269fa0
[ "BSD-3-Clause" ]
8
2020-02-21T18:28:34.000Z
2021-07-24T00:22:29.000Z
from vcache_utils import VCacheStats from bfs_common import BFSParameters import sys import pandas as pd class BFSVCacheStats(VCacheStats): def _subclass_init_add_group_by_fields(self): self._parameters = BFSParameters(self.filename) self._parameters.updateDataFrame(self._data) self._group_...
29.166667
60
0.76381
269
0.512381
0
0
0
0
0
0
20
0.038095
6c1bdfa67d70b8200b8f300c42147c7b6f88c84a
14,511
py
Python
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
1
2019-12-09T17:41:09.000Z
2019-12-09T17:41:09.000Z
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
2
2019-09-26T13:49:56.000Z
2020-08-06T15:10:17.000Z
fgread/read.py
FASTGenomics/jupyter-fgread-py
400eb54e2376a8a3afaa674397617fa64c33a280
[ "MIT" ]
null
null
null
import json import logging import re from pathlib import Path from typing import Optional, Union import pandas as pd from . import DOCSURL, DS_URL_PREFIX, readers # configure logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.INFO) logger.addHa...
32.175166
145
0.591551
90
0.006202
0
0
0
0
0
0
6,685
0.460685
6c1c01b8e3b61397e1a5842a61751e502b73a43e
487
py
Python
final.py
Georgejj123/Final
a5beeb873321446e53a1c0859c0b10bf240a0dcd
[ "MIT" ]
null
null
null
final.py
Georgejj123/Final
a5beeb873321446e53a1c0859c0b10bf240a0dcd
[ "MIT" ]
null
null
null
final.py
Georgejj123/Final
a5beeb873321446e53a1c0859c0b10bf240a0dcd
[ "MIT" ]
null
null
null
# This program rolls two dices and prints what you got # We set two variables (min and max) , lowest and highest number of the dice. import random min = 1 max = 6 roll_again = "yes" # We then use a while loop, so that the user can roll the dice again. while roll_again == "yes" or roll_again == "y": print "Roll...
27.055556
78
0.689938
0
0
0
0
0
0
0
0
275
0.564682
6c1cbdba3744243c1b45fcbc2d0b6115c7a3d106
1,584
py
Python
Script's/04 - Generadores/Generadores Basicos.py
CamiloBallen24/Python-PildorasInformaticas
a734ac064e34b01a2f64080d5391625a5de77f54
[ "Apache-2.0" ]
null
null
null
Script's/04 - Generadores/Generadores Basicos.py
CamiloBallen24/Python-PildorasInformaticas
a734ac064e34b01a2f64080d5391625a5de77f54
[ "Apache-2.0" ]
null
null
null
Script's/04 - Generadores/Generadores Basicos.py
CamiloBallen24/Python-PildorasInformaticas
a734ac064e34b01a2f64080d5391625a5de77f54
[ "Apache-2.0" ]
1
2019-06-04T19:51:05.000Z
2019-06-04T19:51:05.000Z
#TEMA:GENERADORES ###################################################################### #Funcion que me regresa un numero determinado de numeros pares def generaParesFuncion(limite): num=1 miLista=[] while num<limite: miLista.append(num*2) num = num+1 return miLista ########################################...
21.12
71
0.395202
0
0
81
0.051136
0
0
0
0
964
0.608586
6c1cda3f913ecea499264b75e17f95a35ff6a498
443
py
Python
lantz/qt/widgets/__init__.py
mtsolmn/lantz-qt
72cb16bd3aafe33caa1a822ac2ba98b3425d4420
[ "BSD-3-Clause" ]
1
2020-05-13T08:29:16.000Z
2020-05-13T08:29:16.000Z
lantz/qt/widgets/__init__.py
mtsolmn/lantz-qt
72cb16bd3aafe33caa1a822ac2ba98b3425d4420
[ "BSD-3-Clause" ]
null
null
null
lantz/qt/widgets/__init__.py
mtsolmn/lantz-qt
72cb16bd3aafe33caa1a822ac2ba98b3425d4420
[ "BSD-3-Clause" ]
3
2019-09-24T16:49:10.000Z
2020-09-23T17:53:20.000Z
# -*- coding: utf-8 -*- """ lantz.qt.widgets ~~~~~~~~~~~~~~~~ PyQt widgets wrapped to work with lantz. :copyright: 2018 by Lantz Authors, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from . import feat, nonnumeric, numeric from .common import WidgetMixin, Childr...
27.6875
68
0.711061
0
0
0
0
0
0
0
0
237
0.534989
6c1dc30f32a47cfe9ea5fa235e76eff1529c75dd
4,368
py
Python
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
34
2017-10-24T15:04:02.000Z
2021-09-05T17:46:43.000Z
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
8
2017-12-18T21:53:08.000Z
2021-06-01T21:24:31.000Z
iotapy/storage/providers/types/transaction_metadata.py
aliciawyy/iota-python
b8d421acf94ccd9e7374f799fbe496f6d23e3cf3
[ "MIT" ]
11
2017-12-18T22:02:29.000Z
2020-11-10T17:58:22.000Z
# -*- coding: utf-8 -*- import struct import iota from iotapy.storage import converter as conv TRANSACTION_METADATA_TRITS_LENGTH = 1604 HASH_BYTES_LENGTH = 49 HASH_TRITS_LENGTH = 243 def get_key(bytes_: bytes): # Convert key bytes to iota.TransactionHash if not isinstance(bytes_, bytes): raise Type...
35.225806
123
0.66163
0
0
0
0
0
0
0
0
470
0.107601
6c1f737d01ed462f9d3028ca12a6e4e32ea970ac
22,271
py
Python
OC/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
2
2021-04-12T02:41:00.000Z
2021-05-15T02:18:15.000Z
OC/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
OC/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import tensorflow as tf import tensorflow.contrib.slim as slim seed = 0 def fc2d(inputs, num_outputs, activation_fn, scope, ): with tf.variable_scope(scope, reuse=tf.AUTO_REUSE) as s: n0, n1, n2 = inputs.get_shape().as_list() weights = tf.get_var...
55.6775
140
0.504917
20,347
0.91361
0
0
0
0
0
0
1,052
0.047236
6c1f784f7fc92dd4f1d6302efb41edae068a6f5e
5,980
py
Python
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
Student Database/last.py
manas1410/Miscellaneous-Development
8ffd2b586cb05b12ed0855d97c3015c8bb2a6c01
[ "MIT" ]
null
null
null
from tkinter import* import website import tkinter.font as font from PIL import ImageTk,Image import os import sqlite3 import webbrowser def main(): cgnc=Tk() cgnc.title('Show') cgnc.iconbitmap("logo/spectrumlogo.ico") f=font.Font(family='Bookman Old Style',size=10,weight='bold') f1=fo...
30.824742
133
0.533779
0
0
0
0
0
0
0
0
1,307
0.218562
6c1ff08cd085c626e8f3f1328f189116ff83820d
4,650
py
Python
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
1
2021-09-28T00:09:18.000Z
2021-09-28T00:09:18.000Z
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
null
null
null
app/main.py
govdirectory/health-check-service
c32e1055e1c755fdb03e2786dc0a157697250421
[ "CC0-1.0" ]
null
null
null
import requests from typing import List from fastapi import FastAPI, Path from pydantic import BaseModel, HttpUrl from fastapi.middleware.cors import CORSMiddleware cors_origins = [ 'https://www.govdirectory.org', 'https://www.wikidata.org', ] user_agent_external = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; r...
29.807692
170
0.543871
94
0.020215
0
0
1,798
0.386667
1,751
0.376559
1,872
0.402581
6c2088e0cf4acb484abbd57109fedff77aded588
569
py
Python
lie2me/fields/password.py
hugollm/lie2me
c3b47e88264a32c10c893368987c4d8a3df054d9
[ "MIT" ]
null
null
null
lie2me/fields/password.py
hugollm/lie2me
c3b47e88264a32c10c893368987c4d8a3df054d9
[ "MIT" ]
null
null
null
lie2me/fields/password.py
hugollm/lie2me
c3b47e88264a32c10c893368987c4d8a3df054d9
[ "MIT" ]
null
null
null
from ..field import Field class Password(Field): min = None max = None messages = { 'min': 'Must be at least {min} characters long.', 'max': 'Must have no more than {max} characters.', } def is_empty(self, value): return value is None or value is '' def validate(sel...
23.708333
58
0.567663
540
0.949033
0
0
0
0
0
0
105
0.184534
6c21574006d86d8b50934be4fe7a2c2e0d87d074
5,933
py
Python
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
9
2017-10-21T13:29:46.000Z
2022-01-10T23:49:54.000Z
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
3
2018-01-09T11:28:55.000Z
2019-01-20T08:45:18.000Z
src/szz/manipulate_sql_tables/add_depth_to_BTE_table.py
dSar-UVA/repoMiner
8f75074e388ff13419a0a37b4337c0cdcb459f74
[ "BSD-3-Clause" ]
1
2020-12-29T05:10:31.000Z
2020-12-29T05:10:31.000Z
""" This script adds a specific column to the `bug_type_entropy_projectname_old` tables. The added column contains the nesting depth (>=0) of each line. """ import os, sys, psycopg2, ntpath, traceback, subprocess from pprint import pprint #-------------------------------------------------------------------------------...
40.917241
148
0.539019
0
0
0
0
0
0
0
0
3,008
0.506995
6c21d95c779b91777f1c1e4c2f9a294fa6bd8d6e
10,862
py
Python
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
tools/ProjectionTools/Lidar2RGB/lib/utils.py
ladt/SeeingThroughFog
c714a4c3e8f8e604494b1db6e9eef529b0326405
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import cv2 import scipy.spatial from sklearn.linear_model import RANSACRegressor import os import sys import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parent...
39.498182
147
0.612042
0
0
0
0
0
0
0
0
2,304
0.212116
6c221044ede7be29a963c10b013a344a5da5c962
2,221
py
Python
menu.py
RandelSouza/Space_Invaders
d266662a84b2324fd398fbb31b3f0a2004b40c99
[ "MIT" ]
null
null
null
menu.py
RandelSouza/Space_Invaders
d266662a84b2324fd398fbb31b3f0a2004b40c99
[ "MIT" ]
null
null
null
menu.py
RandelSouza/Space_Invaders
d266662a84b2324fd398fbb31b3f0a2004b40c99
[ "MIT" ]
null
null
null
from setup import * import pygame, sys, os from pygame.locals import * class Menu( object ): def __init__( self ): self.init = pygame.init() self.font = pygame.font.Font(None, 80) self.screen = pygame.display.set_mode( [ LARGURA, ALTURA ] ) self.background = pygame.image.load( "im...
34.169231
112
0.547951
2,148
0.967132
0
0
0
0
0
0
238
0.107159
6c22c119dc085d095980f04411cdc49210dadf86
459
py
Python
investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
1
2019-12-23T21:23:45.000Z
2019-12-23T21:23:45.000Z
investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
null
null
null
investing_algorithm_framework/app/stateless/action_handlers/check_online_handler.py
investing-algorithms/investing-algorithm-framework
d579e142a3857e2e2dfb59b7d6e54202f7df5466
[ "Apache-2.0" ]
1
2019-12-23T21:23:50.000Z
2019-12-23T21:23:50.000Z
import json from investing_algorithm_framework.app.stateless.action_handlers \ .action_handler_strategy import ActionHandlerStrategy class CheckOnlineHandler(ActionHandlerStrategy): MESSAGE = {"message": "online"} def handle_event(self, payload, algorithm_context): return { "statusCod...
30.6
66
0.690632
319
0.694989
0
0
0
0
0
0
76
0.165577
6c239288cab4c6c0e0a6b09c9cc9d94248d11f8f
20,757
py
Python
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
1
2020-11-08T07:38:58.000Z
2020-11-08T07:38:58.000Z
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
null
null
null
main.py
AniruddhaGawali/Hand_Cricket
71fcf5ffa49dbfcfdfceba9784d88c5adfd0fccb
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------ALL REQUIRD FILES------------------------------------------------------------- from tkinter import * import tkinter.ttk as ttk import tkinter.messagebox as msg import tkinter.filedialog as tf from ttkthemes import ThemedStyle from PIL import Image, Image...
36.803191
158
0.620321
0
0
0
0
0
0
0
0
5,431
0.261647
6c24371f8f3543e387962e5276370824b85090e5
108
py
Python
model/__init__.py
SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring
a103d4d4811c7b359f07e34aeb69fa7637adae35
[ "MIT" ]
null
null
null
model/__init__.py
SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring
a103d4d4811c7b359f07e34aeb69fa7637adae35
[ "MIT" ]
1
2017-08-29T13:08:18.000Z
2017-08-29T13:08:18.000Z
model/__init__.py
SunnyMarkLiu/Kaggle_Invasive_Species_Monitoring
a103d4d4811c7b359f07e34aeb69fa7637adae35
[ "MIT" ]
null
null
null
#!/usr/local/miniconda2/bin/python # _*_ coding: utf-8 _*_ """ @author: MarkLiu @time : 17-6-19 下午8:44 """
15.428571
34
0.62963
0
0
0
0
0
0
0
0
109
0.973214
6c26670f1bac191aee07007494c6fa726372a36b
11,451
py
Python
Game/game_functions.py
Gabriel-limadev/Alien-Invasion
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
3
2021-09-11T16:35:20.000Z
2021-09-25T02:42:04.000Z
Game/game_functions.py
Gabriel-limadev/Invasao-Alienigena
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
null
null
null
Game/game_functions.py
Gabriel-limadev/Invasao-Alienigena
1b8b1ad7dfe9cf5cd99ff0595eedf3eb78953eaf
[ "MIT" ]
1
2022-02-28T01:06:15.000Z
2022-02-28T01:06:15.000Z
import sys #Fornece funções e variáveis para manipular partes do ambiente de tempo de execução do Python from time import sleep import pygame from settings import Settings from game_stats import GameStats from bullet import Bullet from alien import Alien def check_keydown_events(event, ai_settings, screen, stats, sb...
36.352381
117
0.687189
0
0
0
0
0
0
0
0
3,686
0.320021
6c27c7aa14b6a3a742020fc655ba28804b70f883
98
py
Python
rover-stub/accelsensor.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
3
2018-02-13T21:39:55.000Z
2018-04-26T18:17:39.000Z
rover-stub/accelsensor.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
null
null
null
rover-stub/accelsensor.py
GamesCreatorsClub/GCC-Rover
25a69f62a1bb01fc421924ec39f180f50d6a640b
[ "MIT" ]
null
null
null
# # Copyright 2016-2017 Games Creators Club # # MIT License # from sonarsensor_service import *
10.888889
41
0.744898
0
0
0
0
0
0
0
0
57
0.581633
6c2a16cd533af1320b7486ce971ab489987fbb0b
806
py
Python
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
CelestialMechanics/mu.py
Camiloasc1/AstronomyUNAL
0d533c1737e5328605c70f614024e1759e8d0962
[ "MIT" ]
null
null
null
import numpy as np from CelestialMechanics.kepler.constants import K def mu_sun(m2_over_m1: float) -> float: """ mu = k * sqrt(1 + m2/m1) :param m2_over_m1: :type m2_over_m1: :return: mu :rtype: float """ mu = K * np.sqrt(1. + m2_over_m1) return mu * mu def mu_na(n: float, a: ...
16.791667
49
0.545906
0
0
0
0
0
0
0
0
441
0.547146
6c2ea613a50a1e1e9624048d804bb8ed4e0017dd
3,276
py
Python
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
1
2019-05-07T13:03:10.000Z
2019-05-07T13:03:10.000Z
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
null
null
null
herbstluftwm/hl_panel_content.py
FAUSheppy/config
998e13f71a4b48c60f645470631cf937586be2fd
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import hl_utils from hl_constants import * import string import re from datetime import datetime def guthaben(): guthaben = '' if hl_utils.is_cip(): raw = "" with open(hl_utils.hlpath(PRINT_LOG)) as f: raw = f.read(); ...
31.2
100
0.501832
0
0
0
0
0
0
0
0
325
0.099206
6c2eba18adaa6d56cede8b191f75d6ce31f0cf4f
1,368
py
Python
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
views.py
vigilcommunity/mega-project
09a44c76170c71ee4c1d206fb0942b72c65ff45f
[ "MIT" ]
null
null
null
import datetime from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from vigil_ctf_app.EmailBackEnd import EmailBackEnd #Authentication views ONLY...
29.106383
120
0.710526
0
0
0
0
0
0
0
0
239
0.174708
6c2f5071a275540f672417776634a7f3cf12f94d
19,223
py
Python
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
3
2021-04-21T16:06:51.000Z
2022-03-31T12:09:01.000Z
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
1
2021-02-04T07:48:16.000Z
2021-02-24T23:01:41.000Z
graph-measures/features_algorithms/vertices/motifs.py
Unknown-Data/QGCN
e074ada31c13b6de6eabba2b2ebce90e88fdfdbf
[ "MIT" ]
null
null
null
import os import pickle from functools import partial from itertools import permutations, combinations import networkx as nx import numpy as np from bitstring import BitArray from collections import Counter try: from graph_measures.features_infra.feature_calculators import NodeFeatureCalculator, Featur...
41.78913
121
0.572179
13,597
0.70733
6,806
0.354055
317
0.016491
0
0
6,708
0.348957
6c313c1861eaf709490f1bb0d7760b28295d8922
2,885
py
Python
src/PostProcessing.py
PedroCardouzo/XML_Analyzer
aa4d9069f65aed927d7ecdc59ad36f823abc4c0c
[ "MIT" ]
null
null
null
src/PostProcessing.py
PedroCardouzo/XML_Analyzer
aa4d9069f65aed927d7ecdc59ad36f823abc4c0c
[ "MIT" ]
null
null
null
src/PostProcessing.py
PedroCardouzo/XML_Analyzer
aa4d9069f65aed927d7ecdc59ad36f823abc4c0c
[ "MIT" ]
null
null
null
from src import XMLAnalyzerException import lxml.etree as ET from src.Structures import * from src import XMLFilter from src import XMLUtil import constants import re from src.xml_decoder import html_entitize def apply_all(xml, post_processes): for post_process in post_processes: xml = apply(xml, post_proc...
32.784091
121
0.609359
0
0
0
0
0
0
0
0
468
0.162218
6c31ccf0bc17c144c7bcad4490fb8229ffccbad2
4,954
py
Python
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
sigpy/mri/rf/sim.py
jonbmartin/sigpy-rf-staging
1be409a1ce0799574f1a979044b02fe21a19bf5d
[ "BSD-3-Clause" ]
null
null
null
"""RF Pulse Simulation Functions. """ from sigpy import backend __all__ = ['abrm', 'abrm_nd', 'abrm_hp'] def abrm(rf, x, balanced=False): r"""1D RF pulse simulation, with simultaneous RF + gradient rotations. Args: rf (array): rf waveform input. x (array): spatial locations. bala...
30.207317
79
0.489705
0
0
0
0
0
0
0
0
2,220
0.448123
6c31d41587961f18210049838ec530657f3a5618
821
py
Python
lint.py
fmacpro/apache-virtualhost-configuration-examples
4c341ccb96c2e17cb9063bf1cae342ad4ee72e26
[ "MIT" ]
null
null
null
lint.py
fmacpro/apache-virtualhost-configuration-examples
4c341ccb96c2e17cb9063bf1cae342ad4ee72e26
[ "MIT" ]
null
null
null
lint.py
fmacpro/apache-virtualhost-configuration-examples
4c341ccb96c2e17cb9063bf1cae342ad4ee72e26
[ "MIT" ]
null
null
null
#!/usr/bin/env python # apachelint - simple tool to cleanup apache conf files # USAGE: apachelint [conffile] # -*-Python-*- import sys import re filename = sys.argv[1] indentlevel = 0 indentstep = 4 prevlineblank = False with open(filename) as f: for line in f: # strip leading & trailing space / line en...
22.805556
55
0.528624
0
0
0
0
0
0
0
0
221
0.269184
6c3476c6da1a1f1dd98c6128ba3f0c07c7db39ea
931
py
Python
spefit/common/basic.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
spefit/common/basic.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
spefit/common/basic.py
watsonjj/spefit
7a3931c5a59e43a73e2e48fe3cd352e20a706460
[ "BSD-3-Clause" ]
null
null
null
"""Vectorized math formulae""" from numba import vectorize, int64, float64 from math import lgamma, exp, isnan, log __all__ = ["binom", "xlogy"] @vectorize([float64(int64, int64)], fastmath=True) def binom(n, k): """Obtain the binomial coefficient, using a definition that is mathematically equivalent but num...
29.09375
81
0.657358
0
0
0
0
779
0.836735
0
0
539
0.578947
6c35a72377a5c784fe27610ba9ce572e4beeb277
1,171
py
Python
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
main.py
Yash7689/copy-data-from-1-txt-to-another
1ab88c89209088b04c2105c5db4342029a079219
[ "Apache-2.0" ]
null
null
null
# @Copyright [2021] [Yash Bajaj] import fileinput as fi # This module replaces the word <|SPACE|> with a new line (code line 18) def writer(): with open("c:/PycharmProjects/copy_data_from_1_file_to_another/input.txt", "w") as writer: data = input("Whatever you will write will be present in input.txt - ") ...
37.774194
123
0.681469
0
0
0
0
0
0
0
0
738
0.630231