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
28566103945aba27602bdf2e90fa0068f1dba2be
120
py
Python
pythonProj/FZPython/pyquant/libs/cachelib.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/libs/cachelib.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/libs/cachelib.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python # coding: utf8 from diskcache import Cache cache = Cache('/tmp/fzquant') cache.set('abc','def')
15
29
0.691667
95afc31d4de91c1766ec76a05568b374a0911a5d
10,642
py
Python
data-pipeline/src/data_pipeline/datasets/gnomad_v3/gnomad_v3_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/datasets/gnomad_v3/gnomad_v3_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/datasets/gnomad_v3/gnomad_v3_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import itertools import hail as hl from data_pipeline.data_types.variant import variant_id def nullify_nan(value): return hl.if_else(hl.is_nan(value), hl.null(value.dtype), value) def freq_index_key(subset=None, pop=None, sex=None, raw=False): parts = [s for s in [subset, pop, sex] if s is not None] p...
35.355482
119
0.462131
c2e2a9e7531966ffc30ee4984702c536abecdb1d
4,639
py
Python
main_window.py
zapfdk/broadcast-clock
b88d8daad784bc9fe06b00b50d3f56ceb16dfc96
[ "MIT" ]
null
null
null
main_window.py
zapfdk/broadcast-clock
b88d8daad784bc9fe06b00b50d3f56ceb16dfc96
[ "MIT" ]
null
null
null
main_window.py
zapfdk/broadcast-clock
b88d8daad784bc9fe06b00b50d3f56ceb16dfc96
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Tue Nov 15 22:29:46 2016 @author: Dominik """ import tkinter as tk import tkinter.font import time_manager as tm from datetime import datetime, timedelta import platform class MainWindow(tk.Tk): def __init__(self, window_height, window_width): ...
35.96124
117
0.640871
6c0eac187bcdf9795e84e03dd95b884fe3f7cd18
57
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.12-list-empty-list.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.12-list-empty-list.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.12-list-empty-list.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
li = [] for i in range(10): li.append(i) print(li)
8.142857
19
0.54386
dd423894d845db9dfd1d4be7052a4fd35b003db0
465
py
Python
code/snake/Algorithms/David.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
1
2020-03-30T09:25:53.000Z
2020-03-30T09:25:53.000Z
code/snake/Algorithms/David.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
2
2020-02-05T14:00:23.000Z
2020-03-30T19:57:19.000Z
code/snake/Algorithms/David.py
BogyMitutoyoCTL/AI-Preparation
ef535741816b02e5e63d426a3232a688c9abd726
[ "MIT" ]
null
null
null
from Algorithms.Algorithms import Algorithm from GameData import GameData class David(Algorithm): # Passe den Klassen-Namen hier an def __init__(self): super().__init__() def decide(self, info: GameData) -> str: if info.nearest_wall_distance == 0: return "turn left" if i...
25.833333
58
0.617204
6628c9b62213bff98a9bc9b5360ae80202066270
1,317
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_translate.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_translate.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_translate.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformTranslate(unittest.TestCase): def setUp(self): self.data = { "test1": "250", "test2": "350", "test3": "550" } def test_transform_trans...
26.877551
86
0.399393
b072579238045efe5df487e7e2702c7923fbec0a
620
py
Python
source/pkgsrc/devel/gobject-introspection/patches/patch-giscanner_ccompiler.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/gobject-introspection/patches/patch-giscanner_ccompiler.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/gobject-introspection/patches/patch-giscanner_ccompiler.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-giscanner_ccompiler.py,v 1.4 2021/01/11 19:15:24 jperkin Exp $ Exclude system paths from LD_LIBRARY_PATH. --- giscanner/ccompiler.py.orig 2020-10-03 10:23:41.768748500 +0000 +++ giscanner/ccompiler.py @@ -215,7 +215,8 @@ class CCompiler(object): else: args....
36.470588
77
0.619355
b0d1e19b4dd8383cabdf37723c89173681d7975e
1,657
py
Python
ISTp/2013/IVANOV_S_E/task_8_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2013/IVANOV_S_E/task_8_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2013/IVANOV_S_E/task_8_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 8. Вариант 6. # Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. Разработайте систему начисления очков, по которой бы игроки, отгадавшие слово ...
31.865385
356
0.652384
b0e0a0c3eae687ecd52c4eb34ecd352e5ca0c4de
88
py
Python
src/aijack/collaborative/splitnn/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
src/aijack/collaborative/splitnn/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
src/aijack/collaborative/splitnn/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
from .client import SplitNNClient # noqa: F401 from .flow import SplitNN # noqa: F401
29.333333
47
0.75
b0f4186509726b6c9ac0fd5c86d5819da3d126c6
9,534
py
Python
cogs/commands.py
DerEhrenmannausFrankfurt/FahrkartenKontrolleur-Bot
550133f3ebafe7e9169bed09e765b8a236557cce
[ "Apache-2.0" ]
null
null
null
cogs/commands.py
DerEhrenmannausFrankfurt/FahrkartenKontrolleur-Bot
550133f3ebafe7e9169bed09e765b8a236557cce
[ "Apache-2.0" ]
null
null
null
cogs/commands.py
DerEhrenmannausFrankfurt/FahrkartenKontrolleur-Bot
550133f3ebafe7e9169bed09e765b8a236557cce
[ "Apache-2.0" ]
null
null
null
import asyncio import discord from discord.ext import commands import botsetup import random ilink = 'https://i.gifer.com/8CHv.gif' alltext = 'für mehr Commands gebe /bottalk ein' puhgif = 'https://noktara.de/wp-content/uploads/phew.gif' bombegif = 'https://media.giphy.com/media/HhTXt43pk1I1W/giphy.gif' li...
49.91623
141
0.61223
9fe33dec48348e8beb38dd731d422f76766c0371
141
py
Python
nyan.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
nyan.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
nyan.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
def Test(): nyan = input("Was möchtest du? Nya~ ") test = input("Was möchten sie mein Herr? ") return test Test() x = Test(test)
20.142857
47
0.602837
05e12fbd3ecf52106afee32766ffa5aae6c50a57
1,701
py
Python
Packs/CofenseTriage/Integrations/CofenseTriagev2/conftest.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CofenseTriage/Integrations/CofenseTriagev2/conftest.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CofenseTriage/Integrations/CofenseTriagev2/conftest.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import datetime from pathlib import Path import pytest from unittest.mock import patch demisto_params = { "host": "https://some-triage-host/", "token": "api_token", "user": "user", } with patch("demistomock.params", lambda: demisto_params): from CofenseTriagev2 import TriageInstance # noqa: 401 - thi...
26.169231
112
0.660788
af2e76a664db72897a7a2636792a56f2f23305bf
3,015
py
Python
research/cv/SRGAN/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SRGAN/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SRGAN/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.155844
88
0.646766
e639d88272566bae3b6541ea3a3a3f4aae48400a
3,406
py
Python
lockfb-yc/locked.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
lockfb-yc/locked.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
lockfb-yc/locked.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# encoding: utf-8 import requests as r, re, os, sys, time from bs4 import BeautifulSoup as par import platform if platform.python_version().split(".")[0] != "3": exit("python locked.py") #-> warna m, p, b, h, k = "\x1b[1;91m", "\x1b[1;97m", "\x1b[1;94m", "\x1b[1;92m", "\x1b[1;93m" #--------- logo1 = """ %s .____ ...
37.021739
122
0.497945
e9660297bbdeeddb6f72c3d936e62145c0d43fba
4,578
py
Python
project/views/admin_unit_member_invitation.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/views/admin_unit_member_invitation.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/views/admin_unit_member_invitation.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask import flash, redirect, render_template, url_for from flask_babelex import gettext from flask_security import auth_required, current_user from sqlalchemy.exc import SQLAlchemyError from project import app, db from project.access import get_admin_unit_for_manage_or_404, has_access from project.forms.admin_un...
35.488372
87
0.672128
ddf1852c4687829e94e4405cb74afd106c70e9a1
1,180
py
Python
migrations/versions/dcd0b71650b0_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/dcd0b71650b0_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/dcd0b71650b0_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: dcd0b71650b0 Revises: 699c4f6a7fe8 Create Date: 2020-07-28 17:10:49.606513 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "dcd0b71650b0" down_revision = "699c4f6a7fe8" branch_lab...
30.25641
86
0.702542
9b2e0448ab72d193d8fee5253da1924f97406b88
358
py
Python
listings/chapter06/import-tab-csv.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter06/import-tab-csv.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter06/import-tab-csv.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
import csv with open('iris-tabs.csv', 'r', newline='') as iris_file: reader = csv.reader( iris_file, delimiter='\t', quoting=csv.QUOTE_NONNUMERIC ) headers = next(reader, None) irises = list(reader) print("Spaltentitel:", headers) print(f"{len(irises)} Datensätze importiert.") print(irises[0])...
23.866667
63
0.675978
1fdc632f0640b127be8c23a9704a2ecd09fe5aef
72
py
Python
RDS/circle2_use_cases/metadata/src/lib/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/metadata/src/lib/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/metadata/src/lib/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import os import requests import logging logger = logging.getLogger()
10.285714
28
0.791667
c821ced0dd72266d66bf3e877cf06072f7f1891e
2,400
py
Python
ebenezer/atencion/migrations/0016_auto_20181012_0436.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/migrations/0016_auto_20181012_0436.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/migrations/0016_auto_20181012_0436.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-12 04:36 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('atencion', '0015_pattern'), ] operations = [ migrations.CreateModel( name='DefiningCharacteristic', fiel...
40.677966
159
0.577083
c840b81688c3d830dcff3dcc4eb91cc59095e274
4,555
py
Python
sensor/mobilenet_tracking.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
2
2018-02-26T10:00:29.000Z
2018-03-16T11:39:34.000Z
sensor/mobilenet_tracking.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
null
null
null
sensor/mobilenet_tracking.py
ahangchen/Rasp-Person-Sensor
77d0e41b1a80cf9012f66c7bd44f062edbc6825d
[ "MIT" ]
null
null
null
# USAGE # python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel # import the necessary packages from imutils.video import VideoStream from imutils.video import FPS import numpy as np import argparse import warnings import json import datetime import imu...
30.366667
121
0.624588
c84c00bec6aabfbcec404efaf1dfe4be5ddcc5a4
5,924
py
Python
zencad/examples/MiniGames/tetris.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/MiniGames/tetris.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/MiniGames/tetris.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from zencad import * import threading import time import random import types from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * import threading w, h = 10, 20 sz = 10 FIELDS = [] body = box(sz*w+2*sz, sz, sz*h+2*sz, center=True) - \ box(sz*w, sz, sz*h, cen...
26.565022
79
0.528359
f1ef86c83c1a4dbda56d257e94f3367ac3981b8e
227
py
Python
sum.py
rein-chihaya/dise_and_normal_distribution
b0f642c1900da66f3d57b3ab0f6556a3d41455b1
[ "MIT" ]
null
null
null
sum.py
rein-chihaya/dise_and_normal_distribution
b0f642c1900da66f3d57b3ab0f6556a3d41455b1
[ "MIT" ]
null
null
null
sum.py
rein-chihaya/dise_and_normal_distribution
b0f642c1900da66f3d57b3ab0f6556a3d41455b1
[ "MIT" ]
null
null
null
#coding: UTF-8 #普通の方法 s = 0 for x in range(1,51): s += x print s #sumを使う print sum(range(1,51)) #generator式を使う print sum(x for x in range(1,51)) #reduceを使う print reduce(lambda x,y: x+y, range(1,51)) #頭を使う print 50*51/2
11.947368
42
0.656388
7b9cf1d875349e0dd6284feb50371911d2660014
314
py
Python
HackerRank/30-Days-of-Code/Day 25: Running Time and Complexity/time_complexity.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
30-Days-of-Code/Day 25: Running Time and Complexity/time_complexity.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
30-Days-of-Code/Day 25: Running Time and Complexity/time_complexity.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
def is_prime(number): prime = True for n in range(2, number): if number % n == 0: prime = False break return prime loop = int(input()) for i in range(loop): number = int(input()) if is_prime(number): print("Prime") else: print("Not prime")
18.470588
30
0.522293
b52e63b5a8888007fd2ff38fff1545c9d125bd1b
2,370
py
Python
helper/stgallenApi.py
dgnaegi/altpapierBot
287d7e446eabf189189713067d8ac7405416d720
[ "WTFPL" ]
5
2019-07-17T04:36:14.000Z
2020-05-04T12:48:10.000Z
helper/stgallenApi.py
dgnaegi/altpapierBot
287d7e446eabf189189713067d8ac7405416d720
[ "WTFPL" ]
8
2019-08-04T19:16:00.000Z
2021-09-10T10:11:47.000Z
helper/stgallenApi.py
dgnaegi/altpapierBot
287d7e446eabf189189713067d8ac7405416d720
[ "WTFPL" ]
3
2019-07-17T06:37:56.000Z
2021-09-06T19:59:18.000Z
from datetime import datetime from datetime import date from datetime import timedelta from urllib.request import urlopen import json class stgallenApi: @staticmethod def GetTomorrowPaperDisposalAreaCodes(): requestedDate = str((datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d')) url = "h...
43.888889
206
0.67384
a914283dc134e924079adea30953744e36a169b4
421
py
Python
docker/django/restaurant/restapi/serializers/restaurant_serializer.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
3
2019-08-29T10:14:40.000Z
2021-03-05T09:50:15.000Z
docker/django/restaurant/restapi/serializers/restaurant_serializer.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
null
null
null
docker/django/restaurant/restapi/serializers/restaurant_serializer.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
1
2021-03-05T09:50:29.000Z
2021-03-05T09:50:29.000Z
from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from restapi.models import Restaurant class RestaurantSerializer(serializers.ModelSerializer): class Meta: model = Restaurant fields = ('name', 'contact', 'active') validators = [ ...
30.071429
98
0.714964
a92d5783e589faafac3dd2a60c798314fc485609
179
py
Python
Online-Judges/DimikOJ/Python/46-area-of-a-triangle.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/46-area-of-a-triangle.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/46-area-of-a-triangle.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for _ in range(int(input())): a,b,c = map(int,input().split()) s = (a + b + c) / 2 area = (s* (s-a) * (s-b) * (s-c)) ** 0.5 print("Area =", format(area, ".3f"))
22.375
44
0.430168
a9438fa1490d4bf7f08d397a71be5180f7110050
278
py
Python
bm.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
bm.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
bm.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
from benchmarker import Benchmarker import test with Benchmarker(100, cycle=100, extra=5) as bench: @bench('goal') def insertion(bm): for i in bm: test.goal @bench('nogoal') def insertion(bm): for i in bm: test.no_goal
18.533333
51
0.589928
8d4748ec316532b2fc7ae84c036bddd845f1c2ec
977
py
Python
comp/madhealth/newlang.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/madhealth/newlang.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/madhealth/newlang.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
def evaluate(s): # should we consider cases like '1 - - 1' # # it's pretty complicated and inconcise so we should make it with clearer logic s = ''.join(s.split()) res, i = 0, 0 stack = [] while i < len(s): if s[i].isdigit(): num = '' while i <= len(s): # be...
31.516129
83
0.344933
f559cbac33d0ab3f9e36c7314f3845463029b219
10,282
py
Python
haas_lib_bundles/python/docs/examples/human_ir_temperature/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/human_ir_temperature/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/human_ir_temperature/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,PWM,TIMER import utime from ssd1306 import SSD1306_I2C import buzzer import mlx90614 import time INVALUDE_TEMP = 1037 # 失效测量值 LOWER_LEVEL = 30 # 最小有效测温阈...
26.5
106
0.633145
5ffc44fcaef4d272271b27da62f9dfeabec95f03
411
py
Python
year_2/prog_base_sem1_cw/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_2/prog_base_sem1_cw/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_2/prog_base_sem1_cw/app.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
import os from app import create_app, db from app.models import Role from flask_migrate import Migrate app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) @app.before_first_request def create_database(): db.create_all() Role.insert_roles() if __name__ == '__main__': port...
21.631579
56
0.717762
2794776bc2b332d35cb5420178d1c0b234dba623
87,333
py
Python
Packs/PassiveTotal/Integrations/PassiveTotal_v2/PassiveTotal_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PassiveTotal/Integrations/PassiveTotal_v2/PassiveTotal_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PassiveTotal/Integrations/PassiveTotal_v2/PassiveTotal_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json from unittest import mock from unittest.mock import patch import pytest from requests.exceptions import MissingSchema, InvalidSchema, ConnectionError import demistomock as demisto from CommonServerPython import DemistoException from test_data import input_data MOCK_URL = 'http://123-fake-api.com' # NOSO...
36.088017
130
0.728442
8b865ec7018e4e3ad40bf87994938d0e1a496742
9,047
py
Python
pandemie/tester/tester.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/tester/tester.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/tester/tester.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
1
2020-03-28T00:02:41.000Z
2020-03-28T00:02:41.000Z
import os import random import subprocess import sys import threading import time import getopt from numpy import exp import pandemie.tester.optimization as optimization # We cannot use `from * import` due to circular imports import pandemie.util.analyse_log as analyse_log import pandemie.web from pandemie.tester i...
35.61811
118
0.597767
475065ee9a99b3a97de92da1f4fd540dc4a657d5
352
py
Python
5_kombinationen/loopIfElse/KreisQuadrat.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_kombinationen/loopIfElse/KreisQuadrat.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_kombinationen/loopIfElse/KreisQuadrat.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" If-Else: Kreis oder Quadrat? Ändere den Code so, dass jeder zweite Kreis zu einem Quadrat wird. """ newPage(300, 300) diameter = 20 middle = height() / 2 step = int(width() / diameter) for i in range(step): if (i%2 == 0): oval(diameter*i, middle, diameter, diameter) else: rect(diamete...
20.705882
66
0.639205
9a1c68757cc511c1672ef5894bb1cd099daab7b6
5,731
py
Python
extractTool/extractTool/openFolder.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
extractTool/extractTool/openFolder.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
extractTool/extractTool/openFolder.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click, json, sqlite3, csv, pygeoj from osgeo import gdal, ogr, osr import pandas as pd import numpy as np import xarray as xr import os import getShapefileInfo, getGeoTiffInfo, getCSVInfo, getIsoInfo, getGeoJsonInfo, getNetCDFInfo, getGeoPackageInfo, extractTool from scipy.spatial import ConvexHull def openFold...
38.722973
126
0.450009
9a3078d442741aadd182aabf977b4b9b4c40d323
1,094
py
Python
src/test/tests/hybrid/lambda2.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/lambda2.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/lambda2.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: lambda2.py # # Tests:# plots - pseudocolor, contour # Defect ID: 1829 # # Programmer: Kevin Griffin # Date: Tue Aug 5 15:01:27 PDT 2014 # # Modifications: # # ---------------------------...
20.641509
113
0.621572
ef070038dc30d22f3ff750f83ed70e516b3e0ef7
1,894
py
Python
test/test_npu/test_network_ops/test_unfold_copy_contiguous.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_unfold_copy_contiguous.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_unfold_copy_contiguous.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
38.653061
105
0.674234
3254f57d7b91ed566e7b90a3e2a2a54466532d8a
5,273
py
Python
lib/rust/expander.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
lib/rust/expander.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
lib/rust/expander.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 # Ref: https://github.com/rust-lang-ja/ac-library-rs/blob/master/expand.py import getopt import os import re import subprocess import sys import tempfile usage = """USAGE: $ expander.py [options] <PATH> e.g.) lib/rust/expander.py -fp src/sample.rs e.g.) lib/rust/expander.py -fp src/sample.r...
32.95625
95
0.545989
dfbff7ec64f711c0d35415b7b08a8207cd3f02ea
15,940
py
Python
src/onegov/org/views/allocation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/allocation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/allocation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath from datetime import timedelta from libres.db.models import ReservedSlot from libres.modules.errors import LibresError from onegov.core.security import Public, Private, Secret from onegov.core.utils import is_uuid from onegov.form import merge_forms from onegov.org import OrgApp, utils, _ from onegov.o...
31.689861
79
0.62202
5f1511d11d22e20c7781d8ace973916c8f2a3565
3,929
py
Python
4_DeepLearning-Advanced/Verbesserung der Netzwerke/Boston_Regression/BostonRegression_DNN.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
4_DeepLearning-Advanced/Verbesserung der Netzwerke/Boston_Regression/BostonRegression_DNN.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
4_DeepLearning-Advanced/Verbesserung der Netzwerke/Boston_Regression/BostonRegression_DNN.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import random import numpy as np import tensorflow as tf from tensorflow.keras.layers import * from tensorflow.keras.activations import * from tensorflow.keras.models import * from tensorflow.keras.optimizers import * from tensorflow.keras.initializers import * fr...
27.865248
91
0.687707
a08c454f0f797d58566e8d4ed0d825b6e0ca5a8e
4,011
py
Python
src/model_cnn.py
B1T0/DeUs
392f3bd3a97190cc2bc5dda9385b9728252cb975
[ "MIT" ]
2
2018-03-13T06:49:32.000Z
2018-03-16T16:04:06.000Z
src/model_cnn.py
B1T0/DeUs
392f3bd3a97190cc2bc5dda9385b9728252cb975
[ "MIT" ]
null
null
null
src/model_cnn.py
B1T0/DeUs
392f3bd3a97190cc2bc5dda9385b9728252cb975
[ "MIT" ]
null
null
null
import tensorflow as tf import preprocessing_classification # Function for MANY summaries def variable_summaries(var, name): pass # with tf.name_scope('summaries'): # mean = tf.reduce_mean(var) # tf.summary.scalar('mean/' + name, mean) # with tf.name_scope('stddev'): # stdd...
38.2
105
0.591872
a08c9cf31e42ae73fa22b93ffd937f188f9a1f81
417
py
Python
scripts/component_graph/test/server/util/test_logging.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/test/server/util/test_logging.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/test/server/util/test_logging.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from server.util.logging import * class TestLogging(unittest.TestCase): def test_logger_not_none(self): ...
23.166667
72
0.743405
e4497e092183d77cb40dedb4df9ef38cabcfcd2c
6,373
py
Python
Agent.py
NETMVAS/feecc-agent-geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
1
2021-05-13T09:03:51.000Z
2021-05-13T09:03:51.000Z
Agent.py
arseniiarsenii/robonomics_qa_geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
null
null
null
Agent.py
arseniiarsenii/robonomics_qa_geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
1
2021-05-24T15:45:01.000Z
2021-05-24T15:45:01.000Z
import requests import logging from time import sleep import typing as tp from modules.Camera import Camera import modules.Printer as Printer import modules.send_to_ipfs as ipfs import modules.short_url_generator as url_generator import modules.image_generation as image_generation from Passport import Passport # set ...
35.405556
115
0.625922
900e1a16a8f30ff59b6cf96e52943867fefb08a9
398
py
Python
exercises/fr/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Importe spacy et crée l'objet nlp français import spacy nlp = spacy.blank("fr") # Traite le texte doc = nlp("La forêt est peuplée de loups gris et renards roux.") # La portion du Doc pour "loups gris" loups_gris = doc[5:7] print(loups_gris.text) # La portion du Doc pour "loups gris et renards roux" (sans le ".") ...
24.875
67
0.741206
ffc27705d1d1f12a4cf7ffc43506471840d4ce26
1,039
py
Python
babel_support.py
PabloFreitasUfsc/bist-du-da
551dc29ec07bc182e12d86d4ee5e103a98089de4
[ "MIT" ]
null
null
null
babel_support.py
PabloFreitasUfsc/bist-du-da
551dc29ec07bc182e12d86d4ee5e103a98089de4
[ "MIT" ]
null
null
null
babel_support.py
PabloFreitasUfsc/bist-du-da
551dc29ec07bc182e12d86d4ee5e103a98089de4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # Created By : Pablo Freitas Santos # Created Date: 19.07.2021 # ============================================================================= """The Module Has Been Build for...""" # Referenc...
33.516129
79
0.46102
4b6d790c520fa705e2c42a5e0ef7c16c9a34c6f8
1,383
py
Python
Packs/ThreatX/Integrations/ThreatX/ThreatX_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ThreatX/Integrations/ThreatX/ThreatX_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ThreatX/Integrations/ThreatX/ThreatX_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from ThreatX import * def test_blacklist_ip_command_with_singel_ip(mocker): mocker.patch('ThreatX.blacklist_ip', return_value='127.0.0.1') return_results_mocker = mocker.patch('ThreatX.return_results') blacklist_ip_command({'ip': '127.0.0.1'}) assert return_results_mocker.call_args[0][0].outputs[0] ==...
37.378378
99
0.709328
d9dc59fdfcfb9163802b13094b12c7a343e6a03b
6,672
py
Python
jumeaux/addons/final/miroir.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/final/miroir.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/final/miroir.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import json import os import shutil import warnings from decimal import Decimal import boto3 from owlmixin import OwlMixin, TOption, TList, OwlEnum from jumeaux.addons.final import FinalExecutor from jumeaux.models import Report, OutputSummary, FinalAddOnPayload, FinalAddOnReference from jumea...
40.436364
104
0.606415
8a1d217871565467dd53443bfd3a0b20cbd04fb1
6,907
py
Python
settings.py
mzurhorst/wassersteuerung
88e1f31d50e2f4e95606d4612687eceaf6ece69b
[ "MIT" ]
2
2017-08-06T12:53:12.000Z
2018-05-27T18:03:54.000Z
settings.py
mzurhorst/wassersteuerung
88e1f31d50e2f4e95606d4612687eceaf6ece69b
[ "MIT" ]
null
null
null
settings.py
mzurhorst/wassersteuerung
88e1f31d50e2f4e95606d4612687eceaf6ece69b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # #File : settings.py #Author : Marcus Zurhorst #Email : marcuszurhorst@gmail.com #License : MIT License #Copyright : (c) 2017-2018 Marcus Zurhorst # #Description : This module provides functions to read/write settings # for the differe...
26.875486
138
0.669176
8a284d0406b0c58728dbf66aeeb6cc56b6f5b1ce
9,006
py
Python
frds/measures/corporate.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/measures/corporate.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/measures/corporate.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
from typing import Union import numpy as np import pandas as pd from frds.data.wrds.comp import Funda, Fundq def book_leverage(data: Union[Funda, Fundq]) -> Union[pd.Series, None]: r"""Book leverage The book leverage is defined as the amount of debts scaled by the firm's total debts plus common equity. ...
28.865385
185
0.572396
6a83651912e9f13b44231b17b8eb6853e818656b
12,409
py
Python
python/oneflow/compatible/single_client/framework/typing_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/framework/typing_util.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/framework/typing_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...
41.225914
181
0.677734
7c853e093f997d1d0aa8ab4c53d84226f5db01ff
7,590
py
Python
resources/mechanics_lib/api/proto_conversion.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/proto_conversion.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/proto_conversion.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from google.protobuf import text_format import numpy as np import triangle import api.proto.symbolic_pb2 as proto_symbolic import api.proto.template_pb2 as proto_template class proto: symbolic = proto_symbolic template = proto_template from api.symbolic import * def symbolToProto(sym, out): out.name = sym.name ...
36.490385
95
0.703162
7cb82fa73b323cd94d1461b7445361f20c72f956
262
py
Python
scale-data-recorder/setup.py
cbm-instructions/micro-change
cf3e497b1201b409a1e7cff71c91fb4adafefc4c
[ "MIT" ]
null
null
null
scale-data-recorder/setup.py
cbm-instructions/micro-change
cf3e497b1201b409a1e7cff71c91fb4adafefc4c
[ "MIT" ]
null
null
null
scale-data-recorder/setup.py
cbm-instructions/micro-change
cf3e497b1201b409a1e7cff71c91fb4adafefc4c
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='recorder', version='0.1.0', py_modules=['recorder'], install_requires=[ 'pyserial' ], entry_points={ 'console_scripts': [ 'recorder = recorder:cli', ] } )
16.375
38
0.534351
7ccb03989bfd3b3c3e56ebbb65b620c00382f808
1,255
py
Python
vorl5-ueb4-gui-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl5-ueb4-gui-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl5-ueb4-gui-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 5. Vorlesung 17.10.2020, Skript Python 4 (07_Python_04.pdf) # Übung 4: GUI Übung 2: Länderflaggen aus Textfeld zeichnen... from tkinter import * def updateGui(event): if textFeld.get() == "Deutschland": fahneOben.configure(bg="black") fahneMitte.configure(bg="red") fahneUnten.configure(b...
28.522727
80
0.682869
6b00221f1957a9dadb213c4d80f2255bf3f50191
3,019
py
Python
pycsw/tests/unittests/test_repository.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
118
2015-01-07T00:24:09.000Z
2022-03-19T15:35:43.000Z
pycsw/tests/unittests/test_repository.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
319
2015-01-06T23:51:46.000Z
2022-03-20T11:22:57.000Z
pycsw/tests/unittests/test_repository.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
113
2015-01-07T00:42:23.000Z
2022-02-19T18:05:08.000Z
# ================================================================= # # Authors: Ricardo Garcia Silva <ricardo.garcia.silva@gmail.com> # # Copyright (c) 2017 Ricardo Garcia Silva # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the...
45.059701
76
0.615767
6b40aaaf5496d12526a8a406583f5b6eedfbb330
10,711
gyp
Python
3rdParty/V8/v5.7.492.77/test/fuzzer/fuzzer.gyp
sita1999/arangodb
6a4f462fa209010cd064f99e63d85ce1d432c500
[ "Apache-2.0" ]
22
2016-07-28T03:25:31.000Z
2022-02-19T02:51:14.000Z
3rdParty/V8/v5.7.492.77/test/fuzzer/fuzzer.gyp
lipper/arangodb
66ea1fd4946668192e3f0d1060f0844f324ad7b8
[ "Apache-2.0" ]
10
2016-09-30T14:57:49.000Z
2017-06-30T12:56:01.000Z
3rdParty/V8/v5.7.492.77/test/fuzzer/fuzzer.gyp
lipper/arangodb
66ea1fd4946668192e3f0d1060f0844f324ad7b8
[ "Apache-2.0" ]
23
2016-08-03T17:43:32.000Z
2021-03-04T17:09:00.000Z
# Copyright 2016 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'v8_code': 1, }, 'includes': ['../../gypfiles/toolchain.gypi', '../../gypfiles/features.gypi'], 'targets': [ { 'targ...
23.183983
80
0.464102
866a53a4d24d142d56ed4191b3e910968350d6d2
67
py
Python
config.py
gruener-campus-malchow/vertretungs-api-v2
416a181f816ae423a3713d626ed337a0289bc863
[ "MIT" ]
null
null
null
config.py
gruener-campus-malchow/vertretungs-api-v2
416a181f816ae423a3713d626ed337a0289bc863
[ "MIT" ]
null
null
null
config.py
gruener-campus-malchow/vertretungs-api-v2
416a181f816ae423a3713d626ed337a0289bc863
[ "MIT" ]
null
null
null
# Configuration file DSB_USER = "12345" DSB_PASSWORD = "password"
13.4
25
0.746269
868be4e48a25ec1b277cc4625d8cff934c7e6f71
2,181
py
Python
backend/models.py
Syralist/kerbholz
93c8cacebb0dae317763ee29158848a1d5566086
[ "MIT" ]
null
null
null
backend/models.py
Syralist/kerbholz
93c8cacebb0dae317763ee29158848a1d5566086
[ "MIT" ]
null
null
null
backend/models.py
Syralist/kerbholz
93c8cacebb0dae317763ee29158848a1d5566086
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey, DateTime from sqlalchemy.orm import relationship from database import Base from json import JSONEncoder class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) nickname = Column(String(120), unique=True) email...
34.078125
77
0.596057
9c188790a6af0d2dea17d367fbdb07ac8866edf4
2,327
py
Python
tests/integration/io/test_to_file.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1
2022-03-03T05:57:11.000Z
2022-03-03T05:57:11.000Z
tests/integration/io/test_to_file.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
null
null
null
tests/integration/io/test_to_file.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
null
null
null
import pytest from pyntcloud import PyntCloud from test_from_file import assert_points_xyz, assert_points_color, assert_mesh @pytest.mark.parametrize("extension,color,mesh,comments", [ (".ply", True, True, False), ("_ascii.ply", True, True, True), (".npz", True, True, False), (".obj", False, True, F...
35.8
118
0.680275
13f3c7db440020517174ca17726d421529fd9f98
2,161
py
Python
src/onegov/winterthur/views/directory.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/views/directory.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/views/directory.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org.models.directory import ExtendedDirectoryEntryCollection from onegov.winterthur import WinterthurApp from onegov.org.views import directory as base from onegov.directory import DirectoryCollection from onegov.core.security import Secret from onegov.form import merge_forms from onegov.form.utils import g...
33.246154
79
0.652476
b928474192775a4d8980247c26cc3a348dd14fd5
322
py
Python
Problems/Dynamic Programming/Easy/PrincessFarida/test_princess_farida.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Easy/PrincessFarida/test_princess_farida.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Easy/PrincessFarida/test_princess_farida.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from princess_farida import princessFarida class Test(TestCase): def test_princess_farida(self): self.assertEqual(princessFarida([1, 2, 3, 4, 5]), 9) self.assertEqual(princessFarida([10]), 10) self.assertEqual(princessFarida([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), 30...
35.777778
77
0.680124
b9bf712c41eaf7daf13ed47ccff016a2b45f24cc
145
py
Python
tikz/graph-triangles/coordinates.py
keithmannock/LaTeX-examples
6829f6cf9710b314a4bf0b64abdae5bcf6997fd0
[ "MIT" ]
2
2017-11-02T10:09:12.000Z
2017-11-24T22:16:18.000Z
tikz/graph-triangles/coordinates.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
tikz/graph-triangles/coordinates.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
def giveCoordinates(n): for y in range(0,n): for x in range(y,2*n-y,2): print(x,y) print("") giveCoordinates(5)
18.125
34
0.524138
b9cc0f6508eda948f64aa37dead482115d1b24f9
2,087
py
Python
application.py
Jijogeorge69/FlaskPOC
f5737abebef0acc3ee994275f839e9573c8a4cc6
[ "MIT" ]
null
null
null
application.py
Jijogeorge69/FlaskPOC
f5737abebef0acc3ee994275f839e9573c8a4cc6
[ "MIT" ]
null
null
null
application.py
Jijogeorge69/FlaskPOC
f5737abebef0acc3ee994275f839e9573c8a4cc6
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request, render_template, redirect, url_for from flask_pymongo import PyMongo from flask_jwt_extended import create_access_token, JWTManager from passlib.hash import django_pbkdf2_sha256 from functools import wraps from pymongo import ReturnDocument from datetime import datetim...
27.826667
130
0.655966
e00ea7fea6d10cd0176025f081d15d85a0591084
2,935
py
Python
checks/certificate.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
checks/certificate.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
checks/certificate.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
""" Gathers information on the TLS/SSL certificate used by a server """ from urllib.parse import urlparse import logging import socket import ssl from datetime import datetime from datetime import timezone from OpenSSL import crypto from checks.abstract_checker import AbstractChecker class Checker(AbstractChecker):...
35.361446
169
0.556048
e025c6d13b9510140cca9f4d6d92f9dc826e2265
430
py
Python
data-structures/ds-btree/python2/btree.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
data-structures/ds-btree/python2/btree.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
data-structures/ds-btree/python2/btree.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
def binarySearch(alist, item): first = 0 last = len(alist)-1 found = False while first<=last and not found: pos = 0 midpoint = (first + last)//2 if alist[midpoint] == item: pos = midpoint found = True else: if item < alist[midpoint]: ...
23.888889
38
0.481395
e036ec3cb1ae3b38926f76506d26f08e8a7f73f3
3,374
py
Python
wechat_xiaowei/wechat.py
jiangyx3915/wechat-xiaowei
cc81264431f5f771e3eb3506260ea68ee882d1fe
[ "MIT" ]
1
2020-07-13T16:08:48.000Z
2020-07-13T16:08:48.000Z
wechat_xiaowei/wechat.py
jiangyx3915/wechat-xiaowei
cc81264431f5f771e3eb3506260ea68ee882d1fe
[ "MIT" ]
null
null
null
wechat_xiaowei/wechat.py
jiangyx3915/wechat-xiaowei
cc81264431f5f771e3eb3506260ea68ee882d1fe
[ "MIT" ]
null
null
null
from wechat_xiaowei.api.wechatapi import WeChatApiMixin from wechat_xiaowei.basewechat import BaseWeChat from wechat_xiaowei.exception import WeChatException class WeChatXiaoWei(BaseWeChat, WeChatApiMixin): def apply_enter(self, params: dict): if not self._is_support_account_number(params['account_number'...
38.340909
115
0.588619
e07378b0bef78f28ff8279684f397a7aa8a7baa4
1,646
py
Python
python/advanced_sw/IP_COLLECTOR/proxy_crawler.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
80
2018-01-12T12:09:41.000Z
2022-03-31T07:36:43.000Z
python/advanced_sw/IP_COLLECTOR/proxy_crawler.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/IP_COLLECTOR/proxy_crawler.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
42
2018-03-05T10:21:24.000Z
2022-01-07T03:27:24.000Z
from urllib.request import Request, urlopen from bs4 import BeautifulSoup from fake_useragent import UserAgent import random ua = UserAgent() # From here we generate a random user agent proxies = [] # Will contain proxies [ip, port] # Main function def main(): # Retrieve latest proxies proxies_req = Request('http...
29.927273
79
0.660389
168ebd2ab24509e5dc4e8cbc07c6ce7e7baaef7f
6,416
py
Python
MAIN/STM32F405/V04/SX1239.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V04/SX1239.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V04/SX1239.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
from pyb import Pin, SPI import time RF_RECEIVER = 0 RF_SYNTHESIZER = 1 RF_STANDBY = 2 RF_SLEEP = 3 RF_STOP = 0x01 RF_BUSY = 0x02 RF_RX_DONE = 0x04 RF_TX_DONE = 0x08 RF_ERROR = 0x10 RF_TIMEOUT = 0x20 OK = 0x00 ERROR = 0x01 RX_TIMEOUT = 0x02 RX_RUNNING = 0x03 TX_TIMEOUT = 0x04 TX_RUNNING = 0x05 c...
35.447514
87
0.58697
16d58d94847ee2e03ef0549fc85a441b1f76574d
1,564
py
Python
mqttSocRelay.py
tgfuellner/venusGX
fda42e37d8f3521c543e96b9bead5cb978268026
[ "MIT" ]
null
null
null
mqttSocRelay.py
tgfuellner/venusGX
fda42e37d8f3521c543e96b9bead5cb978268026
[ "MIT" ]
null
null
null
mqttSocRelay.py
tgfuellner/venusGX
fda42e37d8f3521c543e96b9bead5cb978268026
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # Läuft auf hassbian # Liest von N/0c1c57127018/system/0/Dc/Battery/Soc # und schreibt int Value nach openWB/set/lp/2/%Soc # was der openWB Ladepunkt dann darstellt # Mit /etc/mosquitto/conf.d/bridgeToVictron.conf # connection bridgeVictron # address 192.168.0.181:1883 # # topic # in 0 # #to...
24.061538
115
0.707161
bc505ec75fc7c6dbd0e6bae2423df9b4820406f2
303
py
Python
src/python3_learn_video/if_condition3.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/if_condition3.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/if_condition3.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
score = int(input('请输入一个分数:')) if 100 >= score >= 90: print('A') else: if 90 > score >= 80: print('B') else: if 80 > score >= 60: print('C') else: if 60 > score >= 0: print('C') else: print('输入错误!')
20.2
31
0.372937
4c2b075cb7852c6eb1cb09e78ec99f140b041829
94
py
Python
basics/split_and_join.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/split_and_join.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/split_and_join.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
def split_and_join(line): line = line.split(" ") line = "-".join(line) return line
23.5
26
0.595745
4c422f6d8f190727ca4db7dcc0e2d5132d0dd8a2
1,727
py
Python
Subrake-master/subrake/handlers/baidu.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Subrake-master/subrake/handlers/baidu.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Subrake-master/subrake/handlers/baidu.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 re import threading import requests from bs4 import BeautifulSoup as soup class BAIDU: COOKIES = None SERVICE = "Baidu" LOCK = threading.Semaphore(value=1) URL = "https://www.baidu.com/s?wd=site:%s&oq=site:%s" REGEXP = "([a-z0-9]+[.])+%s" TIMEOUT = 10 RESPONSE = "" SUBDOMAINS = [] AGENT = "Mozilla/5.0...
25.397059
138
0.675738
e67269c8a1ce8b50d925cf301d59607d60bb53ed
1,823
py
Python
car/car/receive.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
car/car/receive.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
car/car/receive.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
from trail import * # 模拟和现实的换算比例 ratio = 5 # 油门档位分为1——10对应的速度 acceler = [0.56, 0.621, 0.682, 0.743, 0.804, 0.865, 0.926, 0.987, 1.048, 1.11] # 设定小车加速度 def time_required(f): last = [time.time()] def decorator(*args, **kwargs): if time.time() - last[0] > 0.5: last[0] = time.time() ...
28.484375
78
0.600658
53d3d33af94550b895aa5932d0050c25837b71e7
2,108
py
Python
official/cv/yolov3_resnet18/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/yolov3_resnet18/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/yolov3_resnet18/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.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...
36.344828
105
0.750474
54f59285fd230e9403d52ec2c1f8b6008a975308
1,798
py
Python
extract/warc_record_util.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
extract/warc_record_util.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
extract/warc_record_util.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
from io import BytesIO from typing import Dict from pyspark.sql.functions import udf from pyspark.sql.types import StringType, ByteType from warcio.bufferedreaders import ChunkedDataReader, BufferedReader, try_brotli_init def parse_headers(response: str) -> Dict: """ Parse HTTP headers from HTTP response. ...
31
103
0.668521
0763e0ee299dc04ee8cd2d454e8ffb5e6659afed
1,450
py
Python
test/test_tag20.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag20.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag20.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase from os.path import exists, pardir, join, abspath, dirname from os import environ PROJEKT_ORDNER = abspath(join(dirname(__file__), pardir)) VENV_ORDNER = join(PROJEKT_ORDNER, "venv") try: from pyventskalender import tag20_loesung as heute class Tag20Tests(TestCase): pass...
39.189189
106
0.66069
37e5b193e10d31af3bbf0e34543ed2d6dcb82411
3,894
py
Python
item.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
item.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
item.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging # for DB usage import sqlite3 logging.basicConfig(filename='log.txt',level=logging.DEBUG) #Voc def make_tabel_item(): try: con = sqlite3.connect('game.db') con.execute('''CREATE TABLE IF NOT EXISTS item ( id INTEGER PRIMARY KEY, nam...
32.45
125
0.620442
37e9fb0dd049bf55fe6c36f6afbd3fa6e30c2453
139
py
Python
2-resources/Lambda-weeks/m6/62b1/Sprint-Challenge--Data-Structures-Python-master/ring_buffer/ring_buffer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m6/62b1/Sprint-Challenge--Data-Structures-Python-master/ring_buffer/ring_buffer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m6/62b1/Sprint-Challenge--Data-Structures-Python-master/ring_buffer/ring_buffer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
class RingBuffer: def __init__(self, capacity): pass def append(self, item): pass def get(self): pass
15.444444
33
0.553957
72650d7b36ecabca3bdb10b613a8b3ce6baf7daf
92
py
Python
2015/misc/test-table-2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/misc/test-table-2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/misc/test-table-2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1fzxjxXBP0xL-dPJp1NvSKaXbutItrW9pUbIq_fHUDuo'
23
68
0.836957
f43d01547d8361431e39f6c8d6e1616e436a7617
505
py
Python
exercises/ja/solution_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/solution_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/solution_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.tokens import Span nlp = spacy.blank("ja") doc1 = nlp("クリエーターのコミュニティづくりを支援するため、RedditはPatreonと提携している") doc1.ents = [ Span(doc1, 9, 10, label="WEBSITE"), Span(doc1, 11, 12, label="WEBSITE"), ] doc2 = nlp("ピューディパイはYouTubeの記録を打ち破った") doc2.ents = [Span(doc2, 0, 1, label="PERSON"), Span(d...
26.578947
81
0.689109
fe2c4dc2bb2e549826b09867ad37543e4ebe64eb
7,366
py
Python
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: GPL-2.0-only # from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.core.management import call_command from bldcontrol.bbcontroller import getBuildEnvironmentController, ShellCmdException from bldcontrol.models import BuildReques...
42.578035
166
0.523079
a3efab537fc37bf2fa04b7ce27a136e6f80143a5
17,953
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cnos/cnos_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cnos/cnos_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cnos/cnos_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) 2019 Red Hat Inc. # Copyright (C) 2019 Lenovo. # # GNU General Public License v3.0+ # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE...
33.246296
101
0.588203
433c0e03ae5c88522fbd9bb9be34c50701e1576d
6,300
py
Python
src/test/tests/databases/PATRAN.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/PATRAN.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/PATRAN.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: PATRAN.py # # Tests: mesh - 3D unstructured, single domain # plots - Mesh # # Programmer: Brad Whitlock # Date: Fri Jul 29 17:30:33 PST 2005 # # Notes: The data f...
26.359833
78
0.611587
98d1ce5f28868af35dea58ad06820d542c898fbf
4,280
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/routeros/test_routeros_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/routeros/test_routeros_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/routeros/test_routeros_facts.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# 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 distributed in the hope that ...
38.909091
140
0.670561
c72c6790ce87f67d0755940d5c171177095aa821
7,742
py
Python
apps/calc/tess_module/tess/tess.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/calc/tess_module/tess/tess.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/calc/tess_module/tess/tess.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
''' Created on 10.11.2017 @author: stoll ''' import csv import os from numpy import argwhere, transpose import numpy from apps.calc.tess_module.tess import helpers from apps.calc.tess_module.tess import waterfalls def tess(time,data,data2): ''' TESS is a software project that is part of the OpenAdaptronics ...
39.702564
228
0.633428
904ff6988b5285ce07f9efadc8d7ad2c0f4c4a50
98,807
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/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/selftest/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/selftest/cases/devtool.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: MIT # import os import re import shutil import tempfile import glob import fnmatch import oeqa.utils.ftools as ftools from oeqa.selftest.case import OESelftestTestCase from oeqa.utils.commands import runCmd, bitbake, get_bb_var, create_temp_layer from oeqa.utils.commands import get_bb_var...
56.268223
188
0.636271
905349dcf114261e720f941793efec5f2c63e6a5
15,860
py
Python
tests/test_testing.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
tests/test_testing.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
tests/test_testing.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """test_testing.py - tests of the testing-module of DHParser Author: Eckhart Arnold <arnold@badw.de> Copyright 2017 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
33.249476
130
0.57232
9072895f1d5e659d432e857fbcdb28b59138c175
18,847
py
Python
research/cv/rcnn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/rcnn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/rcnn/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.426692
118
0.583594
909114b01e8a3ac73901769c6022134e02533891
11,703
py
Python
etl/alerts/predictor_manager.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/alerts/predictor_manager.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/alerts/predictor_manager.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import asyncio import datetime as dt import etl.io_config.server_protocol as protocol from etl.io_config.cloudwatch import Cloudwatch import logging import functools import humanize import os STATUS_DICT = { 'IDLE': 1, 'BUSY': 2, 'CATCHUP': 3, 'DEAD': 4, } def predictor_str(partition_index, model_type, is_act...
37.270701
142
0.639665
90f29a83b4c7d4e6efffb38a528b4e70e12c684a
23,323
py
Python
custom_components/alexa_media/config_flow.py
Wadaboa/home-assistant-config
0eafb265728d38475b86131188a99d0db70394db
[ "MIT" ]
1
2020-12-04T17:44:42.000Z
2020-12-04T17:44:42.000Z
home-assistant/custom_components/alexa_media/config_flow.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
3
2019-10-03T16:06:02.000Z
2020-04-01T18:33:32.000Z
home-assistant/custom_components/alexa_media/config_flow.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 """ Alexa Config Flow. For more details about this platform, please refer to the documentation at https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639 """ from asyncio import sleep from collect...
40.212069
99
0.549415
90fb30b306ffbc82c23e676ccbe6a6a9401117a8
6,132
py
Python
hihope_neptune-oh_hid/00_src/v0.1/foundation/ai/engine/services/server/plugin_manager/get_config_ini.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/foundation/ai/engine/services/server/plugin_manager/get_config_ini.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/foundation/ai/engine/services/server/plugin_manager/get_config_ini.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021 Huawei Device 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 # #...
35.651163
78
0.660633
296e42e1936cbe571940aad223a943f37906d63e
1,382
py
Python
hrsweb/app.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
hrsweb/app.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
hrsweb/app.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
""" Webserver """ from collections import OrderedDict from datetime import datetime from flask import Flask, url_for, redirect, render_template, request from hrsweb.api import load_api from hrsweb.hrsdb import HRSDB, APIError from hrsweb.models import Patient # Global web app webapp = Flask(__name__) load_api(webapp...
21.261538
68
0.691751
d28e2456302a993cfce955ce31d3fdb4e2640497
208
py
Python
Packs/ApiModules/Scripts/CrowdStrikeApiModule/TestsInput/context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/CrowdStrikeApiModule/TestsInput/context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/CrowdStrikeApiModule/TestsInput/context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import DemistoException MULTIPLE_ERRORS_RESULT = DemistoException('Error in API call [400] - error\n403: access denied, authorization failed\n401: test error #1\n402: test error #2')
52
158
0.802885
827f8f301edf3c4cd2f75fe03776d49c4fecd1aa
5,359
py
Python
CGR/T4/shapes.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
CGR/T4/shapes.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
CGR/T4/shapes.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * from math import pi as M_PI from math import sin, cos def ObtainQuadFaceNormal(v1, v2, v3, v4): n = [0, 0, 0] l = 0.0 for i in range(3): n[i] = (v1[i] + v2[i] + v3[i] + v4[i]) / 4 l = (n[0] * n[0] + n[1] * n[1] + n[2] *...
20.771318
83
0.513902
c4b102a98a98a9651d940219b39385d0824d023d
681
py
Python
components/amp-utility/python/ure.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/ure.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/ure.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# * coding: UTF8 * """ 该模块实现相应CPython模块的子集,如下所示。 该模块实现正则表达式操作。支持的正则表达式语法是CPython re 模块的一个子集 ``.`` 匹配任何字符 ``[]`` 匹配字符集。支持单个字符和范围 ``^`` 匹配开头 ``$`` 匹配结尾 函数 ------------------------------ """ def compile(regex_str): """ 编译正则表达式,返回 正则表达式对象 对象 使用示例:: import ure pattern =...
9.728571
56
0.527166
1efdc30afb7b2f39efc148896bc36c3dc2065ce3
3,599
py
Python
Packs/Base/Scripts/ValidateContent/ValidateContent_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Base/Scripts/ValidateContent/ValidateContent_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Base/Scripts/ValidateContent/ValidateContent_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os import pytest from ValidateContent import get_content_modules, adjust_linter_row_and_col def test_get_content_modules(tmp_path, requests_mock, monkeypatch): """ Given: - Content temp dir to copy the modules to When: - Getting content modules Then: - Verify content ...
37.884211
115
0.679633
481f13005ba2e40e61f641107f6990ffd8adc83f
1,793
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_16/update_billing_status_in_dn_and_pr.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/v6_16/update_billing_status_in_dn_and_pr.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_16/update_billing_status_in_dn_and_pr.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): for dt in ("Delivery Note", "Purchase Receipt"): frappe.reload_doctype(dt) frappe.reload_doctype(dt + " Item") # Up...
41.697674
103
0.735081
b5149cdc0ea669f859c08d21578d8f6b8c5042c1
9,967
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/traci/main.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/traci/main.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/traci/main.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www....
35.219081
118
0.698605
73e5a04e324a835ec1e56216c7043e7a7244a34d
346
py
Python
wetterstation/lib/visualisation/canvas.py
SvenPfiffner/Kinderuni2021
97e6f1148177c51951a95d88515b3b3008164759
[ "MIT" ]
null
null
null
wetterstation/lib/visualisation/canvas.py
SvenPfiffner/Kinderuni2021
97e6f1148177c51951a95d88515b3b3008164759
[ "MIT" ]
null
null
null
wetterstation/lib/visualisation/canvas.py
SvenPfiffner/Kinderuni2021
97e6f1148177c51951a95d88515b3b3008164759
[ "MIT" ]
null
null
null
""" Author: Sven Pfiffner Date: 07.07.2021 Klasse modelliert den Anzeigebereich der Daten. """ import matplotlib.pyplot as plt class Canvas: def __init__(self): self.figure = plt.figure() def addLinePlot(data, xLabel, yLabel): plt.plot(data) plt.xlabel = xLabel plt.ylabel = yLabel p...
17.3
47
0.66474
fb54e4ec3a584efd833140e89d754f9d4cd4f745
421
py
Python
a2p2_170111updated/pmg_161003.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
1
2017-08-25T07:46:30.000Z
2017-08-25T07:46:30.000Z
a2p2_170111updated/pmg_161003.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
null
null
null
a2p2_170111updated/pmg_161003.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
null
null
null
from pymatgen import * import fnmatch import re import os def pmg_converter(): rule = re.compile(fnmatch.translate('*.cif'), re.IGNORECASE) # case-insensitive glob cif_files = [name for name in os.listdir('.') if rule.match(name)] # run in '.' : current directory for i in cif_files:...
26.3125
111
0.629454
fb63629ddd74abb976f61c0306a661ec8d753873
7,816
py
Python
radiomics/stat_tools.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/stat_tools.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/stat_tools.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
import os from subprocess import getoutput import numpy as np import numbers from matplotlib import pyplot as plt from matplotlib.font_manager import FontProperties from sklearn import metrics DPI = 100 def mpl_fontprop(): fc_list = [x.strip() for x in getoutput('fc-list :lang=zh').strip().split('\n')] fc =...
35.527273
125
0.547595
e3b74f737fc8cdc62a648af6ddc0b101e89df6a2
212
py
Python
scripts/doc/print23.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
111
2015-03-20T22:54:17.000Z
2022-03-30T04:37:21.000Z
scripts/doc/print23.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
3,015
2015-01-05T21:55:16.000Z
2021-02-15T01:09:17.000Z
scripts/doc/print23.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
250
2015-02-10T15:43:57.000Z
2022-03-30T04:37:20.000Z
#!/usr/bin/env python3 # Print statement that behaves the same for python 2 and 3. # E,g, print_(1.0, 2, "5") will always print the string "1.0 2 5". def print_(*args): print(" ".join(str(a) for a in args))
30.285714
66
0.650943