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
3caa8c2fe47cf10713e3e66ed8e6985477f4487d
206
py
Python
Licence 1/I11/TP3/tp3_2_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP3/tp3_2_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP3/tp3_2_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
from pocketnoobj import * characters = input("saisir une chaine de caracteres :") contains = 0 for char in characters: if char == " ": contains += 1 print("la chaine contient", contains, "fois ' '")
20.6
55
0.674757
3cdba889124713972e3312d0ad3587989af46e37
225
py
Python
Kapitel 1/Kugel.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 1/Kugel.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 1/Kugel.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
import math r = float(input("Geben Sie den Radius einer Kugel ein: ")) v = (4/3) * math.pi * math.pow(r,3) o = math.pi * 4 * math.pow(r,2) print("Radius: {} | Volumen: {:.3f} | Oberflächenvolumen: {:.3f} ".format(r, v, o))
28.125
83
0.6
597df9fd9b80612e97c32372d924a5a116e45ba2
833
py
Python
___Python/Jonas/Python/p11_uebungen/m01_excel.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p11_uebungen/m01_excel.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p11_uebungen/m01_excel.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import pandas as pd from datetime import date, datetime, time import xlrd from xlrd import open_workbook, cellname, XL_CELL_TEXT, xldate_as_tuple, xldate_as_datetime file_location = "O:\___Python\personen.xlsx" book = open_workbook("O:\___Python\personen.xlsx") #print(book.nsheets) #for sheet_index in ra...
24.5
92
0.720288
051f9560c8573bfec1acf813ddc345d417467807
487
py
Python
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_Widget_UnassignedFailingIncidents/IncidentsCheck_Widget_UnassignedFailingIncidents_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_Widget_UnassignedFailingIncidents/IncidentsCheck_Widget_UnassignedFailingIncidents_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_Widget_UnassignedFailingIncidents/IncidentsCheck_Widget_UnassignedFailingIncidents_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import demistomock as demisto from IncidentsCheck_Widget_UnassignedFailingIncidents import main @pytest.mark.parametrize('list_, expected', [ ([{'Contents': '7,4,1'}], 3), ([{'Contents': ''}], 0), ([{}], 0) ]) def test_script(mocker, list_, expected): mocker.patch.object(demisto, 'execut...
25.631579
70
0.685832
2f0387b293e47579b3930645936d42460a0c022c
1,892
py
Python
kernel/slovaki/migrations/0005_auto_20180605_2110.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/slovaki/migrations/0005_auto_20180605_2110.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/slovaki/migrations/0005_auto_20180605_2110.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-05 21:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('slovaki', '0004_auto_20180605_2105'), ] operations = [ migrations.AlterField( model_name='slovakiawardscontent', nam...
38.612245
126
0.624207
b5d7d9e0ed5498e6c806bfd4075818dd22f1fcff
1,568
py
Python
python/pickle/text_based_rpg_engine/game_engine.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/text_based_rpg_engine/game_engine.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/text_based_rpg_engine/game_engine.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys, time, random import pickle def slow_type(t): typing_speed = 75 # wpm for l in t: sys.stdout.write(l) sys.stdout.flush() time.sleep(random.random() * 10.0 / typing_speed) print("") def get_input(valid_input: list): while True: user_entered =...
23.058824
78
0.567602
952bdbad783529d6b66d3ff4fa272a3a6c52be6c
1,067
py
Python
Packs/PaloAltoNetworks_IoT/Scripts/iot_alert_post_processing/iot_alert_post_processing_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PaloAltoNetworks_IoT/Scripts/iot_alert_post_processing/iot_alert_post_processing_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PaloAltoNetworks_IoT/Scripts/iot_alert_post_processing/iot_alert_post_processing_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import iot_alert_post_processing from iot_alert_post_processing import iot_resolve_alert _INCIDENT = { 'id': 28862, 'labels': [ { 'type': 'id', 'value': '5ed08587fe03d30d000016e8' } ] } def test_iot_resolve_alert(monkeypatch, mocker): ...
27.358974
86
0.689784
1f1162ab030c193c3f03ee665b2ca57140c35709
876
py
Python
Python/Courses/Object-Oriented-Programming.Python-Engineer/01-Class-and-Instance.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Object-Oriented-Programming.Python-Engineer/01-Class-and-Instance.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Object-Oriented-Programming.Python-Engineer/01-Class-and-Instance.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# position, name, age, level, salary se1 = ["Software Engineer", "Max", 20, "Junior", 5000] se2 = ["Software Engineer", "Lisa", 25, "Senior", 7000] # class class SoftwareEngineer: # class attributes alias = "Keyboard Magician" def __init__(self, name, age, level, salary): # instance attributes ...
21.9
55
0.68379
1f51d98d09c8a7571a84fdd27efadfc23c78e464
5,808
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladenextboot_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/bladenextboot_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/bladenextboot_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...
40.615385
139
0.579201
c85ffe1675c528eb5ba2ba2c060da3a824b300a1
1,225
py
Python
crypto/rotoRSA/src/source.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/rotoRSA/src/source.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/rotoRSA/src/source.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
from sympy import poly, symbols from collections import deque import Crypto.Random.random as random from Crypto.Util.number import getPrime, bytes_to_long, long_to_bytes def build_poly(coeffs): x = symbols('x') return poly(sum(coeff * x ** i for i, coeff in enumerate(coeffs))) def encrypt_msg(msg, poly, e, N)...
27.222222
70
0.679184
c863807714070600292378e7ba7e81fb0de972c7
4,188
py
Python
tool_discovery/tool_discoverer/tool_discoverer/html_temp.py
FAIRplus/WP3_FAIR_tooling
3c6470c4f5fc3d686b4571711bb7ed6f849a9622
[ "Apache-2.0" ]
null
null
null
tool_discovery/tool_discoverer/tool_discoverer/html_temp.py
FAIRplus/WP3_FAIR_tooling
3c6470c4f5fc3d686b4571711bb7ed6f849a9622
[ "Apache-2.0" ]
13
2021-06-01T10:07:02.000Z
2022-03-24T12:16:26.000Z
tool_discovery/tool_discoverer/tool_discoverer/html_temp.py
FAIRplus/WP3_FAIR_tooling
3c6470c4f5fc3d686b4571711bb7ed6f849a9622
[ "Apache-2.0" ]
null
null
null
template = ''' <head> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css" /> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> <script...
19.47907
117
0.56256
23d33235975b56858506cc00736575e9ec781ea3
4,612
py
Python
official/cv/ADNet/src/utils/get_wrapper_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/src/utils/get_wrapper_utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/src/utils/get_wrapper_utils.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...
43.509434
120
0.549219
b593fa8d45128963d9cc83e5fce6c881c62ee955
1,977
py
Python
assets/support/faq/docbook-xsl/extensions/xsltproc/python/xslt.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
5
2019-10-14T23:00:48.000Z
2021-11-06T22:21:06.000Z
assets/support/faq/docbook-xsl/extensions/xsltproc/python/xslt.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
31
2020-11-14T09:27:16.000Z
2022-03-08T17:09:15.000Z
assets/support/faq/docbook-xsl/extensions/xsltproc/python/xslt.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
15
2020-11-10T17:04:25.000Z
2022-01-31T12:12:48.000Z
#!/usr/bin/python -u # THIS IS ALPHA CODE AND MAY NOT WORK CORRECTLY! import sys import string import libxml2 import libxslt from docbook import adjustColumnWidths # Check the arguments usage = "Usage: %s xmlfile.xml xslfile.xsl [outputfile] [param1=val [param2=val]...]" % sys.argv[0] xmlfile = None xslfile = None...
25.346154
99
0.621649
8d9733bda06d92a0de48eb3114bc5ef322a25396
7,553
py
Python
Hackathons_19_20/Brainwaves 2019/complaint status tracking/comp track 75677.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Brainwaves 2019/complaint status tracking/comp track 75677.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Brainwaves 2019/complaint status tracking/comp track 75677.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 16 13:16:36 2019 @author: avi """ import pandas as pd #data manipulation and data anlysis (read files) import numpy as np #transform data into format that model can understand import sklearn #helps to create machine learning model import matplotlib.pyplot as plt ...
54.338129
266
0.699457
9e171c2db2ce83e95935911d2bd31e1429302352
2,347
py
Python
research/cv/ICNet/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ICNet/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ICNet/src/loss.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...
36.107692
85
0.643801
f557a735dc3b79a38cb10ff4065a1511955a96c3
476
py
Python
nz_django/day3/db_relation_demo/front/migrations/0004_auto_20200220_1513.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day3/db_relation_demo/front/migrations/0004_auto_20200220_1513.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day3/db_relation_demo/front/migrations/0004_auto_20200220_1513.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# Generated by Django 2.0 on 2020-02-20 07:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('front', '0003_auto_20200220_1510'), ] operations = [ migrations.AlterField( model_name='userexten...
23.8
106
0.644958
1990ac9337e3bcc737c4073560d05d8460b5b92c
686
py
Python
find-bottom-left-tree-value/find-bottom-left-tree-value.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
find-bottom-left-tree-value/find-bottom-left-tree-value.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
find-bottom-left-tree-value/find-bottom-left-tree-value.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def findBottomLeftValue(self, root: Optional[TreeNode]) -> int: bottomleft=root.val stack=[(...
32.666667
67
0.542274
5ff5ff9c9414eec6e594e1649ce3b3f35b8a669a
787
py
Python
662/tuwulisu_662_tree.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
662/tuwulisu_662_tree.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
662/tuwulisu_662_tree.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def widthOfBinaryTree(self, root: TreeNode) -> int: if not root: return 0 queue=...
32.791667
79
0.526048
27b73ab20b9e387550a33ab9205adeaaf4633a19
613
py
Python
profiles/admin.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/admin.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/admin.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Profile, ForbiddenUser, Feedback class ProfileAdmin(admin.ModelAdmin): fields = ['user', 'account', 'verified', 'accepted_general_terms_and_conditions', 'accepted_privacy_policy'] list_display = ['user', 'verified'] class ForbiddenUserAdmin(admin.ModelAdm...
29.190476
112
0.769984
d024fc5d3790d7475bbc9e59c08f275bfee78358
1,333
py
Python
tools/pythonpkg/tests/fast/test_case_alias.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/test_case_alias.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/test_case_alias.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import pandas import numpy as np import datetime import duckdb class TestCaseAlias(object): def test_case_alias(self, duckdb_cursor): import pandas import numpy as np import datetime import duckdb con = duckdb.connect(':memory:') df = pandas.DataFrame([{"COL1": "va...
33.325
113
0.535634
ef8cadc119a3ac98d061a16fa77fef11daee59ee
1,946
py
Python
test/test_npu/test_network_ops/test_apply_adam.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_apply_adam.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_apply_adam.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.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/licenses/BSD-3-Clause # # Unless required by applicable law...
41.404255
101
0.578109
efa3324f837577bb44837764431d5d1ec15540a5
1,443
py
Python
projects/api/templates.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/templates.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/templates.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Templates blueprint.""" from flask import Blueprint, jsonify, request from ..controllers.templates import list_templates, create_template, \ get_template, update_template, delete_template from ..utils import to_snake_case bp = Blueprint("templates", __name__) @bp.route("", methods=["...
30.0625
70
0.704782
4be7d027414a5f997b3893b769640f5824944d8c
369
py
Python
main.py
pchchv/getqr
f8858d6d539632309841059422004f8f3a6e358e
[ "MIT" ]
null
null
null
main.py
pchchv/getqr
f8858d6d539632309841059422004f8f3a6e358e
[ "MIT" ]
null
null
null
main.py
pchchv/getqr
f8858d6d539632309841059422004f8f3a6e358e
[ "MIT" ]
null
null
null
def _check_box_size(size): if int(size) <= 0: raise ValueError(f"Invalid box size. Must be larger than 0") def _check_border(size): if int(size) <= 0: raise ValueError(f"Invalid border value. Must be larger than 0") class QRCode: def __init__(self, box_size=10, border=2): _check_...
24.6
72
0.663957
3262015dc57743176fd8f07e02c8037b984bbe5f
972
py
Python
tag_1/p_2_4_schaltjahr.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_1/p_2_4_schaltjahr.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_1/p_2_4_schaltjahr.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 2 If-Abfragen (Tag 1) 2.4 Überprüfe, ob ein vorher festgelegtes Jahr ein Schaltjahr ist. Hinweise: - Jahreszahl nicht durch 4 teilbar: kein Schaltjahr - Jahreszahl durch 4 teilbar: Schaltjahr - Jahreszahl durch 100 teilbar: kein Schaltjahr - Jahreszahl durch 400 teilbar: Schaltjahr Beispiele: ...
36
90
0.682099
329899291405ade21285cff7fc99ae518ffc3286
14,609
py
Python
puppet/puppet_v4.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
puppet/puppet_v4.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
puppet/puppet_v4.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
""" 扯线木偶界面自动化应用编程接口(Puppet UIAutomation API) 技术群:624585416 """ __author__ = "睿瞳深邃(https://github.com/Raytone-D)" __project__ = 'Puppet' __version__ = "0.4.33" __license__ = 'MIT' # coding: utf-8 import ctypes from functools import reduce import time import sys import platform try: import pypercli...
36.98481
107
0.551852
eb220d9ee93f34921d37f851cb91dad10b4b4707
1,658
py
Python
official/cv/c3d/src/lr_schedule.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/c3d/src/lr_schedule.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/c3d/src/lr_schedule.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...
37.681818
84
0.646562
de4246269a934b5715df066dd7198a69067008cf
2,225
py
Python
Test.py
software-engineering-hsfhh/Asteroids_Team_All-Mann
cfc28e81322ce7b5c1b1b111a447714bb3f586d8
[ "MIT" ]
1
2020-10-22T14:57:44.000Z
2020-10-22T14:57:44.000Z
Test.py
software-engineering-hsfhh/Asteroids_Team_All-Mann
cfc28e81322ce7b5c1b1b111a447714bb3f586d8
[ "MIT" ]
26
2020-10-17T09:05:53.000Z
2020-11-12T17:57:19.000Z
Test.py
software-engineering-hsfhh/Asteroids_Team_All-Mann
cfc28e81322ce7b5c1b1b111a447714bb3f586d8
[ "MIT" ]
null
null
null
""" This program shows how to: * Display a sequence of screens in your game. The "arcade.View" class makes it easy to separate the code for each screen into its own class. * This example shows the absolute basics of using "arcade.View". See the "different_screens_example.py" for how to handle scree...
32.246377
118
0.660674
a037fcfc8dd8f8addb4268d02c2c36c9fcd33ad9
58
py
Python
___Python/Daniel/2018-06-25-VHS-Bielefeld-Python/p09_isbn/m02_init_example.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Daniel/2018-06-25-VHS-Bielefeld-Python/p09_isbn/m02_init_example.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Daniel/2018-06-25-VHS-Bielefeld-Python/p09_isbn/m02_init_example.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from p10_requests import * print(FOO) print(math.pi)
11.6
27
0.706897
a0946cf0268b1dae5b2e48f45e274f9d3252cf5e
881
py
Python
core/embeds.py
Pug234/BytesBump
d5ff3130bffae92e1c5c671db4ed8904c403e9dc
[ "MIT" ]
11
2020-11-14T17:28:50.000Z
2021-05-19T18:21:07.000Z
core/embeds.py
AnimeDyno/BytesBump
a0cf0bfc4c13592c7b10ad46faa46a2a98dc1443
[ "MIT" ]
3
2021-01-22T15:48:41.000Z
2021-06-22T17:16:50.000Z
core/embeds.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
13
2020-11-18T05:20:31.000Z
2021-06-19T16:31:30.000Z
import random from discord import Embed, Color class Embeds: def __init__(self, message): self.message = message def success(self, **kwargs): embed = Embed( description=self.message, color=Color.green() ) for i in kwargs: embed.add_field(name...
26.69697
70
0.53462
3e77cfff7cdcfa192004292baf261d166602206d
423
py
Python
webapp/data_viewer/streamlit/dataViewer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/data_viewer/streamlit/dataViewer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/data_viewer/streamlit/dataViewer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd from pydataset import data df_data = data().sort_values('dataset_id').reset_index(drop=True) st.dataframe(df_data) # choices options = st.selectbox( 'select a dataset do you like best?', df_data['dataset_id']) dataset = data(options) if isinstance(dataset, (pd.core....
23.5
65
0.728132
f2f1ba4eeb291db85d118c86c2e8bf2638aa983a
1,714
py
Python
mod/units/eat_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/units/eat_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/units/eat_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- # @Date : 2015-05-28 import tornado.web from ..models.eat import Eat from config import eat_token import datetime,time from sqlalchemy.orm.exc import NoResultFound class EatHandler(tornado.web.RequestHandler): @property def db(self): return self.application.db ...
32.961538
81
0.446908
4b8c97d92940bc9748b145e44bfea9c2dbd8eba9
757
py
Python
solution/data_structure/5397/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/data_structure/5397/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/data_structure/5397/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# // Authored by : chj3748 # // Co-authored by : - # // Link : http://boj.kr/471d69f455a544769c6c2fa7199442d1 import sys from collections import deque def input(): return sys.stdin.readline().rstrip() T = int(input()) for test in range(T): answer_l = deque() answer_r = deque() for string in input(): ...
26.103448
58
0.532365
4b12fcb105f6d3f2213110a67fff9dda133fcce5
556
py
Python
Pythonjunior2020/Woche3/Aufgabe_3_3_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_3_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_3_2.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 3.3.2, Woche 3, Block 3, Aufgabe 2 # Import from daten import satz from daten import woerterbuch # Funktionen def uebersetze(s): # Reset x x = [] w = woerterbuch # Satz in Array umwandeln s = s.split(" ") # Gehe den Satz durch for i in range(len(s)): # Woertbuch[String[Iterati...
17.935484
38
0.534173
8a5734442f6d89cf63f8f9d805b8fa2c9d2fe877
12,706
py
Python
Hackathons_19_20/Club Mahindra DataOlympics/Data Olympics.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Club Mahindra DataOlympics/Data Olympics.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Club Mahindra DataOlympics/Data Olympics.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri May 3 09:10:46 2019 @author: avi """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn.linear_model import LinearRegression from lightgbm import LGBMClassifier,LGBMRegressor from sklearn.model_selection impo...
45.870036
467
0.79372
8a67d40fcf341e06108d4cbf7ff08865af1229bc
133
py
Python
Shivani/circle.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/circle.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/circle.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
r=int(input("enter radius\n")) area=3.14*r*r print(area) r=int(input("enter radius\n")) circumference=2*3.14*r print(circumference)
16.625
30
0.721805
0a5be50a580709abbd3da29e2935ca49e6acb24a
4,932
py
Python
src/onegov/directory/collections/directory_entry.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/collections/directory_entry.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/collections/directory_entry.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from itertools import groupby from onegov.core.collection import GenericCollection, Pagination from onegov.core.utils import toggle from onegov.directory.models import DirectoryEntry from onegov.form import as_internal_id from sqlalchemy import and_, desc from sqlalchemy.orm import object_session from sqlalchemy.dialec...
30.63354
78
0.615369
6a7aabfc4cb21c04ec36ae3668c14375b3193b77
7,903
py
Python
hashing/scripts/old/latency_figure5.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/old/latency_figure5.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/old/latency_figure5.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
import itertools as it import os import matplotlib import matplotlib.pyplot as plt import numpy as np import pylab from matplotlib.font_manager import FontProperties from matplotlib.ticker import LogLocator OPT_FONT_NAME = 'Helvetica' TICK_FONT_SIZE = 20 LABEL_FONT_SIZE = 22 LEGEND_FONT_SIZE = 24 LABEL_FP = FontProper...
34.969027
114
0.580159
7cfc4a289194c5f16e035bb36148a8271cb1250d
4,856
py
Python
test/test_npu/test_network_ops/test_nllloss_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_nllloss_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_nllloss_backward.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...
50.061856
109
0.629736
861ea1651ae9d88e8a5ab6e9b805cc0603e2857a
30,548
py
Python
src/demo.py
bela127/Pruning_with_Saliency_Information
d0d67c88c863c49def3011862a9a26e94e6f5bf9
[ "MIT" ]
null
null
null
src/demo.py
bela127/Pruning_with_Saliency_Information
d0d67c88c863c49def3011862a9a26e94e6f5bf9
[ "MIT" ]
null
null
null
src/demo.py
bela127/Pruning_with_Saliency_Information
d0d67c88c863c49def3011862a9a26e94e6f5bf9
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow import keras from matplotlib import pyplot as plt from matplotlib import colors import keras.backend as K sess = tf.InteractiveSession() mnist = keras.datasets.mnist#.fashion_mnist#.mnist (train_images, train_labels), (test_images, test_labels) = mnist.load_d...
41.114401
131
0.520296
863f9abefe15c05212e7522a515c3db972360a5a
18,386
py
Python
data-import/src/main.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
data-import/src/main.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
data-import/src/main.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
#!/usr/bin/python3 # import argparse import itertools import json import os.path import logging import urllib.request import ssl from collections import defaultdict from urllib.error import HTTPError from adidas_convert import convert_taxonomies, convert_products class Taxon: def __init__(self, taxon_id: int, pa...
38.707368
122
0.617426
866b520bdb782b0e5f997f32ae5ef0e2833e2651
2,723
py
Python
service/api/main.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2021-07-20T06:56:38.000Z
2021-07-20T06:56:38.000Z
service/api/main.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2018-01-23T22:36:49.000Z
2018-01-24T18:52:27.000Z
service/api/main.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
2
2018-01-23T21:25:57.000Z
2018-01-24T21:46:41.000Z
# -*- coding: utf-8 -*- from . import events from . import jsonhandler from . import feeds from datetime import datetime from falcon import media from falcon_cors import CORS import falcon import logging import requests class IndexResource(object): def __init__(self): self.logger = logging.getLogger('api...
28.968085
81
0.609254
07f94d1801ba040a7ccd5691cf1f22424c75214c
22,157
py
Python
benchmark/dnn_binary.py
zentonllo/tfg-tensorflow
095469a906de26984b4d781699e76bec02b1ef75
[ "MIT" ]
null
null
null
benchmark/dnn_binary.py
zentonllo/tfg-tensorflow
095469a906de26984b4d781699e76bec02b1ef75
[ "MIT" ]
null
null
null
benchmark/dnn_binary.py
zentonllo/tfg-tensorflow
095469a906de26984b4d781699e76bec02b1ef75
[ "MIT" ]
null
null
null
""" Module used to model Deep Neural Networks which solve binary classification problems (1 output neuron) Code obtained and adapted from: https://www.tensorflow.org/get_started/ https://github.com/ageron/handson-ml/blob/master/11_deep_learning.ipynb https://github.com/aymericdamien/TensorFlow-Examples https://github...
39.922523
216
0.623099
71f58f5d351fc9e9245f841e5c5e5119531cad91
274
py
Python
src/lcdoc/const.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/const.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/const.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
import time AttrDict = dict # class AttrDict(dict): # def __getattr__(self, k): # self[k] = 0 # return 0 Stats = AttrDict() PageStats = {} LogStats = {} now_ms = lambda: int(time.time() * 1000) t0 = [now_ms()] lprunner_sep = ['<!-- lprunner -->']
13.7
40
0.569343
139cf6e95d1772ad057c4aa1758d2566aceb2dfe
404
py
Python
cs/python/python_general/30-seconds-of-python-code/test/bubble_sort/bubble_sort.test.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/30-seconds-of-python-code/test/bubble_sort/bubble_sort.test.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/30-seconds-of-python-code/test/bubble_sort/bubble_sort.test.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import types import functools from pytape import test from bubble_sort import bubble_sort def bubble_sort_test(t): t.true( isinstance(bubble_sort, (types.BuiltinFunctionType, types.FunctionType, functools.partial)), '<util.read_snippets.<locals>.snippet object at 0...
25.25
86
0.69802
13b3e524813c43b597c3fff3534673dc31d99b19
3,270
py
Python
test/test_find_sets.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
test/test_find_sets.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
test/test_find_sets.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from setsolver.board import Board from setsolver.card import Card, GameSet from setsolver.properties import Color, Count, Fill, Shape from setsolver.set_finder import ( find_all_sets, is_same_or_all_different, is_set, ) class TestSetFinder(TestCase): card1 = Card(Fill.FU...
35.543478
75
0.596636
13cedf07d8effbd73a16410582b2e0bae1bfe8f9
12,840
py
Python
test/test_npu/test_network_ops/test_renorm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_renorm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_renorm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.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/licenses/BSD-3-Clause # # Unless required by applicable law...
47.032967
80
0.657399
13e3d41212376737db1f2bc90807c8cf5cb99f96
38
py
Python
python_lessons/freecodecamp_python/009_fruit_banana.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/009_fruit_banana.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/009_fruit_banana.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
fruit = "banana" x = fruit[1] print(x)
12.666667
16
0.631579
b9249ca4ced9ac73dad0aa8a6e0d563081958b02
500
py
Python
Zh3r0/2021/crypto/1n_jection/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Zh3r0/2021/crypto/1n_jection/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Zh3r0/2021/crypto/1n_jection/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from secret import flag def nk2n(nk): l = len(nk) if l==1: return nk[0] elif l==2: i,j = nk return ((i+j)*(i+j+1))//2 +j return nk2n([nk2n(nk[:l-l//2]), nk2n(nk[l-l//2:])]) print(nk2n(flag)) #25977495199845200181935389149727440287807670673732106338434418929108307497492776311825...
35.714286
266
0.754
b9a8464dd110c56545caf49b7733cce22bf42c9f
1,276
py
Python
src/main/python/correlation/convert.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/correlation/convert.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/correlation/convert.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
from PIL import Image filename='test-50x50.jpg' im = Image.open(filename) import numpy from pandas import DataFrame # pixels = list(im.getdata()) width, height = im.size #imgarray=numpy.array(img) # pixels = [pixels[i * width:(i + 1) * width] for i in range(height)] # pixels = numpy.asarray(im) img = Image....
29.674419
74
0.590125
b9e1656ac04bb19843019aa1e296d7b670033b74
1,576
py
Python
101-symmetric-tree/101-symmetric-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
101-symmetric-tree/101-symmetric-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
101-symmetric-tree/101-symmetric-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isSymmetric(self, root: Optional[TreeNode]) -> bool: # both does not exist if not root.l...
30.901961
60
0.499365
6a26d705512ea29e001746622e4f91c9eb18ed9c
273
py
Python
programm/skype.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/skype.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/skype.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
""" Script to start video chat by calling a skype contact @author: wimmer, simon-justus """ import subprocess def call(username): command = "C:\Users\ITM2\Surrogate\ps_cagebot\programm\callsimelton91.cmd {}".format(username) subprocess.call(command, shell=False)
24.818182
98
0.747253
6a3559781bbede3aaca8efbc6d2bcbb75ca6c516
2,972
py
Python
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/utils/label_converter.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/utils/label_converter.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/utils/label_converter.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
import numpy as np from PIL import Image, ImageDraw, ImageFont from xml.dom import minidom import random import cv2 import os def generateXml(xml_path, boxes, w, h, d): impl = minidom.getDOMImplementation() doc = impl.createDocument(None, None, None) rootElement = doc.createElement('annotation') size...
36.691358
118
0.68607
e02989408f61397fb05fddf021831b6b7fab7062
27,549
py
Python
src/onegov/swissvotes/models/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/models/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/models/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from collections import OrderedDict from onegov.core.orm import Base from onegov.core.orm.mixins import ContentMixin from onegov.core.orm.mixins import content_property from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import JSON from onegov.core.u...
35.593023
79
0.620748
e047f5bdcb57a46d7c8cfa4c5ccc97c519816d86
1,102
pyde
Python
sketches/imagepalette/imagepalette.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/imagepalette/imagepalette.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/imagepalette/imagepalette.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Nach einer Idee von Kevin Workman # (https://happycoding.io/examples/p5js/images/image-palette) WIDTH = 800 HEIGHT = 640 palette = ["#264653", "#2a9d8f", "#e9c46a", "#f4a261", "#e76f51"] def setup(): global img size(WIDTH, HEIGHT) this.surface.setTitle("Image Palette") img = loadImage("akt.jpg") ...
26.878049
65
0.598004
164fa02725b62e0ebdec2154127c81d33176130a
505
py
Python
06.BinarySearch/HG/B2003.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
06.BinarySearch/HG/B2003.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
06.BinarySearch/HG/B2003.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
import sys N, M = map(int, sys.stdin.readline().split()) arr = list(map(int, sys.stdin.readline().split())) # print("===================") s = 0 e = 0 answer = 0 tmp = arr[s] while s < N and e < N: if tmp < M: if e+1 >= N: break tmp += arr[e+1] e += 1 elif tmp == M: ...
16.833333
50
0.411881
16b03a4bdc1791f895a738f3289a159ca31508c3
217
py
Python
src/python/py-accepted/50A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/50A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/50A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 50A # Created on : 2019-01-14 21:29:26 def Main(): m, n = map(int, input().split(' ')) val = m * n cnt = int(val / 2) print(cnt) if __name__ == '__main__': Main()
13.5625
39
0.502304
bcf6984647315163fa6dfa3c70fcb9ccd945a1c1
4,005
py
Python
tests/test_tarifeinschraenkung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_tarifeinschraenkung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_tarifeinschraenkung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.geraet import Geraet from bo4e.com.geraeteeigenschaften import Geraeteeigenschaften from bo4e.com.menge import Menge # type:ignore[import] from bo4e.com.tarifeinschraenkung import Tarifeinschraenkung, TarifeinschraenkungSchema from bo4e.e...
39.653465
117
0.518352
d5fe099416be061df33d43283a52c1995868dbe1
1,037
py
Python
2016/day05_how_about_a_nice_game_of_chess/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day05_how_about_a_nice_game_of_chess/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day05_how_about_a_nice_game_of_chess/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Docstring.""" from hashlib import md5 from common import get_input class PasswordFinder(object): """.""" def __init__(self): """Initialize.""" self.integer = 0 self.password = [None for x in range(8)] def get_digest(self, source): """.""" ...
24.690476
70
0.529412
f8d69f099f5609a2e46585f56b6c19c09e5b0f6e
1,460
py
Python
gen.py
bivab/-markov-university-classes
34e0563646c14e91cab8fb46b220b8b2f8866269
[ "MIT" ]
null
null
null
gen.py
bivab/-markov-university-classes
34e0563646c14e91cab8fb46b220b8b2f8866269
[ "MIT" ]
null
null
null
gen.py
bivab/-markov-university-classes
34e0563646c14e91cab8fb46b220b8b2f8866269
[ "MIT" ]
null
null
null
import codecs import sys import markovify BATCH_SIZE = 5 DATASETS = ['cs', 'phil', 'wiwi'] def get_all_models(state_size): return markovify.combine([get_model(state_size, ds) for ds in DATASETS]) def get_model(state_size, dataset): units = 'data/{0}/units.txt'.format(dataset) abstract_units = 'data/{0...
24.333333
76
0.609589
071cf486a8d65cffb0566b38855a718dd197e642
107
py
Python
cryptoauthlib/python/tests/__init__.py
PhillyNJ/SAMD21
0f123422ed0ad183d510add8f5d3472a16f1e8cb
[ "MIT" ]
12
2017-11-15T08:29:03.000Z
2021-05-22T04:57:20.000Z
cryptoauthlib/python/tests/__init__.py
PhillyNJ/SAMD21
0f123422ed0ad183d510add8f5d3472a16f1e8cb
[ "MIT" ]
2
2019-09-22T12:02:07.000Z
2021-09-09T22:38:25.000Z
cryptoauthlib/python/tests/__init__.py
PhillyNJ/SAMD21
0f123422ed0ad183d510add8f5d3472a16f1e8cb
[ "MIT" ]
5
2019-04-05T13:46:44.000Z
2020-11-25T08:58:32.000Z
import os import sys sys.path.append(os.path.dirname(__file__)) from cryptoauthlib_mock import atcab_mock
17.833333
42
0.831776
07252063a568e34edf388de3ddcb8f5db9bbd6e1
466
py
Python
backend/api/btb/api/models.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/api/models.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/api/models.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
from flask import current_app from sqlalchemy import create_engine, text from sqlalchemy.pool import NullPool class DB: def init_app(self, app): url = app.config["SQLALCHEMY_DATABASE_URI"] # lambda uses a single container per request model # we do the pooling via pgbouncer self.en...
22.190476
58
0.622318
073eb2a8ae160697bd059d18d8ffe51d0cd0b35a
762
py
Python
product/migrations/0002_auto_20201030_1515.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
product/migrations/0002_auto_20201030_1515.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
product/migrations/0002_auto_20201030_1515.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-10-30 07:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('product', '0001_initial'), ] operations = [ migrations.AlterField( model_name='p...
30.48
144
0.581365
9194e7651831367cd37c6a412ff3e02cfb2c3b18
7,692
py
Python
features/snake_main.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
features/snake_main.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
features/snake_main.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
import time from datetime import datetime from random import random import game_sound from Score import Score from features.feature import Feature from field import Field from highscorelist import Highscorelist, Highscoreentry from painter import RGB_Field_Painter, Led_Matrix_Painter BLACK = [0, 0, 0] class Snake_M...
41.578378
120
0.602054
91c58aa889ea5118cf58f2a53f95f841a66dbf63
405
py
Python
3_Functions/defaults.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
3_Functions/defaults.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
3_Functions/defaults.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# x, y: arguments x = 2 y = 3 # a, b: parameters def function(a, b): print(a, b) function(x, y) # default arguments def function2(a, b=None): if b: print(a, b) else: print(a) function2(x) function2(x, b=y) # bei default parametern immer variable= -> besser lesbar # Funktionen ohne retu...
17.608696
76
0.644444
53315be361a8c097c81fd165c0a76c88bf0bd91b
1,797
py
Python
examples/text_to_sql/RAT-SQL/script/available_gpu.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_to_sql/RAT-SQL/script/available_gpu.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_to_sql/RAT-SQL/script/available_gpu.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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 app...
35.235294
74
0.576516
f42cf75aa4b2896d8fd88356432a0be891d51aac
5,221
py
Python
python/oneflow/compatible/single_client/nn/modules/slice.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/compatible/single_client/nn/modules/slice.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/nn/modules/slice.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
33.683871
104
0.633787
be64c57399a0e2f019955ddd3b92ec663af63efa
948
py
Python
314/Fcat_314_bfs.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
314/Fcat_314_bfs.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
314/Fcat_314_bfs.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
# Definition for a binary tree node. from typing import List from collections import defaultdict, deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def verticalOrder(self, root) -> List[List[int]]: ...
30.580645
53
0.542194
fea3b772b61a812c02365208b2da226f3efb7fdf
7,561
py
Python
Crawler/crawl_divi_public.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Crawler/crawl_divi_public.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Crawler/crawl_divi_public.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
#!/usr/bin/env python # coding: utf-8 # author: Max Fischer import os import logging import jsonschema as jsonschema import psycopg2 as pg import psycopg2.extensions import psycopg2.extras import requests import json from datetime import datetime, timezone # noinspection PyUnresolvedReferences import loadenv # loggin...
39.586387
119
0.606269
4309776c2b978f8f9b79f48f9888d944549162cd
490
py
Python
backend/search/client.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
backend/search/client.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
backend/search/client.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
from algoliasearch_django import algolia_engine def get_client(): return algolia_engine.client def get_index(index_name="_Product"): client = get_client() index = client.init_index(index_name) return index def perform_search(query, **kwargs): index = get_index() params = {} if "tags" i...
21.304348
47
0.661224
4394a86b457382c9c24852be7b2e32365ad50ee3
1,941
py
Python
MAIN/STM32F405/V18/peripheral.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V18/peripheral.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V18/peripheral.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
from pyb import Pin, Timer import utime ESP32RESET = Pin('B0', Pin.OUT_PP) IGNITION = Pin('Y7', Pin.IN, Pin.PULL_DOWN) startTime = 0 stopTime = 0 ignitionFlag = False ignitionTriggerValue = 250 def IGNITIONCallback(): global startTime global stopTime global ignitionFlag global ignitionTriggerValue ...
23.670732
65
0.64915
78e0a1d18183e5a58cf26302f999bb3cf45215bc
493
py
Python
INBa/2015/Semyenov_A_N/task_3_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_3_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_3_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 3. Вариант 24 #Напишите программу, которая выводит имя "Максимилиан Гольдман", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. #Semyenov A.N.Ы #08.03.2016 print("Сегодня речь пойдёт про Максимилиана Гольдмана") print("...
54.777778
205
0.787018
60635645dc074ef9ef9fb9011fa7e487e8c19733
697
py
Python
python/primary/模块/demo_list2.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
1
2020-07-29T16:43:46.000Z
2020-07-29T16:43:46.000Z
python/primary/模块/demo_list2.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
python/primary/模块/demo_list2.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
#A Python Program for List and tuple import sys #Make a User-Passwd Login database = [ ['admin', 123456], ['guest', 123], ['Tom', 'tom123'], ['Alice', 'alice123'] ] username = raw_input("User name: ") passwd = raw_input("Password: ") if [username, passwd] in data...
20.5
37
0.583931
716a14d0e6073ccb71412d7a8340df8c3f9f7421
5,603
py
Python
calibration.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
calibration.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
calibration.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
from configparser import ConfigParser from controls import getTestPerformance, File2Matches, IDfromFASTA, getPerformance from pathlib import Path from pipeline import PipeLine import matplotlib.pyplot as plt from time import sleep import pickle from tqdm import tqdm def ROC(path, parser, lbl, clr): parser.read(Pa...
38.641379
166
0.611637
71792ae01e9b62dad9e5eeb2f9e01801ac5a285f
171
py
Python
Exercicios/ex05v3.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex05v3.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex05v3.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
nome = input('Digite seu nome: ') cpf = input('Digite seu CPF: ') rg = input('Digite seu RG: ') msg = '{0}, seu CPF é {1} e seu RG é {2}' print(msg.format(nome,cpf,rg))
21.375
41
0.602339
71bc160070e2e3bb0f09b32ba1b1d5dcecacda1f
2,378
py
Python
INBa/2015/SOSNOVY_M_S/task_10_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SOSNOVY_M_S/task_10_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SOSNOVY_M_S/task_10_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
POINT = 30 ochki = 30 person = {"Сила":"0","Здоровье":"0","Мудрость":"0","Ловкость":"0"} points = 0 choice = None while choice != 0: print(""" 0 - Выход 1 - Добавить пункты к характеристике 2 - Уменьшить пункты характеристики 3 - Просмотр характеристик """) choice = int(input("Выбор пункта меню: ")) if...
36.584615
112
0.549622
1c0606e7099727a34a4353c69a714cea307ce1e3
167
py
Python
python/python_backup/PRAC_PYTHON/tu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/tu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/tu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def tuple(t): maxvalue=t[0] minvalue=t[0] for i in range(t): .if t[i]>maxvalue: max=t[i] if t[i]<minvalue: min=t[i] print max, print mini,
15.181818
21
0.550898
1c59d651b58bb97890a30e93422a86f59f708a63
2,618
py
Python
src/bo4e/enum/leistungstyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/leistungstyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/leistungstyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum # pylint:disable=empty-docstring # no docstring in official docs as of 2021-12-01 class Leistungstyp(StrEnum): """ """ ARBEITSPREIS_WIRKARBEIT = "ARBEITSPREIS_WIRKARBEIT" #: Arbeitspreis zur Abrechnung der Wirkarbeit LEISTU...
55.702128
114
0.747899
4672b6107575d1fc5b202803509017068f526d19
356
py
Python
Data Structures/DataStructures-Problems/Arrays/Micro and Array Update/microandarrayupdate.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Data Structures/DataStructures-Problems/Arrays/Micro and Array Update/microandarrayupdate.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Data Structures/DataStructures-Problems/Arrays/Micro and Array Update/microandarrayupdate.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
if __name__=="__main__": t=int(input()) while(t>0): (n, k) = map(int, input().split()) li=list(map(int, input().split()[:n])) min = 99999999 for i in range(len(li)): if li[i] < min: min=li[i] if k-min > 0: print(k-min) else:...
23.733333
46
0.407303
31adec41c7ef52b094097933816262e9bf48c6d1
1,882
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.10-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.10-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.10-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
''' Design Amazon / Flipkart (an online shopping platform) Beyond the basic functionality (signup, login etc.), interviewers will be looking for the following: Discoverability: How will the buyer discover a product? How will the search surface results? Cart & Checkout: Users expect the cart and checkou...
41.822222
88
0.690223
31bcd25aad4c846bd2e353275be40d498f9d9c5e
1,833
py
Python
sorting_algorithms.py
caul1flower/alg
a9eaae99798df24fa611a83e7280c6ae2dde974e
[ "MIT" ]
null
null
null
sorting_algorithms.py
caul1flower/alg
a9eaae99798df24fa611a83e7280c6ae2dde974e
[ "MIT" ]
null
null
null
sorting_algorithms.py
caul1flower/alg
a9eaae99798df24fa611a83e7280c6ae2dde974e
[ "MIT" ]
null
null
null
def selection_sort(arr): comparisons = 1 for i in range(len(arr)): comparisons += 1 min_idx = i comparisons += 1 for j in range(i + 1, len(arr)): comparisons += 2 if arr[min_idx] > arr[j]: min_idx = j arr[i], arr[min_idx] = arr[min_...
24.118421
55
0.414075
735131118b9ebe08eb5ab32dbba90663b0dde82b
1,003
py
Python
Aggregator/agg_parkhaeuser.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
Aggregator/agg_parkhaeuser.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
Aggregator/agg_parkhaeuser.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 24 16:47:26 2020 @author: Peter """ from datetime import datetime import boto3 import json import csv def aggregate(date): s3_client = boto3.client('s3') response = s3_client.get_object(Bucket='sdd-s3-basebucket', Key='parkhaeuser/{}/{}/{}/{}'.form...
30.393939
109
0.555334
7353ce7d1b8334c9673af5ee74690556543399c0
836
py
Python
content/labs/lab8/solutions/exercise_2_sol.py
yankeesong/2021-CS109A
0fea6b4411092446719d09379c6a12815aa91ab2
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
docs/labs/lab8/solutions/exercise_2_sol.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
docs/labs/lab8/solutions/exercise_2_sol.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
# init exercise 2 solution # Using an approach similar to what was used in the Iris example # we can identify appropriate boundaries for our meshgrid by # referencing the actual wine data x_1_wine = X_wine_train[predictors[0]] x_2_wine = X_wine_train[predictors[1]] x_1_min_wine, x_1_max_wine = x_1_wine.min() - 0.2, ...
27.866667
71
0.742823
7d903782bb6421913de305607c7f084a6e880976
4,849
py
Python
PSA/psaEE.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/psaEE.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/psaEE.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
# -*- Mode:Python;indent-tabs-mode:nil; -*- # # File: psaEE.py # Created: 27/08/2014 # Author: BSC # Author: jju / VTT Technical Research Centre of Finland Ltd., 2016 # # Description: # Web service running on the PSA interacting with the PSC # # import falcon #import json import Config import logging ...
32.763514
77
0.620953
81574b9b3bc094b3a084cb740cf3436263355003
8,561
py
Python
frappe-bench/env/lib/python2.7/site-packages/github/tests/BadAttributes.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/github/tests/BadAttributes.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/github/tests/BadAttributes.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2014 Vincent Jacques <vincent@vincent-ja...
56.322368
1,932
0.579372
c4a3d62e2a0153457c02eb939e51f5a90406ad51
2,837
py
Python
Termux-Login-master/Termux-Lock.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Termux-Login-master/Termux-Lock.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Termux-Login-master/Termux-Lock.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import stdiomask as sm import os,sys # coded by AnonyminHack5 flag = True endc = '\033[0m' black = '\033[30m' red = '\033[31m' green = '\033[32m' yellow = '\033[33m' blue = '\033[34m' magneto = '\033[36m' os.system('figlet -c -k -f slant Termux-Lock|lolcat') print ( magneto +'\n\t\t[ ★ Termux - Lock ★ ]\n',endc) pr...
27.813725
72
0.627776
f20d99db7e934d0e282b0c5cdd817e4191209f22
1,075
py
Python
src/test/summarizeResults.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/summarizeResults.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/summarizeResults.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
#!/bin/env python # Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: summarizeResults.py description: prints a summary of test results contai...
34.677419
78
0.52093
f218761745689b7a14ddf565b2107df04ffa02aa
3,381
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch05_datastructures/solutions/ex06_longest_subsequence.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch05_datastructures/solutions/ex06_longest_subsequence.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch05_datastructures/solutions/ex06_longest_subsequence.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import sys def find_longest_growing_sequence(values): longest_subsequence = [] current_subsequence = [] last_value = sys.maxsize for current_value in values: if current_value >= last_value: l...
34.5
110
0.644188
4872f274f6d34c0d04ca5b3c33bd445dfe444e3c
840
py
Python
exercises/de/test_02_05_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/test_02_05_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/test_02_05_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( "from spacy.tokens import Doc" in __solution__ ), "Importierst du die Klasse Doc?" assert ( len(words) == 5 ), "Es sieht so aus, als ob du eine falsche Anzahl an Wörtern hast." assert ( len(spaces) == 5 ), "Es sieht so aus, als ob du eine falsche Anza...
42
87
0.611905
6f9beefb73314116a00ca03fca54e682bf861c63
259
py
Python
pypubsub-demo/sub.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
pypubsub-demo/sub.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
pypubsub-demo/sub.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
import time from pubsub import pub # create a listener def on_publish(arg1, arg2=None): print(f"received: {arg1}, arg2={arg2})") if __name__ == "__main__": pub.subscribe(on_publish, "rootTopic") while True: time.sleep(10) pass
17.266667
44
0.648649
d22379deb1a05a7e3608c1b862bc46f8c8682e21
7,358
py
Python
src/main/python/client/clientView.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/main/python/client/clientView.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/main/python/client/clientView.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'clientView.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore,QtGui,QtWidgets from PyQt5.QtWidgets import QHeaderView from functools import partial class Ui_C...
52.184397
178
0.728323
963113e4741d616c6eb5adbc6d3b69e8df7bbaae
1,584
py
Python
interface/getIP/getip.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
interface/getIP/getip.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
interface/getIP/getip.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
import socket import platform def getip(): try: s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(('www.baidu.com', 0)) ip = s.getsockname()[0] except: ip = "x.x.x.x" finally: s.close() return ip class GetIP: def __init__(self): self.mod...
26.847458
67
0.510101
73afa277b4b76ad7e00a732d9cbf9c11056f1c1e
457
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_4/make_scorecard_records.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/v8_4/make_scorecard_records.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_4/make_scorecard_records.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from erpnext.buying.doctype.supplier_scorecard.supplier_scorecard import make_default_records def execute(): frappe.reload_doc('buying',...
41.545455
93
0.818381
793300304239a7ab0af9211f9ff48aa44dbd550d
707
py
Python
Packs/ApiModules/Scripts/CrowdStrikeApiModule/TestsInput/http_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/CrowdStrikeApiModule/TestsInput/http_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/CrowdStrikeApiModule/TestsInput/http_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
MULTI_ERRORS_HTTP_RESPONSE = { "errors": [ { "code": 403, "message": "access denied, authorization failed" }, { "code": 401, "message": "test error #1" }, { "code": 402, "message": "test error #2" ...
22.806452
60
0.486563
541915f012eb1076af797db4c87a7635be85bf27
6,282
py
Python
Mock/Api.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Mock/Api.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Mock/Api.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
# pylint: disable=C0114 import tweepy # for exceptions from Externals import Twitter from Externals.Measure import Measure from AnswerMachine.tweet import Tweet import Persistence.log as log from .Tweet import User, mocked_source, mocked_tweets log_ = log.getLogger(__name__) class Count: # pylint: disable=too-few-pub...
42.161074
94
0.572588
583d81504f5bea2a2272f13856141acbff1b368f
13,371
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_mdn_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_mdn_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_mdn_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
33.17866
141
0.586344
545dbe96f79203847c2c7a187c1a6bed76d8e9fe
671
py
Python
Hackerrank_problems/Reverse Game/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Reverse Game/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Reverse Game/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': # since there's no def function you need to make a loop by yourself to keep asking input # for each testcase t = int(input()) for i in range(t): nk = input().split() n = int(nk[0]) ...
23.964286
92
0.555887
4de1e359ad04c75efb70bca64f836467fdb303f9
2,104
py
Python
evolutionary-algo/Population.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
evolutionary-algo/Population.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
evolutionary-algo/Population.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu May 27 21:07:55 2021 @author: Bjarne Gerdes """ import uuid def f(x, y): """ Function that will be optimized Parameters ---------- x : float Value for parameter x. y : float Value for parameter x. Returns ------- float ...
22.382979
91
0.527567
12c5e3c6c68acab1454cacbfb112e33a0f981489
1,218
py
Python
src/python3_learn_video/exception_try_except.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/exception_try_except.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/exception_try_except.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
""" file_name = input('请输入需要打开的文件名:') f = open(file_name) print('文件的内容是:') for each_line in f: print(each_line) f.close() """ print('----------------------------------------------') my_list = ['小甲鱼是帅哥'] # print(len(my_list)) assert len(my_list) > 0 # False 抛出异常 """ try-except语句 try: 检测范围 except Exception[as...
19.645161
55
0.472906
12fea316285aee290dbd09625583fe2ba1617363
5,562
py
Python
robot/kuaipan.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/kuaipan.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/kuaipan.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import http.cookiejar import json import re import wx def create(parent): return Frame1(parent) [wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1PANEL1, wxID_FRAME1STA...
38.09589
102
0.556095
97ea3bb3774de114b5fdf8db56f5629bc4bf3d1f
1,066
py
Python
tests/api/test_image.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test_image.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test_image.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest def test_validate_image(): from marshmallow import ValidationError from project.api.image.schemas import ImagePostRequestSchema data = { "copyright_text": "Horst", } schema = ImagePostRequestSchema() with pytest.raises(ValidationError) as e: schema.load(data) ...
23.688889
80
0.719512