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
ad9b1e89563b4e819b1e92ae0236cb6baa2c893a
248
py
Python
note/lambda.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
2
2018-06-19T08:46:10.000Z
2018-11-05T02:15:34.000Z
note/lambda.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
null
null
null
note/lambda.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
null
null
null
# a = 1 # 0001 # b = 2 # 0010 # print(a, b) # c = a ^ b # 0011 # a = c ^ a # # b = c ^ a # # b = a ^ b # print(a, b) def multipliers(): return [lambda x, i=i: i*x for i in range(4)] print ([m(2) for m in multipliers()] ) """ [0, 2, 4, 6] """
14.588235
49
0.455645
d15e6ee17cfd4ee4eef40222ec93229acee4b17c
2,337
py
Python
python/oneflow/test/graph/test_graph_copy.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/graph/test_graph_copy.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/graph/test_graph_copy.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...
34.367647
85
0.622593
0f375ad774b682629c834b7c5dbd0d11df627af1
406
py
Python
PINp/2015/GOLOVIN_A_I/task_5_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_5_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_5_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 7. # Напишите программу, которая бы при запуске случайным образом отображала имя одного из семи # гномов, друзей Белоснежки. # Golovin A.I. # 02.06.2016 import random gnom = ("Умник", "Скромник","Чихун", "Весельчак", "Простачек", "Соня","Июль", "Август", "Сентябрь", "Ворчун") r...
27.066667
121
0.684729
7e9a57afc870fc4dcb4c6168d19295dbf029ad4e
5,681
py
Python
app/core/migrations/0001_initial.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
1
2022-03-06T17:44:49.000Z
2022-03-06T17:44:49.000Z
# Generated by Django 2.1.15 on 2021-11-08 20:13 import core.models from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0...
60.43617
424
0.614681
7d0c591c8a35db887a66e72f36b71463a0a67202
666
py
Python
examples/adminEx2/ex/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/adminEx2/ex/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/adminEx2/ex/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.db import models # Create your models here. class Publisher(models.Model): name = models.CharField('name', max_length=150, unique=True) class Country(models.Model): name = models.CharField('name', max_length=150, unique=True) class Book(models.Model): name = models.CharField('name', max...
21.483871
64
0.651652
7d3c4d719f5a4453f4c34825c7caa3e360b9785a
985
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Pipeline/PoolThread.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Pipeline/PoolThread.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Pipeline/PoolThread.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
from mongodb_consistent_backup.Errors import Error class PoolThread(object): def __init__(self, thread_name, config, compression_method='none'): self.thread_name = thread_name self.config = config self.compression_method = compression_method self.timer_name = se...
31.774194
99
0.634518
3827d4da8885fab42a7380cd1e8dddd0fd61a454
4,428
py
Python
Packs/Base/Scripts/DBotFindSimilarIncidentsByIndicators/DBotFindSimilarIncidentsByIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Base/Scripts/DBotFindSimilarIncidentsByIndicators/DBotFindSimilarIncidentsByIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Base/Scripts/DBotFindSimilarIncidentsByIndicators/DBotFindSimilarIncidentsByIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pandas as pd # from CommonServerPython import * # import pytest from DBotFindSimilarIncidentsByIndicators import identity_score, match_indicators_incident, get_indicators_map, \ FrequencyIndicators, \ get_number_of_invs_for_indicators TRANSFORMATION = { 'indicators': {'transformer': FrequencyIndicat...
46.610526
119
0.586269
3871d07baa21bad885da1e58b951f904ca7a47f2
6,880
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/output/generateTLSE2Detectors.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/output/generateTLSE2Detectors.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/output/generateTLSE2Detectors.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-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.ec...
41.95122
83
0.613081
aa62921e6c2a6fb6ac6d83b74908c18ecffdc822
16,900
py
Python
x2paddle/project_convertor/pytorch/mapper.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/project_convertor/pytorch/mapper.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/project_convertor/pytorch/mapper.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
# Copyright (c) 2021 PaddlePaddle 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 appl...
48.563218
79
0.694911
aab79f339a06a45bce35ccbbff0272dede44c4c4
3,655
py
Python
src/backend/get_instance.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
2
2021-04-07T03:12:33.000Z
2021-05-25T10:01:40.000Z
src/backend/get_instance.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
null
null
null
src/backend/get_instance.py
tonyLyx1/CSC4001-Better-SIS
98c69317a2c2ea4bfe45b3fc6f3db4766c4aae91
[ "MIT" ]
3
2021-04-07T03:12:44.000Z
2021-04-13T11:21:03.000Z
from DB.dbModels import db import DB.dbModels as dbMdl from schedule import Schedule from course import Course, Instructor, Session from student import Student, Preference from schedule import Schedule # Global variables courses = dict() #temp rule: course full code : course instance instructors = dict() #temp r...
34.481132
103
0.599453
fab314ffd0238326c22871f12942e7ddde8ce59f
3,834
py
Python
tools/datasets_convert/coco2voc.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/datasets_convert/coco2voc.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/datasets_convert/coco2voc.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/8/4 下午1:56 """ from pycocotools.coco import COCO import numpy as np from PIL import Image import matplotlib.pyplot as plt import os,shutil,cv2 from dataloader.skmt import SkmtDataSet def resave_img(img_name,output_path,prefix)...
29.492308
98
0.62963
35e368eaf17e4ebda517ed27cb4bd30b87678345
566
py
Python
SleekSecurity/layers/plugins/disclosure/ssn.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/disclosure/ssn.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/disclosure/ssn.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt from lib.utils.printer import * from lib.parser.parse import * def ssn(content): _list_ = parse(content).ge...
31.444444
93
0.65371
ea2be296d6d47541e928669f0e315e70ef3e1c5e
331
py
Python
telegrambot/setup.py
LittleKita/CoronaAssistent
1e0862d94bdc509aa468921ee7b056ec59e6f472
[ "MIT" ]
1
2020-03-20T22:05:14.000Z
2020-03-20T22:05:14.000Z
telegrambot/setup.py
LittleKita/CoronaAssistent
1e0862d94bdc509aa468921ee7b056ec59e6f472
[ "MIT" ]
6
2020-03-21T12:22:36.000Z
2022-02-27T01:33:33.000Z
telegrambot/setup.py
LittleKita/CoronaAssistent
1e0862d94bdc509aa468921ee7b056ec59e6f472
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='corona_assistent_bot', version='0.0.0', url='https://github.com/LittleKita/CoronaAssistent', license='MIT', packages=find_packages('src'), package_dir={'': 'src'}, python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !...
27.583333
82
0.592145
57adc14781aaf1d73cbb6d16c03b9c0dca222320
34,748
py
Python
scenarios/continuous_mcs.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
scenarios/continuous_mcs.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
scenarios/continuous_mcs.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import math import random import networkx as nx import numba import numpy as np import pygame.image import copy from sko.GA import GA from scenarios.continuous_uav_base.agents import AgentGroup2D from utils.hparams import hparams from scenarios.continuous_uav_base.render_utils import ContinuousWorldRenderer N_AGENT ...
44.548718
120
0.596667
57ccef45f9a8c31904cf0e439a21f1e31b58998e
882
py
Python
Packs/RegexExpand/Scripts/RegexExpand/RegexExpand_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/RegexExpand/Scripts/RegexExpand/RegexExpand_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/RegexExpand/Scripts/RegexExpand/RegexExpand_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto import json def test_main(mocker): from RegexExpand import main with open('./test_data/test-1.json', 'r') as f: test_list = json.load(f) for t in test_list: mocker.patch.object(demisto, 'args', return_value={ 'value': t.get('value'), ...
29.4
59
0.553288
52ac504632a48a9bbc05e5bd7c6b29248e2708d7
11,951
py
Python
.circleci/checklhe/particle.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/checklhe/particle.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/checklhe/particle.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
from fractions import Fraction from collections import Counter import momentum import usefulstuff import itertools import particletype import particlecategory import globalvariables import config import vertex import color class BadParticleLineError(Exception): pass class Particle(particletype.ParticleType): ...
37.700315
158
0.59836
52cecfe2cff2fb4c9eae54b5e135f03a96a2b5d4
3,562
py
Python
python/odmlToRDF/odml_to_rdf.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odmlToRDF/odml_to_rdf.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odmlToRDF/odml_to_rdf.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" This file provides examples how to convert odml files between versions and formats. """ import argparse import sys from os.path import join from odml.tools import ODMLReader, ODMLWriter, RDFWriter from odml.tools.converters import FormatConverter, VersionConverter ROOT = "/home/msonntag/Chaos/DL/conv/" FOLDER_OU...
29.196721
90
0.669848
eafa46e59759e9452572728d67a03f866a3180ff
722
pyde
Python
sketches/riley03/riley03.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/riley03/riley03.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/riley03/riley03.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Hommage an Bridget Riley 3 from random import choice WIDTH = 600 HEIGHT = 600 FPS = 60 riley = [color(235, 200, 55), color(115, 165, 215), color(155, 195, 80), color(230, 135, 170), color(230, 80, 70), color(65, 80, 150)] def setup(): global counter size(WIDTH, HEIGHT) this.surface....
21.878788
72
0.559557
d8392d9e7ea26ba044910be2bbc3cd568c894fa5
7,270
py
Python
research/cv/SiamFC/src/tracker.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SiamFC/src/tracker.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SiamFC/src/tracker.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...
43.795181
100
0.596011
dc2b077f76eba0f8d6cc80f05d39cc09d41c2fa8
5,600
py
Python
official/cv/erfnet/src/eval310.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/erfnet/src/eval310.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/erfnet/src/eval310.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...
33.136095
93
0.619464
52940708d8c53aff92a5f153730fdded515bd7ba
2,479
py
Python
config.py
JamesRayn/fotobox
1adc9cd62d078e28b7236d477ae4a004bfe014df
[ "MIT" ]
null
null
null
config.py
JamesRayn/fotobox
1adc9cd62d078e28b7236d477ae4a004bfe014df
[ "MIT" ]
null
null
null
config.py
JamesRayn/fotobox
1adc9cd62d078e28b7236d477ae4a004bfe014df
[ "MIT" ]
null
null
null
fotoboxCfg = {} fotoboxCfg['footer'] = 'Fotoboxparty' fotoboxCfg['window-width'] = 1280 fotoboxCfg['window-height'] = 1024 # Depending on the camera used previews might got smaller than set here fotoboxCfg['cam-p-width'] = 906 fotoboxCfg['cam-p-height'] = 680 fotoboxCfg['cam-p-x'] ...
53.891304
250
0.658733
0d5f253701633ee4c5591f76b08dbb6e0dd0d8d5
1,834
py
Python
Packs/HelloWorld/Scripts/HelloWorldScript/HelloWorldScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HelloWorld/Scripts/HelloWorldScript/HelloWorldScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HelloWorld/Scripts/HelloWorldScript/HelloWorldScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""HelloWorld Script for Cortex XSOAR - Unit Tests file This file contains the Unit Tests for the HelloWorld Script based on pytest. Cortex XSOAR contribution requirements mandate that every script should have a proper set of unit tests to automatically verify that the integration is behaving as expected during CI/CD ...
29.111111
78
0.74482
21bef302cd40e60b641ae83f73b454331ab01596
443
py
Python
Packs/ArrayToCSV/Scripts/ArrayToCSV/ArrayToCSV.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ArrayToCSV/Scripts/ArrayToCSV/ArrayToCSV.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ArrayToCSV/Scripts/ArrayToCSV/ArrayToCSV.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): args = demisto.args() the_val = args.get('value') try: the_csv = ','.join(the_val) return_results(the_csv) except Exception as ex: demisto.debug('Ooops, Something aint working...
23.315789
55
0.62754
df3ee9aa004d58f00aa64f5eb03157bbded4e16b
1,752
py
Python
etl/test/test_data_enhancement/enhancement_duplicates/test_enhancement_exact_duplicates.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/test/test_data_enhancement/enhancement_duplicates/test_enhancement_exact_duplicates.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/test/test_data_enhancement/enhancement_duplicates/test_enhancement_exact_duplicates.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
import json import os import unittest ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) os.environ['ROOT_DIR'] = ROOT_DIR from data_enhancement.enhancement_duplicates.enhancement_exact_duplicates import remove_duplicates class TestEnhancementExactDuplicates(unittest.TestCase): def test_remove_duplicates(sel...
31.285714
98
0.320776
8037bdb0c0c4b6d0d0432a3941cc5a9d16ebef10
2,130
py
Python
urlmapper.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
urlmapper.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
urlmapper.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python import unicodedata import re import sys import pinout import markjaml import glob import os reload(sys) sys.setdefaultencoding('utf8') def url_slugify(value): """ Normalizes string, converts to lowercase, removes non-alpha characters, and converts spaces to hyphens. """ value...
23.666667
115
0.676526
33e82a2913a23315f3bfbe319c157a7a75c1ceed
3,787
py
Python
knapsack/test_knapsack.py
filchyboy/cs-module-project-algorithms
d0ab5bdc67f5264da8e35f78106e108076062469
[ "MIT" ]
71
2019-03-05T04:44:48.000Z
2022-03-24T09:47:48.000Z
knapsack/test_knapsack.py
filchyboy/cs-module-project-algorithms
d0ab5bdc67f5264da8e35f78106e108076062469
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/02_algorithms/Algorithms/knapsack/test_knapsack.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
37
2019-03-07T05:08:03.000Z
2022-01-05T11:32:51.000Z
import sys import unittest from collections import namedtuple from knapsack import knapsack_solver Item = namedtuple('Item', ['index', 'size', 'value']) class Test(unittest.TestCase): def setUp_small(self): file_contents = open('data/small1.txt', 'r') self.small_1_items = [] for line in file_conten...
34.743119
279
0.655664
33eaa4713a404a234ed0d48250ba84aa373ebe6c
20,532
py
Python
src/Sephrasto/UI/Einstellungen.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/UI/Einstellungen.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/UI/Einstellungen.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'Einstellungen.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
60.035088
121
0.721264
89767081785e1f17dbfaaab6970f3f407924ddb6
860
py
Python
Packs/FeedCyrenThreatInDepth/Scripts/CyrenCountryLookup/CyrenCountryLookup_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedCyrenThreatInDepth/Scripts/CyrenCountryLookup/CyrenCountryLookup_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedCyrenThreatInDepth/Scripts/CyrenCountryLookup/CyrenCountryLookup_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest @pytest.mark.parametrize("value, expected", [ ("DE", "Germany"), ("de", "Germany"), ("De", "Germany"), ("ZZ", "ZZ"), ("Zz", "Zz"), ]) def test_lookup(value, expected): """ Given: Different arg input When: Running lookup command. Then: either the correct country name w...
22.051282
89
0.626744
f683915f4cb450cd4843f31dbdb5d6de84274b87
4,257
py
Python
MLP.py
petroniocandido/RNA
bdb727cc47baf0d8e04bce5af7e16ea3c07a6a3f
[ "MIT" ]
null
null
null
MLP.py
petroniocandido/RNA
bdb727cc47baf0d8e04bce5af7e16ea3c07a6a3f
[ "MIT" ]
null
null
null
MLP.py
petroniocandido/RNA
bdb727cc47baf0d8e04bce5af7e16ea3c07a6a3f
[ "MIT" ]
null
null
null
import numpy as np from RNA.FuncoesAtivacao import sigmoide, identidade from RNA.FuncoesCusto import mse def treinar(X, Y, **kwargs): taxa_aprendizado = kwargs.get("taxa_aprendizado", 0.02) numero_epocas = kwargs.get("numero_epocas", 100) batch = kwargs.get("batch", 100) funcao_custo = kwargs.get("funcao_cust...
33.785714
138
0.657975
f6ccb07c980227db8c3285f8f5cdb8b1cd053430
13,033
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/netscaler/netscaler_server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/netscaler/netscaler_server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/netscaler/netscaler_server.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017 Citrix Systems # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
32.420398
174
0.599248
f6d5bbf4770793653cfec161878796574b8264a0
1,650
py
Python
src/corpus/stemmer.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/corpus/stemmer.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/corpus/stemmer.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from os import walk, path, stat, makedirs from nltk import PorterStemmer from extras import Logger # The stemmer class class Stemmer: # Constructor for the stemmer def __init__(self, in_dir, out_dir): s...
25.78125
105
0.609091
12257030b172e71556bb4bf58921972985485a7d
7,432
py
Python
Playground.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
1
2019-10-22T14:02:34.000Z
2019-10-22T14:02:34.000Z
Playground.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
null
null
null
Playground.py
BogyMitutoyoCTL/Riesen-Tetris-3
349d7b6f12c2ddf0b66683c904406a5e8596228d
[ "MIT" ]
null
null
null
import Tetrisblock import Ws2812Painter BLACK = (0, 0, 0) RED = (255, 0, 0) # Coordinate system # ----------> X # | 0/0 widht/0 # | # | # | # v # # Y # # # # 0/height widht/height class Playground: def __init__(self, width, height): self.coordinate_s...
34.407407
101
0.580059
125c5b8b1072531a9d227e4d2fd76fda76c8f593
5,980
py
Python
scripts/dim-reduction/punjabi-series-process-cache.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/dim-reduction/punjabi-series-process-cache.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/dim-reduction/punjabi-series-process-cache.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
import os, sys, glob, re import argparse import numpy as np import pandas as pd #from ultratils.pysonix.scanconvert import Converter from hashlib import sha1 #from sklearn.decomposition import PCA from scipy.ndimage import median_filter #from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as L...
38.089172
115
0.691806
c39878c8c5fb744cb8a20f3eb0a6042cd3e469c6
13,920
py
Python
tests/onegov/activity/test_matching_db.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/activity/test_matching_db.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/activity/test_matching_db.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import random from datetime import date, timedelta from functools import partial from sedate import to_timezone, replace_timezone from onegov.activity.matching import deferred_acceptance_from_database from onegov.activity.matching import PreferAdminChildren from onegov.activity.matching import PreferGroups from oneg...
32.447552
95
0.686063
c3aed0a65a95d1e2f8d11230dfc219e0aae2c904
335
py
Python
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex5/ex5.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex5/ex5.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex5/ex5.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Your code here def finder(files, queries): """ YOUR CODE HERE """ # Your code here return result if __name__ == "__main__": files = [ '/bin/foo', '/bin/bar', '/usr/bin/baz' ] queries = [ "foo", "qux", "baz" ] print(finder(fi...
12.884615
33
0.453731
617936f404dd1f7112c33ed9467c53e2e0b1a907
86,103
py
Python
Packs/Flashpoint/Integrations/Flashpoint/Flashpoint.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Flashpoint/Integrations/Flashpoint/Flashpoint.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Flashpoint/Integrations/Flashpoint/Flashpoint.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * """ IMPORTS """ import re import ipaddress import requests import urllib.parse from typing import Dict, Tuple, List, Any # Disable insecure warnings requests.packages.urllib3.disable_warnings() """ CONSTANTS """ FIRST_FETCH = "3 days" MAX_FETCH = 15 DEFAULT_PAGE_SIZE = 50 MAX_PAGE_S...
35.653416
119
0.591454
9caeb6fa6a4dd3073a40da07dcfa1cb0d4a5b678
1,716
py
Python
tests/data/test_tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/data/test_tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/data/test_tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle 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 appli...
33.647059
77
0.710373
1412f5fb63914548e355eff01288451d31f5e2dc
613
py
Python
Algorithms/Implementation/chocolate_feast.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/chocolate_feast.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/chocolate_feast.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 for _ in range(int(input().strip())): n, c, m = list(map(int, input().strip().split(' '))) if m * c == n: print(m + 1) elif m * c > n: print(n // c) else: # m * c < n: choco = n // c # print(choco) free, leftover = divmod(choco, m) ...
29.190476
56
0.460033
145438fa554ace47374e5118203714d52a8c0df6
50
py
Python
python/python_backup/PRAC_PYTHON/yui.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/yui.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/yui.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
s=5 for i in range(1,7,1): print s s=(s*10)+5
12.5
23
0.54
dce205cdb078ecb4fed62b442ec73c8125976ac5
3,958
py
Python
research/cv/MaskedFaceRecognition/test.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/MaskedFaceRecognition/test.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/MaskedFaceRecognition/test.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.417391
89
0.708439
d34a8860d0a8fbb3119ce83d3caa88cb2707ac4e
1,611
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/11_chapter_06_repetition_task_4_hanoi_towers.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/11_chapter_06_repetition_task_4_hanoi_towers.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/11_chapter_06_repetition_task_4_hanoi_towers.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 11_chapter_06_repetition_task_4_hanoi_towers.py # Project: Kapitel_06_Funktionen # Created Date: Sunday 24.02.2019, 15:09 # Author: Apop85 # ----- # Last Modified: Monday 04.03.2019, 12:27 # ----- # Copyright (c) 2019 Apop85 # This software is published under th...
33.5625
92
0.667908
4cc4a572e1555615d3bfe152bf4dd11f6645a8c1
2,205
py
Python
tests/test_aufabschlagproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_aufabschlagproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_aufabschlagproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.aufabschlagproort import AufAbschlagProOrt, AufAbschlagProOrtSchema from bo4e.com.aufabschlagstaffelproort import AufAbschlagstaffelProOrt from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] class...
34.453125
104
0.5161
981b6cb64d830a05342e33a6e8fb33876ec6422c
2,230
py
Python
website/apps/fileupload/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/fileupload/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/fileupload/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
import json from django.http import HttpResponse from django.views.generic import View, CreateView, DeleteView, ListView from .models import File from .response import JSONResponse, response_mimetype from .serialize import serialize class FileCreateView(CreateView): model = File def form_valid(self, form): ...
28.961039
79
0.6713
1a582f50553344cd344c92b87265938fe47aec68
873
py
Python
doc/examples/writing_benchmarks/pure_numpy.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/writing_benchmarks/pure_numpy.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/writing_benchmarks/pure_numpy.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np def laplace_numpy(image): """Laplace operator in NumPy for 2D images.""" laplacian = ( image[:-2, 1:-1] + image[2:, 1:-1] + image[1:-1, :-2] + image[1:-1, 2:] - 4 * image[1:-1, 1:-1] ) thresh = np.abs(laplacian) > 0.05 return thresh def ...
24.942857
50
0.408935
46e0b1d203332e8dc58f68e72d5fdf5f0c689842
4,547
py
Python
packages/watchmen-meta/src/watchmen_meta/admin/user_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/admin/user_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/admin/user_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List, Optional from watchmen_meta.common import TupleService, TupleShaper from watchmen_model.admin import User, UserRole from watchmen_model.common import DataPage, Pageable, TenantId, UserId from watchmen_storage import ColumnNameLiteral, EntityCriteriaExpression, EntityCriteriaJoint, \ EntityCri...
38.210084
113
0.76512
2001137d55b46dac967607736b6fe7af31d32913
20,748
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/prt/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/prt/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/prt/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
41.746479
202
0.581598
03ee0a64e883dee8e4c99fe61070ec0dd83180b2
10,444
py
Python
kiosk/slackCommands.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
kiosk/slackCommands.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
kiosk/slackCommands.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse from django.conf import settings from slackclient import SlackClient from .models import Produktpalette, Kontostand, Kiosk from profil.models import KioskUser from .queries import readFromDatabase import requests import re @...
36.138408
599
0.696955
459a2f7f91c7b30319ed17f92ffe2f917a7bd5b7
206
py
Python
exercises/de/solution_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importiere die Klasse German from spacy.lang.de import German # Erstelle das nlp-Objekt nlp = German() # Verarbeite einen Text doc = nlp("Liebe Grüße!") # Drucke den Text des Dokuments print(doc.text)
17.166667
32
0.742718
45aba452c689e297d2bb6198fe3b63214d99bb48
388
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem3_3(month, day, year): mon_t = ("","January","February","March","April","May","June","July","August","September","October","November","December") date = mon_t[month]+" "+str(day)+", "+str(year) print(date) #while (1): # mon = int(input("Enter the month in number :")) # day = int(input("Enter the day :"))...
35.272727
123
0.628866
45b5b2cb5a2cddca18c45d7ea5e8738562e5931c
818
py
Python
python/geogpxmerge.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/geogpxmerge.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/geogpxmerge.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import sys import gpxpy.gpx try: file1 = sys.argv[1] file2 = sys.argv[2] except Exception: print("Usage: gpx-merge <file1> <file2>") print("Merge <file2> into <file1> and optionally delete <file2>") sys.exit(1) gpx_file = open(file1) gpx = gpxpy.parse(gpx_file) # Create new track in our GPX: gpx_...
26.387097
122
0.718826
ff56375533d6639b017dc91c0f4e2e2dae92bfd6
8,214
py
Python
GZP_GTO_ArcMap/scripts/SCR_PFLICHT_Felder.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_ArcMap/scripts/SCR_PFLICHT_Felder.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_ArcMap/scripts/SCR_PFLICHT_Felder.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
# -*- coding: utf-8 -*- """ @author: ms.gis, June 2020 Script for ArcGIS GTO for Modul GZP """ ## import arcpy import re import pythonaddins ## ------------------------- # Open progress dialog with pythonaddins.ProgressDialog as dialog: dialog.title = "PRUEFUNG PFLICHTFELDER" dialog.description = "Pruefe ...
47.755814
200
0.650718
ffa3d9546b36b97e75d5120016f7064cc740936a
2,409
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/shapes/debug2shapes.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/shapes/debug2shapes.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/shapes/debug2shapes.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2010-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.ec...
32.12
87
0.575758
926a25064fa75dcba5dec1d68caedd2bee234009
1,626
py
Python
0-notes/job-search/SamplesDSAlgos/data structures/datastructures-stack2.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/SamplesDSAlgos/data structures/datastructures-stack2.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/SamplesDSAlgos/data structures/datastructures-stack2.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import sys sys.path.append('../doubly_linked_list') from doubly_linked_list import DoublyLinkedList # FIFO """ What is the difference between using an array vs. a linked list when implementing a Stack? Major difference is, arrays are index-based data structure and each element of the array ...
28.034483
74
0.609471
a6aef052c889c9a7e9af8d84de402c7c2c515397
621
py
Python
models/hr_employee_medical_ticket.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_medical_ticket.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_medical_ticket.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models class HrEmployeeMedicalTicket(models.Model): """gestion des ticket medical""" _name = 'hr.employee.medical.ticket' _description = "Employee Medical Ticket" date = fields.Datetime(string='Date') name = fields.Many2one(com...
36.529412
79
0.714976
a6e90a6c2bcc91758c47df8bb2d66a1a8537a68c
17,356
py
Python
examples/FlexibleEBNF/grammar_examples/FlexibleEBNFParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
examples/FlexibleEBNF/grammar_examples/FlexibleEBNFParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
examples/FlexibleEBNF/grammar_examples/FlexibleEBNFParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ####################################################################### # # SYMBOLS SECTION - Can be edited. Changes will be preserved. # ####################################################################### import collections from functools import partial import os import sys try: scri...
44.963731
720
0.629581
5bd0e2ec181a4ce3b20f8de334d6c925f0994622
313
py
Python
bbs/__init__.py
MrFu1998/bbs
d14377da098f37cc0ec96762dc407e1650dbcac8
[ "MIT" ]
21
2019-07-09T12:30:12.000Z
2022-03-02T14:49:53.000Z
bbs/__init__.py
MrFu1998/bbs
d14377da098f37cc0ec96762dc407e1650dbcac8
[ "MIT" ]
null
null
null
bbs/__init__.py
MrFu1998/bbs
d14377da098f37cc0ec96762dc407e1650dbcac8
[ "MIT" ]
14
2019-07-13T05:25:05.000Z
2021-05-15T07:57:29.000Z
# -*- coding: utf-8 -*- """ :author: handsome Fu (付贞强) :copyright: © 2019 handsomeFu <mrfu1998@gmail.com> :license: MIT, see LICENSE for more details. """ from flask import Flask, jsonify app = Flask('bbs') @app.route('/') def hello_world(): return jsonify({"code": 200, "msg": "Hello Flask"})
20.866667
55
0.623003
7500668d759aec8d8c56703402c0598c076717fc
44
py
Python
blog/errors.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2019-01-29T15:57:20.000Z
2019-01-29T15:57:20.000Z
blog/errors.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-05-05T19:43:28.000Z
2018-05-05T19:43:28.000Z
blog/errors.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-04-24T09:36:57.000Z
2018-04-24T09:36:57.000Z
class PostNotFound(BaseException): pass
14.666667
34
0.772727
1b0e6d934a3530cd04c61ce1df4c13ae94debc9c
847
py
Python
1161-maximum-level-sum-of-a-binary-tree/1161-maximum-level-sum-of-a-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1161-maximum-level-sum-of-a-binary-tree/1161-maximum-level-sum-of-a-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1161-maximum-level-sum-of-a-binary-tree/1161-maximum-level-sum-of-a-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def maxLevelSum(self, root: Optional[TreeNode]) -> int: stack=[(root,0)] prev_level = 0 ...
33.88
59
0.533648
945b2fe1912cb7ae8a637db4e0b541f0d3b1f73f
1,517
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/74a1/day4.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/74a1/day4.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/74a1/day4.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Problem 1: Find the Duplicate Number # Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate number, find the duplicate one. def findDuplicate(nums): """ :type nu...
31.604167
223
0.562953
ca2f880cc94dc67edc3113e77156621f40ba59ee
643
py
Python
SleekSecurity/layers/plugins/fingerprint/cms/wordpress.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/cms/wordpress.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/cms/wordpress.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt' from re import search,I def wordpress(headers,content): _ = False _ |= search(r"\<meta name\=\"generato...
37.823529
104
0.645412
edc24bd8deba4daea152f4a4179dc82ac5f616ec
2,313
py
Python
DSTN/Crackme 2/Solution/F9/setAsStructure.py
apuromafo/RCE_Lab
f74b49030e96e6b74ce6047401c7795e0a4e9669
[ "MIT" ]
43
2018-01-19T03:20:49.000Z
2022-01-03T15:30:43.000Z
DSTN/Crackme 2/Solution/F9/setAsStructure.py
apuromafo/RCE_Lab
f74b49030e96e6b74ce6047401c7795e0a4e9669
[ "MIT" ]
1
2018-05-28T13:34:49.000Z
2018-05-28T13:34:49.000Z
DSTN/Crackme 2/Solution/F9/setAsStructure.py
apuromafo/RCE_Lab
f74b49030e96e6b74ce6047401c7795e0a4e9669
[ "MIT" ]
18
2018-05-04T23:03:27.000Z
2021-03-08T20:29:45.000Z
#-*- coding: utf-8 -*- import os import sys import idc import idaapi STRUCT_NAME = "gusStructure1" FIRST_ADDRESS = 0x00D42040 DIFFERENCES = 0x42 def makeStruct(strname = ""): ''' Función para crear la estructura de Gustavo en IDA con idc. @param strname: nombre de la estructura @return: 0-todo bien,...
27.211765
71
0.661911
6125bc416b68b3ba2fe40af6a0dda5626ac744e8
15,385
py
Python
python/sxlLexer.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python/sxlLexer.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
python/sxlLexer.py
nussbrot/code-exchange
3427798c4391e5f9c17cd19399ac56997c091ee2
[ "MIT" ]
null
null
null
# Generated from sxl.g4 by ANTLR 4.7 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\63") buf.write("\u0184\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\...
57.193309
103
0.555606
1e651feadd86811f36bb05e285c7b04c6ff7cad6
3,146
py
Python
official/cv/maskrcnn/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/maskrcnn/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/maskrcnn/ascend310_quant_infer/export_bin.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...
40.333333
88
0.658296
bf65962d5cd7cd293b16a8bbe975192856769e9d
7,269
py
Python
test/test_npu/test_binary_cross_entropy_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_binary_cross_entropy_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_binary_cross_entropy_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # 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/licen...
46.006329
145
0.635163
bf8c87dc4782ba8f81b87d8018f44aff43b044ff
2,424
py
Python
novel/crawler/novelcrawler.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
novel/crawler/novelcrawler.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
novel/crawler/novelcrawler.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 -*- import os import sys import imp imp.reload(sys) sys.setdefaultencoding('utf8') import urllib.parse import requests from bs4 import BeautifulSoup headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.31...
32.32
134
0.631188
44a4062ec7f23124db460b9a27e7842c60aea16b
141
py
Python
books/PythonAutomate/file_organize/creating_zip_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/file_organize/creating_zip_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/file_organize/creating_zip_files.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import zipfile new_zip = zipfile.ZipFile("new.zip", "w") new_zip.write("spam.txt", compress_type=zipfile.ZIP_DEFLATED) new_zip.close()
23.5
62
0.737589
ec71fd9461e4ba7b7d169e53ef7e16cc19b7f3bd
4,362
py
Python
src/main/apps/authentication/models.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/authentication/models.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/authentication/models.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import uuid from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.db import models from django.utils import timezone from django.utils.translation import gettext_lazy as _ from rest_framework.authtoken.models import Token from typing import ( Generi...
38.263158
109
0.669876
bd7ea33cb14cbc1cb9467e36173309688ee1cf30
1,166
py
Python
ciphey/basemods/Decoders/tap_code.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
1
2020-10-05T11:25:18.000Z
2020-10-05T11:25:18.000Z
ciphey/basemods/Decoders/tap_code.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
1
2021-04-21T06:02:32.000Z
2021-04-21T06:02:32.000Z
ciphey/basemods/Decoders/tap_code.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
null
null
null
# by https://github.com/RustyDucky and https://github.com/lukasgabriel from typing import Optional, Dict, List from ciphey.iface import Config, ParamSpec, T, U, Decoder, registry, Translation @registry.register class tap_code(Decoder[str, str]): def decode(self, ctext: T) -> Optional[U]: try: ...
27.761905
82
0.584906
bd9623924c3f21083d105d1e5f7273d001c8ccd7
140
py
Python
src/onegov/org/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org.theme.org_theme import OrgTheme from onegov.org.theme.org_theme import user_options __all__ = ['OrgTheme', 'user_options']
28
51
0.807143
97acf8069be67fb89a690c60705f5dd830e5bcab
238,649
py
Python
monitoring/zabbix/zabbix_collections/zabbix-cli/zabbix_cli/cli.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
monitoring/zabbix/zabbix_collections/zabbix-cli/zabbix_cli/cli.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
monitoring/zabbix/zabbix_collections/zabbix-cli/zabbix_cli/cli.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
# Authors: # rafael@e-mc2.net / https://e-mc2.net/ # # Copyright (c) 2014-2017 USIT-University of Oslo # # This file is part of Zabbix-CLI # https://github.com/usit-gd/zabbix-cli # # Zabbix-CLI is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
34.372606
203
0.470712
c1fcdea10591fae58672e859c557364bbea22620
16,693
py
Python
Exercises/university_db.py
leodrivera/Infnet
f3907de284cf4c6c5a00aff6b2aa5dfd8a3dc343
[ "MIT" ]
null
null
null
Exercises/university_db.py
leodrivera/Infnet
f3907de284cf4c6c5a00aff6b2aa5dfd8a3dc343
[ "MIT" ]
null
null
null
Exercises/university_db.py
leodrivera/Infnet
f3907de284cf4c6c5a00aff6b2aa5dfd8a3dc343
[ "MIT" ]
null
null
null
# Modelar um sistema de gerenciamento de banco de dados de alunos para Universidades Com as seguintes considerações: # Você deverá cadastrar as seguintes informações de cada profissional da Universidade (Alunos e Professores): # Primeiro nome; Sobrenome; Data de nascimento ; email do aluno # Cada aluno poderá se matri...
49.097059
184
0.581801
e721c28fed017777ae3684d363a84a6319615d13
12,877
py
Python
tests/addons/res2res/test_json_sort.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/res2res/test_json_sort.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/res2res/test_json_sort.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import datetime import json import pytest from owlmixin.util import load_yaml from jumeaux.addons.res2res.json_sort import Executor from jumeaux.models import Res2ResAddOnPayload, Response TEXT = json.dumps( { "int1": 1, "str1": "1", "dict1": {...
34.991848
100
0.282985
e729349c57eed15cbd4787e4f5779e59db8d2955
1,034
py
Python
Data Structures/Python/Trees/height-of-binary-tree.py
anberlin-mudasir/hakerrank
7ea076bf959f942dfb7a97ba2dc8074147b610be
[ "MIT" ]
null
null
null
Data Structures/Python/Trees/height-of-binary-tree.py
anberlin-mudasir/hakerrank
7ea076bf959f942dfb7a97ba2dc8074147b610be
[ "MIT" ]
null
null
null
Data Structures/Python/Trees/height-of-binary-tree.py
anberlin-mudasir/hakerrank
7ea076bf959f942dfb7a97ba2dc8074147b610be
[ "MIT" ]
null
null
null
class BinarySearchTree: def __init__(self): self.root = None def create(self, val): if self.root == None: self.root = Node(val) else: current = self.root while True: if val < current.info: if current.le...
22.478261
61
0.430368
99d0f3e3c093d852a38f97dcaf11e93807acad50
36
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/81_como_criar_modulos/outro.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/81_como_criar_modulos/outro.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/81_como_criar_modulos/outro.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
def fala_oi(): return 'Pedro'
7.2
18
0.583333
415f9f598efff1583ca888c239a4400b76b7df48
1,723
py
Python
python/en/archive/books/jump2python/j2p-02_6-set.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-02_6-set.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-02_6-set.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ j2p-02_6-set.py p.91, 집합 자료형 집합 (set)의 2가지 특징 1. 중복을 허용하지 않는다. 2. 순서가 없다. (Unordered) """ #%%##################### # 집합은 어떻게 만들까? # ######################## s1 = set( [1,2,3] ) print(s1) #{1, 2, 3} s2 = set('Hello') print(s2) #{'o', 'l', 'H', 'e'} #%%########### ...
15.807339
44
0.343587
41c325e8cf4a801cc036a5a6d22549253a48d087
1,552
py
Python
2018/01/slingshot-sketch-20171206/custom_filters.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2018/01/slingshot-sketch-20171206/custom_filters.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2018/01/slingshot-sketch-20171206/custom_filters.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
from jinja2._compat import string_types from jinja2.filters import environmentfilter # Backport of `make_attrgetter` from a more recent version of Jinja that # adds the handy `postprocess` argument def make_attrgetter(environment, attribute, postprocess=None): """Returns a callable that looks up the given attribu...
28.740741
80
0.670103
d86337ef8c239fa3d73a8043f3d761e2d09aac85
968
py
Python
setup.py
jakubroztocil/geotagger
fa79945e88facafadc29090a991abe95f57e7ad5
[ "MIT" ]
26
2017-03-14T01:20:12.000Z
2021-11-30T20:37:10.000Z
geotagger/setup.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2017-06-25T22:08:04.000Z
2018-05-26T20:10:06.000Z
setup.py
jakubroztocil/geotagger
fa79945e88facafadc29090a991abe95f57e7ad5
[ "MIT" ]
10
2017-04-18T13:18:15.000Z
2020-04-27T11:50:26.000Z
import codecs from setuptools import setup, find_packages from geotagger import __version__ def long_description(): with codecs.open('README.rst', encoding='utf8') as f: return f.read() def install_requires(): with codecs.open('requirements.txt', encoding='utf8') as f: reqs = f.read() ...
24.820513
78
0.678719
d8bf6262ac312b96438a7c389ab47b7dea97aa8a
3,272
py
Python
chillow/view/console_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/view/console_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/view/console_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from tabulate import tabulate from termcolor import colored from chillow.model.action import Action from chillow.model.game import Game from chillow.view.view import View class ConsoleView(View): """Uses the console as an UI and every output goes there.""" def __init__(self): """Creates a new consol...
35.956044
115
0.550428
d8f54fa5023b577ec12db0051a96b1c38c2bc0bc
137
py
Python
Curso_Python/Secao5-modulos-uteis/130_enviando_emails/dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/130_enviando_emails/dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/130_enviando_emails/dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
my_email = 'pedrodepaula211296@gmail.com' my_password = 'Zwopiate89P' # https://myaccount.google.com/u/3/lesssecureapps?gar=1 desativar
27.4
65
0.788321
995e362a96c109c18171153f5d11e0f1d5f585b4
700
py
Python
tests/test_api.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
tests/test_api.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
tests/test_api.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from projects.api.main import app, parse_args class TestApi(TestCase): def test_parse_args(self): parser = parse_args([]) self.assertEqual(parser.port, 8080) self.assertFalse(parser.enable_cors) parser = parse_args(["--enable...
28
64
0.612857
5c68937aed0c2b358bf75566970a8d8b963dbecb
423
py
Python
src/gvz/migrations/0013_administrativedivision_office_name.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
7
2021-04-24T19:11:15.000Z
2021-10-30T12:59:16.000Z
src/gvz/migrations/0013_administrativedivision_office_name.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
10
2021-04-25T10:25:12.000Z
2021-04-26T17:55:20.000Z
src/gvz/migrations/0013_administrativedivision_office_name.py
Integreat/gemeindeverzeichnis-django
0089b97ea02b4741263c37357260c497b66a306d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-04-26 14:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gvz', '0012_auto_20210425_1611'), ] operations = [ migrations.AddField( model_name='administrativedivision', name='off...
22.263158
74
0.621749
5caa89276846b0bc3809c42dd9548468599e5263
4,692
py
Python
main.py
grishatop1/recle
ef9b3dfec61145c60b38a32ca2ebc5134a63763e
[ "MIT" ]
null
null
null
main.py
grishatop1/recle
ef9b3dfec61145c60b38a32ca2ebc5134a63763e
[ "MIT" ]
null
null
null
main.py
grishatop1/recle
ef9b3dfec61145c60b38a32ca2ebc5134a63763e
[ "MIT" ]
null
null
null
from flask import Flask, render_template, url_for from flask import request, redirect, send_from_directory import os import json import hashlib import random import datetime from apscheduler.schedulers.background import BackgroundScheduler class WordManager: def __init__(self): self.words = json.load(open(...
31.918367
88
0.605499
5cc7fc1c73288857e9e5f8f75688010f3c57fd04
1,017
py
Python
invert.py
JugendForscht-CoLoS/SunDetection-NeuralNetwork
139bcc314cf6b5b84a82b08fda8b1e4455f7cf93
[ "MIT" ]
4
2021-02-26T15:47:28.000Z
2021-03-04T16:46:00.000Z
invert.py
JugendForscht-CoLoS/SunDetection-NeuralNetwork
139bcc314cf6b5b84a82b08fda8b1e4455f7cf93
[ "MIT" ]
null
null
null
invert.py
JugendForscht-CoLoS/SunDetection-NeuralNetwork
139bcc314cf6b5b84a82b08fda8b1e4455f7cf93
[ "MIT" ]
1
2021-02-24T13:01:21.000Z
2021-02-24T13:01:21.000Z
#Testdatei, um Bilder zu invertieren #Mit den invertierten Bildern soll geschaut werden, wie sie sich auf das Training des neuronalen Netzes auswirken import tensorflow as tf import numpy as np import matplotlib.pyplot as plt P_SIZE = np.random.randint(256) ones = np.ones((P_SIZE, P_SIZE, 1)) rand = np.rou...
30.818182
114
0.711898
5ce744837c290e385ba6cb3f56f11d25a17f0ede
1,491
py
Python
src/bo4e/bo/buendelvertrag.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/buendelvertrag.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/buendelvertrag.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Buendelvertrag class and corresponding marshmallow schema for de-/serialization """ from typing import List import attr from marshmallow import fields from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema from bo4e.bo.vertrag import Vertrag, VertragSchema from bo4e.enum.botyp impo...
32.413043
182
0.7666
7a4e88e4a4b0301b8fa3f2ae82baab6ca5edec92
858
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/more_on_list.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/more_on_list.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/more_on_list.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
################################### # Mutation vs. assignment ################ # Look alike, but different a = [4, 5, 6] b = [4, 5, 6] print "Original a and b:", a, b print "Are they same thing?", a is b a[1] = 20 print "New a and b:", a, b print ################ # Aliased c = [4, 5, 6] d = c print "Original c an...
13.2
36
0.515152
8f848778787500fb869a52312b6d1009de5ba142
536
py
Python
983-minimum-cost-for-tickets/983-minimum-cost-for-tickets.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
983-minimum-cost-for-tickets/983-minimum-cost-for-tickets.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
983-minimum-cost-for-tickets/983-minimum-cost-for-tickets.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def mincostTickets(self, days: List[int], costs: List[int]) -> int: dp=[min(costs)] for day in days[1:]: cost1 = dp[-1] + costs[0] week = int(next(x for x, val in enumerate(days) if val >= day-6)) mth = int(next(x for x, val in enumerate(days) if v...
48.727273
77
0.533582
8f9a0e0925bf93351791bbbca7846c46f1a47094
6,021
py
Python
Gundlagen IT-Hardware/Aufgabe9.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
2
2021-11-16T22:53:25.000Z
2021-11-17T12:30:49.000Z
Gundlagen IT-Hardware/Aufgabe9.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-02-23T18:56:51.000Z
2022-02-23T19:09:20.000Z
Gundlagen IT-Hardware/Aufgabe9.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-01-24T16:54:10.000Z
2022-01-24T16:54:10.000Z
import time import explorerhat as hat import RPi.GPIO as GPIO # These lines configure the PWM pin for pulse width modulation # You don't need to make any changes to these lines GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) buzzer = GPIO.PWM(18, 400) ##################################### # Here we define some param...
31.52356
102
0.641754
8f2d3bea13569f9e9e6a4bcd7f898a69edb2dd1b
3,124
py
Python
application.py
scaraclette/flask-javascript-ajax
50829cb78094c10bc8dca57ba6db17434cd165c5
[ "MIT" ]
null
null
null
application.py
scaraclette/flask-javascript-ajax
50829cb78094c10bc8dca57ba6db17434cd165c5
[ "MIT" ]
1
2019-05-19T20:14:42.000Z
2019-05-19T20:14:42.000Z
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__) # Variables stored in Flask memory currentInput = "" 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":["i...
35.908046
170
0.648848
8566e1d242cedb77f3b2b53e055e33a49d880860
2,706
py
Python
Tools/cpanel.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Tools/cpanel.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Tools/cpanel.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# uncompyle6 version 2.11.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.18 (default, Apr 20 2020, 20:30:41) # [GCC 9.3.0] # Embedded file name: Tools\cpanel.py import requests def Check(domain, user, password): if domain.startswith('http://'): domain = domain.replace('http://', '') eli...
47.473684
105
0.533259
a4483f4e92651adc383fdf63f02176006ae2f4a7
168
py
Python
nz_django/day1/url_name_demo/cms/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day1/url_name_demo/cms/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day1/url_name_demo/cms/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.urls import path from . import views app_name = 'cms' urlpatterns = [ path('',views.index,name='index'), path('signin/',views.login,name='login') ]
21
44
0.672619
f101be0997abb565aa9cf564d098670b4bf16c6b
210
py
Python
exercises/en/solution_01_02_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/solution_01_02_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/solution_01_02_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Import spaCy import spacy # Create the Spanish nlp object nlp = spacy.blank("es") # Process a text (this is Spanish for: "How are you?") doc = nlp("¿Cómo estás?") # Print the document text print(doc.text)
17.5
54
0.695238
2d0933899e8a62945004a9a3df5910526b5629b1
537
py
Python
30-Days-of-Code/Day11-2Darrays.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
5
2019-03-09T22:44:01.000Z
2021-09-14T00:11:38.000Z
30-Days-of-Code/Day11-2Darrays.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
4
2018-08-16T09:39:47.000Z
2018-09-14T17:37:07.000Z
30-Days-of-Code/Day11-2Darrays.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
1
2020-06-01T23:38:35.000Z
2020-06-01T23:38:35.000Z
# !/bin/python # https://www.hackerrank.com/challenges/30-2d-arrays import math import os import random import re import sys def hg(arr, r, c): s = 0 - arr[r + 1][c] - arr[r + 1][c + 2] for i in xrange(3): for j in xrange(3): s += arr[r + i][c + j] return s if __name__ == '__main__':...
18.517241
58
0.52514
700a227ea9a7c6d532f7b73d1323aaa9c52a8c9e
906
py
Python
IF11C/ITT/Codes/pincontrol.py
Semoxeaa/sjsaueressig.github.io
55f81360e1285b46bb67b89d16060479be297489
[ "MIT" ]
1
2021-12-21T09:05:22.000Z
2021-12-21T09:05:22.000Z
IF11C/ITT/Codes/pincontrol.py
Semoxeaa/sjsaueressig.github.io
55f81360e1285b46bb67b89d16060479be297489
[ "MIT" ]
null
null
null
IF11C/ITT/Codes/pincontrol.py
Semoxeaa/sjsaueressig.github.io
55f81360e1285b46bb67b89d16060479be297489
[ "MIT" ]
null
null
null
# import modules import time import RPi.GPIO as GPIO # setup pins GPIO.setmode(GPIO.BOARD) # GPIO.setwarnings(False) Out = [8, 10, 16, 18] In = [3, 5, 7, 11] ChangeFlagOld = [0, 0, 0, 0] ChangeFlagNew = [0, 0, 0, 0] GPIO.setup(32, GPIO.OUT) for x in In: GPIO.setup(x, GPIO.IN) for y in Out: GPIO.setup(y, GPIO....
23.230769
48
0.591611
7022bd50e50f7929ff0feaceba1e70793beb1bbd
3,041
py
Python
official/cv/ADNet/src/models/CustomizedCell.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/src/models/CustomizedCell.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/src/models/CustomizedCell.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...
38.493671
94
0.661953
562c718daa153c84c7dac8f14ab50ce930cd8c47
7,747
py
Python
tool_discovery/tool_discoverer/tool_discoverer/biotools_parse.py
FAIRplus/WP3_FAIR_tooling
3c6470c4f5fc3d686b4571711bb7ed6f849a9622
[ "Apache-2.0" ]
null
null
null
tool_discovery/tool_discoverer/tool_discoverer/biotools_parse.py
FAIRplus/WP3_FAIR_tooling
3c6470c4f5fc3d686b4571711bb7ed6f849a9622
[ "Apache-2.0" ]
13
2021-06-01T10:07:02.000Z
2022-03-24T12:16:26.000Z
tool_discovery/tool_discoverer/tool_discoverer/biotools_parse.py
FAIRplus/WP3_FAIR_tooling
3c6470c4f5fc3d686b4571711bb7ed6f849a9622
[ "Apache-2.0" ]
null
null
null
global webTypes webTypes = ['Web API', 'Web application', 'Web service', 'Suite', 'Workbench', 'Database portal'] def getFormats(instances): inputs = [a.input for a in instances] inputs_ = [a for a in inputs] inputsNames = [] nonSFormats = ['txt', 'text', 'csv', 'tsv', 'tabular', 'xml', 'json', 'nucl...
34.896396
131
0.532077
8ea98ffd9358b3c7daa3b49b528ad83bfbd97f45
431
py
Python
Boot2Root/hackthebox/Falafet/scripts/sql-inject.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Falafet/scripts/sql-inject.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Falafet/scripts/sql-inject.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
import requests chars = [0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f'] def GetSQL(i,c): return "admin' and substr(password,%s,1) = '%s'-- -" % (i,c) for i in range(1,33): for c in chars: injection = GetSQL(i,c) payload = {'username':injection,'password':'randompass'} r = requests.post('http://10.10.10.73/logi...
26.9375
67
0.610209
79570cf0ea624170568cc1004eef343cc2c97d78
1,241
py
Python
Python/Searching/2/binary_search.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
5
2017-08-03T06:33:49.000Z
2021-08-06T13:20:57.000Z
Python/Searching/2/binary_search.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
null
null
null
Python/Searching/2/binary_search.py
Tikam02/Data_Structure_Algorithms
7c17f744975a72fa42f0f3f892c0b7e041cdef0c
[ "MIT" ]
6
2017-04-27T13:30:49.000Z
2020-11-01T20:28:55.000Z
#!/usr/bin/env python __author__ = "bt3" def binary_search(array, item, hi=None, lo=0): ''' >>> binary_search([2,3,5,6,8,10,15,23], 15) 6 >>> binary_search([2,3,5,6,8,10,15,23], 4) False >>> binary_search([1,3,4,5,7,8 ,10,12,23], 10) 6 >>> binary_search([1,3,4,5,7,8 ,10,12,23], 22) ...
18.522388
58
0.518936
ebdf8d367c089ce810c252c23af0714e9737c64a
500
py
Python
server/apps/movie/serializers.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/movie/serializers.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/movie/serializers.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-04-19 21:49 # @Author : Mayandev # @Site : https://github.com/Mayandev/ # @File : serializers.py # @Software: PyCharm from rest_framework import serializers from .models import Movie, Genre class MovieSerializer(serializers.ModelSerializer): ...
21.73913
51
0.66
69061d645e64a02d7d3abecd0996da210c62bf99
1,313
py
Python
jocker/backends/ezjail.py
omab/jocker
44a79d4c12bb4df9c3333da75eb34964de64ad20
[ "BSD-2-Clause" ]
3
2017-10-18T08:11:58.000Z
2019-07-31T23:53:37.000Z
jocker/backends/ezjail.py
omab/jocker
44a79d4c12bb4df9c3333da75eb34964de64ad20
[ "BSD-2-Clause" ]
null
null
null
jocker/backends/ezjail.py
omab/jocker
44a79d4c12bb4df9c3333da75eb34964de64ad20
[ "BSD-2-Clause" ]
null
null
null
""" ezjail wrapper """ import os from ..utils import run_command from .jail import JailBackend class EZJailBackend(JailBackend): """EZJail backend""" JAILS_DIR = os.environ.get('JOCKER_JAILS_BASE_DIR', '/usr/jails/') BASE_DIR = os.environ.get('JOCKER_BASE_DIR', '/usr/jails/flavours/') DEFAULT_NETWORK...
28.543478
79
0.582635
695e9d604e5acedb92520938db01522bb4f53939
1,640
py
Python
src/test/tests/hybrid/merge_tree.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/merge_tree.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/merge_tree.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: merge_tree.py # # # Programmer: Cyrus Harrison # Date: Friday October 28, 2016 # # Modifiations: # # ---------------------------------------------------------------------------- test_dbs = { "r...
25.625
85
0.539024