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
4a37446fd29ea2b6044d47c4ec0b0027825d51e4
2,623
py
Python
tests/unit/app/test_session.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/app/test_session.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
tests/unit/app/test_session.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
import pytest from whylogs.app.session import get_or_create_session, get_session, get_logger, reset_default_session, session_from_config from whylogs.app.config import SessionConfig from whylogs.app.session import Session from pandas import util def test_get_global_session(): _session = None session = get_o...
26.23
122
0.716737
0
0
0
0
0
0
0
0
157
0.059855
4a379f8a8c2abcf1cc5791849c692674276f7e20
851
py
Python
Packages/constants.py
Bemesko/Intelligence-of-Home-GUI
4580d2d2a6b5f3509e2e0897fd0c9952711ccd2b
[ "MIT" ]
null
null
null
Packages/constants.py
Bemesko/Intelligence-of-Home-GUI
4580d2d2a6b5f3509e2e0897fd0c9952711ccd2b
[ "MIT" ]
null
null
null
Packages/constants.py
Bemesko/Intelligence-of-Home-GUI
4580d2d2a6b5f3509e2e0897fd0c9952711ccd2b
[ "MIT" ]
null
null
null
import enum BASELINE = "baseline" ENERGY = "energy" MAX_PRICE = "max_price" START_PRICE = "starting_price" INCREMENT = "increment" MIN_PRICE = "min_price" MAX_LOT_SIZE = "max_lot_size_wh" NAMESERVER_AGENT_AMOUNT = 3 ATTRIBUTE_LIST_LENGTH = 50 NEXT_ENERGY_CONSUMPTION = "next_energy_consumption" NEXT_ENERGY_GENERATION ...
24.314286
57
0.788484
174
0.204465
0
0
0
0
0
0
288
0.338425
4a37bdd049a40072735c67bea9e8cc13a3a7a335
1,553
py
Python
target/tests.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
19
2018-01-28T14:35:40.000Z
2020-12-04T03:04:02.000Z
target/tests.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
8
2018-06-02T14:28:28.000Z
2021-08-06T10:22:37.000Z
target/tests.py
groundupnews/gu
c7179ee3d058c8749d250d681032a76dc8d599d5
[ "BSD-3-Clause" ]
21
2018-02-25T14:07:48.000Z
2020-05-28T23:10:52.000Z
from django.contrib.auth.models import User from django.test import TestCase from django.test import Client from django.urls import reverse from target import models from django.utils import timezone # Create your tests here. class URLSWork(TestCase): @classmethod def setUpTestData(cls): target = mod...
33.76087
78
0.63812
1,324
0.852543
0
0
235
0.15132
0
0
186
0.119768
4a38f4cdb8c158390444f36146a5ad23b2ae9c67
4,998
py
Python
jenkinsapi/view.py
julienduchesne/jenkinsapi
369dc54a8d5bb1f4e985c647378b9e1e62c26961
[ "MIT" ]
null
null
null
jenkinsapi/view.py
julienduchesne/jenkinsapi
369dc54a8d5bb1f4e985c647378b9e1e62c26961
[ "MIT" ]
52
2019-06-25T12:47:14.000Z
2021-04-12T12:24:08.000Z
jenkinsapi/view.py
klauern/jenkinsapi
605ad22a0109d3f51452c7abd23b0376a44682da
[ "MIT" ]
null
null
null
""" Module for jenkinsapi views """ import six import logging from jenkinsapi.jenkinsbase import JenkinsBase from jenkinsapi.job import Job from jenkinsapi.custom_exceptions import NotFound log = logging.getLogger(__name__) class View(JenkinsBase): """ View class """ def __init__(self, url, name,...
30.290909
79
0.580232
4,768
0.953982
445
0.089036
126
0.02521
0
0
1,127
0.22549
4a39a497868bd170b5a86c4ae6d32db864cbebc8
7,240
py
Python
core/vision/collection.py
jmarangola/cv-chess
c1bf1754b622e76bc2bc92276b96760c321a8bd9
[ "MIT" ]
null
null
null
core/vision/collection.py
jmarangola/cv-chess
c1bf1754b622e76bc2bc92276b96760c321a8bd9
[ "MIT" ]
null
null
null
core/vision/collection.py
jmarangola/cv-chess
c1bf1754b622e76bc2bc92276b96760c321a8bd9
[ "MIT" ]
null
null
null
""" Autonomous dataset collection of data for jetson nano John Marangola - marangol@bc.edu """ import datasets import json from datasets import Board, ChessPiece, PieceColor, PieceType #from realsense_utils import RealSenseCamera import preprocessing as pr import cv2 import pandas as pd import os from os.path import...
31.754386
180
0.604144
0
0
0
0
0
0
0
0
3,866
0.533978
4a3a7096be78dd2d3c57cba31752bc3f172e277d
3,475
py
Python
tests/test_sbfc.py
htwangtw/sbfc
5119017a643b82efbfaaf373a26f191a51f8283a
[ "BSD-3-Clause" ]
null
null
null
tests/test_sbfc.py
htwangtw/sbfc
5119017a643b82efbfaaf373a26f191a51f8283a
[ "BSD-3-Clause" ]
13
2021-04-29T16:11:18.000Z
2022-02-22T18:10:36.000Z
tests/test_sbfc.py
htwangtw/sbfc
5119017a643b82efbfaaf373a26f191a51f8283a
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np import pandas as pd from nilearn import datasets from sbfc.parser import seed_base_connectivity seed = os.path.dirname(__file__) + "/data/difumo64_pcc.nii.gz" def _make_data_single_run(confound=True): adhd_dataset = datasets.fetch_adhd(n_subjects=2) group_confounds = pd.DataFra...
29.700855
82
0.639424
0
0
0
0
0
0
0
0
340
0.097842
4a3cf72d3d9f4ab9e1a082a0ec19d609ba13facf
528
py
Python
final_project/machinetranslation/tests/test.py
ChrisOmeh/xzceb-flask_eng_fr
6ce4a79539b8ace4bce999c32a9f58aa73827e5c
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests/test.py
ChrisOmeh/xzceb-flask_eng_fr
6ce4a79539b8ace4bce999c32a9f58aa73827e5c
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests/test.py
ChrisOmeh/xzceb-flask_eng_fr
6ce4a79539b8ace4bce999c32a9f58aa73827e5c
[ "Apache-2.0" ]
null
null
null
import unittest from translator import english_to_french, french_to_english class TestenglishToFrench(unittest.TestCase): def test1(self): self.assertEqual(english_to_french(["Hello"]), "Bonjour") self.assertNotEqual(english_to_french(["Bonjour"]), "Hello") class TestfrenchToEnglish(unittest.TestC...
35.2
68
0.727273
401
0.75947
0
0
0
0
0
0
74
0.140152
4a3d8daa44bdf458c650e19786cc3f1f2403777e
3,553
py
Python
tests/ut/python/parallel/test_auto_parallel_transformer.py
huxian123/mindspore
ec5ba10c82bbd6eccafe32d3a1149add90105bc8
[ "Apache-2.0" ]
2
2021-04-22T07:00:59.000Z
2021-11-08T02:49:09.000Z
tests/ut/python/parallel/test_auto_parallel_transformer.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
1
2020-12-29T06:46:38.000Z
2020-12-29T06:46:38.000Z
tests/ut/python/parallel/test_auto_parallel_transformer.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
1
2021-05-10T03:30:36.000Z
2021-05-10T03:30:36.000Z
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
30.62931
114
0.665072
2,238
0.62989
0
0
0
0
0
0
596
0.167746
4a3dd5e26114808a45a3424f7c019a215fa96e04
6,227
py
Python
cloudcafe/compute/events/models/common.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/compute/events/models/common.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
cloudcafe/compute/events/models/common.py
rcbops-qa/cloudcafe
d937f85496aadafbb94a330b9adb8ea18bee79ba
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
30.826733
78
0.605107
5,559
0.892725
0
0
470
0.075478
0
0
4,168
0.669343
4a3e2e6cca24d36e7e6072a43d4a7616c515981f
1,446
py
Python
openpyxl/drawing/tests/test_shapes.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
openpyxl/drawing/tests/test_shapes.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
openpyxl/drawing/tests/test_shapes.py
sekcheong/openpyxl
e1ba037f171efa348f75431c35a50de5ca277b78
[ "MIT" ]
null
null
null
from __future__ import absolute_import # Copyright (c) 2010-2017 openpyxl import pytest from openpyxl.xml.functions import fromstring, tostring from openpyxl.tests.helper import compare_xml @pytest.fixture def GradientFillProperties(): from ..fill import GradientFillProperties return GradientFillProperties ...
23.322581
55
0.64177
1,023
0.707469
0
0
219
0.151452
0
0
193
0.133472
4a4054b106f4552f95f762ef5c1bcfd72acaebe7
19,509
py
Python
raysect/core/math/function/float/function3d/interpolate/tests/scripts/generate_3d_splines.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
71
2015-10-25T16:50:18.000Z
2022-03-02T03:46:19.000Z
raysect/core/math/function/float/function3d/interpolate/tests/scripts/generate_3d_splines.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
336
2015-02-11T22:39:54.000Z
2022-02-22T18:42:32.000Z
raysect/core/math/function/float/function3d/interpolate/tests/scripts/generate_3d_splines.py
raysect/source
11f03089d0379fc7fb4d23c6f60c3d255673cec9
[ "BSD-3-Clause" ]
24
2016-09-11T17:12:10.000Z
2022-02-24T22:57:09.000Z
# Copyright (c) 2014-2021, Dr Alex Meakins, Raysect Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
49.767857
120
0.65703
0
0
0
0
0
0
0
0
3,809
0.195243
4a41ae80cb8630870b8a540d9da1afa369fa489a
2,875
py
Python
supertokens_python/recipe_module.py
girish946/supertokens-python
ce0e7f6035941b3a8d3d1f7ae867224fd9c41c3c
[ "Apache-2.0" ]
36
2021-10-05T17:06:07.000Z
2022-03-29T14:11:39.000Z
supertokens_python/recipe_module.py
girish946/supertokens-python
ce0e7f6035941b3a8d3d1f7ae867224fd9c41c3c
[ "Apache-2.0" ]
56
2021-09-02T08:24:29.000Z
2022-03-30T07:29:07.000Z
supertokens_python/recipe_module.py
girish946/supertokens-python
ce0e7f6035941b3a8d3d1f7ae867224fd9c41c3c
[ "Apache-2.0" ]
8
2022-01-28T14:49:55.000Z
2022-03-26T01:28:38.000Z
# Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved. # # This software is licensed under the Apache License, Version 2.0 (the # "License") as published by the Apache Software Foundation. # # You may not use this file except in compliance with the License. You may # obtain a copy of the License at...
34.638554
119
0.718261
1,731
0.602087
0
0
589
0.20487
293
0.101913
709
0.246609
4a428a5645724e361b7bbf5d6b4f839753d082e4
58
py
Python
tests/__init__.py
mihaidumitrescu/flake8-html
d5b62c05fb220a5cd6c777feacd69cb726a42e9a
[ "Apache-2.0" ]
36
2017-03-05T13:12:28.000Z
2021-02-03T15:05:34.000Z
tests/__init__.py
mihaidumitrescu/flake8-html
d5b62c05fb220a5cd6c777feacd69cb726a42e9a
[ "Apache-2.0" ]
23
2017-03-01T19:40:10.000Z
2022-03-31T17:13:17.000Z
tests/__init__.py
mihaidumitrescu/flake8-html
d5b62c05fb220a5cd6c777feacd69cb726a42e9a
[ "Apache-2.0" ]
15
2017-03-05T13:12:39.000Z
2022-03-25T14:46:28.000Z
# -*- coding: utf-8 -*- """Tests go in this directory."""
19.333333
33
0.551724
0
0
0
0
0
0
0
0
56
0.965517
4a42d347c7abb078f1060ffec9bcd3fae7f3044c
46
py
Python
datajoint-workflow/{{cookiecutter.github_repo}}/src/{{cookiecutter.__pkg_import_name}}/version.py
Yambottle/dj-workflow-template
a47a354af2f9303c898ef403491e69cfc396d196
[ "MIT" ]
null
null
null
datajoint-workflow/{{cookiecutter.github_repo}}/src/{{cookiecutter.__pkg_import_name}}/version.py
Yambottle/dj-workflow-template
a47a354af2f9303c898ef403491e69cfc396d196
[ "MIT" ]
null
null
null
datajoint-workflow/{{cookiecutter.github_repo}}/src/{{cookiecutter.__pkg_import_name}}/version.py
Yambottle/dj-workflow-template
a47a354af2f9303c898ef403491e69cfc396d196
[ "MIT" ]
6
2022-02-18T20:19:04.000Z
2022-03-05T05:29:23.000Z
__version__ = "{{cookiecutter._pkg_version}}"
23
45
0.76087
0
0
0
0
0
0
0
0
31
0.673913
4a42eafd975ea0137426e4612231c34ec1b242ab
4,041
py
Python
examples/benchmarking/benchmark_bm25.py
shibing624/similarities
f573ae158b0e2a908c1ef549784bd88e23cbd9c6
[ "Apache-2.0" ]
16
2022-02-23T11:46:18.000Z
2022-03-29T07:35:33.000Z
examples/benchmarking/benchmark_bm25.py
shibing624/similarities
f573ae158b0e2a908c1ef549784bd88e23cbd9c6
[ "Apache-2.0" ]
1
2022-03-15T13:51:36.000Z
2022-03-16T02:56:15.000Z
examples/benchmarking/benchmark_bm25.py
shibing624/similarities
f573ae158b0e2a908c1ef549784bd88e23cbd9c6
[ "Apache-2.0" ]
3
2022-02-24T02:06:05.000Z
2022-03-13T11:31:16.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ import datetime import os import pathlib import random import sys from loguru import logger sys.path.append('../..') from similarities import BM25Similarity from similarities.utils import http_get from similarities.data_loader import Searc...
35.761062
113
0.717644
0
0
0
0
0
0
0
0
1,506
0.37268
4a43a63b067e2c9d49aadc213c2c322feea2bc14
14,531
py
Python
tb/test_arp_64.py
sergachev/verilog-ethernet
cef6b47bb3b969120cabce3b89b0c98bb47ca6a9
[ "MIT" ]
2
2020-01-09T05:58:04.000Z
2022-01-04T03:29:00.000Z
tb/test_arp_64.py
zslwyuan/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
null
null
null
tb/test_arp_64.py
zslwyuan/verilog-ethernet
cd6b87e984ff7cbeaf11f9468124019f5e654bdb
[ "MIT" ]
1
2021-09-25T05:45:18.000Z
2021-09-25T05:45:18.000Z
#!/usr/bin/env python """ Copyright (c) 2014-2018 Alex Forencich 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,...
31.727074
77
0.671874
0
0
12,875
0.886037
7,398
0.509118
0
0
1,770
0.121809
4a4404fe1d92ad81158f3995d99e25353d3c8492
4,315
py
Python
NitroGenerator.py
ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version
65c6e6e18e640afb4fc433394a9e646c7fe4f4fa
[ "MIT" ]
2
2021-07-27T06:57:36.000Z
2021-08-16T04:17:41.000Z
NitroGenerator.py
ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version
65c6e6e18e640afb4fc433394a9e646c7fe4f4fa
[ "MIT" ]
null
null
null
NitroGenerator.py
ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version
65c6e6e18e640afb4fc433394a9e646c7fe4f4fa
[ "MIT" ]
1
2021-11-06T05:32:40.000Z
2021-11-06T05:32:40.000Z
import random import sys import subprocess def pip_install(module: str): subprocess.run([sys.executable, "-m", "pip", "-q", "--disable-pip-version-check", "install", module]) try: import requests except: print("'requests' module not found! Trying to install... ") pip_install("requests")...
36.567797
145
0.526999
0
0
0
0
0
0
0
0
1,700
0.393883
4a4408798c8290d4f3dfdd7e187e5ce0fde47eee
1,018
py
Python
2015/main/13/part2.py
sgravrock/adventofcode
1f5263ee242c8446ac1c08d2aef195a0a4595ccb
[ "MIT" ]
null
null
null
2015/main/13/part2.py
sgravrock/adventofcode
1f5263ee242c8446ac1c08d2aef195a0a4595ccb
[ "MIT" ]
null
null
null
2015/main/13/part2.py
sgravrock/adventofcode
1f5263ee242c8446ac1c08d2aef195a0a4595ccb
[ "MIT" ]
null
null
null
import sys import itertools def readfile(f): result = {} for line in f: fields = line.rstrip().split(" ") p1 = fields[0] p2 = fields[10].replace(".", "") n = int(fields[3]) if fields[2] == "lose": n *= -1 result[(p1, p2)] = n return result def optimal(config): add_self(config) diners = set([k[0] f...
23.674419
76
0.650295
0
0
110
0.108055
0
0
0
0
36
0.035363
4a444c988302d74c981cef9771e8cb5c4e9d2945
29,855
py
Python
networking/connection/stun_client.py
bcgrendel/python_networking
b4c847d9eeeea078868b8dcb3d385e02eb0b8e96
[ "MIT" ]
null
null
null
networking/connection/stun_client.py
bcgrendel/python_networking
b4c847d9eeeea078868b8dcb3d385e02eb0b8e96
[ "MIT" ]
null
null
null
networking/connection/stun_client.py
bcgrendel/python_networking
b4c847d9eeeea078868b8dcb3d385e02eb0b8e96
[ "MIT" ]
null
null
null
import socket import sys import traceback import struct import threading; from threading import Thread; import time; import datetime; import json #import buffered_message; import hashlib from Crypto.PublicKey import RSA from connection_state import ConnectionState # publickey = RSA.importKey(key_string) import tcp; im...
38.374036
197
0.73589
25,869
0.866488
0
0
0
0
0
0
10,322
0.345738
4a4611f60a1d159391b648d9954a9b9efff56f91
11,842
py
Python
tools/wptserve/tests/functional/test_response.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
1
2021-12-12T18:13:24.000Z
2021-12-12T18:13:24.000Z
tools/wptserve/tests/functional/test_response.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
tools/wptserve/tests/functional/test_response.py
qanat/wpt
7c61a4594a95682531367b6956d1c37f8b8fd486
[ "BSD-3-Clause" ]
null
null
null
import os import unittest import json import types from http.client import BadStatusLine from io import BytesIO import pytest wptserve = pytest.importorskip("wptserve") from .base import TestUsingServer, TestUsingH2Server, doc_root def send_body_as_header(self): if self._response.add_required_headers: s...
36.549383
123
0.616703
11,380
0.960986
0
0
4,095
0.345803
0
0
1,812
0.153015
4a48326e1bcc0c4ce67dffee3193eed37eb8dfe4
2,881
py
Python
bbc1/core/command.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
89
2017-10-31T05:38:30.000Z
2021-11-06T11:53:19.000Z
bbc1/core/command.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
74
2017-11-07T13:06:33.000Z
2021-05-06T14:26:19.000Z
bbc1/core/command.py
ks91/bbc1-pub
6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0
[ "Apache-2.0" ]
56
2017-11-04T13:54:56.000Z
2021-06-18T18:05:46.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2017 beyond-blockchain.org. 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 l...
57.62
116
0.701493
0
0
0
0
0
0
0
0
1,669
0.579313
4a4861b9f42f405c3f1bc83a1f33fe81d2ee9835
33,928
py
Python
main.py
cmcquinn/cmake-uvision-syncer
26f34b79b3102a326ced2b0bca2524a98b69abf4
[ "MIT" ]
null
null
null
main.py
cmcquinn/cmake-uvision-syncer
26f34b79b3102a326ced2b0bca2524a98b69abf4
[ "MIT" ]
null
null
null
main.py
cmcquinn/cmake-uvision-syncer
26f34b79b3102a326ced2b0bca2524a98b69abf4
[ "MIT" ]
1
2022-03-31T13:47:50.000Z
2022-03-31T13:47:50.000Z
""" Usage: main.py [<project>] Options: <project> Path to the .uvprojx file (Keil® µVision5 Project File). The .uvoptx file (Keil® µVision5 Project Options file) will be located automatically as it shall be adjacent to the .uvprojx file, having the same filenam...
38.207207
122
0.528855
29,352
0.864973
1,316
0.038781
24,404
0.719161
0
0
7,650
0.225438
4a48ec3aeae99c16ed4de0cce8fcde590af1ac0c
3,434
py
Python
scipy/weave/base_spec.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-10-07T00:37:32.000Z
2022-01-21T17:02:33.000Z
scipy/weave/base_spec.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
null
null
null
scipy/weave/base_spec.py
lesserwhirls/scipy-cwt
ee673656d879d9356892621e23ed0ced3d358621
[ "BSD-3-Clause" ]
8
2015-05-09T14:23:57.000Z
2018-11-15T05:56:00.000Z
class base_converter(object): """ Properties: headers -- list of strings that name the header files needed by this object. include_dirs -- list of directories where the header files can be found. libraries -- list of libraries needed to link to when compiling ...
35.040816
80
0.609785
3,397
0.989225
0
0
0
0
0
0
1,453
0.423122
4a48f5c7b324b298a0d8541fe2c9610bbecc1796
96
py
Python
xception/test.py
latentai/model-zoo-models
70a96e955b3b1245f8417613cd9debdae91b1d28
[ "Apache-2.0" ]
8
2020-05-16T20:14:27.000Z
2020-07-08T09:23:24.000Z
inceptionv3/test.py
latentai/model-zoo-models
70a96e955b3b1245f8417613cd9debdae91b1d28
[ "Apache-2.0" ]
9
2020-03-26T10:25:12.000Z
2022-02-28T19:54:14.000Z
audio_recognition/test.py
latentai/model-zoo-models
70a96e955b3b1245f8417613cd9debdae91b1d28
[ "Apache-2.0" ]
6
2020-03-19T20:52:09.000Z
2022-03-06T01:33:29.000Z
#!/usr/bin/env python3 from utils.model_config_helpers import run_model_test run_model_test()
16
53
0.822917
0
0
0
0
0
0
0
0
22
0.229167
4a4b8d448257463b5f6347e3da0f24a94bac2394
10,816
py
Python
mpunet/bin/cv_split.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
null
null
null
mpunet/bin/cv_split.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
null
null
null
mpunet/bin/cv_split.py
alexsosn/MultiPlanarUNet
2d1cecdee391be8e9f72da95e33077ed82a2183a
[ "MIT" ]
1
2020-10-07T12:44:47.000Z
2020-10-07T12:44:47.000Z
from glob import glob import sys import os import numpy as np import random from mpunet.utils import create_folders import argparse def get_parser(): parser = argparse.ArgumentParser(description="Prepare a data folder for a" "CV experiment setup.") parser.add_a...
41.125475
91
0.606971
0
0
0
0
0
0
0
0
3,563
0.329419
4a4cc74674f055ddea956ccb55ba03b1e2719b21
1,964
py
Python
src/client/pydaos/raw/conversion.py
gczsjdy/daos
abbd900010562f3acea9c6b1dc2ca98a8d3c71fa
[ "Apache-2.0" ]
1
2021-12-04T14:57:48.000Z
2021-12-04T14:57:48.000Z
src/client/pydaos/raw/conversion.py
gczsjdy/daos
abbd900010562f3acea9c6b1dc2ca98a8d3c71fa
[ "Apache-2.0" ]
52
2019-12-04T05:47:10.000Z
2020-06-09T03:26:12.000Z
src/client/pydaos/raw/conversion.py
gczsjdy/daos
abbd900010562f3acea9c6b1dc2ca98a8d3c71fa
[ "Apache-2.0" ]
8
2019-12-04T08:26:00.000Z
2020-06-09T07:40:11.000Z
#!/usr/bin/python """ (C) Copyright 2018 Intel Corporation. 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 ...
40.081633
79
0.67057
0
0
0
0
0
0
0
0
1,326
0.675153
4a4d871b786cc8a162c159d5da63831c271b0be6
956
py
Python
experiments/nmt/utils/vocabulary_coverage.py
lvapeab/GroundHog_INMT
d5ad1d466eaf5040e99b9aaaa1b28c96402436ce
[ "BSD-3-Clause" ]
null
null
null
experiments/nmt/utils/vocabulary_coverage.py
lvapeab/GroundHog_INMT
d5ad1d466eaf5040e99b9aaaa1b28c96402436ce
[ "BSD-3-Clause" ]
null
null
null
experiments/nmt/utils/vocabulary_coverage.py
lvapeab/GroundHog_INMT
d5ad1d466eaf5040e99b9aaaa1b28c96402436ce
[ "BSD-3-Clause" ]
null
null
null
import cPickle import argparse parser = argparse.ArgumentParser( "Computes the coverage of a shortlist in a corpus file") parser.add_argument("--vocab", required=True, help="Vocabulary to use (.pkl)") parser.add_argument("--text", required=True, help="Beam size, turn...
28.117647
140
0.621339
0
0
0
0
0
0
0
0
199
0.208159
4a4d9078d162889cc7a0df9b67742f350806db8d
13,952
py
Python
stores/apps/inventory/migrations/0001_initial.py
diassor/CollectorCity-Market-Place
892ad220b8cf1c0fc7433f625213fe61729522b2
[ "Apache-2.0" ]
135
2015-03-19T13:28:18.000Z
2022-03-27T06:41:42.000Z
stores/apps/inventory/migrations/0001_initial.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
null
null
null
stores/apps/inventory/migrations/0001_initial.py
dfcoding/CollectorCity-Market-Place
e59acec3d600c049323397b17cae14fdcaaaec07
[ "Apache-2.0" ]
83
2015-01-30T01:00:15.000Z
2022-03-08T17:25:10.000Z
# encoding: 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 'ProductType' db.create_table('inventory_producttype', ( ('id', self.gf('django...
76.240437
181
0.573825
13,826
0.990969
0
0
0
0
0
0
8,847
0.634103
4a4e581c499165152bc4c54e7fe90ad3b4939698
48,733
py
Python
src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py
vi4m/ralph
2af767ee23d89be9e6cec0a537350a1ce8840bd1
[ "Apache-2.0" ]
1
2018-09-01T14:14:08.000Z
2018-09-01T14:14:08.000Z
src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T10:03:45.000Z
2019-08-14T10:03:45.000Z
src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py
srikanth4372/sample
127b5742ae464d42909a14d71e3c10c241ec3a23
[ "Apache-2.0" ]
1
2019-08-14T09:59:42.000Z
2019-08-14T09:59:42.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 field 'ArchivedDeployment.service' db.add_column('deployment_archiveddeployment', 'service', ...
94.996101
239
0.572487
48,601
0.997291
0
0
0
0
0
0
34,533
0.708616
4a4f4bc06c12566c84246f7896cf490e49f35766
2,059
py
Python
SPH/sphbwr_example2.py
RLReed/unotran
b317107e1a39490dda732f86a731872f5207a167
[ "MIT" ]
null
null
null
SPH/sphbwr_example2.py
RLReed/unotran
b317107e1a39490dda732f86a731872f5207a167
[ "MIT" ]
null
null
null
SPH/sphbwr_example2.py
RLReed/unotran
b317107e1a39490dda732f86a731872f5207a167
[ "MIT" ]
3
2019-12-02T23:01:24.000Z
2022-01-26T04:48:41.000Z
import numpy as np import sys sys.path.append('/homes/rlreed/workspace/unotran/src') from coarseBounds import computeBounds, Grouping import pickle from makeDLPbasis import makeBasis as makeDLP from makeKLTbasis import makeBasis as makeKLT import sph import sph_dgm import pydgm def buildGEO(ass_map): fine_map = [...
27.453333
115
0.644973
0
0
0
0
0
0
0
0
246
0.119475
4a4fd2b57960e4af2acbb3603c634154bea6e80b
9,280
py
Python
src/oci/management_agent/models/management_agent_aggregation_dimensions.py
CentroidChef/oci-python-sdk
fa406e27a52b40c70e220c20f52dfe2abe6236a3
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/management_agent/models/management_agent_aggregation_dimensions.py
CentroidChef/oci-python-sdk
fa406e27a52b40c70e220c20f52dfe2abe6236a3
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/management_agent/models/management_agent_aggregation_dimensions.py
CentroidChef/oci-python-sdk
fa406e27a52b40c70e220c20f52dfe2abe6236a3
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
37.57085
245
0.691487
8,740
0.94181
0
0
8,770
0.945043
0
0
6,546
0.705388
4a5059beb09af2b372b1d15c442329a32a505195
1,770
py
Python
py_buycoins/sending.py
Bashorun97/BuyCoins-Python-SDK
5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b
[ "MIT" ]
1
2021-02-16T14:26:30.000Z
2021-02-16T14:26:30.000Z
py_buycoins/sending.py
Bashorun97/BuyCoins-Python-SDK
5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b
[ "MIT" ]
null
null
null
py_buycoins/sending.py
Bashorun97/BuyCoins-Python-SDK
5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b
[ "MIT" ]
null
null
null
from .gcore.queries import GetNetworkFee, GetBalance from .gcore.mutations import SendCoin from typing import List, Optional from .exc import SendLimitError, InvalidClientObject class Send: def __init__(self, address: str, cryptocurrency: str, amount: float): self.address = address self.cryptocurr...
33.396226
114
0.627684
1,589
0.89774
0
0
0
0
0
0
138
0.077966
4a51566e6f537d3c7defee7d9f6dd2e1ce52fbb6
2,190
py
Python
snippet/example/python/url.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
94
2016-09-22T09:13:19.000Z
2022-03-30T07:35:35.000Z
snippet/example/python/url.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
1
2020-11-22T03:05:05.000Z
2020-11-22T03:05:05.000Z
snippet/example/python/url.py
yp2800/snippet
054af596655007cbec81340bd166489e706fffe6
[ "MIT" ]
38
2017-06-11T22:03:04.000Z
2022-03-10T07:46:39.000Z
# -*- coding: utf-8 -*- try: from urlparse import urlparse, urlunsplit except ImportError: from urllib.parse import urlparse, urlunsplit class URL(object): DEFAULT_SCHEME = ["http", "https"] def __init__(self, url, allowed_scheme=None): self._url = url self.url = urlparse(self._url) ...
31.73913
94
0.581279
2,041
0.931963
0
0
623
0.284475
0
0
146
0.066667
4a533004a2f846794254f71446a4268346a94d9f
550
py
Python
netvisor_api_client/services/dimension.py
tristen-tooming/netvisor-api-client
37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69
[ "MIT" ]
null
null
null
netvisor_api_client/services/dimension.py
tristen-tooming/netvisor-api-client
37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69
[ "MIT" ]
null
null
null
netvisor_api_client/services/dimension.py
tristen-tooming/netvisor-api-client
37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69
[ "MIT" ]
null
null
null
from .base import Service from ..requests.dimension import CreateDimensionsRequest, DimensionsListRequest class DimensionService(Service): def create(self, data): request = CreateDimensionsRequest( self.client, params={'method': 'add'}, data=data ) retu...
28.947368
79
0.616364
442
0.803636
0
0
0
0
0
0
25
0.045455
4a54146d12e005b9045dcbb5b4f63178061f1a78
7,338
py
Python
cishouseholds/filter.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
cishouseholds/filter.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
252
2021-05-19T11:12:43.000Z
2022-03-02T10:39:10.000Z
cishouseholds/filter.py
ONS-SST/cis_households
e475df5929e6763a46cd05aff1f7e960ccbe8e21
[ "MIT" ]
null
null
null
from typing import List from typing import Union from pyspark.sql import DataFrame from pyspark.sql import functions as F from pyspark.sql.window import Window def filter_all_not_null(df: DataFrame, reference_columns: List[str]) -> DataFrame: """ Filter rows which have NULL values in all the specified column...
38.020725
120
0.710139
0
0
0
0
0
0
0
0
4,191
0.571137
4a544c66c68a458b980a2174bdc25da63354dc6e
6,088
py
Python
cscs-checks/cuda/multi_gpu.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/cuda/multi_gpu.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
cscs-checks/cuda/multi_gpu.py
hpc-unibe-ch/reframe
07f97e25cf4e7319782c37dd1923f7e70a368b99
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import os import reframe.utility.sanity as sn import reframe as rfm @rfm.required_version('>=2.16-dev0') @rfm.simple_test c...
42.873239
79
0.53433
5,768
0.947438
0
0
5,822
0.956307
0
0
1,941
0.318824
4a548d3916f1d9f7cfe21d9195722cae0fa08812
5,094
py
Python
sympy/series/tests/test_demidovich.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/series/tests/test_demidovich.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/series/tests/test_demidovich.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
from sympy import ( limit, Symbol, oo, sqrt, Rational, log, exp, cos, sin, tan, pi, asin, together, root, S, ) # Numbers listed with the tests refer to problem numbers in the book # "Anti-demidovich, problemas resueltos, Ed. URSS" x = Symbol("x") def test_...
30.686747
86
0.458186
0
0
0
0
0
0
0
0
522
0.102473
4a54b5369073023cda9e88293fbf883952f8a99e
493
py
Python
notion/ctx.py
jfhbrook/notion-tools
dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d
[ "MIT" ]
1
2022-01-19T22:24:35.000Z
2022-01-19T22:24:35.000Z
notion/ctx.py
jfhbrook/notion-tools
dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d
[ "MIT" ]
4
2021-12-28T05:15:49.000Z
2021-12-28T05:18:25.000Z
notion/ctx.py
jfhbrook/notion-tools
dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d
[ "MIT" ]
null
null
null
from notion.client import NotionClient from notion.settings import Settings class Context: def __init__(self): self.settings = Settings.from_file() self._client = None def get_client(self): if not self._client: self.settings.validate() self._client = NotionClie...
27.388889
84
0.6714
414
0.839757
0
0
0
0
0
0
0
0
4a5505f918153846b19b1a912cedc52b11e1b4e9
1,552
py
Python
setup.py
rgooler/bootstrap-pip
34eaa648c81e3f8213b97cd33bda23b50743122a
[ "Unlicense" ]
null
null
null
setup.py
rgooler/bootstrap-pip
34eaa648c81e3f8213b97cd33bda23b50743122a
[ "Unlicense" ]
null
null
null
setup.py
rgooler/bootstrap-pip
34eaa648c81e3f8213b97cd33bda23b50743122a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os try: from setuptools import setup except ImportError: from distutils.core import setup def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() install_requires = [] # install_re...
30.431373
71
0.614046
0
0
0
0
0
0
0
0
893
0.575387
4a553a81b1d7bdf7e54e2eefdce19b67fef643fd
138
py
Python
cfdata/tabular/converters/__init__.py
carefree0910/carefree-data
ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19
[ "MIT" ]
9
2020-10-25T11:52:34.000Z
2022-01-23T02:45:41.000Z
cfdata/tabular/converters/__init__.py
carefree0910/carefree-data
ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19
[ "MIT" ]
2
2020-08-02T01:58:48.000Z
2021-02-26T11:24:19.000Z
cfdata/tabular/converters/__init__.py
carefree0910/carefree-data
ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19
[ "MIT" ]
1
2021-11-04T14:34:13.000Z
2021-11-04T14:34:13.000Z
from .base import * from .string import * from .categorical import * from .numerical import * __all__ = ["Converter", "converter_dict"]
17.25
41
0.724638
0
0
0
0
0
0
0
0
27
0.195652
4a579bbd92a904600d51867b452bca5458bcdea4
114
py
Python
hello_world.py
BronWang/first_github
9cdd40458014a448a5121268ebca907e3cba1eee
[ "MIT" ]
null
null
null
hello_world.py
BronWang/first_github
9cdd40458014a448a5121268ebca907e3cba1eee
[ "MIT" ]
null
null
null
hello_world.py
BronWang/first_github
9cdd40458014a448a5121268ebca907e3cba1eee
[ "MIT" ]
null
null
null
def hello_world(): """打印Hello world""" message = 'hello world' print(message.title()) hello_world()
14.25
27
0.622807
0
0
0
0
0
0
0
0
36
0.305085
4a5c703189126174bfc5a0bc0302603a5b45186d
583
py
Python
Python/Samples/Observer/UtObserver.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
9
2019-03-14T01:54:31.000Z
2021-11-26T13:00:32.000Z
Python/Samples/Observer/UtObserver.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
null
null
null
Python/Samples/Observer/UtObserver.py
plasroom46/DesignPattern.Sample
86c05c5ae356cb01f3d075f248c45da3e6534d07
[ "MIT" ]
2
2019-08-19T06:00:04.000Z
2021-07-15T01:23:52.000Z
import unittest from Observers import Observer, ObserverMailServer, ObserverPbx from Subjects import Subject, SubjectEflow class UtVisitor(unittest.TestCase): def test_observer(self): # Create observers pbx = ObserverPbx() ms = ObserverMailServer() # Create subject ...
21.592593
63
0.626072
408
0.699828
0
0
0
0
0
0
91
0.156089
4a5d879c71ea4b0d47b4f6335a7e75debaa68573
1,368
py
Python
modules/voxelman/config.py
Relintai/pandemonium_engine
3de05db75a396b497f145411f71eb363572b38ae
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
modules/voxelman/config.py
Relintai/pandemonium_engine
3de05db75a396b497f145411f71eb363572b38ae
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
modules/voxelman/config.py
Relintai/pandemonium_engine
3de05db75a396b497f145411f71eb363572b38ae
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
def can_build(env, platform): return True def configure(env): pass def get_doc_classes(): return [ "WorldArea", "VoxelLight", "VoxelLightNode", "VoxelLevelGenerator", "VoxelLevelGeneratorFlat", "VoxelSurfaceMerger", "VoxelSurfaceSimple", ...
18.739726
35
0.576754
0
0
0
0
0
0
0
0
778
0.568713
4a5f2654f1609f5c5550084dae95f8a37c34d9e6
4,247
py
Python
Python/2021/day_04/day_04.py
JonoRicci/Advent-Of-Code
1c092410d6ece195f4689788af4b1091acf10fbb
[ "MIT" ]
null
null
null
Python/2021/day_04/day_04.py
JonoRicci/Advent-Of-Code
1c092410d6ece195f4689788af4b1091acf10fbb
[ "MIT" ]
null
null
null
Python/2021/day_04/day_04.py
JonoRicci/Advent-Of-Code
1c092410d6ece195f4689788af4b1091acf10fbb
[ "MIT" ]
null
null
null
""" Day 04 """ from logger import logger def main() -> None: """ Import the puzzle input, process and display the results. """ puzzle_input = import_list() logger.debug(puzzle_input) final_score = play_bingo(puzzle_input) for result in final_score: logger.info(f"The final score i...
32.419847
80
0.53732
0
0
0
0
0
0
0
0
1,267
0.298328
4a612749e70c643dade9a21e3ef7dab25d3f46e9
1,982
py
Python
timeeval_experiments/algorithms/eif.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
2
2022-01-29T03:46:31.000Z
2022-02-14T14:06:35.000Z
timeeval_experiments/algorithms/eif.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
timeeval_experiments/algorithms/eif.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
from durations import Duration from typing import Any, Dict, Optional from timeeval import Algorithm, TrainingType, InputDimensionality from timeeval.adapters import DockerAdapter from timeeval.params import ParameterConfig _eif_parameters: Dict[str, Dict[str, Any]] = { "extension_level": { "defaultValue": None, ...
33.033333
180
0.676085
0
0
0
0
0
0
0
0
938
0.473259
4a614519b633b8e43e30737c32c7066d2365e9ab
5,548
py
Python
deepchem/models/tf_new_models/graph_models.py
KEHANG/deepchem
367bea14cab47b1093bf106e0c196bb02d55c755
[ "MIT" ]
null
null
null
deepchem/models/tf_new_models/graph_models.py
KEHANG/deepchem
367bea14cab47b1093bf106e0c196bb02d55c755
[ "MIT" ]
null
null
null
deepchem/models/tf_new_models/graph_models.py
KEHANG/deepchem
367bea14cab47b1093bf106e0c196bb02d55c755
[ "MIT" ]
1
2021-07-09T19:58:54.000Z
2021-07-09T19:58:54.000Z
""" Convenience classes for assembling graph models. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __author__ = "Han Altae-Tran and Bharath Ramsundar" __copyright__ = "Copyright 2016, Stanford University" __license__ = "MIT" import tensorflow as tf f...
32.635294
82
0.6469
5,109
0.920872
0
0
0
0
0
0
1,983
0.357426
4a618ed57cbfdde42c612f538425cdaf22f7923a
20,082
py
Python
yandex/cloud/access/access_pb2.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
1
2019-06-07T10:45:58.000Z
2019-06-07T10:45:58.000Z
yandex/cloud/access/access_pb2.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
null
null
null
yandex/cloud/access/access_pb2.py
IIKovalenko/python-sdk
980e2c5d848eadb42799132b35a9f58ab7b27157
[ "MIT" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/access/access.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf i...
40.900204
1,963
0.7684
0
0
0
0
0
0
0
0
6,224
0.309929
4a629d479574b8f27c92b3a96ac0d80522d6e255
992
py
Python
questionbank/users/urls.py
SyafiqTermizi/questionbank
33e58db1a1610a85bd30a85d2f52e819bc27058b
[ "MIT" ]
1
2018-04-17T23:58:46.000Z
2018-04-17T23:58:46.000Z
questionbank/users/urls.py
SyafiqTermizi/questionbank
33e58db1a1610a85bd30a85d2f52e819bc27058b
[ "MIT" ]
8
2019-12-04T23:08:00.000Z
2022-02-13T22:48:26.000Z
questionbank/users/urls.py
SyafiqTermizi/questionbank
33e58db1a1610a85bd30a85d2f52e819bc27058b
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( UserListView, UserUpdateView, UserProfileView, UserDeleteView, AcceptInvitationView, SpecialtyListView, SpecialtyCreateView, SpecialtyUpdateView, SpecialtyDeleteView ) app_name = 'users' urlpatterns = [ path('', UserListView.as_view(), name='list'), ...
39.68
97
0.708669
0
0
0
0
0
0
0
0
280
0.282258
4a6439ff07d926ead0739ddd1b337b6e86927570
8,197
py
Python
qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
1
2021-07-07T21:23:38.000Z
2021-07-07T21:23:38.000Z
qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py
Zoufalc/qiskit-machine-learning
aae3941214cd9667a53b643f229d11d0bff32c60
[ "Apache-2.0" ]
1
2021-04-11T14:30:32.000Z
2021-04-11T14:30:32.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
39.791262
99
0.595218
7,349
0.896548
0
0
506
0.06173
0
0
3,746
0.456996
4a655d791ecdecd8d04559095721de06fb34dc2a
2,380
py
Python
residuals.py
fbob/mplFOAM
90c9a970ba9975ce115ef5a66eb22fc463b54003
[ "MIT" ]
8
2016-11-01T05:43:48.000Z
2022-01-27T02:12:29.000Z
residuals.py
fbob/mplFOAM
90c9a970ba9975ce115ef5a66eb22fc463b54003
[ "MIT" ]
null
null
null
residuals.py
fbob/mplFOAM
90c9a970ba9975ce115ef5a66eb22fc463b54003
[ "MIT" ]
3
2016-11-01T05:44:01.000Z
2019-05-15T04:04:57.000Z
#!/usr/bin/env python # encoding: utf-8 import sys import getopt import re import os import pylab as plt import numpy as np # Define the variables for which the residuals will be plotted variables = ["Ux", "Uy", "T", "p_rgh", "k", "epsilon"] # Get the arguments of the script def usage(): print("Usage: residuals....
34.492754
114
0.64958
0
0
0
0
0
0
0
0
1,135
0.476891
4a6725140b49d63b56d6ce94163eb9cfc057133e
4,295
py
Python
content_generator/vitae.py
empiricalstateofmind/personal_website
cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c
[ "MIT" ]
null
null
null
content_generator/vitae.py
empiricalstateofmind/personal_website
cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c
[ "MIT" ]
3
2015-09-10T09:26:29.000Z
2015-10-30T10:47:33.000Z
content_generator/vitae.py
empiricalstateofmind/personal_website
cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c
[ "MIT" ]
null
null
null
# Generate the vitae.json file used to populate the Vitae section of the website. import pandas as pd import re from datetime import datetime from collections import defaultdict import json # Publications def create_publications(filepath): publications = pd.read_excel(filepath, sheet_name='publicati...
33.818898
102
0.563213
0
0
0
0
0
0
0
0
853
0.198603
4a6776593c88474050fcd17038b16a7c7bc8d4c6
7,509
py
Python
cement/ext/ext_generate.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
826
2015-01-09T13:23:35.000Z
2022-03-18T01:19:40.000Z
cement/ext/ext_generate.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
316
2015-01-14T10:35:22.000Z
2022-03-08T17:18:10.000Z
cement/ext/ext_generate.py
tomekr/cement
fece8629c48bcd598fd61d8aa7457a5df4c4f831
[ "BSD-3-Clause" ]
112
2015-01-10T15:04:26.000Z
2022-03-16T08:11:58.000Z
""" Cement generate extension module. """ import re import os import inspect import yaml import shutil from .. import Controller, minimal_logger, shell from ..utils.version import VERSION, get_version LOG = minimal_logger(__name__) class GenerateTemplateAbstractBase(Controller): class Meta: pass de...
35.088785
80
0.481555
5,742
0.764682
0
0
0
0
0
0
1,760
0.234385
4a681f9f92ee718dd3a1a15638701370f778139a
169
py
Python
ditto/core/__init__.py
Kvoti/ditto
eb4efb241e54bf679222d14afeb71d9d5441c122
[ "BSD-3-Clause" ]
null
null
null
ditto/core/__init__.py
Kvoti/ditto
eb4efb241e54bf679222d14afeb71d9d5441c122
[ "BSD-3-Clause" ]
9
2015-11-10T15:17:22.000Z
2015-11-12T11:07:02.000Z
ditto/core/__init__.py
Kvoti/ditto
eb4efb241e54bf679222d14afeb71d9d5441c122
[ "BSD-3-Clause" ]
null
null
null
from . import forms from . import views ADMIN_ROLE = "Administrator" MEMBER_ROLE = "Member" GUEST_ROLE = "Guest" DEFAULT_ROLES = [ADMIN_ROLE, MEMBER_ROLE, GUEST_ROLE]
18.777778
53
0.763314
0
0
0
0
0
0
0
0
30
0.177515
4a6a1474e56bbc2b491bd544f9d2c60a78d79285
1,216
py
Python
training_stats/hrm.py
salwator/training_stats
3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e
[ "MIT" ]
4
2018-01-02T01:10:03.000Z
2019-02-09T23:37:13.000Z
training_stats/hrm.py
salwator/training_stats
3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e
[ "MIT" ]
4
2018-01-05T16:46:35.000Z
2019-03-19T22:10:36.000Z
training_stats/hrm.py
salwator/training_stats
3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e
[ "MIT" ]
2
2016-12-09T22:36:58.000Z
2018-07-22T12:58:06.000Z
from .gpxfile import get_hr_measurements from .utils import interpolate from operator import itemgetter def __calculate_moving_sums(points, window): """ Calculates hr moving sums of the window len """ time, hrs = zip(*points) moving_sum = sum(hrs[0:window]) sums = [(time[0], moving_sum)] for i, t ...
39.225806
80
0.693257
0
0
0
0
0
0
0
0
239
0.196546
4a6b2e5b7cf0173afb424be4c44105af0dae9900
7,577
py
Python
scripts/utils/import_languages.py
mozilla-releng/staging-mozilla-vpn-client
f31d3762a607ccf2d7c6a016f7b800305fbf0113
[ "Apache-2.0" ]
null
null
null
scripts/utils/import_languages.py
mozilla-releng/staging-mozilla-vpn-client
f31d3762a607ccf2d7c6a016f7b800305fbf0113
[ "Apache-2.0" ]
null
null
null
scripts/utils/import_languages.py
mozilla-releng/staging-mozilla-vpn-client
f31d3762a607ccf2d7c6a016f7b800305fbf0113
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import xml.etree.ElementTree as ET import os import sys import shutil import ate...
35.57277
121
0.665171
0
0
0
0
0
0
0
0
4,088
0.539528
4a6e93c38ff63c100497bb656432f8f40340791b
1,026
py
Python
cogs/filter.py
Velgaster/Discord-User-Vote
4aacc0bf01a11b948fa5355a3775ef8c7ae9751e
[ "MIT" ]
null
null
null
cogs/filter.py
Velgaster/Discord-User-Vote
4aacc0bf01a11b948fa5355a3775ef8c7ae9751e
[ "MIT" ]
null
null
null
cogs/filter.py
Velgaster/Discord-User-Vote
4aacc0bf01a11b948fa5355a3775ef8c7ae9751e
[ "MIT" ]
null
null
null
from discord.ext import commands import discord def setup(client): client.add_cog(KeyWordFilter(client)) class KeyWordFilter(commands.Cog): def __init__(self, client): self.client = client self.log_ch = self.client.get_channel(int(self.client.SETTINGS.LOG_CHANNEL)) @commands.Cog.listene...
35.37931
84
0.665692
912
0.888889
0
0
304
0.296296
691
0.673489
74
0.072125
4a6fe4cb292136ed5cb190cbef1dbace08d2c9c3
1,975
py
Python
api/app.py
sai-krishna-msk/KickAssist
7fb256e3ef4beff231332f6491ebb975f3fe4b43
[ "MIT" ]
null
null
null
api/app.py
sai-krishna-msk/KickAssist
7fb256e3ef4beff231332f6491ebb975f3fe4b43
[ "MIT" ]
7
2021-06-08T21:18:49.000Z
2022-03-12T00:24:33.000Z
api/app.py
sai-krishna-msk/KickAssist
7fb256e3ef4beff231332f6491ebb975f3fe4b43
[ "MIT" ]
null
null
null
from ml_model.model import KickModel import numpy as np import pandas as pd import eli5 import joblib import flask from flask import Flask, render_template, request, jsonify app = Flask(__name__) model_oh = joblib.load('ml_model/estimators/model_oh.sav') model_hel = joblib.load('ml_model/estimators/model_hel.sav') e...
33.474576
132
0.716456
0
0
0
0
799
0.404557
0
0
529
0.267848
4a70669d9d055da240cf688e557bf0a87257569e
2,810
py
Python
snowddl/resolver/primary_key.py
littleK0i/SnowDDL
b24cb3676e41fec8876d61a101ba242e7272a18f
[ "Apache-2.0" ]
21
2022-02-10T16:52:03.000Z
2022-03-18T15:27:18.000Z
snowddl/resolver/primary_key.py
littleK0i/SnowDDL
b24cb3676e41fec8876d61a101ba242e7272a18f
[ "Apache-2.0" ]
null
null
null
snowddl/resolver/primary_key.py
littleK0i/SnowDDL
b24cb3676e41fec8876d61a101ba242e7272a18f
[ "Apache-2.0" ]
1
2022-03-05T11:02:42.000Z
2022-03-05T11:02:42.000Z
from snowddl.blueprint import PrimaryKeyBlueprint from snowddl.resolver.abc_schema_object_resolver import AbstractSchemaObjectResolver, ResolveResult, ObjectType class PrimaryKeyResolver(AbstractSchemaObjectResolver): def get_object_type(self) -> ObjectType: return ObjectType.PRIMARY_KEY def get_exis...
36.973684
111
0.5879
2,645
0.941281
0
0
0
0
0
0
763
0.27153
4a713700e9c156f74125bcaeca0299290201d914
675
py
Python
modules/module0/02_datastructures_and_geometry/datastructures_2b.py
tetov/ITA19
1af68a8885caf83acd98f4136d0286539ccbe63b
[ "MIT" ]
7
2019-11-13T20:29:54.000Z
2020-02-26T14:30:54.000Z
modules/module0/02_datastructures_and_geometry/datastructures_2b.py
GeneKao/ITA19
c4b10dc183599eed4ed60d922b6ef5922d173bdb
[ "MIT" ]
4
2019-11-07T20:57:51.000Z
2020-03-04T11:43:18.000Z
modules/module0/02_datastructures_and_geometry/datastructures_2b.py
GeneKao/ITA19
c4b10dc183599eed4ed60d922b6ef5922d173bdb
[ "MIT" ]
6
2019-10-30T13:25:54.000Z
2020-02-14T14:06:09.000Z
import os import compas from compas.datastructures import Mesh from compas_rhino.artists import MeshArtist HERE = os.path.dirname(__file__) DATA = os.path.join(HERE, 'data') FILE = os.path.join(DATA, 'faces.obj') mesh = Mesh.from_obj(FILE) artist = MeshArtist(mesh, layer="Mesh") artist.draw_vertices( color={ke...
25
94
0.722963
0
0
0
0
0
0
0
0
23
0.034074
4a7152ca8736c0b2b62e12278fe928d5690e8c0b
461
py
Python
OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
2
2022-03-04T11:39:03.000Z
2022-03-13T07:13:23.000Z
OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
null
null
null
OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
null
null
null
# The Pokemon class should receive a name (string) and health (int) upon initialization. # It should also have a method called pokemon_details that returns the information about the pokemon: # "{pokemon_name} with health {pokemon_health}" class Pokemon: def __init__(self, name: str, health: int) -> None: ...
35.461538
101
0.70282
220
0.477223
0
0
0
0
0
0
276
0.598698
4a71705f7aaede9643300a7a698cb26841f08adc
1,936
py
Python
tests/test_pandas.py
ONSdigital/ons_utils
5ff0952c174984deb601af8ad4c21f26c7b24623
[ "MIT" ]
null
null
null
tests/test_pandas.py
ONSdigital/ons_utils
5ff0952c174984deb601af8ad4c21f26c7b24623
[ "MIT" ]
null
null
null
tests/test_pandas.py
ONSdigital/ons_utils
5ff0952c174984deb601af8ad4c21f26c7b24623
[ "MIT" ]
1
2022-03-17T08:03:17.000Z
2022-03-17T08:03:17.000Z
"""Tests for the pandas helpers in the pd_helpers.py module.""" import pytest from pandas.testing import assert_frame_equal from tests.conftest import create_dataframe from ons_utils.pandas import * def test_nested_dict_to_df(): """Test for nested_dict_to_df.""" input_d = { 'bones': { 'f...
22.776471
63
0.591426
382
0.197314
0
0
677
0.34969
0
0
690
0.356405
4a71f720f8188e39f1b7b64f6e15744bd236efe6
72
py
Python
lsf_ibutils/ibsub/__init__.py
seanfisk/lsf-ibutils
a22c738376d656ab38f4bfa3572d4693288098cb
[ "MIT" ]
null
null
null
lsf_ibutils/ibsub/__init__.py
seanfisk/lsf-ibutils
a22c738376d656ab38f4bfa3572d4693288098cb
[ "MIT" ]
null
null
null
lsf_ibutils/ibsub/__init__.py
seanfisk/lsf-ibutils
a22c738376d656ab38f4bfa3572d4693288098cb
[ "MIT" ]
1
2021-06-03T22:32:54.000Z
2021-06-03T22:32:54.000Z
""":mod:`lsf_ibutils.ibsub` -- Interactive batch submission utility """
24
67
0.722222
0
0
0
0
0
0
0
0
71
0.986111
4a72355337ea53a1937c776fab78aa381734b4c1
193
py
Python
build/lib/configger/fishes/__init__.py
PaperDevil/pyconfigger
75c6e3f74e6e70d8ec9565397e2be9ae8815d44e
[ "MIT" ]
2
2021-02-04T14:29:19.000Z
2021-03-04T12:56:58.000Z
build/lib/configger/fishes/__init__.py
PaperDevil/pyconfigger
75c6e3f74e6e70d8ec9565397e2be9ae8815d44e
[ "MIT" ]
null
null
null
build/lib/configger/fishes/__init__.py
PaperDevil/pyconfigger
75c6e3f74e6e70d8ec9565397e2be9ae8815d44e
[ "MIT" ]
2
2020-08-19T21:50:30.000Z
2020-11-04T03:51:33.000Z
import os splited_path = os.path.realpath(__file__).split('\\')[:-1] fish_path = '\\'.join(splited_path) fish_json_name = "fish.json" fish_json_path = os.path.join(fish_path, fish_json_name)
24.125
58
0.735751
0
0
0
0
0
0
0
0
19
0.098446
4a73c0e8a1979c239e091749b325602ad4a40468
5,620
py
Python
setup.py
IntuitionEngineeringTeam/RedBlackPy
99630408153bea7494415c402eb2d9881f3168ee
[ "Apache-2.0" ]
12
2018-08-24T20:46:38.000Z
2022-01-20T16:25:23.000Z
setup.py
IntuitionEngineeringTeam/RedBlackPy
99630408153bea7494415c402eb2d9881f3168ee
[ "Apache-2.0" ]
1
2019-04-02T04:19:58.000Z
2019-04-02T04:19:58.000Z
setup.py
IntuitionEngineeringTeam/RedBlackPy
99630408153bea7494415c402eb2d9881f3168ee
[ "Apache-2.0" ]
3
2018-07-05T22:47:27.000Z
2019-05-25T06:40:40.000Z
# # Created by Soldoskikh Kirill. # Copyright 2018 Intuition. All rights reserved. # import os import platform from setuptools import setup from setuptools.command.build_ext import build_ext from distutils.extension import Extension from Cython.Build import cythonize from rbp_setup_tools.code_generation import gener...
44.251969
108
0.57242
0
0
0
0
0
0
0
0
2,673
0.475623
4a73d46ee78874a78fab6b3b0aaa918a453b1649
8,296
py
Python
source/accounts/views.py
kishan2064/hashpy1
2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264
[ "BSD-3-Clause" ]
null
null
null
source/accounts/views.py
kishan2064/hashpy1
2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264
[ "BSD-3-Clause" ]
5
2020-02-11T22:31:59.000Z
2021-06-10T17:45:14.000Z
source/accounts/views.py
kishan2064/hashpy1
2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth import login, authenticate, REDIRECT_FIELD_NAME, get_user_model from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.views import PasswordResetView as BasePasswordResetView, SuccessURLAllowedHostsMixin from django.shortcuts impor...
32.155039
118
0.690333
7,095
0.855231
0
0
365
0.043997
0
0
1,131
0.136331
4a7405fc354c53785ef8307b7ce20355175f5c8f
7,320
py
Python
conversationkg/kgs/writers.py
INDElab/conversationkg
8bfe09b0afb4954f633a9287f723c61dcd21ce46
[ "Apache-2.0" ]
3
2021-01-18T10:07:44.000Z
2021-05-27T07:39:35.000Z
conversationkg/kgs/writers.py
INDElab/conversationkg
8bfe09b0afb4954f633a9287f723c61dcd21ce46
[ "Apache-2.0" ]
3
2020-12-09T23:20:27.000Z
2021-03-06T11:08:24.000Z
conversationkg/kgs/writers.py
INDElab/conversationkg
8bfe09b0afb4954f633a9287f723c61dcd21ce46
[ "Apache-2.0" ]
1
2021-02-19T12:10:11.000Z
2021-02-19T12:10:11.000Z
from ..conversations.corpus import Conversation from ..conversations.emails import Email from collections import Counter import matplotlib import pandas as pd import json class JSONWriter: def __init__(self, kg): self.kg = kg self.entities = kg.entities() self.triples = kg.triples ...
30.247934
124
0.454645
7,053
0.963525
0
0
2,344
0.320219
0
0
676
0.09235
4a74f67398645a5ea142cd4ebc8cc51cbdd14233
590
py
Python
model-test.py
shikew/Handwriting-calculator
5e0da9f8ceac6dcc815139c6855dfc6fb5af909f
[ "Apache-2.0" ]
null
null
null
model-test.py
shikew/Handwriting-calculator
5e0da9f8ceac6dcc815139c6855dfc6fb5af909f
[ "Apache-2.0" ]
null
null
null
model-test.py
shikew/Handwriting-calculator
5e0da9f8ceac6dcc815139c6855dfc6fb5af909f
[ "Apache-2.0" ]
1
2019-09-11T11:48:47.000Z
2019-09-11T11:48:47.000Z
import numpy as np from PIL import Image from keras.models import load_model img_gray = Image.open('1002.png') number = np.array(img_gray) print(number.shape) print('准备的图片的shape:',number.flatten().shape) print('原number:',number) number = number.astype('float32') number = number/255 #归一化 number = number.flatten() pri...
28.095238
48
0.749153
0
0
0
0
0
0
0
0
268
0.422713
4a752e0adb3dfdb8832eacdb68f81c47021fa651
378
gyp
Python
deps/libgdal/gyp-formats/ogr_mem.gyp
khrushjing/node-gdal-async
6546b0c8690f2db677d5385b40b407523503b314
[ "Apache-2.0" ]
42
2021-03-26T17:34:52.000Z
2022-03-18T14:15:31.000Z
deps/libgdal/gyp-formats/ogr_mem.gyp
khrushjing/node-gdal-async
6546b0c8690f2db677d5385b40b407523503b314
[ "Apache-2.0" ]
29
2021-06-03T14:24:01.000Z
2022-03-23T15:43:58.000Z
deps/libgdal/gyp-formats/ogr_mem.gyp
khrushjing/node-gdal-async
6546b0c8690f2db677d5385b40b407523503b314
[ "Apache-2.0" ]
8
2021-05-14T19:26:37.000Z
2022-03-21T13:44:42.000Z
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_ogr_mem_frmt", "type": "static_library", "sources": [ "../gdal/ogr/ogrsf_frmts/mem/ogrmemdatasource.cpp", "../gdal/ogr/ogrsf_frmts/mem/ogrmemlayer.cpp", "../gdal/ogr/ogrsf_frmts/mem/ogrmemdriver.cpp" ], "include...
18.9
55
0.595238
0
0
0
0
0
0
0
0
285
0.753968
4a75b7b70277fd3cd807924be5321a95f06ea318
72,121
py
Python
iblviewer/volume.py
nantille/iblviewer
a5dad67e8f4b99a535297ba0803caf07b1107ca1
[ "MIT" ]
null
null
null
iblviewer/volume.py
nantille/iblviewer
a5dad67e8f4b99a535297ba0803caf07b1107ca1
[ "MIT" ]
null
null
null
iblviewer/volume.py
nantille/iblviewer
a5dad67e8f4b99a535297ba0803caf07b1107ca1
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Mapping, List, Any from datetime import datetime import logging import pandas as pd import glob import numpy as np import logging import os from collections import OrderedDict import nrrd import vtk import vedo from vtk.util.numpy_support import numpy_to_vtk ...
39.867883
119
0.609892
71,468
0.990589
0
0
20,772
0.287912
0
0
27,541
0.381735
4a76ff4e7600c0692264f843891e33f896e8b3a4
12,670
py
Python
modeling/dataset.py
LaudateCorpus1/ml-cread
b5d5aa87faa0ddad0b41b6b0672395a8bf6147ae
[ "AML" ]
18
2021-05-25T17:06:46.000Z
2021-11-08T09:47:48.000Z
modeling/dataset.py
LaudateCorpus1/ml-cread
b5d5aa87faa0ddad0b41b6b0672395a8bf6147ae
[ "AML" ]
null
null
null
modeling/dataset.py
LaudateCorpus1/ml-cread
b5d5aa87faa0ddad0b41b6b0672395a8bf6147ae
[ "AML" ]
6
2021-06-03T21:29:34.000Z
2022-03-26T11:38:37.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2021 Apple Inc. All Rights Reserved. # ''' Dataset file ''' import sys import time import json import copy from itertools import chain from tqdm import tqdm, trange import torch from torch.utils.data import DataLoader, RandomSampler SPECIAL_TOKENS = {...
38.510638
139
0.728808
12,013
0.947996
0
0
0
0
0
0
3,178
0.250789
4a770f589bb75a8f2ce9da24f74f5b68103d69bf
2,431
py
Python
hy/lex/lexer.py
schuster-rainer/hy
d969ed63d67c4a9070fd41a8fbff35da845e0619
[ "MIT" ]
12
2015-01-01T21:21:31.000Z
2021-06-14T19:51:59.000Z
hy/lex/lexer.py
schuster-rainer/hy
d969ed63d67c4a9070fd41a8fbff35da845e0619
[ "MIT" ]
null
null
null
hy/lex/lexer.py
schuster-rainer/hy
d969ed63d67c4a9070fd41a8fbff35da845e0619
[ "MIT" ]
2
2016-01-17T21:59:29.000Z
2016-09-06T20:56:41.000Z
# Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org> # # 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,...
34.239437
76
0.667626
0
0
0
0
0
0
0
0
2,011
0.827232
4a77208eebfdf92ef53ffabde97b664e8625e12d
1,319
py
Python
week6/shuffle.py
solideveloper/afs-210
2ba0bb7c7617cd3169907458f657696a6987689d
[ "Apache-2.0" ]
1
2022-01-06T01:22:17.000Z
2022-01-06T01:22:17.000Z
week6/shuffle.py
solideveloper/afs-210
2ba0bb7c7617cd3169907458f657696a6987689d
[ "Apache-2.0" ]
null
null
null
week6/shuffle.py
solideveloper/afs-210
2ba0bb7c7617cd3169907458f657696a6987689d
[ "Apache-2.0" ]
null
null
null
# Python provides a built-in method called random.shuffle that will shuffle the list data type. Do not use this. # For this assignment, you are to create your own shuffle algorithm that will take as input a sorted list and randomly shuffle the items before returning the list. Try to make your algorithm as efficient a...
54.958333
217
0.749052
0
0
0
0
0
0
0
0
909
0.689158
4a78cf1db1ffe2307d7c782737a9e5d96a2685ca
1,254
py
Python
workbox/workbox/lib/helpers.py
pr3sto/workbox
558147a1a387dcfbe03be0fbc366d1d793364da6
[ "MIT" ]
null
null
null
workbox/workbox/lib/helpers.py
pr3sto/workbox
558147a1a387dcfbe03be0fbc366d1d793364da6
[ "MIT" ]
null
null
null
workbox/workbox/lib/helpers.py
pr3sto/workbox
558147a1a387dcfbe03be0fbc366d1d793364da6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Template Helpers used in workbox""" import logging import socket from datetime import datetime from markupsafe import Markup import psutil import tg log = logging.getLogger(__name__) def current_year(): """ Return current year. """ now = datetime.now() return now.strftime('%Y...
22.392857
75
0.679426
0
0
0
0
0
0
0
0
398
0.317384
4a79466df9295fa5ad7c3a62c359310229ec684a
5,647
py
Python
tadataka/dataset/new_tsukuba.py
IshitaTakeshi/Tadataka
852c7afb904503005e51884408e1492ef0be836f
[ "Apache-2.0" ]
54
2019-11-15T16:30:34.000Z
2022-01-13T15:18:54.000Z
tadataka/dataset/new_tsukuba.py
IshitaTakeshi/Tadataka
852c7afb904503005e51884408e1492ef0be836f
[ "Apache-2.0" ]
11
2019-02-28T08:28:24.000Z
2020-04-07T04:47:12.000Z
tadataka/dataset/new_tsukuba.py
IshitaTakeshi/Tadataka
852c7afb904503005e51884408e1492ef0be836f
[ "Apache-2.0" ]
1
2020-02-26T13:59:40.000Z
2020-02-26T13:59:40.000Z
import csv import os from pathlib import Path from xml.etree import ElementTree as ET from tqdm import tqdm from scipy.spatial.transform import Rotation from skimage.io import imread import numpy as np from tadataka.camera import CameraModel, CameraParameters, FOV from tadataka.dataset.frame import Frame from tadatak...
34.644172
81
0.673278
2,637
0.466974
0
0
0
0
0
0
843
0.149283
4a798e4f49354ed1b300d7ffad5bbb4e1e929e1a
2,015
py
Python
krogon/maybe.py
enamrik/krogon
a41a10ed346b7198509929ed9ba1e9fcf778dc78
[ "MIT" ]
1
2020-03-02T14:17:02.000Z
2020-03-02T14:17:02.000Z
krogon/maybe.py
enamrik/krogon
a41a10ed346b7198509929ed9ba1e9fcf778dc78
[ "MIT" ]
null
null
null
krogon/maybe.py
enamrik/krogon
a41a10ed346b7198509929ed9ba1e9fcf778dc78
[ "MIT" ]
null
null
null
from typing import Callable, TypeVar, Union, Tuple from krogon.infix import Infix A = TypeVar('A') B = TypeVar('B') E = TypeVar('E') Maybe = Union[Tuple['just', A], Tuple['nothing']] def just(value=None): return "just", value def nothing(): return "nothing", None def from_value(value) -> Maybe[B]: r...
24.573171
93
0.629777
0
0
0
0
1,163
0.577171
0
0
158
0.078412
4a7b9c4a8cadc7353c88a38e25dd9423d5d9fd02
1,224
py
Python
Python (desafios)/desafio 009.py
EbersonDias/html-css
b05ec122dc7649656bcfce92dc92ded127bbb2cf
[ "MIT" ]
null
null
null
Python (desafios)/desafio 009.py
EbersonDias/html-css
b05ec122dc7649656bcfce92dc92ded127bbb2cf
[ "MIT" ]
null
null
null
Python (desafios)/desafio 009.py
EbersonDias/html-css
b05ec122dc7649656bcfce92dc92ded127bbb2cf
[ "MIT" ]
null
null
null
# Desafio 009 # Faça um programa que leia um numero inteiro qualquer # e mostre na tela a sua tabuada. n = int(input('digite um numero. ')) r1 = n * 1 r2 = (n * 2) r3 = (n * 3) r4 = (n * 4) r5 = (n * 5) r6 = (n * 6) r7 = (n * 7) r8 = (n * 8) r9 = (n * 9) r10 = (n * 10) print('A Tabuada de {} é'.format(n)) print ('{} x...
29.142857
54
0.476307
0
0
0
0
0
0
0
0
508
0.413681
4a7be356f01ce20843ac2c23c55739f318ee8ab2
110
py
Python
tools/__init__.py
supercatex/TelloEdu
8f434dbc9866be3025cb119175c40f1d2d7fb5f3
[ "MIT" ]
1
2019-12-04T04:30:06.000Z
2019-12-04T04:30:06.000Z
tools/__init__.py
supercatex/TelloEdu
8f434dbc9866be3025cb119175c40f1d2d7fb5f3
[ "MIT" ]
null
null
null
tools/__init__.py
supercatex/TelloEdu
8f434dbc9866be3025cb119175c40f1d2d7fb5f3
[ "MIT" ]
null
null
null
from tools.TelloEdu import TelloEdu from tools.Controller import * from tools.SocketObject import SocketClient
36.666667
43
0.863636
0
0
0
0
0
0
0
0
0
0
4a7c28f2d0e401facd4b7a43c6ef059a3a83d500
1,193
py
Python
neutron/agent/ovsdb/native/helpers.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/agent/ovsdb/native/helpers.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/agent/ovsdb/native/helpers.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright (c) 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
37.28125
78
0.776194
0
0
0
0
0
0
0
0
596
0.499581
4a7c2f9da4b8409fc6aa35e9cf22595f9dcc870b
302
py
Python
conlo/serializer/json_serializer.py
kira607/config_loader
024f33d48fee1635dfa9ed286f84bb96f22c134a
[ "MIT" ]
null
null
null
conlo/serializer/json_serializer.py
kira607/config_loader
024f33d48fee1635dfa9ed286f84bb96f22c134a
[ "MIT" ]
null
null
null
conlo/serializer/json_serializer.py
kira607/config_loader
024f33d48fee1635dfa9ed286f84bb96f22c134a
[ "MIT" ]
null
null
null
import json from .base_serializer import BaseSerializer class JsonSerializer(BaseSerializer): '''Json serializer.''' def _serialize(self, data: dict, **kwargs) -> str: return json.dumps(data) def _deserialize(self, data: str, **kwargs) -> dict: return json.loads(data)
21.571429
56
0.675497
242
0.801325
0
0
0
0
0
0
22
0.072848
4a7c6a7695f0b0415525906b878d73cc448533e5
264
py
Python
console_weather.py
AlBan52/API_weather
86779a2da622ad7a4537070e5c28a04235415161
[ "MIT" ]
null
null
null
console_weather.py
AlBan52/API_weather
86779a2da622ad7a4537070e5c28a04235415161
[ "MIT" ]
null
null
null
console_weather.py
AlBan52/API_weather
86779a2da622ad7a4537070e5c28a04235415161
[ "MIT" ]
null
null
null
import requests locations = ['Лондон', 'Шереметьево', 'Череповец'] payload = {'mnTq': '', 'lang': 'ru'} for location in locations: response = requests.get(f'http://wttr.in/{location}', params=payload) response.raise_for_status() print(response.text)
26.4
73
0.681818
0
0
0
0
0
0
0
0
104
0.358621
4a7c6e1277408f69b722e24dda7d218cc70dda0f
1,192
py
Python
migrations/versions/576712576c48_added_model_for_photo_comments.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
migrations/versions/576712576c48_added_model_for_photo_comments.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
93
2017-09-01T22:24:10.000Z
2021-12-22T14:07:06.000Z
migrations/versions/576712576c48_added_model_for_photo_comments.py
Torniojaws/vortech-backend
f775a97eeae089fa720088d86fe92d40bc5d65bc
[ "MIT" ]
null
null
null
"""Added model for photo comments Revision ID: 576712576c48 Revises: 75bb906df167 Create Date: 2018-03-30 02:06:22.877079 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '576712576c48' down_revision = '75bb906df167' branch_labels = None depends_o...
30.564103
81
0.672819
0
0
0
0
0
0
0
0
549
0.46057
4a7c8678af28d04fe1e6fb14eef66f905c9017b0
164
py
Python
__init__.py
m3sserschmitt/basic-http
bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82
[ "MIT" ]
null
null
null
__init__.py
m3sserschmitt/basic-http
bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82
[ "MIT" ]
null
null
null
__init__.py
m3sserschmitt/basic-http
bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82
[ "MIT" ]
null
null
null
import basic_http.session basic_http.session.LIB_VERSION = 'v0.0.4-beta' basic_http.session.DEFAULT_AGENT = 'basic-http version ' + basic_http.session.LIB_VERSION
32.8
89
0.810976
0
0
0
0
0
0
0
0
34
0.207317
4a7f99985562db134bffd977ed750d635522a7a2
12,364
py
Python
usaspending_api/etl/helpers.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
usaspending_api/etl/helpers.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
3
2020-02-12T01:16:46.000Z
2021-06-10T20:36:57.000Z
usaspending_api/etl/helpers.py
truthiswill/usaspending-api
bd7d915442e2ec94cc830c480ceeffd4479be6c0
[ "CC0-1.0" ]
null
null
null
from datetime import datetime import warnings import logging from django.db.models import Q, Case, Value, When from django.core.cache import caches, CacheKeyWarning import django.apps from usaspending_api.references.models import Agency, Location, RefCountryCode from usaspending_api.references.helpers import canonica...
38.397516
119
0.63604
0
0
0
0
0
0
0
0
4,248
0.343578
4a7ff589828eca63a17e67bce0eb8c34992e953a
158
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py
DevAerial/flask-api-template
6d3f745f2dacb793c4bdc6aaaceb86eb472efe55
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py
DevAerial/flask-api-template
6d3f745f2dacb793c4bdc6aaaceb86eb472efe55
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py
DevAerial/flask-api-template
6d3f745f2dacb793c4bdc6aaaceb86eb472efe55
[ "MIT" ]
null
null
null
from flask_marshmallow import Marshmallow{% if cookiecutter.use_celery == 'yes'%} from celery import Celery celery = Celery(){% endif %} ma = Marshmallow()
22.571429
81
0.740506
0
0
0
0
0
0
0
0
5
0.031646
4a80119456047b966a3757d7fd0f105dc0f5c4f6
9,193
py
Python
code/mapplot.py
young-astronomer/vlpy
7fd434d307a7cc3593f84a7c6c2f4a4a86865afe
[ "Apache-2.0" ]
null
null
null
code/mapplot.py
young-astronomer/vlpy
7fd434d307a7cc3593f84a7c6c2f4a4a86865afe
[ "Apache-2.0" ]
null
null
null
code/mapplot.py
young-astronomer/vlpy
7fd434d307a7cc3593f84a7c6c2f4a4a86865afe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Oct 21 11:11:56 2020 This program is use to plot polarization map from vlbi fits image. You should specify the input fits images by -i or --infile, output file by -o or --output, contour levs by -l or --levs contour base by -c or --cmul polarization...
30.042484
101
0.617753
0
0
0
0
0
0
0
0
2,694
0.293049
4a81890c9e9eec4855a38a91238cf619244d9278
2,174
py
Python
umbrella/api/v1/router.py
pizhi/umbrella
95027e6e11a6c8df2ab5f7c202b0c1d2183f839a
[ "Apache-2.0" ]
1
2018-01-13T11:45:24.000Z
2018-01-13T11:45:24.000Z
umbrella/api/v1/router.py
pizhi/umbrella
95027e6e11a6c8df2ab5f7c202b0c1d2183f839a
[ "Apache-2.0" ]
null
null
null
umbrella/api/v1/router.py
pizhi/umbrella
95027e6e11a6c8df2ab5f7c202b0c1d2183f839a
[ "Apache-2.0" ]
2
2018-01-01T11:39:49.000Z
2018-08-07T07:16:45.000Z
# Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
36.233333
78
0.559798
1,469
0.675713
0
0
0
0
0
0
904
0.415823
4a8279873b5f73ab9eb14c009ec624c039c590a5
943
py
Python
exemples/test_thomson_simu.py
butala/TomograPy
a1da41f1e0b7406a1b770e56428789c54175de20
[ "CECILL-B" ]
7
2016-07-05T08:31:42.000Z
2022-03-31T20:24:13.000Z
exemples/test_thomson_simu.py
esoubrie/TomograPy
a1da41f1e0b7406a1b770e56428789c54175de20
[ "CECILL-B" ]
null
null
null
exemples/test_thomson_simu.py
esoubrie/TomograPy
a1da41f1e0b7406a1b770e56428789c54175de20
[ "CECILL-B" ]
4
2018-08-14T01:54:21.000Z
2022-03-10T19:44:43.000Z
#!/usr/bin/env python import time import numpy as np import tomograpy import lo # object obj = tomograpy.centered_cubic_map(10, 64) obj[:] = tomograpy.phantom.shepp_logan(obj.shape) # data radius = 200 a = tomograpy.fov(obj, radius) data = tomograpy.centered_stack(a, 128, n_images=60, radius=radius, max_lon=np.pi) # m...
30.419355
82
0.680806
0
0
0
0
0
0
0
0
206
0.218452
4a82ccd998802091de5e9ed946344d30c5ebeba5
8,124
py
Python
geopy/geocoders/google.py
ulope/geopy
605d0d84137a93949ad03820fa31dc2dab77f089
[ "MIT" ]
1
2021-03-12T15:31:30.000Z
2021-03-12T15:31:30.000Z
geopy/geocoders/google.py
ulope/geopy
605d0d84137a93949ad03820fa31dc2dab77f089
[ "MIT" ]
null
null
null
geopy/geocoders/google.py
ulope/geopy
605d0d84137a93949ad03820fa31dc2dab77f089
[ "MIT" ]
null
null
null
import logging from urllib import urlencode from urllib2 import urlopen import simplejson import xml from xml.parsers.expat import ExpatError from geopy.geocoders.base import Geocoder from geopy import Point, Location, util class Google(Geocoder): """Geocoder using the Google Maps API.""" def __init__(...
41.238579
139
0.601674
7,893
0.971566
0
0
175
0.021541
0
0
2,753
0.338872
4a845cfff802e634071ade849b849c82adc47ef1
395
py
Python
interactive_grabcut/repo/drag2draw.py
hiankun/py_sandbox
6623edd0c8ab17641e1ce09fba7da34c4865fc4f
[ "MIT" ]
null
null
null
interactive_grabcut/repo/drag2draw.py
hiankun/py_sandbox
6623edd0c8ab17641e1ce09fba7da34c4865fc4f
[ "MIT" ]
null
null
null
interactive_grabcut/repo/drag2draw.py
hiankun/py_sandbox
6623edd0c8ab17641e1ce09fba7da34c4865fc4f
[ "MIT" ]
null
null
null
# source: https://www.youtube.com/watch?v=U0sVp1xLiyo from tkinter import * def paint(event): color = 'red' x1, y1 = (event.x-1), (event.y-1) x2, y2 = (event.x+1), (event.y+1) c.create_oval(x1,y1,x2,y2,fill=color,outline=color) master = Tk() c = Canvas(master, width=600, height=400, bg='white') c.pa...
21.944444
55
0.648101
0
0
0
0
0
0
0
0
78
0.197468
4a85a5edb74a35f6879d8683f009ca6b7f10f18c
194
py
Python
migrations/20220114_03_Heqaz-insert-default-serverinfo.py
lin483/Funny-Nations
2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6
[ "MIT" ]
126
2022-01-15T02:29:07.000Z
2022-03-30T09:57:40.000Z
migrations/20220114_03_Heqaz-insert-default-serverinfo.py
lin483/Funny-Nations
2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6
[ "MIT" ]
18
2022-01-11T22:24:35.000Z
2022-03-16T00:13:01.000Z
migrations/20220114_03_Heqaz-insert-default-serverinfo.py
lin483/Funny-Nations
2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6
[ "MIT" ]
25
2022-01-22T15:06:27.000Z
2022-03-01T04:34:19.000Z
""" insert default serverInfo """ from yoyo import step __depends__ = {'20220114_02_lHBKM-new-table-serverinfo'} steps = [ step("INSERT INTO `serverInfo` (`onlineMinute`) VALUES (0);") ]
16.166667
65
0.695876
0
0
0
0
0
0
0
0
128
0.659794
4a861f0810192c03917c1a4cb2de99fa5681f49e
14,913
py
Python
neutronclient/osc/v2/vpnaas/ipsec_site_connection.py
slawqo/python-neutronclient
ee08644c5f2424a40c70010dcf0fa2ad84809bfc
[ "Apache-2.0" ]
120
2015-01-07T00:38:58.000Z
2021-12-26T13:05:53.000Z
neutronclient/osc/v2/vpnaas/ipsec_site_connection.py
slawqo/python-neutronclient
ee08644c5f2424a40c70010dcf0fa2ad84809bfc
[ "Apache-2.0" ]
1
2021-08-11T18:42:30.000Z
2021-08-11T22:25:21.000Z
neutronclient/osc/v2/vpnaas/ipsec_site_connection.py
slawqo/python-neutronclient
ee08644c5f2424a40c70010dcf0fa2ad84809bfc
[ "Apache-2.0" ]
153
2015-01-05T16:50:50.000Z
2021-09-13T12:01:23.000Z
# Copyright 2017 FUJITSU LIMITED # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
39.768
79
0.632468
8,991
0.602897
0
0
0
0
0
0
4,278
0.286864
4a866ef89141cc4c966674193758ad5f52e83702
551
py
Python
Arknights/flags.py
AlaricGilbert/ArknightsAutoHelper
9e2db0c4e0d1be30856df731ab192da396121d94
[ "MIT" ]
null
null
null
Arknights/flags.py
AlaricGilbert/ArknightsAutoHelper
9e2db0c4e0d1be30856df731ab192da396121d94
[ "MIT" ]
1
2019-09-10T13:58:24.000Z
2019-09-10T13:58:24.000Z
Arknights/flags.py
AlaricGilbert/ArknightsAutoHelper
9e2db0c4e0d1be30856df731ab192da396121d94
[ "MIT" ]
null
null
null
TINY_WAIT = 1 SMALL_WAIT = 3 MEDIUM_WAIT = 5 BIG_WAIT = 10 SECURITY_WAIT = 15 BATTLE_FINISH_DETECT = 12 BATTLE_NONE_DETECT_TIME = 90 BATTLE_END_SIGNAL_MAX_EXECUTE_TIME = 15 # 关键动作的偏移 FLAGS_START_BATTLE_BIAS = (50, 25) FLAGS_ENSURE_TEAM_INFO_BIAS = (25, 50) # 正方形偏移 FLAGS_CLICK_BIAS_TINY = (3, 3) FLAGS_CLICK_BIAS_SMAL...
21.192308
44
0.751361
0
0
0
0
0
0
0
0
116
0.186196
4a868fe7e98135f318566006794d9b95f620108a
3,229
py
Python
elasticsearch/client/shutdown.py
Conky5/elasticsearch-py
93543a7fee51c0da6e898c9155bdb5f965c5bb53
[ "Apache-2.0" ]
4
2021-05-31T19:34:27.000Z
2021-06-01T18:14:31.000Z
elasticsearch/client/shutdown.py
Conky5/elasticsearch-py
93543a7fee51c0da6e898c9155bdb5f965c5bb53
[ "Apache-2.0" ]
22
2021-05-15T00:01:49.000Z
2022-02-26T00:08:00.000Z
elasticsearch/client/shutdown.py
Conky5/elasticsearch-py
93543a7fee51c0da6e898c9155bdb5f965c5bb53
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
33.989474
85
0.637039
2,362
0.731496
0
0
2,306
0.714153
0
0
2,116
0.655311
4a893fcf944a3942d0a9e7e6cc93c141d9894e31
13,620
py
Python
sushichef.py
RechercheTech/sushi-chef-arvind-gupta-toys
2b381d8942c16ed16b4a44d8fc020fe0a81a18c0
[ "MIT" ]
1
2020-05-10T06:16:48.000Z
2020-05-10T06:16:48.000Z
sushichef.py
RechercheTech/sushi-chef-arvind-gupta-toys
2b381d8942c16ed16b4a44d8fc020fe0a81a18c0
[ "MIT" ]
5
2019-10-04T11:35:21.000Z
2020-05-25T14:19:41.000Z
sushichef.py
RechercheTech/sushi-chef-arvind-gupta-toys
2b381d8942c16ed16b4a44d8fc020fe0a81a18c0
[ "MIT" ]
3
2019-09-24T00:15:00.000Z
2020-02-06T16:25:36.000Z
#!/usr/bin/env python import os import requests import re import shutil from arvind import ArvindVideo, ArvindLanguage, YOUTUBE_CACHE_DIR from bs4 import BeautifulSoup from bs4.element import NavigableString from ricecooker.chefs import SushiChef from ricecooker.classes.files import YouTubeVideoFile from ricecooker...
37.01087
113
0.606608
1,510
0.110866
0
0
0
0
0
0
3,218
0.23627
4a89792f0a691e63a2efbaa3d996bdb8f827265c
1,170
py
Python
api/views/domain.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
1
2019-08-06T07:31:40.000Z
2019-08-06T07:31:40.000Z
api/views/domain.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
null
null
null
api/views/domain.py
lndba/apasa_backend
e0bb96e22a22f6e2a5a2826f225388113473e7e2
[ "Apache-2.0" ]
null
null
null
from rest_framework.viewsets import ModelViewSet,GenericViewSet from rest_framework.response import Response from api.serializers.domain import * from api.pagination.page import MyPageNumberPagination from api.models import * class MDomainListViewSet(ModelViewSet): queryset = MasterDomainName.objects.all().order...
35.454545
82
0.737607
933
0.797436
0
0
0
0
0
0
48
0.041026
4a89890f028ab800ae7dcb96dcff01c0b7e8d98a
1,184
py
Python
90-subsets-ii.py
yuenliou/leetcode
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
[ "MIT" ]
null
null
null
90-subsets-ii.py
yuenliou/leetcode
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
[ "MIT" ]
null
null
null
90-subsets-ii.py
yuenliou/leetcode
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- from typing import List class Solution: def subsetsWithDup(self, nums: List[int]) -> List[List[int]]: """ 题解:https://leetcode-cn.com/problems/subsets/solution/c-zong-jie-liao-hui-su-wen-ti-lei-xing-dai-ni-gao-/ """ def backtrack(sta...
19.733333
112
0.516047
767
0.528237
0
0
0
0
0
0
742
0.511019
4a8a19db97a47f9f1fc1395728868b9d716366fe
450
py
Python
tools/output_tool.py
climberwb/bert-pli
0e6eda7a23b7502c86eab4c0d889fad1bbb57155
[ "MIT" ]
5
2020-12-24T01:46:40.000Z
2022-03-18T19:15:10.000Z
tools/output_tool.py
climberwb/bert-pli
0e6eda7a23b7502c86eab4c0d889fad1bbb57155
[ "MIT" ]
1
2021-04-05T14:27:24.000Z
2021-04-05T14:27:24.000Z
tools/output_tool.py
climberwb/bert-pli
0e6eda7a23b7502c86eab4c0d889fad1bbb57155
[ "MIT" ]
4
2020-12-28T09:20:13.000Z
2021-12-10T13:33:21.000Z
import json from .accuracy_tool import gen_micro_macro_result def null_output_function(data, config, *args, **params): return "" def basic_output_function(data, config, *args, **params): which = config.get("output", "output_value").replace(" ", "").split(",") temp = gen_micro_macro_result(da...
25
77
0.653333
0
0
0
0
0
0
0
0
32
0.071111
4a8ae0336fc8e8f4551cb0d621a28672bac709c0
27,100
py
Python
python/drydock_provisioner/ingester/plugins/deckhand.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
14
2018-05-19T11:58:22.000Z
2019-05-10T12:31:36.000Z
python/drydock_provisioner/ingester/plugins/deckhand.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
10
2019-11-12T17:21:16.000Z
2021-11-10T18:16:06.000Z
python/drydock_provisioner/ingester/plugins/deckhand.py
Vjrx/airship-drydock
315fb9864e6d55a66d5266f76c160be55d22c98b
[ "Apache-2.0" ]
11
2018-06-05T16:21:18.000Z
2019-04-03T11:44:34.000Z
# Copyright 2017 AT&T Intellectual Property. All other rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
37.225275
108
0.573579
25,878
0.954908
0
0
0
0
0
0
7,346
0.27107
4a8ca4ac28e4f99e7596ac67b54b694b5e38191d
5,517
py
Python
porting_tools/package_xml_porter.py
nreplogle/ros2-migration-tools
8e422731dea52df19da6de780319a17516f60f7c
[ "Apache-2.0" ]
92
2018-10-17T22:18:01.000Z
2022-03-19T22:03:16.000Z
porting_tools/package_xml_porter.py
nreplogle/ros2-migration-tools
8e422731dea52df19da6de780319a17516f60f7c
[ "Apache-2.0" ]
12
2019-02-21T22:29:15.000Z
2021-06-28T22:33:31.000Z
porting_tools/package_xml_porter.py
nreplogle/ros2-migration-tools
8e422731dea52df19da6de780319a17516f60f7c
[ "Apache-2.0" ]
19
2018-10-18T11:47:07.000Z
2022-02-04T18:41:03.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "licens...
39.12766
104
0.649085
4,042
0.732645
0
0
3,714
0.673192
0
0
2,015
0.365235
4a8eaddf7ae51bc116bee8d180b8c5c1f2cfecaf
4,739
py
Python
endpoints/api/permission_models_interface.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
endpoints/api/permission_models_interface.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
endpoints/api/permission_models_interface.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import sys from abc import ABCMeta, abstractmethod from collections import namedtuple from six import add_metaclass class SaveException(Exception): def __init__(self, other): self.traceback = sys.exc_info() super(SaveException, self).__init__(str(other)) class DeleteException(Exception): de...
21.15625
99
0.556447
4,577
0.965816
0
0
2,840
0.599283
0
0
2,041
0.430682