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
d8b92449fb14059fdaa9d32c3bfe20689fdd8f7f
1,247
py
Python
Lab2/task[7-9].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab2/task[7-9].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab2/task[7-9].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
# task 7#create a list and print it #remove any repeated items and print the result  list = [0, 0, 1, 2, 2, 2, 3, 1, 3, 1, 3, 1, 4, 5, 6, 5, 4] print ("The initial list : " +  str(list)) res = [] for i in list:     if i not in res:         res.append(i) print ("The eventual list : " + str(res)) #task 8#create a list#s...
30.414634
115
0.615076
995c9c01a66e2d28ecddcad7ced704155afa567d
483
py
Python
lintcode/000-077-Longest-Common-Subsequence/LngstCmnSubseq_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
lintcode/000-077-Longest-Common-Subsequence/LngstCmnSubseq_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/000-077-Longest-Common-Subsequence/LngstCmnSubseq_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: """ @param A, B: Two strings. @return: The length of longest common subsequence of A and B. """ def longestCommonSubsequence(self, A, B): n, m = len(A), len(B) f = [[0] * (n + 1) for i in range(m + 1)] for i in range(n): for j in range(m): ...
30.1875
65
0.418219
320c23383afffa499787dcd08e08b8357ffcc06d
354
py
Python
Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/25.00-Socket-Programming-Server.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/25.00-Socket-Programming-Server.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/25.00-Socket-Programming-Server.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
import socket server = socket.socket() print("Socket Created") server.bind(("127.0.0.1", 9999)) server.listen(3) print("Waiting for connections") while True: client, address = server.accept() name = client.recv(1024).decode() print("Connect with", address, name) client.send(bytes(f"Welcome to {name...
18.631579
53
0.666667
5c650ebe1e44614510856f8cbc6160d3eb018414
34,442
py
Python
Packs/NetscoutAED/Integrations/NetscoutAED/NetscoutAED_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/NetscoutAED/Integrations/NetscoutAED/NetscoutAED_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/NetscoutAED/Integrations/NetscoutAED/NetscoutAED_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io import pytest import requests_mock from NetscoutAED import Client from CommonServerPython import DemistoException MOCK_URL = "http://base_url_mock" client = Client( base_url=MOCK_URL, verify=False, api_token="api_token", proxy=False) inbound_blacklisted = {'direction': 'inbound',...
40.235981
119
0.638697
56e35174f471903d889d3b843b96d0d19ec9f573
4,053
py
Python
python/advanced_sw/GIT-SCRAPER/scraper.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/GIT-SCRAPER/scraper.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/GIT-SCRAPER/scraper.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import json from pprint import pprint from selenium import webdriver from bs4 import BeautifulSoup from pathlib import Path from tqdm import tqdm import json import time import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup import ssl # Ignore SSL certificate errors ctx = ssl.create_default_c...
35.243478
138
0.740933
85b843aa3ed5946f4e4acc5fdc67f7bc06462d11
1,937
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_10_Definition_eigener_Klassen/05_Statische_Methoden.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_10_Definition_eigener_Klassen/05_Statische_Methoden.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_10_Definition_eigener_Klassen/05_Statische_Methoden.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # #### # File: 05_Statische_Methoden.py # Project: Kapitel_10_Definition_eigener_Klassen #----- # Created Date: Wednesday 07.10.2020, 13:43 # Author: Apop85 #----- # Last Modified: Wednesday 07.10.2020, 13:44 #----- # Copyright (c) 2020 Apop85 # This software is published...
35.218182
120
0.674239
85c25a894347fbfe8ef1994f6603a4bfcb4a6db6
1,405
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v10_0/rename_schools_to_education.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/v10_0/rename_schools_to_education.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v10_0/rename_schools_to_education.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 def execute(): # rename the School module as Education # rename the school module if frappe.db.exists('Module Def', 'Schools') and not frappe.db.exists('Mod...
42.575758
98
0.738078
a42ab4f9318eb29aa86f636f49815bfdb61ea030
720
py
Python
ciaoutil/util/singleton.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
ciaoutil/util/singleton.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
ciaoutil/util/singleton.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
class Singleton(object): _instances = {} def __new__(cls): if cls not in cls._instances: cls._instances[cls] = object.__new__(cls) return cls._instances[cls] """ Test """ if __name__ == "__main__": class single1(Singleton): def __init__(self): self.x = 1 class single2(Singleton): def __init__(sel...
16
44
0.668056
7453968476438fe4c6fb2daaa5a7ff590280deac
1,416
py
Python
challenges/blackrock/curenct_arbitrage.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
challenges/blackrock/curenct_arbitrage.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
challenges/blackrock/curenct_arbitrage.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
import json, urllib2, sys, math import networkx as nx def grab_files(url="http://fx.priceonomics.com/v1/rates/"): try: x = urllib2.urlopen(url).read() res = json.loads(x) except Exception, e: print >>sys.stderr, "Error getting rates:", e sys.exit(1) return res def parse_poi...
27.230769
81
0.601695
77cec1e56fd3f5da1ab2bcaf73c027feab17e2f5
6,184
py
Python
ProjectLib/Project.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
ProjectLib/Project.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
ProjectLib/Project.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2018-Today @author: jasper.bathmann@ufz.de """ from TreeModelLib import AbovegroundCompetition from TreeModelLib import BelowgroundCompetition from TreeModelLib import GrowthAndDeathDynamics from VisualizationLib import Visualization from TreeOutputLib import T...
41.783784
119
0.705692
24d46a580cb59f93fee57134b199994d4896a7d3
999
py
Python
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hash_test.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hash_test.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hash_test.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import time import hashlib import bcrypt n = 1000000 key = b"STR" print(f"Hashing {n}x") start_time = time.time() for i in range(n): hash(key) end_time = time.time() print(f" Python hash runtime: {end_time - start_time} seconds") start_time = time.time() for i in range(n): hashlib.sha256(key) end_time = t...
20.387755
64
0.677678
707cf0cc068ff564ed1713567b2f1cb6d52f923b
7,533
py
Python
chillow/service/ai/not_killing_itself_ai.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/service/ai/not_killing_itself_ai.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/service/ai/not_killing_itself_ai.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
import copy import logging import pickle from enum import Enum from random import choice from typing import List, Dict from multiprocessing import Value from chillow.exceptions import InvalidPlayerMoveException from chillow.service.ai.artificial_intelligence import ArtificialIntelligence from chillow.model.action impo...
44.311765
119
0.636267
56a79fcf6bf0255312124feda2ea25e8996acb06
1,694
py
Python
Fastir_Collector/dump/disk_analysis.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/dump/disk_analysis.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/dump/disk_analysis.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
import os import time import wmi class DiskAnalysis(object): def __init__(self, path): self.currentMachine = wmi.WMI() self.listDisks = [] self.envVarList = {} self.listPartitions = [] self.os = None self.mbrDisk = "" self.path = path + os.path.sep + 'result...
45.783784
119
0.417946
3b1fe5935719426002f1e8ede82a3d32c521e868
639
py
Python
src/main/java/ch/hslu/AD/SW11/FormaleGrammatik/grammer_04d.py
hslu-students/AD-Exercise
d39836e703dadfba61016f0ab5a3991ae250ae15
[ "MIT" ]
2
2018-02-24T08:13:32.000Z
2019-02-19T11:59:41.000Z
src/main/java/ch/hslu/AD/SW11/FormaleGrammatik/grammer_04d.py
hslu-students/AD-Exercise
d39836e703dadfba61016f0ab5a3991ae250ae15
[ "MIT" ]
null
null
null
src/main/java/ch/hslu/AD/SW11/FormaleGrammatik/grammer_04d.py
hslu-students/AD-Exercise
d39836e703dadfba61016f0ab5a3991ae250ae15
[ "MIT" ]
1
2017-05-06T08:48:38.000Z
2017-05-06T08:48:38.000Z
""" Grammer for language in SW11-4-d """ from lark import Lark __GRAMMER__ = """ start: a a: (ZERO a ZERO|ONE a ONE|TWO a TWO|b|EMPTY) b: (ZERO|ONE|TWO) ZERO: "0" ONE: "1" TWO: "2" EMPTY: "ε" """ __WORDS__ = [ 'ε', '0', '0ε0', '000', '1', '010', '121' ] def main(grammer, words): ...
13.891304
48
0.555556
3b2c543a31447577b0900bb494cd504dd2611948
3,301
py
Python
pythonProj/FZPython/pyquant/strategies/crossover.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/strategies/crossover.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/strategies/crossover.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
# -*- coding: utf-8 -*- import backtrader as bt import backtrader.indicators as btind class CrossOver(bt.Strategy): '''This is a long-only strategy which operates on a moving average cross Note: - Although the default Buy Logic: - No position is open on the data - The ``fast`` moving ...
30.564815
87
0.551954
d935166b33566c12aaa03dbcfa8fc3352d352fe4
1,910
py
Python
analyze/users.py
no-ora/solitadds
18c5868af00441a8e67311679a0b848c836975d2
[ "MIT" ]
null
null
null
analyze/users.py
no-ora/solitadds
18c5868af00441a8e67311679a0b848c836975d2
[ "MIT" ]
null
null
null
analyze/users.py
no-ora/solitadds
18c5868af00441a8e67311679a0b848c836975d2
[ "MIT" ]
null
null
null
import sys, math, pdb from datetime import timedelta import pandas as pd import logging import numpy as np def summarize_users(odf, udf): """ Create a summary of the applications as a table. Presumes events are in datetime order * Count number of comments for different roles """ summary = None ...
37.45098
114
0.636126
694bf242028159fdbcd32ec7f52fbc8bc1046051
741
py
Python
RunFaster/concurrency/Code-09-Daemon_Thread_joinMethod.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/Code-09-Daemon_Thread_joinMethod.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/Code-09-Daemon_Thread_joinMethod.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
''' DEVELOPER NAME: BALAVIGNESH.M IMPLEMETED DATE: 17-11-2018 Implementation Details: If the main thread is wait to complete the child thread process means we should use the join() method so the main mehod will execute and main thread will wait. ''' import thre...
25.551724
107
0.663968
15ee3e8c53699d70c77b0acf0d5e38944239a976
1,693
py
Python
test/test_npu/test_network_ops/test_randperm.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_randperm.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_randperm.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...
37.622222
74
0.711754
c64c6f98a9e7237a90bc4e9e268d9b3a2db24a12
676
py
Python
DataProcess/utils/pre_purpose.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/pre_purpose.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/pre_purpose.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
import numpy as np import copy # 归一化 def normalization(input_data): _range = np.max(input_data) - np.min(input_data) return (input_data - np.min(input_data)) / _range # 处理相位序列中零值 def deal_zero_phase(input_phase): if input_phase[0] == 0: input_phase[0] = np.min(input_phase[np.nonzero(input_phase)...
23.310345
69
0.66568
d66ccf373e5fa4b3c8e7211fb3cb454055a141dc
377
py
Python
comp/microsoft/003_max_network_rank.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/microsoft/003_max_network_rank.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/003_max_network_rank.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: def max_network_rank(self, A, B, N): n = len(A) res = 0 connected_counts = [0] * N for i in range(n): connected_counts[A[i] - 1] += 1 connected_counts[B[i] - 1] += 1 for i in range(n): res = max(res, connected_counts[A[i] -...
29
87
0.496021
79e3797f1706a75fd6e5ff3ee3c64899551f4d1e
7,548
py
Python
kts/tests/test_backend.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/tests/test_backend.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/tests/test_backend.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import time from itertools import product import numpy as np import pandas as pd import pytest from kts.core.backend.address_manager import get_address_manager from kts.core.backend.progress import pbar from kts.core.backend.signal import get_signal_manager from kts.core.feature_constructor.user_defined import Featur...
39.518325
139
0.688527
0350e96ef60d7b998c02041a9dbcfece026d510b
2,443
py
Python
Python/plotMachIsosurface.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
1
2019-02-11T00:45:37.000Z
2019-02-11T00:45:37.000Z
Python/plotMachIsosurface.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
Python/plotMachIsosurface.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
import tecplot import numpy as np import math import string from tecplot.exception import * from tecplot.constant import * class plotMachIsosurface(object): def __init__(self, myFlowFile, Type): print("plotMachIsosurface.............................................."); self.myFlowFile_ ...
34.9
94
0.553827
035cb40df65cf69b1fc368fd01b197a4f6b44df2
4,275
py
Python
interface/main.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
interface/main.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
interface/main.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # author = hyz import sys import time from test import Ui_MainWindow from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import random from getIP.getip import * import os import signal import threading class MyWindow(QMainWindow, Ui_MainWindow): def __init__(...
32.633588
113
0.585497
cc7da3bbef80a943834f44e22dc828da906a9c1f
1,015
py
Python
aecb/api/management/commands/test_accounts.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
aecb/api/management/commands/test_accounts.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
aecb/api/management/commands/test_accounts.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
from ...models import Employee, Client from django.core.management.base import BaseCommand from django_seed import Seed import os class Command(BaseCommand): """ """ def handle(self, *args, **kwargs): seeder = Seed.seeder() testing_client = os.environ.get("DJANGO_TESTING_CLIENT") te...
31.71875
72
0.569458
d1ae3dcc607c003381dd7da0190ed6d8c373b107
1,162
py
Python
plugins/tff_backend/to/dashboard.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/to/dashboard.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/to/dashboard.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
33.2
76
0.728055
ae83846eb22d7382cc4c6fc6ac110963be99b553
173
py
Python
Exercicios/ex09-3f.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-3f.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-3f.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
#calculo da area do circulo import math raio = float(input('Insira o valor do raio: ')) area = math.pi*pow(raio,2) msg = 'Area do circulo é {}' print(msg.format(area))
14.416667
47
0.676301
09bb8464bddb4816a1f29c27369bc02969c0cd1c
664
py
Python
benwaonline/exceptions.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/exceptions.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/exceptions.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
class BenwaOnlineError(Exception): ''' Based off flask-restless's ProcessingException ''' def __init__(self, id_=None, links=None, status=500, code=None, title=None, detail=None, source=None, meta=None, *args, **kw): self.id_ = id_ self.links = links self.status ...
28.869565
79
0.628012
110a86992e86426504c7ee6f0b09a46dd42dc868
322
py
Python
Algorithms/Greedy/GoodlandElectricity.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Greedy/GoodlandElectricity.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Greedy/GoodlandElectricity.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 n, k = map(int, raw_input().split()) ar = raw_input().split() minimum = 0 i = 0 while i < n: pre = i while i-pre < k-1 and i < n-1: i += 1 while ar[i] == '0': i -= 1 if pre - i >= k: minimum = -1 break minimum += 1 i += k print minimu...
12.384615
36
0.437888
a30b209ef930fffc6a4801eb1e3ef721aceb5bb3
1,953
py
Python
research/cv/SiamFC/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SiamFC/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SiamFC/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...
39.06
85
0.636969
a35f3c5242c1e2fff342e23a1ca7c29d2322b8b2
128
py
Python
python/pickle/pickling_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/pickling_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/pickling_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pickle square = lambda x: x * x # pickle module can't serialize a lambda function my_pickle = pickle.dumps(square)
21.333333
50
0.726563
6e716817942bc36967a800ace0d87dfb27677e41
1,514
py
Python
kts/api/helper.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/api/helper.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/api/helper.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import functools import inspect import numpy as np import kts.ui.components as ui from kts.util.misc import extract_requirements, validate_source class Helper(ui.HTMLRepr): def __init__(self, func): self.func = func self.name = self.func.__name__ self.source = inspect.getsource(func) ...
32.913043
114
0.643329
42caec5fb0ae74502ac4648fafe8c207960a6a4a
3,215
py
Python
similaritycalculation/test_timeSimilarity.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
null
null
null
similaritycalculation/test_timeSimilarity.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
38
2018-10-24T08:51:58.000Z
2021-12-13T19:54:39.000Z
similaritycalculation/test_timeSimilarity.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
12
2018-10-24T08:20:13.000Z
2019-08-12T08:10:14.000Z
''' author: Aysel Tandik Testing timeSimilarity created on: 09.01.2018 ''' import timeSimilarity import math # Testing the three methods individually def test_timeLength(): result1 = timeSimilarity.timeLength(['1956/01/01 00:00:00 GMT+0', '2088/01/01 00:00:00 GMT+0', 730.5], [ ...
53.583333
121
0.560187
281faa1714ff4b487ca24b2ab856aaa861d9a011
4,367
py
Python
src/bo4e/validators.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/validators.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/validators.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains validators for BO s and COM s classes. """ import re from datetime import datetime from typing import Optional, Protocol import attr.validators from bo4e.enum.aufabschlagstyp import AufAbschlagstyp # pylint: disable=unused-argument def check_list_length_at_least_one(instance, attribute, value): """...
36.090909
163
0.677124
95c02cfd64a69faa06734b8dbb461c0452ef7d29
516
py
Python
INBa/2015/Ermashov_A_V/task_6_5.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ermashov_A_V/task_6_5.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ermashov_A_V/task_6_5.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Создайте игру, в которой компьютер загадывает один из трех цветов светофора, а игрок должен его угадать. # Ермашов А.В., 26.05.2016 import random cvet = random.randint(1,3) if cvet == 1: cvet="Красный" elif cvet ==2: cvet="Желтый" elif cvet ==3: cvet="Зеленый" print("Угадайте цвет светофора: ") otvet = input("\nВведи...
32.25
106
0.70155
95e83938ea49cc3799a636d4b45be3a79d0112df
10,492
py
Python
Python/runPostProcessing.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
1
2019-02-11T00:45:37.000Z
2019-02-11T00:45:37.000Z
Python/runPostProcessing.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
Python/runPostProcessing.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
#!/usr/bin/python import tecplot import os import numpy as np import math import string import glob from graphicsGenerator import graphicsGenerator from tecplot.exception import * from tecplot.constant import * def postProcessingEuler(): # Python directory to bin directory os.chdir("../bin"); ...
40.045802
135
0.524876
c2fe561229754bbf92f76e44e486539a89b6774d
265
py
Python
basics/arithemetic_operators.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/arithemetic_operators.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/arithemetic_operators.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
if __name__ == '__main__': # Read two integers from STDIN a = int(input()) b = int(input()) print(a+b) # the sum of the two numbers print(a-b) # the difference of the two numbers (first - second). print(a*b) # the product of the two numbers.
29.444444
68
0.626415
6c3915ce829e49307de16f2d5529c180c843c774
5,811
py
Python
draft/main.py
joselynzhao/wardrobe
336716aa25702d95954b5737617b68fe989651d0
[ "MIT" ]
1
2020-05-03T04:50:43.000Z
2020-05-03T04:50:43.000Z
draft/main.py
joselynzhao/wardrobe
336716aa25702d95954b5737617b68fe989651d0
[ "MIT" ]
null
null
null
draft/main.py
joselynzhao/wardrobe
336716aa25702d95954b5737617b68fe989651d0
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' @AUTHOR:Joselyn Zhao @CONTACT:zhaojing17@foxmail.com @HOME_PAGE:joselynzhao.top @SOFTWERE:PyCharm @FILE:main.py @TIME:2020/4/26 19:49 @DES: 衣橱管理 ''' import os import os.path as osp import codecs item_id = 0 # global item_id class ITEM(): def __init__(self,attr_list,att...
32.830508
108
0.594218
dd62442e26870fb0d650adb1d481d302820e468b
3,294
py
Python
examples/example_trend.py
NewLanded/swbt
8b8e8609cea060d6f124dc3c4bd99cb6243501dc
[ "Apache-2.0" ]
null
null
null
examples/example_trend.py
NewLanded/swbt
8b8e8609cea060d6f124dc3c4bd99cb6243501dc
[ "Apache-2.0" ]
null
null
null
examples/example_trend.py
NewLanded/swbt
8b8e8609cea060d6f124dc3c4bd99cb6243501dc
[ "Apache-2.0" ]
1
2019-11-28T16:29:49.000Z
2019-11-28T16:29:49.000Z
"""判断趋势示例""" import datetime import talib as ta import pandas as pd from core.back_test import BackTest class MyBackTest(BackTest): def sizer(self): pass def strategy(self): date_now = self.data["trade_date"].iloc[-1] sma_data_20 = ta.MA(self.data["close"], timeperiod=20, matype=0) ...
35.804348
147
0.472678
dd874007b76d02555d6bff0dcf7931093024eaea
926
py
Python
books/PythonCleanCode/ch3_good_code/orthogonal.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch3_good_code/orthogonal.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch3_good_code/orthogonal.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 3: General traits of good code > Orthogonality """ def calculate_price(base_price: float, tax: float, discount: float) -> float: """ >>> calculate_price(10, 0.2, 0.5) 6.0 >>> calculate_price(10, 0.2, 0) 12.0 """ return (base_price * (1 + ...
20.130435
78
0.551836
06da4a4f8a5d62e4350f5724bb1db108c54d140f
2,187
py
Python
TreeModelLib/GrowthAndDeathDynamics/Mortality/Mortality.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
TreeModelLib/GrowthAndDeathDynamics/Mortality/Mortality.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
TreeModelLib/GrowthAndDeathDynamics/Mortality/Mortality.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2021-Today @author: marie-christin.wimmler@tu-dresden.de """ import numpy as np class Mortality: ## This class initializes the mortality concept defined in the xml input # file. # See growth-and-death-concept SimpleBettina for integration in #...
33.646154
76
0.579332
9fdcad7f8fd392b2fb0014315cb0a759b55a5b13
864
py
Python
0-newbooks/faceswap-GAN/training_data.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2021-09-07T09:50:58.000Z
2021-09-07T09:50:58.000Z
0-newbooks/faceswap-GAN/training_data.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
0-newbooks/faceswap-GAN/training_data.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
import numpy from image_augmentation import random_transform from image_augmentation import random_warp random_transform_args = { 'rotation_range': 15, 'zoom_range': 0.1, 'shift_range': 0.05, 'random_flip': 0.5, } def get_training_data( images, batch_size ): indices = numpy.random.randint( len...
32
93
0.68287
af147159d45a24fc5d8d06a2db2bc75b5dbb445e
5,785
py
Python
sso-service/sso/endpoints/service_endpoint.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-service/sso/endpoints/service_endpoint.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-service/sso/endpoints/service_endpoint.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
import simplejson as json from flask.ext.api import status import flask as fk from ssodb.common import crossdomain from sso import app, SERVICE_URL, service_response from ssodb.common.models import User, Service import mimetypes import traceback import datetime import random import string from io import StringIO imp...
45.551181
122
0.600173
af68df3695df640556331cf646aeb199a98457cc
1,317
py
Python
official/nlp/lstm/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/lstm/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/lstm/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...
37.628571
109
0.662111
3cebd8c94975a867df947182eef1e51aa09a0d67
1,342
py
Python
elements/python/6/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/6/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/6/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import random def add(a, d, i=0): """ Add d*10^i to the integer a represented as an array of decimal digits. """ assert 0 <= d < 10 n = len(a) if i+1 > n: a.extend([0]*(i+1-n)) n += i+1-n carry = d while i < len(a) and carry > 0: x = a[i] + carry a[i] = ...
19.735294
74
0.505961
597e16a649d6f7c976d6a516d93225c2920f6988
48,918
py
Python
Packs/AtlassianConfluenceCloud/Integrations/AtlassianConfluenceCloud/AtlassianConfluenceCloud.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/AtlassianConfluenceCloud/Integrations/AtlassianConfluenceCloud/AtlassianConfluenceCloud.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/AtlassianConfluenceCloud/Integrations/AtlassianConfluenceCloud/AtlassianConfluenceCloud.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import json import urllib.parse from typing import Callable, Dict, Tuple, List import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import requests # Disable insecure warnings requests.packages.urllib3.disable_war...
34.891583
120
0.649229
e996de69ecaf9b7f1c789c79003a8f3f3228ea26
1,106
py
Python
src/visitpy/pyavt/py_src/templates/simple_expression.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/pyavt/py_src/templates/simple_expression.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/pyavt/py_src/templates/simple_expression.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# # Template for a Simple Python Expression. # class PyExpr(SimplePythonExpression): def __init__(self): """ Constructor. """ SimplePythonExpression.__init__(self) # set to provide a name & description for your expression. self.name = "PyExpr" self.description...
30.722222
70
0.633816
c0c252386b8d94543482bd5b6d1933a3ff2de16a
331
py
Python
python/python/regex/fileutils.py
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
3
2019-07-06T02:31:44.000Z
2020-07-31T08:04:55.000Z
python/python/regex/fileutils.py
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
24
2020-07-31T07:21:58.000Z
2021-12-19T08:43:42.000Z
python/python/regex/fileutils.py
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
null
null
null
#coding=utf-8 ''' 文件操作示例代码 ''' import os from _codecs import encode, decode # from base64 import encode cfiles = os.listdir("c:/") # for cfile in cfiles: # print cfile + "=" + str(os.path.isfile(cfile)) result = os.popen("dir").read() # print result.decode("GBK").encode("utf-8") print encode(decode(result, "GBK"...
20.6875
52
0.661631
a834c5c610a6122c04c1450c887da133f7299d57
1,569
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/51_gridm.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/51_gridm.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/51_gridm.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' The first geometry manager of Tk had been pack. The algorithmic behaviour of pack is not easy to understand and it can be difficult to change an existing design. Grid was introduced in 1996 as an alternative to pack. Though grid is easier to learn and to use and produces nicer layouts, lots of developers keep using...
68.217391
452
0.767368
57173e724b6d293646ef3b1ea3e4d12cd9382d8d
1,126
py
Python
src/onegov/org/views/sitecollection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/sitecollection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/sitecollection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Private from onegov.org import _, OrgApp from onegov.org.models import SiteCollection @OrgApp.json(model=SiteCollection, permission=Private) def get_site_collection(self, request): """ Returns a list of internal links to be used by the redactor. See `<http://imperavi.com/reda...
29.631579
73
0.602131
93b50b998894399e71cd466b1312d633dd82c03f
88,367
py
Python
view/mainWindow.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
view/mainWindow.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
view/mainWindow.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'resources/gui.ui' # # Created by: PyQt5 UI code generator 5.15.3 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
66.093493
249
0.751174
f560725fbaf9b0dd1f661c3f5bf1dc22319873b8
1,656
py
Python
python/generator_tricks_for_systemprogrammer/run/foo/logsim.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/run/foo/logsim.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/run/foo/logsim.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys import re # from fieldmap import field_map logpats = r"(\S+) (\S+) (\S+) \[(.*?)\] \"(\S+) (\S+) (\S+)\" (\S+) (\S+)" logpat = re.compile(logpats) def apache_log(lines): groups = (logpat.match(line) for line in lines) tuples = (g.groups() for g in groups if g) colnames = ( ...
21.230769
75
0.498188
1952de2c54b3bb2fe71f52f940c1499847416fd1
3,162
py
Python
tests/api/test_place.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test_place.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test_place.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
def test_read(client, app, db, seeder, utils): user_id, admin_unit_id = seeder.setup_base() place_id = seeder.upsert_default_event_place(admin_unit_id) url = utils.get_url("api_v1_place", id=place_id) utils.get_ok(url) def test_put(client, seeder, utils, app): user_id, admin_unit_id = seeder.setu...
31.306931
74
0.697027
1997da9dc07a7d2f2b97aaada2693d3c554794db
8,622
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/tileGet.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/tileGet.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/tileGet.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
44.673575
118
0.596149
199ae9b418c8acff3ef2c3498106f196244be31a
1,269
py
Python
environement.py
15menou/srocket
7650d25ef03499ce38ae957cd6ce356541f6cf61
[ "Apache-2.0" ]
null
null
null
environement.py
15menou/srocket
7650d25ef03499ce38ae957cd6ce356541f6cf61
[ "Apache-2.0" ]
null
null
null
environement.py
15menou/srocket
7650d25ef03499ce38ae957cd6ce356541f6cf61
[ "Apache-2.0" ]
null
null
null
import numpy as np from data import Aspect class Atm: P_0 = 1.013 # hPa pressure_decrease_rate = 10000 # meters rho_0 = 1.125 # kg.m^-3 rho_decrease_rate = 10000 # meters color_0 = (124, 230, 255) color_infinity = (0, 38, 128) space_height = 100000 # meters @classmethod d...
25.897959
91
0.597321
479e195d874a959864b067dc8942e90d09d7c27b
779
py
Python
marsyas-vamp/marsyas/src/marsyas_python/basic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/basic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/basic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
# Proof-of-concept implementation of the monophonic transcription # system described by Bello, Monti and Sandler in ISMIR 2000. import marsyas import json msm = marsyas.MarSystemManager() # create a MarSystem from a recursive list specification # def create(net): # composite = msm.create("Gain/id") # will be ove...
24.34375
65
0.662388
d0ad9a69d0e72ef4c9e79bc9cb275e2d9330168f
3,327
py
Python
ytdownloader-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
ytdownloader-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
ytdownloader-main/run.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 os,sys,time,requests,json,random,string from time import sleep from bs4 import BeautifulSoup as bs from colorama import init, Fore, Back B = Fore.BLUE W = Fore.WHITE R = Fore.RED G = Fore.GREEN BL = Fore.BLACK url="https://www.yt-download.org/file/" def clear(): os.system("cls" if os.name == "nt" else "clear...
43.207792
134
0.609859
ef57a7a3355e48acf1318b8f85a40889ca9fe3eb
1,338
py
Python
script/category_generator.py
shangchihh/shangchihh.github.io
ccca4da2e999bc4ab9bf583811fd849fbe889505
[ "MIT" ]
null
null
null
script/category_generator.py
shangchihh/shangchihh.github.io
ccca4da2e999bc4ab9bf583811fd849fbe889505
[ "MIT" ]
283
2018-09-30T19:01:08.000Z
2019-01-28T06:05:07.000Z
script/category_generator.py
shangchihh/shangchihh.github.io
ccca4da2e999bc4ab9bf583811fd849fbe889505
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob import os post_dir = '_posts/' draft_dir = '_drafts/' category_dir = 'category/' filenames = glob.glob(post_dir + '*md') filenames = filenames + glob.glob(draft_dir + '*md') total_categories = [] for filename in filenames: f = open(filename, 'r') crawl = False for line ...
29.086957
134
0.610613
32320649f55135926ff5261c55d4d939f01d95e9
3,353
py
Python
SpamWa-master/spam.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SpamWa-master/spam.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SpamWa-master/spam.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Compile by Sanz # Youtube : TUTORIAL ANDROID # Github : https://github.com/B4N954N2-ID # Mau recode ya? Izin dulu slur :v import marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s!\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00e\x00\x00j\x01\x00d\x02\x00\x83\x01\x00d\x01\x00...
479
3,212
0.755443
08d1aa0d72cd508eade8eab9023e5e08192374d2
5,928
py
Python
src/test/tests/databases/silo_datatypes.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/silo_datatypes.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/databases/silo_datatypes.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: silo_datatypes.py # # Tests: All varieties of datatypes, centering, variable types, # meshtypes and force-single mode. # # Programmer: Mark C. Miller, Thu Jul 15 14:42:12 PDT 2010 # ...
40.054054
94
0.565789
720ed4be241034b1017a6d4f3f92af4d0eec6188
1,047
py
Python
python/coursera_python/MICHIGAN/code3/ass5_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/code3/ass5_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/code3/ass5_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import xml.etree.ElementTree as ET #data = ''' #<person> # <name>Chuck</name> # <phone type="intl"> # +1 734 303 4456 # </phone> # <email hide="yes"/> #</person>''' data = ''' <commentinfo> <note> This file contains the sample data for testing</note> <comments> <comment> ...
20.529412
68
0.499522
dfedcd43f389e25dfc1d938e3c8664da82fafc66
3,592
py
Python
agspiel/api/api.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2021-03-09T21:37:41.000Z
2021-03-09T21:37:41.000Z
agspiel/api/api.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
4
2020-11-13T19:34:58.000Z
2021-07-24T16:25:27.000Z
agspiel/api/api.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2020-08-24T14:38:18.000Z
2020-08-24T14:38:18.000Z
# Copyright (c) 2021 | KingKevin23 (@kingkevin023) from datetime import datetime, date, timedelta import json from typing import Union from requests import get from bs4 import BeautifulSoup from .ag import Ag from .data import Data from .markt import Markt from .historic_ag import HistorischeAg class AgNotFoundE...
41.287356
124
0.590479
dff1353440138ebb222c298b9696986bd6ac4d8e
182
py
Python
src/python/py-accepted/281A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/281A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/281A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 281A # Created on : 2019-01-14 22:07:58 def Main(): s = input() s = s[0].upper() + s[1:] print(s) if __name__ == '__main__': Main()
12.133333
36
0.5
a0612614e298649efca01a006338288ae966a968
3,256
py
Python
test/test_npu/test_network_ops/test_quantize_per_tensor.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_quantize_per_tensor.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_quantize_per_tensor.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...
46.514286
100
0.730651
cd7fa61037dcba7fa9e8987fadfccb4140ffef2e
332
py
Python
baccoapp/mysandwich/migrations/0009_remove_ingredient_price.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/migrations/0009_remove_ingredient_price.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/migrations/0009_remove_ingredient_price.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-06-22 13:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('mysandwich', '0008_auto_20190620_2221'), ] operations = [ migrations.RemoveField( model_name='ingredient', name='price', ...
18.444444
50
0.599398
f88292e7bbc4ffbba421f2b7754da042d683a7b1
1,211
py
Python
src/test/tests/simulation/mesh.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/mesh.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/simulation/mesh.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: mesh.py # # Tests: libsim - connecting to simulation and retrieving data from it. # mesh - 2D and 3D structured mesh. # # Programmer: Brad Whitlock # Date: Wed Dec 18 12:04:01...
22.849057
78
0.559042
6ef8d63739682cefe820a32bfedcb6b13c152e08
344
py
Python
IVTa/2014/MOSHKOV_Y_O/task_5_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/MOSHKOV_Y_O/task_5_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/MOSHKOV_Y_O/task_5_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 23 # Напишите программу, которая бы при запуске случайным образом отображала # имя одной из трех официальных жен Зевса. # Moshkov Y. O. # 17.03.2016 import random wifes = ["Метида", "Фемида", "Гера"] number = random.randint(0, 2) name = wifes[number] print(name, "- имя жены Зевса") input("\nНажм...
22.933333
74
0.712209
3e905ca69d9b1c0fff637df8ac83a2914a384e09
1,313
py
Python
Prototype/main prototype/test/TestScript_029.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/main prototype/test/TestScript_029.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/main prototype/test/TestScript_029.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
import unittest import Calculation from TabData import TabData from LayerData import LayerData class TestScript_029(unittest.TestCase): """ Temperaturverlaufs-Berechnung 2 Schichten analog manuellem TestScript_017 """ def setUp(self): self.layer_1 = LayerData() self.layer_1.r = 0.2...
26.26
69
0.604722
900f7401c6e60ec89f62eecca8138c699d627e44
372
py
Python
EType.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-03-28T11:50:45.000Z
2020-12-08T13:36:26.000Z
EType.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-04-20T11:12:59.000Z
2020-05-11T05:37:36.000Z
EType.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
null
null
null
from enum import Enum class EDataType(Enum): Undefined = 0 ScanAssets = 5 OrigPic = 10 CroppedPic = 11 SavePic = 12 ConvertFormat = 13 EncodeToFileList = 14 TargetCompressedByType = 15 Wavelet = 20 StWavelet = 21 FeatureVector = 30 LOOCV = 40 EuclidDistance = 45 KNN = 50 NIQE = 60 BIQAA = 61 CachedFil...
16.173913
28
0.717742
4b8321bf2b251c6dfb83fbf78d1996efc9d94240
639
py
Python
pythonbruteforce-master/bruteforcepy.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
pythonbruteforce-master/bruteforcepy.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
pythonbruteforce-master/bruteforcepy.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!usr/bin/python2 import string paswd = input("masukan password brute: \n") def Brute(paswd): print("[+]Memulai bruteforce...") charset = list(string.ascii_letters + string.digits + string.punctuation) result = "" x = 0 while x <= len(paswd)-1: for char in charset: pchr = paswd[x] if c...
24.576923
75
0.533646
d9a9d200b9dad27b19958afec4b0f2ac7abff5db
3,374
py
Python
backend/blog-app-backend/blog_app_backend.py
hdwinkel/winkels-blog-app
7f8cce5c5ae51a6618116d2ee4da474c790ecb2e
[ "MIT" ]
null
null
null
backend/blog-app-backend/blog_app_backend.py
hdwinkel/winkels-blog-app
7f8cce5c5ae51a6618116d2ee4da474c790ecb2e
[ "MIT" ]
13
2020-04-12T18:56:27.000Z
2022-02-26T10:50:49.000Z
backend/blog-app-backend/blog_app_backend.py
hdwinkel/winkels-blog-app
7f8cce5c5ae51a6618116d2ee4da474c790ecb2e
[ "MIT" ]
null
null
null
import flask import os, io import base64 import json from flask import request from flask_cors import CORS, cross_origin from datetime import datetime import uuid # a Blog structure: # blogs = ["<blog>","<blog>"] # tags = [] # images = [] # blog = {"Name": "<blogname>", "Creator": "<blog-creator>", "Date": "<creation-...
27.884298
175
0.522525
8a62d6ff3e14371b4993203eb2df90f6b5891e77
15,181
py
Python
AustinBot/all_cogs/rpgFunctions/database.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/rpgFunctions/database.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/rpgFunctions/database.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from .. import sql def initialise_db(): sql('rpg', 'create table players (id integer, guild_id integer, current_character text)') sql('rpg', '''create table professions ( name text ,primary_stat text ,secondary_stat text ,base_str integer ,base_dex integer ,base_int integer ,base_con integer ...
88.261628
1,668
0.629603
6ad204c4354f002c73f62085a8e41c2ddeab8482
3,984
py
Python
ryu/app/App/rest_topology.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/App/rest_topology.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/App/rest_topology.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.92562
75
0.663655
0ad92ef75ec45a83b217259764b00ec2d58c2ce0
7,122
py
Python
python/import_hybrid_status_from_journaltocs.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/import_hybrid_status_from_journaltocs.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/import_hybrid_status_from_journaltocs.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import re from time import sleep import socket from urllib.error import HTTPError, URLError from urllib.request import urlopen, Request import openapc_toolkit as oat JTOC_METADATA_RES = { "jtoc_id": re.compile("journaltocID\:\s*(?P<jtoc_id>\d+)"), ...
39.566667
117
0.604465
7c83c0134d4bb1a89e140e0f59effdada643fc47
155
py
Python
Packs/CommonScripts/Scripts/DemistoVersion/DemistoVersion.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/DemistoVersion/DemistoVersion.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/DemistoVersion/DemistoVersion.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * version = get_demisto_version() return_outputs(tableToMarkdown("Demisto Version", version), {"DemistoVersion": version})
31
88
0.806452
7ca0175fd4da8a379e0289d85e44c12fcba824a7
5,297
py
Python
TRACK-IP-main/ip-Generator-enc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
TRACK-IP-main/ip-Generator-enc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
TRACK-IP-main/ip-Generator-enc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Code BY : MR.1557 # di buat : 01/09/2021 # enc By : Mr.1557 # mau ricod luh mikir ajing bikin kaya gini susah # salam dari aing Aldi bachtiar rifai import base64 exec(base64.b16decode("23202D2A2D20636F64696E673A207574662D38202D2A0A23212F62696E2F707974686F6E330A696D706F72742072657175657374730A696D706F7274206A736F6...
481.545455
5,128
0.98905
6b484f1842f50ec5ed80a9035a044308c7fbff7d
9,542
py
Python
paralogon_graph.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
paralogon_graph.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
paralogon_graph.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Scaffolds graph and find most probable synteny assignment # Yue Hao # 02/2021 # python paralogon_graph.py nodefile.txt edgefile.txt import sys import networkx as nx #version 2.5 #import matplotlib.pyplot as plt from parse_ortho_gene_tree import get_species def main(): # Build graph Nodes = rea...
27.031161
160
0.676588
86518f2cf93351236a9b0b96015c5f0072dcf614
8,607
py
Python
python-bildungslogin/src/univention/bildungslogin/media_import/__init__.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/src/univention/bildungslogin/media_import/__init__.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/src/univention/bildungslogin/media_import/__init__.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2021 Univention GmbH # # http://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as published by the Free Software Foundation. # # Binary versions o...
37.421739
115
0.609969
86bfc0dbef0853049225343af70c97ec1c4ad85c
5,985
py
Python
python/oneflow/compatible/single_client/test/ops/test_unsorted_segment_sum.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_unsorted_segment_sum.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_unsorted_segment_sum.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.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...
38.121019
83
0.625564
8125344c7ac97ec6a262dc6b59dd4326fa3b4e0e
851
py
Python
python/gdal_cookbook/cookbook_geometry/create_polygon_with_holes.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_polygon_with_holes.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_polygon_with_holes.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from osgeo import ogr # Create outer ring outRing = ogr.Geometry(ogr.wkbLinearRing) outRing.AddPoint(1154115.274565847, 686419.4442701361) outRing.AddPoint(1154115.274565847, 653118.2574374934) outRing.AddPoint(1165678.1866605144, 653118.2574374934) outRing.AddPoint(1165678.1866605144, 686419.4442701361) outRing.AddPo...
35.458333
57
0.836663
d4991017cfd24f765ba336f3d50d1f79e7e07928
431
pyde
Python
sketches/eyes/eyes.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/eyes/eyes.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/eyes/eyes.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
def setup(): size(300, 300) strokeWeight(3) def draw(): background(139, 134, 130) face() eye(110, height/2) eye(190, height/2) def face(): fill(244, 244, 0) ellipse(width/2, height/2, 160, 160) def eye(x, y): fill(255) ellipse(x, y, 60, 60) # Die Pupillen folgen der Maus ...
18.73913
41
0.547564
d4b1db8652b3086f1ff62e1dc5625981c87fe14a
35,916
py
Python
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/test_data/feed_data.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/test_data/feed_data.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/test_data/feed_data.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
INDICATORS_DATA = [ {"created": "2019-07-30T09:29:07.724Z", "id": "indicator--0025039e-f0b5-4ad2-aaab-5374fe3734be", "labels": ["malicious-activity"], "modified": "2020-05-12T13:02:30.000000Z", "name": "c1ec28bc82500bd70f95edcbdf9306746198bbc04a09793ca69bb87f2abdb839", "pattern": "[file:hashes.'SHA-2...
60.771574
134
0.510441
d4b3c9169c6f1733bba66c2b6ff789205fdcf2ae
2,625
py
Python
official/cv/nima/src/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/nima/src/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/nima/src/metric.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.971831
101
0.648
0793d83f068cf120a4ce945f0c9caa85ed61ca25
843
py
Python
average.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
average.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
average.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
""" You have a record of students. Each record contains the student's name, and their percent marks in Maths, Physics and Chemistry. The marks can be floating values. The user enters some integer followed by the names and marks for students. You are required to save the record in a dictionary data type. The user then e...
44.368421
432
0.671412
ed196aaf55790b72e7f0c47cfaebd61ca2b8d290
11,374
py
Python
backend/app/crud/crud_user_solution.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/crud/crud_user_solution.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/crud/crud_user_solution.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import List, Tuple from sqlalchemy import and_, func from sqlalchemy.orm import Session from app.crud.base import CRUDBase from app.models.user_solution import UserSolution from app.schemas.user_solution import UserSolution as SchemaSolution from app.schemas.user_solution import UserSolutionCreate...
33.85119
89
0.579743
132550b69a8569746644fbdc0dcf26b3e6614719
3,716
py
Python
checklisten/models.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
checklisten/models.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
checklisten/models.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.db import models from simple_history.models import HistoricalRecords from mitglieder.models import Mitglied, MitgliedAmt from aemter.models import Recht class Checkliste(models.Model): """ Represents a checklist. * mitglied: The Mitglied the checklist was created for. Must not be null. ...
43.209302
129
0.720667
138c0c0fd28c44d2f31a8bc7165022e1ca596477
299
py
Python
Python/UberVan.py
NSpooky/CursoPOO
4ca19221b1a596e43a8557140f1a640e12be2ae4
[ "MIT" ]
null
null
null
Python/UberVan.py
NSpooky/CursoPOO
4ca19221b1a596e43a8557140f1a640e12be2ae4
[ "MIT" ]
null
null
null
Python/UberVan.py
NSpooky/CursoPOO
4ca19221b1a596e43a8557140f1a640e12be2ae4
[ "MIT" ]
null
null
null
from car import Car class UberVan(Car): typeCarAccepte = [] seatsMaterial = [] def __init__(self, license, driver, typeCarAccepte, seatsMaterial): super().__init__(license, driver) self.typeCarAccepte = typeCarAccepte self.seatsMaterial = seatsMaterial
29.9
72
0.672241
13b4585a5def848bc11707336ec76ef58ff19154
3,884
py
Python
test/onnx/test_pytorch_common.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
5
2018-04-24T13:41:12.000Z
2019-07-09T07:32:09.000Z
test/onnx/test_pytorch_common.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
test/onnx/test_pytorch_common.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
# Owner(s): ["module: onnx"] import functools import os import unittest import sys import torch import torch.autograd.function as function pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(-1, pytorch_test_dir) from torch.testing._internal.common_utils import * # noqa: ...
32.099174
89
0.687951
13e81cfadc3728bd32f38494dd0d253e7ada38c0
582
py
Python
addition_module/face_mask_adding/FMA-3D/add_mask_one.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/face_mask_adding/FMA-3D/add_mask_one.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/face_mask_adding/FMA-3D/add_mask_one.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: Yinglu Liu, Jun Wang @date: 20201012 @contact: jun21wangustc@gmail.com """ from face_masker import FaceMasker if __name__ == '__main__': is_aug = False image_path = 'Data/test-data/test1.jpg' face_lms_file = 'Data/test-data/test1_landmark.txt' template_name = '7.png' masked_face_path ...
30.631579
83
0.723368
b9559a7f85fc61bf3bb4e18376df38c9bc3d446e
6,708
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/packaging/language/bundler.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/packaging/language/bundler.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/packaging/language/bundler.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Tim Hoiberg <tim.hoiberg@gmail.com> # 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.54
106
0.661747
b971dcac5fd9655c9429c5bbac4bd27639ecddee
18,121
py
Python
src/onegov/fsi/ims_import.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/ims_import.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/ims_import.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Dateien: - Kurse: Die Liste der Kurse - Personen -> importiert aus ldap - Teilnehmer: repräsentiert die Anmeldungen mit referenz zu Personen und Durchführungen - Ausführungen: die Listen der Durchführungen. Verlinkungen - Teilnehmer.TEILNEHMER_ID is ForeignKey für Personen.OBJ_ID Im folgenden eine Beschreibu...
31.903169
79
0.631974
b9bab3ab2a0bbe7913bfddd967286bec7864e139
789
py
Python
glossary_generator.py
thophan92/thophan92.github.io
a1c1e81e5ea34d55ebd50a676695823e0f3f4d7f
[ "MIT" ]
1
2019-04-11T08:02:19.000Z
2019-04-11T08:02:19.000Z
glossary_generator.py
thophan92/thophan92.github.io
a1c1e81e5ea34d55ebd50a676695823e0f3f4d7f
[ "MIT" ]
null
null
null
glossary_generator.py
thophan92/thophan92.github.io
a1c1e81e5ea34d55ebd50a676695823e0f3f4d7f
[ "MIT" ]
null
null
null
import pandas as pd input_path = "assets/data/glossary.xls" output_path = "_posts/2019-06-25-glossary-for-nlp.md" header = [ '---', 'layout: post', 'title: "glossary"', 'comments: true', 'description: "glossary for nlp"', 'showtags: true', 'tags: nlp glossary', '---' ] space = " " ...
21.916667
53
0.619772
dbf3373dfe57bafb054426ad6c67ab31930533c6
67
py
Python
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P05_CharacterSequence.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P05_CharacterSequence.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P05_CharacterSequence.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
text = input() for each in range(len(text)): print(text[each])
16.75
29
0.641791
16583ada8c136f8ad41a4ab812a2681eac8c54bc
735
py
Python
Beginner/03. Python/CaesarCipher.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-04T05:41:43.000Z
2021-10-04T05:41:43.000Z
Beginner/03. Python/CaesarCipher.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/CaesarCipher.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
import string alphabet = "abcdefghijklmnopqrstuvwxyz" def decryptCaesar(string, key): decryptedString = "" for i in string: position = alphabet.find(i) newPosition = (position - key) % 26 decryptedString += alphabet[newPosition] return decryptedString def encryptCaesar(stri...
21
48
0.670748
bce6e931cd1289ef0200b956e364d366a21c57ca
3,262
py
Python
Imagenes/vdWColumn/Fuerza_componentes/Fuerza_com.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumn/Fuerza_componentes/Fuerza_com.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumn/Fuerza_componentes/Fuerza_com.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import os import argparse import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='Resolución de vdWColumn') parser.add_argument('-n', help='Rango de casos', type = int, default = 0) ...
24.712121
178
0.550889
911538a112770b20a82d0f9d4cdaca5f91cc83f6
4,914
py
Python
21-fs-ias-lec/07-BackEnd/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/07-BackEnd/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/07-BackEnd/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import random import generateDirectories from Person import Person from generateJson import generate_json from Feed import Feed import sys # add the lib to the module folder sys.path.append("lib") import os import crypto import feed def main(argv): # generates dummy feeds, later not used anymore -> feeds should b...
38.390625
122
0.637363
91191b09691246791c9d61e307acba5f3705772e
4,708
py
Python
models/model_factory.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
models/model_factory.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
models/model_factory.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
import torch import os import torch.nn as nn from copy import copy """ When saving a general checkpoint, to be used for either inference or resuming training, you must save more than just the model’s state_dict. It is important to also save the optimizer’s state_dict, as this contains buffers and parameters t...
37.664
113
0.683942
fc16e2d4774a6520083a12e45cc3fd863b643613
3,661
py
Python
faas/vmware-dispatch/examples/python3/getvms.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
625
2017-12-19T18:54:04.000Z
2020-11-12T01:46:00.000Z
faas/vmware-dispatch/examples/python3/getvms.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
407
2017-12-21T18:34:10.000Z
2020-07-15T18:06:15.000Z
faas/vmware-dispatch/examples/python3/getvms.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
70
2017-12-20T01:44:16.000Z
2020-04-05T15:03:03.000Z
#!/usr/bin/env python ####################################################################### ## Copyright (c) 2017 VMware, Inc. All Rights Reserved. ## SPDX-License-Identifier: Apache-2.0 ####################################################################### """ Sample function to list virtual machines in vSphere in...
27.946565
95
0.594646
5d8f5b2d6701123ccdbff0c7b402bb2b53b2e597
13,261
py
Python
Packs/CortexDataLake/Integrations/CortexDataLake/CortexDataLake_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CortexDataLake/Integrations/CortexDataLake/CortexDataLake_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CortexDataLake/Integrations/CortexDataLake/CortexDataLake_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import json import re from datetime import datetime, timedelta from CommonServerPython import parse_date_range, DemistoException from CortexDataLake import FIRST_FAILURE_TIME_CONST, LAST_FAILURE_TIME_CONST HUMAN_READABLE_TIME_FROM_EPOCH_TIME_TEST_CASES = [(1582210145000000, False, '2020-02-20T14:49:05'),...
48.047101
120
0.632833
f8e3329fc47901bb460b2fd7c0b9fd3f78a80129
3,285
py
Python
plugins/tff_backend/api/rogerthat/documents.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/api/rogerthat/documents.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/api/rogerthat/documents.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
54.75
160
0.663927
f8f16b2d3534f99cf336f14acb039a4da56a830b
535
py
Python
Algorithms/Sort_Algorithms/Insertion_Sort/insertion-sort.py
hussamEL-Hwary/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
18
2016-11-01T04:00:36.000Z
2021-09-13T14:26:35.000Z
Algorithms/Sort_Algorithms/Insertion_Sort/insertion-sort.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
60
2016-10-11T14:50:47.000Z
2016-10-31T11:05:01.000Z
Algorithms/Sort_Algorithms/Insertion_Sort/insertion-sort.py
JEERU/DS-Algo-Handbook
86a97d586a4ca8b17168c0a9f5a9f43f856eba58
[ "MIT" ]
87
2016-09-08T05:04:50.000Z
2016-10-30T19:19:53.000Z
#!/usr/bin/env python3 # Written by @daydreamer at Oct 12, 2016. Trying to do same behaviour as the C code # Except for the input part sz = int(input('enter the number of elements to input:\n')) ar = list(map(int, input('enter the elements:\n').split(' '))) print("array before sorting:") for item in ar: print(ite...
21.4
83
0.607477