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
bae6e84010af87763d70832e5a0d43089f044c0c
3,240
py
Python
exploit_smb_usermap_script/smb_umap_remote_execution.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
exploit_smb_usermap_script/smb_umap_remote_execution.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
exploit_smb_usermap_script/smb_umap_remote_execution.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #-*- coding:utf-8 -*- #Samba 3.0.20 < 3.0.25rc3 - 'Username' map script' Command Execution import os import time import socket import platform import sys import threading try: from datetime import datetime except ImportError: print("[*] Module Datetime Not Found !") try: from smb.SMBCo...
32.4
125
0.564506
cc3682b0a2f317949c2373106b518818d7386aba
451
py
Python
python/image_processing/add_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/add_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/add_img.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np import cv2 img1 = cv2.imread('city1.jpg') img2 = cv2.imread('city2.jpg') # numpy image addition will give modulo operation (img1+img2)%256 img_np = img1 + img2 # cv2 image addition will give simple addition img_cv = cv2.add(img1,img2) # to show the image cv2.imshow('image numpy',img_np) cv2.waitK...
18.791667
65
0.731707
cc437098b314e40708a0aaa28107a76528da466f
4,435
py
Python
tests/discord/test_models.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
tests/discord/test_models.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
tests/discord/test_models.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
import unittest from bolt.discord.models.base import Model, Field, ListField from bolt.discord.models.base import ModelMissingRequiredKeyError, ModelValidationError, ImmutableFieldError class TestModel(unittest.TestCase): def test_model_basic(self): class CoolModel(Model): id = Field(int) ...
28.06962
108
0.620519
cc7fd5c3a7752499f6e48ecf33faf3ba660c645a
729
py
Python
vorl3-ueb1.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3-ueb1.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3-ueb1.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 3. Vorlesung 09.10.2020 # Aufgabe 1 aus Skript Python 2 (05_Python_02.pdf) while True: while True: quellDateiname = input("Ganze Zahlen aus Datei einlesen. Dateiname? ") try: quellDatei = open (quellDateiname, 'r') except: print(" Fehler: Datei konnte nicht geöffn...
29.16
114
0.587106
9de44c5753f0fb33b5845c5e4725c926b836b08c
170
py
Python
scripts/hello_world_pbateman828.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_pbateman828.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_pbateman828.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
// LANGUAGE: Python 3 // AUTHOR: Chris Welborn // GITHUB: https://github.com/pbateman828 // LINK: https://docs.python.org/3.4/howto/sockets.html print('Hello, World!')
21.25
55
0.7
4ea9730c2af348a9501c33c967790d1afd5c89ab
2,452
py
Python
BiliReNamer/TitleHTMLParser.py
Luke-li-Chen/BiliReNamer
1e83f54840caef23af5f23da5fd5640222c7a73b
[ "Apache-2.0" ]
null
null
null
BiliReNamer/TitleHTMLParser.py
Luke-li-Chen/BiliReNamer
1e83f54840caef23af5f23da5fd5640222c7a73b
[ "Apache-2.0" ]
null
null
null
BiliReNamer/TitleHTMLParser.py
Luke-li-Chen/BiliReNamer
1e83f54840caef23af5f23da5fd5640222c7a73b
[ "Apache-2.0" ]
null
null
null
from html.parser import HTMLParser from html.entities import name2codepoint # 派生的 HTML 分析器类 class TitleHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(self) # 继承父类的构造函数 self.titles = [] # 存储总标题 self.options = [] # 存储分P标题 self.processing = None ...
32.693333
81
0.550571
14c3e1773834fe4759b3ee6ac108ce3c8110cdb2
2,706
py
Python
reports/ReportSystemPerformance.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
reports/ReportSystemPerformance.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
reports/ReportSystemPerformance.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import sys import os import pandas as pd from libs.ModelFactory import ModelFactory from measure.system.CpuSystemMeter import CpuSystemMeter from measure.system.TimeSystemMeter import TimeSystemMeter from measure.system.MemorySystemMeter import MemorySystemMeter from reports.AbstractReport import AbstractReport # Add...
33.407407
103
0.623799
3a0b4fd4a8a453d1f1a2130d2e758f90b0788075
1,195
py
Python
Python/pandas/12_concat.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/12_concat.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/12_concat.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd df1 = pd.DataFrame({ "A": np.random.randint(10, size=(3)), "B": np.random.randint(10, size=(3)), "C": np.random.randint(10, size=(3)), }, index=[0, 1, 2] ) df2 = pd.DataFrame({ "A": np.random.randint(10, size=(3)), "B": np.random.randint(10, size=(3)), ...
25.425532
80
0.61841
3a2d4956c8694a77cd3bb0192f3a4cdd7359ce11
406
py
Python
nz_crawl_demo/day9/Agent/useragent_demo/useragent_demo/spiders/ipproxy.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day9/Agent/useragent_demo/useragent_demo/spiders/ipproxy.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day9/Agent/useragent_demo/useragent_demo/spiders/ipproxy.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# -*- coding: utf-8 -*- import scrapy import json class IpproxySpider(scrapy.Spider): name = 'ipproxy' allowed_domains = ['httpbin.org'] start_urls = ['http://httpbin.org/ip'] def parse(self, response): origin = json.loads(response.text)['origin'] print("="*30) print(origin) ...
25.375
65
0.615764
28c4831d35fbbf8d9e0c57aa94c6d226c5d8cc31
430
py
Python
euler-7.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-7.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-7.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
def deli_v_seznamu(n,sez): for x in sez: if n % x == 0: return True return False def prastevilo_stevilka_n(n): pra = [2] stevilo = 2 i = 1 while i < n: stevilo += 1 if deli_v_seznamu(stevilo,pra) == False: pra.append(stevilo) ...
17.2
49
0.472093
28d374b10e2ef2034710525343acbd970c5ff90f
4,847
py
Python
2018/finals/re-journey/src/gen.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-journey/src/gen.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-journey/src/gen.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
21.833333
74
0.57025
3aa294edfa75991e247dcc4e140192aa3e7ae8be
3,035
py
Python
2018/finals/re-elisp/src/checker-code.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-elisp/src/checker-code.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-elisp/src/checker-code.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
40.466667
555
0.590774
3aad584496136958cef35dfbaa025ba0ff04a14f
5,613
py
Python
pk/data/cluster/kmeans/kmeans.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/cluster/kmeans/kmeans.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/cluster/kmeans/kmeans.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
import sys, math, random, csv, types class KMeans: def __init__(self, filename, k): self.data, self.restrictions = self.parse_vectors(filename) self.k = k self.centroids = self.initial_centroids(self.data, self.k) self.clusters = list() def parse_vectors(self, filename): ...
32.824561
147
0.508462
c2b89b3403da66e212a4c162f1cf3ba517000d22
2,209
py
Python
Course_1/Week_04/ZhiyuanGraphMinCut.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_04/ZhiyuanGraphMinCut.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_04/ZhiyuanGraphMinCut.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
import numpy as np import random import sys import copy def findVertexGroup(vertex,index): if vertex[index] != index: path = [index] index = vertex[index] while vertex[index] != index: path.append(index) index = vertex[index] for i in path: ...
31.112676
84
0.549117
c2c7a8516d4248a61c7654c47753c3df3731e205
3,195
py
Python
test/automated/pvfs2tests.py
dschwoerer/orangefs
386a12df2b0310ec2e0d37aba092204d9490c7be
[ "Apache-2.0" ]
44
2018-10-11T23:16:42.000Z
2022-03-16T11:23:49.000Z
test/automated/pvfs2tests.py
dschwoerer/orangefs
386a12df2b0310ec2e0d37aba092204d9490c7be
[ "Apache-2.0" ]
84
2018-05-31T20:14:51.000Z
2021-09-05T19:37:51.000Z
test/automated/pvfs2tests.py
dschwoerer/orangefs
386a12df2b0310ec2e0d37aba092204d9490c7be
[ "Apache-2.0" ]
7
2018-10-23T13:40:21.000Z
2021-09-26T07:19:44.000Z
#!/usr/bin/python #NOTE:Command line takes 3 options: config file, PAV config, PAV machine list import os,sys,ConfigParser,bsddb,smtplib,string #This function gets all options from the Config file that was passed #at the command line. def getconfig(): Config=bsddb.hashopen(None,'w') Tests=bsddb.hashopen(None,'w')...
27.307692
108
0.697966
b0b89347eddf0084ba240b7b20c2a2f6f1d6eacd
19,323
py
Python
indl/model/lfads/utils.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
indl/model/lfads/utils.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
indl/model/lfads/utils.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
__all__ = ['diag_gaussian_log_likelihood', 'gaussian_pos_log_likelihood', 'Gaussian', 'DiagonalGaussianFromExisting', 'LearnableDiagonalGaussian', 'LearnableAutoRegressive1Prior', 'CoordinatedDropout', 'GRUClipCell', 'test_GRUClipCell', 'GRUClip', 'test_GRUClipLayer', 'test_GRUClipLayer...
40.172557
111
0.625731
c66dafdc019f64b859eafaa4661fb2d493e236aa
4,710
py
Python
Mail-Access-Checker-v1-main/Mail Checker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Mail-Access-Checker-v1-main/Mail Checker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Mail-Access-Checker-v1-main/Mail Checker.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 requests, threading, os, sys, time, random, os.path from colorama import Fore, init passwords, emails = [], [] proxy = [] bad, good, checked, cpm1, cpm2, error = 0, 0, 0, 0, 0, 0 os.system('title Mail Access Checker - By AmineMrx') logo = """ ____ ______ __ ...
33.404255
167
0.498726
3c4adc3fe13cb39bfcaffc7a4abdb3d5829495bd
1,707
py
Python
research/cv/AttentionCluster/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AttentionCluster/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AttentionCluster/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.108696
94
0.684827
b1b5f0f27518040dcef38d647be7a33205ab2230
791
py
Python
setup.py
DominikAuras/pyUnnenberg
f3ad87b71ccd25b9231c19e3f4a4f7d1c053028b
[ "MIT" ]
null
null
null
setup.py
DominikAuras/pyUnnenberg
f3ad87b71ccd25b9231c19e3f4a4f7d1c053028b
[ "MIT" ]
null
null
null
setup.py
DominikAuras/pyUnnenberg
f3ad87b71ccd25b9231c19e3f4a4f7d1c053028b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from setuptools import setup, find_packages setup( name='PyUnnenberg', version='0.1', description='Python Module for the Unnenberg Beacon', author='Dominik Auras', author_email='DominikAuras@users.noreply.github.com', url='https://github.com/Domi...
29.296296
74
0.635904
e987bd8050909d1587e14ef4dfc074559d23181b
2,454
py
Python
shinrl/solvers/continuous_ddpg/_build_net_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/solvers/continuous_ddpg/_build_net_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/solvers/continuous_ddpg/_build_net_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
""" MixIn to prepare networks. Author: Toshinori Kitamura Affiliation: NAIST & OSX """ from copy import deepcopy from typing import Optional import gym import jax import jax.numpy as jnp import optax from chex import Array import shinrl as srl from .config import DdpgConfig class BuildNetMixIn: def initialize(...
33.162162
84
0.661369
f9e977dcccb9cb790af7c330ebb1ce42ff3c884b
8,243
py
Python
src/onegov/form/models/submission.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/models/submission.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/form/models/submission.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import html from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin, meta_property from onegov.core.orm.types import JSON, UUID from onegov.core.orm.types import UTCDateTime from onegov.file import AssociatedFiles, File from onegov.form.display import render_field from onegov.form.extensions...
32.581028
79
0.658013
32d791c136d25f08e5b26dad712386b2854e11f7
1,381
py
Python
src/xx_histogram_rgb.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
1
2016-09-22T18:31:15.000Z
2016-09-22T18:31:15.000Z
src/xx_histogram_rgb.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
null
null
null
src/xx_histogram_rgb.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
null
null
null
import cv2, imutils, time import numpy camera = cv2.VideoCapture(0) time.sleep(0.25) hist_channels = 64 hist_size = (300, 400, 3) hist_plot = numpy.zeros(hist_size, dtype=numpy.uint8) color_table = numpy.ones((hist_channels, 1, 3), dtype=numpy.uint8) *255 color_table[:,0,0] = numpy.linspace(0, 180, hist_channels) co...
32.116279
134
0.614048
c08843bc9e2a06f148982127084bba2fea0a48ed
2,542
py
Python
src/ca.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
4
2019-08-16T20:48:33.000Z
2021-05-23T20:10:08.000Z
src/ca.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
16
2019-08-21T19:06:15.000Z
2020-06-02T11:31:32.000Z
src/ca.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
null
null
null
# Check (Collision with a wall or something else) import time from src import mnlp def move(pos, r, lvl, lives, mlives): if r == 'l': if lvl[pos-1] == 1: pass elif lvl[pos-1] == 0: print('Gewonnen!') print('Exiting..') time.sleep(3) ...
26.479167
115
0.375295
23ce8d682dc59374651cf695d19b95027b1434d7
13,733
py
Python
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/open62541_MacroHelper.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
4
2015-11-11T14:02:17.000Z
2021-11-29T16:07:38.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/open62541_MacroHelper.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
6
2019-04-20T14:48:58.000Z
2020-08-26T15:13:02.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/open62541_MacroHelper.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
9
2016-01-10T15:14:28.000Z
2021-10-13T22:45:19.000Z
#!/usr/bin/env/python # -*- coding: utf-8 -*- ### ### Author: Chris Iatrou (ichrispa@core-vector.net) ### Version: rev 13 ### ### This program was created for educational purposes and has been ### contributed to the open62541 project by the author. All licensing ### terms for this source is inherited by the terms and...
52.416031
231
0.657977
c8c1e070da535228b950f96f80ab580102991726
16,458
py
Python
dataset/StimuliDiscovery/create_data_structure.py
cbrozmann/PageTransitionThesis
b140f7bfaba681e551aa545c1a6e83cff284f533
[ "Apache-2.0" ]
2
2020-05-14T09:56:24.000Z
2020-07-03T12:51:59.000Z
dataset/StimuliDiscovery/create_data_structure.py
cbrozmann/PageTransitionThesis
b140f7bfaba681e551aa545c1a6e83cff284f533
[ "Apache-2.0" ]
null
null
null
dataset/StimuliDiscovery/create_data_structure.py
cbrozmann/PageTransitionThesis
b140f7bfaba681e551aa545c1a6e83cff284f533
[ "Apache-2.0" ]
null
null
null
import os import csv import re import pandas import argparse import numpy as np import shutil # Predefines regex = re.compile(r'\d+') my_dpi = 96 fixation_vel_threshold = 50 # pixels base_path = './original_data/Dataset_stimuli/' output_path_csv = './csv/' output_path_image = 'images/' header_gaze=("web_group_id", "us...
45.844011
164
0.649593
7402c5aed8434bf7bce84c1509bd8818ea86a7d6
845
py
Python
pyventskalender/tag03_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag03_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag03_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
tierart: str = "Katze" type(tierart) def sprich_ueber_haustiere(name_deiner_mutter: str, anzahl_katzen: int) -> str: text: str = "Meine Mutter {} hat {} Katzen.".format(name_deiner_mutter, anzahl_katzen) return text def ich_mag(tiere: str) -> str: return "Ich mag {}.".format(tiere.upper()) def ich_will...
35.208333
90
0.737278
cdaddfb826b3b8bc1ebb2bbbd0c7a797707c77a1
726
py
Python
python_lessons/udemy_lessons/the_Complete_Python_Course/035_Finding_prime_numbers_with_for_loops.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/udemy_lessons/the_Complete_Python_Course/035_Finding_prime_numbers_with_for_loops.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/udemy_lessons/the_Complete_Python_Course/035_Finding_prime_numbers_with_for_loops.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
for n in range(2, 10): for x in range(2, n): if n % x == 0: print(f"{n} equals {x} * {n//x}") break else: print(f"{n} is a prime number.") # Funktionsweise des Programms, # Zeile 1 : n bekommt ab 3 bis 9 die Zahlen zugewiesen pro Durchlauf # Zeile 2 : x bekommt die Anzah...
45.375
140
0.655647
cdd101e2f2deaad4111cd5eb809197409aca3d55
2,885
py
Python
app/appwrite-functions/CreateDBCollection/main.py
MME-Aufgaben-im-Winter-2021/projects-pagemuse-mme-2021-22
9f5fa9bc2dcf27520dbebde834f652188362338b
[ "MIT" ]
null
null
null
app/appwrite-functions/CreateDBCollection/main.py
MME-Aufgaben-im-Winter-2021/projects-pagemuse-mme-2021-22
9f5fa9bc2dcf27520dbebde834f652188362338b
[ "MIT" ]
27
2022-02-24T11:53:35.000Z
2022-03-13T08:42:02.000Z
app/appwrite-functions/CreateDBCollection/main.py
MME-Aufgaben-im-Winter-2021/projects-pagemuse-mme-2021-22
9f5fa9bc2dcf27520dbebde834f652188362338b
[ "MIT" ]
null
null
null
import os import json from appwrite.client import Client from appwrite.services.database import Database from appwrite.exception import AppwriteException def init_client(): """Initialize Appwrite client""" client = Client() client.set_endpoint(os.getenv("APPWRITE_ENDPOINT")) client.set_project(os.gete...
24.243697
70
0.602426
b53b18003ee04619bf25be3231be949aac125a5e
2,003
py
Python
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/daemons/lvmdbusd/udevwatch.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/udevwatch.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/udevwatch.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2. # # You should have received a copy of the GNU General Public License # a...
21.771739
73
0.720419
b58bfeb907fe6911b23f2d37733051332e1e7636
1,427
py
Python
tests/test_schedule.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_schedule.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_schedule.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
import itertools from datetime import timedelta from unittest.mock import Mock from pfun import schedule, success two_seconds = timedelta(seconds=2) def test_spaced(): deltas = schedule.spaced(two_seconds).run(None) assert list(itertools.islice(deltas, 3)) == [two_seconds] * 3 def test_exponential(): ...
27.980392
76
0.650315
1947d0a941e9416826320834d5a46341b6be12b1
310
py
Python
game1/PlayGame.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
game1/PlayGame.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
game1/PlayGame.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
from Welcome import welcome welcome() print("Let's start by adding players.\n(press enter)") input() from Players import addRealPlayers addRealPlayers() print("GAME ON\n(press enter)") input() from Game import attackByTurn attackByTurn() print("(press enter)") input() print ("GAME OVER")
17.222222
55
0.706452
1951eec3a9b6299d4174b401fec370870222bd79
7,726
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/venn_maker.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/venn_maker.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/venn_maker.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" Interface between pybedtools and the R package VennDiagram. Rather than depend on the user to have rpy2 installed, this simply writes an R script that can be edited and tweaked by the user before being run in R. """ from __future__ import print_function import os import string import pybedtools import six from pyb...
30.904
79
0.614548
276fcf43fc8aa506929f76bc8bbb7f238d9ce897
1,241
py
Python
demos/Multiscale/amm_mechanism/model/parts/metrics.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/amm_mechanism/model/parts/metrics.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/amm_mechanism/model/parts/metrics.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
from .utils import * def s_swap_price_i(params, substep, state_history, prev_state, policy_input): """ Calculates and returns the swap price for a trade Qi for Ri """ Q_reserve = int(prev_state['UNI_Qi']) R_reserve = int(prev_state['UNI_Ri']) # input 1000 q token get r delta_q = 1000 d...
31.025
78
0.686543
27a6b6bbd21ce87da3462f32e1eba72170938f28
574
py
Python
mod/units/config.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/units/config.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/units/config.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- # @Date : 2014-06-28 23:10:21 # @Author : xindervella@gamil.com yml_bright@163.com APPID = '502e69b05a1bd63a326d8bd24b3ffe2e' DEFAULT_UUID = '0000000000000000000000000000000000000000' AUTH = u'http://223.3.65.239/uc/' SERVICE = u'http://223.3.65.239/api/' LOCAL = u'http://115.28.2...
28.7
110
0.695122
fdb8f8abcb1f15202615d741015d79f87cb29927
233
py
Python
solutions/mols_search/mols-search-webserver/src/common/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-03-10T07:43:08.000Z
2020-03-10T07:43:08.000Z
solutions/mols_search/mols-search-webserver/src/common/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/mols_search/mols-search-webserver/src/common/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-04-03T05:24:47.000Z
2020-04-03T05:24:47.000Z
import os MILVUS_HOST = os.getenv("MILVUS_HOST", "127.0.0.1") MILVUS_PORT = os.getenv("MILVUS_PORT", 19530) VECTOR_DIMENSION = os.getenv("VECTOR_DIMENSION", 512) DEFAULT_TABLE = os.getenv("DEFAULT_TABLE", "defult_mol_search_table")
33.285714
69
0.76824
e35bdb796394b60351e05325de5839f3530341c0
4,156
py
Python
test/test_npu/test_network_ops/test_erf.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_erf.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_erf.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...
35.521368
74
0.580606
474b555f378e0b3854d885600cce64d6610bb687
845
py
Python
Packs/VulnDB/Integrations/VulnDB/VulnDB_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/VulnDB/Integrations/VulnDB/VulnDB_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/VulnDB/Integrations/VulnDB/VulnDB_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import DemistoException from pytest import raises def test_http_request_json_negative(requests_mock): from VulnDB import Client, vulndb_get_cve_command base_path = 'https://vulndb.cyberriskanalytics.com' requests_mock.post( f'{base_path}/oauth/token', json={ ...
38.409091
95
0.686391
47fc494192ef50ff9a196612043bc74b3a0b4998
1,213
py
Python
tests/onegov/election_day/views/test_views_api.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_api.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_api.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
# import json # from datetime import date # # import pytest # from onegov.ballot import Election, ProporzElection # from onegov.core.utils import module_path # from onegov.election_day.utils.election.lists import \ # get_aggregated_list_results # from tests.onegov.election_day.common import import_wabstic_data # ...
31.102564
74
0.659522
9a3d9958f863b08bb6179494cb7455e07950c44d
5,321
py
Python
maehrobot.py
romanc/maehrobot
7b2ed9b97d0ca9122f8e642527ac3c807d06948e
[ "MIT" ]
null
null
null
maehrobot.py
romanc/maehrobot
7b2ed9b97d0ca9122f8e642527ac3c807d06948e
[ "MIT" ]
null
null
null
maehrobot.py
romanc/maehrobot
7b2ed9b97d0ca9122f8e642527ac3c807d06948e
[ "MIT" ]
null
null
null
import configparser import logging import re from telegram.ext import CommandHandler, ConversationHandler, Filters,\ MessageHandler, PicklePersistence, Updater # emojis E_ram = "\U0001F40F" E_sheep = "\U0001F411" E_tada = "\U0001F389" E_wave = "\U0001F44B" # version CURRENT_VERSION = "1.0.0" WHATS_NEW = {} # st...
31.116959
75
0.646495
efdca0faa824429c4706a157cce14a21225f3ce0
993
py
Python
Packs/CortexXDR/Scripts/CortexXDRCloudProviderWidget/CortexXDRCloudProviderWidget_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CortexXDR/Scripts/CortexXDRCloudProviderWidget/CortexXDRCloudProviderWidget_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CortexXDR/Scripts/CortexXDRCloudProviderWidget/CortexXDRCloudProviderWidget_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io from CommonServerPython import * import CortexXDRCloudProviderWidget import pytest def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) @pytest.mark.parametrize('incident_data, expected_result', [ (util_load_json('test_data/incident_dat...
38.192308
98
0.76435
5603e454d48d7103c26e0ef103b889e9a4786d0d
738
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/pair_sum.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/pair_sum.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/pair_sum.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Input: arr[] = {11, 15, 26, 38, 9, 10}, x = 35 # Output: true # There is a pair (26, 9) with sum 35 # Input: arr[] = {11, 15, 26, 38, 9, 10}, x = 45 # Output: false # There is no pair with sum 45. # Input: arr[] = {11, 15, 6, 8, 9, 10}, x = 16 # Output: true # There is a pair (6, 10) with sum 16 def sum_pair(arr...
22.363636
48
0.45935
9d384b8bab5ddbd0e740383a4b533cd77b13815c
2,489
py
Python
research/cv/centernet_resnet50_v1/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_resnet50_v1/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_resnet50_v1/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.666667
91
0.67497
2697a0aafe58dd3e63f2e76a45fda2f2f0eba682
1,325
py
Python
bazzell/utils.py
libracore/bazzell
f4cf4ec5b9f264f68d853e7b946fd49bd0d5e4d9
[ "MIT" ]
null
null
null
bazzell/utils.py
libracore/bazzell
f4cf4ec5b9f264f68d853e7b946fd49bd0d5e4d9
[ "MIT" ]
null
null
null
bazzell/utils.py
libracore/bazzell
f4cf4ec5b9f264f68d853e7b946fd49bd0d5e4d9
[ "MIT" ]
1
2021-08-14T22:25:24.000Z
2021-08-14T22:25:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020-2021, libracore.com and Contributors # AGPL License. See license.txt from __future__ import unicode_literals import frappe from frappe import _ def set_sync_qty_to_woocommerce(): frappe.db.sql("""UPDATE `tabItem` SET `sync_qty_with_woocommerce` = 1 WHERE `item_group` =...
49.074074
167
0.711698
3e3f99395d98582a129ca348a56f4e8920785dc3
864
py
Python
OMH/2021/crypto/almost_perfect/almost_perfect.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
OMH/2021/crypto/almost_perfect/almost_perfect.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
OMH/2021/crypto/almost_perfect/almost_perfect.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import random import string key_len = 14 def ensure_perfect_secrecy(data): assert all([len(c) <= key_len for c in data]) def encrypt(word, key): shifts = [ord(k) - ord('a') for k in key] pt = [ord(c) - ord('a') for c in word] return ''.join([chr(((p + shifts[i]) % len(string.ascii_lowercase)) + ord...
24.685714
111
0.636574
398881a36b05d633642abe488a6b2610f8ff1f3c
1,917
py
Python
Jombi-Infaction-master/jombi-infaction.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Jombi-Infaction-master/jombi-infaction.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Jombi-Infaction-master/jombi-infaction.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 sys import os import time import socket import random #Code from datetime import datetime now = datetime.now() hour = now.hour minute = now.minute day = now.day month = now.month year = now.year ############## sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) bytes = random._urandom(1490) ############# #...
29.045455
83
0.447574
f2b52c7d9604373145a7c120efeebc990070cce3
473
py
Python
Insertsort.py
dapan2017/Sort-Algorithm
c99235b51383fbedf14cc4ae14be3058defb2c64
[ "Apache-2.0" ]
null
null
null
Insertsort.py
dapan2017/Sort-Algorithm
c99235b51383fbedf14cc4ae14be3058defb2c64
[ "Apache-2.0" ]
null
null
null
Insertsort.py
dapan2017/Sort-Algorithm
c99235b51383fbedf14cc4ae14be3058defb2c64
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Aug 31 16:58:29 2018 @author: fengxue """ def Insertsort(arr): length = len(arr) for i in range(1,length): x = arr[i] for j in range(i,-1,-1): # j为当前位置,试探j-1位置 if x < arr[j-1]: arr[j] = arr[j-1] ...
22.52381
50
0.439746
4b4687c6a4f096380b5a3ecd2cefcc6403b95140
2,125
py
Python
pf_sfii_rrodriguezt.py
Ermys-Code/PracricaFinal_SFII
8f79d1e0053ed75f6406fc64404aa0e8fc5d42a2
[ "MIT" ]
null
null
null
pf_sfii_rrodriguezt.py
Ermys-Code/PracricaFinal_SFII
8f79d1e0053ed75f6406fc64404aa0e8fc5d42a2
[ "MIT" ]
null
null
null
pf_sfii_rrodriguezt.py
Ermys-Code/PracricaFinal_SFII
8f79d1e0053ed75f6406fc64404aa0e8fc5d42a2
[ "MIT" ]
null
null
null
import random print("Welcome to the Guess My Word App") gameDict = {"Paises": ["españa", "portugal", "alemania", "francia", "italia", "inglaterra"], "Colores": ["rojo", "azul", "amarillo", "negro", "blanco", "verde"], "Dias": ["lunes", "martes", "miercoles", "jueves", "viernes", "sabado"], "Asignaturas": ["matematica...
33.203125
320
0.595294
4b1a7ee2f7c814f80605be6222dabf71ae99c1c9
12,811
py
Python
Classes/Board.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Board.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Board.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
import os.path import pygame import Classes.Wall as w import Classes.Brick as b import Classes.Button as btn from Classes.Player_object import Player_object from Classes.Bomb import Bomb from Classes.Powerup import Powerup import ast class Board(object): level = None my_id = 0 pos = None list_of_players...
39.17737
163
0.530638
d9efedc3af1d645958dc81e6222bf8ce5d172484
1,555
py
Python
Packs/CommonScripts/Scripts/CompareIncidentsLabels/CompareIncidentsLabels.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/CompareIncidentsLabels/CompareIncidentsLabels.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/CompareIncidentsLabels/CompareIncidentsLabels.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import traceback try: inc1 = demisto.args().get('incident_id_1') inc2 = demisto.args().get('incident_id_2') res = demisto.executeCommand("getIncidents", {'id': inc1}) if any(is_error(entry) for entry in...
34.555556
111
0.655949
7c4a499694a19ff5fc2404411a69a399657edb28
613
py
Python
SDorker-master/vuln.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SDorker-master/vuln.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SDorker-master/vuln.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 sys import urllib import progressbar def main(): vul=[] fi=open(sys.argv[1],"r") st=fi.read() fi.close() link=st.split("\n") i=1 with progressbar.ProgressBar(max_value=len(link)) as bar: for s in link: try: if s: response=urllib.urlopen(s+"%27") res=response.read() if "error" in re...
19.15625
58
0.626427
7c8206d1756b2a071b77522a6c60101d816b7aa3
1,604
py
Python
Python/text_separator.py
GermainGirndt/TodayILearned
c1dbf032cd1be6cdeddc37269e0c8e0511fcd5df
[ "CC0-1.0" ]
4
2020-06-07T22:06:01.000Z
2020-08-07T10:39:35.000Z
Python/text_separator.py
GermainGirndt/TodayILearned
c1dbf032cd1be6cdeddc37269e0c8e0511fcd5df
[ "CC0-1.0" ]
null
null
null
Python/text_separator.py
GermainGirndt/TodayILearned
c1dbf032cd1be6cdeddc37269e0c8e0511fcd5df
[ "CC0-1.0" ]
1
2020-08-06T20:30:13.000Z
2020-08-06T20:30:13.000Z
# Split text phrases using regex and print results to a file import re texto = "Compartilhe um valor seu Conte um pouco sobre a sua história Compartilhe algo sobre disciplina Comente uma polêmica que envolve sua área de atuação Anuncie uma live e comente sobre o tema Fale sobre um assunto quente envolvendo o seu nicho...
114.571429
1,303
0.773691
6b396f234491d8c4ec5f755df952e0e9f297d581
31,660
py
Python
research/object_detection/meta_architectures/ssd_meta_arch.py
jieming2002/models-quiz8
421dc407a10444cab4bd88c25599077acca96bdb
[ "Apache-2.0" ]
null
null
null
research/object_detection/meta_architectures/ssd_meta_arch.py
jieming2002/models-quiz8
421dc407a10444cab4bd88c25599077acca96bdb
[ "Apache-2.0" ]
null
null
null
research/object_detection/meta_architectures/ssd_meta_arch.py
jieming2002/models-quiz8
421dc407a10444cab4bd88c25599077acca96bdb
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow 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 applica...
44.907801
80
0.704454
862e42459760d36491601c2432ab1ab51fc68d26
1,897
py
Python
Worker/messageIO/CommandIO.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Worker/messageIO/CommandIO.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Worker/messageIO/CommandIO.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
from messageIO.MqttClient import MqttClient import uuid import json class CommandIO: topics = { "test": "ai/toWorker/<id>/test", "presence": "ai/worker/<id>", "architecture": "ai/fromWorker/<id>/architectures", "progress_update": "ai/fromWorker/<id>/progress", "busy": "ai/f...
31.616667
80
0.607275
86db08a22912552f4382bbae921be5f78b5f51cc
60,064
py
Python
.vscode/extensions/ms-python.python-2021.6.944021595/pythonFiles/lib/python/debugpy/common/messaging.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
1
2020-08-07T16:09:57.000Z
2020-08-07T16:09:57.000Z
.vscode/extensions/ms-python.python-2021.6.944021595/pythonFiles/lib/python/debugpy/common/messaging.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
2
2021-03-11T04:07:09.000Z
2022-02-27T09:28:21.000Z
.vscode/extensions/ms-python.python-2021.6.944021595/pythonFiles/lib/python/debugpy/common/messaging.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
1
2019-03-29T01:09:56.000Z
2019-03-29T01:09:56.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. from __future__ import absolute_import, division, print_function, unicode_literals """An implementation of the session and presentation layers as used in the D...
38.651223
104
0.595132
077a4622b2c35ee2130f50ba5d5b7c4ed86f50c7
2,504
py
Python
research/cv/pointnet2/src/lr_scheduler.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/pointnet2/src/lr_scheduler.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/pointnet2/src/lr_scheduler.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.939394
110
0.639377
ed432e760cf006bf3e6f581964effb0bd96fff9c
3,759
py
Python
plugins/tff_backend/to/iyo/see.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/to/iyo/see.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/iyo/see.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...
46.9875
116
0.715616
131d83361471e0eb9f6a4b05afa35a4c26c8ad9b
400
py
Python
Chapter2_Python/16-Classes.py
olebause/TensorFlow2
70fcb7c85c7ead0dc4f88ffa35be5f2eb93e618e
[ "MIT" ]
2
2021-02-13T19:18:00.000Z
2021-11-10T09:54:49.000Z
Chapter4_Intermediate/Classes.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
Chapter4_Intermediate/Classes.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
# C++, Java: this class Animal: def __init__(self, weight, height): self.weight = weight self.height = height def jump(self): print("Jump!") def main(): dog = Animal(10, 0.8) print(dog.height) print(dog.weight) dog.jump() cat = Animal(3, 0.3) print(cat.heigh...
14.814815
39
0.5575
13aaa230a65acc2d7b1065c40acd72e8e1c051dd
1,420
py
Python
preview/middleware.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
1
2019-08-04T21:13:41.000Z
2019-08-04T21:13:41.000Z
preview/middleware.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
23
2018-04-12T20:43:15.000Z
2022-02-10T12:10:53.000Z
preview/middleware.py
consbio/spht
96ec6a0931851b33eace08720d4d18ab34775a52
[ "BSD-2-Clause" ]
null
null
null
from django.conf import settings from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.timezone import now from django.utils.deprecation import MiddlewareMixin PREVIEW_MODE = getattr(settings, 'PREVIEW_MODE', False) PRE...
39.444444
115
0.723239
6a18943015c1249c921df0e5fa2e9f16917a0782
6,834
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_mlag_ipl.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_mlag_ipl.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/onyx_mlag_ipl.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright: Ansible Project # 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'], ...
32.542857
103
0.624524
1639ce37f6e6f26db764bc764aba44f67709df1a
473
py
Python
myems-api/core/version.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-api/core/version.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-api/core/version.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
import falcon import simplejson as json class VersionItem: @staticmethod def __init__(): """"Initializes VersionItem""" pass @staticmethod def on_options(req, resp, id_): resp.status = falcon.HTTP_200 @staticmethod def on_get(req, resp): result = {"version": ...
20.565217
48
0.56871
bc9c4f7e4dc9315ae60315d888338013f2bdeb13
1,547
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/maf_thread_for_species.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/maf_thread_for_species.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/maf_thread_for_species.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/python2.7 """ Read a maf file from stdin and write out a new maf with only blocks having all of the passed in species, after dropping any other species and removing columns containing only gaps. By default this will attempt to fuse together any blocks which are adjacent after the unwanted species have been...
27.625
87
0.659341
4c49342d876d03be30b257f377ffb5b57606c409
1,664
py
Python
Create a Random Number Generator/random_number_generator.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-05T14:30:34.000Z
2021-07-05T14:30:34.000Z
Create a Random Number Generator/random_number_generator.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:36:02.000Z
2021-07-02T15:37:25.000Z
Create a Random Number Generator/random_number_generator.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:15:17.000Z
2021-07-02T15:15:17.000Z
#This program will give you a random number import random from tkinter import * def randomNumber(): lowestNumber=eval(lowNumEnt.get()) highestNumber=eval(highNumEnt.get()) randomNumber=random.randint(lowestNumber,highestNumber) randNum.set(randomNumber) #creates the title and window for th...
33.28
88
0.765024
4c4de440f574fe4766778856a7afc92d20644ad4
3,446
py
Python
ciphey/basemods/Decoders/morse.py
Marnick39/Ciphey
fc854ecf37b688832f25cdec094bcada739bfae3
[ "MIT" ]
2
2020-09-28T23:27:22.000Z
2021-09-09T17:24:26.000Z
ciphey/basemods/Decoders/morse.py
drpacket/Ciphey
b46e00c611ee4b5f5795e967a50b05a63cbb5ef0
[ "MIT" ]
null
null
null
ciphey/basemods/Decoders/morse.py
drpacket/Ciphey
b46e00c611ee4b5f5795e967a50b05a63cbb5ef0
[ "MIT" ]
1
2020-09-29T17:48:23.000Z
2020-09-29T17:48:23.000Z
from typing import Optional, Dict, Any, List import re from loguru import logger import ciphey from ciphey.iface import registry @registry.register class MorseCode(ciphey.iface.Decoder[str, str]): # A priority list for char/word boundaries BOUNDARIES = {" ": 1, "/": 2, "\n": 3} PURGE = {ord(c): None for c...
33.134615
150
0.557458
913b365d82d402ccb3a40eeee793713efde5e1e6
1,283
py
Python
tests/onegov/page/test_polymorphic.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/page/test_polymorphic.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/page/test_polymorphic.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from onegov.page import Page, PageCollection class Article(Page): __mapper_args__ = {'polymorphic_identity': 'article'} def test_article(session): pages = PageCollection(session) root = pages.add_root("Root") assert pages.query().filter( Page.publication_started == True...
33.763158
71
0.707716
5d53f1f14f94bbff8cdea8357593d502bf2a6082
6,574
py
Python
api/api_request.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/api_request.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/api_request.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/6/4 下午2:04 # @Author : Latent # @Email : latentsky@gmail.com # @File : api_request.py # @Software: PyCharm # @PS : 该类用作所有请求的基础类,实现列表请求和详情请求 import json import requests import os from sequence import Sequence from db.redis_mq import RedisMQ class API_Request...
45.972028
132
0.509887
538f1659fc598ebf8f84d4df14d745f372c210df
139
py
Python
workspace/converter.py
i686leak/ae-extendscript
a5aa62d4dd2ac72fb6bd261570231d95ac7d6df4
[ "Apache-2.0" ]
1
2022-02-06T05:11:05.000Z
2022-02-06T05:11:05.000Z
workspace/converter.py
geraldoahnert/adobe-after-effects-extendscript
a5aa62d4dd2ac72fb6bd261570231d95ac7d6df4
[ "Apache-2.0" ]
null
null
null
workspace/converter.py
geraldoahnert/adobe-after-effects-extendscript
a5aa62d4dd2ac72fb6bd261570231d95ac7d6df4
[ "Apache-2.0" ]
null
null
null
import moviepy.editor as moviepy clip = moviepy.VideoFileClip("output/final_project.avi") clip.write_videofile("output/final_project.mp4")
34.75
56
0.827338
073ad2deb620f52127eb81f6143004a359a2beb0
3,263
py
Python
test/test_npu/test_network_ops/test_glu.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_glu.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_glu.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...
40.7875
91
0.57156
ab3b1c2616bdaee2520f90442371894211ef91b8
340
py
Python
nz_crawl_demo/day5/demo8.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day5/demo8.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day5/demo8.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# 使用代理 from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("--proxy-server=http://175.10.24.127:3128") options.add_argument("--headless") #不打开浏览器 options.add_argument("--disable-gpu") #禁用gpu driver = webdriver.Chrome(chrome_options=options) driver.get("http://httpbin.org/ip") print...
30.909091
64
0.776471
91984254ad6639f9bea9ac6474e0f41795ac640b
134
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/03.Data-Types.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/03.Data-Types.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/03.Data-Types.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
number_value = 3 second_value = 4 first_name = "Shihab " second_name = "Mahamud " print(type(number_value)) print(type(first_name))
14.888889
25
0.746269
72af4612ea725c39a5594deabc26ffe668d3f854
1,650
py
Python
MazeSolving/Solver/MazeJsonManager.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
5
2018-02-06T22:48:34.000Z
2020-01-07T20:19:05.000Z
MazeSolving/Solver/MazeJsonManager.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
11
2018-01-31T21:47:49.000Z
2018-04-21T16:42:52.000Z
MazeSolving/Solver/MazeJsonManager.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
2
2020-06-18T05:40:03.000Z
2022-02-02T03:46:30.000Z
import json from collections import defaultdict class MazeJsonManager: @staticmethod def dump_cell_table(cell_table, filename): with open(filename, 'w') as jfp: json.dump(cell_table, jfp) @staticmethod def load_cell_table(filename): with open(filename, 'r') as jfp: table = json.load(jfp) new_table =...
25.384615
84
0.702424
f40512cab6a5c8ddb3f195be3dc234aa19a77f4a
429
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/Shuffle_the_Array.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/Shuffle_the_Array.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/Shuffle_the_Array.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
def shuffle(nums, n): i = 1 temp = [] temp_new = [] while i <= 2 * n: if (i % 2 == 1): if (i == 1): temp.append(i) else: temp.append(i - int(i / 2)) else: temp.append(int(n + (i / 2))) i += 1 for i in temp: ...
17.875
43
0.389277
be6ded6e60f1ab7c8c2f8d4d9da844c4489d65f6
15,077
py
Python
app-backend/tests/test_project.py
MarlonSchultz/SHM
f9082afb34d41ba20de564939c2e7de0caed907e
[ "MIT" ]
null
null
null
app-backend/tests/test_project.py
MarlonSchultz/SHM
f9082afb34d41ba20de564939c2e7de0caed907e
[ "MIT" ]
1
2019-03-12T13:35:46.000Z
2019-03-12T13:35:46.000Z
app-backend/tests/test_project.py
MarlonSchultz/SHM
f9082afb34d41ba20de564939c2e7de0caed907e
[ "MIT" ]
1
2019-03-15T13:29:57.000Z
2019-03-15T13:29:57.000Z
from sqlalchemy.exc import OperationalError, ProgrammingError from app import app_object from unittest import mock import unittest import app # # # Helper Functions & Classes # # # def _db_session_add_side_effect(project): project.id = 1 return project class MockDatabaseModelResult: def __init__(s...
41.193989
114
0.715527
431b47e9a2284e86a1cd92003cbda3f4cafcb866
5,235
py
Python
scripts/leak-checker.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
1
2022-01-28T22:29:44.000Z
2022-01-28T22:29:44.000Z
scripts/leak-checker.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
null
null
null
scripts/leak-checker.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
1
2022-01-28T21:10:41.000Z
2022-01-28T21:10:41.000Z
from bs4 import BeautifulSoup import requests requests.packages.urllib3.disable_warnings() from concurrent.futures import ThreadPoolExecutor import colorama colorama.init(autoreset=True) import os import argparse folder = os.path.dirname(__file__) visited_pages = [] def main(): global leaky_paths with ope...
35.371622
127
0.548997
4a6be5fe0940e436df16981634fa835c8de359b3
7,192
py
Python
python/tests/test_sbtab2sbml.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/tests/test_sbtab2sbml.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/tests/test_sbtab2sbml.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
#!/usr/bin/env python import unittest import sys import os import copy sys.path.insert(0,os.path.join(os.path.dirname(__file__), '..')) import SBtab import sbtab2sbml class TestSBtabConversion(unittest.TestCase): def setUp(self): ''' setup SBtabTable class with files from test directory '...
47.006536
133
0.57842
e097bb3a2a5478a47e5c45bc1855d9545ad94689
420,856
py
Python
Packs/CrowdStrikeOpenAPI/Integrations/CrowdStrikeOpenAPI/CrowdStrikeOpenAPI.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CrowdStrikeOpenAPI/Integrations/CrowdStrikeOpenAPI/CrowdStrikeOpenAPI.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CrowdStrikeOpenAPI/Integrations/CrowdStrikeOpenAPI/CrowdStrikeOpenAPI.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * # flake8: noqa: E501 class Client: def __init__(self, params: Dict): self.cs_client = CrowdStrikeClient(params) def add_role_request(self, domain_mssprolerequestv1_resources): data = assign_params(resources=domain_mssprolerequestv...
42.425
615
0.744913
98d15698f89c157350e285480ca5ba440342f225
10,115
py
Python
src/onegov/election_day/views/upload/wabsti_exporter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/upload/wabsti_exporter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/upload/wabsti_exporter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import transaction from base64 import b64decode from onegov.core.security import Public from onegov.election_day import _ from onegov.election_day import ElectionDayApp from onegov.election_day.collections import ArchivedResultCollection from onegov.election_day.formats import import_election_wabstic_majorz from onego...
32.009494
79
0.601285
c7da3fdeb3196c7836373e85eb83eeddb7774769
70,838
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_aaa_server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_aaa_server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cloudengine/ce_aaa_server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
32.479597
140
0.595627
1bdec6be1afbfdf838f4c2e5f2dd49c2ad63a895
92
py
Python
2015/03/table-unemployment-msa-20150227/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/table-unemployment-msa-20150227/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/table-unemployment-msa-20150227/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 = '1I2aOUITrCXoVwJ1-USKNL6KFTpy3u537uKLGdZ4z_VM'
23
68
0.836957
1beb693e07738700e446074dc20c47c71910a7aa
985
py
Python
数据结构/NowCode/A4_quickSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/A4_quickSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/A4_quickSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
def quick_sort(li, start, end): # 分治 一分为二 # start=end ,证明要处理的数据只有一个 # start>end ,证明右边没有数据 if start >= end: return # 定义两个游标,分别指向0和末尾位置 left = start right = end # 把0位置的数据,认为是中间值 mid = li[left] while left < right: # 让右边游标往左移动,目的是找到小于mid的值,放到left游标位置 while lef...
25.25641
48
0.53401
dc0437793a6d7c7964a8f33593550f1226355633
13,586
py
Python
a2p2_170111updated/a2p2.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
1
2017-08-25T07:46:30.000Z
2017-08-25T07:46:30.000Z
a2p2_170111updated/a2p2.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
null
null
null
a2p2_170111updated/a2p2.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
null
null
null
import glob, re, os, operator, itertools, copy, collections from math import sin, cos, acos,radians import parser import our_module import ast import sys # change runjob.sh #our_module.change_vasp_path() open('compound_directories', 'w').close() # we choose files to work on depending on arguments given to the script,...
38.596591
119
0.466657
29599efadc16bfc707b672465c9c348610107ec8
1,142
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_version_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_version_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_version_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # -*- codi...
30.864865
85
0.57268
d3efcffd4b6bdf6077967dce5157c08f21eac1e9
3,115
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/scaleway_organization_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/scaleway_organization_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/scaleway_organization_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2018, Yanis Guenane <yanis+ansible@guenane.org> # 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':...
28.577982
125
0.650401
d3f0965751b0ef36f7f6f9ae5e8fc5ae6711d700
3,957
py
Python
research/cv/ntsnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ntsnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ntsnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.01087
118
0.70609
31c204863348354dc33ddce88eced0cb66cf1765
7,433
py
Python
skripte/export_latex.py
Ilaris-Tools/IlarisDB
9608afa0ebc69c2bbc13af939cb2c71321f5da37
[ "MIT" ]
null
null
null
skripte/export_latex.py
Ilaris-Tools/IlarisDB
9608afa0ebc69c2bbc13af939cb2c71321f5da37
[ "MIT" ]
4
2022-03-13T22:56:35.000Z
2022-03-16T11:33:27.000Z
skripte/export_latex.py
Ilaris-dev/IlarisDB
9608afa0ebc69c2bbc13af939cb2c71321f5da37
[ "MIT" ]
null
null
null
import pylatex from pylatex.base_classes import Arguments as A from pylatex import Command as C from pylatex.utils import NoEscape as NE import interface as db def kreaturcommand(id, name, bes, klasse, kasten): cmd = f"\kreatur{id}" args = A(name, NE(bes), f"gfx/kreaturen/{klasse}", NE(kasten)) runs = C("...
28.698842
84
0.525225
b44f0d0a3d9a6d56c64ce679dde09009b7d07e3e
311
py
Python
01.DataStructure/Tree/SY/b11279_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
01.DataStructure/Tree/SY/b11279_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
01.DataStructure/Tree/SY/b11279_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
# b11279_SY import sys import heapq heap = [] N = int(input()) for _ in range(N): x = int(sys.stdin.readline()) if x == 0: if len(heap) >= 1: print(-heapq.heappop(heap)) # index 1 else: print(0) elif x > 0: heapq.heappush(heap, -x) # 부호를 변경하여 힙에 삽입
20.733333
50
0.514469
c311710b9f3b25360fd40f6110b650765b202584
1,285
py
Python
DataProcess/my_paper/train.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/my_paper/train.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/my_paper/train.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ @File :train.py @Author :Zhang Qihang @Date :2022/1/28 14:43 @Description : 进行数据的分类测试 """ import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from net.resnet import Classifier_RESNET # 首先划分训练集和测试集 df = pd.read_csv("../da...
34.72973
112
0.718288
c37620a20fec9f96f88c4952bf06f8dd466fe088
6,020
py
Python
start/init.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
start/init.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
start/init.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'init.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # 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 QtCor...
43.309353
81
0.662458
48fb36f92abb85b78e07d6a469cc6f7cdce5fa1c
3,165
py
Python
gestionTomaDatos/admin.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionTomaDatos/admin.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionTomaDatos/admin.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# GESTION TOMA DATOS from django.contrib import admin from gestionTomaDatos.models import Participantes, Investigador_Clinico, Estudio, ProtocoloClinico, AdqData_EEG_Protocolo # Register your models here. # Para visualizar mas campos de la base de datos en # el panel de administracion tengo que crear esta clase cla...
62.058824
324
0.807267
818faf44d34b64665ed096b4bf055e8e5624ae16
365
py
Python
Grundlagen/TigerJython/08-Drehrad.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
2
2020-09-24T12:11:16.000Z
2022-03-31T04:47:24.000Z
Grundlagen/TigerJython/08-Drehrad.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-27T15:06:27.000Z
2021-03-01T16:32:48.000Z
Grundlagen/TigerJython/08-Drehrad.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-24T05:12:35.000Z
2021-02-24T05:12:35.000Z
from gturtle import * def dreieck(): repeat 3: forward(100) right(120) makeTurtle() runde = 1 while runde <= 6: # neu! if runde == 1 or runde == 3 or runde == 5: setPenColor("red") else: setPenColor("green") fillToPoint() # neu ! dreieck() ...
18.25
47
0.490411
1eff5ffbd77141121103ff2da280771c0aac014f
1,214
py
Python
Machine Learning Models/Practice/Abhishek/data_preprocessing_template.py
FriendsUnited/S-Park
c58250f4c67d13eb8a82f4c2fe171291f4857cc3
[ "MIT" ]
null
null
null
Machine Learning Models/Practice/Abhishek/data_preprocessing_template.py
FriendsUnited/S-Park
c58250f4c67d13eb8a82f4c2fe171291f4857cc3
[ "MIT" ]
null
null
null
Machine Learning Models/Practice/Abhishek/data_preprocessing_template.py
FriendsUnited/S-Park
c58250f4c67d13eb8a82f4c2fe171291f4857cc3
[ "MIT" ]
null
null
null
# Data Preprocessing Template # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Data.csv') X = dataset.iloc[:, :-1].values y = dataset.iloc[:, 3].values #Filing empty spots with mean values from sklearn.impute import Simp...
28.232558
92
0.768534
48736805c3c993242f66544e76c5f7cadf41c25d
2,587
py
Python
src/ztc/nginx/statuslog.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/nginx/statuslog.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/nginx/statuslog.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python #pylint: disable-msg=W0232 """ Nginx Status Log check class: calculates number of responses in given status (since last run) Usage: 1. configure status_log log format in nginx config (http section): log_format status_log '$status <anything you want additionaly>'; 2. Add statuslog log to all serv...
28.119565
76
0.614612
4888568e6ed10ca2d16243965c58b117275da639
3,631
py
Python
scripts/arrange.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
scripts/arrange.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
scripts/arrange.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# python3 arrange.py > status.md # 리팩토링 해야함 import subprocess as sp import os import time EXCEPT_FOLDER = [ 'solution', '.git', 'solutions', '.github', '__pycache__', 'markdown', 'scripts', 'assets'] def getProblem(Dir): ret = list() with open(f"{Dir}/list.md", 'r') as f: ret = f.readlines() ...
27.300752
122
0.541999
6f850d034f76018077812c5fb152570e469b8083
887
py
Python
Agent4_a=0.5/trainer_Agent4_a05.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
Agent4_a=0.5/trainer_Agent4_a05.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
Agent4_a=0.5/trainer_Agent4_a05.py
schigeru/Bachelorarbeit_Code
261b2552221f768e7022abc60a4e5a7d2fedbbae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import gym from stable_baselines.common.policies import MlpPolicy from stable_baselines.common.vec_env import DummyVecEnv from stable_baselines.common.vec_env import SubprocVecEnv from stable_baselines import PPO2 from forward_kin_Agent4_a05 import PandaRobotGymEnv import numpy as np policy_nam...
31.678571
115
0.765502
6f91b43a9b227df341de3fb1f7547e77e5444557
2,154
py
Python
1-projects/Data-Structures-master/doubly_linked_list/doubly_linked_list.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
1-projects/Data-Structures-master/doubly_linked_list/doubly_linked_list.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
1-projects/Data-Structures-master/doubly_linked_list/doubly_linked_list.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
""" Each ListNode holds a reference to its previous node as well as its next node in the List. """ class ListNode: def __init__(self, value, prev=None, next=None): self.prev = prev self.value = value self.next = next """ Our doubly-linked list class. It holds references to the ...
26.268293
58
0.607707
6fc08517e3678856b152cc0c437915a25080d905
3,688
py
Python
apps/front/forms.py
liuxianshengqwertyuiop/index
17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927
[ "Apache-2.0" ]
null
null
null
apps/front/forms.py
liuxianshengqwertyuiop/index
17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927
[ "Apache-2.0" ]
null
null
null
apps/front/forms.py
liuxianshengqwertyuiop/index
17d5ae1d44a9c4ba41cf7983e9cf5a3c43cdd927
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,IntegerField from wtforms.validators import Regexp,InputRequired,Length,EqualTo import hashlib from apps.front.models import FrontUser from apps.common.memcachedUtil import getCache from wtforms.validators import ValidationError class BaseForm(FlaskForm):...
38.416667
119
0.689262
d226be686f738053e62021d6cf6b5709965e478d
1,016
py
Python
2019/finals/web-gphotos-finals/app/project/urls.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/web-gphotos-finals/app/project/urls.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/web-gphotos-finals/app/project/urls.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.882353
74
0.71063
fbcf3e3cd0f7bf83c054bac9ca07e4dc5502aa69
331
py
Python
Python/Courses/30-Days-of-Python.CodingEntrepreneurs/Day-25/server.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/30-Days-of-Python.CodingEntrepreneurs/Day-25/server.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/30-Days-of-Python.CodingEntrepreneurs/Day-25/server.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def app(environ, start_response): response_body = b"<h1>Salam World<h1>" for i in environ: print(i, ":", environ[i]) print("Done\n") status_code = "200 OK" response_header = [ ("Content-Type", "text/html") ] start_response(status_code, response_header) return [resp...
17.421053
48
0.607251
fbd00f8378ffd79b0d620e6128e2144d357bc03c
411
py
Python
python/python_backup/Python_Progs/paint_algorithm.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/paint_algorithm.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/paint_algorithm.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def fun_rec(x,y,A): if(A[x][y]==0): print("yup!!") def wait1(): for i in range(10000): for j in range(1000): #loop #start of real prog #fun A = [[0,0,1,0,0,0,0,0,0,1,0], [0,0,1,0,0,0,1,0,0,1,0], [0,0,1,1,1,1,1,0,0,1,0], [0,0,0,0,0,0,0,0,0,0,0], [1,0,0,0,0,0,0,0,0,0,0], #11 columns 8 rows [0,...
16.44
54
0.489051
83755922389694deaaf7f4a6ca2cfd584bc0d941
16,798
py
Python
tests/integration/server/api/users_api_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/integration/server/api/users_api_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/integration/server/api/users_api_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
34.281633
86
0.597154
f7cb4253d49f6e7fec087ba1cea4ef5042af7cf1
4,250
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_syslog_remote.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import pa...
46.195652
126
0.696235