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
22cc2f5c776c2298388f2834044d5fbf4cf192e5
1,365
py
Python
Imaginary/2021/misc/Imaginary/imaginary.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/misc/Imaginary/imaginary.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/misc/Imaginary/imaginary.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random from solve import solve banner = ''' Welcome to the Imaginary challenge! I'm gonna give you 300 imaginary/complex number problems, and your job is to solve them all. Good luck! Sample input: (55+42i) + (12+5i) - (124+15i) Sample output: -57+32i Sample input: (23+32i) + (3+500i) ...
26.764706
193
0.641758
4313cdab6b245be915f3239e88b65e89f6773eb7
2,880
py
Python
repo/service.vpn.manager/libs/access.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/libs/access.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/libs/access.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2018 Zomboided # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
41.142857
289
0.730556
4a6ae3bd20a599fdcb729e06cd752643d7cd2e2d
1,003
py
Python
deutschland/lebensmittelwarnung/models/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
445
2021-07-26T22:00:26.000Z
2022-03-31T08:31:08.000Z
deutschland/lebensmittelwarnung/models/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
30
2021-07-27T15:42:23.000Z
2022-03-26T16:14:11.000Z
deutschland/lebensmittelwarnung/models/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
28
2021-07-27T10:48:43.000Z
2022-03-26T14:31:30.000Z
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from deutschland.lebensmittelwarnung.model.pet import Pet # or import this pac...
43.608696
86
0.845464
43506fc7f00d11e1a0b4c626f44729ecc4ab6219
7,132
py
Python
src/onegov/election_day/views/election/main.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/main.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/main.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import defaultdict from morepath import redirect from onegov.ballot import Election from onegov.core.security import Public from onegov.core.utils import normalize_for_url from onegov.election_day import ElectionDayApp from onegov.election_day.layouts import ElectionLayout from onegov.election_day.util...
32.418182
79
0.554122
43b5963bda5f9be57870ea2a3db11b0d357c58fb
2,810
py
Python
20-fs-ias-lec/groups/07-14-logCtrl/src/logStore/verific/verify_insertion.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/07-14-logCtrl/src/logStore/verific/verify_insertion.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/07-14-logCtrl/src/logStore/verific/verify_insertion.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from ..appconn.feed_ctrl_connection import FeedCtrlConnection from ..funcs.log import create_logger logger = create_logger('Verification') class Verification: def __init__(self): self._fcc = FeedCtrlConnection() self._hostid = self._fcc.get_host_master_id() """ This method is used to che...
36.973684
88
0.613167
600c6990c72ccff62217b19ddeb2476fc9713f0f
407
py
Python
event_detector/gttm/util/silence.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/gttm/util/silence.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/gttm/util/silence.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager import sys, os @contextmanager def suppress_stdout(): with open(os.devnull, "w") as devnull: old_stdout = sys.stdout sys.stdout = devnull try: yield finally: sys.stdout = old_stdout # print "You can see this" # with sup...
21.421053
42
0.63145
60603e2c9a544258a93a532b1e46c8bfb3a3b441
27,672
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/backbones/transnetv2.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/backbones/transnetv2.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/backbones/transnetv2.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-07T10:51:21.000Z
2022-03-07T10:51:21.000Z
# 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 applic...
47.464837
130
0.578274
c76a2ff5f3d0f09d3303a2369907bfdd77c2d3d8
22,082
py
Python
Tests/scripts/slack_notifier.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Tests/scripts/slack_notifier.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Tests/scripts/slack_notifier.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import argparse import json import logging import os import re from collections import OrderedDict from typing import Optional, Dict, List import gitlab import requests import sys import xmltodict from circleci.api import Api as circle_api from slack import WebClient as SlackClient from Tests.Marketplace.marketplace_...
43.640316
120
0.664795
c76acecb7efa7a2f0532d39a319d8bb632046938
1,706
py
Python
top/clearlight/base/runoob/print/format_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/runoob/print/format_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/runoob/print/format_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import math print("{} {}".format("hello", "world")) # hello world print("{1}".format("hello", "world")) # world print("{1} {0} {0}".format("hello", "world")) # world hello hello print('The story of {0}, {1}, and {other}.'.format('Bill', 'Manfred', other='Georg')) print("网站名: {name}, 地址 {url}".format(name="clearlig...
26.246154
85
0.641852
c77c0516507a6015e5bd4f84852ac56a6214bb31
710
py
Python
books/PythonAutomate/excel_spreadsheets/multiplication_table.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/excel_spreadsheets/multiplication_table.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/excel_spreadsheets/multiplication_table.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""multiplication_table.py 명령행에서 수 N을 받아 NxN 곱셈표를 만드는 프로그램 ex) python multiplication_table.py 6 """ import sys import openpyxl from openpyxl.styles import Font if len(sys.argv) != 2: print(f"python {__file__} <num>") sys.exit(1) size = int(sys.argv[1]) wb = openpyxl.Workbook() sheet = wb.active table_font = ...
25.357143
57
0.649296
c7abc308cb5d7e5d6adc353c87f2a70b2a1f6485
3,411
py
Python
Packs/Base/Scripts/DBotShowClusteringModelInfo/DBotShowClusteringModelInfo.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Base/Scripts/DBotShowClusteringModelInfo/DBotShowClusteringModelInfo.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Base/Scripts/DBotShowClusteringModelInfo/DBotShowClusteringModelInfo.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * # CONSTS BASE_INCIDENT_COLUMNS = ['id', 'created', 'name', 'Group name', 'Group id'] def show_model_info(model_name): success = False start = datetime.now() model = None while not success and datetime.now() - start < timedelta(minutes=10): res = demisto.execu...
38.325843
116
0.610671
40537e216348bdbee50d89918189dcfb28e0c55a
3,037
py
Python
semdial_proceedings_code/generate.py
briemadu/semdial-proceedings
59f13adcc73dc9433c3c07ee929fadd8d271b022
[ "Apache-2.0" ]
null
null
null
semdial_proceedings_code/generate.py
briemadu/semdial-proceedings
59f13adcc73dc9433c3c07ee929fadd8d271b022
[ "Apache-2.0" ]
null
null
null
semdial_proceedings_code/generate.py
briemadu/semdial-proceedings
59f13adcc73dc9433c3c07ee929fadd8d271b022
[ "Apache-2.0" ]
2
2021-09-16T07:16:15.000Z
2021-10-30T06:41:55.000Z
#!/bin/env python """Using order as defined by easychair, or manually, and a template with title/preface/sponsors, generate Semdial proceedings: invited talk abstracts, oral papers, posters, in the right order easychair order file has following format: - % defines comments, - # for latex commands to insert as s...
34.511364
130
0.690155
90eb878cae4b3d9bafb5c9e1fb97a0287c82a676
170
py
Python
SoSe-21/Code-Vorlesungen/VL-8/dict-beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-8/dict-beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-8/dict-beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
kontakte_dict = {"Jonas": 28, "Jasper": 24, "Laura": 25} kontakte_dict.update({"Peter": 32}) kontakte_dict.clear() print(kontakte_dict)
18.888889
35
0.570588
2943fe79067dc5fad707d223f1176f5c44243459
6,125
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/google/test_gcp_url_map.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/google/test_gcp_url_map.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/google/test_gcp_url_map.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
import unittest from ansible_collections.community.general.plugins.modules.cloud.google._gcp_url_map import _build_path_matchers, _build_url_map_dict class TestGCPUrlMap(unittest.TestCase): """Unit tests for gcp_url_map module.""" params_dict = { 'url_map_name': 'foo_url_map_name', 'descripti...
37.121212
149
0.378612
9efc91db5f172520e56295ca79ee14ad0fb2b86a
723
py
Python
sketches/castledefender/bullet.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/castledefender/bullet.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/castledefender/bullet.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
import math class Bullet(): def __init__(self, x, y, angle): self.img = loadImage("bullet.png") self.x = x self.y = y self.angle = angle self.speed = 10 self.delete = False self.b_w = 12 # Bullet width self.b_h = 11 # Bullet height self...
27.807692
95
0.521438
736237c3f778bc157de5ec73fb4dbcb79945b4f1
1,927
py
Python
python/en/archive/dropbox/programmers/09-1-linked_list-node_deletion.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/programmers/09-1-linked_list-node_deletion.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/programmers/09-1-linked_list-node_deletion.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# 09-1-linked_list-node_deletion.py # -*- coding: utf-8 -*- # (09) dummy head 를 가지는 연결 리스트 노드 삭제 # 문제 설명 # 제 9 강에서 소개된 추상적 자료구조 LinkedList 는 dummy head node 를 가지는 연결 리스트입니다. 이 클래스의 아래와 같은 메서드들을, 강의 내용에 소개된 요구조건을 만족시키도록 구현하세요. # popAfter() # popAt() # 이 때, popAt() 메서드의 구현에서는 popAfter() 를 호출하여 이용하도록 합니다. (그렇게 하지 않을 수도 있...
23.5
131
0.571354
81f7d5933149f78c8df740f1d0091592d6c37f07
4,984
py
Python
foundation/hooks.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
1
2018-08-21T04:55:52.000Z
2018-08-21T04:55:52.000Z
foundation/hooks.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
5
2018-08-21T04:46:18.000Z
2018-08-28T08:58:05.000Z
foundation/hooks.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "foundation" app_title = "ERPNext Foundation" app_publisher = "EOSSF" app_description = "Website for ERPNext Foundation" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "founda...
29.491124
182
0.643459
6f297b17fa7540519d642548450b93d21a005da9
297
py
Python
python/coding_dojang/decorator_closure.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/decorator_closure.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/decorator_closure.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def trace(func): def wrapper(): print(func.__name__, '함수 시작') func() print(func.__name__, '함수 끝') return wrapper def hello(): print('hello') def world(): print('world') trace_hello = trace(hello) trace_hello() trace_world = trace(world) trace_world()
14.142857
37
0.606061
6f6bc8bcfc2a6fae2f4ee6d19cb21eac13de5474
739
py
Python
Lab5.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
Lab5.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
Lab5.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
""" Lab 5 """ #3.1 alien_color = "green" if alien_color == "green": print("You have earned 5 points!") #3.2 alien_color = "green" if alien_color == "green": print("You have earned 5 points!") else: print("You have earned 10 points!") #3.3 favorite_fruits = ["strawberries", "bananas", "grapes"] if "da...
19.972973
55
0.653586
824e3f742195d8887ae75f2c5a2d2729e18e917f
7,908
py
Python
rbac/providers/ldap/delta_outbound_sync.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
2
2019-02-14T19:57:33.000Z
2019-05-15T16:15:28.000Z
rbac/providers/ldap/delta_outbound_sync.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
rbac/providers/ldap/delta_outbound_sync.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.109589
90
0.680197
81664c763c1a708283818f0905f123a9f092eb5f
1,839
py
Python
src/utils/serversocket.py
muhammedtiftikci/Proje-A
363ddb8e03afe0387d144621479ed742d2d40dc6
[ "MIT" ]
null
null
null
src/utils/serversocket.py
muhammedtiftikci/Proje-A
363ddb8e03afe0387d144621479ed742d2d40dc6
[ "MIT" ]
null
null
null
src/utils/serversocket.py
muhammedtiftikci/Proje-A
363ddb8e03afe0387d144621479ed742d2d40dc6
[ "MIT" ]
null
null
null
import socket from assets import Location from assets import DataModel from assets import LocationManager from socketdatareader import SocketDataReader database = [ { 'username': 'muhammed', 'password': '123456' }, { 'username': 'tiftikci', 'password': '123456' } ] data_reader = SocketDataReader(database) lo...
28.734375
120
0.663948
6f7b955d4a0f7163aba9cc68f865d6d1a3e71e12
3,526
py
Python
Kmeans.py
Fiiila/ZSUR_semestralka
ee0001d8d5acb22999a6c3052735db6ed05a071d
[ "MIT" ]
null
null
null
Kmeans.py
Fiiila/ZSUR_semestralka
ee0001d8d5acb22999a6c3052735db6ed05a071d
[ "MIT" ]
null
null
null
Kmeans.py
Fiiila/ZSUR_semestralka
ee0001d8d5acb22999a6c3052735db6ed05a071d
[ "MIT" ]
null
null
null
#ve skriptech na strane 135 import random import numpy as np from AglomerativniMetoda.Agl_m_v01 import spoctiVzdalenost, nactiDataDoPole from Maximin import vykresliShluky from random import randint import matplotlib.pyplot as plt random.seed(1)#nastaveni seedu...1-dobry vysledek 2-spatny vysledek def najdiNejvzdale...
34.568627
122
0.602099
6fa4ad1824418731cd030da29021bc78459e960f
2,823
py
Python
src/test/tests/hybrid/symm.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/symm.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/symm.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: symm.py # # Defect ID: '6913, '7644, '7650 # # Programmer: Hank Childs # Date: January 23, 2006 # # Modifications: # # Hank Childs, Fri Dec 22 11:01:09 PST 2006 # Add testing for symm_poi...
24.763158
106
0.647184
6fef32b7eb20af8c7253fe7336d75c50cc8d9ced
91
py
Python
zencad/interactive/displayable.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/interactive/displayable.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/interactive/displayable.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
class Displayable: def bind_to_scene(self, scene): raise NotImplementedError()
22.75
35
0.714286
6fefdc2e2a04554feaf2427a8f5c717163fe7507
11,711
py
Python
Packs/SymantecDLP/Integrations/SymantecDLP/SymantecDLP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SymantecDLP/Integrations/SymantecDLP/SymantecDLP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SymantecDLP/Integrations/SymantecDLP/SymantecDLP_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from pytest import raises, skip from CommonServerPython import * from dateutil.parser import parse from SymantecDLP import main, get_cache_path import os from unittest.mock import MagicMock def test_get_incident_attributes(): from SymantecDLP import get_incident_attributes attributes_input = { 'Test':...
35.168168
129
0.565707
83f3a62bbe1ced94bd2f433807742014d0bd4798
18,988
py
Python
KlogR.py
LawlietJH/KlogR
8fb5a5faf7e1b65044b81e9fb049410b74c6fabc
[ "MIT" ]
null
null
null
KlogR.py
LawlietJH/KlogR
8fb5a5faf7e1b65044b81e9fb049410b74c6fabc
[ "MIT" ]
null
null
null
KlogR.py
LawlietJH/KlogR
8fb5a5faf7e1b65044b81e9fb049410b74c6fabc
[ "MIT" ]
null
null
null
# Tested in: Python 3.8.8 - Windows # By: LawlietJH # KlogR v1.1.0 import os, sys largs = len(sys.argv) # ~ if largs == 1: os.system("mode con: cols=16 lines=1") import win32console as WCS import win32gui as WG # ~ if largs == 1: WG.ShowWindow(WCS.GetConsoleWindow(), False) import win32api as WA impo...
24.65974
148
0.513166
f7e7530cd938c92a6949da01524c41839c44f327
5,756
py
Python
code/snake/Snake.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
1
2020-03-30T09:25:53.000Z
2020-03-30T09:25:53.000Z
code/snake/Snake.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
2
2020-02-05T14:00:23.000Z
2020-03-30T19:57:19.000Z
code/snake/Snake.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
null
null
null
from random import random from GameData import GameData from Field import Field class BuiltInRandom: def random(self) -> float: return random() class Snake: action_set = ["north", "south", "west", "east", "turn left", "turn right", "straight"] WALLHIT = "wallhit" TAILHIT = "tailhit" STOP...
33.271676
109
0.54795
f718d8fd87c623aee43fc9e984ea46e92add8c51
11,213
py
Python
source-code/PC/main.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
3
2020-12-30T18:37:13.000Z
2021-10-02T07:43:10.000Z
source-code/PC/main.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
null
null
null
source-code/PC/main.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
1
2021-10-02T07:47:53.000Z
2021-10-02T07:47:53.000Z
import gc #PC only import json, socket, re, time import random, os os.system('start /wait cmd /c pip install psutil') import psutil gc.enable() gc.collect() class WebServer: def __init__(self, system): self._call = system self.s = socket.socket(socket.AF_INET, socket.SOCK_STR...
32.882698
113
0.483189
e3b88cb81aae0dc4097c5fec3cf228d2b40333c5
3,274
py
Python
mood.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
mood.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
mood.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
#Mood # -*- coding: utf-8 -*- import logging # for DB usage import sqlite3 logging.basicConfig(filename='log.txt',level=logging.DEBUG) #mood def make_tabel_mood(): try: con = sqlite3.connect('game.db') con.execute('''CREATE TABLE IF NOT EXISTS mood ( id INTEGER PRIMARY KEY, ...
28.719298
121
0.596213
b2029cf303c87e0b22674a5f443a78aa1bcde5d9
552
py
Python
source/pacman-6.0.1/test/pacman/tests/sync-failover-404-with-body.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pacman-6.0.1/test/pacman/tests/sync-failover-404-with-body.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pacman-6.0.1/test/pacman/tests/sync-failover-404-with-body.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
self.description = "server failover after 404" self.require_capability("curl") p1 = pmpkg('pkg') self.addpkg2db('sync', p1) url_broke = self.add_simple_http_server({ '/{}'.format(p1.filename()): { 'code': 404, 'body': 'a', } }) url_good = self.add_simple_http_server({ '/{}'.format(p1.filen...
22.08
58
0.652174
b2051b679aaf67f9f9c0e0cc7ba86280c10e98f1
2,126
py
Python
src/onegov/agency/views/organisation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/views/organisation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/views/organisation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency import _ from onegov.agency import AgencyApp from onegov.agency.collections import ExtendedAgencyCollection from onegov.agency.collections import ExtendedPersonCollection from onegov.agency.layout import DefaultLayout from onegov.agency.models import ExtendedAgency from onegov.agency.models import Ex...
30.371429
77
0.695673
b7d3a2739d46b9e16b18a5cf222b888eaf97c868
1,733
py
Python
node deletion.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
node deletion.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
node deletion.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
''' Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3 ''' # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class So...
18.052083
90
0.648009
12e48671d10d78edf15dc8683c5b97992551dd93
1,002
py
Python
INBa/2015/Mitin_D_S/task_4_15.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Mitin_D_S/task_4_15.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Mitin_D_S/task_4_15.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 15. # Напишите программу, которая выводит имя, под которым скрывается Анри Мари Бейль. 4 #Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), #вычислить возраст на данный момент (или момент смерти). Для хранения всех нео...
45.545455
132
0.774451
67453ddeb89bb7b9fac7e997accbd2efbf976861
6,593
py
Python
retro/cores/gba/tools/perf.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/tools/perf.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/tools/perf.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
#!/usr/bin/env python from __future__ import print_function import argparse import csv import os import shlex import signal import socket import subprocess import sys import time class PerfTest(object): EXECUTABLE = 'mgba-perf' def __init__(self, rom, renderer='software'): self.rom = rom self....
34.160622
129
0.593508
67def617c84f07193552924990106ec26b61cdf8
2,695
py
Python
official/cv/unet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/unet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/unet/postprocess.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...
44.180328
98
0.608534
c046d6edcf6cafcea268c28ec3e5eb136b294a7e
6,528
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/waaw.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/waaw.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/waaw.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
''' This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT...
38.857143
193
0.476256
c0481e4ad21a5c9039bced3cdfc65583db3fdf14
437
py
Python
leetcode/300-Longest-Increasing-Subsequence/LngstIncrsSubseq_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/300-Longest-Increasing-Subsequence/LngstIncrsSubseq_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/300-Longest-Increasing-Subsequence/LngstIncrsSubseq_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def lengthOfLIS(self, nums): """ :type nums: List[int] :rtype: int """ n = len(nums) if n == 0: return 0 maxlen = [1 for i in range(n)] for i in range(1, n): for j in range(i): if nums[j...
23
67
0.427918
c05e82ec5a045be515930a512f2fa1c21f03272d
4,251
py
Python
test/test_npu/test_network_ops/test_relu.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_relu.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_relu.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...
39.361111
74
0.648083
c06b65f4e3ba8898d297854c574de2971b307abe
2,760
py
Python
Backend/src/fastapi_conf/api.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
null
null
null
Backend/src/fastapi_conf/api.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
null
null
null
Backend/src/fastapi_conf/api.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ AWattPrice API module Poll the Awattar API """ __author__ = "Frank Becker <fb@alien8.de>" __copyright__ = "Frank Becker" __license__ = "mit" from fastapi import BackgroundTasks, FastAPI, Request, status from fastapi.responses import JSONResponse from awattprice import apns, notificatio...
30
97
0.733696
97ed9e140bc435765d7fb021c8d8ee00972910b2
593
py
Python
data_tests/saved__backend__py3.9/numba/subpackages.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/saved__backend__/numba/subpackages.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/saved__backend__py3.9/numba/subpackages.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
# __protected__ from numba import njit from numpy.fft import rfft from numpy.random import randn from numpy.linalg import matrix_power from scipy.special import jv # __protected__ @njit(cache=True, fastmath=True) def test_np_fft(u): u_fft = rfft(u) return u_fft # __protected__ @njit(cache=True, fastmath=Tr...
17.441176
48
0.688027
188accae3a87b714274ba8b74cd6bf9ee4435c21
1,332
py
Python
torch/fx/experimental/fx2trt/tools/timing_cache_utils.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
5
2018-04-24T13:41:12.000Z
2019-07-09T07:32:09.000Z
torch/fx/experimental/fx2trt/tools/timing_cache_utils.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/fx/experimental/fx2trt/tools/timing_cache_utils.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
import logging import os logger = logging.getLogger(__name__) class TimingCacheManager: def __init__(self, timing_cache_prefix: str = "", save_timing_cache=False): # Setting timing cache for TRTInterpreter tc = os.environ.get("TRT_TIMING_CACHE_PREFIX", "") timing_cache_prefix_name = timin...
36
79
0.697447
18b5441692d84e03b79a20691c1db923ae41f2bb
1,233
py
Python
TextToHandwiringConverter.py
mayur200/hacktoberfest2021
5f141fe6dc90916d65bef17a66f0db05649c41ef
[ "MIT" ]
null
null
null
TextToHandwiringConverter.py
mayur200/hacktoberfest2021
5f141fe6dc90916d65bef17a66f0db05649c41ef
[ "MIT" ]
null
null
null
TextToHandwiringConverter.py
mayur200/hacktoberfest2021
5f141fe6dc90916d65bef17a66f0db05649c41ef
[ "MIT" ]
null
null
null
#Importing Library from PIL import Image from sys import argv # if you'd rather not use the command line, put the path to your file here fileName = "dummy.txt" # path of your text file # read file that user wants converted from command line. If file can't be read, assign # the file to a file in the directory try: ...
28.674419
87
0.659367
18f4cdc7d2a8985583a84ec13413b7667e147992
193
py
Python
exercises/de/solution_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/solution_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/solution_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Importiere spaCy import spacy # Erstelle ein deutsches nlp-Objekt nlp = spacy.blank("de") # Verarbeite einen Text doc = nlp("Liebe Grüße!") # Drucke den Text des Dokuments print(doc.text)
16.083333
35
0.735751
18ff0e20801db2e5c2583120879e066f78162ada
18,328
py
Python
docker/api/api/utils/measure_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
docker/api/api/utils/measure_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
docker/api/api/utils/measure_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Corona-Info-App # measure_utils # © 2020 Tobias Höpp. from flask import request, jsonify from models.measures import displayGroup, displayGroupHasDisplay, display, districtHasGroup, regionHasGroup, createSource from main import db from utils.flexstring import validateConfig, flexstringParse im...
41.749431
287
0.617525
3617a41fd75b317f74efd1acd81824186464b5c9
40
py
Python
src/spark/hellos/__init__.py
simonhodder/spark
1062e3092996f82f7bc2c852d6444c2be2a1e296
[ "MIT" ]
null
null
null
src/spark/hellos/__init__.py
simonhodder/spark
1062e3092996f82f7bc2c852d6444c2be2a1e296
[ "MIT" ]
null
null
null
src/spark/hellos/__init__.py
simonhodder/spark
1062e3092996f82f7bc2c852d6444c2be2a1e296
[ "MIT" ]
null
null
null
from .hello_plugins import HelloModel
10
37
0.825
3659616fdd3c64f1cdcdf61b022fd4c1ac0636fd
106
py
Python
run.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
run.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
run.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- from app import app # 可以输出我们开发工程中url,便于调试 print(app.url_map)
17.666667
22
0.698113
36b8a214ce416f78da81671203c0ada43139a673
272
py
Python
apps/analysis/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/analysis/urls.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/analysis/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.urls import path from apps.analysis import views app_name = 'analysis' urlpatterns = [ path('<int:experimentId>/', views.index, name='index'), path('refresh', views.renew_data, name='refresh'), path('new/save', views.newESave, name='newESave'), ]
27.2
59
0.694853
7fcb3750ac9e4f292d07f4c25622e260f5b7e7ed
92
py
Python
comp/zenefits/skype/SparseMatrixAddandMult.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/zenefits/skype/SparseMatrixAddandMult.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/zenefits/skype/SparseMatrixAddandMult.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class SpareMatrix(): def __init__(self): self.tb = {} def add(self, i, j):
15.333333
24
0.532609
7ff3a603b73744855357484d38b1b80faf3404fa
9,169
py
Python
Packs/DeepInstinct/Integrations/DeepInstinct/DeepInstinct.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DeepInstinct/Integrations/DeepInstinct/DeepInstinct.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DeepInstinct/Integrations/DeepInstinct/DeepInstinct.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import requests import json from CommonServerPython import * requests.packages.urllib3.disable_warnings() def http_request(method, url_suffix, json=None): """ Helper function to perform http request """ try: api_suffix = "/api/v1" base_url = demisto.params().get('base_url') if...
27.869301
117
0.596357
3d02521ea5456ce498116f9d2fda68733c665fbe
23,067
py
Python
SBTK_League_Helper/src/interfacing/ogs/resources.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/interfacing/ogs/resources.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/interfacing/ogs/resources.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
from src.tools.dictionaries import MarkedDict from src.tools.markers import AdHocMarker from src import class_initializer, log_entry from .. import SUPPORTED_SERVERS main_server_strings = dict ( host_website = "https://online-go.com", api_server = "https://online-go.com", api_live...
33.625364
282
0.625135
3d4a01bd041b104db060aaf9f15b17bc7ef5e3b1
120
py
Python
code/begin/setting.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/begin/setting.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/begin/setting.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
''' Author: xyb Date: 2020-08-09 09:45:47 LastEditTime: 2020-08-09 09:51:56 Flask应用的配置文件 ''' SECRET_KEY = 'SDSFSFSDFSD'
15
33
0.716667
a1ff36dfd4810fff3a1d958fec681f5f4953154c
2,159
py
Python
src/projectEuler/problem51.py
scrasmussen/ProsaicOeuvre
e7a5fa61f60acf9a02171235b0855d10341cdefc
[ "MIT" ]
null
null
null
src/projectEuler/problem51.py
scrasmussen/ProsaicOeuvre
e7a5fa61f60acf9a02171235b0855d10341cdefc
[ "MIT" ]
1
2021-07-02T23:08:16.000Z
2021-07-02T23:10:42.000Z
src/projectEuler/problem51.py
scrasmussen/ProsaicOeuvre
e7a5fa61f60acf9a02171235b0855d10341cdefc
[ "MIT" ]
null
null
null
# Prime digit replacements : Problem 51 # # By replacing the 1st digit of the 2-digit number *3, it turns out that six of # the nine possible values: 13, 23, 43, 53, 73, and 83, are all prime. # # By replacing the 3rd and 4th digits of 56**3 with the same digit, this 5-digit # number is the first example having seven p...
24.534091
87
0.582677
a7f61aa7fc0ec4f6b8d45d303fb44acb00bee791
1,581
py
Python
official/cv/mobilenetv2_quant/mindspore_hub_conf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-07-03T06:52:20.000Z
2021-07-03T06:52:20.000Z
official/cv/mobilenetv2_quant/mindspore_hub_conf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/mobilenetv2_quant/mindspore_hub_conf.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...
43.916667
78
0.688805
c50438b86ebbea2cb0bf0fb4a882f0c07974203f
1,370
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/onsets/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/onsets/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/onsets/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
from django.template import Context, loader from django.http import HttpResponse from django.http import Http404 from django.shortcuts import get_object_or_404, render_to_response from calls.onsets.models import Recording import subprocess import re # Redirect all output to stderr import sys sys.stdout = sys.stderr d...
34.25
106
0.632117
c5140a735197dd1d343eb97fb6a4e77c4faa247d
205
py
Python
cil-internship-cohort-01/Day 9-task.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
cil-internship-cohort-01/Day 9-task.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
cil-internship-cohort-01/Day 9-task.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
img= cv2.imread(r"C:\Users\HP\Python Folder\python picture.jpg", 1) cv2.imshow(img) imgcopy= img.copy() cv2.imshow(imgcopy) resized_imgcopy = cv2.resize(img, (600,600)) cv2.imshow(resized_imgcopy)
25.625
68
0.726829
c537ddedef90eb198761c162b488b46a51d865ad
356
py
Python
template-python.py
PaxSchweiz/paxdefaults
8c4fef9211c8ced7bdf073124ecaf391b8171939
[ "Apache-2.0" ]
1
2019-12-23T10:22:03.000Z
2019-12-23T10:22:03.000Z
template-python.py
PaxSchweiz/paxdefaults
8c4fef9211c8ced7bdf073124ecaf391b8171939
[ "Apache-2.0" ]
null
null
null
template-python.py
PaxSchweiz/paxdefaults
8c4fef9211c8ced7bdf073124ecaf391b8171939
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------------------------------------------------------- # Copyright 2017 Pax, Schweizerische Lebensversicherungs-Gesellschaft AG # # Licensed under the Pax License, Version 1.0 (the "License"); # # @Description # your_description # # ---------------------------------------...
32.363636
76
0.407303
3dbd74bb8d57425f93ded2d224a044293610d332
802
py
Python
Graficador.py
Miguel-331/Proyecto-SUN
104afd03e05616a297fbda976d377f49a1f905ec
[ "Unlicense" ]
null
null
null
Graficador.py
Miguel-331/Proyecto-SUN
104afd03e05616a297fbda976d377f49a1f905ec
[ "Unlicense" ]
null
null
null
Graficador.py
Miguel-331/Proyecto-SUN
104afd03e05616a297fbda976d377f49a1f905ec
[ "Unlicense" ]
null
null
null
import os def Graficador(FuncionAGraficar): Nombre_De_Programa = "Sistema Univesidad Nacional" logo = [ " ____ _ _ _ _ ", " / ___| | | | | | \ | |", " \___ \ | | | | | \| |", " ___) | | |_| | | |\ |", " |____/ \___/ |_| \_| "] print(Nomb...
25.0625
54
0.395262
4967a0b2a6812cd711d3d3a765067767aad90998
302
py
Python
Online-Judges/CodeForces/800/1619B.Squares_and_Cubes.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodeForces/800/1619B.Squares_and_Cubes.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodeForces/800/1619B.Squares_and_Cubes.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def test_case(): n = int(input()) st = set() for i in range(1, n+1): if i*i > n: break st.add(i*i) for i in range(1, n+1): if i*i*i > n: break st.add(i*i*i) print(len(st)) t = int(input()) for _ in range(t): test_case()
16.777778
27
0.430464
499bc48bc46eaed6d5e5942c8c8e1b1f14e61671
1,329
py
Python
wagtail_localize/migrations/0012_localesynchronization.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
6
2019-09-10T19:53:55.000Z
2019-11-14T16:57:07.000Z
wagtail_localize/migrations/0012_localesynchronization.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
17
2019-07-11T11:17:37.000Z
2019-11-19T16:40:31.000Z
wagtail_localize/migrations/0012_localesynchronization.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
2
2019-09-30T20:23:39.000Z
2019-10-31T14:09:31.000Z
# Generated by Django 3.1.3 on 2020-11-04 20:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("wagtailcore", "0059_apply_collection_ordering"), ("wagtail_localize", "0011_segmentoverride"), ] operations...
28.891304
68
0.40933
b8d4635959c6783d7004b208b95a6f6e3d2d6465
6,973
py
Python
zencad/geom/platonic.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/geom/platonic.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/platonic.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
# Based on https://github.com/qalle2/plato.scad import math from zencad.util import points import zencad def tetrahedron(r=1, a=None, shell=False): if a is None: a = r / math.sqrt(3/2) * 2 he = a * 1 / 2 # half the edge length fi = a * math.sqrt(3) / 6 # faces - incircle radius fc = ...
34.014634
74
0.373297
620e621ea6fafd7c30c7a72b35062db1b69a39c1
3,241
py
Python
test/test_npu/test_network_ops/test_normalize_batch.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_normalize_batch.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_normalize_batch.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...
45.647887
89
0.609071
6261bb0b8962aa2a0fd39e81ceb5cecfbfd0e97d
41
py
Python
lib/python3.5/_dummy_thread.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/_dummy_thread.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/_dummy_thread.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/_dummy_thread.py
41
41
0.829268
657e6da41fe5abefc0d75de55f34849ad98915d9
274
py
Python
Chapter3_Libraries/MainFunction.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
2
2021-02-13T19:18:00.000Z
2021-11-10T09:54:49.000Z
Chapter3_Libraries/MainFunction.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
Chapter3_Libraries/MainFunction.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
from MyModule import list_max from MyModule import list_min def main(): list1 = [-2, 1, 2, -10, 22, -10] list_max(list1) list_min(list1) list2 = [-20, 123, 112, -10, 22, -120] list_max(list2) list_min(list2) if __name__ == "__main__": main()
17.125
42
0.609489
38ebd8a2e760d42e95cc32fb831ca1fb6d52a448
857
py
Python
oldp/apps/laws/admin.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/laws/admin.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/laws/admin.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
from django.contrib import admin from oldp.apps.laws.processing.processing_steps.extract_refs import ExtractRefs from oldp.apps.references.models import LawReferenceMarker from .models import Law, LawBook admin.site.register(LawBook) @admin.register(Law) class LawAdmin(admin.ModelAdmin): # date_hierarchy = 'upd...
27.645161
79
0.683781
ac15254d55b2b5a458a5619646411028c57eb401
7,004
py
Python
python/oneflow/test/modules/test_chunk.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/test/modules/test_chunk.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_chunk.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...
37.058201
86
0.628355
0b3a0798ff24cd71caf512dbc64640961acadf9f
386
py
Python
start/start.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
start/start.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
start/start.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication, QMainWindow from init import * class StartWindow(QMainWindow, Ui_MainWindow): def __init__(self, parent=None): super(StartWindow, self).__init__(parent) self.setupUi(self) if __name__ == '__main__': app = QApplication(sys.argv) ...
27.571429
54
0.678756
0b5be2947545c86268b138f1b802f7b79c36edb7
1,056
py
Python
eBan/tests.py
Chrisaliang/eBanWeb
ad0d75d8247cab77ff679ec961dd42d0db537841
[ "Apache-2.0" ]
null
null
null
eBan/tests.py
Chrisaliang/eBanWeb
ad0d75d8247cab77ff679ec961dd42d0db537841
[ "Apache-2.0" ]
null
null
null
eBan/tests.py
Chrisaliang/eBanWeb
ad0d75d8247cab77ff679ec961dd42d0db537841
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase # Create your tests here. from django.urls import reverse, resolve from .views import board_topics from .models import Board class HomeTests(TestCase): def test_home_view_status_code(self): url = reverse('home') response = self.client.get(url) self.asser...
30.171429
72
0.706439
0ba9f6690ecbd4a5034c52780955732a20fe8e90
28,637
py
Python
Packs/AzureStorageFileShare/Integrations/AzureStorageFileShare/AzureStorageFileShare.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/AzureStorageFileShare/Integrations/AzureStorageFileShare/AzureStorageFileShare.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/AzureStorageFileShare/Integrations/AzureStorageFileShare/AzureStorageFileShare.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import copy import shutil from typing import Callable from requests import Response import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 GENERAL_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ' DATE_FORMAT = "%a, %d %b %Y %H:%M:%S GMT" account_sas_token = '' storage_account_name = '' cla...
35.930991
130
0.62971
f058dd7e279f2dbd787c64dd533df1d682071fca
1,423
py
Python
finbyz_dashboard/finbyz_dashboard/dashboard_overrides/dashboard_utils.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
1
2021-11-19T05:27:11.000Z
2021-11-19T05:27:11.000Z
finbyz_dashboard/finbyz_dashboard/dashboard_overrides/dashboard_utils.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
null
null
null
finbyz_dashboard/finbyz_dashboard/dashboard_overrides/dashboard_utils.py
finbyz/finbyz_dashboard
9c58ab7bccf589bc010d0e5bf95b20cadd4d71f0
[ "MIT" ]
2
2021-08-21T10:41:38.000Z
2021-11-19T05:27:13.000Z
from __future__ import unicode_literals import frappe from frappe import _ from functools import wraps from frappe.utils import add_to_date, cint, get_link_to_form from frappe.modules.import_file import import_file_by_path import os from os.path import join def sync_dashboards(app=None): """Import, overwrite fixture...
33.093023
86
0.759663
65379a2730556317badc21bd1967c949b70d9d04
358
py
Python
exercises/es/exc_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/exc_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/exc_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("es_core_news_sm") text = ( "De acuerdo con la revista Fortune, Apple fue la empresa " "más admirada en el mundo entre 2008 y 2012." ) # Procesa el texto doc = ____ # Itera sobre las entidades predichas for ent in ____.____: # Imprime en pantalla el texto de la entidad y su...
21.058824
62
0.703911
68209757ea34ea87f95126b5403ec4a9d0f57794
5,865
py
Python
Imaginary/2021/pwn/Frozen_exploit/icicle.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/pwn/Frozen_exploit/icicle.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/pwn/Frozen_exploit/icicle.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import ast, operator, random, string, sys from itertools import cycle TRACE = False def as_b(x): if isinstance(x, bytes): return x return str(x).encode() def bytes_to_long(a): return int.from_bytes(a, "big") def long_to_bytes(a): return a.to_bytes((a.bit_length() + 7) // 8, "big") or b"\x00" def equ...
29.179104
120
0.530264
6827ca6af454c1c5b5acbaf44b01186c9f6133a9
2,656
py
Python
src/onegov/org/views/user_groups.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/user_groups.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/user_groups.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.org import _ from onegov.org import OrgApp from onegov.org.forms import ManageUserGroupForm from onegov.org.layout import UserGroupCollectionLayout from onegov.org.layout import UserGroupLayout from onegov.core.elements import Link from onegov.core.security import Secret from o...
25.056604
77
0.685241
f0feeb5fa7adc95cb67de966cc340ef85f3329b7
5,492
py
Python
generator/generator/observer.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
29
2017-06-21T19:29:07.000Z
2022-02-17T12:26:24.000Z
generator/generator/observer.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
34
2017-06-26T14:31:02.000Z
2022-02-03T16:40:41.000Z
generator/generator/observer.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
22
2017-06-29T11:08:42.000Z
2022-02-03T16:16:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Ground program observation for instance generator.""" from clingo.symbol import Function, Tuple_, Number, String class Observer(object): """Ground program observer for instance generator. The main purpose of this observer is to analyze the grounding sizes enta...
42.90625
212
0.657138
ac974ada9ecc25006504b1f1b586b0c133e75d93
407
py
Python
PINp/2014/Valkovskey_M_A/task_1_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_1_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Valkovskey_M_A/task_1_49.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 49. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Эжен Грендель. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. #Valkovskey M.A. print('Эжен Эмиль Поль Грендель - французский поэт, выпустивший более сот...
58.142857
205
0.815725
acbe7cf39e20f7e91dcfded116d5e4119b184da5
70
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/06.5-Command-Line-Argument.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/06.5-Command-Line-Argument.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/06.5-Command-Line-Argument.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
from sys import argv x = int(argv[1]) y = int(argv[2]) print(x + y)
10
20
0.6
c590d8b3bc361d0ad6bdc928dafaf25d0129bb31
13,486
py
Python
fotobox.py
ascanio73/fotobox
e18f998e6856d1f661db65f723274e2da2c90c79
[ "MIT" ]
null
null
null
fotobox.py
ascanio73/fotobox
e18f998e6856d1f661db65f723274e2da2c90c79
[ "MIT" ]
null
null
null
fotobox.py
ascanio73/fotobox
e18f998e6856d1f661db65f723274e2da2c90c79
[ "MIT" ]
null
null
null
import sys import os import subprocess from datetime import datetime, date, time from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import QTime, QTimer from PyQt5.QtGui import QIcon, QPixmap from PyQt5.QtWidgets import QApplication, QDialog from layout import Ui_Form from shutil import copyfile, move from st...
36.846995
269
0.587646
8c51b9073de03c4b1c5e07bd0cc168dd81a7db12
2,400
py
Python
data/import_csv.py
rserur/food-atlas-viz-app
8ed63cb9f7b41ebafe8d0c098e73fece04939e06
[ "MIT" ]
null
null
null
data/import_csv.py
rserur/food-atlas-viz-app
8ed63cb9f7b41ebafe8d0c098e73fece04939e06
[ "MIT" ]
null
null
null
data/import_csv.py
rserur/food-atlas-viz-app
8ed63cb9f7b41ebafe8d0c098e73fece04939e06
[ "MIT" ]
null
null
null
#Import CSV to Postgresql import psycopg2 import pandas as pd conn = psycopg2.connect("host=localhost dbname=final_project user=tushald port=5433") cur = conn.cursor() csv_data = pd.read_csv('df_for_webapp.csv') for idx, u in csv_data.iterrows(): cur.execute('''INSERT INTO food_atlas (id,fips,state,county,pct_lac...
150
999
0.83375
0fc9c86e5f15f3d414705868d031ab82093fafb3
1,858
py
Python
Packs/HealthCheck/Scripts/HealthCheckAPIvalidation/HealthCheckAPIvalidation.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/HealthCheck/Scripts/HealthCheckAPIvalidation/HealthCheckAPIvalidation.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Packs/HealthCheck/Scripts/HealthCheckAPIvalidation/HealthCheckAPIvalidation.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def isDemistoAPIIntegrationAvailable(): brandName = "Demisto REST API" allInstances = demisto.getModules() brandInstances = [ instanceName for instanceName in allInstances if allInstances[instanceName]['bra...
29.967742
121
0.655005
ba1423324219c3d5d50e0ac58d2a4a1d1a98e1b2
1,769
py
Python
2021-05-09/城市地图带后端/城市地图后端/coffee/urls.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/城市地图带后端/城市地图后端/coffee/urls.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/城市地图带后端/城市地图后端/coffee/urls.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from django.conf.urls import url, include from . import views from rest_framework import routers from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token router = routers.DefaultRouter() # router.register(r'api/v1/spots', views.spot_list) # router.register(r'api/v1/spots/(?P<pk>[0-9]+)$', views.spot...
52.029412
118
0.692482
e888c07c9bdbccdadc1966765093a510d6699314
948
py
Python
kts/util/formatting.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/util/formatting.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/util/formatting.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from time import strftime, localtime import numpy as np def format_value(value, time=False): if value is None: return '' if time and value < 1e9: value = int(value) days, r = divmod(value, 24 * 60 * 60) hours, r = divmod(r, 60 * 60) minutes, seconds = divmod(r, 60) ...
27.085714
57
0.505274
d7880ed65716e122a6a97ea5bc99d74b954a75d2
708
py
Python
5_ifElse/1_if.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
5_ifElse/1_if.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
5_ifElse/1_if.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
""" Bedingungen Dieses Programm zeichnet nichts auf die Fläche, sondern schreibt in die Konsole. """ randomValue = random() print("Dieser Text wird immer in die Konsole geschrieben.") if randomValue > 0.5: print("Dieser Text wird nur mit 50%-iger Wahrscheinlichkeit in die Konsole geschrieben.") """ Mit "if" wi...
30.782609
93
0.765537
7e52354e857364e4cd31c820e2084746b7c67b1b
2,481
py
Python
Securinets/2021/Quals/web/Mixed/api/app.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Securinets/2021/Quals/web/Mixed/api/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Securinets/2021/Quals/web/Mixed/api/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from flask import Flask, render_template, request import random import sqlite3 as sql import binascii import json import base64 from Crypto.Cipher import AES import config def my_decrypt(data, passphrase): try: unpad = lambda s : s[:-s[-1]] key = binascii.unhexlify(passphrase) encrypted = js...
28.848837
106
0.562676
0e88953d1f8971c2e3a95258306a8e5b71268ad9
896
py
Python
code/timeseries_by_reporting.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/timeseries_by_reporting.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
code/timeseries_by_reporting.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path path = Path('../data-truth/COVID-19/deconvoluted/') files = [f.name for f in path.glob('**/*')] dfs = [] for f in files: temp = pd.read_csv(path/f) temp = temp.groupby(['location', 'age_group'], as_index = False).value.sum() temp ['date'] = pd.to_datetime(f[:10...
33.185185
100
0.668527
cb507f7075842bd370ebc9fee465dce8a0fdbb04
2,033
py
Python
models/dsp.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/dsp.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/dsp.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
from matplotlib.pyplot import plot from matplotlib.pyplot import show from matplotlib.pyplot import grid from matplotlib.pyplot import xlabel, ylabel, title, xlim from scipy import signal from numpy.fft import fft import numpy as np from numpy import ones from numpy import zeros def single_side_ampl_spectrum( S, Fs...
23.639535
70
0.517462
2a9066529fb36c41b6da9cdef69533435476e965
16,341
py
Python
tests/onegov/form/test_model.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/form/test_model.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/form/test_model.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest import transaction from datetime import date, timedelta from onegov.form import FormCollection, FormExtension, FormSubmission, \ FormRegistrationWindow from sqlalchemy import desc from sqlalchemy.exc import IntegrityError from webob.multidict import MultiDict from wtforms import ValidationError def...
27.463866
79
0.674071
aa8bbd1e79903e47ef75530f50d2aad312d1937c
1,447
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v9_1/create_issue_opportunity_type.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/v9_1/create_issue_opportunity_type.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v9_1/create_issue_opportunity_type.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(): # delete custom field if exists for doctype, fieldname in (('Issue', 'issue_type'), ('Opportunity', 'opportunity_type')): ...
41.342857
93
0.717346
9360ac29ff2d4ed2f0038766b69b3ef60610ed76
143
py
Python
exercises/zh/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.zh import Chinese nlp = Chinese() people = ["周杰伦", "庞麦郎", "诸葛亮"] # 为PhraseMatcher创建一个模板列表 patterns = list(nlp.pipe(people))
15.888889
33
0.699301
35a406868b5dd52af8e267c3bdb6a73c3651012e
6,508
py
Python
src/de/simocracy/postwriter/plugins/flpostscript.py
Simocracy/PostWriter
279d8b33c1ce4f3474b73dcfe7e16dc5047b05c1
[ "MIT" ]
null
null
null
src/de/simocracy/postwriter/plugins/flpostscript.py
Simocracy/PostWriter
279d8b33c1ce4f3474b73dcfe7e16dc5047b05c1
[ "MIT" ]
null
null
null
src/de/simocracy/postwriter/plugins/flpostscript.py
Simocracy/PostWriter
279d8b33c1ce4f3474b73dcfe7e16dc5047b05c1
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- """ Skript zum automatischen Posten eines Posts in den Poli 12-05-09 Fluggs Inputvars: py_username, py_password, py_sep, py_postpath Outputvars: py_polipost_status, py_polipost_output py_polipost_status: 0 bei erfolgreicher Durchführung, 1 bei Fehlern py_polipost_output: Outputstring; Post-URL be...
38.738095
112
0.602797
ea66fee04ebbb89c0234711ef4caa21f11682941
768
py
Python
GZP_GTO_QGIS/gto/scripts/example.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/gto/scripts/example.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_script.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
from qgis.core import * from qgis.gui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * def run_script(iface, *args, **kwargs): try: # QgsMessageLog.logMessage('script: ' + __file__, __name__, 0) parameters = args settings = kwargs # script...
28.444444
76
0.632813
57a35b53c4d16e24628354881d9dd4cb1c71daaa
294
py
Python
backend/apps/iamstudent/migrations/0012_merge_20200406_0203.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/iamstudent/migrations/0012_merge_20200406_0203.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/iamstudent/migrations/0012_merge_20200406_0203.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-06 00:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('iamstudent', '0010_auto_20200405_2217'), ('iamstudent', '0011_merge_20200404_2309'), ] operations = [ ]
19.6
52
0.62585
57d85d7c3fa19bdf4863070236d256ebdbd494d6
2,300
py
Python
tests/test_messlokationszuordnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_messlokationszuordnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_messlokationszuordnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from datetime import datetime from bo4e.com.messlokationszuordnung import Messlokationszuordnung, MesslokationszuordnungSchema from bo4e.enum.arithmetische_operation import ArithmetischeOperation class TestMesslokationszuordnung: def test_serialisation_only_required_attributes(self): """ Test ser...
39.655172
96
0.717391
dc257d96165b6d86f2a5f4fe61bc1135d673cf0a
2,784
py
Python
src/gvz/migrations/0001_initial.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
7
2021-04-24T19:11:15.000Z
2021-10-30T12:59:16.000Z
src/gvz/migrations/0001_initial.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
10
2021-04-25T10:25:12.000Z
2021-04-26T17:55:20.000Z
src/gvz/migrations/0001_initial.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-24 18:30 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AdministrativeDivision', fie...
59.234043
718
0.610273
760fd4a36b7c6c658bc5d7272caf83b0692ac4d0
1,419
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/stack/stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/stack/stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/stack/stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from singly_linked_list import LinkedList """ A stack is a data structure whose primary purpose is to store and return elements in Last In First Out order. 1. [X] Implement the Stack class using an array as the underlying storage structure. Make sure the Stack tests pass. 2. [X] Re-implement the Stack class, this ...
40.542857
463
0.702607
5294ae20b176f77018e374eea545ed2f7e490573
2,712
py
Python
test.py
Walker088/RAtest
3f71a0ee5c69c2a64329901b2ad662ccb4fb4a81
[ "MIT" ]
null
null
null
test.py
Walker088/RAtest
3f71a0ee5c69c2a64329901b2ad662ccb4fb4a81
[ "MIT" ]
null
null
null
test.py
Walker088/RAtest
3f71a0ee5c69c2a64329901b2ad662ccb4fb4a81
[ "MIT" ]
null
null
null
#!/usr/bin/env python import requests, time, random, csv from tqdm import tqdm from prettytable import PrettyTable from multiprocessing import Pool url_saa = 'http://190.52.167.69:9000/' api_saa = 'SOAP/get_expediente.php?cedula=%d' url_his = 'http://192.168.1.43:5000/' api_his = 'api/v1/policia/%d' max_num = 850000...
33.073171
204
0.627581
1da09581ba1e0dae121b253e9ba6498fa03383a7
317,376
py
Python
shell-upload-plugin-main/foxv6plus.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
shell-upload-plugin-main/foxv6plus.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
shell-upload-plugin-main/foxv6plus.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#donwload python (Preferred Python 2.7.14) => https://www.python.org/downloads/release/python-2714/ #install requests, how ? => https://anonymousfox.io/_@info/requests.txt #install colorama, how ? => https://anonymousfox.io/_@info/colorama.txt #install selenium, how ? => https://anonymousfox.io/_@info/selenium.txt ...
93.566038
32,310
0.703812
8965854d0bf0400f80d96afba918fae92ba26f6e
1,496
py
Python
src/apache.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/apache.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/apache.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/python """ apache.* scripts item This file is part of ZTC and distributed under GNU GPL v.3 Copyright (c) 2010-2011 Vladimir Rusinov Copyright (c) 2010 Murano Software [http://muranosoft.com/] Params: $1 - metric name. Supported: ping - ping to apache (time of test page load) accesses -...
39.368421
77
0.709225
898345a23a00b0f66904124b28a414e2429d1534
2,175
py
Python
Utils/Database_Preconditioning.py
Drageast/Die_Botin
b574166a37c0f92c34db99931c8c894390fbead9
[ "BSD-3-Clause" ]
null
null
null
Utils/Database_Preconditioning.py
Drageast/Die_Botin
b574166a37c0f92c34db99931c8c894390fbead9
[ "BSD-3-Clause" ]
null
null
null
Utils/Database_Preconditioning.py
Drageast/Die_Botin
b574166a37c0f92c34db99931c8c894390fbead9
[ "BSD-3-Clause" ]
null
null
null
# Import from .ErrorHandler import DatabasePreconditioning import discord from .Util import WrapperDecorator class Sterilization_Uccount: def __init__(self, _id, Reports): self._id = _id self.Reports = Reports class DBPreconditioning: def __init__(self, client): self.client = client ...
25.290698
96
0.622989
98a1613a1b0e0e8836d7563c0eccf55ee34e1e39
890
py
Python
Generator/idm_rules.py
Design-Computation-RWTH/ILC_Demonstrator
60046366383de053026a0d03b213f6af3610f608
[ "MIT" ]
1
2021-06-08T10:04:35.000Z
2021-06-08T10:04:35.000Z
mvdXMLGen/ILC_Demonstrator-master/Generator/idm_rules.py
BIMInstitut/MRL-Datenbank
81130071d3b76eba010e7649a2cbaf0a1b7dcfc4
[ "MIT" ]
null
null
null
mvdXMLGen/ILC_Demonstrator-master/Generator/idm_rules.py
BIMInstitut/MRL-Datenbank
81130071d3b76eba010e7649a2cbaf0a1b7dcfc4
[ "MIT" ]
1
2021-05-04T09:38:20.000Z
2021-05-04T09:38:20.000Z
# -*- coding: utf-8 -*- class specID: def __init__ (self): self.uuid = uuid self.shortTitle = "" self.fullTitle = "" self.subTitle = "" self.idmCode = "" self.localCode = "" self.bsiStatus = "" self.localStatus = "" self.version = "" def ...
24.722222
58
0.603371
7f4a6cb0df4bd282d6ad499afa9d68394559e341
2,483
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/xenserver/test_xenserver_guest_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright: (c) 2019, Bojan Vitnik <bvitnik@mainstream.rs> # 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 import json import pytest from ..common import fake...
31.833333
154
0.664921
f68c33497025397599e4cec1b307ccd1964be642
709
py
Python
SVDD/demo_2.py
Mrxuelovecode/SVDD
fbd7df5cc7df0e24745b8f4df8fab237a2657e88
[ "Apache-2.0" ]
6
2020-01-08T02:41:10.000Z
2020-07-24T13:59:04.000Z
SVDD/demo_2.py
Mrxuelovecode/SVDD
fbd7df5cc7df0e24745b8f4df8fab237a2657e88
[ "Apache-2.0" ]
null
null
null
SVDD/demo_2.py
Mrxuelovecode/SVDD
fbd7df5cc7df0e24745b8f4df8fab237a2657e88
[ "Apache-2.0" ]
1
2020-03-05T04:21:16.000Z
2020-03-05T04:21:16.000Z
# -*- coding: utf-8 -*- """ Created on Tue Dec 24 11:28:57 2019 @author: Kepeng Qiu """ import visualize from Svdd import Svdd import scipy.io as sio import matplotlib.pyplot as plt # load data data = sio.loadmat(".\\data\\"+"data.mat") X = data['X'] # training data Y = data['Y'] # testng data ...
18.657895
52
0.558533