hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
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
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
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
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
57e11bef0ed4bb5532b0fb2f87ab3defa3ee0f08
17,229
py
Python
python/etc/preprocessing/jisc/jisc_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/etc/preprocessing/jisc/jisc_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/etc/preprocessing/jisc/jisc_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import csv import datetime import json from os import path import re import sys from urllib.error import HTTPError, URLError ARG_HELP_STRINGS = { "source_file": "The jisc csv file", "exchange_rates_cache_file": "An optional cache file for ECB exch...
38.371938
192
0.555111
57ea82b16b274f5350cda5f8ffb8033e48a01085
1,548
py
Python
methods/transformers/examples/seq2seq/save_len_file.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/examples/seq2seq/save_len_file.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/examples/seq2seq/save_len_file.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
#!/usr/bin/env python import fire from torch.utils.data import DataLoader from tqdm import tqdm from transformers import AutoTokenizer from utils import Seq2SeqDataset, pickle_save def save_len_file( tokenizer_name, data_dir, max_source_length=1024, max_target_length=1024, consider_target=False, **kw...
35.181818
112
0.654393
57ec6408fc157866d0a81c58f4feac352152e619
3,450
py
Python
research/cv/pointnet2/src/pointnet2.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/pointnet2/src/pointnet2.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/pointnet2/src/pointnet2.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 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...
37.5
112
0.576232
a4f4e23a6d735a570fdd38b211528a6cdd0610d9
1,189
py
Python
Problems/Depth-First Search/medium/NumberEnclaves/number_of_enclaves.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/NumberEnclaves/number_of_enclaves.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/NumberEnclaves/number_of_enclaves.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def numEnclaves(self, grid: List[List[int]]) -> int: m, n = len(grid), len(grid[0]) def dfs(row: int, col: int) -> int: if row < 0 or row >= m or col < 0 or col >= n: return - (m * n) if grid[row][col] == 0: return 0 grid[row][col] = 0...
27.022727
81
0.417998
3527e785eb348ee6938e6cb836b183317a0e5f7c
3,688
py
Python
plugins/tff_backend/bizz/rogerthat.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/rogerthat.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/rogerthat.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
43.388235
110
0.68167
1077af5d072f08e925497a9eb5ae52458f753edd
1,830
py
Python
challenge/Thiemo/test.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
challenge/Thiemo/test.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
challenge/Thiemo/test.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import timeit tests = [ ('Summierung uint8', ''' import pyximport; import numpy as np pyximport.install(setup_args={'include_dirs': np.get_include()}) import summierungInt as alg a = np.random.random_integers(0,255, %(dim)s).astype(np.uint8) b = np.random.random_integers(0,255, %(dim)s).astype(np.uint8) ''', 'alg.sum(...
26.142857
100
0.708743
dc47572676cafedf0e1f868c7160abfa4617d015
4,013
py
Python
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/bilstm_with_crf/data.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-12T06:52:43.000Z
2022-01-12T06:52:43.000Z
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/bilstm_with_crf/data.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/bilstm_with_crf/data.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. 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 required by appli...
34.299145
118
0.585098
10f85d1081fec9c0fe3b1cde987d69b3cccacd2d
1,707
py
Python
Openharmony v1.0/vendor/hisi/hi35xx/third_party/uboot/tools/binman/image_test.py
clkbit123/TheOpenHarmony
0e6bcd9dee9f1a2481d762966b8bbd24baad6159
[ "MIT" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/tools/binman/image_test.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/tools/binman/image_test.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2017 Google, Inc # Written by Simon Glass <sjg@chromium.org> # # Test for the image module import unittest from image import Image from test_util import capture_sys_output class TestImage(unittest.TestCase): def testInvalidFormat(self): image = Image('n...
37.933333
79
0.627417
337a7618e5b3ffaa46eaf54af32dd998cfb7e5e2
9,642
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/wxgui-02_stillbrokesave.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/wxgui-02_stillbrokesave.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/wxgui-02_stillbrokesave.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
41.560345
124
0.601846
1d3beb1500f67cee98b3bd4f352519dd91475e5e
1,159
py
Python
sso-db/ssodb/common/models/service_model.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-db/ssodb/common/models/service_model.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-db/ssodb/common/models/service_model.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
import datetime from ..core import db import json from bson import ObjectId class Service(db.Document): created_at = db.StringField(default=str(datetime.datetime.utcnow())) updated_at = db.StringField(default=str(datetime.datetime.utcnow())) name = db.StringField(required=True, unique=True) host = db.S...
39.965517
104
0.672994
89208cce1c70cc78da035c74743a23606b906167
2,660
py
Python
examples/relationship/manytoonefield/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytoonefield/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytoonefield/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.db import models # CREATE TABLE `manytoonefield_reporter` ( -- Django 建表语句 # `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, # `first_name` varchar(30) NOT NULL, # `last_name` varchar(30) NOT NULL, # `email` varchar(254) NOT NULL # ); #...
48.363636
117
0.566165
89ac690609f1e3d0a1501b1e64be3237dc585594
92
py
Python
2014/07/men-life-gap/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/07/men-life-gap/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/07/men-life-gap/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '16FywAcZFB7xGfCtrHMWmUkidEV8ikFwMgSgJf5LWxxI'
23
68
0.847826
7fa1485d45de4609f2ca861fc3816ac0c76217b5
1,723
py
Python
scripts/component_graph/server/query/query_handler.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/server/query/query_handler.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/server/query/query_handler.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """QueryHandler services all graph and package queries. The QueryHandler is the business logic layer between the PackageManager and the...
36.659574
88
0.720255
12062a73da81e781e475f26cc8fd1813ec241c8a
1,908
py
Python
tests/rbac/common/addresser/addresser_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/addresser/addresser_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
tests/rbac/common/addresser/addresser_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
36
79
0.70283
126022b5d66c9c3625d207e1cae9dbfb33a68a04
2,702
py
Python
tests/google/test_primary_google_service_account.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
tests/google/test_primary_google_service_account.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
tests/google/test_primary_google_service_account.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
import pytest from unittest.mock import MagicMock, patch class MockResponse: def __init__(self, json_data, status_code): self.json_data = json_data self.status_code = status_code def json(self): return self.json_data def test_primary_google_service_account_valid( client, app...
32.554217
88
0.734641
c3e71626d20fc18a6728e7e99e05a5d7cf3045ab
3,380
py
Python
Uebung4/Uebung4_Aufgabe12.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung4/Uebung4_Aufgabe12.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung4/Uebung4_Aufgabe12.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
# import: import random # die Liste der gezogenen Lottozahlen (sauce header) picks = list() # code: #liste der zur auswahl stehenden zahlen (hier 1-49) zahlen = list(range(1,50)) #anzahl der ziehungen (hier 6 aus 49) anzahl = 6 #ziehungen: jeweils eine zahl ziehen und zu picks hinzufügen und aus zahlen entfernen...
24.316547
110
0.644083
7f247104a82e8fad0e1f63f31b0d8269e65797f9
2,003
py
Python
RESTApi/flaskapp/recommend.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
RESTApi/flaskapp/recommend.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
32
2018-06-19T15:27:04.000Z
2018-09-30T20:17:23.000Z
RESTApi/flaskapp/recommend.py
Peacecake/HoloMu
98b422b226c2274e6d7e96df31724b0d2abd8ebb
[ "MIT" ]
null
null
null
import json from db import get_db import random def calcRecommendation(watched_name, watched_cat): db = get_db() watchedSameCat = 2 watchedExhibit = 0.9 otherExhibit = 1 weights_sum = 0 lastRow = db.execute("SELECT * FROM recommend WHERE ID=(SELECT MAX(ID) FROM recommend)").fetchone...
40.06
104
0.648527
9ccb7ea5fedf5bc0b68bae94dbd5a5c09c9d9c76
108
py
Python
python/python_new/Python 3/untitled4x.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_new/Python 3/untitled4x.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_new/Python 3/untitled4x.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np a=np.array([[1,2],[3,4],[5,8]]) b=a[-1,0:2] print(b) c=a[-1] print(c) d=a[:,1:3] print(d)
13.5
31
0.546296
2c28d23538ff750b39c70a97536878ac52e6fc71
1,076
py
Python
setup.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
setup.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
setup.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
import os from setuptools import setup, find_packages version = '0.4.1' def read(f): return open(os.path.join(os.path.dirname(__file__), f)).read().strip() install_requires = [ 'mistune <= 1', ] tests_require = [ 'nose', 'flake8', 'autopep8', ] devtools_require = [ 'twine', 'build', ...
22.416667
74
0.624535
9fac8f3c828695c8cff839c5969097866b2f76b4
514
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/07.0-Condition.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/07.0-Condition.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/07.0-Condition.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
marks = int(input("What is you marks in Math: ")) def show_grade(grade): print(f"You got: {grade}") if marks >= 80: show_grade("A+") elif marks >= 70: show_grade("A") elif marks >= 60: show_grade("A-") elif marks >= 50: show_grade("B") elif marks >= 40: show_grade("C") else: show_grade("...
17.724138
49
0.577821
2c6a60c9c8ae76a52cd66a8d5cb2289cc09c49cf
2,147
py
Python
python_experiments/data_analysis/vldbj_data_parsing/generate_accuracy_markdown.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/vldbj_data_parsing/generate_accuracy_markdown.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/vldbj_data_parsing/generate_accuracy_markdown.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from data_analysis.vldbj_data_parsing.querying_time_accuracy_statistics import * from data_analysis.vldbj_data_parsing.reads_accuracy_statistics import * import decimal def get_accuracy_dict(root_dir='.', file_name='accuracy_result'): with open(root_dir + os.sep + 'data-json' + os.sep + file_name + '.json') as if...
38.339286
107
0.630182
646a745e6ac3daf4d9d0c6d9836370483a70e293
230
py
Python
Algorithms/Implementation/service_lane.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/service_lane.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/service_lane.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 N, T = list(map(int, input().strip().split(' '))) width = list(map(int, input().strip().split(' '))) for _ in range(T): i, j = list(map(int, input().strip().split(' '))) print(min(width[i:j + 1]))
25.555556
53
0.556522
6484edd6039e15fcfb7d0ccf9cd6a117867e0839
250
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_1/default_bom.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v5_1/default_bom.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_1/default_bom.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): frappe.db.sql("""Update `tabItem` as item set default_bom = NULL where not exists(select name from `tabBOM` as bom where item.default_bom = bom.name and bom.docstatus =1 )""")
35.714286
106
0.752
64b334b0e627ffd9f97989fbdbc08774a19c7319
734
py
Python
AutosClasificados/core/test2.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/test2.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/test2.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
import json #json = {{"watsonVisualRecognition":{"vAPIKey": "868b9f7ba1beb9cd3ef77236760fea74bac9af26", "vAPIVersion": "2016-05-20", "vIdClasificador": "vehiculos_260725218", "vUmbralMinScore_WVR": 0.5}, "watsonNLU":{"preprocessing_queue":{"vAPIUser": "e477af0a-db2f-4753-8b2d-14a084e607cf", "vAPIPass": "qbHBxkSPhwPA"...
66.727273
406
0.757493
37beb8be587eda2253830cd5e5c76fc4dc369c96
10,739
py
Python
official/cv/east/src/east.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/east/src/east.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/east/src/east.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
29.502747
79
0.538039
208edc51685c65faff0900a1cfaeda349445762a
298
py
Python
src/network/bo/messages/message.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/bo/messages/message.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/bo/messages/message.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
from abc import ABC class Message(ABC): def __init__(self) -> None: self._name = None def get_name(self): return self._name def set_name(self, name): self._name = name def to_dict(self): pass @staticmethod def from_dict(): pass
14.9
31
0.573826
20d46ae887ed60a533225b195bd966d42cf1e440
493
py
Python
3kCTF/2021/web/pawnshop/apache/src/index.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
3kCTF/2021/web/pawnshop/apache/src/index.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
3kCTF/2021/web/pawnshop/apache/src/index.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from funcs import * form = cgi.FieldStorage() action = form.getvalue('action') if action=='list': list_items() elif action=='bid': mail = form.getvalue('mail') item_id = form.getvalue('item_id') amount = form.getvalue('amount') if(mail != None and item_id != None and amount != None): ve...
25.947368
69
0.665314
b30e40b036ccd20726e930a9caacc645f345a20a
2,840
py
Python
Packs/CommonScripts/Scripts/GetDomainDNSDetails/GetDomainDNSDetails.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/GetDomainDNSDetails/GetDomainDNSDetails.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/GetDomainDNSDetails/GetDomainDNSDetails.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa # pylint: disable=unused-wildcard-import from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa # pylint: disable=unused-wildcard-import from typing import ( Dict, Any, Optional, Union, List ) import t...
23.865546
105
0.635915
5b76f0f58bd77a10887debdf519f7d1a031584da
451
py
Python
crypto/crypto-unrandompad/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
2
2021-08-09T17:08:12.000Z
2021-08-09T17:08:17.000Z
crypto/crypto-unrandompad/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/crypto-unrandompad/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
1
2021-10-09T16:51:56.000Z
2021-10-09T16:51:56.000Z
from pwn import * from sympy.ntheory.modular import crt from gmpy2 import iroot from Crypto.Util.number import long_to_bytes ns = [] cs = [] for _ in range(3): s = remote(sys.argv[1], int(sys.argv[2])) s.recvuntil("n: ") ns.append(int(s.recvline().decode())) s.sendlineafter("opt: ", "2") s.recvuntil("c: ") ...
23.736842
52
0.654102
947aaf98d219695563566c85c2549bd230e445ac
245
py
Python
Algorithms/Warmup/mini_max_sum.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Warmup/mini_max_sum.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Warmup/mini_max_sum.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import reduce from itertools import permutations, product, combinations arr = [1, 2, 3, 4, 5] n = len(arr) ret = [reduce(lambda x, y: x + y, i) for i in combinations(arr, n - 1)] print(min(ret), max(ret))
24.5
71
0.677551
947f3eed6772f22eda5ef430e9b3191c16ac374f
2,687
py
Python
___Python/Torsten/Python-Kurs/p05_random/m01_wuerfeln.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p05_random/m01_wuerfeln.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p05_random/m01_wuerfeln.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import random r = random.Random() def wuerfeln(): return r.randint(1, 6) def muenzwurf(): return r.randint(0, 1) # 0 > Kopf, 1 > Zahl def kugel(): return r.randint(1, 49) def lottoziehung(anzahl): zahl = r.randint(1, 49) if zahl not in ziehung: ziehung.append(zahl) ...
21.669355
139
0.596948
8469b52da50e995d6953b3f007086e6d9fc96c76
1,082
py
Python
frappe-bench/env/lib/python2.7/site-packages/cli_helpers/tabular_output/terminaltables_adapter.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/cli_helpers/tabular_output/terminaltables_adapter.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/cli_helpers/tabular_output/terminaltables_adapter.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables import itertools from cli_helpers.utils import filter_dict_by_key from .preprocessors import (convert_to_string, override_missing_value, style_output) supported_formats = ('ascii', 'double', ...
30.914286
75
0.698706
b6d65f7817d4f4ae0d0fe72cc3c4ecb679fb86e4
1,010
py
Python
getData/accv.py
Dong-Ki-Lee/emotionFinder
54dca62993bb87f1994be3fafaf1b7c6c60d6d95
[ "MIT" ]
null
null
null
getData/accv.py
Dong-Ki-Lee/emotionFinder
54dca62993bb87f1994be3fafaf1b7c6c60d6d95
[ "MIT" ]
null
null
null
getData/accv.py
Dong-Ki-Lee/emotionFinder
54dca62993bb87f1994be3fafaf1b7c6c60d6d95
[ "MIT" ]
null
null
null
''' Automatically combine consonants and vowels in a sentence 작성자 : Dongki Lee 모듈 기능 : hgtk 라이브러리에서는 전체가 decompose된 항목을 compose, 그 반대의 경우만 할 수 있다. 이 모듈에서는 hgtk의 decompose, compose 기능을 이용하여 문장이 들어왔을 때 가ㄴ다 -> 간다 처럼 받침만이 떨어진 문장을 원래 문장으로 돌릴 수 있게 해주는 기능을 구현하였다. 생성 날자 : 2018.07.05 수정 로그 : 2018.07.05 : 모듈 최초버전 구현 ''' import h...
34.827586
109
0.657426
b63a894a11177ac8639ed1aa90a4802fd5dfd07a
523
py
Python
examples/mult.py
enordquist/Go100x
327a8f767a68d7b42e6cd0aea11b2d9cc2d8b5ea
[ "MIT" ]
null
null
null
examples/mult.py
enordquist/Go100x
327a8f767a68d7b42e6cd0aea11b2d9cc2d8b5ea
[ "MIT" ]
null
null
null
examples/mult.py
enordquist/Go100x
327a8f767a68d7b42e6cd0aea11b2d9cc2d8b5ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import go100x import numpy as np os.environ["TIMEMORY_PRECISION"] = "8" n = int(2.0e8) a = np.zeros([n], dtype=np.float) b = np.zeros([n], dtype=np.float) a += 2 b += 3 c = go100x.calculate_cpu(a, b) go100x.set_device(0) o = [32, 64, 128, 256, 512, 1024] for block in o: for ngr...
19.37037
57
0.585086
b664a3da3d375dc5fe45b712d376cb50db9fed2a
4,702
py
Python
plugins/tff_backend/dal/node_orders.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/dal/node_orders.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/dal/node_orders.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
44.358491
119
0.711825
b67a93dbdc6dae113acee0d8fa2424ce07a736e0
1,746
py
Python
checks/duplicate_content_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
checks/duplicate_content_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
checks/duplicate_content_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
import httpretty from httpretty import httprettified import unittest from checks import duplicate_content from checks import page_content from checks.config import Config @httprettified class TestDuplicateContent(unittest.TestCase): def test_identical(self): page_body = """ <html> ...
30.631579
92
0.548683
1e5477fff3f0d8e4e575997d9206dddf56821f65
189
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.11-list-in-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.11-list-in-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.11-list-in-function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def add_numbers(numbers): result = 0 for i in numbers: result += i #print("number =", i) return result result = add_numbers([1, 2, 30, 4, 5, 9]) print(result)
17.181818
41
0.566138
1e8ce7e39fa909fe47e567c835da6345fb42a02c
485
py
Python
infrastructure/azwrapper.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/azwrapper.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/azwrapper.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
from az.cli import az import sys # General Wrapper for azure cli calls def azSafe(command): exit_code, result_dict, logs = az(command) if exit_code != 0: print("az " + command + " failed") print(logs) sys.exit(-1) return result_dict # General call to check if a resource already exi...
28.529412
53
0.659794
1ea0c610076601a406a8cb69dd2c1e21593a40b9
1,835
py
Python
Packs/CommonScripts/Scripts/RegexGroups/RegexGroups.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/RegexGroups/RegexGroups.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/RegexGroups/RegexGroups.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): args = demisto.args() match_target = args['value'] capture_groups = args.get('groups') dict_keys = args.get('keys') regex_flags = 0 for flag in argToList(args.get('flags', '')): if fl...
32.192982
84
0.595095
7897cac0ea4d830a3b8371de9199f19f03d22f71
2,632
py
Python
2_DeepLearning-Keras/04_Tensorboard/1-tensorboard.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
2_DeepLearning-Keras/04_Tensorboard/1-tensorboard.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
2_DeepLearning-Keras/04_Tensorboard/1-tensorboard.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import os import numpy as np from tensorflow.keras.utils import to_categorical from tensorflow.keras.datasets import mnist from tensorflow.keras.layers import * from tensorflow.keras.activations import * from tensorflow.keras.models import * from tensorflow.keras.optimizers import * from tensorflow.keras.initializers...
28.301075
122
0.765957
15b74e5fe7101d3d254659d6739b6dff810a68af
489
py
Python
python/decorator/class_based_decorators_with_arguments.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/class_based_decorators_with_arguments.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/class_based_decorators_with_arguments.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import functools class ClassDecorator(object): def __init__(self, arg1, arg2): print(f'Arguments of decorators {arg1}, {arg2}') self.arg1 = arg1 self.arg2 = arg2 def __call__(self, func): functools.update_wrapper(self, func) def wrapper(*args, **kwargs): r...
20.375
56
0.607362
01be7042a6f0b68cc5fa4de5ee66956770d65fa3
794
py
Python
docs/API/Users_Guide/scripts/BAM_Slice.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
67
2016-06-09T14:11:51.000Z
2022-03-16T07:54:44.000Z
docs/API/Users_Guide/scripts/BAM_Slice.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
19
2016-06-21T15:51:11.000Z
2021-06-07T09:22:20.000Z
docs/API/Users_Guide/scripts/BAM_Slice.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
32
2016-07-15T01:24:19.000Z
2019-03-25T10:42:28.000Z
import requests import json ''' This script will not work until $TOKEN_FILE_PATH is replaced with an actual path. ''' token_file = "$TOKEN_FILE_PATH" file_id = "11443f3c-9b8b-4e47-b5b7-529468fec098" data_endpt = "https://api.gdc.cancer.gov/slicing/view/{}".format(file_id) with open(token_file,"r") as token: t...
26.466667
73
0.600756
da7a049f44bfb52f1ea5a044260e1bee670f6bac
1,567
py
Python
MockServer/server.py
mcteacraft/MovingSpirit
90fb85809a46f286b55ecc4e1d2adbe9579ca713
[ "MIT" ]
null
null
null
MockServer/server.py
mcteacraft/MovingSpirit
90fb85809a46f286b55ecc4e1d2adbe9579ca713
[ "MIT" ]
null
null
null
MockServer/server.py
mcteacraft/MovingSpirit
90fb85809a46f286b55ecc4e1d2adbe9579ca713
[ "MIT" ]
null
null
null
from http.server import BaseHTTPRequestHandler, HTTPServer hostName = "localhost" serverPort = 8080 class MyServer(BaseHTTPRequestHandler): state = "Stopped" def __init__(self, request, client_address, server): BaseHTTPRequestHandler.__init__(self, request, client_address, server) def do_GET...
33.340426
78
0.589024
16f23c8bc19c75ec9e1270d93c6f8d77b4b97e77
9,916
py
Python
pythonProj/FZPython/pyquant/db_models/__init__.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/db_models/__init__.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/db_models/__init__.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python # coding: utf8 import json import datetime from pprint import pprint from sqlalchemy import Column, String,Integer, Float, DateTime from sqlalchemy import Table, Text from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship import pandas as pd from pyquant.libs.mysqllib import s...
26.655914
125
0.640581
c146650f80b6d9b0345e1e6e8e2d34975d1f6326
1,149
py
Python
api/clean/sequence_num.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_num.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_num.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/19 下午7:00 # @Author : Latent # @Email : latentsky@gmail.com # @File : sequence_num.py # @Software: PyCharm # @class : 对于库存的清洗 """ 字段说明: 1.inventory_id ---->数据库自增 2.num ---> 当前库存 3.num_level ---> 库存等级 """ class Sequence_Num(object): # 1. 库存等级换算 ------>...
24.978261
63
0.491732
c1e4b11d7e74da3041c02009a83ef0d1d92d36f0
1,936
py
Python
main.py
alexpod1000/TF_PoseNet
0329a16275ec974d660e99564949ca95d71389ff
[ "MIT" ]
1
2020-03-04T02:32:07.000Z
2020-03-04T02:32:07.000Z
main.py
alexpod1000/TF_PoseNet
0329a16275ec974d660e99564949ca95d71389ff
[ "MIT" ]
null
null
null
main.py
alexpod1000/TF_PoseNet
0329a16275ec974d660e99564949ca95d71389ff
[ "MIT" ]
null
null
null
import cv2 import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.use('TkAgg') from utils.model_utils import perform_prediction, decode_predictions parts = [ "nose", "leftEye", "rightEye", "leftEar", "rightEar", "leftShoulder", "rightShoulde...
28.470588
111
0.708678
a9b755b3d21103a71c140e3ae9bbb69470f88938
2,157
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/hashtable/test_hashtable_no_collisions.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/hashtable/test_hashtable_no_collisions.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/hashtable/test_hashtable_no_collisions.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
""" This is the same test, but with big hash tables that are _unlikely_ to have collisions after the 3 inserts we do. Does not collide with DJB2 or FNV-1-64. But could collide with other hashes. """ import unittest from hashtable import HashTable class TestHashTable(unittest.TestCase): def test_hash_table_inser...
29.958333
76
0.590635
8243304ed31524da22fd730f6960d925ef517d1c
4,232
py
Python
vkapp/bot/migrations/0001_initial.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
1
2017-11-23T13:33:13.000Z
2017-11-23T13:33:13.000Z
vkapp/bot/migrations/0001_initial.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
vkapp/bot/migrations/0001_initial.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-10-21 13:14 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
39.185185
150
0.553639
6b7e59d167fcf735ba0f1030602e287f95102618
112
py
Python
comp/microsoft/has_solution/009_longest_semi_alernating_substr.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
comp/microsoft/has_solution/009_longest_semi_alernating_substr.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/has_solution/009_longest_semi_alernating_substr.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
''' same as 005. - 002: the substring - 005: the length ''' class Solution: def longest_substr(self, s):
10.181818
32
0.633929
d407e07335c75b4a785c579550380e60429aee7c
4,724
py
Python
research/cv/Pix2Pix/src/utils/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/Pix2Pix/src/utils/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/Pix2Pix/src/utils/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 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...
63.837838
120
0.671253
d474d5eb551dacae95e039d18d26a387b48c2cc2
2,903
py
Python
indl/metrics.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
indl/metrics.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
indl/metrics.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
from typing import List __all__ = ['dprime', 'quickplot_history'] def dprime(y_true, y_pred, pmarg: float = 0.01, outputs: List[str] = ['dprime', 'bias', 'accuracy']) -> tuple: """ Calculate D-Prime for binary data. 70% for both classes is d=1.0488. Highest possible is 6.93, but effectively 4.65 for...
31.554348
110
0.617637
2e0c32714f6d997eca9a7323c26f7d7c44b13150
1,007
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex03_perfectnumber_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex03_perfectnumber_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex03_perfectnumber_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch02_math.solutions.ex03_perfectnumber import is_perfect_number_simple, calc_perfect_numbers, is_perfect_number_based_on_proper_divisors @pytest.mark.parametrize("n, expected", [(6, Tr...
34.724138
141
0.647468
d84fb925e5f198a242b49a3625906021e8cf6205
3,412
py
Python
src/torch/npu/random.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
src/torch/npu/random.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
src/torch/npu/random.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
30.738739
91
0.668816
d8b8db492830d698e6b17933d3730996e12d5da3
4,114
py
Python
Scarky2/builder/views.py
kopringo/Scarky2
93c59cd31113749045caff68274f779a61360167
[ "MIT" ]
null
null
null
Scarky2/builder/views.py
kopringo/Scarky2
93c59cd31113749045caff68274f779a61360167
[ "MIT" ]
null
null
null
Scarky2/builder/views.py
kopringo/Scarky2
93c59cd31113749045caff68274f779a61360167
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from django.shortcuts import render from django.http.response import HttpResponseRedirect, HttpResponse from django.conf import settings from django.core.urlresolvers import reverse import uuid import json from models import Problem, Language # Create your views here. def home(request): r...
28.769231
129
0.59893
993259bb8f1d2c008f6332049af9e6a0cef4bdf4
10,355
py
Python
paddlenlp/transformers/ppminilm/tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/ppminilm/tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/ppminilm/tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # 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...
38.494424
119
0.592854
cfd871f28f6c1b0bbbc8ffe42207aa261daa1915
549
py
Python
Organisation/Recherche/Datenvisualisierung/matplotlib_plot/Wetterplots_Giessen.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
Organisation/Recherche/Datenvisualisierung/matplotlib_plot/Wetterplots_Giessen.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
Organisation/Recherche/Datenvisualisierung/matplotlib_plot/Wetterplots_Giessen.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import matplotlib.pyplot as plt # Daten zum Plotten hoch = [11, 11, 12, 14, 18, 22, 20, 23, 23, 21, 20, 23, 11, 11, 16, 23, 24, 23, 15, 17, 18, 21, 22, 22, 16, 20, 22, 17, 18, 16] tief = [-5, -3, -2, 1, 1, 4, 6, 5, 6, 2, 5, 2, -2, -2, 1, 6, 8, 8, 5, 6, 7, 5, 3, 4, 2, 3, 6, 8, 7, 5] tage = list(range(1, 3...
36.6
120
0.54827
cfe40386467f5a82bc05967bf49df0d025067384
10,250
py
Python
src/onegov/election_day/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.ballot import Election from onegov.ballot import Vote from onegov.core.orm.types import JSON from onegov.core.orm.types import UTCDateTime from onegov.core.u...
34.863946
78
0.633659
cff8c74b564e9aa23283843ea7fd5738bfa7ce69
3,009
py
Python
timetable.py
jerluebke/SOWAS
d606bcd6757503257d01381da56602016261f578
[ "MIT" ]
null
null
null
timetable.py
jerluebke/SOWAS
d606bcd6757503257d01381da56602016261f578
[ "MIT" ]
null
null
null
timetable.py
jerluebke/SOWAS
d606bcd6757503257d01381da56602016261f578
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable = C, R from collections import namedtuple import matplotlib as mpl from matplotlib.patches import Patch from matplotlib.gridspec import GridSpec import matplotlib.pyplot as plt import numpy as np mpl.rcParams["font.size"] = 12 # colors cmap = plt.get...
26.628319
78
0.63011
5c8ba138654ebae397537c0aba3ec6dff61d9382
771
py
Python
01_class/transfer_parent_class_method.py
wuyueCreator/python-test
6072ac9264a257c89925469238c14fff3bda5630
[ "MIT" ]
1
2019-03-25T03:44:54.000Z
2019-03-25T03:44:54.000Z
01_class/transfer_parent_class_method.py
wuyueCreator/python-test
6072ac9264a257c89925469238c14fff3bda5630
[ "MIT" ]
null
null
null
01_class/transfer_parent_class_method.py
wuyueCreator/python-test
6072ac9264a257c89925469238c14fff3bda5630
[ "MIT" ]
null
null
null
class A: def spam(self): print('A.spam') class B(A): def spam(self): print('B.spam') super().spam() # Call parent spam() class C: def __init__(self): self.x = 0 class D(C): def __init__(self): super().__init__() self.y = 1 # super() 的另外一个常见用法出现在覆盖...
19.275
73
0.583658
5cdbb678909c4b3e3437233198e313bdeb3e63d0
4,260
py
Python
quant/api/kkex.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/api/kkex.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/api/kkex.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from urllib import urlencode from urlparse import urljoin import requests from hashlib import md5 BASE_URL = 'https://kkex.com/api/v1' TIMEOUT = 5 class PublicClient(object): def __init__(self): super(PublicClient, self).__init__() @classmethod def ...
28.590604
76
0.562911
a4603d1b25c4c01de3ede09c65761ebeeef0fc49
991
py
Python
initial-settings.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
initial-settings.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
initial-settings.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
from conans import ConanFile, CMake, tools import os.path import sys class LocalConanFile(ConanFile): settings = "arch_build" generator = [] def requirements(self): profile = "default" if "--profile" in sys.argv: profile = sys.argv[sys.argv.index("--profile") + 1] ...
41.291667
121
0.696266
778b53e8126b091296e7e1d7fb2989f969872569
1,067
py
Python
zencad/examples/1.GeomPrim/2.prim2d/textshape.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/2.prim2d/textshape.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/2.prim2d/textshape.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ZenCad API example: textshape date: 04.10.2019 """ import os from zencad import * zencad_example_directory = zencad.moduledir + "/examples" testfont = os.path.join(zencad_example_directory, "fonts/testfont.ttf") mandarinc = os.path.join(zencad_example_directory, "fonts/mandarinc.ttf") reg...
24.25
81
0.615745
24af93a81c7b2b92ca665acd7e7576d818f94d98
2,054
py
Python
toolsparty-master/information-gathering/ip-extender.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
toolsparty-master/information-gathering/ip-extender.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
toolsparty-master/information-gathering/ip-extender.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python # coding: utf-8 # -**- Author: LandGrey -**- import os import sys def ip_extender(ips=None, files=None, switch=3, extend=5, is_format=False): results = [] cidr_groups = [] none_cidr_groups = [] cidr_dict = {} if not ips and files: ips = [] with open(files, 'r...
31.121212
119
0.543817
24d549d8e10dc17807c702172c3db31e6793dde3
31
py
Python
frappe-bench/env/lib/python2.7/site-packages/bleach_whitelist/__init__.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/bleach_whitelist/__init__.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/bleach_whitelist/__init__.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from bleach_whitelist import *
15.5
30
0.83871
d9198234423e5d3c84ef6a9aac1201bc80bc1c51
1,605
py
Python
etl/io_config/server_protocol.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/io_config/server_protocol.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/io_config/server_protocol.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import asyncio import json import logging import socket, errno from etl.io_config.core import get_environment_var SRV_LOG_FMT = '%(asctime)s|%(name)s|%(process)s-%(thread)s|%(levelname)s|%(message)s' logging.basicConfig(level=logging.INFO, format=SRV_LOG_FMT) MAGIC_NUMBER = b'trews_magic_number' CONNECTION_CLOSED = '...
32.1
89
0.709657
d9504bf6bd55f14bbf36d7503f8289596841f780
108
py
Python
packages/watchmen-meta/src/watchmen_meta/analysis/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/analysis/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/analysis/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .pipeline_index_service import PipelineIndexService from .topic_index_service import TopicIndexService
36
56
0.907407
d95f44159ce85d870bd47768845befcafc69f3e9
933
py
Python
INBa/2015/Chinkirov_V_V/task_4_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Chinkirov_V_V/task_4_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Chinkirov_V_V/task_4_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 28. # Напишите программу, которая выводит имя, # под которым скрывается Эмиль Эрзог. # Дополнительно необходимо вывести область интересов указанной личности, # место рождения, годы рождения и смерти (если человек умер), # вычислить возраст на данный момент (или момент смерти). # Для хранения всех не...
35.884615
102
0.757771
79d3fba129da163bfef8d0d4759998082ab4c008
1,331
py
Python
profiles/urls.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/urls.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/urls.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'profiles' urlpatterns = [ url( r'^$', views.profile, name='profile' ), # Login mechanism url( r'^login/$', views.login_user, name='login' ), # Logout mechanism url( r...
17.285714
48
0.525169
ccde64f635ab8dae261e9151bd5fa024ac46889a
6,096
py
Python
pymantic/tests/test_primitives.py
dnswd/blazegraph-python
046a6b47406b0f56d71abc6039f4d7586a1708d2
[ "BSD-3-Clause" ]
42
2016-01-15T14:31:48.000Z
2022-03-10T14:32:25.000Z
pymantic/tests/test_primitives.py
igor-kim/blazegraph-python
7be8d219e00acb51d949bf49aaaed90c2c2344e5
[ "BSD-3-Clause" ]
3
2016-10-02T18:36:42.000Z
2019-09-18T15:48:58.000Z
pymantic/tests/test_primitives.py
igor-kim/blazegraph-python
7be8d219e00acb51d949bf49aaaed90c2c2344e5
[ "BSD-3-Clause" ]
11
2016-08-18T09:47:52.000Z
2021-12-26T06:22:18.000Z
from nose.tools import * from pymantic.primitives import * import random def en(s): return Literal(s, "en") def test_to_curie_multi_match(): """Test that the longest match for prefix is used""" namespaces = {'short': "aa", 'long': "aaa"} curie = to_curie("aaab", namespaces) print curie assert ...
32.253968
147
0.60876
033cebcbd7d667e2cf8eb5c214611871d49fe72b
20,012
py
Python
wz/ui/gridbase.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/gridbase.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/gridbase.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/gridbase.py Last updated: 2021-10-10 Widget with tiles on grid layout (QGraphicsScene/QGraphicsView). =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complia...
34.803478
84
0.560164
064ba62a570f85c226bd1d351ff184276e78c21f
10,283
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladebios_lib.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladebios_lib.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladebios_lib.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
42.143443
142
0.561704
d1cb1afdc983b8fa4778f32f8458e3c566262013
6,272
py
Python
official/cv/unet/src/unet_nested/unet_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/unet/src/unet_nested/unet_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/unet/src/unet_nested/unet_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
42.378378
106
0.615912
ee3d6d3e804f9ef1a9f8dd5e3ba587f570138ac4
90
py
Python
examples/helloWorld.py
Devoxx4KidsDE/workshop-minecraft-modding-raspberry-pi
7fcae0e43de51843565c2403fa66da26cb79a04b
[ "MIT" ]
3
2016-02-29T09:22:05.000Z
2018-05-16T23:10:38.000Z
examples/helloWorld.py
Devoxx4KidsDE/workshop-minecraft-modding-raspberry-pi
7fcae0e43de51843565c2403fa66da26cb79a04b
[ "MIT" ]
3
2016-01-20T20:58:28.000Z
2017-02-06T08:28:30.000Z
examples/helloWorld.py
Devoxx4KidsDE/workshop-minecraft-modding-raspberry-pi
7fcae0e43de51843565c2403fa66da26cb79a04b
[ "MIT" ]
3
2016-01-20T20:02:57.000Z
2021-03-10T20:21:59.000Z
from mcpi import minecraft mc = minecraft.Minecraft.create() mc.postToChat("Hello World")
22.5
33
0.788889
c99b1c8bbe063bb3a62611598e7d312d2aee21ba
298
py
Python
spht/urls.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
1
2019-08-04T21:13:41.000Z
2019-08-04T21:13:41.000Z
spht/urls.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
23
2018-04-12T20:43:15.000Z
2022-02-10T12:10:53.000Z
spht/urls.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
null
null
null
from django.conf.urls import url from django.views.generic import TemplateView from spht.views import IntersectView urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='spht/tool.html')), url(r'^intersect/tiles/(?P<z>\d+)/(?P<x>\d+)/(?P<y>\d+).png$', IntersectView.as_view()) ]
29.8
91
0.697987
094ea321a49ca2dc60c8a40c13f143c9e2cd5be6
5,306
py
Python
kts/ui/static.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/ui/static.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/ui/static.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
CSS_STYLE = """ .kts {{ line-height: 1.6; }} .kts * {{ box-sizing: content-box; }} .kts-wrapper {{ display: inline-flex; flex-direction: column; background-color: {first}; padding: 10px; border-radius: 20px; }} .kts-wrapper-border {{ border: 0px solid {second}; }} .kts-pool {{ display: flex; flex-wr...
19.224638
72
0.650773
0959f644ddbc06b75da28e53ec3916db243825e1
2,087
py
Python
ecrire_json.py
Maxim01/Programmes
dbe5b83b3c65776ccc00049793fa85313fb76065
[ "Apache-2.0" ]
null
null
null
ecrire_json.py
Maxim01/Programmes
dbe5b83b3c65776ccc00049793fa85313fb76065
[ "Apache-2.0" ]
null
null
null
ecrire_json.py
Maxim01/Programmes
dbe5b83b3c65776ccc00049793fa85313fb76065
[ "Apache-2.0" ]
null
null
null
import json import time import subprocess import sys MAC_ARG = "VIDE" ACTION_ARG = "VIDE" ADD_ARG = "VIDE" MDP_ARG = "VIDE" DEST_ARG = "VIDE" MDP_SERR_ARG = "VIDE" def mdp_serrure(): global MAC_ARG global MDP_SERR_ARG with open('/home/Devismes_Bridge/Equipements/' + MAC_ARG + '/Pas...
22.202128
106
0.615716
1195d97ce7b7fc191ee2c37ce674f6e799bdf4b2
107
py
Python
main.ru.py
vv31415926/python_lessons_01_4
f5e67d008a5401335c7b5589d9dacc125856560d
[ "MIT" ]
null
null
null
main.ru.py
vv31415926/python_lessons_01_4
f5e67d008a5401335c7b5589d9dacc125856560d
[ "MIT" ]
null
null
null
main.ru.py
vv31415926/python_lessons_01_4
f5e67d008a5401335c7b5589d9dacc125856560d
[ "MIT" ]
null
null
null
s = input('Введите ФИО через пробел:') lst = s.split() print( 'Привет, ' ) for si in lst: print( si)
17.833333
38
0.598131
e115b2e949a11782a5bb56a5b2bb6a3795f7d276
330
py
Python
menucard/admin.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/admin.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/admin.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from menucard.models import * admin.site.register(Vorspeise) admin.site.register(Hauptspeise) admin.site.register(Nachspeise) admin.site.register(Snacks) admin.site.register(AlkoholfreieDrinks) admin.site.register(AlkoholhaltigeDrinks) admin.site.register(...
25.384615
41
0.833333
0183624fde61b9b8bb023787016c964c88412b6b
170
py
Python
flask/app/views.py
hou2zi0/flask-app-docker
0e51b1f00201fc6eb46a62d0d8f2701bc02d4031
[ "MIT" ]
null
null
null
flask/app/views.py
hou2zi0/flask-app-docker
0e51b1f00201fc6eb46a62d0d8f2701bc02d4031
[ "MIT" ]
null
null
null
flask/app/views.py
hou2zi0/flask-app-docker
0e51b1f00201fc6eb46a62d0d8f2701bc02d4031
[ "MIT" ]
null
null
null
from app import app @app.route('/') def index(): return "Hello from Flask! 🐵" @app.route('/affe') def affe(): return "Hello from Flask! Affe sagt Hallo! 🐵"
17
49
0.611765
0968faab53e0aa82c8b7c026041088ebbd25206c
2,274
py
Python
python/my_sql_conn.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
1
2020-07-29T16:43:46.000Z
2020-07-29T16:43:46.000Z
python/my_sql_conn.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
python/my_sql_conn.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import MySQLdb class DbFunctions(object): """ 数据库连接 """ def __init__(self, server, username, password, dbname): self.server = server self.username = username self.password = password self.dbname = dbname self.db = None self.cur ...
29.921053
109
0.547054
61e5a5b59a9e4dbc5ab5ac9e9ca08a0245f2a295
3,267
py
Python
BigData_exp/exp3/exp3/my_html.py
DolorHunter/hfut-exp-archived
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
12
2020-12-07T05:49:05.000Z
2022-03-25T09:09:36.000Z
BigData_exp/exp3/exp3/my_html.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
null
null
null
BigData_exp/exp3/exp3/my_html.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
1
2021-01-08T08:53:53.000Z
2021-01-08T08:53:53.000Z
import requests # filename cannot be 'html.py' which will lead to conflict to bs!! from bs4 import BeautifulSoup import csv # Get raw html info def get_html_info(url): try: print('url:'+url) re = requests.get(url, timeout=30) re.raise_for_status() re.encoding = 'utf-8' prin...
33.680412
80
0.603612
28b0d798dce294187b09ea0093ced120bf38031b
2,144
py
Python
Algorithms/Implementation/Bomberman.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Bomberman.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Bomberman.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 R, C, N = map(int, raw_input().split()) grid_1 = [[] for i in xrange(R)] bomb_list = [] for i in xrange(R): row_list = list(raw_input()) grid_1[i] = row_list for j in xrange(len(row_list)): if row_list[j] == 'O': bomb_list.append((i, j)) def is_vaild(x, y): return x...
25.831325
83
0.35028
3a7d6a374822bd399b7fc85dc349d7dbd4212ce5
1,228
py
Python
pytestDemo/common/read_data.py
lthinktime/testdemo
509656d62535ed06e222c08671db11e31d9b3162
[ "Apache-2.0" ]
null
null
null
pytestDemo/common/read_data.py
lthinktime/testdemo
509656d62535ed06e222c08671db11e31d9b3162
[ "Apache-2.0" ]
null
null
null
pytestDemo/common/read_data.py
lthinktime/testdemo
509656d62535ed06e222c08671db11e31d9b3162
[ "Apache-2.0" ]
null
null
null
import yaml import json from configparser import ConfigParser from common.logger import logger class MyConfigParser(ConfigParser): # 重写configparser 中的 optionxform 函数,解决 .ini 文件中的 键option 自动转为小写的问题 def __init__(self, defaults=None): ConfigParser.__init__(self, defaults=defaults) def optionxform(se...
28.55814
69
0.614821
a33ece80edcfc6ff8944ba4518931f91f0b1ccbe
2,094
py
Python
research/cv/autoaugment/src/dataset/autoaugment/ops/crop.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-07-03T06:52:20.000Z
2021-07-03T06:52:20.000Z
research/cv/autoaugment/src/dataset/autoaugment/ops/crop.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/autoaugment/src/dataset/autoaugment/ops/crop.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 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...
36.736842
90
0.658548
a37c14fdb39ad32cb41eecf0cb0e42257fe19ade
617
py
Python
quant/common/log.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/common/log.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/common/log.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging from logging.handlers import RotatingFileHandler def get_logger(log_name, level=logging.DEBUG): """ 日志的疯转 :param level: 日志级别 :param log_name: 日志对象名 :return: 日志对象名 """ logger = logging.getLogger(log_name) logger.setLevel(leve...
25.708333
90
0.698541
6e9f8f97f56424abab696c62b47c86b133739767
784
py
Python
06 APIs, Scraping I/kommetarezaehlen.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
6
2019-08-06T14:53:34.000Z
2020-10-16T19:44:16.000Z
06 APIs, Scraping I/kommetarezaehlen.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
1
2020-06-25T09:46:58.000Z
2020-06-25T09:46:58.000Z
06 APIs, Scraping I/kommetarezaehlen.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
2
2019-09-16T13:05:51.000Z
2019-09-27T09:07:49.000Z
import requests from bs4 import BeautifulSoup import pandas as pd import datetime import sys def kommentarezaehlen(url): r = requests.get(url) soup = BeautifulSoup(r.text,'xml') storybox = soup.find_all('div', {'class':'text'}) lst = [] for elem in storybox: try: t = elem.find...
23.757576
84
0.567602
287b71be0094ff9c0a8a646a19e81197612eb1f3
3,673
py
Python
zplus_scraper/pipelines.py
tstaec/ZplusScraper
38c4f9534b8ee3822a80b48a6827ef4f52793c0b
[ "MIT" ]
null
null
null
zplus_scraper/pipelines.py
tstaec/ZplusScraper
38c4f9534b8ee3822a80b48a6827ef4f52793c0b
[ "MIT" ]
1
2021-07-04T12:02:57.000Z
2021-07-04T12:02:57.000Z
zplus_scraper/pipelines.py
tstaec/ZplusScraper
38c4f9534b8ee3822a80b48a6827ef4f52793c0b
[ "MIT" ]
null
null
null
from datetime import datetime import mysql from scrapy.exceptions import NotConfigured from database import create_database class ZplusscraperPipeline: def process_item(self, item, spider): return item class DatabasePipeline(object): def __init__(self, db, user, passwd, host): self.db = d...
34.327103
115
0.586986
95f916a0d2f23768a5613ddf564dc02ba2c599ac
478
py
Python
ggit_platform/admin.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
1
2019-02-27T21:20:54.000Z
2019-02-27T21:20:54.000Z
ggit_platform/admin.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
null
null
null
ggit_platform/admin.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
null
null
null
from django.contrib import admin from markdownx.admin import MarkdownxModelAdmin from .models import Event from .models import Member from .models import MemberRole from .models import Region from .models import Story from .models import Track admin.site.register(Track, MarkdownxModelAdmin) admin.site.register(Region...
28.117647
47
0.83682
66ad35acb4d63dc9937ca5276e6b238cb6b79da1
10,058
py
Python
spider/got/manager/TweetManager.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/got/manager/TweetManager.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/got/manager/TweetManager.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
import urllib,urllib2,json,re,datetime,sys,cookielib from .. import models from pyquery import PyQuery import requests import random random.seed(1) def fetch_activities(tweet_id): retusers = [] favorusers = [] re_url = 'https://twitter.com/i/activity/retweeted_popup?id=%s'%(tweet_id) favor_url = 'https://twitter.c...
34.094915
214
0.680155
06d235db1b1f699e83bac4c384e8ab53dcbb9ca9
103
py
Python
dtdocker/containers/__init__.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
dtdocker/containers/__init__.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
dtdocker/containers/__init__.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
from MssqlContainer import MssqlContainer from RedisContainers import RedisContainers, RedisContainer
25.75
59
0.893204
06d61d6128d3d24a44e5f423459d0349beadddf4
834
py
Python
Raspberry Pi Pico/Pi_Pico_TrafficLight.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
Raspberry Pi Pico/Pi_Pico_TrafficLight.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
Raspberry Pi Pico/Pi_Pico_TrafficLight.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
# Pi_Pico_TrafficLight.py # Controlling Neopixel by PIO to simulate a traffic light # using ws2812b library by benevpi # https://github.com/benevpi/pico_python_ws2812b import time import ws2812b NUM_PIX = 3 # this is for M5Stack RGB LED PIN_NUM = 16 light = ws2812b.ws2812b(NUM_PIX, 0, PIN_NUM) RED = (255, 0, 0) YEL...
24.529412
57
0.655875
b081a38729addd1e06a8d879010ab8225a044073
9,011
py
Python
research/nlp/tprr/src/reader_downstream.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/tprr/src/reader_downstream.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/tprr/src/reader_downstream.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
46.932292
118
0.619021
7c08672a1f4b3a7a17149a2b57e2b2a120ca8857
1,046
py
Python
src/onegov/wtfs/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.core.upgrade import upgrade_task @upgrade_task('Add payment types') def add_payment_types(context): session = context.session if context.has_table...
36.068966
76
0.578394
b01c8f325df0368355928771fb0cdac6ea1b83fc
553
py
Python
exercises/es/test_01_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_01_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_01_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "if token.like_num" in __solution__ ), "¿Estás revisando el atributo del token like_num?" assert ( 'next_token.text == "%"' in __solution__ ), "¿Estás revisando si el texto del siguiente token es un símbolo de porcentaje?" assert ( next_token.text == "%" ...
36.866667
120
0.65642
05a8c4fd95b6efca543f543621dd2cffe6ce31a4
1,092
py
Python
DataProcess/my_utils/myplot.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/my_utils/myplot.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/my_utils/myplot.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ @Project :DataProcess @File :myplot.py @Author :Zhang Qihang @Date :2021/11/8 14:41 """ import seaborn as sns import matplotlib.pyplot as plt import os import pandas as pd import glob import config import myunwrap import numpy as np import scipy.constants as C ...
22.285714
65
0.667582
bbd9406456d0020c9cdbba07ff1aed2650cbfe2a
1,631
py
Python
barcode.py
T9C5F/packstation-barcode
3d7e719d6931d2d9e4834e7aaef2a892bd564aa1
[ "MIT" ]
45
2018-11-22T10:18:11.000Z
2021-06-17T07:20:25.000Z
barcode.py
T9C5F/packstation-barcode
3d7e719d6931d2d9e4834e7aaef2a892bd564aa1
[ "MIT" ]
2
2018-11-18T14:55:43.000Z
2020-10-14T15:15:08.000Z
barcode.py
T9C5F/packstation-barcode
3d7e719d6931d2d9e4834e7aaef2a892bd564aa1
[ "MIT" ]
4
2018-12-27T22:02:13.000Z
2020-10-18T14:29:57.000Z
#!/usr/bin/python3 # coding: utf-8 import os import luhn # sudo apt install python3-pip && sudo pip3 install luhn # Deutsche Post DHL hat einfach an Packstationen den Kartenleser # ausgebaut und duch einen Barcodeleser ersetzt, ohne den # Besitzern einer Goldcard automatisch rechtzeitig eine neue # Karte zuzuschicken...
41.820513
87
0.774985
a548d4044babcf769d72c98f4c36e053030cd2ea
214
py
Python
src/bo4e/enum/landescode.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/landescode.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/landescode.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Der ISO-Landescode als Enumeration. """ from enum import Enum from iso3166 import countries alpha2codes = {c.alpha2: c.alpha2 for c in countries} Landescode = Enum("Landescode", alpha2codes) # type: ignore
19.454545
60
0.742991
a553923330965bb513b635f568c86575b16db188
1,410
py
Python
WiSe-2122/Wiederholung/Gruppe-C/Online-Banking.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Wiederholung/Gruppe-C/Online-Banking.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Wiederholung/Gruppe-C/Online-Banking.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
ueberweisungslimit = 50_000 kontostand = 3_500 ungueltiger_betrag = True # Funktionsdefinition def trenner(anzahl): for zaehler in range(anzahl): print("-", end="") print() # Funktionsaufruf trenner(50) print("Willkommen beim Online-Banking der DKB") print("Ihr Überweisungslimit beträgt", ueberweisung...
38.108108
122
0.647518
a5916d10fd080c93d3ed806b1372e236b4a374e6
1,078
py
Python
Vergleich-Display/upy.py
aboehm/CLT2019
51b9b5674b5ed18297c5ee7e825888d632d96a0e
[ "BSD-2-Clause" ]
1
2019-07-01T11:59:06.000Z
2019-07-01T11:59:06.000Z
Vergleich-Display/upy.py
aboehm/CLT2019
51b9b5674b5ed18297c5ee7e825888d632d96a0e
[ "BSD-2-Clause" ]
null
null
null
Vergleich-Display/upy.py
aboehm/CLT2019
51b9b5674b5ed18297c5ee7e825888d632d96a0e
[ "BSD-2-Clause" ]
null
null
null
import machine from display import ssd1306 display = None run = 0 def setup(): global display from machine import I2C, Pin import uos _, nodename, _, _, _ = uos.uname() if nodename == 'esp32': i2c = I2C(freq=400000, scl=machine.Pin(22), sda=machine.Pin(21)) elif nodename == 'pyboard'...
19.25
77
0.558442
3c8ae15a51f7ed8aa4a4793f2527828936db7e90
294
py
Python
FUNDASTORE/APPS/PRODUCTOS/forms.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
FUNDASTORE/APPS/PRODUCTOS/forms.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
FUNDASTORE/APPS/PRODUCTOS/forms.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
from django import forms from .models import Producto class FormularioProducto(forms.ModelForm): class Meta: model = Producto fields = '__all__' labels = {'pro_nombre': 'NOMBRE','pro_precio': 'PRECIO','pro_stock': 'STOCK','pro_descripcion':'DESCRIPCIÖN'}
29.4
118
0.663265