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
f0f3bfe3500a728892e4837f16a7fd58acec1e90
2,357
py
Python
BCACTF/2021/crypto/FNES_1/fnes1.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BCACTF/2021/crypto/FNES_1/fnes1.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BCACTF/2021/crypto/FNES_1/fnes1.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random import math import time import binascii from Crypto.Cipher import ARC4 from Crypto.Hash import SHA with open("flag.txt", "r") as f: flag = f.read().strip().encode("ascii") with open("key.txt", "r") as f: key = int(f.read().strip()) target_query = "Open sesame... Flag ple...
37.412698
106
0.621553
4a056270b07922775795b37e09350f8a0deaacab
91
py
Python
src/onegov/agency/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency.theme.agency_theme import AgencyTheme __all__ = ( 'AgencyTheme', )
15.166667
56
0.747253
a83dcb5f6e6a57d34c04c9279b6eb7b9f157f166
566
py
Python
repo/plugin.video.gdrive/decryptFolder.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.gdrive/decryptFolder.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.gdrive/decryptFolder.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
from resources.lib import encryption #from subprocess import call import sys import os saltFile = str(sys.argv[1]) password = str(sys.argv[2]) source = str(sys.argv[3]) target = str(sys.argv[4]) encrypt = encryption.encryption(saltFile,password) #encrypt.encryptString(file) #print encrypt.decryptString(file) def ...
20.962963
85
0.738516
4f4b700614398a20242ff46c7db286979aa3bc8d
16,026
py
Python
quant/cli.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/cli.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/cli.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import argparse import logging from logging.handlers import RotatingFileHandler import sys import time from quant.datafeed import DataFeed from quant.observers.t_bfx_lq_new import TriangleArbitrage as TriangleArbitrageBfxLq from quant.observers.t_binance import TriangleA...
39.965087
115
0.537502
4fa404f270b0ba83bd9e17f968603a801bce8ace
2,942
py
Python
research/cv/StarGAN/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/StarGAN/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/StarGAN/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.445783
96
0.632563
50b66fb418e048890157729a694534853b273ad6
2,620
py
Python
Merger.py
lelocodelo/coding-task-2
3d7ec9385076a51fd3c9d11d91ea09a5f8cd2d30
[ "MIT" ]
null
null
null
Merger.py
lelocodelo/coding-task-2
3d7ec9385076a51fd3c9d11d91ea09a5f8cd2d30
[ "MIT" ]
null
null
null
Merger.py
lelocodelo/coding-task-2
3d7ec9385076a51fd3c9d11d91ea09a5f8cd2d30
[ "MIT" ]
null
null
null
from operator import itemgetter import ast """ # This program implements the function MERGE, which takes a list of lists that represent intervals and merges all overlaping intervals # into one and returning all merged intervals into an output file named output.txt. # @author Leander van Diepen # @license ...
40.9375
167
0.649237
50d51f18dd2d721e8f8c4d94899d17e5a56383d8
4,873
py
Python
fence/blueprints/register.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
fence/blueprints/register.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
fence/blueprints/register.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
""" Endpoints for user registration. Registration means that a user provides their name, org, and email, in order to gain some predefined permissions. """ import flask from flask_sqlalchemy_session import current_session from flask_wtf import FlaskForm from wtforms import StringField from wtforms.validators import Dat...
38.370079
93
0.697312
0fd91b1372dd002b1dc34764d99024b1bf7147e8
23,210
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/nso/test_nso.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/nso/test_nso.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/nso/test_nso.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Cisco and/or its affiliates. # # 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 v...
35.166667
128
0.507195
d10763866a1536ca7500fba99fe3f435de89ddc3
63
py
Python
verto/__init__.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/__init__.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/__init__.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
# flake8: noqa from .Verto import Verto __version__ = '1.0.1'
12.6
24
0.698413
7e256469cac5f0fe9b52aba909a132c80bc687d1
170
py
Python
Code/Variables/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/Variables/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/Variables/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Task: Change the values of variables "a" and "b" to different numbers or even # to strings and observe what happens? a = 1 b = 2 print(a + b)
17
79
0.676471
adb15c6cadec20c2e478f7b2f2358da43fa8a266
289
py
Python
src/third_party_module/deal_with_excel/c.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/deal_with_excel/c.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/third_party_module/deal_with_excel/c.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ 处理excel的模块: win32com glob xlrd xlrd主要是用来读取excel文件 xlwt xlwt主要是用来写excel文件 xlutils xlutils结合xlrd可以达到修改excel文件目的 deal_with_excel openpyxl可以对excel文件进行读写操作 xlsxwriter xlsxwriter可以写excel文件并加上图表 """
15.210526
36
0.636678
cbb3ea4092ce63c15d9f41468c84864341d75227
195
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_1/fix_link_for_customer_from_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/fix_link_for_customer_from_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/fix_link_for_customer_from_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): for c in frappe.db.sql('select name from tabCustomer where ifnull(lead_name,"")!=""'): customer = frappe.get_doc('Customer', c[0]) customer.update_lead_status()
32.5
87
0.723077
cbce17ff801d266aeb7320f03810e11557d9f479
9,591
py
Python
LINE/2021/web/diveinternal/private/app/main.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
LINE/2021/web/diveinternal/private/app/main.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
LINE/2021/web/diveinternal/private/app/main.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import schedule, signal, queue, threading, time,sys, os, datetime, multiprocessing, requests, telegram, jsonify, threading, requests, re, hashlib, hmac, random, base64 from threading import Thread import flask from flask import Flask, request, render_template, json from flask_bootstrap import Bootstrap from flask_cors...
33.890459
183
0.602231
1dd57bdcf20b32f4fff4ad947b68cc9d511ce74f
3,911
py
Python
indl/model/autoshape_mixin.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
indl/model/autoshape_mixin.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
indl/model/autoshape_mixin.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
__all__ = ['AutoShapeMixin'] from typing import Any, Mapping, Optional, Sequence, TypeVar, Union import tensorflow as tf import tensorflow.keras.layers as tfkl T = TypeVar('T') Nested = Union[T, Sequence[T], Mapping[Any, T]] class AutoShapeMixin: """ Mixin for `tf.keras.layers.Layer`s and subclasses to a...
46.559524
215
0.682178
382cf82b422de71fa10f14965e487d67a0cc2c8c
168
py
Python
PYTHON/Sets/set_add.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/set_add.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/set_add.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == '__main__': N = int(input()) res = set() for _ in range(N): res.add(input()) print(len(res))
15.272727
26
0.547619
9320bdc3b81c13cfdee584dd180001ce39868c92
6,714
py
Python
Test/RestAPI.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Test/RestAPI.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Test/RestAPI.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
import json import shutil import time import requests class RestAPI: def __init__(self, domain: str, fallback_domain: str): self.domain = domain self.fallback_domain = fallback_domain self.auth = requests.auth.HTTPBasicAuth(username='mario', password='super') self.check_domain() ...
29.318777
118
0.578344
9377fefebdad4aaa5c6c05fd47f447288033f969
1,943
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/front_controller.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/front_controller.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/front_controller.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" @author: Gordeev Andrey <gordeev.and.and@gmail.com> *TL;DR Provides a centralized entry point that controls and manages request handling. """ class MobileView: def show_index_page(self): print("Displaying mobile index page") class TabletView: def show_index_page(self): print("Displaying...
23.409639
78
0.650026
8783df71ba2f6dfe81b0c10d914ecb07b298474a
22,808
py
Python
lab3/stat_tests.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
1
2018-04-18T19:55:42.000Z
2018-04-18T19:55:42.000Z
lab3/stat_tests.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
null
null
null
lab3/stat_tests.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
null
null
null
import scipy.stats as ss import numpy as np import statsmodels.stats.api as sms from math import sqrt # import data def getdata(path): datalist =[] data = open(path, "r") for line in data: line = line.rstrip() line = float(line) datalist.append(line) data.close() return dat...
41.169675
112
0.661172
35a8e2247746db9bcf825b113a2d6d490d968e95
296
py
Python
test.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
from os import truncate import pathlib if False: ciao_path = "D:/home/Tools/kazoeciao158" result_dir = "./result" p = pathlib.Path(ciao_path + "/" + result_dir) print(p) print(p.resolve()) if True: array = None if not array: print("空です.") array = [] if not array: print("空です.")
14.095238
47
0.652027
35c9bb258f2face45eb40ac1f0a49eadfbec90ab
469
py
Python
src/shl-deep-learning-prototyping-architectures/lstm.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
1
2021-04-13T20:16:36.000Z
2021-04-13T20:16:36.000Z
src/shl-deep-learning-prototyping-architectures/lstm.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
null
null
null
src/shl-deep-learning-prototyping-architectures/lstm.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
null
null
null
from tensorflow import keras from tensorflow.keras import layers def make_lstm(input_shape, output_classes): """ Basic LSTM model without Non-Shallow feature encoding. """ model = keras.Sequential() model.add(layers.LSTM(100, input_shape=input_shape)) model.add(layers.Dropout(0.5)) # Avoid LST...
31.266667
65
0.729211
57f131cde8a8ac71aa613a0e85a2adf7f523b109
1,508
py
Python
scripts/check-mysql.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
1
2022-01-28T22:29:44.000Z
2022-01-28T22:29:44.000Z
scripts/check-mysql.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
null
null
null
scripts/check-mysql.py
evildrummer/1337-observer
621eb16711d9f70a59fb5524fc990dcab1004b14
[ "MIT" ]
1
2022-01-28T21:10:41.000Z
2022-01-28T21:10:41.000Z
import mysql.connector from concurrent.futures import ThreadPoolExecutor import argparse def main(): with open(input_file, "r") as myfile: content = myfile.read() # parse nmap normal format output split_port = content.split("3306/tcp") with ThreadPoolExecutor(max_workers=20) as executor: ...
34.272727
94
0.628647
aa3921269c5c6f9d35f8a566a30d919778120c07
656
py
Python
lib/widgets/elements/importctrl.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/elements/importctrl.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/elements/importctrl.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import (QPushButton, QGridLayout, QCheckBox) class ImportControl(QGridLayout): def __init__(self, parent=None): super(ImportControl, self).__init__() self.selectedAlgorithm = 0 self.__controls() self.__layout() self.setVerticalSpacing(0) self.en...
26.24
65
0.640244
dc657a6a090386431b0c937cdb53ee8026b474ba
1,996
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/xenserver/FakeXenAPI.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/xenserver/FakeXenAPI.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/xenserver/FakeXenAPI.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright: (c) 2019, Bojan Vitnik <bvitnik@mainstream.rs> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) FAKE_API_VERSION = "1.1" class Failure(Exception): def __init__(self, details): self.details = details def __str__(self):...
29.791045
92
0.622244
21e9b4e98173eebc98361cd26ca52509f938339e
10,644
py
Python
src/onegov/notice/collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/notice/collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/notice/collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.collection import Pagination from onegov.core.utils import increment_name from onegov.core.utils import normalize_for_url from onegov.notice.models import OfficialNotice from onegov.user import User from onegov.user import UserGroup from sqlalchemy import asc from sqlalchemy import cast from sqlalchemy...
31.122807
79
0.590192
8033c8b4af5e50a8a5725e4af57e9feb88b1b6b6
284
py
Python
Packs/ServerLogs/Scripts/ServerLogsDocker/ServerLogsDocker.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ServerLogs/Scripts/ServerLogsDocker/ServerLogsDocker.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ServerLogs/Scripts/ServerLogsDocker/ServerLogsDocker.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 * res = demisto.executeCommand('ssh', {'cmd': 'cat /var/log/demisto/docker.log', 'using': 'localhost'}) output = 'File: /var/log/demisto/docker.log\n' output += res[0].get('Contents').get('output') return_results(output)
31.555556
101
0.725352
d50c034a06b9133348f5debafe517fedc3cf9945
7,938
py
Python
Python/TestPega.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/TestPega.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/TestPega.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
1
2020-08-16T00:11:55.000Z
2020-08-16T00:11:55.000Z
# TestPega.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person or orga...
36.580645
122
0.536407
898e5965f14a63118fb0adaed51c34cd303fd512
779
gyp
Python
source/pkgsrc/lang/nodejs/patches/patch-tools_v8_gypfiles_v8.gyp
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/nodejs/patches/patch-tools_v8_gypfiles_v8.gyp
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/nodejs/patches/patch-tools_v8_gypfiles_v8.gyp
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-tools_v8_gypfiles_v8.gyp,v 1.1 2020/10/17 21:48:41 mrg Exp $ Add -larm on netbsd arm platforms. --- tools/v8_gypfiles/v8.gyp.orig 2020-10-07 10:47:43.000000000 -0700 +++ tools/v8_gypfiles/v8.gyp 2020-10-17 13:16:57.485883322 -0700 @@ -903,6 +903,12 @@ }], # Platforms that don't have C...
38.95
95
0.568678
1249c7572640e9809ede0f2bfbf73d629d9a6942
1,457
py
Python
dbs/U6/U6.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
dbs/U6/U6.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
dbs/U6/U6.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
import requests from bs4 import BeautifulSoup url = "https://www.heise.de/thema/https" def getTitles(): titles = [] # there is 5 pages and the first page has no suffix for pages in range (6): if(pages == 0): html = requests.get(url).text else: html = requests.get(url + "/seite-" + str...
26.017857
70
0.608099
89daef6542860ec29269fa6998ca78a1d10f7276
919
py
Python
tools/legacy/mw2-wtb-converter/convertWtb.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/mw2-wtb-converter/convertWtb.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/mw2-wtb-converter/convertWtb.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import sys import json import glob import readWtb importFilenames = sys.argv[1:] for importFilename in importFilenames: exportFilename = importFilename.replace(".wtb", ".obj").replace(".WTB", ".obj") print "reading " + importFilename try: with open(importFilename, "rb") as input_fd: ...
29.645161
128
0.566921
61523d2af6bc7218fdf80a19d6905e38b998c899
1,889
py
Python
Bwinf-Aufgabe2-Wildschweine/heatmap.py
laugengebaeck/Bwinf-36-Runde2
0bc410b4708e6e153bd1a44d40754434c57e615f
[ "Apache-2.0" ]
null
null
null
Bwinf-Aufgabe2-Wildschweine/heatmap.py
laugengebaeck/Bwinf-36-Runde2
0bc410b4708e6e153bd1a44d40754434c57e615f
[ "Apache-2.0" ]
null
null
null
Bwinf-Aufgabe2-Wildschweine/heatmap.py
laugengebaeck/Bwinf-36-Runde2
0bc410b4708e6e153bd1a44d40754434c57e615f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import matplotlib.pylab as plt from matplotlib import colors import os def possible_paths(n): path = n matrix = np.loadtxt(path, skiprows=1) N = len(matrix) # top -> bot top_to_bot_float = np.matrix([[0.0] * N] * N) top_to_bot_bool = np.matrix([[Tru...
30.467742
95
0.544203
2c1f9e97d5b9319758df55eb936b48e0fd85a711
7,533
py
Python
python-bildungslogin/src/univention/bildungslogin/license_retrieval/__init__.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/src/univention/bildungslogin/license_retrieval/__init__.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/src/univention/bildungslogin/license_retrieval/__init__.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2022 Univention GmbH # # http://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as published by the Free Software Foundation. # # Binary versions o...
35.701422
93
0.553963
9fa373c06d6155abe656e3eb2f9a76e6ac9cc29d
23,574
py
Python
20-hs-redez-sem/groups/01-decentFS/src/decentfs/api.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/01-decentFS/src/decentfs/api.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/01-decentFS/src/decentfs/api.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import bacnet.crypto import bacnet.feed import bacnet.pcap import cbor2 import logging import os import pathlib import time from ast import literal_eval from typing import BinaryIO, Union, Optional from hashlib import blake2b from hmac import compare_digest class DecentFsException(Exception): """DecentFs generic ...
35.449624
158
0.57538
4ce43f1f4ec8bc48b5687a5f78c28e48a52cda0f
8,291
py
Python
src/data_parser.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/data_parser.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/data_parser.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
import os import numpy as np import base64 import json import math import datetime import pandas as pd import helper.log_helper as log_helper # Define Logger without file handle logger = log_helper.get(False, "Data Parse") class DataParser: def parse_input_data(self, file_path, calibration=True, custom_offset=0...
41.455
121
0.631287
e24097f7bfd7915e975ba4553bbb4a52f29293cb
2,655
py
Python
cs/lambda_cs/03_data_structures/Sprint-Challenge--Data-Structures-Python/reverse/reverse.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/03_data_structures/Sprint-Challenge--Data-Structures-Python/reverse/reverse.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/03_data_structures/Sprint-Challenge--Data-Structures-Python/reverse/reverse.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Data Structures :: Sprint Challenge Recursive reversal of singly-linked list. """ class Node: def __init__(self, value=None, next_node=None): # the value at this linked list node self.value = value # reference to the next node in the list self.next_node = next_node def ge...
27.65625
77
0.614313
e2846c4c115781151fc17d6f98026a92f91c0c1b
872
py
Python
src/server/tests/test_canvas.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/tests/test_canvas.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/tests/test_canvas.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
import pytest from ..app.repository.CanvasRepository import CanvasRepository from mongoengine import disconnect, connect import uuid # from datetime import datetime, timedelta canvasRepo = CanvasRepository(testing=True) @pytest.fixture(scope="session", autouse=True) def app(): disconnect() db = connect('t...
19.818182
62
0.670872
e2b57ed1ce55d287992a293110d98f1a7c6e98d1
840
py
Python
xiaobu/plugins/Volume.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
xiaobu/plugins/Volume.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
xiaobu/plugins/Volume.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8-*- from robot.Player import MusicPlayer from robot import logging from robot.sdk.AbstractPlugin import AbstractPlugin logger = logging.getLogger(__name__) class Plugin(AbstractPlugin): def __init__(self, con): super(Plugin, self).__init__(con) self.player = None def handle...
28.965517
57
0.577381
2c52d959441d9addc02912040beeba9b8564f31c
1,216
py
Python
hello/hello_kivy.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_kivy.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_kivy.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# import kivy # # kivy.require('1.0.6') # replace with your current kivy version ! # from kivy.app import App # from kivy.uix.label import Label ## pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew from kivy.app import App from kivy.lang import Builder from kivy.uix.screenmanager import Screen B...
22.109091
72
0.604441
46e6f3a316881a87da810ae427215aea930ab2f3
343
py
Python
text_processing_python/configure_boto3.py
timgrohmann/exWM
6553485eaec02af2f53aa0b4681c6c5e62666fb9
[ "MIT" ]
7
2018-12-07T10:45:05.000Z
2020-02-14T08:47:42.000Z
text_processing_python/configure_boto3.py
timgrohmann/exWM
6553485eaec02af2f53aa0b4681c6c5e62666fb9
[ "MIT" ]
57
2019-03-19T09:59:10.000Z
2022-02-26T10:03:29.000Z
text_processing_python/configure_boto3.py
timgrohmann/exWM
6553485eaec02af2f53aa0b4681c6c5e62666fb9
[ "MIT" ]
2
2018-12-07T10:17:26.000Z
2018-12-07T11:02:23.000Z
import pathlib import os with open(os.path.join(pathlib.Path.home(), '.aws', 'credentials'), 'w') as cred: cred.write(''' [default] aws_access_key_id = YOUR_KEY aws_secret_access_key = YOUR_SECRET ''') with open(os.path.join(pathlib.Path.home(), '.aws', 'config'), 'w') as conf: conf.write(''' [default] reg...
22.866667
81
0.658892
64648177818cc766530088bc7b3e5122de22b3f9
1,431
py
Python
src/visitpy/visit_utils/src/slurm.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/src/slurm.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_utils/src/slurm.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. #***************************************************************************** """ file: slurm.py ...
33.27907
93
0.575821
64d27613ad9bb70014f3b225b2f9fbbfc3e04fad
7,347
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/test_journal_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/test_journal_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/test_journal_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import unittest, frappe from frappe.utils import flt from erpnext.accounts.doctype.account.test_account import get_inventory_account from erpnext.except...
34.492958
144
0.740302
80be72aeb49b14bb56c6580d0ce11aa97911b453
2,923
py
Python
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/retrieve_all_data_rules.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/retrieve_all_data_rules.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/retrieve_all_data_rules.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Any, Dict, List, Tuple from watchmen_data_kernel.storage import TopicDataService from watchmen_model.admin import Factor from watchmen_model.dqc import MonitorRule, MonitorRuleCode from watchmen_utilities import ArrayHelper, is_decimal from .data_service_utils import bu...
42.362319
104
0.798495
b3003846f41be404708da20f37ad94aff613d4fb
53
py
Python
cal.py
MSbalasubramanian/renaming
614ad90505e3c92cd9d0eb73113d998a824e9fae
[ "Apache-2.0" ]
null
null
null
cal.py
MSbalasubramanian/renaming
614ad90505e3c92cd9d0eb73113d998a824e9fae
[ "Apache-2.0" ]
null
null
null
cal.py
MSbalasubramanian/renaming
614ad90505e3c92cd9d0eb73113d998a824e9fae
[ "Apache-2.0" ]
null
null
null
a=int(input("enter the value of a")) print(sum(a+9))
17.666667
36
0.660377
4417306e067f77debafac4a67c2a5c5dd19b0f73
6,080
py
Python
DeepRTS/python/_py_gui_old.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
1
2020-01-08T22:20:37.000Z
2020-01-08T22:20:37.000Z
DeepRTS/python/_py_gui_old.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
1
2021-11-11T18:39:56.000Z
2021-11-11T22:15:59.000Z
DeepRTS/python/_py_gui_old.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
null
null
null
import os import numpy as np import contextlib with contextlib.redirect_stdout(None): import pygame from DeepRTS.python import Sprites dir_path = os.path.dirname(os.path.realpath(__file__)) class FogTile(pygame.sprite.DirtySprite): def __init__(self, group, x, y): pygame.sprite.DirtySprite.__init__...
32.864865
138
0.585526
443279285be08750cc972a634d67cea1162044f7
1,142
py
Python
hippocampus_tools_ros/scripts/barometer_gazebo.py
Zarbokk/HippoCampus_Tools
1871facc5e36115da60fe689b0630218b381d241
[ "BSD-3-Clause" ]
null
null
null
hippocampus_tools_ros/scripts/barometer_gazebo.py
Zarbokk/HippoCampus_Tools
1871facc5e36115da60fe689b0630218b381d241
[ "BSD-3-Clause" ]
null
null
null
hippocampus_tools_ros/scripts/barometer_gazebo.py
Zarbokk/HippoCampus_Tools
1871facc5e36115da60fe689b0630218b381d241
[ "BSD-3-Clause" ]
1
2020-01-21T14:46:04.000Z
2020-01-21T14:46:04.000Z
#!/usr/bin/env python import numpy as np from pyquaternion import Quaternion import rospy import tf from gazebo_msgs.msg import ModelStates from geometry_msgs.msg import Pose, PoseArray, PoseStamped from visualization_msgs.msg import Marker, MarkerArray from numpy import genfromtxt import os import matplotlib.pyplot a...
24.826087
94
0.724168
926736853d0a5fb54c66b5b159227d498532c6e3
12,576
py
Python
Python/graphicsGenerator.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
1
2019-02-11T00:45:37.000Z
2019-02-11T00:45:37.000Z
Python/graphicsGenerator.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
Python/graphicsGenerator.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
import tecplot import os import numpy as np import math import string from plotClAlpha import plotClAlpha from plotCdAlpha import plotCdAlpha from plotCmAlpha import plotCmAlpha from plotCoefficientsConvergence import plotCoefficientsConvergence from plotResidualsConvergence import plotResidualsConvergence fr...
46.750929
255
0.660623
92933184779b6002afc3aa8f45aeda25177f37d8
1,276
py
Python
src/aijack/defense/mid/loss.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/defense/mid/loss.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/defense/mid/loss.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
import torch def KL_between_normals(mu_q, sigma_q, mu_p, sigma_p): k = mu_q.size(1) mu_diff = mu_p - mu_q mu_diff_sq = torch.mul(mu_diff, mu_diff) logdet_sigma_q = torch.sum(2 * torch.log(torch.clamp(sigma_q, min=1e-8)), dim=1) logdet_sigma_p = torch.sum(2 * torch.log(torch.clamp(sigma_p, min=1e-...
26.583333
88
0.659875
2bb7944c779e7a26251f5345c2d6429e11306f8b
2,944
py
Python
warp/workspace/home.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/workspace/home.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/workspace/home.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
import os import functools import time import warp.globals import warp.constants as constants # logging from warp.globals import log # types from typing import Optional __all__ = ['Home'] class Home: """ Manager for the WARP cache directory. Useful for creating new sessions and for getting file/dir p...
30.666667
100
0.616508
5b2f2fc0d0f670e121d63e44917f1268c1c0a030
2,505
py
Python
project/api/place/schemas.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/api/place/schemas.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/api/place/schemas.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
from flask_security import current_user from marshmallow import fields, validate from project.api import marshmallow from project.api.schemas import ( IdSchemaMixin, PaginationRequestSchema, PaginationResponseSchema, SQLAlchemyBaseSchema, TrackableSchemaMixin, WriteIdSchemaMixin, ) from project...
26.09375
86
0.739721
5b84096b2813f8ba504728da33d9a5cf45ca41d8
574
py
Python
loesungen/chapter07/svm.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter07/svm.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter07/svm.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from sklearn.datasets import load_iris from sklearn.svm import LinearSVC from sklearn.model_selection import train_test_split # Iris-Datenmenge laden X, y = load_iris(return_X_y=True) # In Trainings- und Testdaten unterteilen, dabei mischen X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.33...
30.210526
68
0.794425
f386d1b2105a164486fe62154d4c7d76e00dd2af
8,265
py
Python
Wordpress-XMLRPC-Brute-Force-Exploit-master/wordpress-xmlrpc-brute-v1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Wordpress-XMLRPC-Brute-Force-Exploit-master/wordpress-xmlrpc-brute-v1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Wordpress-XMLRPC-Brute-Force-Exploit-master/wordpress-xmlrpc-brute-v1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python # Wordpress XML-RPC Brute Force Amplification Exploit by 1N3 # Last Updated: 20160617 # https://crowdshield.com # # ABOUT: This exploit launches a brute force amplification attack on target Wordpress sites. Since XMLRPC allows multiple auth calls per request, amplification is possible and standard bru...
48.617647
345
0.573503
f3a18070b43baa1f8df47f65f10f826132705167
299
py
Python
torch/return_types.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/return_types.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
torch/return_types.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
import torch __all__ = [] # error: Module has no attribute "_return_types" return_types = torch._C._return_types # type: ignore[attr-defined] for name in dir(return_types): if name.startswith('__'): continue globals()[name] = getattr(return_types, name) __all__.append(name)
23
67
0.702341
3435430e6855d62e3a2b69ddc8cec9af2d48dca6
79
py
Python
projects/g3h1-cp-fml-interpreter/src/semantic/__init__.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h1-cp-fml-interpreter/src/semantic/__init__.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h1-cp-fml-interpreter/src/semantic/__init__.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
from .semantic import Semantic, Operation __all__ = ['Semantic', 'Operation']
19.75
41
0.746835
344f8b5b8998595a14b482e9a75532ef4af5918a
400
py
Python
HackerRank/30-Days-of-Code/Day 8: Dictionaries and Maps/dictionaries_maps.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
30-Days-of-Code/Day 8: Dictionaries and Maps/dictionaries_maps.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
30-Days-of-Code/Day 8: Dictionaries and Maps/dictionaries_maps.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
loop = int(input()) phoneBook = {} # Generate Dictionary with user inputted data for i in range(loop): name, number = input().strip().split() number = int(number) phoneBook[name] = number # Search number based on query for i in range(loop): try: query = input().strip() print("{}={}".f...
22.222222
54
0.6175
348079041d35676f32808b4494cfc896f957907a
80
py
Python
src/service/__init__.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/service/__init__.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/service/__init__.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
from .RadarService import filter_sequence __all__ = [ "filter_sequence", ]
13.333333
41
0.7375
04775d813a0f401ffd785d253182f2e21f70342e
8,879
py
Python
TestCodeArchive/PythonCode/Pathfinding/AStarWithUI.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
TestCodeArchive/PythonCode/Pathfinding/AStarWithUI.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
TestCodeArchive/PythonCode/Pathfinding/AStarWithUI.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
import tkinter as tk import heapq import config as cfg # from basicAStar import astar ''' HELPER FUNCTIONS ''' def reconstruct_path(came_from, start, goal): current = goal path = [] while current != start and current in came_from: path.append(current) current = came_from[current] # p...
32.52381
139
0.543192
b66f20c47e25b524c2c3cf19aeef6fbc762f57aa
7,903
py
Python
NMC/NeuroML2/nmllite/Sweep.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
26
2015-08-17T19:30:52.000Z
2021-03-12T20:39:19.000Z
NMC/NeuroML2/nmllite/Sweep.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
9
2015-01-15T20:16:08.000Z
2017-05-18T20:53:52.000Z
NMC/NeuroML2/nmllite/Sweep.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
18
2015-08-17T19:30:56.000Z
2022-03-04T06:01:30.000Z
import sys import pprint; pp = pprint.PrettyPrinter(depth=6) from neuromllite.sweep.ParameterSweep import ParameterSweep from neuromllite.sweep.ParameterSweep import NeuroMLliteRunner from GenerateExamples import colors if __name__ == '__main__': heatmap_lims=[-110,-20] if '-all' in sys.argv: ...
41.814815
125
0.465772
b683ce166db6739a9e44ed70064c0a4cd50bce9b
4,758
py
Python
cje/cje_in.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
cje/cje_in.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
cje/cje_in.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 sys import re import imp imp.reload(sys) sys.setdefaultencoding('utf8') print(sys.getdefaultencoding()) import urllib.request, urllib.error, urllib.parse from bs4 import BeautifulSoup from random import randint import time import json import codecs def pages_anjuke(): home = 'htt...
30.896104
111
0.603405
94de8f778f53bcb41bceabe3f299cc5a98e55fef
3,814
py
Python
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators/TopMaliciousRatioIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators/TopMaliciousRatioIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/TopMaliciousRatioIndicators/TopMaliciousRatioIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from TopMaliciousRatioIndicators import main, find_indicators_with_mal_ratio import io import json def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) def test_find_indicators_with_mal_ratio(mocker): """ Giv...
44.348837
113
0.601993
bfa974f7af7af09d0d36382d301d2d52f05c686c
1,290
py
Python
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex5/ex5_tests.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex5/ex5_tests.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex5/ex5_tests.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import unittest from ex5 import finder class TestEx2(unittest.TestCase): def test_small(self): files = [ '/bin/foo', '/bin/bar', '/usr/bin/baz' ] queries = [ "foo", "qux", "baz" ] result = finder(file...
21.864407
63
0.476744
15b6ec7d9033d809621112639151f6f59092e9df
298
py
Python
django101/django101/tasks/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
django101/django101/tasks/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
django101/django101/tasks/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Schedule(models.Model): title = models.CharField( max_length=30, null=False, ) description = models.CharField( max_length=100, ) dead_line = models.DateField( auto_now=True, )
16.555556
35
0.61745
ec7c1c57baa07661d026f7804f16edc9167a2549
9,811
py
Python
home-assistant/custom_components/grocy/__init__.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
1
2020-12-04T17:44:42.000Z
2020-12-04T17:44:42.000Z
home-assistant/custom_components/grocy/__init__.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
null
null
null
home-assistant/custom_components/grocy/__init__.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
null
null
null
""" The integration for grocy. """ import hashlib import logging import os from datetime import timedelta import homeassistant.helpers.config_validation as cv import voluptuous as vol from homeassistant import config_entries from homeassistant.const import (CONF_API_KEY, CONF_PORT, CONF_URL, ...
36.202952
92
0.667822
ece12a83258566128afc47cd288aed5e481fd5ad
1,263
py
Python
zad4.py
agat272/ABD
485d762655101204cc805e92d9a223da5233036f
[ "MIT" ]
null
null
null
zad4.py
agat272/ABD
485d762655101204cc805e92d9a223da5233036f
[ "MIT" ]
null
null
null
zad4.py
agat272/ABD
485d762655101204cc805e92d9a223da5233036f
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from dataclasses import make_dataclass #second solution with diversification of dtypes base1 = make_dataclass("base1", [("name", 'string'), ("surname", 'string'), ("age", int), ("sex", 'string')]) df = pd.DataFrame([base1("Jan", "Kowalksi", 25, "male"), base1("John", "Black", 69,...
45.107143
128
0.60966
da6efc09386a6af51730030c95aab70f22a700a1
7,789
py
Python
3kCTF/2021/web/3K_SIGNER/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
3kCTF/2021/web/3K_SIGNER/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
3kCTF/2021/web/3K_SIGNER/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify, make_response from flask_sqlalchemy import SQLAlchemy from werkzeug.security import generate_password_hash, check_password_hash import uuid import jwt import datetime from functools import wraps import os import time import re import argparse import tempfile import PyPDF2 impo...
31.662602
151
0.638208
e5abcf9ce8cc8a414043177720581026fed7f5a2
122
py
Python
tools/datasets_convert/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/datasets_convert/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/datasets_convert/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/26 下午4:06 """
15.25
30
0.639344
e5d01cf79ae8c1707b5532b10a91d0f7aff3251c
1,732
py
Python
Packs/XSOAR-SimpleDevToProd/Scripts/CustomContentBundleWizardry/CustomContentBundleWizardry.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XSOAR-SimpleDevToProd/Scripts/CustomContentBundleWizardry/CustomContentBundleWizardry.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XSOAR-SimpleDevToProd/Scripts/CustomContentBundleWizardry/CustomContentBundleWizardry.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 import tarfile import io # arguments action = demisto.args().get('action') entry_id = demisto.args().get('entry_id') file_names = demisto.args().get('file_names') # handle single file export by ensuring it's still a list if not...
30.385965
78
0.647806
e5d1d8345392587efa27295b89df666163791b6e
28,867
py
Python
Team_X.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Team_X.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Team_X.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python2 # coding=utf-8 # author : Team_X ### IMPORT MODULE ### import os, sys, re, time, requests, calendar, random,json from concurrent.futures import ThreadPoolExecutor from bs4 import BeautifulSoup as parser from datetime import datetime from datetime import date s=requests.Session() try: im...
39.926694
370
0.590363
00c18ef811de29b456442b71d1003309acd98d6a
178
py
Python
chord_rec/models/__init__.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/__init__.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/__init__.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
from .lit_baseline import * from .lit_seq2seq import * from .lit_transformer import * from .seq2seq.Decoder import * from .seq2seq.Encoder import * from .seq2seq.Seq2Seq import *
29.666667
30
0.786517
daaae20dc95b1294875385cf3504731b3c76750c
3,069
py
Python
gpt3/00-tags.py
sixvo-labs/Sapir
07ba6fe1c83e2d5fbf139f1601a28df6b6740483
[ "MIT" ]
null
null
null
gpt3/00-tags.py
sixvo-labs/Sapir
07ba6fe1c83e2d5fbf139f1601a28df6b6740483
[ "MIT" ]
null
null
null
gpt3/00-tags.py
sixvo-labs/Sapir
07ba6fe1c83e2d5fbf139f1601a28df6b6740483
[ "MIT" ]
null
null
null
#tags.py """ Q&A @Tag:Answers, @Tag:Generation, @Tag:Conversation """ """ Grammar correction @Tag:Transformation, @Tag:Generation """ """ Summarize for a 2nd grader @Tag:Transformation, @Tag:Generation """ """ Natural language to OpenAI API @Tag:Code, @Tag:Transformation """ """ Text to command @Tag:Transformation, @T...
15.044118
69
0.710329
c13b333df5560d2ca293edd0095eb363f9961277
4,406
py
Python
REWORK/src/py/dataFiles.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
REWORK/src/py/dataFiles.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
REWORK/src/py/dataFiles.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
# ┌─────────────────────────────────────────────────────────────────────────┐ # │ Instagram Automated Commenting 2.0 │ # ├─────────────────────────────────────────────────────────────────────────┤ # │ DO NOT indicate used program sections as your own. │ # │ DO N...
32.397059
130
0.46187
41a6e1851a3636afa261868c0a2ca2471613e392
306
py
Python
twanalizer.py
jpcrespo/twanalysis
16047f22796983464dd6367aab110947e18b1670
[ "MIT" ]
null
null
null
twanalizer.py
jpcrespo/twanalysis
16047f22796983464dd6367aab110947e18b1670
[ "MIT" ]
null
null
null
twanalizer.py
jpcrespo/twanalysis
16047f22796983464dd6367aab110947e18b1670
[ "MIT" ]
null
null
null
from app.extract import recopilar from app.timeserie import timeserie from app.nlptw import graf from app.sentiment import data_sentiment targets = ['LuchoXBolivia','LuisFerCamachoV','tutoquiroga','JeanineAnez','carlosdmesag'] for t in targets: #recopilar(t) #timeserie(t) #graf(t) data_sentiment(t)
21.857143
88
0.784314
ec009231057c277acdfd77703edfce28266a53e7
10,329
py
Python
python/en/_numpy/GeeksforGeeks-numpy_in_python-set_1-introduction-2_array_creation.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/GeeksforGeeks-numpy_in_python-set_1-introduction-2_array_creation.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/GeeksforGeeks-numpy_in_python-set_1-introduction-2_array_creation.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ GeeksforGeeks-numpy_in_python-set_1-introduction-2_array_creation.py  ̄ GeeksforGeeks https://www.geeksforgeeks.org/ NumPy in Python | Set 1 (Introduction) (Contributed by Nikhil Kumar.) https://www.geeksforgeeks.org/numpy-in-python-set-1-introduction/ To read more ab...
24.133178
89
0.594636
6bd5eba6f296e5dbf820069dc475b6ec4eba3794
1,386
py
Python
tests/test_preisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_preisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_preisblatt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.bo.preisblatt import Preisblatt, PreisblattSchema from bo4e.enum.preisstatus import Preisstatus from bo4e.enum.sparte import Sparte from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] from tests.test_marktteilnehmer import example_...
36.473684
92
0.662338
2e095f59b79a81c856b79624171f4991a6513129
4,922
py
Python
model/building_convnet_fixed.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/building_convnet_fixed.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/building_convnet_fixed.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
""" This script executes the task of estimating the building type, based solely on the geometry for that building. The data for this script can be found at http://hdl.handle.net/10411/GYPPBR. """ import os import socket import sys from datetime import datetime, timedelta from pathlib import Path from time import time ...
37.287879
115
0.746851
5cf522e3b99cd4e6f2e808c9d9688b973792ae49
38,249
py
Python
quant/observers/t_bithumb.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/observers/t_bithumb.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/observers/t_bithumb.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from __future__ import division import logging import time from quant import config from quant.brokers import broker_factory from .basicbot import BasicBot from quant.common import log MESSAGE_TRY_AGAIN = 'Please try again' class T_Bithumb(BasicBot): """ bch: ...
50.261498
120
0.556407
cf0988881e1f9ba00a9f66b67395030a2c3ae425
7,350
py
Python
build/lib/AESEncryptor_heureka_code/AESFileEncryptor.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
build/lib/AESEncryptor_heureka_code/AESFileEncryptor.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
build/lib/AESEncryptor_heureka_code/AESFileEncryptor.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
from os.path import getsize, isfile from os import remove from base64 import b64decode, b64encode from Crypto import Random from Crypto.Cipher import AES from Crypto.Hash import SHA256 from AESEncryptor_heureka_code.Exceptions import WrongPassword, FileIsEncrypted, FileIsNotEncrypted __author__ = "heureka-code" __d...
35
105
0.621905
cf283c1750925f8852ed30fa5ea287bd4c0759f8
6,580
py
Python
CharakterBeschreibungWrapper.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
CharakterBeschreibungWrapper.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
CharakterBeschreibungWrapper.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- """ Created on Fri Mar 10 17:11:39 2017 @author: Lennart """ from Wolke import Wolke import CharakterBeschreibung from PyQt5 import QtWidgets, QtCore import logging from Hilfsmethoden import Hilfsmethoden class BeschrWrapper(QtCore.QObject): ''' Wrapper class for the Beschreibung GUI. ...
44.161074
244
0.623708
2b6b8759567fba3a639079accbf2febd5ab3e36c
2,307
py
Python
lessnaive.py
watsondeservescredit/BIOINF101-Aufgabe-1
d366195be0ee663ec1b7aae50230f9d64e7c7a6a
[ "MIT" ]
null
null
null
lessnaive.py
watsondeservescredit/BIOINF101-Aufgabe-1
d366195be0ee663ec1b7aae50230f9d64e7c7a6a
[ "MIT" ]
null
null
null
lessnaive.py
watsondeservescredit/BIOINF101-Aufgabe-1
d366195be0ee663ec1b7aae50230f9d64e7c7a6a
[ "MIT" ]
null
null
null
#this function reverses the sequence (c) bioinfo 101 def reverse(input_sequence): reverse_complement = '' n = len(input_sequence) - 1 while n >= 0: if input_sequence[n] == 'A': reverse_complement += 'T' n = n-1 elif input_sequence[n] == 'T': reverse_comple...
41.196429
469
0.73342
5127a5d01a27f348b8c6a1054fe31589be5d7a18
763
py
Python
recommender/test.py
FelixLukk/netease_music_cat
97f4487e74e09661a1dd46b7b00c01845311436b
[ "MIT" ]
2
2020-02-20T18:05:45.000Z
2020-02-22T06:40:52.000Z
recommender/test.py
FelixLukk/netease_music_cat
97f4487e74e09661a1dd46b7b00c01845311436b
[ "MIT" ]
1
2021-06-01T23:45:58.000Z
2021-06-01T23:45:58.000Z
data_acquire_store/recommender/test.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
1
2020-03-17T09:17:18.000Z
2020-03-17T09:17:18.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- # author: humingk # ---------------------- import os import sys from my_tools.database_tool import database_tool from surprise import evaluate, KNNBasic, Reader, dump from surprise import SVD from surprise import Dataset from surprise import evaluate, print_perf from sur...
27.25
95
0.775885
85592fb6928cedd85156305c362f36c774b41c34
1,985
py
Python
migrations/versions/920329927dc6_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/920329927dc6_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/920329927dc6_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 920329927dc6 Revises: fca98f434287 Create Date: 2021-10-03 22:32:34.070105 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "920329927dc6" down_revision = "fca98f434287" branch_lab...
29.626866
88
0.62267
a4959a4fa6519baba8b8be0afc70856fbaf2f0c7
2,890
py
Python
Server/main.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
1
2019-02-28T08:39:55.000Z
2019-02-28T08:39:55.000Z
Server/main.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
5
2018-07-17T13:09:34.000Z
2018-09-11T13:55:33.000Z
Server/main.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
2
2019-05-17T03:07:08.000Z
2022-01-01T07:04:31.000Z
#!usr/bin/python3 import Connector import DB as database import json import threading import queue import random import time import sys import re queueLock = threading.Lock() waitList = queue.Queue() DB = None TIMER_GAP = 0.25 def processing(data): try: data = json.loads(data) ...
27.788462
77
0.558131
a49c8e449ff4021e3ca282c8ebaf4b84f91140e6
3,659
py
Python
examples/relationship/manytoonefield/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytoonefield/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytoonefield/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from datetime import date from django.test import TestCase, TransactionTestCase from .models import Reporter, Article # Create your tests here. class SimpleTest(TransactionTestCase): reset_sequences = True def test_a_n_plus_1(self): # 准备数据 r = Reporter.objects.create(first_name='John', last_...
42.057471
101
0.624488
7496282f45e93d03c78060b3e63866c01392290f
177
py
Python
day01/print.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day01/print.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day01/print.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
print("Day 1 - Python Print Function") print("The function in declared like this:") print("print(\"what to print\"") print("other possibility:") print("print('text to print')")
29.5
44
0.706215
77a93f20049670b4a1e6636d6ed9f96fe1cde556
2,427
py
Python
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/rendering_map_using_dictionary_example.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
30
2018-04-01T09:08:40.000Z
2022-01-23T07:30:07.000Z
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/rendering_map_using_dictionary_example.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
14
2018-07-17T08:33:35.000Z
2021-09-29T17:26:15.000Z
asset/integrations/django/samples/fusioncharts/samples/rendering_map_using_dictionary_example.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file that contains functions to embed the charts. from ..fusioncharts import FusionCharts from collections import OrderedDict # Loading Data from a Ordered Dictionary # Example to create a World Map with the chart...
38.52381
122
0.648949
7ad51a77d66a5fba349bf4a865b87881d24e236a
346
py
Python
code/examples/EyeSetColor.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
2
2019-09-25T13:39:22.000Z
2019-09-26T10:06:13.000Z
code/examples/EyeSetColor.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
44
2019-09-25T14:35:48.000Z
2021-08-20T17:26:12.000Z
code/examples/EyeSetColor.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
8
2019-09-25T13:53:07.000Z
2022-02-24T19:23:44.000Z
""" Set eye color of first. Copyright (C) 2019 Basler AG All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from hucon import Eye eye = None print('Set the color for the top left eye.') eye = Eye(1, Eye.RGB)...
19.222222
65
0.687861
7adba122e762d109889b39d8045f3c8f7cc48a98
183
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_5_Set/78. intersection of sets.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_5_Set/78. intersection of sets.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_5_Set/78. intersection of sets.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a Python program to find the intersection of two sets. set1 = {1,2,3,4,5} set2 = {4,5,6,7,8} """ def set_intersection(set1, set2): return set1.intersection(set2)
16.636364
60
0.655738
bb1f566428613394b50eb45c4605037f358d4858
1,164
py
Python
python_first_step/sortalgoArrayOperation/arryOperations.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/arryOperations.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/arryOperations.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
import numpy as np import math import random #import sys #for eachArg in sys.argv: #print(eachArg) def generate_randlist(N,min_int,max_int): listint =[] for i in range(N): listint.append(random.randint(min_int,max_int)) return(listint) #N= int(sys.argv[1]) #min_int = int(sys.argv[2]) #max_int =...
13.857143
60
0.658935
bb4f62a09938543fbf5924f499a84230f720c4b6
3,932
py
Python
frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/woocommerce_settings/woocommerce_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/woocommerce_settings/woocommerce_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/erpnext_integrations/doctype/woocommerce_settings/woocommerce_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from six.moves.urllib.parse import urlparse class Woocom...
31.456
136
0.731689
702cde2e7ca89d30ca3d694bae73ddfde594c07c
986
py
Python
abfahrt/classes/TrainInLine.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/classes/TrainInLine.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/classes/TrainInLine.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
from abfahrt.classes.Train import Train from abfahrt.classes.Line import Line class TrainInLine: def __init__(self, train: Train, start: int, end: int, line_id: int): """ Represents the assignment/reservation of a line by a train Args: train (Train): train in the line ...
31.806452
134
0.597363
8e7d68746746861246b396db08bde9a160efebe8
956
py
Python
Kapitel_2/_5__standard_descriptor_dekoratoren_2.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_2/_5__standard_descriptor_dekoratoren_2.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_2/_5__standard_descriptor_dekoratoren_2.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Definition von eigenen Getter/Setter/Deleter Methoden --- # def my_getter(self): print("my_getter-Call") return self._gpu def my_setter(self, value): print("my_setter-Call") self._gpu = value def my_deleter(self): print("my_deleter-Call") del self._gpu # --- Deklaration der Klasse --- #...
28.117647
81
0.689331
d9607071bf445a0c8592de49d16fb137d7b5284e
535
py
Python
LoremPizzum/products/views.py
BruhMano/LoremPizzum
8909a9f21ea2878cf9accf035989edbd15c3d285
[ "BSD-3-Clause" ]
null
null
null
LoremPizzum/products/views.py
BruhMano/LoremPizzum
8909a9f21ea2878cf9accf035989edbd15c3d285
[ "BSD-3-Clause" ]
null
null
null
LoremPizzum/products/views.py
BruhMano/LoremPizzum
8909a9f21ea2878cf9accf035989edbd15c3d285
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404, render from .models import Product from cart.forms import CartAddProductForm def index(request): return render(request,'index.html') def menu(request): products = Product.objects.all() return render(request,'menu.html',{"products":products}) def product_details...
31.470588
103
0.766355
d97afaa7f85c92571a8a21ce41eed4e2e3d8a1e7
1,843
py
Python
pythonProj/FZPython/demo/data.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/data.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/data.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
# -*- coding: utf-8 -*- ## # @brief 数据控制模块 import datetime import pandas as pd import backtrader as bt import tushare as ts import pyquant.libs.mongolib as mongolib import pyquant.libs.tusharelib as tusharelib def get_csv_data(args): """ 需要去查找数据,如果没有的话就要从远程拉取 :param args: :return: """ dfkwargs...
19.4
72
0.602279
5c1c569f66241cf025e44bb4c372d74471af5c77
748
py
Python
nz_django/day2/template_include_demo/template_include_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day2/template_include_demo/template_include_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day2/template_include_demo/template_include_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render def index(request): context = { 'username':'qfkangbazi' } return render(request,'index.html',context=context) def hospital(request): context = { 'username':'全国真协和医院只有三家,武汉就有一家' } return render(request,'hospital.html',context=context) def c...
22
63
0.65107
ebbdb1dcf214e95e8c79e36059109292f5b4e9de
257
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Archive/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Archive/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Archive/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
from Archive import Archive # NOQA def config(parser): parser.add_argument("--archive.method", dest="archive.method", default='tar', choices=['tar', 'zbackup', 'none'], help="Archiver method (default: tar)") return parser
32.125
117
0.63035
69493d991b24e751d6b2f1696d8dfdfbb1ac994d
2,071
py
Python
3space-studio/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
3space-studio/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
3space-studio/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
from conans import ConanFile, CMake, tools import glob import os.path from PIL import Image class LocalConanFile(ConanFile): name = "3space-studio" version = "0.5.1" url = "https://github.com/open-siege/open-siege" license = "MIT" author = "Matthew Rindel (matthew@thesiegehub.com)" build_requir...
42.265306
120
0.649445
88c59e3a4219995b78630922fc4b0748265a9d6b
2,876
py
Python
django_project/apps/course/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
django_project/apps/course/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
django_project/apps/course/migrations/0001_initial.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# Generated by Django 2.0.1 on 2020-03-06 06:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import shortuuidfield.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
40.507042
140
0.576843
cc3eaf123918973b1b10dca34022c75b57aed02e
5,598
py
Python
scripts/gen_img.py
JosiahCraw/Tiva-Helicopter-Controller-ENCE464-
207fda18bf8e4b562e47205fbbdc9aaaf274c54f
[ "MIT" ]
null
null
null
scripts/gen_img.py
JosiahCraw/Tiva-Helicopter-Controller-ENCE464-
207fda18bf8e4b562e47205fbbdc9aaaf274c54f
[ "MIT" ]
null
null
null
scripts/gen_img.py
JosiahCraw/Tiva-Helicopter-Controller-ENCE464-
207fda18bf8e4b562e47205fbbdc9aaaf274c54f
[ "MIT" ]
null
null
null
# ------------------------------- # Tiva Image/Animation Generator # ------------------------------- # # Generates image/animation header files for use # with the Tiva TM4c123 and the OrbitBooster Pack # # Author: Jos Craw 2020 # import cv2 import math import argparse import numpy as np from typing import List IMG_DE...
27.307317
147
0.53662
aeb5008dc5b98b98bdc9b3efeca4d5d62cc57f14
467
py
Python
books/PythonCleanCode/ch6_descriptors/descriptors_types_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch6_descriptors/descriptors_types_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch6_descriptors/descriptors_types_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 6: Descriptors > Types of Descriptors: 1. Non-Data Descriptors (non-overriding) 2. Data Descriptors (overriding) Code examples to illustrate [1]. """ class NonDataDescriptor: """A descriptor that doesn't implement __set__.""" def __get__(self, instance...
21.227273
55
0.642398
9dcea0c6175640db30d67fd53b18ebc8fd4b3bad
802
py
Python
app/websocket_queue.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/websocket_queue.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/websocket_queue.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
# encoding: utf-8 """ openbikebox websocket-client Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. """ import asyncio from uuid import uuid4 class WebsocketQueue: def startup(self): self.queue = asyncio.Queue(...
21.105263
98
0.59601
d1d036e6c85d8f5cc48369658453318e49b471e9
1,460
py
Python
NahamCon/2021/crypto/DiceRoll/dice_roll.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
NahamCon/2021/crypto/DiceRoll/dice_roll.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
NahamCon/2021/crypto/DiceRoll/dice_roll.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import random import os banner = """ _______ ______ | . . |\\ / /\\ | . |.\\ / ' / \\ | . . |.'| /_____/. . \\ |_______|.'| \\ . . \\ / \\ ' . \\'| \\ . . \\ / \\____'__\\| \\_____\\/ D I C E R O L L """ menu = """ 0. Info 1. Shake...
19.210526
79
0.589041
d1d89d7b27ebd25705acaec7e6b293ae8133157a
11,058
py
Python
labeldcm/ui/form.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
1
2021-12-20T11:06:42.000Z
2021-12-20T11:06:42.000Z
labeldcm/ui/form.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
null
null
null
labeldcm/ui/form.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UiForm.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui...
53.941463
108
0.719841