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
c057d857b6fb6534f5df58f67b7ab4dc25652bef
1,369
py
Python
TreeModelLib/GrowthAndDeathDynamics/Mortality/NoGrowth/NoGrowth.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
TreeModelLib/GrowthAndDeathDynamics/Mortality/NoGrowth/NoGrowth.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
TreeModelLib/GrowthAndDeathDynamics/Mortality/NoGrowth/NoGrowth.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2021-Today @author: marie-christin.wimmler@tu-dresden.de """ ## This class is the super class of all mortality concepts, containing all # required methods. class NoGrowth: def __init__(self, args, case): print("Initiate mortality of type `" + case ...
35.102564
77
0.688093
3f4b50e8af65341cd16f89d8578c106d6790c476
4,574
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/edgeos/test_edgeos_config.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/edgeos/test_edgeos_config.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/edgeos/test_edgeos_config.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# # (c) 2018 Red Hat Inc. # # 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 d...
43.150943
137
0.736336
58e0572f0e1f0cbb2ee3e90b3a90363c9dcc78a4
6,148
py
Python
haas_lib_bundles/python/docs/examples/sedentary_remind/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/sedentary_remind/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/sedentary_remind/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
######### from aliyunIoT import Device # iot组件是连接阿里云物联网平台的组件 import network # Wi-Fi功能所在库 import ujson ################## from driver import I2C,GPIO,TIMER import utime from ssd1306 import SSD1306_I2C import ir import time temptimerObj = 0 time_dict = {} ######### # 物联网平台连接标志位 iot_connected = Fa...
24.494024
104
0.6189
7a0eaa07dd00262792322cedec1fa94b55629885
9,392
py
Python
ListSearcher-main/searcher.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
9
2021-05-23T06:04:03.000Z
2021-11-11T12:49:15.000Z
ListSearcher-main/searcher.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
1
2021-08-11T16:30:47.000Z
2021-08-11T16:33:30.000Z
ListSearcher-main/searcher.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
6
2021-05-25T18:47:55.000Z
2021-09-29T18:42:26.000Z
# -*- coding: utf-8 -*- #!usr/bin/python import os, re, sys, socket, json import requests as req from multiprocessing.dummy import Pool from colorama import * init(autoreset=True) ####################### # Coded By Tegal1337 # ####################### fg = '\033[0;32m' fr = '\033[0;31m' fw = '\033[1;37m...
39.462185
1,752
0.481154
e1834990c14998d8dff37237bd0a119c29ea30e7
8,481
py
Python
Python X/Variable.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
Python X/Variable.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
Python X/Variable.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Hello World\n" ] } ], "source": [ "print(\"Hello World\")" ] }, { "cell_type": "code", "execution_count":...
18.721854
455
0.452305
bef5738334dc65ee81820136f1a141ce88496f65
2,347
py
Python
crudlengkap.py
mgagah/gag
ae461f52e909e2f0d7689ea7e448987f4db57c5c
[ "Apache-2.0" ]
null
null
null
crudlengkap.py
mgagah/gag
ae461f52e909e2f0d7689ea7e448987f4db57c5c
[ "Apache-2.0" ]
null
null
null
crudlengkap.py
mgagah/gag
ae461f52e909e2f0d7689ea7e448987f4db57c5c
[ "Apache-2.0" ]
null
null
null
import mysql.connector import os db = mysql.connector.connect( host="localhost", user="root", passwd="", database="toko_mainan" ) def insert_data(db): name = input("Masukan nama: ") adress = input("Masukan alamat: ") val = (name, adress) cursor = db.cursor() sql = "INSERT INTO customers (name, adres...
21.731481
70
0.62974
8342ed9b08cc0e463b059be5e8d8b8ed7551838e
5,092
py
Python
tests/importers/test_importer.py
vishnuvrpriya/rasa
60f6a86dfbdafcd62360a7e4a90be01cd437c4ea
[ "Apache-2.0" ]
5
2020-08-28T06:44:31.000Z
2021-03-14T18:46:01.000Z
tests/importers/test_importer.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
71
2020-08-25T02:46:08.000Z
2022-03-01T13:23:38.000Z
tests/importers/test_importer.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
import os from pathlib import Path from typing import Text, Dict, Type, List import pytest from rasa.constants import DEFAULT_CONFIG_PATH, DEFAULT_DOMAIN_PATH, DEFAULT_DATA_PATH from rasa.importers.importer import ( CombinedDataImporter, TrainingDataImporter, NluDataImporter, CoreDataImporter, ) from r...
32.025157
86
0.702278
55f5fe014a314e65648459e6b66bb446c71f4da2
162
py
Python
exercises/en/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "for doc in nlp.pipe(TEXTS)" in __solution__ ), "Are you iterating over docs yielded by nlp.pipe?" __msg__.good("Nice!")
27
57
0.623457
360c3b9a1bfc2a6b75e0785d5c4f8956da41d336
2,505
py
Python
projects/g3h1-cp-fml-interpreter/test_data/create_ubuntu_logo_fml.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h1-cp-fml-interpreter/test_data/create_ubuntu_logo_fml.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h1-cp-fml-interpreter/test_data/create_ubuntu_logo_fml.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
with open('./ubuntu_logo.fml', 'w') as file: file.writelines('scale is (5, 5);\n') file.writelines('background is (0, 0, 0);\n') file.writelines('color is (221, 72, 20);\n') for i in range(33): file.writelines('for t from 0 to 2 * pi step pi / 1000 draw ({r} * cos(t), - {r} * sin(t));\n'.format(...
58.255814
127
0.535729
1818c1afdbfb7c19244083d48d1cd74402c1c6bc
2,665
py
Python
Packs/Campaign/Scripts/GetCampaignIncidentsIdsAsOptions/GetCampaignIncidentsIdsAsOptions_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Campaign/Scripts/GetCampaignIncidentsIdsAsOptions/GetCampaignIncidentsIdsAsOptions_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Campaign/Scripts/GetCampaignIncidentsIdsAsOptions/GetCampaignIncidentsIdsAsOptions_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from GetCampaignIncidentsIdsAsOptions import * import GetCampaignIncidentsIdsAsOptions REQUIRED_KEYS = ['id', 'name', 'email_from', 'recipients', 'severity', 'status', 'created'] STR_VAL_KEYS = ['name', 'email_from', 'recipients', 'created'] NUM_OF_INCIDENTS = 5 MOCKED_INCIDENTS = [ {key.replace('_', ''): f'test_...
27.474227
106
0.693809
187bfd89bf56db61520e6e4074a511eeae1d369c
9,279
py
Python
zugdaten/upload_db_use_for_api.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
zugdaten/upload_db_use_for_api.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
zugdaten/upload_db_use_for_api.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
""" Importiert die Backups aus dem Speicher und uploaded tageweise in amazon s3 """ import os import re import pandas as pd from datetime import datetime # compatibility with ipython try: __IPYTHON__ os.chdir(os.path.dirname(__file__)) except: pass from db import DatabaseWrapper import json import boto3 from pa...
34.752809
143
0.598879
a190edfd8ee4a9e68e4a373e79f4218d7d5eb84e
1,693
py
Python
documents/mathe-handlungsreisender/Handlungsreisender-in-Deutschland-analyse.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
documents/mathe-handlungsreisender/Handlungsreisender-in-Deutschland-analyse.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
documents/mathe-handlungsreisender/Handlungsreisender-in-Deutschland-analyse.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Dieses Script analysiert die Verteilung der Längen der Routen. Diese müssen durch "Entfernungen.txt" gegeben sein. """ print("Beginne alle Routen zu lesen.") f = open('/home/moose/mathe/Entfernungen.txt', 'r') lines = f.readlines() f.close() print("Alle Routen w...
23.191781
87
0.675724
a1a13b18280109fc89795a9cbf2d962faf7d1ce6
3,462
py
Python
_Dist/TextClassification/_NB.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
_Dist/TextClassification/_NB.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
_Dist/TextClassification/_NB.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import os import math import pickle import numpy as np from collections import Counter import matplotlib.pyplot as plt from sklearn import metrics from _Dist.TextClassification.GenDataset import gen_dataset from Util.ProgressBar import ProgressBar def pick_best(sentence, prob_lst): rs = [prob["pri...
34.277228
84
0.580878
b121998b2bc0ffb372907d202318c4cc292df849
174
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_9/set_default_customer_group.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_9/set_default_customer_group.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_9/set_default_customer_group.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): selling_settings = frappe.get_single('Selling Settings') selling_settings.set_default_customer_group_and_territory() selling_settings.save()
24.857143
60
0.833333
626e14a7805453d3a02d433d7e658cdffbb172c6
6,601
py
Python
Packs/OpenPhish/Integrations/OpenPhish_v2/OpenPhish_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/OpenPhish/Integrations/OpenPhish_v2/OpenPhish_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/OpenPhish/Integrations/OpenPhish_v2/OpenPhish_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import requests import traceback from typing import Dict # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' class Error(Exception): """Base class fo...
29.600897
120
0.633237
02a940c591b39c8b20e7ab5f89e06328a3150fb6
5,335
py
Python
PythonAPI/test/smoke/test_sync.py
cpc/carla
2b4af4c08c751461e23558809a1d8dcb5dc740dc
[ "MIT" ]
3
2021-01-08T13:04:11.000Z
2021-01-25T16:56:52.000Z
PythonAPI/test/smoke/test_sync.py
cpc/carla
2b4af4c08c751461e23558809a1d8dcb5dc740dc
[ "MIT" ]
2
2021-03-31T20:10:04.000Z
2021-12-13T20:48:30.000Z
PythonAPI/test/smoke/test_sync.py
cpc/carla
2b4af4c08c751461e23558809a1d8dcb5dc740dc
[ "MIT" ]
4
2021-04-15T03:45:53.000Z
2021-12-24T13:13:39.000Z
# Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. from . import SyncSmokeTest import carla import time try: # python 3 from queue import Que...
37.307692
92
0.563449
f30154d0e7e574a2b3a9221138b91c5e7d19678c
9,670
py
Python
Math-Ma-MSTAT/makeunreadable.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
4
2020-01-18T14:35:03.000Z
2021-11-30T00:19:53.000Z
Math-Ma-MSTAT/makeunreadable.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
1
2020-03-19T12:09:05.000Z
2020-03-19T12:09:05.000Z
Math-Ma-MSTAT/makeunreadable.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
3
2020-02-18T20:03:25.000Z
2021-11-30T00:20:26.000Z
#!/usr/bin/python3 import sys import heapq ALPHABET = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ*" # * is part of commands def findNextBracket(text, bracket, pos): """Find first occurence of bracket after pos that is not preceded by backslash Return its position in text. None if not found...
35.421245
82
0.562771
b8bd76d797b0bd2e2318bd9924b1c97d9caafaa8
12,250
py
Python
navi.py
jkopka/routefinder
7594278a9662051ddc764de2b9178ba43b789fef
[ "MIT" ]
null
null
null
navi.py
jkopka/routefinder
7594278a9662051ddc764de2b9178ba43b789fef
[ "MIT" ]
null
null
null
navi.py
jkopka/routefinder
7594278a9662051ddc764de2b9178ba43b789fef
[ "MIT" ]
null
null
null
from priorityqueue import PriorityQueue from math import sqrt from pygame import Color import configparser # Konfiguration config = configparser.ConfigParser() config.read('config.ini') WHITE = Color(config['COLOR']['WHITE']) BLUE = Color(config['COLOR']['BLUE']) GREEN = Color(config['COLOR']['GREEN']) RED = Color(co...
40.562914
145
0.61151
b2793e62c675fafdb637727aa025f64c215edda7
2,205
py
Python
TimeSeries/utilities/utilities.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
TimeSeries/utilities/utilities.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
TimeSeries/utilities/utilities.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
from typing import List, Tuple import pandas as pd import numpy as np from tqdm import trange # processing functions def split_ts( df: pd.DataFrame, split_frac: float = 0.8 ) -> Tuple[pd.DataFrame, pd.DataFrame]: df_train = df.iloc[: int(df.shape[0] * split_frac)] df_test = df.iloc[int(df.shape[0] * split_...
31.5
86
0.632653
a28f620dfbf621e94c0d0e5adf5597f06cad4739
1,954
py
Python
packages/watchmen-storage-mongodb/src/watchmen_storage_mongodb/document_mongo.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-mongodb/src/watchmen_storage_mongodb/document_mongo.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-mongodb/src/watchmen_storage_mongodb/document_mongo.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from enum import Enum from typing import Any, Dict, List, Optional from bson import ObjectId from watchmen_storage import EntityId, UnexpectedStorageException from watchmen_utilities import ArrayHelper class MongoDocumentColumnType(str, Enum): ID = 'id', STRING = 'string', NUMBER = 'number', BOOLEAN = 'boolean'...
27.914286
111
0.736438
ac395e30e56143b4cc1f3d280492a9e866d68294
295
py
Python
pacman-termux/test/pacman/tests/epoch003.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/epoch003.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/epoch003.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with an epoch package overriding a force package" sp = pmpkg("dummy", "2:1.4-1") self.addpkg2db("sync", sp) lp = pmpkg("dummy", "1:2.0-1") self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|2:1.4-1")
22.692308
80
0.691525
ac537b6898e5d1e281e06e899cd6218778d83c1d
12,131
py
Python
tensorflow/advanced-tensorflow/srgan/model.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/advanced-tensorflow/srgan/model.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/advanced-tensorflow/srgan/model.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
import numpy as np import tensorflow as tf FLAGS = tf.app.flags.FLAGS class Model: def __init__(self, name, features): self.name = name self.outputs = [features] def _get_layer_str(self, layer=None): if layer is None: layer = self.get_num_layers() return '%s_L%0...
50.757322
112
0.587998
3bca11ab8946d0ec5c94f837692ba1c899241c68
5,410
py
Python
myems-api/excelexporters/equipmenttracking.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
82
2021-02-19T10:24:31.000Z
2022-03-28T06:30:18.000Z
myems-api/excelexporters/equipmenttracking.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
188
2021-02-22T07:08:30.000Z
2022-03-02T04:11:03.000Z
myems-api/excelexporters/equipmenttracking.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
54
2021-02-19T08:48:46.000Z
2022-03-30T06:21:34.000Z
import base64 import uuid import os from openpyxl.styles import Border, Side, Alignment, Font from openpyxl.drawing.image import Image from openpyxl import Workbook ######################################################################################################################## # PROCEDURES # Step 1: Validate ...
38.368794
120
0.490388
e7f9104ddf10d5e7ceead62bc0b526b6bc9ca7b2
1,203
pyde
Python
sketches/fourier2/fourier2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/fourier2/fourier2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/fourier2/fourier2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
t = 0 r2 = 5 p = 10 # Periode offset = 250 circleList = [] def setup(): size(960, 400) this.surface.setTitle("Fourier 2 (Fourier-Reihe)") def draw(): global t, circleList background(200) translate(offset, height / 2) x = 0 y = 0 strokeWeight(1) for i in range(p): prevx = x...
20.389831
54
0.484622
f073362fef180d2238521d4b0847df2742f135df
1,124
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/misc/virt_net/test_virt_net.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/misc/virt_net/test_virt_net.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/cloud/misc/virt_net/test_virt_net.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible_collections.community.general.tests.unit.compat import mock def test_virt_net_create_already_active(virt_net_obj, dummy_libvirt): virt_net_obj....
36.258065
92
0.77847
b2beda2eec015c98adf1d9014544339f25a00530
5,369
py
Python
research/cv/CGAN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/CGAN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/CGAN/train.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.809859
117
0.585211
045ba962061802537334eac44c3e30827b6cc408
168
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/07.1-Condition.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/07.1-Condition.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/07.1-Condition.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
number = int(input("Give a number: ")) the_user_is_good = number >= 80 massage = "The number is greater than or equals 80: " + str(the_user_is_good)\ print(massage)
21
78
0.708333
9bfab261d472915a5e3956b706a6a06d421f02a5
26,218
py
Python
ProyectoTEO V3/parser_DEC.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
ProyectoTEO V3/parser_DEC.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
ProyectoTEO V3/parser_DEC.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
import ply.lex as lex reserved = { 'if' : 'IF', 'else' : 'ELSE', 'while': 'WHILE', 'int': 'INT', 'float': 'FLOAT', 'char': 'CHAR', 'void': 'VOID', 'return': 'RETURN', 'include': 'INCLUDE', 'define': 'DEFINE', } tokens = [ 'NUMBER', 'CHARACTER', 'ST...
37.294452
108
0.61206
c58238254fdbeca6328559d01248ba6da77cfa90
6,544
py
Python
src/built_in_functions/__metaclass__call__new__init__object&type__function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/__metaclass__call__new__init__object&type__function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/__metaclass__call__new__init__object&type__function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Python 中的 object: 首先我們必須先牢牢記住一個重要觀念:Python 是一種物件導向語言;在 Python 裡面,所有你能想得到的東西都是 object 我們可以用 type() 這個內建函數,來得知某樣東西的 type 給 type() 一個 object 時,會回傳一個東西叫做 Type Object ,你可以用 print() 印出來看看是什麼樣子 """ print("-----------------------------------------------...
23.455197
103
0.619652
c58ea4cb0f750edf7b6ace13617bf9c32f099edf
2,875
py
Python
year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payments.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payments.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payments.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from api.models import Payment class Payments(object): def __init__(self, cursor): """ :param cursor: MySQLdb.cursor.Cursor """ self.cursor = cursor cursor.execute('SET NAMES utf8;') cursor.execute('SET CHARACTER SET utf8;') cursor.execute('SET character_set...
24.784483
109
0.485217
a8a962d7eabb7fc4ce65520d164539ff81b71d57
840
py
Python
crypto/rsa-goes-skrrrahh/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/rsa-goes-skrrrahh/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/rsa-goes-skrrrahh/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
buka = open('enc').read().split('\n') enc = int(buka[0].split(': ')[1]) n = int(buka[1].split(': ')[1]) hint = int(buka[2].split(': ')[1]) z = ((hint - n) / 0xdeadbeef) - 0xdeadbeef # c = 0xdeadbeef dist = z // 4 p = z // 2 q = z - p print "p = {}".format(p) print "q = {}".format(q) print "p*q = {}".format(p*q) prin...
19.534884
59
0.522619
4f12b79d34b2a4da782e93bd3826df6f96ba5364
2,482
py
Python
src/onegov/core/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
# The current version set by do/release. Do not edit by hand! # # Note that during development this version information is stale. That is to # say, we do not have a separate development version - the use for this # version is to create release-dependent urls, artifacts and caches. During # development these dependencie...
25.854167
76
0.621676
0fe2433371c4b2e29caf932bda1536b6d48ff907
366
py
Python
Text_Based_Adventure_Game/item.py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
null
null
null
Text_Based_Adventure_Game/item.py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Intro-Python-II/examples/ex_game/item.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
class Item: def __init__(self, name, description): self.name = name self.description = description class Food(Item): def __init__(self, name, description, calories): super().__init__(name, description) self.calories = calories class Egg(Food): def __init__(self): ...
22.875
53
0.63388
e89fef72e28f5f7d39706c3ae0089008b37624e9
90
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 33/33.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 33/33.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 33/33.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#What will the script output? c = 1 def foo(): c = 2 return c c = 3 print(foo())
10
29
0.555556
d777e081852be6c83ec4637257db80f783006dbd
964
py
Python
2020/09/graphics-js/wildfire-county-maps-20200916/make_maps.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2020/09/graphics-js/wildfire-county-maps-20200916/make_maps.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2020/09/graphics-js/wildfire-county-maps-20200916/make_maps.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
import subprocess import os try: os.mkdir("temp") os.mkdir("maps") except: pass years = ["2011","2012","2013","2014","2015","2016","2017","2018","2019","2020"] for y in years: filterCommand = '''mapshaper -i shapefiles/clipped_counties.shp -join data/{year}.csv keys=GEOID,code field-types=GEOID:str,code:str -fi...
45.904762
347
0.713693
7e5d5bd7e67e6048bdc3a6200b29acf796389b03
1,411
py
Python
tools/pythonpkg/tests/fast/test_multi_statement.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/test_multi_statement.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/test_multi_statement.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import duckdb import os import shutil class TestMultiStatement(object): def test_multi_statement(self, duckdb_cursor): import duckdb con = duckdb.connect(':memory:') # test empty statement con.execute('') # run multiple statements in one call to execute con.execute...
36.179487
85
0.588235
bc294f61c2b13087a90b9a174599b2723fa19256
3,768
py
Python
IdeaProjects/PandasProj/PandasCourse3.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
IdeaProjects/PandasProj/PandasCourse3.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
IdeaProjects/PandasProj/PandasCourse3.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import pandas as pd import numpy as np # 1.1 实验内容 # # Pandas 是非常著名的开源数据处理工具,我们可以通过它对数据集进行快速读取、转换、过滤、分析等一系列操作。除此之外,Pandas 拥有强大的缺失数据处理与数据透视功能,可谓是数据预处理中的必备利器。这是 Pandas 使用教程的第 3 章节,将学会使用 Pandas 对数据进行选择与变换。 # # 1.2 实验知识点 # # 基于索引数字选择 # 基于标签名称选择 # 数据随机取样 # 条件语句选择 # where() 方法选择 # query() 方法选择 # 二、数据选择 #...
23.55
149
0.698248
70cc61ec7084c8b323524941857ab4aea14ef834
1,479
py
Python
tests/test_region.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_region.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_region.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.bo.region import Region, RegionSchema from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] from tests.test_regionskriterium import example_regionskriterium # type:ignore[import] class TestRegion: @pytest.mark.parametrize( ...
34.395349
114
0.62069
cb578c1a3bef48d9c727872dd071bb80b62bfd57
5,137
py
Python
HTFTP-master/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
HTFTP-master/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
HTFTP-master/main.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# HTFTP v0.1.1 import http.server import socketserver import os import sys import socket import threading import logging import threading from datetime import datetime from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers import FTPServer from pyftpdlib.authorizers import WindowsAuthorizer c...
35.184932
156
0.582052
cb6210b409591549899349facaca749433f80abf
1,920
py
Python
exercises/fr/test_general.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/test_general.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/test_general.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# This test file only runs internally when you test the course with pytest. # It can be used to ensure that results the course depend on are accurate, e.g. # when updating to a new version of spaCy. This especially includes predictions # that some examples assume or depend on. import spacy from spacy.matcher import Mat...
36.226415
90
0.665625
1dbbdedc10cc3ff8b06e6a8582157a05cc073da8
801
py
Python
storage/emulated/0/qpython/scripts3/get_webcam.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/get_webcam.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/get_webcam.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #import sys #sys.platform="linux2" import urllib.request as rq pic=rq.urlopen("http://192.168.0.105:8080/?n1=wkb7890&n2=%E7%B6%B2%E9%96%8B%E6%A8%99") #("http://192.168.0.104:8080/stream") respon=pic.read() print(respon) #print(help(rq)) ## 在程序所在文件夹下,将图片以二进制形式写入名字为name的文件中 #with o...
25.83871
87
0.66417
382e6fe0b0b8064bafa3c23b360854b7e2994bd4
811
py
Python
app/common/mail.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
73
2018-12-14T18:12:33.000Z
2022-02-23T21:39:59.000Z
app/common/mail.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
4
2019-11-23T18:08:18.000Z
2021-08-23T09:00:15.000Z
app/common/mail.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
33
2019-06-03T00:30:57.000Z
2022-03-10T23:54:43.000Z
""" AUTOR: Juanjo FECHA DE CREACIÓN: 17/01/2020 """ import logging from smtplib import SMTPException from threading import Thread from flask import current_app from flask_mail import Message from app import mail logger = logging.getLogger(__name__) def _send_async_email(app, msg): with app.app_context(): ...
21.918919
91
0.699137
3837207726502642fda24b9bc3e324dbc99b74e7
6,717
py
Python
src/__init__.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/__init__.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/__init__.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""Benzlim""" import logging import os import sys import argparse from .train import Trainer from .benchmark import process_benchmark from .compat import printf from .utils import create_file_dirs from .dao import CSVDAO from .config import Configuration from .prediction import (predict_prices_timestamps_x2_stations, ...
62.194444
209
0.716242
38a63bcfc9da8e117d6998ba206d4033bc9633c7
2,302
py
Python
script/compress/compress.py
stefanhetzenauer/fh-masterarbeit
a20ff446f4f89c7a4a457c983be5a5dcea4973ac
[ "MIT" ]
null
null
null
script/compress/compress.py
stefanhetzenauer/fh-masterarbeit
a20ff446f4f89c7a4a457c983be5a5dcea4973ac
[ "MIT" ]
null
null
null
script/compress/compress.py
stefanhetzenauer/fh-masterarbeit
a20ff446f4f89c7a4a457c983be5a5dcea4973ac
[ "MIT" ]
null
null
null
from turbojpeg import TurboJPEG from PIL import Image import numpy as np import os from tqdm import tqdm from datetime import datetime LIB_PATH = r'*\turbojpeg.dll' # path to dll PATH_TO_DATA = '' # folder structure # PATH_TO_DATA # -> SIZExSIZE/TIF -- the raw images, the rest should be created automatically def com...
37.129032
155
0.644222
aa4f23ae474e180668a5fe2ab1e2459facdf7a56
835
py
Python
AnswerMachine/candidate.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
AnswerMachine/candidate.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
AnswerMachine/candidate.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
"""Abstracts an abbreviation candidate""" class Candidate: def __init__(self, parts, magic): if parts[0] is None or parts[0] == '': self.type_character = '#' else: self.type_character = parts[0] if self.type_character == '&amp;': self.type_character = '&'...
30.925926
66
0.555689
2ab7f03515279f721731ef7ad98fd39399a40bfd
5,357
py
Python
Packs/Devo/Integrations/Devo/Devo.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Devo/Integrations/Devo/Devo.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Devo/Integrations/Devo/Devo.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 ''' IMPORTS ''' import hashlib import hmac import json import socket import struct import time from collections import Counter from datetime import datetime import requests # disable insecure warnings requests.packages.urllib3...
29.596685
116
0.637857
87f02e152ef93a9ee21203529ad0456b70b0b576
1,658
py
Python
panzee/damage.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
5
2015-07-16T20:44:58.000Z
2016-04-19T03:47:46.000Z
panzee/damage.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
6
2015-12-23T07:05:06.000Z
2016-07-03T22:29:03.000Z
panzee/damage.py
DangerOnTheRanger/project-panzee
9392a3d8c4a0acbac80905e164dca91b691022ab
[ "BSD-2-Clause" ]
null
null
null
STATUS_NORMAL, STATUS_FAINTED, STATUS_DEAD = range(3) class ModelStats(object): faint_threshold = 20 action_points = 150 def __init__(self, movement_cost=None, damage_reduction=None, max_ap=None, faint_threshold=None): if movement_cost is None: self.movement_cost = 1 else: ...
29.607143
101
0.639928
e20a5be7146cf9f66b9953255d7f15e29b9a85a3
399
py
Python
Problems/Dynamic Programming/Medium/CountNumberOfTeams/count_number_teams.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Medium/CountNumberOfTeams/count_number_teams.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Medium/CountNumberOfTeams/count_number_teams.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def numTeams(rating: List[int]) -> int: n, teams = len(rating), 0 up, down = [0 for _ in range(n)], [0 for _ in range(n)] for i in range(n): for j in range(i): if rating[j] < rating[i]: up[i] += 1 teams += up[j] else: ...
24.9375
59
0.446115
e216d7fc8d8c5bdeea4a856a1ad15a1e54cc568b
1,903
py
Python
Sekunden_Umwandlung.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
Sekunden_Umwandlung.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
Sekunden_Umwandlung.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Sekunden-Umwandlung https://www.programmieraufgaben.ch/aufgabe/sekunden-umwandlung/sxmwsks3 """ # Programmieraufgabe: # Schreiben Sie ein Programm, das eine Anzahl Sekunden in die Form # "h:mm:ss" (h = Stunden, mm = Minuten und ss = Sekunden) bringt. # Zu...
29.276923
80
0.636364
576c18a52eaaae5fe317c6bba51169bee1145000
3,300
py
Python
Flaschenverteilung.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
Flaschenverteilung.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
Flaschenverteilung.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Flaschenverteilung (Algorithmen) https://www.programmieraufgaben.ch/aufgabe/flaschenverteilung-1/i9kdigw5 """ # Programmieraufgabe: # Familie Kurse möchte Urlaub auf der trinkwasserlosen Insel Drøgø, deren # Küste ringsherum sehr steil ist. Zum Glück gibt es ...
38.823529
82
0.694242
57711d4523b86b32b50bc005879acd55559f0677
1,656
py
Python
elements/python/8/19/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/8/19/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/8/19/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import random class Node(object): def __init__(self, x, nxt): self.x = x self.next = nxt def add_lists(n0, n1): carry = 0 cur = base = Node(0, None) while n0 is not None or n1 is not None or carry > 0: d0 = n0.x if n0 is not None else 0 d1 = n1.x if n1 is not None els...
17.806452
56
0.519928
17adb399b5cb4be8eefd6e3bf5a766519304c7b0
1,195
py
Python
Algorithms/Strings/Gemstones.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Strings/Gemstones.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Strings/Gemstones.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
import string # https://www.hackerrank.com/challenges/gem-stones/problem?h_r=internal-search # ascii_lowercase -> 95-123 import string l = string.ascii_lowercase ind = l.index('a') ar = [0 for _ in range(len(l))] arr = ['abcdde', 'baccd', 'eeabg'] arr = [set(i) for i in arr] print(len(arr),arr) for i in arr: ...
17.318841
78
0.52636
aa32337a1a7c888d5b37fd097280ba59255c6e34
11,293
py
Python
zk2.py
persquare/ZK2
5c00d0a5a59123931848259286bb13bb86c5396b
[ "MIT" ]
2
2020-03-05T16:01:17.000Z
2020-09-25T11:28:27.000Z
zk2.py
persquare/ZK2
5c00d0a5a59123931848259286bb13bb86c5396b
[ "MIT" ]
null
null
null
zk2.py
persquare/ZK2
5c00d0a5a59123931848259286bb13bb86c5396b
[ "MIT" ]
null
null
null
# File format: # 0. Tagline # Optional: <!-- ZK<optional string> --> # 1. Header (enclosed in '---') # Mandatory: Date, ID # Optional: Author, Modified, Tags, Title # Example: # --- # Date: 2019-02-10 16:22:16 # Modified: 2019-02-11 18:24:10 # Author: Per Persson # ...
27.815271
92
0.565837
a4bedc1d43f03612fad7f9472b85f9cb65f54982
2,532
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/composite.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/composite.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/composite.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" *What is this pattern about? The composite pattern describes a group of objects that is treated the same way as a single instance of the same type of object. The intent of a composite is to "compose" objects into tree structures to represent part-whole hierarchies. Implementing the composite pattern lets clients tr...
26.93617
72
0.693523
52a2010d7633fb68ec610840287578318d7fb818
3,104
py
Python
nettests/multi-nodes-test.py
Laighno/evt
90b94e831aebb62c6ad19ce59c9089e9f51cfd77
[ "MIT" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
nettests/multi-nodes-test.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
nettests/multi-nodes-test.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
364
2018-06-09T12:11:53.000Z
2020-12-15T03:26:48.000Z
import subprocess import unittest import docker import click import time import json import zmq from pyevt import abi, ecc, evt_link, libevt from pyevtsdk import action, api, base, transaction import requests import launch_nodes ctx = zmq.Context() socket = ctx.socket(zmq.REQ) socket.connect('tcp://localhost:6666') ...
31.353535
161
0.569265
5e1c7989aeb9dee0e25dda7507b861fd2e3fd0f0
936
py
Python
aiohttp_server/simpleServer.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
aiohttp_server/simpleServer.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
aiohttp_server/simpleServer.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
''' https://docs.aiohttp.org/en/stable/web_quickstart.html ''' from aiohttp import web import signal signal.signal(signal.SIGINT, signal.SIG_DFL) class SimpleServer: def __init__(self): self.webpage_data = "Hello, world" async def send_webpage_data(self, request): return web.Response(text=...
26.742857
83
0.648504
dc38a22d277e2fe6b2de631368d1fbe3ae05c321
1,454
py
Python
Twitter-Info-master/Twitter_info.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Twitter-Info-master/Twitter_info.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Twitter-Info-master/Twitter_info.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Contributor(s): nigella (@nig) from re import findall from sys import argv, exit from urllib.request import urlopen __author__ = 'D4Vinci' def get(twitter): ''' get information of given twitter account link or username ''' try: data = urlopen(twitter).read() s = data.decode('u...
31.608696
143
0.563961
dc72432329ad17ea2eeea5fc95dfaaa2261b33d3
6,270
py
Python
2021-05-09/写笔记带后端/library-server-develop/apps/search/views.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/写笔记带后端/library-server-develop/apps/search/views.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/写笔记带后端/library-server-develop/apps/search/views.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from django.shortcuts import render from django.http import HttpResponse from bs4 import BeautifulSoup import urllib.parse import json import re def get_books_list(request): # 获取request query参数 book_name = request.POST.get('book', '') school = request.POST.get('school', 'gdut') lib_path = request.POST...
35.625
109
0.611164
f4b7d3da68dee70ae6f5901c24917d7da796d920
1,467
py
Python
nz_crawl_demo/day2/demo3.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day2/demo3.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day2/demo3.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from urllib import request from urllib import parse import json headers = { "User-Agent":"Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.8.131 Version/11.11", } url = "https://music.163.com/weapi/v1/resource/comments/A_PL_0_924680166?csrf_token=6789630a244c9d7be267d088f0bbe1d7" data = { "param...
37.615385
274
0.808453
876d411232c446c113d5c3824c76c5f354d30cf0
3,893
py
Python
temp_over_modbus/modbus_slave_temp_sensor.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
temp_over_modbus/modbus_slave_temp_sensor.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
temp_over_modbus/modbus_slave_temp_sensor.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
import time import smbus from pymodbus.server.async import StartTcpServer from pymodbus.device import ModbusDeviceIdentification from pymodbus.datastore import ModbusSequentialDataBlock from pymodbus.datastore import ModbusSlaveContext, ModbusServerContext from pymodbus.transaction import ModbusRtuFramer, ModbusAscii...
32.714286
80
0.583612
5ebdf1e2733246c0717be4c882a8b6104bd5c7ef
1,571
py
Python
shinrl/solvers/discrete_vi/_build_net_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/solvers/discrete_vi/_build_net_mixin.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/solvers/discrete_vi/_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 import shinrl as srl from .config import ViConfig class BuildNetMixIn: def initialize(self, env: gym.Env, confi...
30.803922
82
0.667728
5ed643b3e9130577a406d1c46f151c9ec8c27e9c
752
py
Python
cbm/ipycbm/ipy_foi/foi_main.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/ipycbm/ipy_foi/foi_main.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/ipycbm/ipy_foi/foi_main.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Gilbert Voican, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD from ipywidgets import Tab from cbm.ipycb...
27.851852
75
0.691489
0d962116cb84605f8d5c8f721218d311a8538b54
2,336
py
Python
7-assets/past-student-repos/Graphs-master/python/guided-demo/graphs-2/src/dfs.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Graphs-master/python/guided-demo/graphs-2/src/dfs.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Graphs-master/python/guided-demo/graphs-2/src/dfs.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Represent a graph with depth-first-search, and run a demo with a randomly generated graph containing a given number of vertices and edges (default 8). """ from sys import argv class Vertex: """Represent a vertex with label and set of edges to other vertices.""" # Just holds data, but i...
29.56962
77
0.62286
0dc01f52680daa6b3dd2d430d033dba1bb7247b2
13,209
py
Python
Packs/EmailRepIO/Integrations/EmailRepIO/EmailRepIO_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/EmailRepIO/Integrations/EmailRepIO/EmailRepIO_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/EmailRepIO/Integrations/EmailRepIO/EmailRepIO_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""EmailRepIO Integration for Cortex XSOAR - Unit Tests file""" from CommonServerPython import Common, DBotScoreType import demistomock as demisto import pytest import json import io TEST_EMAIL_ADDRESS = 'test@example.com' INTEGRATION_NAME = 'EmailRepIO' @pytest.fixture(autouse=True) def handle_calling_context(mock...
31.52506
113
0.662881
21d4615055e7269c3a3b8721db8ff9243db4af9f
3,837
py
Python
tiny-cpp/make-graphs.py
christoff-buerger/racr-boneyard
c8ca206534dae4d3c41d1ec27085c67947062fb8
[ "MIT" ]
30
2015-03-14T14:09:55.000Z
2022-03-28T13:52:54.000Z
profiling/atomic-petrinets/make-graphs.py
eeide/racket-racr
734b1c4584de407f6a8cacb2e255c36679bd4111
[ "MIT" ]
61
2015-03-14T14:14:25.000Z
2021-10-29T21:29:55.000Z
profiling/atomic-petrinets/make-graphs.py
eeide/racket-racr
734b1c4584de407f6a8cacb2e255c36679bd4111
[ "MIT" ]
9
2015-05-26T15:44:05.000Z
2019-03-26T01:10:20.000Z
#!/usr/bin/python2.7 -tt # -*- coding: utf-8 -*- # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. # author: C. Bürger import sys import getopt import collections import numpy as np import matplotlib.pyplot as plt ...
33.955752
107
0.560855
df1c70db54ccd19fd5dc7d6a1c8eab97cb5a9fb7
9,083
py
Python
pylokid/library/lodur.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
3
2020-03-03T07:38:24.000Z
2021-07-21T22:40:41.000Z
pylokid/library/lodur.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
10
2018-01-02T17:46:06.000Z
2021-12-13T20:58:38.000Z
pylokid/library/lodur.py
tobru/pylokid
15b46d19c62ef62c068873554cafdc5b1bc0072a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Small Lodur Library for the Module 36 - Einsatzrapport """ import re import logging import json import mechanicalsoup import pprint from datetime import datetime, timedelta class Lodur: """ Lodur """ def __init__(self, url, username, password): self.logger = logging.getLo...
36.332
97
0.587141
1d2f31edeb42e58457887318446a8baabb40ad43
674
py
Python
menu.py
sera619/PassMaker
51075a77bffbc79e429a1b6f111291e642a4cd32
[ "Apache-2.0" ]
null
null
null
menu.py
sera619/PassMaker
51075a77bffbc79e429a1b6f111291e642a4cd32
[ "Apache-2.0" ]
null
null
null
menu.py
sera619/PassMaker
51075a77bffbc79e429a1b6f111291e642a4cd32
[ "Apache-2.0" ]
null
null
null
from consolemenu import ConsoleMenu as CM from consolemenu.items import CommandItem as CmmdItem from consolemenu.items import SubmenuItem, FunctionItem menu = CM("PassMaker - Passwort Generator v1.2", "PassMaker Menu") generatePassword = CmmdItem('Erstelle Passwort', 'python passmaker.py') löscheTxt = CmmdItem('Lösc...
30.636364
95
0.692878
9864e31c0c6648acfa1a0acea8f7da242dd9c6c2
140
py
Python
exercises/zh/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_03_14_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "docs = list(nlp.pipe(TEXTS))" in __solution__ ), "你有用list将nlp.pipe的结果变为列表吗?" __msg__.good("美美哒!")
23.333333
54
0.6
98a13fb22a824a0aa0283a5122ad307281169198
5,337
py
Python
task_1/data_investigation/sentiment_nrc.py
strumswell/sentiment-apple-events
b6f4f7799374aba757874f5426b3a2c1bf7d29b5
[ "MIT" ]
1
2022-02-28T22:02:50.000Z
2022-02-28T22:02:50.000Z
task_1/data_investigation/sentiment_nrc.py
strumswell/sentiment-apple-events
b6f4f7799374aba757874f5426b3a2c1bf7d29b5
[ "MIT" ]
null
null
null
task_1/data_investigation/sentiment_nrc.py
strumswell/sentiment-apple-events
b6f4f7799374aba757874f5426b3a2c1bf7d29b5
[ "MIT" ]
null
null
null
# %% Imports from nrclex import NRCLex import pandas as pd # %% Read Docs events = ['2020_Nov_Post', '2020_Nov', '2020_Nov_Pre', '2020_Oct_Post', '2020_Oct', '2020_Oct_Pre', '2020_Sept_Post', '2020_Sept', '2020_Sept_Pre', '2020_Jun_Post', '2020_Jun', '2020_Jun_Pre', '2019_Sept_Post', '2019_Sept', '2019_Sept_Pre', '20...
38.956204
463
0.679595
7f19a694986eb48db16e336e929efb039beab7f6
1,600
py
Python
tests/test_marktteilnehmer.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_marktteilnehmer.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_marktteilnehmer.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import json from bo4e.bo.marktteilnehmer import Marktteilnehmer, MarktteilnehmerSchema from bo4e.com.adresse import Adresse from bo4e.enum.botyp import BoTyp from bo4e.enum.geschaeftspartnerrolle import Geschaeftspartnerrolle from bo4e.enum.marktrolle import Marktrolle from bo4e.enum.rollencodetyp import Rollencodetyp...
32.653061
85
0.740625
4efceed539bf0dd1efdcdbec1da2f6f550f6b9ee
824
py
Python
Chapter2_Python/UsingModules.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/UsingModules.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/UsingModules.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
# import MyModule # Alternative # l1 = [-2, 1, 2, -10, 22, -10] # l1_max = MyModule.list_max(l1) # print(l1_max) # l2 = [-20, 123, 112, -10, 22, -120] # l2_max = MyModule.list_max(l2) # print(l2_max) # from MyModule import list_max # Alternative 2 # l1 = [-2, 1, 2, -10, 22, -10] # l1_max = list_max(l1)...
20.097561
48
0.571602
f650f0a2a33a2ca4ccbe6b4e36e6f47c7742d232
1,865
py
Python
pyqtgraph/simple/simple.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
pyqtgraph/simple/simple.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
pyqtgraph/simple/simple.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import PyQt5 import PyQt5.QtCore import PyQt5.QtWidgets import numpy as np import pyqtgraph as pg class UI_Widget(PyQt5.QtWidgets.QDialog): def __init__(self, parent=None): super(UI_Widget, self).__init__(parent) vbox = PyQt5.QtWidgets.QVBoxLayout() #...
27.028986
72
0.641287
144d1995af48c3848ad1dfec72caa01310aecf16
416
py
Python
angstrom/2019/crypto/WALL-E/wall-e.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2019/crypto/WALL-E/wall-e.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2019/crypto/WALL-E/wall-e.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from Crypto.Util.number import getPrime, bytes_to_long, inverse from secret import flag assert(len(flag) < 87) # leave space for padding since padding is secure p = getPrime(1024) q = getPrime(1024) n = p*q e = 3 d = inverse(e,(p-1)*(q-1)) m = bytes_to_long(flag.center(255,"\x00")) # pad on both sides for extra secur...
27.733333
81
0.670673
14524903c08027abba5f417a6183750721feb02c
983
py
Python
Python/Programação_em_Python_Essencial/5- Coleções/named_tuple.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/5- Coleções/named_tuple.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/5- Coleções/named_tuple.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
""" Módulo Collections - Named Tuple https://docs.python.org/3/library/collections.html#collections.namedtuple # Recap Tupla tupla = (1, 2, 3) print(tupla[1]) Named Tuple -> São tuplas, diferenciadas, onde, específicamos um nome para a mesma e também parâmetros. """ # Realizando import from collections import nam...
17.872727
103
0.709054
214e391c09ecac7c59bfa9914b51761a03718313
1,703
py
Python
Securinets/2021/Quals/crypto/Special/app.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Securinets/2021/Quals/crypto/Special/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Securinets/2021/Quals/crypto/Special/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from Crypto.Util.number import isPrime, bytes_to_long from secret import flag import random def get(r): while True: a = random.getrandbits(512) p = a**2 + r if isPrime(p) : return p m = bytes_to_long(flag) e = 65537 p, q = get(1337), get(1187) n = p*q c = pow(m, e, n) print ("Modulus : {}"....
63.074074
627
0.889607
0d16aa5922741ef4917ee5fa20b7ac68ca91f207
948
py
Python
verto/errors/StyleError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/errors/StyleError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/errors/StyleError.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.errors.Error import Error MESSAGE_TEMPLATE = '''{} The error occured in the following line(s): {} ''' class StyleError(Error): '''Exception raised when a Style rule is broken. Attributes: line_nums: the line numbers the rule as broken on lines: lines where the style rule was broke...
27.085714
73
0.636076
2eb2880fbe62452dc651ca8dc9d043aa6ae254d3
2,660
py
Python
.venv/Lib/site-packages/dexpy/tests/test_box_behnken.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/tests/test_box_behnken.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/tests/test_box_behnken.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
from unittest import TestCase from dexpy.eval import det_xtxi from dexpy.model import make_quadratic_model from dexpy.box_behnken import build_box_behnken import patsy import numpy as np class TestBoxBehnken(TestCase): def test_three_factor(self): """Tests a 3 factor Box-Behnken design.""" factor_...
38
75
0.61015
2eef877913c74ca0ac9c7f947553e657ca66555c
2,012
py
Python
Webpage/cruises/urls.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/cruises/urls.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/cruises/urls.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
"""Django URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
46.790698
88
0.713221
257868cdcf1d5835cc043b1273b9b382dd6a9585
337
py
Python
15/python/lattice.py
rmccorm4/Project-Euler
a80a85859d5aa67ece02c15d6726292531463ee1
[ "MIT" ]
null
null
null
15/python/lattice.py
rmccorm4/Project-Euler
a80a85859d5aa67ece02c15d6726292531463ee1
[ "MIT" ]
null
null
null
15/python/lattice.py
rmccorm4/Project-Euler
a80a85859d5aa67ece02c15d6726292531463ee1
[ "MIT" ]
null
null
null
n = int(input("Enter dimension of matrix: ")) numerator = 1 # n is even if n % 2 == 0: for k in range(1, n, 2): numerator *= (2*n - k) # n is odd else: for k in range(1, n-1, 2): numerator *= (2*n - k) numerator *= 2**((n+1)//2) denominator = 1 for k in range(1, (n//2)+1): denominator *= k print(int(numerat...
16.85
45
0.581602
d30142fbe0fb7f8db9a9a6989a767293ccc279f6
7,877
py
Python
abstract_stack_machine.py
Peetee06/compilerbau_ws2122_hsbochum
9b71e33f7385ba946ce7f4d375b7ca68b21dd97f
[ "MIT" ]
null
null
null
abstract_stack_machine.py
Peetee06/compilerbau_ws2122_hsbochum
9b71e33f7385ba946ce7f4d375b7ca68b21dd97f
[ "MIT" ]
null
null
null
abstract_stack_machine.py
Peetee06/compilerbau_ws2122_hsbochum
9b71e33f7385ba946ce7f4d375b7ca68b21dd97f
[ "MIT" ]
2
2022-03-13T18:48:24.000Z
2022-03-20T16:45:19.000Z
class AbstractStackMachine: def __init__(self, ir): # intermediate representation self.ir = ir self.stack = [] self.tmp_stack = [] self.jump_stack = [] self.value = None global_symbol_table = {} self.symbol_tables = [global_symbol_table] def evalu...
34.099567
76
0.427828
d332e4b0b5e64bc2e48096bc8fd19c4fe096d6a7
2,035
py
Python
src/bo4e/com/tarifpreisstaffelproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/tarifpreisstaffelproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/tarifpreisstaffelproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains TarifpreisstaffelProOrt class and corresponding marshmallow schema for de-/serialization """ from decimal import Decimal import attr from marshmallow import fields from bo4e.com.com import COM, COMSchema # pylint: disable=too-few-public-methods @attr.s(auto_attribs=True, kw_only=True) class Tarifpreiss...
37
201
0.759214
2c702a047a1d82ed242c71530d784430bf75d520
651
py
Python
VeterinerApp/VetApps/Apps/urls.py
icakmak/Veteriner
c6445008197f078fdc3f509a3d4b0323532c1df9
[ "MIT" ]
null
null
null
VeterinerApp/VetApps/Apps/urls.py
icakmak/Veteriner
c6445008197f078fdc3f509a3d4b0323532c1df9
[ "MIT" ]
null
null
null
VeterinerApp/VetApps/Apps/urls.py
icakmak/Veteriner
c6445008197f078fdc3f509a3d4b0323532c1df9
[ "MIT" ]
null
null
null
from django.urls import path from VetApps.Apps import views as api_views urlpatterns = [ path('sahipler/',api_views.CustomerListCreateAPIView.as_view(),name='sahipler-listesi'), path('sahipler/<int:pk>',api_views.CustomerDetailApiView.as_view(),name='sahipler-detail'), path('turler/',api_views.KindLis...
50.076923
95
0.749616
393b5ae359f44328af4f9684b0a3d8d142c92ab7
660
pyde
Python
sketches/turtlepythagoras/turtlepythagoras.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/turtlepythagoras/turtlepythagoras.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/turtlepythagoras/turtlepythagoras.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
add_library('Turtle') import math def setup(): global p size(640, 480) this.surface.setTitle("Pythagorasbaum") background(50) strokeWeight(1) stroke(150, 255, 100) p = Turtle(this) noLoop() def draw(): p.penUp() p.goToPoint(width/2 - 50, height - 50) p.penDown() tree(10...
15.714286
43
0.537879
b3a101246c45a892600d5d8b1015e1c58eecccd2
586
py
Python
packages/watchmen-model/src/watchmen_model/dqc/monitor_data.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/dqc/monitor_data.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/dqc/monitor_data.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Optional from pydantic import BaseModel from watchmen_model.common import DataModel, FactorId, TopicId from .monitor_rule import MonitorRuleCode class MonitorRuleLog(DataModel, BaseModel): ruleCode: MonitorRuleCode = None topicId: Optional[TopicId] = None factorId...
24.416667
62
0.795222
45b6716d5d28271dfff4578793a49d311e64e583
546
py
Python
pyventskalender/tag08_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag08_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag08_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from typing import List BEKANNTE_SAEUGETIERE = [ "Hund", "Katze", "Affe", "Mensch", "Maulwurf", "Pferd", ] def saeugetiere_aus(tiere: List[str]) -> List[str]: saeugetiere = [] for tier in tiere: if tier in BEKANNTE_SAEUGETIERE: saeugetiere.append(tier) return s...
20.222222
72
0.595238
45b84ceadd5eb630795d9c041e8d0b8367eb5751
750
py
Python
presentations/software-engineering-basics/src/sieve-v3.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
presentations/software-engineering-basics/src/sieve-v3.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
presentations/software-engineering-basics/src/sieve-v3.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
from math import ceil def round_up(n, prime): return int(ceil(float(n) / prime)) def get_primes_below_n(n=1000000): """ Get a list of all primes below n. Parameters ---------- n : int Returns ------- prime_list : list Examples -------- >>> get_primes_below_n(10) ...
20.27027
64
0.590667
45c6aa72f5f0957531befbe20c44c8e36a6f9ace
1,700
py
Python
server.py
weerachaiy/Python-Code
f37fb886076e2e7b7a538c8d29dbfb2e0b68c91f
[ "Apache-2.0" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
FooBar/2021/crypto/Back-to-the-future/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
FooBar/2021/crypto/Back-to-the-future/server.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 arrow import json import random import sys keys = { "a": 15498798452335698516189763255, "b": 4 } with open('flag') as f: flag = f.read() with open('/dev/urandom', 'rb') as f: rand = f.read(8) rand_int = int(rand.hex(), 16) random.seed(rand_int) offset = random.rand...
26.984127
154
0.585294
b341daf561b1c2495c5f97994e96d589fd84f71f
746
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/096_@property-_getters_e_setters/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/096_@property-_getters_e_setters/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/096_@property-_getters_e_setters/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
class Produto: def __init__(self, nome, preco): self.nome = nome self.preco = preco def desconto(self, porcentual): self.preco = self.preco - (self.preco * (porcentual / 100)) @property def nome(self): return self._nome @nome.setter def nome(self, preco): ...
19.631579
67
0.585791
b36bc1a2ccc911688e44a8bee7a4a8c6b6ae974a
443
py
Python
apps/flowguard/urls.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
null
null
null
apps/flowguard/urls.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
null
null
null
apps/flowguard/urls.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from apps.flowguard import views urlpatterns = [ url(r'api/1/update$', views.update, name='update'), url(r'monitor/$', views.monitor, name='monitor'), url(r'stats/$', views.stats, name='stats'), url(r'lookup/$', views.lookup, name='lookup'), url(r'history/$', views...
34.076923
93
0.638826
ffb1fda1440e903bf2ba10763b8507b4bbc2d2c5
586
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/rename_sitemap_to_route.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v4_0/rename_sitemap_to_route.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/rename_sitemap_to_route.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe import frappe.model def execute(): frappe.reload_doc("setup", "doctype", "item_group") frappe.reload_doc("stock", "doctype", "item") frappe.reload_doc("setup", "doctype", "sales_partner") try: frappe.model.rename_field("Item Group", "parent_website_sitemap"...
32.555556
91
0.757679
a66a289455e8596f180cd825a1b0f5b55d477fb3
34,576
py
Python
main_arm_pfb.py
MaliziaGrimm/pfb2lodas
f7a51edbe27162eddb0ee75cf093fefbcd76effe
[ "MIT" ]
1
2019-06-16T05:31:02.000Z
2019-06-16T05:31:02.000Z
main_arm_pfb.py
MaliziaGrimm/pfb2lodas
f7a51edbe27162eddb0ee75cf093fefbcd76effe
[ "MIT" ]
null
null
null
main_arm_pfb.py
MaliziaGrimm/pfb2lodas
f7a51edbe27162eddb0ee75cf093fefbcd76effe
[ "MIT" ]
null
null
null
#Example (Hello, World): from tkinter import * #in python 3.x: tkinter wird kleingeschrieben from tkinter import messagebox import os, sys, time from shutil import copyfile def speichern_neu_AN(): ### Block Pflichtfelder lesen v_pnr = E_pnr.get() v_name = E_name.get() v_vname = E_vname.get() ...
43.328321
332
0.651608
a6c2db613be9ee12097ac6c3f12f560f101eba1d
954
py
Python
Packs/FeedAzureADConnectHealth/Integrations/AzureADConnectHealthFeed/FeedAzureADConnectHealth_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedAzureADConnectHealth/Integrations/AzureADConnectHealthFeed/FeedAzureADConnectHealth_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedAzureADConnectHealth/Integrations/AzureADConnectHealthFeed/FeedAzureADConnectHealth_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from AzureADConnectHealthFeed import Client URL = 'https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-health-agent-install#outbound-connectivity-to-the-azure-service-endpoints' # noqa def test_build_iterator(requests_mock): with open('test_data/Microsoft_endpoint_mock.html', 'r') as f...
41.478261
166
0.731656
5b3b5b2a327e76e55a8f2d706ea9d07bbf19a20f
21,352
py
Python
Learn X in Y Minutes/Python/learnpython-pt.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Learn X in Y Minutes/Python/learnpython-pt.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Learn X in Y Minutes/Python/learnpython-pt.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# Comentários em uma única linha começam com uma cerquilha (também conhecido por sustenido). """ Strings de várias linhas podem ser escritas usando três ", e são comumente usadas como comentários. """ #################################################### ## 1. Tipos de dados primitivos e operadores #########...
30.590258
142
0.63994
5b6bb921cb4b46707c7f8a0a278ea0f9868cf8c8
4,039
py
Python
Packs/ManageEngine_PAM360/Integrations/ManageEnginePAM360/ManageEnginePAM360_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ManageEngine_PAM360/Integrations/ManageEnginePAM360/ManageEnginePAM360_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ManageEngine_PAM360/Integrations/ManageEnginePAM360/ManageEnginePAM360_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import pytest from ManageEnginePAM360 import Client, pam360_fetch_password, pam360_create_resource, \ pam360_create_account, pam360_update_resource, pam360_update_account, pam360_fetch_account_details, pam360_list_resources, \ pam360_list_accounts, pam360_update_account_password, pam360_fetch_resource_account_...
38.836538
130
0.774202
5b9502255be7e0ee94c6d9c2bd65096da9a7ba84
3,501
py
Python
frds/measures/func_absorption_ratio.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/measures/func_absorption_ratio.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/measures/func_absorption_ratio.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
from decimal import Decimal, ROUND_HALF_UP import numpy as np def absorption_ratio( asset_returns: np.ndarray, fraction_eigenvectors: float = 0.2 ) -> float: """Absorption Ratio A measure of systemic risk defined as the fraction of the total variance of a set of asset returns explained or absorbed by...
47.958904
166
0.673522
f39807f4164f85ebaa90504cac251708aabf3583
3,466
py
Python
crypto/ECC/ecc_secp256k1.py
yingjingyang/Dapp-Learning
5bf10a02932926e429c1a61704d9a9dfee3a13ea
[ "MIT" ]
987
2021-12-19T09:57:18.000Z
2022-03-31T15:39:45.000Z
crypto/ECC/ecc_secp256k1.py
yingjingyang/Dapp-Learning
5bf10a02932926e429c1a61704d9a9dfee3a13ea
[ "MIT" ]
73
2021-07-04T03:53:57.000Z
2021-12-18T06:17:13.000Z
crypto/ECC/ecc_secp256k1.py
yingjingyang/Dapp-Learning
5bf10a02932926e429c1a61704d9a9dfee3a13ea
[ "MIT" ]
263
2021-06-28T15:26:56.000Z
2021-12-19T08:14:37.000Z
#coding:utf-8 #!/usr/bin/env python import sys if sys.version_info < (3,0): print("Please use python3 version to run the code") print("请使用 python3 运行代码") sys.exit() # Super simple Elliptic Curve Presentation. No imported libraries, wrappers, nothing. # For educational purposes only. # Below are the pub...
30.672566
90
0.62839
1b5cbd640482768aeeb2961f2fba7c133a5431f5
4,270
py
Python
roboraptorz/client/mqttApp/RoboDriver.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
roboraptorz/client/mqttApp/RoboDriver.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
roboraptorz/client/mqttApp/RoboDriver.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
1
2019-10-22T07:47:51.000Z
2019-10-22T07:47:51.000Z
import logging import json from Common import * loggerDrv = logging.getLogger(__name__) # Supported Robodriver callbacks # onStatus(status) # onDirections(directions) # onColors(directionColor)) # onError(errorStr) class RoboDriver: def __init__(self, topicPrefix='robo-03'): self.onStatus=Non...
34.435484
97
0.638173
ca90c281e7606ed5deccd2cd16e0643ec2882f37
1,425
py
Python
BITs/2014/Baybulatova_Karina_V/task_8_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_Karina_V/task_8_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_Karina_V/task_8_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 8. Вариант 3. #Доработать игру "Анаграммы" так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавшие слово без подсказки, получали больше тех, кто запроси...
33.928571
310
0.650526
8e2ff4fc00e7d23eafb3ae6d5c9b1bb1aa3d57ef
5,791
py
Python
src/server/db/ModuleMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/ModuleMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/ModuleMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
from server.bo.Module import Module from server.db.Mapper import Mapper class ModuleMapper (Mapper): def __init__(self): super().__init__() """Mapper class, that maps the module objects on relational Database. To do this, a number of methods are available which help to search, cre...
32.903409
102
0.596097
8e4a305c2a8e513640ea34a1a68f7efe9fac6aca
2,651
py
Python
kts/tests/test_cache.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/tests/test_cache.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/tests/test_cache.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import time import numpy as np import pandas as pd import pytest from kts.core.cache import ObjectCache, FrameCache, CachedMapping @pytest.mark.parametrize('val_1,val_2', [ (42, 51), ]) def test_object_cache_timestamp_sync(tmp_path, val_1, val_2): c1 = ObjectCache(tmp_path) c2 = ObjectCache(tmp_path) ...
30.825581
142
0.568465