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
890a90e0c05cd385efdaec34d63a062acea51a0d
2,581
py
Python
scripte/firstScan.py
lauliger/IT-Sicherheit
352446cbef36464aed62c8c86a8b1a0c1766e04d
[ "MIT" ]
null
null
null
scripte/firstScan.py
lauliger/IT-Sicherheit
352446cbef36464aed62c8c86a8b1a0c1766e04d
[ "MIT" ]
null
null
null
scripte/firstScan.py
lauliger/IT-Sicherheit
352446cbef36464aed62c8c86a8b1a0c1766e04d
[ "MIT" ]
null
null
null
import os import logging import sys import json logging.basicConfig(level=logging.DEBUG) from rekall import session from rekall import plugins class cl: PINK = '\033[95m' LBLUE = '\033[94m' BLUE = '\033[92m' YELLOW = '\033[93m' ORANGE = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UND...
28.054348
149
0.630763
a43855b2c26d41f44ad1a3e6ddb9c0d0330f5b8c
18,348
py
Python
file-management/multimedia/multimedia_file.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
file-management/multimedia/multimedia_file.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
file-management/multimedia/multimedia_file.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
from typing import Tuple, List import re import datetime import os import file import piexif class MultimediaFile(file.File): def __init__(self, file_path): super().__init__(file_path) def get_prefix(self) -> str: raise NotImplementedError def _get_hachoir_metadata(self)...
50.545455
237
0.633203
24ec8e56e57b799a68f801afb2079af5144fd227
102
py
Python
SLIX/__init__.py
oliviaguest/SLIX
2f19382c650267d0a76456c796cd3e0afe04d880
[ "MIT" ]
null
null
null
SLIX/__init__.py
oliviaguest/SLIX
2f19382c650267d0a76456c796cd3e0afe04d880
[ "MIT" ]
null
null
null
SLIX/__init__.py
oliviaguest/SLIX
2f19382c650267d0a76456c796cd3e0afe04d880
[ "MIT" ]
null
null
null
"""Module docstring text""" __version__ = 'v1.2.1' from . import toolbox from . import visualization
17
27
0.72549
3b67e1ea5b2ffa3f12945b39b8e06222762ca704
3,810
py
Python
research/cv/SRGAN/src/model/generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SRGAN/src/model/generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SRGAN/src/model/generator.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.634615
118
0.644094
d92e18876de66f0bdc0bc4b0cd6090521d8cdbaa
92
py
Python
2014/07/quiz-state-fair-food/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/07/quiz-state-fair-food/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/07/quiz-state-fair-food/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '0Ala-N4Y4VPXIdFhpc0Y0Z1Q3c1Iwd2Y1LWR5eVptUWc'
23
68
0.836957
795c3be8a518727fe8cfc1afd456e15053e7eacb
984
py
Python
ds/kb/code/neural-network-from-scratch.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/kb/code/neural-network-from-scratch.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/kb/code/neural-network-from-scratch.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import numpy as np def neural_network(X, y): W1 = np.random.rand(2, 4) W2 = np.random.rand(4, 1) output = np.zeros((4,1)) for epochs in range(10000): layer = 1 / (1 + np.exp(-np.dot(X, W1))) output = 1 / (1 + np.exp(-np.dot(layer, W2))) error = (y - output) W2 += np.d...
32.8
75
0.497967
ebc4ceeb2de3e8855c13f0aeb93fc20b043d1971
214
py
Python
chapter_eleven/keep_it_simple_with_piping/pure_python.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
21
2021-09-10T12:46:26.000Z
2022-03-23T02:50:39.000Z
chapter_eleven/keep_it_simple_with_piping/pure_python.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
null
null
null
chapter_eleven/keep_it_simple_with_piping/pure_python.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
6
2021-09-02T08:32:37.000Z
2022-03-17T21:15:25.000Z
def recur_fib(n: int) -> int: if n <= 2: return 1 else: return (recur_fib(n - 1) + recur_fib(n - 2)) for i in [5, 6, 7, 8, 9, 10, 15, 20, 25, 30]: print(recur_fib(i))
17.833333
45
0.457944
d6673ec10440bc9a40c5ced68cf126fbc94c4365
632
py
Python
python_gui_tkinter/KALU/GARBAGE/mail/textfileTomail.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE/mail/textfileTomail.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE/mail/textfileTomail.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import smtplib TO = 'jimutbahanpal@yahoo.com'#'recipient@mailservice.com' SUBJECT = 'TEST MAIL' TEXT = 'Here is a message from python.' # Gmail Sign In gmail_sender = ''#'sender@gmail.com' gmail_passwd = ''#'password' server = smtplib.SMTP('smtp.gmail.com', 587) server.ehlo() server.starttls() server.login(gmail_se...
21.793103
58
0.612342
245ae3cec9b2709bf632d78e39fd3f30b81652cc
761
py
Python
lianjia/lianjia_crawler.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
lianjia/lianjia_crawler.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
lianjia/lianjia_crawler.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
from lianjia_crawler_context import LianJiaCrawlerContext from crawlerhttp import httputil import lianjia_parser def crawler_run(): count = 0 # 产生所有列表页的url lianjiaCrawlerContext = LianJiaCrawlerContext() lianjiaCrawlerContext.generatePageUrl(100) for page_url in lianjiaCrawlerContext.getUrlHolder...
28.185185
83
0.746386
037c351354a132e668f213569c7f8b09e7979b68
1,016
py
Python
Week 6/storing_values_in_CSV.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
Week 6/storing_values_in_CSV.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
Week 6/storing_values_in_CSV.py
mayankpadhi/AI_Codes
8631f18cd9d1bba9ffc142b1ede0197b512157e2
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import csv list=[] mean =[0,0] cov=[[1 ,0.7 ],[0.7, 1]] x, y = np.random.multivariate_normal(mean, cov,40).T list=[] print(x,y) for i in range(0,40): list.append([x[i],y[i]]) print(list) mean =[4,4] cov=[[1 ,0.25 ],[0.25, 0.5]] x1, y1 = np.random.multivariate_n...
18.142857
59
0.609252
ae30e2e784e5551b530b92fd76dbd9531fab9e16
192
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.10-Factorial.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.10-Factorial.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.10-Factorial.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def fact(n): f = 1 for i in range(1, n+1): f *= i return f print(fact(5)) def fact_re(n): if n == 1: return 1 return fact_re(n-1) * n print(fact_re(5))
12
27
0.489583
4e6db83b1a8d9ab3b9cb575737c6c2e031259c4c
7,261
py
Python
Worker/main.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Worker/main.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Worker/main.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
import importlib import json import logging import queue import os import shutil from zipfile import ZipFile import numpy as np import tensorflow as tf from RestAPI import RestAPI from messageIO.CommandIO import CommandIO class Worker: def __init__(self): logging.basicConfig(format='%(asctime)s %(messag...
41.971098
123
0.627462
14e5e0468a2030a25a58399955fa58e375118d28
1,341
py
Python
Butter.py
manpreet-singh/DataCollectionPackage
996546b9062c969c2af3a60b35445077f70641c2
[ "MIT" ]
null
null
null
Butter.py
manpreet-singh/DataCollectionPackage
996546b9062c969c2af3a60b35445077f70641c2
[ "MIT" ]
null
null
null
Butter.py
manpreet-singh/DataCollectionPackage
996546b9062c969c2af3a60b35445077f70641c2
[ "MIT" ]
null
null
null
import numpy as np from scipy.signal import butter, lfilter, freqz import matplotlib.pyplot as plt def butter_lowpass(cutoff, fs, order=5): nyq = 0.5 * fs normal_cutoff = cutoff / nyq b, a = butter(order, normal_cutoff, btype='low', analog=False) return b, a def butter_lowpass_filter(data, cutoff, f...
27.367347
67
0.686055
09541c85134b22a7e4a6930217288ca35d51efbd
591
py
Python
src/onegov/winterthur/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.winterthur.collections.address import AddressCollection from onegov.winterthur.collections.address import AddressSubsetCollection from onegov.winterthur.collections.mission_report \ import MissionReportCollection from onegov.winterthur.collections.mission_report \ import MissionReportFileCollectio...
29.55
73
0.825719
118c493578a0c6a74d66a72d6a4c0ab10886841f
256
py
Python
prak_1/present.py
Paeti/krypto
f71b794a73170aeae4aa17712eea199a8e46afc0
[ "MIT" ]
null
null
null
prak_1/present.py
Paeti/krypto
f71b794a73170aeae4aa17712eea199a8e46afc0
[ "MIT" ]
null
null
null
prak_1/present.py
Paeti/krypto
f71b794a73170aeae4aa17712eea199a8e46afc0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 __author__ = "Patrick Reckeweg" __copyright__ = "" import draw draw.output_examples() #draw.draw_experiment() draw.output_examples_equ(10) print("__________________________________________") draw.output_given_examples_equ()
21.333333
51
0.792969
09e701fa9410b39c3e6b6282d6aae0c8d7d88657
724
py
Python
CSVtoDatabase/db_builder.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
CSVtoDatabase/db_builder.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
CSVtoDatabase/db_builder.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ Khyber Sen SoftDev1 pd7 HW9 -- No Treble 2017-10-15 """ from __future__ import print_function __author__ = 'Khyber Sen' __date__ = '2017-10-15' import os from csv2db import Database if __name__ == '__main__': with Database('test.db', debug=True) as db: # db.add_csv('students.csv'...
23.354839
78
0.598066
112f6dc7d3e771d010fa47081ba35267a0168b07
1,830
py
Python
Testing/test_utilities/check_signal_value2.py
cianciosa/V3FIT
18b1f4c0d596b47fbbd97508905c60e842801950
[ "MIT" ]
null
null
null
Testing/test_utilities/check_signal_value2.py
cianciosa/V3FIT
18b1f4c0d596b47fbbd97508905c60e842801950
[ "MIT" ]
null
null
null
Testing/test_utilities/check_signal_value2.py
cianciosa/V3FIT
18b1f4c0d596b47fbbd97508905c60e842801950
[ "MIT" ]
null
null
null
#!/usr/bin/python from optparse import OptionParser import sys parser = OptionParser() parser.add_option("-f", "--file", dest="filename", help="File name to test.", metavar="FILE") parser.add_option("-S", "--s_name1", dest="s_name1", help="s_name to search for", metavar="S_NAME1") parser.add_option("-s", "--s_name2",...
34.528302
170
0.690164
fedcca50d9d808336922822fb768eb41e8279c6c
1,054
py
Python
server/plugins/icloud_shared_album/plugin.py
mattlokes/eink_frame
99b2f57c549bef1c219e12a9a8efe7473748a003
[ "MIT" ]
null
null
null
server/plugins/icloud_shared_album/plugin.py
mattlokes/eink_frame
99b2f57c549bef1c219e12a9a8efe7473748a003
[ "MIT" ]
null
null
null
server/plugins/icloud_shared_album/plugin.py
mattlokes/eink_frame
99b2f57c549bef1c219e12a9a8efe7473748a003
[ "MIT" ]
null
null
null
from plugins.base import PluginPhotoSource, PluginException from .icloud_shared_album import IcloudSharedAlbum class PluginIcloudSharedAlbum(PluginPhotoSource): def __init__(self, opts={}): super().__init__(opts) if "token" not in self.__opts__: raise PluginException(f"'{self.__class_...
39.037037
99
0.626186
28de353edc40e50baffe0ddd2ab01d4759fc800e
1,603
py
Python
sentinel/cosmos/calls.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
342
2017-08-21T20:12:56.000Z
2022-03-19T17:58:25.000Z
sentinel/cosmos/calls.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
57
2017-11-13T11:16:47.000Z
2022-03-01T13:54:31.000Z
vpn-node-cosmos/sentinel/cosmos/calls.py
smtcrms/sentinel
ff65bc9200f6c940aa184c0ec0872fdcfef25363
[ "MIT" ]
72
2017-11-23T05:13:24.000Z
2022-02-25T14:18:33.000Z
# coding=utf-8 import json from .routes import routes from ..config import COSMOS_URL from ..utils import fetch def call(name, data): url = COSMOS_URL + routes[name]['route'] method = routes[name]['method'] if name == 'verify_hash': url += '/{}'.format(data['hash']) elif name == 'get_balance...
31.431373
72
0.468497
e905934fd78a7d6aa2a94ecfe6ab678ab990761b
717
py
Python
ressources/weatherData.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
ressources/weatherData.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
ressources/weatherData.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
{ u'visibility': 10000, u'main': { u'temp': 3, u'pressure': 1007, u'temp_max': 3, u'temp_min': 3, u'humidity': 74 }, u'clouds': {u'all': 40}, u'sys': { u'country': u'DE', u'sunrise': 1487916142, u'type': 1, u'message': 0...
23.129032
94
0.460251
e91a433792554c5adbf0eae10ac5e8f31f502fd5
567
py
Python
exercises/en/exc_02_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/exc_02_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/exc_02_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("en") # Import the Doc and Span classes from spacy.____ import ____, ____ words = ["I", "like", "David", "Bowie"] spaces = [True, True, True, False] # Create a doc from the words and spaces doc = ____(____, ____, ____) print(doc.text) # Create a span for "David Bowie" from the doc an...
23.625
79
0.698413
c92d93e65460f92765d08fc0d46982fd55b9d38d
3,402
py
Python
.circleci/download_reference_lhes.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/download_reference_lhes.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/download_reference_lhes.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
#!/usr/bin/env python """ This script updates the reference LHE files in reference by downloading the LHE files created by circleci in a generator_reference job. This is only needed if the files are different, i.e. if the reference_check job fails. If the build url is https://app.circleci.com/pipelines/github/<A>/JH...
42
136
0.757496
a348aa73123aaffb219e2673bf1606e8652cc0b2
2,292
py
Python
marsyas-vamp/marsyas/scripts/createMarSystem.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/createMarSystem.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/createMarSystem.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Script to generate skeleton files for a new MarSystem. Usage: createMarSystem.py NameOfNewMarSystem This will create the files NameOfNewMarSystem.h and NameOfNewMarSystem.cpp if the current directory. ''' import os import sys def create_from_template(template_file, template_name, tar...
30.972973
86
0.653578
6ebb32a44d7b5d701a231559bfceed42fe1bf328
4,041
py
Python
nameFinder/nameFinder.py
beeedy/LOL
95ed815593a25e7e86d106ddf20e2ce054709ad1
[ "MIT" ]
null
null
null
nameFinder/nameFinder.py
beeedy/LOL
95ed815593a25e7e86d106ddf20e2ce054709ad1
[ "MIT" ]
null
null
null
nameFinder/nameFinder.py
beeedy/LOL
95ed815593a25e7e86d106ddf20e2ce054709ad1
[ "MIT" ]
null
null
null
import urllib2 import time available_chars = " abcdefghijklmnopqrstuvwxyz0123456789" save_file = "names2.txt" def is_name_avail(name): # make names with spaces URL compliant by replacing spaces with their hex value %20 name = name.replace(' ', '%20') # this is a URL that was gotten by reverse engineering a name ch...
53.88
134
0.737936
2811c2e5481be2ba8fdf06d56858e754b5501c04
1,543
py
Python
Technical_Indicator_ATR_BB.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
Technical_Indicator_ATR_BB.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
Technical_Indicator_ATR_BB.py
sonomarina/Stock-sentiment-analysis
2b3ddd88c73916ea06d39ef5d455f9220c69fdf7
[ "Unlicense" ]
null
null
null
# ============================================================================= # Import OHLCV data and calculate ATR and Bollinger Band # Author : Mayank Rasu # Please report bug/issues in the Q&A section # ============================================================================= # Import necesary librari...
36.738095
104
0.552819
2817956d9214b52e4a101c842aa169c7f129dfa7
2,126
py
Python
gemtown/modelers/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/modelers/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/modelers/admin.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models @admin.register(models.Modeler) class ModelerAdmin(admin.ModelAdmin): fields = [ 'nickname', 'description', 'gender', 'age_range', 'career', 'job', 'entertainment', 'style', 'height', ...
17.865546
46
0.447789
2843895aa162a756c3f432a713652985958d86cc
1,672
py
Python
src/visitpy/examples/lines.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/examples/lines.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/examples/lines.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # Test script that changes animates an isosurface by changing its iso-value. # # Modifications: # Hank Childs, Tue May 7 09:27:44 PDT 2002 # Updated for 0.9.9. Made it use a file in the /data directory. # Updated view setting ro...
30.4
102
0.590311
954abf2e85d8864659d0efcc455c71266c2d1b12
1,435
py
Python
src/onegov/event/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/event/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/event/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.core.orm.types import JSON from onegov.core.upgrade import upgrade_task from onegov.event import EventCollection from sqlalchemy import Column @upgrade_tas...
32.613636
74
0.711498
95bbe4316b905166b0896a20edba7f25c2db34dd
2,155
py
Python
volcontrol.py
mayur200/hacktoberfest2021
5f141fe6dc90916d65bef17a66f0db05649c41ef
[ "MIT" ]
null
null
null
volcontrol.py
mayur200/hacktoberfest2021
5f141fe6dc90916d65bef17a66f0db05649c41ef
[ "MIT" ]
null
null
null
volcontrol.py
mayur200/hacktoberfest2021
5f141fe6dc90916d65bef17a66f0db05649c41ef
[ "MIT" ]
null
null
null
import cv2 import mediapipe as mp class handDetector(): def __init__(self, mode=False, maxHands=2, detectionConfi=0.3, trackConfi=0.3): self.mode = mode self.maxHands = maxHands self.detectionConfi = detectionConfi self.trackConfi = trackConfi self.hand_sol = mp.solutions.h...
34.758065
97
0.565661
251dcda5db3f2ef8498add98c7f9953ddebffcf4
3,174
py
Python
app/db/dbMySQL.py
jorgearojas25/FlaskLogin
24dd5353643a46bbb34ed1097c11d84c203f8f38
[ "MIT" ]
null
null
null
app/db/dbMySQL.py
jorgearojas25/FlaskLogin
24dd5353643a46bbb34ed1097c11d84c203f8f38
[ "MIT" ]
null
null
null
app/db/dbMySQL.py
jorgearojas25/FlaskLogin
24dd5353643a46bbb34ed1097c11d84c203f8f38
[ "MIT" ]
null
null
null
import mysql.connector from app.models import User,Token import datetime class ConnectionMySQL: def connect(self): config = { 'host' :'localhost', 'user' :'root', 'password' : 'rootmysql2019', 'database' : 'db_login', 'port' : "3306" ...
24.604651
93
0.557971
c2da2bfd4b2f4035647832ce0e0e210831941d44
2,326
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/num_rec.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/num_rec.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/num_rec.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 4 17:26:10 2019 @author: jone """ import cv2 import numpy as np import glob import sys import os FNAME = 'digits.npz' def machineLearning(): img = cv2.imread('img/digits.png') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cells = [np.hsplit(row,100) fo...
27.046512
76
0.580396
6c6bf3d1614aa909b55567e04acacd735e7e9b40
1,373
py
Python
src/corpus/txtdump.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/corpus/txtdump.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/corpus/txtdump.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from os import walk, path, stat, makedirs from subprocess import call from extras import Logger # The text dumping class class TxtDump: # Constructor for the text dumping class def __init__(self, in_dir, out_dir...
25.425926
105
0.615441
667be062fcd24fb569b54f0aa5f6e84de69acf2f
3,450
py
Python
python/en/_pandas/Pandas for Everyone/p4e-3_intro2plotting-seaborn.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_pandas/Pandas for Everyone/p4e-3_intro2plotting-seaborn.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_pandas/Pandas for Everyone/p4e-3_intro2plotting-seaborn.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ p4e-3_intro2plotting-seaborn.py pandas_for_everyone 3. Introduction to Plotting 3.1. Introduction 3.2. Matplotlib 3.3. Statistical Graphics Using matplotlib 3.3.1. Univariate 3.3.1.1. Histograms 3.3.2. Bivariate 3.3.2.1. Scatterplo...
27.822581
79
0.568116
dd6d3e0778da8eede6b7404069c6087ff1a1938d
3,335
py
Python
tests/test_entity_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
tests/test_entity_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
tests/test_entity_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import json import pytest import requests_mock from requests import Response from requests.exceptions import HTTPError from benwaonline import entities from benwaonline.entities import Tag from benwaonline.gateways import CommentGateway, TagGateway, PostGateway from benwaonline.exceptions import BenwaOnlineRequestErro...
30.87963
88
0.689655
665223f7eaae020a1792bae891b395273721fb0d
3,078
py
Python
notebooks/3.-collaborative_filtering.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
notebooks/3.-collaborative_filtering.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
notebooks/3.-collaborative_filtering.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.1 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # # Bibliogr...
28.238532
164
0.723522
3c221a36440f3064c3c8629733445f7864cd7650
3,071
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/abstract_factory.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/abstract_factory.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/abstract_factory.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" *What is this pattern about? In Java and other languages, the Abstract Factory Pattern serves to provide an interface for creating related/dependent objects without need to specify their actual class. The idea is to abstract the creation of objects depending on business logic, platform choice, etc. In Python, th...
25.172131
92
0.657766
e628aa1c2f2da3100f435958cff63d813ed704fb
757
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_05_Kontrollstrukturen/10_kapitel_05_repetitionsaufgabe_09_capital_letter_combination.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_05_Kontrollstrukturen/10_kapitel_05_repetitionsaufgabe_09_capital_letter_combination.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_05_Kontrollstrukturen/10_kapitel_05_repetitionsaufgabe_09_capital_letter_combination.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 10_kapitel_05_repetitionsaufgabe_09_capital_letter_combination.py # Project: Kapitel_05_Kontrollstrukturen # Created Date: Sunday 24.02.2019, 00:01 # Author: Apop85 # ----- # Last Modified: Sunday 24.02.2019, 00:04 # ----- # Copyright (c) 2019 Apop85 # This soft...
32.913043
81
0.731836
053bf884a5dad0c4da4e1e0ed36c862fbc7444d6
3,075
py
Python
examples/Ueb01.py
phebon/mcfr
71425420e5023cde364ca6f8c4e46c87cc3c44ab
[ "MIT" ]
null
null
null
examples/Ueb01.py
phebon/mcfr
71425420e5023cde364ca6f8c4e46c87cc3c44ab
[ "MIT" ]
null
null
null
examples/Ueb01.py
phebon/mcfr
71425420e5023cde364ca6f8c4e46c87cc3c44ab
[ "MIT" ]
null
null
null
import mcfr import datetime as d import matplotlib import matplotlib.pyplot as plt from matplotlib.ticker import (MultipleLocator, FormatStrFormatter) ''' Input: Eingeben der Wert-Häufigkeitspaare als nichtnegatie Ganze Zahlen''' #xdict = {0: 11, 1: 80, 2: 65, 3: 74, 4: 51, 5: 25, 6: 19, 7: 9, 8:2} xdict = {0: 14, 1: ...
40.460526
160
0.72748
053f7d1124f558223e975cefdb2b8e3bd3fe6ad8
1,470
py
Python
skimind/kernel/learningModels/preprocessing.py
NathBangwa/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
1
2020-11-13T18:30:47.000Z
2020-11-13T18:30:47.000Z
skimind/kernel/learningModels/preprocessing.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
5
2020-11-13T18:16:48.000Z
2021-09-08T01:04:59.000Z
skimind/kernel/learningModels/preprocessing.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
null
null
null
#-*-coding:utf-8 -*- # tensorflow import tensorflow as tf # scientifical tools import numpy as np import pandas as pd # interfacedb from ..interfacedb import modelTables #--------------------------------------------------------------------------- # PREPARATION DES ENTREES DU DEEP NEURAL NETWORK #--------------...
30.625
125
0.534694
f97c41cb738d05fe97a1ebc553a41c69eca661da
335
py
Python
src/python/py-accepted/10696.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/10696.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/10696.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
# Problem No. : 10696 # Created on : 2018-05-24 20:40:23 import sys import functools def Main(): while True: n = int(input()) if (n == 0): break print("f91(%d) = %d" % (n, f91(n))) def f91(n): if (n <= 101): return 91 return n - 10 if __name__ == '__main_...
14.565217
43
0.483582
32e783a432c53134970870acd9b99b234ef727b4
1,252
py
Python
scripts/quac_general_preprocess.py
mrknight21/Roberta_QuAC
e837315bb7f1f45b4fb78e26835ce80d3d034f6e
[ "MIT" ]
null
null
null
scripts/quac_general_preprocess.py
mrknight21/Roberta_QuAC
e837315bb7f1f45b4fb78e26835ce80d3d034f6e
[ "MIT" ]
null
null
null
scripts/quac_general_preprocess.py
mrknight21/Roberta_QuAC
e837315bb7f1f45b4fb78e26835ce80d3d034f6e
[ "MIT" ]
null
null
null
from preprocessors.quac_general_processor import QuacGeneralProcessor import argparse import logging logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG, datefmt='%m/%d/%Y %I:%M:%S') log = logging.getLogger(__name__) def main(args): preprocessor = QuacGeneralProcessor(arg...
41.733333
107
0.666134
fd3326de274a2979a62b6749202b446b810ab301
1,508
py
Python
NeuralNet/Oli/SavedModels/downloadModels.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Oli/SavedModels/downloadModels.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Oli/SavedModels/downloadModels.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
import sys, os, zipfile from urllib.request import urlretrieve import time import datetime class DownloadReporter: def __init__(self, filename): self.t_last = datetime.datetime.now() print("-> started downloading file '{}'".format(filename)) def reporthook(self, blocknum, blocksize, totals...
29.568627
140
0.654509
fd3f208bb31860bfb7ef1e6fa8098468c284ac4f
176
py
Python
python/coursera_python/WESLEYAN/week1/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week1/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week1/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem1_3(n): my_sum = 0 for i in range(n+1): my_sum = my_sum + i print(my_sum) pass # replace this pass (a do-nothing) statement with your code
19.555556
68
0.613636
1f91422098a39ef8919bb18b8adb4ae9836b3558
6,163
py
Python
src/onegov/form/models/registration_window.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/models/registration_window.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/models/registration_window.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import sedate from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UUID from onegov.form.models.submission import FormSubmission from sqlalchemy import and_ from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import Date from sqla...
30.359606
79
0.631511
2f60e7214b1f429a6c6a27f4d9d2003b0ce35929
11,188
py
Python
task_5/main.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
1
2021-01-04T15:16:44.000Z
2021-01-04T15:16:44.000Z
task_5/main.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
null
null
null
task_5/main.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
null
null
null
import re import sys class Student: """ representing a single student with references to their wished packages """ def __init__(self, number, wishes): self.number = number # tuple with one package number per wish (1st wish, 2nd wish...) self.wishes = wishes de...
45.479675
121
0.650518
c80203533fdd31d4ef2752c605b83e4bbea0eb99
4,467
py
Python
komorebi_installer/Komorebi_installer.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
komorebi_installer/Komorebi_installer.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
komorebi_installer/Komorebi_installer.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#coding:utf-8 import os import subprocess import sys import time import platform class required_tools(): cowsay = '/usr/games/cowsay' git = '/usr/bin/git' def not_windows(): if 'Linux' not in platform.platform(): sys.exit('[*] Linux System Required !') def check_tools(path): check = os.path...
47.021053
270
0.598836
c06fb24427e40129e36c30dc389ed9186f5e7869
955
py
Python
other/argument_parser.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
other/argument_parser.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
other/argument_parser.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
import argparse def check_for_boolean_value(val): if val == "True": return True else: return False def main(): parser = argparse.ArgumentParser() parser.add_argument("--age", help='Enter your age (int)', type=int, required=True) parser.add_argument("--name", help='Enter your name (...
34.107143
135
0.674346
9b12d412968e863779f334fed20b9da25b8bc39d
901
py
Python
Packs/TeamManagement/Scripts/EnumerateRoles/EnumerateRoles.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/TeamManagement/Scripts/EnumerateRoles/EnumerateRoles.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/TeamManagement/Scripts/EnumerateRoles/EnumerateRoles.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # Get arguments and obtain the roles args = demisto.args() roles = args.get('roles', '').split(",") parsed_data = list() # Get a list of all users in XSOAR all_users = demisto.executeCommand("getUsers", {})[0]['Contents'] # F...
28.15625
88
0.703663
7b511cfd15b21193aa408d599a7de8b4f75d8f75
2,012
py
Python
tools/legacy/veh-parser/armorInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/veh-parser/armorInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/veh-parser/armorInfo.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2022-02-16T14:59:12.000Z
2022-02-16T14:59:12.000Z
import sharedInfo from functools import partial def createExecContext(): result = { "armors": [], "currentArmor": {}, "Armor": "armor", "A": "armor", "X": "xeno", "s": "small", "X": "xl", "x": "xl", "S": "small", "L": "large", ...
31.4375
159
0.613817
b53be9b5445d0c7825cc98be2d56772e495ec42d
1,808
py
Python
Project2/tomograph.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project2/tomograph.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project2/tomograph.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
from lib import trace, grid_intersect import numpy as np def take_measurement(n_grid: np.int, n_rays: np.int, r_theta: np.float64) -> ( np.ndarray, np.ndarray, np.ndarray, np.ndarray): """ Take a measurement with the tomograph from direction r_theta. Arguments: n_grid: number of cells of grid in ea...
30.644068
203
0.6875
b56bf0528b140a592f30fda576e66d57f83a1039
16,306
py
Python
More-DL/yolo_v3.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
More-DL/yolo_v3.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
More-DL/yolo_v3.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
""" http://datahacker.rs/tensorflow2-0-yolov3/#id3 Download the weight file for YOLOv3 from their official website !wget https://pjreddie.com/media/files/yolov3.weights Prepare the folder for storing the weights !rm -rf checkpoints !mkdir checkpoints """ import cv2 import numpy as np import tensorflow as tf from...
37.143508
101
0.618116
8d0ff00412332211411560046e5700702b5f71e5
1,122
py
Python
03_TicTacToe/tic_tac_toe_ansicht.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/tic_tac_toe_ansicht.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
03_TicTacToe/tic_tac_toe_ansicht.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
from turtle import * from tic_tac_toe_modell import Pos, Zustand, Belegung import time class Ansicht(): def zeichne_spielfeld(self): print("Neues leeres Spielfeld...") stift = Turtle() time.sleep(2) stift.forward(200) stift.left(90) stift.dot(20) ...
24.391304
53
0.55615
570ef1bf0184922bff57a04f66b46599a74a7055
5,515
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex09_sudoku_checker.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex09_sudoku_checker.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex09_sudoku_checker.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden # Helpers def remove_all_occurences(values, item): return list(filter(lambda x: x != item, values)) def all_desired_numbersV1(all_collected_values): if len(all_collected_values) != 9: raise ValueError("not 9 val...
24.295154
87
0.576247
571a578b1ae66c3becc5cb7d50cb1fc42d518d4f
363
py
Python
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex3/ex3.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex3/ex3.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex3/ex3.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
def intersection(arrays): """ YOUR CODE HERE """ # Your code here return result if __name__ == "__main__": arrays = [] arrays.append(list(range(1000000, 2000000)) + [1, 2, 3]) arrays.append(list(range(2000000, 3000000)) + [1, 2, 3]) arrays.append(list(range(3000000, 4000000)) + [...
20.166667
60
0.600551
f589965fbe80fe9c89644d8e296bce952cf5a8fc
1,228
py
Python
src/onegov/activity/models/publication_request.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/models/publication_request.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/models/publication_request.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UUID from sqlalchemy import Column, ForeignKey from sqlalchemy.orm import relationship from uuid import uuid4 class PublicationRequest(Base, TimestampMixin): """ Describes a request for publication...
36.117647
75
0.741857
fd83f053733a6471515a0d5f58dd1e8169c61965
468
py
Python
Hackerrank_problems/Halloween Party/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Halloween Party/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Halloween Party/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 import os import sys def halloweenParty(k): """ first square the amount times then divide it with the 2 squares (or 4) *don't forget to round down the float """ return int((k*k)/4) if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') t = int(input())...
17.333333
47
0.57906
8bf8e1296d67b1ab90585afd670da0f41fefc70a
2,475
py
Python
.venv/Lib/site-packages/dexpy/tests/test_optimal.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/tests/test_optimal.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/tests/test_optimal.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
from unittest import TestCase from patsy import dmatrix import numpy as np from dexpy.optimal import build_optimal from dexpy.model import make_model, ModelOrder class TestOptimal(TestCase): def test_optimal(self): """Tests a simple 2 factor optimal design This is a 6 run design using a quadratic...
34.375
80
0.634343
8bbfc2e6be823c9c1bdfd58ed936171863e510c5
3,165
py
Python
backend/app/crud/base.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/crud/base.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/crud/base.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import Any, Dict, Generic, List, Optional, Type, TypeVar, Union from app.db.base_class import Base from fastapi.encoders import jsonable_encoder from pydantic import BaseModel from sqlalchemy.orm import Session from sqlalchemy.orm.attributes import flag_modified ModelType = TypeVar("ModelType", bo...
31.65
84
0.593365
d0a73c3edd23d815db1b0c9c37dbe7cd1d410f40
10,433
py
Python
Versuch4/task2.3.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch4/task2.3.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch4/task2.3.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
# ------------------------------------- # Task 2.3 # ------------------------------------- from scipy import signal import matplotlib.pyplot as plt import numpy as np import scipy.stats # Definieren der Dateinamen num = ["hoch1", "hoch2", "hoch3", "hoch4", "hoch5", "tief1", "tief2", "tief3", "tief4", "tief5", "links1...
42.238866
113
0.604812
086cf8af9f934ae60479f0b9a74f983ed832ccf0
760
py
Python
Packs/XMatters/Scripts/CloseTaskSetContext/CloseTaskSetContext_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XMatters/Scripts/CloseTaskSetContext/CloseTaskSetContext_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XMatters/Scripts/CloseTaskSetContext/CloseTaskSetContext_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# Test runner for CloseTaskSetContext from CloseTaskSetContext import main import demistomock as demisto def test_close_task_set_context(mocker): demisto.log('stuff') def executeCommand(name, args=None): if name == 'taskComplete': # Success return {} else: ...
25.333333
80
0.65
72379c7772b996fbf66ead64043cf8709546da71
125
py
Python
scripts/HelloWorld_ajelgih105.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/HelloWorld_ajelgih105.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/HelloWorld_ajelgih105.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
#language: Python 2.7 #Author: ajleigh105 #GITHUB: https://github.com/ajleigh105 print "Hello World!" wait_key = raw_input()
20.833333
38
0.752
a0ec87d73e698101987ee93bdd9f7176712b5d6b
314
py
Python
furniture_store/furniture_store/web/admin.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
furniture_store/furniture_store/web/admin.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
furniture_store/furniture_store/web/admin.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.contrib import admin from furniture_store.web.models import Profile, Furniture class FurnitureInlineAdmin(admin.StackedInline): model = Furniture @admin.register(Profile) class UserAdmin(admin.ModelAdmin): pass @admin.register(Furniture) class FurnitureAdmin(admin.ModelAdmin): pass
17.444444
57
0.789809
2670f94f0184815c3565042a4e894a68706307b5
582
py
Python
Common/initialization.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
Common/initialization.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
Common/initialization.py
Puzzlebox-IMT/Puzzlebox
6b80e22a4aee3228140692bd6352de18b2f6a96d
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt def initializeGame(): entree="blocked" #Configuration du RPI en tant que client client = mqtt.Client() #Connexion au broker MQTT client.connect("localhost",1883,300) while (entree != ''): print("Bienvenue dans le merveilleux univers de Puzzlebox") ...
25.304348
129
0.685567
3e90681642bfba622e32d1f485daca6ad5446324
3,128
py
Python
generate_new_keys.py
nathanrosspowell/00keys
dbec60d4faacf7f31d209be8a8ffa6b9b56c6407
[ "MIT" ]
null
null
null
generate_new_keys.py
nathanrosspowell/00keys
dbec60d4faacf7f31d209be8a8ffa6b9b56c6407
[ "MIT" ]
null
null
null
generate_new_keys.py
nathanrosspowell/00keys
dbec60d4faacf7f31d209be8a8ffa6b9b56c6407
[ "MIT" ]
null
null
null
gb_code = "junktown2" gb_name = "Junktown Keys II GB" date = "2017-04-01" base_id = 800 profiles = ( ("sa1", "SA Row 1"), ("sa3", "SA Row 3"), ("dsa", "DSA"), ) keys = ( ("brotherhood", "BoS Helmet"), ("lucky38", "Lucky 38"), ("v21", "Vault 21"), ("mininuke", "Mini Nuke"), ) colorways = ( ...
30.076923
77
0.566816
e4ebbcc391157d8d9d5df9c5979f9059c7eb9dc3
10,515
py
Python
src/onegov/core/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import math from cached_property import cached_property from sqlalchemy import or_ from sqlalchemy.inspection import inspect from onegov.core.orm import func class GenericCollection(object): def __init__(self, session): self.session = session @property def model_class(self): raise NotI...
29.371508
79
0.61398
5f75b86725af4e49c6b185fe6efd170127ca1d55
488
py
Python
src/server/app/models/Task.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/app/models/Task.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/app/models/Task.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
from ..db.settings import db class Task(db.Document): p_id = db.StringField(required=True) task_id = db.StringField(primary_key=True, required=True) name = db.StringField(default="No name defined") start = db.DateTimeField() end = db.DateTimeField() finished = db.BooleanField(default=False) ...
37.538462
61
0.717213
083663137939b8a9fdafc9b221c8ac1690d70d2a
229
py
Python
top/clearlight/reptile/bilibili/bj_tech_mooc/reptile2.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/reptile/bilibili/bj_tech_mooc/reptile2.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/reptile/bilibili/bj_tech_mooc/reptile2.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import requests payload = {'key1': 'value1', 'key2': 'value2'} r = requests.post('http://httpbin.org/post', data=payload) print(r.text) p = requests.request('GET', 'http://python123.io/ws', params=payload) print(p.url) print(p)
25.444444
69
0.68559
f2c7fcb1dbd7c6fb6829054e61f361837df785fb
4,103
py
Python
addition_module/DSDG/DUM/Load_OULUNPUcrop_valtest.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1
2022-02-07T02:03:37.000Z
2022-02-07T02:03:37.000Z
addition_module/DSDG/DUM/Load_OULUNPUcrop_valtest.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
null
null
null
addition_module/DSDG/DUM/Load_OULUNPUcrop_valtest.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division import os import torch import pandas as pd # from skimage import io, transform import cv2 import numpy as np import random import torch from torch.utils.data import Dataset, DataLoader from torchvision import transforms import pdb import math import os class Normaliztio...
34.191667
120
0.623934
4b90c3d193f99bb8bd41e5210116cffddc241313
92
py
Python
torba/torba/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/__init__.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
__path__: str = __import__('pkgutil').extend_path(__path__, __name__) __version__ = '0.5.7'
30.666667
69
0.75
d9bc45412cab9723048aabe5dfc0e600978a6a20
1,475
py
Python
listings/chapter11/cookies.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter11/cookies.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter11/cookies.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
class Cookie: def get_price(self): pass def get_ingredients(self): pass class PlainCookie(Cookie): def get_price(self): return 0.8 def get_ingredients(self): return 'Teig' class CookieDecorator(Cookie): def __init__(self, cookie): self.cookie = cookie def get_price...
23.790323
69
0.661695
8ad0cc76d292a7855cb2226aa3926ebd11582c1c
2,997
py
Python
history/Others/Python/files/wx.py
hengg/i-know-nothing-about-js
2dc1af3303a8565dd5599f8803d4454121bfdbec
[ "MIT" ]
2
2020-08-07T15:31:19.000Z
2021-02-05T16:40:36.000Z
history/Others/Python/files/wx.py
hengg/js-walker
2dc1af3303a8565dd5599f8803d4454121bfdbec
[ "MIT" ]
8
2020-04-07T00:56:00.000Z
2020-09-15T02:21:42.000Z
history/Others/Python/files/wx.py
hengg/i-know-nothing-about-js
2dc1af3303a8565dd5599f8803d4454121bfdbec
[ "MIT" ]
null
null
null
# ლↀѡↀლcoding: utf-8ლↀѡↀლ __author__ = 'wangliang' import MySQLdb import time class Handle(tornado.web.RequestHandler): def POST(self): data = ET.fromstring(body) ToUserName = data.find('ToUserName').text FromUserName = data.find('FromUserName').text MsgType = data.find('MsgType')...
45.409091
211
0.485819
0a5e68d5fd787939c3c1ee3a3e59b5d4fdc45371
1,260
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/sdk/cases/buildcpio.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/sdk/cases/buildcpio.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/sdk/cases/buildcpio.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: MIT # import os import tempfile import subprocess import unittest from oeqa.sdk.case import OESDKTestCase from oeqa.utils.subprocesstweak import errors_have_output errors_have_output() class BuildCpioTest(OESDKTestCase): """ Check that autotools will cross-compile correctly. ...
35
109
0.624603
0a7c72fe1c70a29c4c6076c02683e040d43ce690
5,048
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/online_server_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/online_server_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/online_server_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # 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', 'status': ['preview'], ...
28.044444
104
0.473851
7cfc980c4625dd3768f4b04e12eddf4df156fddd
12,564
py
Python
Packs/SecureWorks/Integrations/TaegisXDR/TaegisXDR.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SecureWorks/Integrations/TaegisXDR/TaegisXDR.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SecureWorks/Integrations/TaegisXDR/TaegisXDR.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from typing import Any, Dict import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 """ CONSTANTS """ AUTH_ENDPOINT = "/auth/api/v2/auth/token" GRAPHQL_ENDPOINT = "/graphql" XDR_URL = "https://ctpx.secureworks.com" INVESTIGATION_STATUSES = set(( "Open", "Active", "Su...
28.489796
130
0.593601
6b0b84b1a77dd112fe22aa56992ef7157bb60884
768
py
Python
tests/onegov/core/test_html.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_html.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_html.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from onegov.core.html import sanitize_html, sanitize_svg def test_sanitize_html(): # this is really bleach's job, but we want to run the codepath anyway assert sanitize_html('') == '' assert sanitize_html('<script>') == '&lt;script&gt;' assert sanitize_html('<b foo="x" foo:bar="y">') ==...
30.72
77
0.66276
8652c32cf0eda130630bfe9f506fc061ba4cc0ff
296
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/set_appraisal_remarks.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v5_0/set_appraisal_remarks.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/set_appraisal_remarks.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.reload_doctype("Appraisal") frappe.db.sql("update `tabAppraisal` set remarks = comments")
32.888889
68
0.783784
8690fea148248fab303db042f97482178d8fcdb8
2,517
py
Python
test/test_npu/test_network_ops/test_col2im_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_col2im_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_col2im_backward.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...
44.157895
107
0.669845
076ca496f68b58fec4d21293eba5b7297a3bbf54
2,291
py
Python
python/oneflow/compatible/single_client/framework/blob_trait.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/framework/blob_trait.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/framework/blob_trait.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...
22.91
72
0.728939
132d1c3f4e6be50fe1514ed14e3422418516aeb4
25,325
py
Python
mumath/grammar.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
mumath/grammar.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
mumath/grammar.py
fourpoints/mumath
f1c36c4a5b3c32a3e7f8e7a922eafea8b7a14fd4
[ "MIT" ]
null
null
null
from .context.tokens import * # builtins.tokenizer does this so why not me from .node import mml, html, special from .node.util import clone, traverse from .util import listify from itertools import islice, count from functools import partial, wraps import xml.etree.ElementTree as ET # https://github.com/pengbo-lear...
25.124008
108
0.576584
e059a5001203ec52b25367c2928bf7bdde440993
5,603
py
Python
Utils/py/PathPlanner/read.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/read.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/read.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import numpy as np from sys import argv from matplotlib import pyplot as plt if len(argv) == 1: sys.exit() filenames = [] for k in range(1, len(argv)): filenames.append(argv[k]) robot_pos = [] targets = [] obstacles = [] paths_LPG = [] paths_B = [] paths_naiv = [] times_LPG = [] times_B = [] time...
28.29798
339
0.606639
167acadccc215b4d36df254d03c3568487d94483
1,209
py
Python
casts/permissions.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/permissions.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/permissions.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
""" Custom Cast permissions """ from rest_framework import permissions def check_manager(obj, profile) -> bool: """ Returns True if the user is a manager of the object or its parent Cast """ # This first level is for getting objects to a potential cast relation for key in ("event",): if h...
28.116279
88
0.673284
bc778356db69c1557523757ad19a39ced000b73a
2,316
py
Python
Packs/ShiftManagement/Scripts/GetOnCallHoursPerUser/GetOnCallHoursPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ShiftManagement/Scripts/GetOnCallHoursPerUser/GetOnCallHoursPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ShiftManagement/Scripts/GetOnCallHoursPerUser/GetOnCallHoursPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import demistomock as demisto from GetOnCallHoursPerUser import main ROLES = [ { 'name': 'Shift1', 'shifts': [ {'fromDay': 0, 'fromHour': 8, 'fromMinute': 0, 'toDay': 3, 'toHour': 12, 'toMinute': 0}, {'fromDay': 4, 'fromHour': 16, 'fromMinute': 0, 'toDay': 6, 't...
25.450549
101
0.417962
bce078f8635537a6dea00110496693eea5a82ee4
338
py
Python
crypto/Little-Bit/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/Little-Bit/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/Little-Bit/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
from Crypto.Util.number import long_to_bytes as l2b import base64 ct = '6U26ZrIPG5j4Kh3eSI856UqONeCp5CzoiEeg9giPMt65DrvIIO+0xg==' ct = base64.b64decode(ct) myBits = [ord(x) // 4 for x in ct] msg = '' for x in myBits[::-1]: msg += bin(x)[2:].rjust(6, '0') # angka 0 dibelakang adalah hasil padding pt = int(msg, 2) >> ...
24.142857
63
0.692308
bcf017813162b17085264e86ed8d74d7d4af6362
85
py
Python
python/python_backup/PRAC_PYTHON/ab.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
print"Hello" a=10 if(a==10): print"A is 10"; else : print"A is not 10";
10.625
22
0.529412
fc906293d42a3ff7291a0bc837590c4cb9583d54
126
py
Python
coco2yolov5-converter/src/conftest.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
coco2yolov5-converter/src/conftest.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
coco2yolov5-converter/src/conftest.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
"""Trick pytest into adding src directory, see https://stackoverflow.com/questions/50155464/using-pytest-with-a-src-layer."""
42
78
0.777778
b90b68dd7c040539504ba7edb123bedfe8b948a0
1,396
py
Python
python/asyncio/example_6.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/example_6.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/example_6.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" example_6.py Just a short example demonstrating a simple state machine in Python This version is doing actual work, downloading the contents of URL's it gets from a queue. It's also using gevent to get the URL's in an asynchronous manner. """ import gevent from gevent import monkey monkey.patch_all() import que...
23.266667
80
0.614613
f8de719bd5581adb1b4ed88a3b64e55ab2bfa639
1,626
py
Python
tests/onegov/org/test_views_usergroup.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_usergroup.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_usergroup.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
def test_view_user_groups(client): client.login_admin() # create manage = client.get('/usergroups').click('Benutzergruppe', href='new') manage.form['name'] = 'Gruppe A' manage.form['users'].select_multiple(texts=['editor@example.org']) manage.form['ticket_permissions'].select_multiple(texts=['D...
36.133333
75
0.665437
5d735ac6e354f80ae40fd1e428a9d5808603c3a3
501
py
Python
source/pkgsrc/math/py-networkx/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/math/py-networkx/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/math/py-networkx/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.3 2019/09/25 07:25:24 adam Exp $ Skip examples, as they make a conflict between Python versions. --- setup.py.orig 2019-04-09 06:14:52.000000000 +0000 +++ setup.py @@ -155,7 +155,6 @@ if __name__ == "__main__": project_urls=release.project_urls, classifiers=release.classi...
33.4
63
0.676647
07456a00b8d166a5aafb276743bcfec86994ce18
298
py
Python
2-resources/Lambda-weeks/m6/63d1/Sprint-Challenge--Algorithms-master/recursive_count_th/count_th.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m6/63d1/Sprint-Challenge--Algorithms-master/recursive_count_th/count_th.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m6/63d1/Sprint-Challenge--Algorithms-master/recursive_count_th/count_th.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
''' Your function should take in a single parameter (a string `word`) Your function should return a count of how many occurences of ***"th"*** occur within `word`. Case matters. Your function must utilize recursion. It cannot contain any loops. ''' def count_th(word): # TBC pass
27.090909
107
0.694631
917bf0ff941a480469430af74ad334e6a9985e15
1,351
py
Python
chapter100/postgres_04.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/postgres_04.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/postgres_04.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
import psycopg from datetime import datetime from threading import Thread, Lock start = datetime.now() client = psycopg.connect("postgres://username:password@127.0.0.1") cursor = client.cursor() cursor.execute( """ CREATE TABLE table_name( name text, description text ) """ ) threads_...
19.3
85
0.641007
f44173237402f7e9b61bb2d3f735961f9cf7ca82
1,369
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex09_pascal_triangle.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex09_pascal_triangle.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex09_pascal_triangle.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def calc_pascal(row, col): # rekursiver Abbruch: Spitze if col == 1 and row == 1: return 1 # rekursiver Abbruch: Ränder if col == 1 or col == row: return 1 # rekursiver Abstieg return calc...
20.742424
69
0.613587
f44898081457ca130a23fd66abbe09fdaec22ebb
1,658
py
Python
marthakarpeter/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
marthakarpeter/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
marthakarpeter/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
#!/usr/bin/env python3 #ex1 APPFS Martha Karpeter 367847 # File ex1-100.dat with 100001235 lines # Valid values Loc1: 50004466 with GeoMean: 36.781736117203764 # Valid values Loc2: 49994581 with GeoMean: 36.78258320024247 # time 8m18.949s import sys import math file = open(sys.argv[-1], "r").readlines() valid =...
23.027778
102
0.603739
f458821438190104754f028c9b8324e394330b11
2,196
py
Python
cje/smart_list.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
cje/smart_list.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
cje/smart_list.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# -*- coding: utf-8 -*- import json import sys import imp imp.reload(sys) sys.setdefaultencoding('utf8') print(sys.getdefaultencoding()) from lxml import etree file_name = "anjuke.index.html" parser = etree.HTMLParser() root = etree.parse(file_name, parser) def fixed_path(path): if path.endswith("]"): ...
30.082192
108
0.59745
feb55af8a4fe78edb21206d4e12214230e10960d
15,495
py
Python
run.py
djajetic/AutoML3Final
36a89c6f00c713101feaffc0d6b9ccbb529ed317
[ "MIT" ]
2
2017-08-15T06:48:01.000Z
2019-08-01T07:51:17.000Z
run.py
djajetic/AutoML2
d0f04a6b8b413bd9ebafa2302b062b66ba181552
[ "MIT" ]
null
null
null
run.py
djajetic/AutoML2
d0f04a6b8b413bd9ebafa2302b062b66ba181552
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################# # ChaLearn AutoML challenge # ############################# # Usage: python run.py input_dir output_dir # This sample code can be used either # - to submit RESULTS depostited in the res/ subdirectory or # - as a template for CODE submission. # # The i...
46.954545
182
0.634721
4a7253c30fd59735db26cbf449ed9dea0ad22754
175
py
Python
bp-revok/python/bin/pilfont.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
null
null
null
bp-revok/python/bin/pilfont.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
null
null
null
bp-revok/python/bin/pilfont.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
3
2017-04-07T12:02:22.000Z
2020-03-23T12:11:55.000Z
#!/usr/bin/env python # EASY-INSTALL-SCRIPT: 'Pillow==2.7.0','pilfont.py' __requires__ = 'Pillow==2.7.0' __import__('pkg_resources').run_script('Pillow==2.7.0', 'pilfont.py')
35
69
0.697143
4a99195f0f48cb8f181494734ef8ef089ec793e9
15,323
py
Python
Library/BSMLibrary.py
rccannizzaro/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
11
2021-12-02T15:41:47.000Z
2022-03-14T03:49:22.000Z
Library/BSMLibrary.py
ikamanu/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
null
null
null
Library/BSMLibrary.py
ikamanu/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
5
2022-02-02T12:07:51.000Z
2022-02-13T02:24:19.000Z
######################################################################################## # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with...
39.089286
153
0.568231
436d83900c04defa6d392fa45dfc7d89fdbf8599
354
py
Python
Kapitel 1/Punkt.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 1/Punkt.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 1/Punkt.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
p1 = (-1.1, 3.5) p2 = (2.4, -0.7) dx = p2[0] - p1[0] dy = p2[1] - p1[1] print("Erster Punkt: P1 = (", p1[0], ",", p1[1], ")") print("Zweiter Punkt: P2 = (", p2[0], ",", p2[1], ")") m = (p2[1] - p1[1]) / (p2[0] - p1[0]) c = p1[1] - m * p1[0] print("Für die Gerade y = mx + c durch P1 und P2 gilt:") print("m = {0:.3f...
22.125
56
0.449153
607a3db6f93b2befeefe93dd98aa8a80852ad12f
1,740
py
Python
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from collections import Counter import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 FROM_FIELD = 'emailfrom' def get_incident_ids() -> list: """ Gets all the campaign incident ids. Returns: List of all the ids. """ incidents = demisto.get(demisto.c...
26.363636
114
0.681609
60a5cb3d16f7471ed243948e299cfedf728479cc
2,342
py
Python
examples/language_model/roformer/test_mlm.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/roformer/test_mlm.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/roformer/test_mlm.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.174603
80
0.646029
e0e8d0cc56d2c82587cb9102cbdf33d0667fb61e
1,247
py
Python
sql3_to_pg.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
sql3_to_pg.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
sql3_to_pg.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
import peewee import db_modell as db user = input("PGUser eingeben:") pw = input("Passwort eingeben: ") DB = peewee.PostgresqlDatabase("kuehltest", user=user, password=pw) class BaseModel(peewee.Model): class Meta: database = DB class Kuehlvarianten(BaseModel): id = peewee.IntegerField(primary_key=...
23.528302
67
0.668003