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
c73f2ba84b08b3edab9b81a51035d8bd5219a728
3,667
py
Python
Bomb.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
null
null
null
Bomb.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
1
2020-12-27T21:12:40.000Z
2022-03-17T00:08:47.000Z
Bomb.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
null
null
null
import Vars import Offsets from Player import Vector2 class Bomb (): type = "Bomb" id = 0 x = 0 y = 0 xVel = 0 yVel = 0 name = "DefaultEntityName" pointer = 0 def init (self): self.updateInfo() def printInfo (self): print("[X] : " + str(self.x) + " [Y] : " + st...
39.010638
387
0.505045
c78538f43282e6c09f1e4b7b20b792d03d02ec58
87
py
Python
kernel/ticket/apps.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
25
2018-12-09T07:56:16.000Z
2020-12-24T08:20:41.000Z
kernel/ticket/apps.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
100
2018-12-13T02:01:42.000Z
2022-03-11T23:40:25.000Z
kernel/ticket/apps.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
8
2019-01-05T05:02:27.000Z
2019-08-09T08:14:49.000Z
from django.apps import AppConfig class TicketConfig(AppConfig): name = 'ticket'
14.5
33
0.747126
401fdb1242a5b92122aebdb53a752eba6d728a5f
338
py
Python
tssb/dist.py
sharadmv/tssb
9385ea9ab199070034a36f92b6520152f801823a
[ "MIT" ]
null
null
null
tssb/dist.py
sharadmv/tssb
9385ea9ab199070034a36f92b6520152f801823a
[ "MIT" ]
null
null
null
tssb/dist.py
sharadmv/tssb
9385ea9ab199070034a36f92b6520152f801823a
[ "MIT" ]
null
null
null
class Distribution(object): def sample(self, size=None): if not size: return self.sample_one() else: samples = [0] * size for i in xrange(size): samples[i] = self.sample_one() return samples def sample_one(self): raise No...
24.142857
46
0.535503
4074d98f7e3c78979aed501362c1d87d540c04ea
171
py
Python
scripts/hello_world_Sukeer.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Sukeer.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Sukeer.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# LANGUAGE: Python 2.7.x # ENV: [GCC 4.8.2] on linux # AUTHOR: Sukeerthi Khadri # GITHUB: https://github.com/Sukeer/hacktoberfest print "Hello World, my name is Sukeer!"
24.428571
49
0.71345
2957d45b43a7c523d4e22bc52c28496f04b2c9fa
482
py
Python
IVTp/2014/Shcherbakov_R_A/task_03_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Shcherbakov_R_A/task_03_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Shcherbakov_R_A/task_03_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 22. # Напишите программу, которая выводит имя "Филип Ауреол Теофраст Бомбаст фон # Гогенгейм", и запрашивает его псевдоним. Программа должна сцеплять две эти # строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Щербаков Р.А. # 22.05.2016 name="Филип Ауреол Теофраст Бом...
37.076923
79
0.748963
462bff7b5aca4dd2ca3d28c46b5eb46254caaaab
28,807
py
Python
Packs/GooglePubSub/Integrations/GooglePubSub/GooglePubSub_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GooglePubSub/Integrations/GooglePubSub/GooglePubSub_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GooglePubSub/Integrations/GooglePubSub/GooglePubSub_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import base64 import pytest from GooglePubSub import ( GoogleNameParser, convert_datetime_to_iso_str, message_to_incident, attribute_pairs_to_dict, get_publish_body, extract_acks_and_msgs, try_pull_unique_messages, setup_subscription_last_run, publish_me...
33.811033
114
0.548686
31e032bdbcfc09a2551f5c019a81ac511aaf5349
1,514
py
Python
10.3389/fevo.2021.762173/scripts/resize224x224.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/resize224x224.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/resize224x224.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
import sys import os import glob import joblib import cv2 import numpy as np def resize(fpath): img_path = fpath['input'] foutput = fpath['output'] x = cv2.imread(img_path, cv2.IMREAD_COLOR) h, w, c = x.shape longest_edge = max(h, w) top = 0 bottom = 0 left = 0 right = 0 if h ...
25.661017
107
0.624835
81f02f491feee0ca045a24a7e71d3c8b5d2f8597
2,597
py
Python
research/cvtmodel/densenet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/densenet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/densenet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020-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 agre...
43.283333
115
0.721602
48934267f7e27118fca6014a6d4d42d1da5e5c56
640
py
Python
website/apps/projects/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/projects/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/projects/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
from el_pagination.views import AjaxListView from django.views.generic import DetailView from django.utils import timezone from projects.models import Project class ProjectListView(AjaxListView): model = Project context_object_name = "projects" def get_context_data(self, **kwargs): context = su...
23.703704
75
0.728125
d2a42256fb16fa37ae2bccf0d9a55f9632d3fbe3
1,050
py
Python
Interview Preparation Kits/Interview Preparation Kit/Stacks and Queues/Balanced Brackets/balanced_brackets.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Stacks and Queues/Balanced Brackets/balanced_brackets.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Stacks and Queues/Balanced Brackets/balanced_brackets.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the isBalanced function below. def isBalanced(s): stack = [] for i in range(len(s)): if s[i] == '{' or s[i] == '[' or s[i] == '(': stack.append(s[i]) elif len(stack) == 0: return 'NO'...
19.811321
53
0.402857
82994fba9d9825c1452c973c5e3b027a99bb4bd5
2,108
py
Python
Imagenes/FC72/Bo_vs_Ja/Bo_vs_Ja.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/FC72/Bo_vs_Ja/Bo_vs_Ja.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/FC72/Bo_vs_Ja/Bo_vs_Ja.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import argparse import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='Comparacion con datos de Hutter. Bo vs Ja') parser.add_argument('-png', help='Imagen en formato png', action='store_tru...
19.163636
119
0.600569
82e41e0767116f928484b34a88f909afe9c475c9
845
py
Python
python/asyncio/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/app.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import asyncio from framework.response import Response from framework.application import Application, run_app from framework.exception import HTTPNotFound async def on_startup(app): # you may query here actual db, but for example let's just use simple set. app.db = {'john_doe', } async def log_middleware(r...
24.852941
78
0.733728
7d9b9614e96654ce1a1093e20001a2ac2ec852e0
5,048
py
Python
BBMO.py
jmorenov/BBOMO
572965579928b532b6ae70e4dd468fcc734019da
[ "MIT" ]
null
null
null
BBMO.py
jmorenov/BBOMO
572965579928b532b6ae70e4dd468fcc734019da
[ "MIT" ]
null
null
null
BBMO.py
jmorenov/BBOMO
572965579928b532b6ae70e4dd468fcc734019da
[ "MIT" ]
null
null
null
import numpy import array import random from deap import tools from deap import base from deap import creator def bbmo(functions, numberOfIslands, numberOfGenerations, dimension, lb, ub, pmutate, keep): def uniform(low, up, size=None): try: return [random.uniform(a, b) for a, b in zip(low, up)]...
37.671642
129
0.608954
8179eea2ee2f6f2a7440079425738ade9e3dcf51
2,885
py
Python
Chapter7_CNN/Chapter7_2_CNN_MNIST/mnistCnnModelAPI.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter7_CNN/Chapter7_2_CNN_MNIST/mnistCnnModelAPI.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter7_CNN/Chapter7_2_CNN_MNIST/mnistCnnModelAPI.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import os from typing import Tuple import numpy as np from tensorflow.keras.callbacks import TensorBoard from tensorflow.keras.datasets import mnist from tensorflow.keras.layers import Activation from tensorflow.keras.layers import Conv2D from tensorflow.keras.layers import Dense from tensorflow.keras.layers ...
28.009709
81
0.647487
8191d0c28b63dfa62dfcc30a236a095902df5bac
974
py
Python
Packs/CommonScripts/Scripts/SetByIncidentId/SetByIncidentId_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/SetByIncidentId/SetByIncidentId_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/SetByIncidentId/SetByIncidentId_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from SetByIncidentId import main def test_set_by_incident_id(mocker): """ Given: - ID (1) of incident to update - Key (Key) to update - Value (Value) to update - Argument append set to false - Argument errorUnfinished set to false When...
25.631579
77
0.564682
81a932297a25617c295af4bb463b6a0127116d46
4,718
py
Python
python/oneflow/nn/modules/zeropad2d.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/nn/modules/zeropad2d.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/zeropad2d.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.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...
39.316667
276
0.492794
c4d374bacbd9bd0bfef8b9b1d08eeb75faf248f8
13,476
py
Python
Packs/PrismaCloud/Integrations/PrismaCloudIAM/PrismaCloudIAM.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PrismaCloud/Integrations/PrismaCloudIAM/PrismaCloudIAM.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PrismaCloud/Integrations/PrismaCloudIAM/PrismaCloudIAM.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from IAMApiModule import * import traceback import urllib3 # Disable insecure warnings urllib3.disable_warnings() ERROR_CODES_TO_SKIP = [ 404 ] USER_SCHEMA = { 'email': 'The email of the user', 'firstName': 'The first name', 'lastName': '...
36.819672
130
0.624963
c4da4c9f3d43e1786c4c7b6d3af67fff53cbf5df
1,946
py
Python
app/problem/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/problem/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/problem/views.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 from app import app, db from app.problem.models import Problem from app.submission.models import Submission, JudgementStatus from utils import success, logger from flask import abort from sqlalchemy import and_ @app.route('/problems', methods=['GET']) def list_problem(): problem_list = Problem.qu...
29.938462
83
0.627441
c4e10054fb2b36e390d33bb02cb4d604008384ca
67
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.6-sum-in-deffernet-data-type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.6-sum-in-deffernet-data-type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.6-sum-in-deffernet-data-type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
a = 1 b = 2.5 c = a + b print(c) a = 1 b = '2' c = a + b print(c)
6.7
9
0.402985
d2457dd167a79585c69837033470a1bb100a1fec
2,300
py
Python
data/transform_mixed.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
data/transform_mixed.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
data/transform_mixed.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os from pathlib import Path from WikiTransformer import WikiTransformer # # create a mixed csv file for a given list of languages and a total number of articles # def create_articles(language, wiki_base, wiki_files, number_of_articles): wikiTransformer = WikiTransformer(max_articles=number_of_articl...
35.384615
101
0.66
9647ba6f825ef77b7da1f10c3890176500b3a905
598
py
Python
jumeaux/addons/reqs2reqs/repeat.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/reqs2reqs/repeat.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/reqs2reqs/repeat.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- from owlmixin import OwlMixin from jumeaux.addons.reqs2reqs import Reqs2ReqsExecutor from jumeaux.domain.config.vo import Config as JumeauxConfig from jumeaux.models import Reqs2ReqsAddOnPayload class Config(OwlMixin): times: int class Executor(Reqs2ReqsExecutor): def __init__(self...
28.47619
99
0.76087
7379163fbea526af020a72152ca3dfc4955ee447
856
py
Python
data/routesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/routesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/routesdb.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
import csv from types import SimpleNamespace class RoutesDB: def __init__(self, cache): routes_csv = cache.resolve_entry("routes.csv", RoutesDB.download_routes) with open(routes_csv) as f: reader = csv.reader(f, quotechar='"') self.routes = [SimpleNamespace(origin=route[1]...
32.923077
154
0.648364
73ca4ad60f8c20a393cf1b9f90b28a7ab6f8d634
1,885
py
Python
exercises/fr/test_02_13.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/test_02_13.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/test_02_13.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(pattern1) == 2 ), "Le nombre de tokens de pattern1 ne correspond pas au véritable nombre de tokens dans la chaine." assert ( len(pattern2) == 2 ), "Le nombre de tokens de pattern2 ne correspond pas au véritable nombre de tokens dans la chaine." # Validation d...
44.880952
104
0.641379
fb72fe4caefaa7953899b52a1e8a438390e46f04
892
py
Python
app/views/models/documents.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/models/documents.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/models/documents.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from flask_restplus import Model, fields from .commons import paginate_model document_input = Model('Document Input', { 'title': fields.String(required=True, description='The document title'), 'content': fields.String(required=True, description='The document content'), }) document_output = document_input.clo...
42.47619
98
0.75
83b3252fc4678feae368f634148355c8c8ce0d14
3,281
py
Python
Imagenes/Pseudopotential/EOS.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/Pseudopotential/EOS.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/Pseudopotential/EOS.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import numpy as np import CoolProp.CoolProp as CP import CoolProp.Plots as CPP import matplotlib.pyplot as plt import MaxwellConstruction as mx import collections import argparse import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='EOS para flu...
19.3
115
0.568729
f7dbe2ef3fe9345748ff63b48f5162016a14a054
825
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex12_prime_factors_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex12_prime_factors_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex12_prime_factors_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest ## PYTEST from ch02_math.solutions.ex12_primefactors import calc_prime_factors, calc_prime_factors_optimized def value_and_prime_factors(): return [(8, [2, 2, 2]), (14, [2, 7]), (42, [2, ...
30.555556
98
0.667879
7914f85f7db27ba23a0587af2a8babae3ed9b8de
3,473
py
Python
Course_2/Week_01/3_SCC.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_2/Week_01/3_SCC.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_2/Week_01/3_SCC.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import sys import codecs from pathlib import Path from collections import defaultdict MAIN_PATH = Path(__file__).absolute().parent.parent.parent sys.path.insert(0, str(MAIN_PATH)) from log import log_info as _info from log import log_error as _error from log import print_process as _process class Vert...
23.466216
60
0.644976
f73da2d7eebd1de32958ef149f23f75b023f780b
181
py
Python
chapter_eleven/give_the_interface_a_native_feel_with_objects/test_flyweight.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
21
2021-09-10T12:46:26.000Z
2022-03-23T02:50:39.000Z
chapter_eleven/give_the_interface_a_native_feel_with_objects/test_flyweight.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
null
null
null
chapter_eleven/give_the_interface_a_native_feel_with_objects/test_flyweight.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
6
2021-09-02T08:32:37.000Z
2022-03-17T21:15:25.000Z
from .calculate_coordinates import Particle test = Particle(4, 6) test_two = Particle(3, 8) test_three = Particle(4, 6) print(id(test)) print(id(test_three)) print(id(test_two))
16.454545
43
0.740331
f765469499d38ee5339df7d24ba0639dd713db1c
2,404
py
Python
frappe-bench/apps/erpnext/erpnext/demo/demo.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/demo/demo.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/demo/demo.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe, sys import erpnext import frappe.utils from erpnext.demo.user import hr, sales, purchase, manufacturing, stock, accounts, projects, fixed_asset, education from erpnext.demo.setup import education, manufacture, setup_data, healthcare """ Make a demo 1. Start with ...
25.574468
115
0.740017
e3dde075c33c89d61586a38ab79f3cb70fad3c51
19,820
py
Python
src/tools/data/ultrawrapper/ultraparse.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/data/ultrawrapper/ultraparse.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/data/ultrawrapper/ultraparse.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import os, sys, inspect try: import pyparsing except: raise VisItException("LoadUltra requires PyParsing to be installed in python's site-packages.") #make the ultrawrapper modules available for import sys.path.append(os.path.dirname(os.path.realpath(inspect.getfile(inspect.currentframe())))) from UltraCurve...
32.652389
99
0.500605
5465d5d0b2ea1cdbe47353114e215afcefc53094
965
py
Python
SoSe-21/Code-Vorlesungen/VL-8/Stueckliste-Beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-8/Stueckliste-Beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-8/Stueckliste-Beispiel.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Als Mitarbeiter/in im Operationsmanagement von SpaceX sind Sie damit beauftragt worden, eine entsprechende Stückliste # für die Produktion des Antriebs für das nächste „Starship“ aufzusetzen. Aus einem Briefing haben Sie folgende Bestandteile mitnehmen # können, die Sie nun in einer digitalen Liste pflegen sollen. # ...
35.740741
134
0.768912
546fb7533fb9b7d317399ec4c40aeb305e72f066
488
py
Python
Datastructures/binaryS.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/binaryS.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/binaryS.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
def BinaryS(arr=[], st_index=None, end_index=None, srelem=None): #base condition if st_index > end_index: return -1 mid = (st_index + end_index) // 2 if arr[mid] == srelem: return mid if srelem < arr[mid]: return BinaryS(arr,st_index, mid-1, srelem) else: retur...
22.181818
72
0.627049
54c1530046a04941a8de4cb89e7e234e1039ad5f
533
py
Python
scripts/HelloPython/try_except_V3.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/HelloPython/try_except_V3.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/HelloPython/try_except_V3.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # --- try_except_V3.py ------ # Version vom 20.09.2019 by OJ # Fehlerbehandlung - Demo # vgl. Willemer Kap. 7 #---------------------------------- eingabe = 0 inputOK = False while not inputOK: try: eingabe = input("Geben Sie eine Zahl ein! ") # built in function eval() => String 2 Int za...
22.208333
46
0.615385
3f7884cca852df0cac9610904bb5ebc651e247ae
580
py
Python
src/python3_learn_video/string.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/string.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/string.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
str1 = 'I love fishrc.com' print('-------------------------------------------') print(str1[:6]) print(str1[:6] + '插入的字符串' + str1[6:]) # 首字母改为大写 str2 = 'xiaoxie' print(str2.capitalize()) # 将所有大写字符改为小写 str2 = 'DAXIExiaoxie' print(str2.casefold()) # 左边和右边填充,内容居中 print(str2.center(40)) # 统计出现次数 print(str2) print(str2.c...
16.571429
52
0.624138
3f7c867a25924098b95a5f2e47372f958dcb8539
4,517
py
Python
research/cv/DBPN/src/loss/withlosscell.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/DBPN/src/loss/withlosscell.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/DBPN/src/loss/withlosscell.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...
31.368056
92
0.611911
b7b5db52a2a6004cdf6e106e6d644f8a35344036
230
py
Python
nz_crawl_demo/day6/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day6/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day6/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import pytesseract from PIL import Image pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' image = Image.open('c.png') text = pytesseract.image_to_string(image,lang='chi_sim') print(text)
20.909091
87
0.786957
151d670466fecb6c7938f916f4ae1096a85e1eb8
11,348
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/storage/database_handler.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage/database_handler.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage/database_handler.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from ..interface.event import Event from .sql_alchemy_connector import SQLITE, Database class DatabaseHandler: """ The Database Handler is a class which holds some higher logic functions that work upon the atomic functions served by the Database class which is the lowest level interface to the Data. ...
43.646154
119
0.651304
422251d73d77da976088d9907a28158fa7b17d10
9,144
py
Python
2021-05-09/写笔记带后端/library-server-develop/libs/django_jwt_session_auth.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/写笔记带后端/library-server-develop/libs/django_jwt_session_auth.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/写笔记带后端/library-server-develop/libs/django_jwt_session_auth.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
# coding=utf-8 """ MIT License Copyright (c) [2017] [weidwonder] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
33.992565
127
0.65234
42abf3c0b9c8ca8bf4f24f523330337fc7197f34
3,639
py
Python
myspiders/spider_hr/njcb_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/njcb_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/njcb_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import Item, Spider, Bs4HtmlField, Bs4AttrField, Bs4TextField, JsonField, RegexField from urllib.parse import urlencode, urlparse, urljoin, quote from config import Target import re import math ''' applyExpiredDate: "2021-12-31" applyReleaseDate: null bm0000: "1098053" content: "无锡分行" e01DeptName:...
29.346774
137
0.625996
c45979fc05da948c67126e2e6ce77f9aa92a08aa
784
py
Python
finder/finder.py
keithwegner/wordle-finder
4f2de8046ab3d5d3ba21661f9caabd795da11901
[ "Unlicense" ]
null
null
null
finder/finder.py
keithwegner/wordle-finder
4f2de8046ab3d5d3ba21661f9caabd795da11901
[ "Unlicense" ]
1
2022-02-07T03:09:27.000Z
2022-02-07T03:09:27.000Z
finder/finder.py
keithwegner/wordle-finder
4f2de8046ab3d5d3ba21661f9caabd795da11901
[ "Unlicense" ]
null
null
null
""" Find the 20 strongest words to use in Wordle based on value counts """ import re import pandas with open("words.txt", "r", encoding="utf8") as f: data = [] words = {} for line in f: line = line.strip("\n").lower() if len(line) == 5: if re.match("[a-z]{5}", line): ...
31.36
74
0.533163
c48147df113c344a6ed81bc7ca16705047f51ddd
5,208
py
Python
bigbench/api/analysis.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/api/analysis.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/api/analysis.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
# The code in this file is redundant with code in notebooks/scaling_plots.ipynb # I think this is desirable though, to allow easier hacking of analysis code in the notebook from typing import Any, Dict, List, Optional from matplotlib import pyplot as plt import seaborn as sns import pickle as pkl import bigbench.ben...
31.563636
92
0.627688
67ae1e60b514c20a333685a3567a46c7df46fb5b
357
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/54_lambda/lambda.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/54_lambda/lambda.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/54_lambda/lambda.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
a = lambda x, y: x * y print(f'Função lambda {a(2,2)}') lista = [ ['P1', 13, 15], ['P2', 6, 20], ['P3', 7, 26], ['P4', 50, 90], ['P5', 8, 100] ] lista.sort(key=lambda i: i[1]) # todo: Da pra colocar na ordem e inverter print(lista) print(sorted(lista, key=lambda i: i[0], reverse=True)) # todo: O...
22.3125
100
0.563025
220a419cbad6de446f745d81f6793749dcd58403
5,564
py
Python
bp-revok/python/lib/python2.7/site-packages/cryptography-0.5.2-py2.7-linux-x86_64.egg/cryptography/hazmat/primitives/asymmetric/ec.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
null
null
null
bp-revok/python/lib/python2.7/site-packages/cryptography-0.5.2-py2.7-linux-x86_64.egg/cryptography/hazmat/primitives/asymmetric/ec.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
null
null
null
bp-revok/python/lib/python2.7/site-packages/cryptography-0.5.2-py2.7-linux-x86_64.egg/cryptography/hazmat/primitives/asymmetric/ec.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
3
2017-04-07T12:02:22.000Z
2020-03-23T12:11:55.000Z
# 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 in writing, software # distributed under the Li...
21.734375
78
0.681524
22167a59044e57f7b05a3e87e2512ec55e8e3105
535
py
Python
manage.py
davidkoojohn/SPA-weapp
5b8770054434010c5da3cd950b5dadd26869343e
[ "MIT" ]
null
null
null
manage.py
davidkoojohn/SPA-weapp
5b8770054434010c5da3cd950b5dadd26869343e
[ "MIT" ]
null
null
null
manage.py
davidkoojohn/SPA-weapp
5b8770054434010c5da3cd950b5dadd26869343e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from flask.ext.script import Manager, Server from flask.ext.migrate import Migrate, MigrateCommand from app import create_app, db from app.models import User, Role app = create_app(os.getenv('FLASK_CONFIG') or 'default') manager = Manager(app) migrate = Migrate(app, db) @manager.she...
19.814815
56
0.742056
22354372b991c003a2f80cf4602966aa060e4bc9
10,338
py
Python
src/Sephrasto/CharakterAssistent/Choice.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/CharakterAssistent/Choice.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/CharakterAssistent/Choice.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
from Wolke import Wolke from EventBus import EventBus from Fertigkeiten import KampffertigkeitTyp class Choice(object): def __init__(self): super().__init__() self.name = "" self.wert = 0 self.typ = "Fertigkeit" self.kommentar = "" def toString(self, addEP = True): ...
39.307985
209
0.537822
bee0bc8697c1b0cef16ec97610a4e299d4056683
6,736
py
Python
ingress/ambassador/ambassador/ambassador/utils.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
ingress/ambassador/ambassador/ambassador/utils.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2021-03-26T00:22:50.000Z
2021-03-26T00:26:07.000Z
ingress/ambassador/ambassador/ambassador/utils.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
#!/usr/bin/env python # Copyright 2018 Datawire. 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 b...
26.3125
91
0.61253
bef9cbbd907468588b8ba884cb0209f923676263
3,108
py
Python
Imagenes/vdWColumnHT_2D/CasoE/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumnHT_2D/CasoE/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumnHT_2D/CasoE/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import vdWColumn as vdw import vdWColumn.postLBRun as post import numpy as np import matplotlib.pyplot as plt import argparse import os if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='Resolución de vdWColumn con conductividad no uniforme') ...
19.796178
136
0.459459
36016dc136ad5f1bc802c3c03c73486175fdd428
4,293
py
Python
plugins/tff_backend/to/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/to/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/to/payment.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...
33.539063
109
0.733753
a13feb5500d33f1e3bdbb723f9a4ebac9701cfa9
2,566
py
Python
src/visual/DrawBallsFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/visual/DrawBallsFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/visual/DrawBallsFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import cv import numpy as np class DrawBallsFilter(object): def __init__(self): self.font = cv.InitFont(cv.CV_FONT_HERSHEY_PLAIN, 1.0, 1.0) def filter(self, rgb, depth, balls, args={}): rgb_cv = cv.fromarray(np.array(rgb[:,:,::-1])) # draw line (center of juggling pattern) i...
41.387097
155
0.572876
a1f0bbc236e191d79fbd1b9948c63cf33267704a
423
py
Python
exercises/en/test_02_09.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_02_09.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_02_09.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( 'spacy.load("en_core_web_md")' in __solution__ ), "Are you loading the medium model correctly?" assert "doc[1].vector" in __solution__, "Are you getting the correct vector?" __msg__.good( "Well done! In the next exercise, you'll be using spaCy to predict " "s...
38.454545
81
0.65721
3dc2afdf4e335cfc58ef72ff5ce1b1190c9cddec
152
py
Python
src/utils/path.py
AakashMallik/cnn-firefly
6c8ed58a035e62682263753436b124cb979ed240
[ "MIT" ]
null
null
null
src/utils/path.py
AakashMallik/cnn-firefly
6c8ed58a035e62682263753436b124cb979ed240
[ "MIT" ]
7
2020-11-27T12:24:31.000Z
2020-11-29T09:41:09.000Z
src/utils/path.py
AakashMallik/cnn-firefly
6c8ed58a035e62682263753436b124cb979ed240
[ "MIT" ]
null
null
null
from pathlib import Path DATA_ROOT = Path('./resources/data') CONFIG_ROOT = Path('./configs') DEFAULT_CONFIG_ROOT = Path('./resources/default_configs')
30.4
57
0.763158
3dc2c3ea9aa33029f44436347fd05a5023a3de19
2,758
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_09_Dateien_verwalten/09_nummernfolge_in_filenamen_korrigieren/32_nummernfolge_in_filenamen_korrigieren.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_09_Dateien_verwalten/09_nummernfolge_in_filenamen_korrigieren/32_nummernfolge_in_filenamen_korrigieren.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_09_Dateien_verwalten/09_nummernfolge_in_filenamen_korrigieren/32_nummernfolge_in_filenamen_korrigieren.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 32_nummernfolge_in_filenamen_korrigieren.py # In dieser Übung geht es darum nummerierte Dateien auf ihre Sequenz zu überprüfen. Sollte eine Sequenz # unterbrochen sein sollen die Dateinamen korrigiert werden. import os, shutil, re os.chdir(os.path.dirname(__file__)) target='.\\correct_me' def categorize_files(): ...
41.787879
104
0.664975
3dd48affd01a6324c4c81b4ef2d844866d35c09c
857
py
Python
robot/csdn/view.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/csdn/view.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/csdn/view.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # coding=utf-8 import random from selenium import webdriver import time from robot.csdn.fastlist import get_article_ids def view(browser, blog): browser.maximize_window() browser.get(blog) print("ok") time.sleep(5) for html in articles[29:]: ...
21.974359
98
0.645274
626ba396cec62df3669dde422cf3b64fafe9139e
363
py
Python
PYTHON/Math/polar_coordinates.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Math/polar_coordinates.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Math/polar_coordinates.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from cmath import phase if __name__ == '__main__': # 1. Distance from to origin, i.e., sqrt(x^2 + y^2) # 2. Counter clockwise angle measured # from the positive x-axis to the line segment that joins z to the origin. z = complex(input()) print(abs(complex(z.real, z.imag)))...
33
81
0.652893
02f8d0e2df70ad82c0841c87e76db1677064d76e
189
py
Python
1480-running-sum-of-1d-array/1480-running-sum-of-1d-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1480-running-sum-of-1d-array/1480-running-sum-of-1d-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1480-running-sum-of-1d-array/1480-running-sum-of-1d-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def runningSum(self, nums: List[int]) -> List[int]: output=[nums[0]] for num in nums[1:]: output.append(num+output[-1]) return output
31.5
55
0.560847
a2991974c542fe401e8a7acfea7b0f21cd6b6173
30,837
py
Python
tests/onegov/core/test_framework.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_framework.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_framework.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath import os import transaction import pytest from base64 import b64decode from base64 import b64encode from cached_property import cached_property from datetime import datetime, timedelta from email.header import decode_header from email.utils import parseaddr from freezegun import freeze_time from gette...
28.110301
79
0.618478
ce1868f182ee99c508a09123d46325aa915e047d
120
py
Python
tools/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/__init__.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/8/6 下午3:54 """
15
28
0.633333
5a1e07458d005967c15d4ed588137816bb8c2e57
3,870
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/ipython_cluster_helper-0.3.2-py2.7.egg/cluster_helper/lsf.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/ipython_cluster_helper-0.3.2-py2.7.egg/cluster_helper/lsf.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/ipython_cluster_helper-0.3.2-py2.7.egg/cluster_helper/lsf.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import os import subprocess import fnmatch LSB_PARAMS_FILENAME = "lsb.params" LSF_CONF_FILENAME = "lsf.conf" LSF_CONF_ENV = ["LSF_CONFDIR", "LSF_ENVDIR"] DEFAULT_LSF_UNITS = "KB" DEFAULT_RESOURCE_UNITS = "MB" def find(basedir, string): """ walk basedir and return all files matching string """ matches ...
26.875
81
0.648579
5a43c2dddd27f66c579523244761b4ac72fe0935
1,238
py
Python
Algorithms/Implementation/the_time_in_words.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/the_time_in_words.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/the_time_in_words.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # NUMBERS unit = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve'] teen = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'] ten = ['', '', 'twenty', 'thirty', 'forty'...
30.95
83
0.511309
0c7d4c8ff3ba847fb084517ab99de4ac3e3451b8
1,631
py
Python
Imagenes/HetBoiling/Diametro/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/HetBoiling/Diametro/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/HetBoiling/Diametro/Allpost.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import vdWColumn as vdw import vdWColumn.postLBRun as post import numpy as np import matplotlib.pyplot as plt import argparse import os from scipy import stats import matplotlib.ticker as mticker import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(...
20.3875
144
0.55794
0b79728c196e1edeadd4f99e9adca3bff4a88252
639
py
Python
solutions/tflite_micro_speech_demo/cp_resources.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
solutions/tflite_micro_speech_demo/cp_resources.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
solutions/tflite_micro_speech_demo/cp_resources.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#!/usr/bin/env python3 import os import sys import getpass import shutil #!/usr/bin/env python3 import os import sys import getpass import shutil comp_path = sys.path[0] print("comp_path:") print(comp_path) # original folder src_mp3_path = comp_path + "/resources/mp3" # new folder data_path = comp_path + "/../../...
17.75
69
0.749609
651bd515da6fabb9c4de4291e768c8832e9f7471
6,560
py
Python
Welp/app.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Welp/app.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Welp/app.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
import json import os from flask import Flask, Response, flash, render_template, request, session from typing import Any from api import google_image_search from util.flask.flask_utils import form_contains, post_only, preconditions, query_contains, \ reroute_to, session_contains from util.flask.flask_utils_types ...
30.091743
93
0.692073
d7c320db24f8b023e50a3e38bb78575780400afa
702
py
Python
Packs/CreateHash/Scripts/CreateHash/CreateHash.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CreateHash/Scripts/CreateHash/CreateHash.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CreateHash/Scripts/CreateHash/CreateHash.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# Simple script to create a sha256 hash from agiven input import hashlib from hashlib import blake2b import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 text = demisto.args()['text'] hashtype = demisto.args()['type'] if hashtype == "sha256": h = hashlib.sha256() h.updat...
23.4
57
0.679487
cc2db09aa1dfd2239c416601ef78a4acefe8de25
8,839
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_bufferselecttoolbar.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_bufferselecttoolbar.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_bufferselecttoolbar.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from qgis.core import QgsFeatureRequest, QgsWkbTypes, QgsGeometry from PyQt5.QtWidgets import QWidget, QToolBar, QSlider, QDoubleSpinBox from PyQt5.QtCore import Qt, pyqtSignal from PyQt5 import uic import os import math import numpy from .gto_info import Info class Buffer...
41.497653
118
0.569182
0bce82bfe6fd7a749b0062e0c8cdd41e6496c3ed
9,690
py
Python
baseUI.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
baseUI.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
baseUI.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'base.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.s...
56.666667
79
0.707946
0b20ac2f628a6ec366a750ba50330ae6fd016a2e
669
py
Python
Algorithms/Search/icecream_palor.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Search/icecream_palor.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Search/icecream_palor.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys ''' Use Linear Search algorithm. Performance - Worst-case O(n) - Best-case O(1) - Average O(n) Worst-case space complexity O(1) iterative ''' for _ in range(int(input().strip())): found = False m = int(input().strip()) n = int(input().strip()) c = list(map(int, in...
20.90625
50
0.470852
9bc989e9e64ded22a8be80e235b18b4b7ce5e3ee
2,049
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_test_multibytecodec__support.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_test_multibytecodec__support.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_test_multibytecodec__support.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_test_multibytecodec__support.py,v 1.1.2.2 2021/10/13 21:04:01 tm Exp $ Fix CVE-2020-27619: No longer call eval() on content received via HTTP in the CJK codec tests Via Fedora: https://src.fedoraproject.org/rpms/python2.7/blob/rawhide/f/00355-CVE-2020-27619.patch --- Lib/test/multibytecodec_support...
43.595745
93
0.495364
50164505023341185167a074e84c56bec0741138
6,040
py
Python
movie/movie.py
xiaolifeipiao/xiaolifeipiao-spark-integrated-curriculum
f9b502ac4a7bd8663005f1bfd2c8ebec5bce9e74
[ "Apache-2.0" ]
6
2021-11-11T01:06:08.000Z
2021-11-18T02:45:25.000Z
movie/movie.py
xiaolifeipiao/xiaolifeipiao-spark-integrated-curriculum
f9b502ac4a7bd8663005f1bfd2c8ebec5bce9e74
[ "Apache-2.0" ]
null
null
null
movie/movie.py
xiaolifeipiao/xiaolifeipiao-spark-integrated-curriculum
f9b502ac4a7bd8663005f1bfd2c8ebec5bce9e74
[ "Apache-2.0" ]
null
null
null
import pandas as pd from pyspark import SparkContext # ======================================================================================================================= import sys class Logger(object): def __init__(self, filename='default.log', stream=sys.stdout): self.terminal = stream sel...
35.952381
132
0.577318
5026f14834ae0ec5eafae0c7969a326ba3216852
98
py
Python
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/__init__.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/__init__.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/__init__.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from celery import Celery app = Celery('kangbazi1904') app.config_from_object('apps.celery_conf')
24.5
42
0.806122
c5aa33b1234e978040f053f95b4c8e5ced847678
615
py
Python
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/timedeltas_start.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/timedeltas_start.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/timedeltas_start.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
# # Example file for working with timedelta objects # from datetime import date from datetime import time from datetime import datetime # construct a basic timedelta and print it # print today's date # print today's date one year from now # create a timedelta that uses more than one argument # calculate the ...
17.571429
75
0.744715
a88acd17416f2a2cca996d889530ee4344ac6870
1,314
py
Python
fuzzsvc/controller/Status.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
controller/Status.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
controller/Status.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from flask_restful import Resource from datetime import datetime from model.FuzzingJobState import FuzzingJobState from model.FuzzingJob import FuzzingJob from model.FuzzingHost import FuzzingHost from model.FuzzingCrash import FuzzingCrash class StatusCtrl(Resource): def get(self): status_active = Fuzzing...
45.310345
94
0.714612
4fa54aeb6d9604adc90b5374b1e8fdd6c5fbd4f7
2,643
py
Python
数据结构/NowCode/24_Tree.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/24_Tree.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/24_Tree.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None ########## 递归遍历 ############### # 递归先序遍历 def preOrderRecusive(root): if root == None: return None print(root.val, end=" ") preOrderRecusive(root.left) preOrderRecusive(roo...
23.598214
56
0.542565
96d817678d8d36e856d008f03d1e6398703d1f90
1,937
py
Python
migrations/versions/0a282a331e35_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/0a282a331e35_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/0a282a331e35_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 0a282a331e35 Revises: da63ba1d58b1 Create Date: 2020-10-18 11:55:12.315808 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "0a282a331e35" down_revision = "da63ba1d58b1" branch_lab...
32.283333
84
0.657202
8b0d194a412e85c2046cb4e808f4a36139f9d15d
2,211
py
Python
suds/transport/options.py
koocieyu/interactive-tutorials
873851b37f0a13b6218ba1e656d51169010981fe
[ "Apache-2.0" ]
46
2018-10-22T23:34:03.000Z
2022-03-31T09:31:34.000Z
suds/transport/options.py
koocieyu/interactive-tutorials
873851b37f0a13b6218ba1e656d51169010981fe
[ "Apache-2.0" ]
317
2018-10-05T23:51:48.000Z
2022-03-22T17:38:52.000Z
suds/transport/options.py
koocieyu/interactive-tutorials
873851b37f0a13b6218ba1e656d51169010981fe
[ "Apache-2.0" ]
46
2018-10-10T18:55:00.000Z
2022-03-28T07:27:04.000Z
# This program is free software; you can redistribute it and/or modify # it under the terms of the (LGPL) GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will ...
38.789474
76
0.601085
e893f2c8c07296ea1fd4e63313ac13e568be999c
670
py
Python
BinToDec.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
BinToDec.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
BinToDec.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def bin_to_dec_standard(binaerstring): result = 0 ziffern = len(binaerstring) for i in binaerstring: result = result + int(i) * 2 ^ ziffern ziffern -= 1 return result # aus Weitz, Edmund (2021): Konkrete Mathematik (nicht nur) für Informatiker. Springer Nature 2...
30.454545
104
0.677612
e8bfee37636ec9cccc6591d5275ef9ae5964076a
16,961
py
Python
MAIN/STM32F405_C/NORMAL/history/V29/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V29/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V29/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import gc from micropython import const from SX1239 import RF_COMING_DATA_SIZE import binascii OPEN_SCENE_SHOW_TIME = const(2500) CLOSING_TIME = const(10000) CLOSE_SCENE_SHOW_TIME = const(1000) MAX_SEAT_NUMBER = const(33) PXHUB_ESTIMATED_LIFETIME = const(1788) #day RF_DATA_...
64.490494
999
0.626083
2cd76cd3e13fb2017755b913aa9d9a1f79a80a2f
832
py
Python
Curso-Em-Video-Python/2Exercicios/068_jogo_do_par_ou_impar.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/068_jogo_do_par_ou_impar.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/068_jogo_do_par_ou_impar.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from random import randint jogo = n = 0 print('=-' * 15) print('VAMOS JOGAR PAR OU IMPAR') print('=-' * 15) while True: valor = int(input('Digite seu numero:')) jogada = str(input('Par ou Impar? ')).upper().split()[0] print('=-' * 15) pc = randint(0, 30) soma = (valor + pc) % 2 if soma == 1: ...
30.814815
89
0.555288
d729a40fe667dc5b611726d85df37237a0d67219
4,366
py
Python
wz/core/migrate_pupils.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/core/migrate_pupils.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/core/migrate_pupils.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ core/migrate_pupils.py Last updated: 2021-10-05 "Move" pupils from one school-year to the next. =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit...
33.584615
78
0.620476
d77a41f8fd7a64cb2abddbf39552370dabfc21b3
1,803
py
Python
tag_2/p_6_eisenwarenhaendler.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_2/p_6_eisenwarenhaendler.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_2/p_6_eisenwarenhaendler.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 6 Eisenwarenhändler (Tag 2) Ein Eisenwarenhändler bietet verschiedenste Waren zu unterschiedlichen Preisen an. Er führt unter anderem auch Schrauben, Muttern und Unterlegscheiben. Die Preise für die Artikel sind: - Schrauben: 7 ct - Muttern: 4 ct - Unterlegscheiben: 2 ct A u f g a b e Schreiben Sie...
36.795918
114
0.719911
d78911f99e174939792eb3c690f96d7dd33bd5c0
1,098
py
Python
Interview Preparation Kits/Interview Preparation Kit/String Manipulation/Common Child/common_child.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/String Manipulation/Common Child/common_child.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/String Manipulation/Common Child/common_child.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the commonChild function below. def commonChild(s1, s2): n = len(s1) dp = [[0 for _ in range(n)] for _ in range(n)] if s1[0] == s2[0]: dp[0][0] = 1 else: dp[0][0] = 0 for k in range(1, n): ...
20.333333
54
0.417122
ad2ca6daaf9c2e28d5c11883540c8cae74aae5a2
2,755
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_18_Maus_und_Tastatur_steuern/05_kapitel_18_repetitionsfragen.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_18_Maus_und_Tastatur_steuern/05_kapitel_18_repetitionsfragen.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_18_Maus_und_Tastatur_steuern/05_kapitel_18_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 05_kapitel_18_repetitionsfragen.py import re max_text_length=70 max_text_delta=24 def output(title, string): print('╔'+''.center(max_text_length+8, '═')+'╗') print('║ '+title.center(max_text_length+7).upper()+'║') print('╠'+''.center(max_text_length+8, '═')+'╣') string=string+' '*max_text_length ...
61.222222
233
0.73902
d175d977a341ab6d5c2fdc38c3f88dea84343443
438
py
Python
version.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
version.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
version.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = '0.1.8' __project__ = "GQA - Geräte-QA" __version_info__ = __version__.split('.') __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeiten...
36.5
209
0.744292
7e145dc4f9fac3629296b4d9691e17bdbb8a6cc8
1,183
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_16_Mails_und_SMS_senden/02_mails_versenden.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_16_Mails_und_SMS_senden/02_mails_versenden.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_16_Mails_und_SMS_senden/02_mails_versenden.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 02_mails_versenden.py # In dieser Übung geht es darum sich über den SMTP-Server einzuloggen und # Eine testnachricht zu versenden. import smtplib print('SMTP-Server angeben:') smtp_server=input() print('Port angeben:') smtp_port=input() print('Benutzername angeben:') user_name=input() print('Passwort angeben:') p...
26.288889
150
0.770076
7d1a27b76e6d57c456ccd8884bfc18cfdf399f91
10,860
py
Python
DatenbankEditTalent.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
DatenbankEditTalent.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
DatenbankEditTalent.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DatenbankEditTalent.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
58.074866
328
0.731584
1dda371b07f513f2510e7eba36e0e4035f8b301c
1,281
py
Python
dictionary-memory/application.py
scaraclette/flask-javascript-ajax
50829cb78094c10bc8dca57ba6db17434cd165c5
[ "MIT" ]
null
null
null
dictionary-memory/application.py
scaraclette/flask-javascript-ajax
50829cb78094c10bc8dca57ba6db17434cd165c5
[ "MIT" ]
1
2019-05-19T20:14:42.000Z
2019-05-19T20:14:42.000Z
dictionary-memory/application.py
scaraclette/flask-javascript-ajax
50829cb78094c10bc8dca57ba6db17434cd165c5
[ "MIT" ]
null
null
null
import requests, json from flask import Flask, jsonify, render_template, request app = Flask(__name__) currentInput = None listMemory = ["this is an initial item stored in the flask memory"] channels = {"chn":["channel 1", "channel 2"],"channel 1":["item 1", "item 2"], "channel 2":["item a", "item b"]} @app.route("/...
35.583333
133
0.677596
69e85259024e201db40980836650b53ba0434a4c
363
py
Python
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch4/files_start.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch4/files_start.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch4/files_start.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
# # Read and write files using the built-in Python file methods # def main(): # Open a file for writing and create it if it doesn't exist # Open the file for appending text to the end # write some lines of data to the file # close the file when done # Open the file back up and read the contents...
15.782609
61
0.666667
2a135e8b1890501e9d3cb13d57fdbd453ff49379
491
py
Python
simple-sklearn-demo/test1/countVector.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-sklearn-demo/test1/countVector.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-sklearn-demo/test1/countVector.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
from sklearn.feature_extraction.text import CountVectorizer def count_demo(): data = [ "this is an apple", "this is a pear", "these are oranges" ] # 使用stop_words传入列表, 使用停用词 # cv = CountVectorizer(stop_words=["apple"]) cv = CountVectorizer(stop_words=["apple"]) data_new ...
22.318182
59
0.645621
2a8836a8c16086d9e64fa445b2bcf48167fc8216
784
pyde
Python
sketches/OpenCV_Test/OpenCV_Test.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/OpenCV_Test/OpenCV_Test.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/OpenCV_Test/OpenCV_Test.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
add_library('opencv_processing') contours = [] def setup(): global jojosrc, jojodst, contours size(840, 420) jojosrc = loadImage("jojo2.jpg") opencv = OpenCV(this, jojosrc) opencv.gray() opencv.threshold(120) jojodst = opencv.getOutput() contours = opencv.findContours() p...
20.631579
67
0.593112
fa75a0aea063d3e1c4ec87addedf0eb323d7ea25
1,998
py
Python
Chapter10_RNN/mnistRnnLstm.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter10_RNN/mnistRnnLstm.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter10_RNN/mnistRnnLstm.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.keras.datasets import mnist from tensorflow.keras.layers import LSTM from tensorflow.keras.layers import Activation from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam from tensorflow.keras.utils ...
28.140845
99
0.664665
fad3144039685a7f4e9a7f6b5be65acda884d79e
8,114
py
Python
webinterface/tests/unit_tests/test_model_DutySwitch.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/tests/unit_tests/test_model_DutySwitch.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/tests/unit_tests/test_model_DutySwitch.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django.test import TestCase from webinterface.models import * from webinterface.tests.unit_tests.fixtures import BaseFixtureWithDutySwitch import logging from unittest.mock import * class DutySwitchQuerySetTest(BaseFixtureWithDutySwitch, TestCase): def test__open__no_schedule(self): self.assertSetEq...
53.03268
120
0.687331
ea9f7ec0f1a81ca24d9de34d7aab8843c17a80c5
2,433
py
Python
main.py
Blue-Gamer48/Youtube-Downloader
2c582a516538242325cf43360f421195fee60c30
[ "MIT" ]
1
2022-03-08T15:37:15.000Z
2022-03-08T15:37:15.000Z
main.py
Blue-Gamer48/Youtube-Downloader
2c582a516538242325cf43360f421195fee60c30
[ "MIT" ]
null
null
null
main.py
Blue-Gamer48/Youtube-Downloader
2c582a516538242325cf43360f421195fee60c30
[ "MIT" ]
1
2022-03-08T16:50:12.000Z
2022-03-08T16:50:12.000Z
from tkinter import * import tkinter as tk from tkinter import ttk from pytube import YouTube from tkinter import filedialog, messagebox from tkinter.messagebox import showinfo ydl_opts = { 'format': 'bestaudio/best', 'extractaudio': True, 'audioformat': 'mp3', 'outtmpl': '%(title)s.f%(f...
41.237288
133
0.722976
57c8ca1c93b3ee3c8a80c8473ee6d225fff64597
1,826
py
Python
official/cv/srcnn/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
official/cv/srcnn/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/srcnn/src/utils.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...
48.052632
115
0.560789
aa40242925f33a2aa6cbeac253a5608b1986a4f3
551
py
Python
app/main/errors.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
6
2017-10-21T04:26:08.000Z
2021-12-18T23:45:40.000Z
app/main/errors.py
IoTServ/frp-config-server
d54567dd8abdf77974126d9195fc6bf34698f985
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
app/main/errors.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
6
2017-11-06T06:14:55.000Z
2021-09-04T18:58:20.000Z
# coding:utf-8 import json from flask import render_template, request, jsonify from . import main @main.app_errorhandler(403) def forbidden(e): return render_template('403.html'), 403 @main.app_errorhandler(404) def notfound(e): return render_template('404.html'), 404 @main.app_errorhandler(500) def intern...
20.407407
51
0.722323
1091595996a961dcc0a99b3ffb11714ad0d1ed8b
259
py
Python
Packs/InvertEveryTwoItems/Scripts/InvertEveryTwoItems/InvertEveryTwoItems.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/InvertEveryTwoItems/Scripts/InvertEveryTwoItems/InvertEveryTwoItems.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/InvertEveryTwoItems/Scripts/InvertEveryTwoItems/InvertEveryTwoItems.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from itertools import chain import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 value = [] value = demisto.args()["value"] list_out = list(chain.from_iterable(zip(value[1::2], value[::2]))) demisto.results(list_out)
21.583333
66
0.725869
d834a70b2bac8eece19409d70f380ecfa9839e63
6,781
py
Python
src/test/tests/plots/scatter.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/plots/scatter.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/plots/scatter.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # MODES: serial # CLASSES: nightly # # Test Case: scatter.py # # Tests: Tests the scatter plot # # Programmer: Brad Whitlock # Date: Tue Dec 14 16:58:04 PST 2004 # # Modifications: # Brad Whitlock, Mon Jul 18 17:19:04 ...
19.769679
78
0.698275
f4f027ae46fa554b661098b6a7b67b79a01c0990
878
py
Python
number-of-provinces/number-of-provinces.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
number-of-provinces/number-of-provinces.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
number-of-provinces/number-of-provinces.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def bfs(self, node: int) -> None: stack=[node] self.visited[node]=True while(stack): cur_node = stack.pop(0) for i in range(self.n): if not self.visited[i] and self.isConnected[cur_node][i]==1: stack.append(i) ...
35.12
76
0.503417
21acd1e04b51bbe9eb61dddda4ebd510db942920
11,557
py
Python
research/cv/eppmvsnet/src/blendedmvs.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/eppmvsnet/src/blendedmvs.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/eppmvsnet/src/blendedmvs.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...
41.722022
108
0.560093
df8bc0f80b5d361a438936ab0a75ab2321137226
520
py
Python
python_lessons/MtMk_Test_Files/candlestick_chart_plotting.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/candlestick_chart_plotting.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/candlestick_chart_plotting.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
import pandas_datareader as pdr import pandas as pd import datetime as dt import plotly.graph_objects as go start = dt.datetime(2015,1,1) end = dt.datetime.today() share_aapl = pdr.get_data_yahoo('AAPL', start = start, end = end) df = share_aapl figure = go.Figure( data = [ go.Candlestick( x = ...
20
66
0.630769
10de1250fb5519e40cedb582c6a764c12584c0b1
3,061
py
Python
subtitles_creator.py
NickForero11/Subbler
ed528514e96ddc30d58230ff98ff0fd5216ea5de
[ "MIT" ]
null
null
null
subtitles_creator.py
NickForero11/Subbler
ed528514e96ddc30d58230ff98ff0fd5216ea5de
[ "MIT" ]
null
null
null
subtitles_creator.py
NickForero11/Subbler
ed528514e96ddc30d58230ff98ff0fd5216ea5de
[ "MIT" ]
null
null
null
"""Module to handle the creation of .srt subtitles using data previously formatted using group_sentences.py """ from math import floor from sys import exit def time_formatter(num, size): """Adjust a number to a specific size using padding leading zeroes if needed. Arguments: num (int): the numbe...
28.877358
79
0.619732
800ac07831c670e9bbe13c9c78ecdf2a5d4048c7
2,201
py
Python
0-notes/job-search/Cracking the Coding Interview/C03StacksQueues/python/3.3-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C03StacksQueues/python/3.3-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C03StacksQueues/python/3.3-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 3.3 Stack of Plates # Imagine a literal stack of plates. # If the stack gets too high, it might topple. # Therefore, in real life, we would likely start a new stack when the previous stack exceeds some threshold. # Implement a data structure SetOfStacks that mimics this. # SetOfStacks should be composed of several s...
41.528302
108
0.615629