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
46b53a310f226f523dc77dad0185eea95ea1fa97
1,017
py
Python
Certification/Problem Solving (Basic)/Usernames Changes/possible_changes.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Certification/Problem Solving (Basic)/Usernames Changes/possible_changes.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Certification/Problem Solving (Basic)/Usernames Changes/possible_changes.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'possibleChanges' function below. # # The function is expected to return a STRING_ARRAY. # The function accepts STRING_ARRAY usernames as parameter. # def possibleChanges(usernames): # Write your code here n = len(userna...
19.941176
59
0.587021
7df53c52181bb1c42f33a610283388dc28501ac2
5,503
py
Python
oldp/apps/references/management/commands/assign_references.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/references/management/commands/assign_references.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/references/management/commands/assign_references.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import json import logging from django.core.management import BaseCommand from oldp.apps.cases.models import Case from oldp.apps.laws.models import LawBook, Law from oldp.apps.references.models import LawReference, CaseReference # Get an instance of a logger logger = logging.getLogger(__name__) class Command(BaseC...
36.686667
129
0.587316
81fb63cef729b3e7b08424dbe870dace74aeee34
22,873
py
Python
src/krotov/parallelization.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
49
2018-11-07T06:43:33.000Z
2022-03-18T20:53:06.000Z
src/krotov/parallelization.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
94
2018-11-06T20:15:04.000Z
2022-01-06T09:06:15.000Z
src/krotov/parallelization.py
qucontrol/krotov
9f9a22336c433dc3a37637ce8cc8324df4290b46
[ "BSD-3-Clause" ]
20
2018-11-06T20:03:11.000Z
2022-03-12T05:29:21.000Z
r"""Support routines for running the optimization in parallel across the objectives. The time-propagation that is the main numerical effort in an optimization with Krotov's method can naturally be performed in parallel for the different objectives. There are three time-propagations that happen inside :func:`.optimize_...
37.806612
79
0.681284
c3473bd63f637d714e32d51df79709de69637280
5,848
py
Python
tests/test_import.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
tests/test_import.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
tests/test_import.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
import modelindex from modelindex import Metadata from modelindex.models.Collection import Collection from modelindex.models.CollectionList import CollectionList from modelindex.models.Model import Model from modelindex.models.ModelList import ModelList from modelindex.models.Result import Result from modelindex.models...
31.272727
89
0.681259
7d55baea7b50810b2b3a989d2d606e3f640a67bd
1,325
py
Python
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/factor_aggregate_value_not_in_range.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/factor_aggregate_value_not_in_range.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/factor_aggregate_value_not_in_range.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Tuple from watchmen_data_kernel.storage import TopicDataService from watchmen_model.dqc import MonitorRule from watchmen_storage import EntityColumnAggregateArithmetic, EntityStraightAggregateColumn from watchmen_utilities import is_decimal from .data_service_utils impo...
34.868421
91
0.82566
7d5bbb753bf814106f7a3aacc882f8129d24b0ef
1,161
py
Python
Packs/ForwardXSOARAuditLogsToSplunkHEC/Scripts/ForwardAuditLogsToSplunkHEC/ForwardAuditLogsToSplunkHEC.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ForwardXSOARAuditLogsToSplunkHEC/Scripts/ForwardAuditLogsToSplunkHEC/ForwardAuditLogsToSplunkHEC.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ForwardXSOARAuditLogsToSplunkHEC/Scripts/ForwardAuditLogsToSplunkHEC/ForwardAuditLogsToSplunkHEC.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from datetime import datetime import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def get_audit_logs(timeframe: int) -> Dict: timefrom = datetime.now() - timedelta(hours=int(timeframe)) timestring = timefrom.strftime('%Y-%m-%dT%H:%M:%S') parameters = {"uri": "/setti...
33.171429
75
0.66236
7da4aff0f1910afe426dd1d120dd67ef87ae6d4d
896
py
Python
nz_django/day2/db_demo2_curd/book/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day2/db_demo2_curd/book/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day2/db_demo2_curd/book/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render from django.http import HttpResponse from .models import Book # Create your views here. from datetime import datetime def index(request): #1.添加一条数据到数据库中 # book = Book(name='程序员那些事',author='子文君',price=123.4) # book.save() # books = Book.objects.all() # for book in...
23.578947
57
0.61942
481464e01ca80639132234afb02f1f14ddfa06e1
3,475
py
Python
Packs/PopularCybersecurityNews/Integrations/PopularNews/PopularNews.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PopularCybersecurityNews/Integrations/PopularNews/PopularNews.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PopularCybersecurityNews/Integrations/PopularNews/PopularNews.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 import requests from bs4 import BeautifulSoup from CommonServerPython import * # noqa: F401 TABLE = [] VERIFY = demisto.params()['insecure'] def scrape_kos(): articles = [] links = [] dates = [] response = requests.get("https://krebsonsecurity.com/", verif...
30.217391
100
0.616403
73b5f80bd4cabc957fdef5ebf82bd0e6ed15607a
1,094
py
Python
Python/B5-Schere-Stein-Papier/Schere-Stein-Papier_Erweiterung.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Python/B5-Schere-Stein-Papier/Schere-Stein-Papier_Erweiterung.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Python/B5-Schere-Stein-Papier/Schere-Stein-Papier_Erweiterung.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Zufall = 0 def on_forever(): global Zufall if input.button_is_pressed(Button.A): basic.clear_screen() Zufall = randint(1, 4) elif False: pass else: if Zufall == 1: basic.show_leds(""" # . . . # . # . # . ...
24.311111
42
0.212066
73f93f3a9bad7f38ff0d3627d43bf0993abc6f1b
2,779
py
Python
test/test_npu/test_network_ops/test_max_pool2d_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_network_ops/test_max_pool2d_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_network_ops/test_max_pool2d_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/lice...
40.867647
121
0.687657
f720ba72a3c86311008ec04f4371a49d7784b17c
433
py
Python
xlwt/__init__.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
292
2015-09-12T14:19:32.000Z
2022-02-19T08:46:12.000Z
xlwt/__init__.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
4
2015-11-18T08:10:14.000Z
2017-03-25T13:32:20.000Z
xlwt/__init__.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
131
2015-09-14T06:32:03.000Z
2021-06-11T02:31:38.000Z
# -*- coding: windows-1252 -*- __VERSION__ = '0.7.4' import sys if sys.version_info[:2] < (2, 3): print >> sys.stderr, "Sorry, xlwt requires Python 2.3 or later" sys.exit(1) from Workbook import Workbook from Worksheet import Worksheet from Row import Row from Column import Column from Formatting import Font...
25.470588
68
0.741339
f79b0cddd24f03cbb0c95c8b3181a88910d39b2b
14
py
Python
Implementation/vibrostudies-backend/gunicorn.conf.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
Implementation/vibrostudies-backend/gunicorn.conf.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
Implementation/vibrostudies-backend/gunicorn.conf.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
bind = "0:443"
14
14
0.571429
e3c9b36b50377d67f6289e94ebc723b0ecde3c34
2,918
py
Python
deploy/deployctl/subcommands/blog_deployment.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
deploy/deployctl/subcommands/blog_deployment.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
deploy/deployctl/subcommands/blog_deployment.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import argparse import os import sys import typing from deployctl.config import config from deployctl.shell import kubectl, get_most_recent_tag, image_exists KUSTOMIZATION_TEMPLATE = """--- apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization bases: - ../base images: - name: gnomad-blog newName: {...
31.042553
103
0.703221
54c0161ad743b4ae64f706117fea3be6316f5f02
1,748
py
Python
Notebooks/NN/zh-cn/Util.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
Notebooks/NN/zh-cn/Util.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
Notebooks/NN/zh-cn/Util.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import numpy as np import matplotlib.pyplot as plt from math import pi def gen_five_clusters(size=200): x = np.random.randn(size) * 2 y = np.random.randn(size) * 2 z = np.full(size, -1) mask1, mask2 = x + y >= 1, x + y >= -1 mask3, mask4 = x - y >= 1, x - y >= -1 z[mask1 & ~mask4] = 0 z[ma...
31.214286
89
0.590389
b78c62a3424be1076ed2412277465d4abfd89efd
22,885
py
Python
abfahrt/Input.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/Input.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/Input.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
""" This is Input for parsing and reading the input from stdin or a file or generator """ from typing import List from typing import Tuple # This module provides runtime support for type hints. The most fundamental support consists of the types Any, Union, Callable, TypeVar, and Generic. For a full specification, p...
34.621785
301
0.544636
b7cdf6f8de8ca6a02ffdfad6df8f1e89a08fb994
13,453
py
Python
lib/wordconstruct.py
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
16
2015-09-30T13:45:07.000Z
2022-01-31T16:45:50.000Z
lib/wordconstruct.py
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
5
2015-09-16T13:44:08.000Z
2018-02-06T11:24:59.000Z
lib/wordconstruct.py
orithena/moerderspiel
7a11598cd80f26824376207805d3a937b9c1d831
[ "MIT" ]
4
2015-05-28T17:39:55.000Z
2022-01-29T01:27:42.000Z
#!/usr/bin/python import random, fileinput, re class WordGenerator: """ Generates a random word of arbitrary length that could be memorized far more easily than a completely random word. Give this class a text file to read in and it will derive it's matrix of transition probabilities from any string it cou...
49.459559
89
0.384152
4d52231a9cfd9d4b49a785dada7af696afbd92d2
53
py
Python
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .pipeline_context import RuntimePipelineContext
26.5
52
0.90566
6723887f6d0f6f955a799b99fa9cd6ee99c58376
564
py
Python
5_kombinationen/loopIfElse/RandomPrint.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_kombinationen/loopIfElse/RandomPrint.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
5_kombinationen/loopIfElse/RandomPrint.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Random Printmuster - Schaffst du es z.B. diesen Output auf der Konsole auszugeben? *** %%% *** %%% %%% *** %%% *** *** %%% *** %%% %%% *** %%% *** - Eine (grössere) Herausforderung: Pyramiden zu generieren. * * * * * * * * * * * * * * * """ newPage(300, 300) # Pattern for i in range(4): randomNumber...
14.842105
63
0.402482
2273a37db95e1e3cc5e5cde1749553b8ee35396d
1,568
py
Python
scripts/fuzzing/test/process_mock.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/fuzzing/test/process_mock.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/fuzzing/test/process_mock.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python # 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. from lib.process import Process class MockProcess(Process): """A mock for process creation and execution. Instead of actua...
26.133333
72
0.591199
58f4e0e7ed5252dd85f9d4323d536d7899f8f5ae
400
py
Python
SchoolSampleProject/SchoolApp/serializers.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/serializers.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/serializers.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
from rest_framework import serializers from SchoolApp.models import Schools, Students class SchoolSerializer(serializers.ModelSerializer): class Meta: model=Schools fields=('school_id', 'school_name', 'max_student') class StudentSerializer(serializers.ModelSerializer): class Meta: mode...
33.333333
69
0.735
bee194d846c14133e4251846ecd938713e0babf7
2,471
py
Python
verto/processors/ImageTagBlockProcessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/ImageTagBlockProcessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/ImageTagBlockProcessor.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor from verto.utils.image_file_name_components import image_file_name_components import re class ImageTagBlockProcessor(GenericTagBlockProcessor): ''' Searches a Document for image tags e.g. {image file-path="<condition>"} adding any ...
37.439394
113
0.651558
1822d1b6913c788b626c488959a69896205a10b1
3,682
py
Python
taskmanager/db.py
pawelwalat/PWtaskmanager
bd14a0ebc28ae093ef02520627aabb435dd7935d
[ "MIT" ]
null
null
null
taskmanager/db.py
pawelwalat/PWtaskmanager
bd14a0ebc28ae093ef02520627aabb435dd7935d
[ "MIT" ]
null
null
null
taskmanager/db.py
pawelwalat/PWtaskmanager
bd14a0ebc28ae093ef02520627aabb435dd7935d
[ "MIT" ]
null
null
null
import sqlite3 import json import prettytable import os MIGRATION_FILE = os.path.dirname(__file__)+'/dbmigrations.json' sqls = {'check_migrations_exists': "SELECT count(*) FROM sqlite_master WHERE type ='table' AND upper(name) = 'MIGRATION'", 'find_last_migration': "SELECT coalesce(max(migration_id),0) FROM m...
37.191919
155
0.610266
a146e1675b33f63cb270eef4b3b6e9d7fbb7343f
216
py
Python
Webpage/member/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/member/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/member/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import profile, role, position_in_the_club # Register your models here. admin.site.register(profile) admin.site.register(role) admin.site.register(position_in_the_club)
27
55
0.828704
a1742c928703ab25316945e31bd017c1dd3c9410
4,527
py
Python
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/utils/sobol_candidates.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
1
2022-01-08T07:36:38.000Z
2022-01-08T07:36:38.000Z
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/utils/sobol_candidates.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
3
2022-03-10T23:09:02.000Z
2022-03-30T18:32:35.000Z
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/utils/sobol_candidates.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
null
null
null
# import string import numpy as np import pandas as pd from itertools import combinations, product, chain from scipy.stats.qmc import Sobol, discrepancy from sklearn.preprocessing import normalize from utils.fractional import fractional_encode # n_slots = 5 # n_vars = 13 # m = 15 # use_sobol = False # unique_compon...
30.795918
87
0.658935
b800323ad4b967affba3519ed2811d3b5e223f9f
2,231
py
Python
Packs/Censys/Integrations/Censys/Censys.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Censys/Integrations/Censys/Censys.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Censys/Integrations/Censys/Censys.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 ''' IMPORTS ''' import requests ''' GLOBAL VARIABLES ''' API_URL = demisto.params()['url'] API_ID = demisto.params()['apiid'] API_SECRET = demisto.params()['secret'] USE_SSL = not demisto.params().get('insecure', False) def t...
27.54321
117
0.606006
b80c382ec133ac4873ce4bea28c4dc008eb5989f
1,881
py
Python
kernel/slovaki/migrations/0002_auto_20180605_1611.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/slovaki/migrations/0002_auto_20180605_1611.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/slovaki/migrations/0002_auto_20180605_1611.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-05 11:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('slovaki', '0001_initial'), ] operations = [ migrations.AlterField( model_name='slovakiawardscontent', name='sku', ...
38.387755
126
0.621478
b155d077e4225051524c3e6b31eb90ba12a287ff
214
py
Python
Packs/WindowsForensics/Scripts/Etl2Pcap/Etl2Pcap_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/WindowsForensics/Scripts/Etl2Pcap/Etl2Pcap_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/WindowsForensics/Scripts/Etl2Pcap/Etl2Pcap_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os import Etl2Pcap as etl2pcap def test_etl_to_pcap(): output_path = './test_data/pcap.pcap' etl2pcap.etl_to_pcap('./test_data/etl_example.etl', output_path) assert os.path.isfile(output_path)
23.777778
68
0.752336
02e47ee556cc3e96ed4cdf0bb7349743a7fb8461
145
py
Python
quant/example/ex_kraken.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/example/ex_kraken.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/example/ex_kraken.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 -*- from quant.api.kraken import PublicClient client = PublicClient() print(client.depth('BCHEUR'))
16.111111
41
0.696552
b22bda83901806a3e90c9dec2904cf5adbfc1382
2,969
py
Python
tests/onegov/feriennet/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/feriennet/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/feriennet/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import timedelta, date from freezegun import freeze_time from sedate import utcnow from onegov.core.utils import Bunch from onegov.feriennet.models.notification_template import TemplateVariables from uuid import uuid4 def test_template_variables(): class MockRequest(object): def __repr__...
29.69
76
0.652745
b2735ca3e959ac3bc1d4f5b3ec4dc2ca1df3ea9e
1,489
py
Python
OWO_string.py
anSEpranks/OWO
45d1bc14c74e5b3089212eb8c8e2077e7a0e7c5b
[ "MIT" ]
null
null
null
OWO_string.py
anSEpranks/OWO
45d1bc14c74e5b3089212eb8c8e2077e7a0e7c5b
[ "MIT" ]
null
null
null
OWO_string.py
anSEpranks/OWO
45d1bc14c74e5b3089212eb8c8e2077e7a0e7c5b
[ "MIT" ]
null
null
null
import pyperclip import time import os def UWU(string): #scalable part replace = ["r", "l"] #custom replacement replace_s = {"you" : "yuwu", "god" : "gowod", "and" : "awnd", "the" : "teh", "that" : "thawt", ...
26.122807
57
0.353929
0215b5cb1fcdaefef5e5ebddf4d994f388dbb054
1,240
py
Python
scripts/calendar_view_gui/utils/hist_utils.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
scripts/calendar_view_gui/utils/hist_utils.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
scripts/calendar_view_gui/utils/hist_utils.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Csaba Wirnhardt # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import rasterio import numpy as np import matplotlib.pyplot as plt ...
35.428571
100
0.625
025da6e08538687dadd9e0f97519128228482a3b
549
py
Python
03/main.py
rmccorm4/Project-Euler
a80a85859d5aa67ece02c15d6726292531463ee1
[ "MIT" ]
null
null
null
03/main.py
rmccorm4/Project-Euler
a80a85859d5aa67ece02c15d6726292531463ee1
[ "MIT" ]
null
null
null
03/main.py
rmccorm4/Project-Euler
a80a85859d5aa67ece02c15d6726292531463ee1
[ "MIT" ]
null
null
null
# Test code to make sure Go version is working as expected # This is slow, better solution found on geeks for geeks import math def prime_fac(n): prime_fac = [] i = 2 while i < n: while n % i == 0: prime_fac.append(i) n /= i i += 1 return len(prime_fac) def main(): n = 6008 n = 600851475143 print(pri...
18.931034
63
0.663024
ce92b8d31221f78b90d210d60507c1cba1191108
3,144
py
Python
test/test_npu/test_network_ops/test_tan.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_tan.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_tan.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...
33.094737
74
0.673982
0b886d0daed41b775abf9cae93ccb33a432fd54e
33,506
py
Python
experimental/marginalization_mixup/batchensemble.py
krasserm/edward2
311d3ad6946b543e70af1495eab9a0a9b4f69854
[ "Apache-2.0" ]
null
null
null
experimental/marginalization_mixup/batchensemble.py
krasserm/edward2
311d3ad6946b543e70af1495eab9a0a9b4f69854
[ "Apache-2.0" ]
null
null
null
experimental/marginalization_mixup/batchensemble.py
krasserm/edward2
311d3ad6946b543e70af1495eab9a0a9b4f69854
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Edward2 Authors. # # 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 o...
45.961591
87
0.657255
688251ebb8499df88a2e544428a5af03fb74ff10
9,696
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/heads/bbox_head.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/heads/bbox_head.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/heads/bbox_head.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
42.902655
110
0.593441
d7e1cb71b87aadf74f0c294ed6c588a7fb55c8fb
971
py
Python
fastapi/tutorial-1-4-response/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
fastapi/tutorial-1-4-response/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
fastapi/tutorial-1-4-response/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
# https://fastapi.tiangolo.com/advanced/custom-response/ # Response # JSONResponse (default) # PlainTextResponse # HTMLResponse # RedirectResponse # StreamingResponse # FileResponse from fastapi import FastAPI from fastapi.responses import Response, JSONResponse, HTMLResponse, RedirectResponse app = FastAPI() @app....
22.068182
84
0.675592
0b01317da9a15dfb5411d6e9b4ab5fbaffc2d9ad
709
py
Python
demos/Multiscale/ThreeSided/model/parts/exogenous.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/ThreeSided/model/parts/exogenous.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/ThreeSided/model/parts/exogenous.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
import numpy as np # Exogenous Mechanisms def tx_volume_generator(params, step, sL, s, _input): y = 'tx_volume' x = s['tx_volume']*(1+2*params['eta']*np.random.rand()*(1-s['tx_volume']/params['tampw'])) return (y, x) def cost_of_production_generator(params, step, sL, s, _input): y = 'cost_of_product...
35.45
137
0.651622
4a0c4d9a4de56e12bcb41da18d0eaa294dc1c6b3
676
py
Python
source/pkgsrc/databases/py-peewee/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/databases/py-peewee/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/databases/py-peewee/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.3 2020/11/09 09:29:12 adam Exp $ Find libsqlite3. --- setup.py.orig 2018-08-16 18:40:47.000000000 +0000 +++ setup.py @@ -73,8 +73,9 @@ def _have_sqlite_extension_support(): success = False try: compiler.link_shared_object( - compiler.compile([src_file], output...
37.555556
115
0.64645
c57d826130d9f91dfc1d85ca43b1520a85fefef9
334
py
Python
frappe-bench/apps/erpnext/erpnext/templates/pages/cart.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/templates/pages/cart.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/templates/pages/cart.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 no_cache = 1 no_sitemap = 1 import frappe from erpnext.shopping_cart.cart import get_cart_quotation def get_context(context): context.update(get_cart...
25.692308
68
0.808383
a8a78466f7df3b13c487dbd42f22a6585ca091df
98
py
Python
python/python_backup/PRAC_PYTHON/al.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/al.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/al.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def str(n): l=len(n) for i in range(0,l+1): for j in range(0,i+1): print n[j], print
16.333333
25
0.530612
8c40915aca963a1eeafcd8752ebf859dad52be89
843
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/next_junk_encoding.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_RICE2/week1/next_junk_encoding.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_RICE2/week1/next_junk_encoding.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# Cipher import simplegui CIPHER = {'a': 'x', 'b': 'c', 'c': 'r', 'd': 'm', 'e': 'l'} message = "" # Encode button def encode(): emsg = "" for ch in message: emsg += CIPHER[ch] print message, "encodes to", emsg # Decode button def decode(): dmsg = "" for ch in message: for key, ...
21.075
59
0.610913
8c6cbbf59e477e23923a57887cf0a4633696c016
1,028
py
Python
mqtt/mqtt_subscribe.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
mqtt/mqtt_subscribe.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
mqtt/mqtt_subscribe.py
wichmann/RaspPI
168609cb237e59a4c895eae798c0dab052aab38b
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # Notwendige Bibliothek installieren: # pip3 install paho-mqtt import paho.mqtt.client as mqtt TOPIC = "test/topic" def on_connect(mqttc, obj, flags, rc): print("rc: "+str(rc)) def on_message(mqttc, obj, msg): print(msg.topic+" "+str(msg.qos)+" "+str(msg.payload)) def on_pub...
23.906977
73
0.729572
8cdf6cdfdcab07fc88e183223a76ce79f5e6c4f4
3,906
py
Python
research/cv/autoaugment/src/dataset/autoaugment/aug.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/autoaugment/src/dataset/autoaugment/aug.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/autoaugment/src/dataset/autoaugment/aug.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.566372
80
0.609319
5090b4167e76341f73965ca91f95262f711b2e84
34,124
py
Python
pbd2lodas.py
MaliziaGrimm/pbd2lodas
a2447084177c87d1f2e8d1e2a7c0c4607bbbde74
[ "MIT" ]
null
null
null
pbd2lodas.py
MaliziaGrimm/pbd2lodas
a2447084177c87d1f2e8d1e2a7c0c4607bbbde74
[ "MIT" ]
null
null
null
pbd2lodas.py
MaliziaGrimm/pbd2lodas
a2447084177c87d1f2e8d1e2a7c0c4607bbbde74
[ "MIT" ]
null
null
null
from flask import Flask from flask import request import os, webbrowser from flask import render_template from shutil import copyfile from fpdf import FPDF import setting app = Flask(__name__) @app.route('/') def homepage(): if os.path.exists("daten/abrechnungszeitraum.txt"): filequelle=open(...
62.843462
426
0.638847
50c01e5f23f7976209b9e0b293df441b26d2f556
816
py
Python
Algorithms/2_Implementation/58.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/58.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/58.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/cavity-map/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'cavityMap' function below. # # The function is expected to return a STRING_ARRAY. # The function accepts STRING_ARRAY grid as parameter. # def cavityMap(g): for z ...
19.902439
70
0.588235
50e85697b756fff624ec6972b06273b7a04f9e1d
1,017
py
Python
api/clean/sequence_date.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_date.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_date.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/19 下午7:18 # @Author : Latent # @Email : latentsky@gmail.com # @File : sequence_date.py # @Software: PyCharm # @class : 时间的分割 """ 1. time_stamp ----->采集时间戳 2. time_year 3. time_month 4. time_day 5. date_id ------> 自动创建 """ import time class Sequence_Date(...
24.214286
84
0.554572
ba04f79f827019b78a8dc6fea43685f542a02a02
140
py
Python
template/python-library/pl/__init__.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
template/python-library/pl/__init__.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
template/python-library/pl/__init__.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
""" pl module """ __version_info__ = ('0', '0', '0') __version__ = '.'.join(__version_info__) from pl.python_library import PythonLibrary
15.555556
43
0.692857
ba170cf81772860acaa02c824d626da13d28ae36
1,164
py
Python
leer_synop_dat.py
dcazabat/SYNOP_PY
7a9f1804858d72b1ec2584fed887689161036ad7
[ "MIT" ]
null
null
null
leer_synop_dat.py
dcazabat/SYNOP_PY
7a9f1804858d72b1ec2584fed887689161036ad7
[ "MIT" ]
null
null
null
leer_synop_dat.py
dcazabat/SYNOP_PY
7a9f1804858d72b1ec2584fed887689161036ad7
[ "MIT" ]
null
null
null
# Lectura del un archivo de datos de SOM import datetime, os import module_functions # Se arma la fecha limite para las consultas fecha_limite = datetime.datetime.now() int_anio = int(str(fecha_limite.date())[:4]) int_mes = int(str(fecha_limite.date())[5:7]) int_dia = int(str(fecha_limite.date())[8:10]) int_horaz = i...
36.375
98
0.66323
e870c0c1f56fa1dc1f0f36ea819ba8c022efb7dc
765
py
Python
src/appconfig/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/appconfig/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/appconfig/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-09-02 22:32 from django.db import migrations, models import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Version', fields=[ ('id', model...
28.333333
112
0.579085
e8bb004e25b33ce89bcf087c6bd30a65d9d29e16
448
py
Python
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section2DataTypes/14ExerciseDictionaries.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section2DataTypes/14ExerciseDictionaries.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section2DataTypes/14ExerciseDictionaries.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
personTemplate = ["name", "gender", "age", "address", "phone"] person = {"name":"Jim", "gender":"Female", "age":"3", "address":"Elm Street", "phone":"0987654321"} print(person.get("gender")) for x in range(0, 4): print("The ", personTemplate[x], " is: ", person.get(personTemplate[x]), ".") data=input("Please enter ...
64
99
0.658482
fa6ef44a590e78197f90f346f5a1e6b3efd9bc8c
3,455
py
Python
tests/conftest.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/conftest.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/conftest.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import os import warnings import pytest from sqlalchemy.exc import SAWarning from .seeder import Seeder from .utils import UtilActions def pytest_generate_tests(metafunc): warnings.filterwarnings("error", category=SAWarning) os.environ["DATABASE_URL"] = os.environ.get( "TEST_DATABASE_URL", "postgre...
50.808824
1,712
0.836179
d74e759ba333b91e9f95f7e63a8cae129c1afbba
1,483
py
Python
task/resnet152_inference.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
task/resnet152_inference.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
task/resnet152_inference.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
import contextlib import threading import time import torch import numpy import task.resnet152 as resnet152 import task.common as util TASK_NAME = 'resnet152_inference' @contextlib.contextmanager def timer(prefix): _start = time.time() yield _end = time.time() print(prefix, 'cost', ...
27.462963
83
0.650708
d103b2b5a3ef51c33ebaff8114e5074f336c3f6f
8,306
py
Python
Termux-Android-Hackers-main/Bull.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-Android-Hackers-main/Bull.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Termux-Android-Hackers-main/Bull.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 marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\r\x03\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x03\x00Z\x03\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z...
4,153
8,291
0.685047
0e36a1a7c016e100903d13b3ac7746a406ead8a1
1,352
py
Python
tournament.py
ghallberg/tmnt
fda60b74785db59c3cad371162c8dbf8525cb673
[ "MIT" ]
null
null
null
tournament.py
ghallberg/tmnt
fda60b74785db59c3cad371162c8dbf8525cb673
[ "MIT" ]
null
null
null
tournament.py
ghallberg/tmnt
fda60b74785db59c3cad371162c8dbf8525cb673
[ "MIT" ]
null
null
null
import itertools import utils import tournament_round import player def add(name): tournament_uuid = utils.generate_uuid() utils.store_event({'type': 'add_tournament', 'name': name, 'tournament': tournament_uuid}) return tournament_uuid def fetch(t_id): creation = utils.first_event('add_tournament', ...
30.044444
94
0.661243
7ef1d43c03d7189d1e5498433ebcea6e165f6ad7
1,220
py
Python
tests/test_plot_hashtags.py
UBC-MDS/pytweet
dd97089e79ae35a773d0651cc305fc650b1cd590
[ "MIT" ]
2
2021-03-13T02:18:16.000Z
2022-01-14T11:55:32.000Z
tests/test_plot_hashtags.py
UBC-MDS/pytweet
dd97089e79ae35a773d0651cc305fc650b1cd590
[ "MIT" ]
18
2021-02-25T04:36:22.000Z
2021-03-26T07:28:37.000Z
tests/test_plot_hashtags.py
UBC-MDS/pytweet
dd97089e79ae35a773d0651cc305fc650b1cd590
[ "MIT" ]
8
2021-02-27T04:33:50.000Z
2021-06-23T21:48:40.000Z
import pandas as pd from pytweet.pytweet import plot_hashtags from pytest import raises def test_plot_hashtags(): """ Tests the hashtags function to make sure the outputs are correct. Returns -------- None The test should pass and no asserts should be displayed. """ # Calling helpe...
34.857143
90
0.644262
adab59e2d3af15f23ef8ddfa1b55deaf06f9cd9f
63
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.9-list-extend-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.9-list-extend-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.9-list-extend-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
li1 = [1, 2, 3] li2 = [3, 4, 5, 6] li1.extend(li2) print(li1)
10.5
18
0.52381
70b055781fbe4941b3ac35d236aa37b94e215f75
559
py
Python
packages/watchmen-storage-mysql/src/watchmen_storage_mysql/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-mysql/src/watchmen_storage_mysql/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-mysql/src/watchmen_storage_mysql/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .data_source_mysql import MySQLDataSourceHelper, MySQLDataSourceParams from .storage_mysql import StorageMySQL, TopicDataStorageMySQL from .storage_mysql_configuration import StorageMySQLConfiguration from .table_defs_helper import ask_meta_data, create_bool, create_datetime, create_description, create_int, \ cre...
69.875
109
0.887299
70b9287108b373f2cb5c39561689b75f126e9527
898
py
Python
Algorithms/2_Implementation/18.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/18.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/18.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/magic-square-forming/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'formingMagicSquare' function below. # # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY s as parameter. # def formingM...
25.657143
111
0.623608
cb88bdf3aa79824fabc214edfc92d83b9fb797df
5,441
py
Python
examples/nowcoder/SQL3/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/nowcoder/SQL3/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/nowcoder/SQL3/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from datetime import date from django.db import connections from django.test import TestCase, TransactionTestCase from .models import salaries, dept_manager # Create your tests here. class SimpleTest(TransactionTestCase): reset_sequences = True def prepare_data(self): # 建表语句 # CREATE TABLE `...
49.463636
139
0.598971
cbac59c4ad2d7125fb7431b9bf7a41f069d85e04
962
py
Python
books/PythonCleanCode/ch9_design_pattern/decorator_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch9_design_pattern/decorator_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch9_design_pattern/decorator_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 9: Common Design Patterns > Decorator: A function-based version """ from typing import Callable, Dict, Iterable class DictQuery: def __init__(self, **kwargs): self._raw_query = kwargs def render(self) -> dict: return self._raw_query class Qu...
25.315789
74
0.620582
38135f6d6562384503f86b03c3e9e528f70f1af6
7,479
py
Python
modelindex/models/Library.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
modelindex/models/Library.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
modelindex/models/Library.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
import os import copy from typing import Dict, Union, List from ordered_set import OrderedSet from modelindex.models.Metadata import Metadata from modelindex.models.BaseModelIndex import BaseModelIndex from modelindex.models.Result import Result from modelindex.models.ResultList import ResultList from modelindex.util...
31.033195
113
0.564648
697cf0643d1cdafb5f2e3e8601add91a56fbe65e
3,172
py
Python
research/cv/tsn/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/tsn/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/tsn/export.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...
42.293333
119
0.697352
3883d7348a790760fe2df200167d40407d91b549
439
py
Python
volley/serializers/msgpack_serializer.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
volley/serializers/msgpack_serializer.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
volley/serializers/msgpack_serializer.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
from typing import Any, Dict import msgpack from volley.serializers.base import BaseSerialization class MsgPackSerialization(BaseSerialization): def serialize(self, message: Dict[Any, Any]) -> bytes: serialized: bytes = msgpack.packb(message) return serialized def deserialize(self, message:...
27.4375
63
0.71754
2a9c70a60274ee9cff58d3e1d31f8b0a56975031
73
py
Python
IVTp/2014/SOBOLEV_M_V/task_3_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_3_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_3_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
a = 'Максимилиан Гольдман' b = input('введите псевдоним') print(a+'-'+b)
18.25
30
0.671233
fabae3551dfa52eb0300b0e97e90050ab949c063
4,713
py
Python
INBa/2014/Mamedov_R_A/Mamedov 10_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Mamedov_R_A/Mamedov 10_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2014/Mamedov_R_A/Mamedov 10_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 10, вариант 12 # Напишите программу "Генератор персонажей" для игры. Пользователю должно быть предоставлено 30 пунктов, # которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. # Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", #...
43.238532
146
0.561214
ea256e118bb0ff9b14bbad1e2df5aad57dd6da54
1,483
py
Python
modules/Printer.py
NETMVAS/feecc-agent-geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
1
2021-05-13T09:03:51.000Z
2021-05-13T09:03:51.000Z
modules/Printer.py
arseniiarsenii/robonomics_qa_geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
null
null
null
modules/Printer.py
arseniiarsenii/robonomics_qa_geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
1
2021-05-24T15:45:01.000Z
2021-05-24T15:45:01.000Z
import logging import typing as tp from PIL import Image from brother_ql import BrotherQLRaster, conversion from brother_ql.backends.helpers import send # set up logging logging.basicConfig( level=logging.INFO, filename="agent.log", format="%(asctime)s %(levelname)s: %(message)s" ) class Task: def __...
38.025641
118
0.670263
57cb40e48f424931f5ef74d4e4ebc5813ca9fcee
1,028
py
Python
IVTa/2014/EGOROV_V_I/task_9_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/EGOROV_V_I/task_9_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/EGOROV_V_I/task_9_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9. Вариант 8 ''' Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо буква в слове, причем программа может отвечать только "Да" и "Нет". Вслед за тем игрок должен попробовать о...
17.423729
48
0.674125
57f0ada311c83fac0f95172f04df69c07473e5a0
1,229
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_05_Kontrollstrukturen/06_kapitel_05_repetitionsaufgabe_05_guess_number.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_05_Kontrollstrukturen/06_kapitel_05_repetitionsaufgabe_05_guess_number.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_05_Kontrollstrukturen/06_kapitel_05_repetitionsaufgabe_05_guess_number.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 06_kapitel_05_repetitionsaufgabe_05_guess_number.py # Project: Kapitel_05_Kontrollstrukturen # Created Date: Saturday 23.02.2019, 22:44 # Author: Apop85 # ----- # Last Modified: Saturday 23.02.2019, 22:52 # ----- # Copyright (c) 2019 Apop85 # This software is pu...
34.138889
106
0.693247
52f78942c1376017d3269a42adbf32119782270c
1,663
py
Python
src/bo4e/com/messlokationszuordnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/messlokationszuordnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/messlokationszuordnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Messlokationszuordnung class and corresponding marshmallow schema for de-/serialization """ from datetime import datetime import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.enum.arithmetische_operation...
33.26
199
0.774504
dc2c9d58e683ac4de76a0836b88cf2bc9208fa51
115
py
Python
rfvision/models/pose_estimators/articulation/datasets/__init__.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
rfvision/models/pose_estimators/articulation/datasets/__init__.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
rfvision/models/pose_estimators/articulation/datasets/__init__.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
from .articulation_dataset import ArticulationDataset from .pipelines_train import * from .pipelines_test import *
28.75
53
0.852174
dc9d9624bf4f16b79e5608c113ceb521821e3122
1,883
py
Python
notebooks/workflow-test-run.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
2
2018-04-27T09:02:15.000Z
2019-04-19T19:12:13.000Z
notebooks/workflow-test-run.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
1
2019-04-19T19:13:08.000Z
2021-02-22T21:29:55.000Z
notebooks/workflow-test-run.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
null
null
null
import logging from pathlib import Path from archiveorg import AOrg import os from tqdm import tqdm import glymur from PIL import Image from zipfile import ZipFile logging.basicConfig(level=logging.DEBUG) db_folder = Path("/media/jakob/bigdata/datasets/archive_org/") os.chdir(str(db_folder)) logging.info("Unzip jp2 ...
31.915254
91
0.669676
762634bb65f15dbf9c5f829186bde8a7965673ee
1,807
py
Python
Enigma 2 - Local Bouquet to Remote Converter/E2Channel.py
gianmarcov/public
e9cda1c8afc10a183c0951bd737c3c5ecbe78fe2
[ "MIT" ]
1
2015-04-07T18:35:43.000Z
2015-04-07T18:35:43.000Z
Enigma 2 - Local Bouquet to Remote Converter/E2Channel.py
gianmarcov/public
e9cda1c8afc10a183c0951bd737c3c5ecbe78fe2
[ "MIT" ]
null
null
null
Enigma 2 - Local Bouquet to Remote Converter/E2Channel.py
gianmarcov/public
e9cda1c8afc10a183c0951bd737c3c5ecbe78fe2
[ "MIT" ]
null
null
null
''' * The MIT License (MIT) * * Copyright (c) 2015 Vitelli Gianmarco * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
29.622951
81
0.650802
5e6d23c38a8c5a2127d48d87e66845f51b01dc53
1,940
py
Python
ScrapeWeblio.py
yykk3322/Name-to-Kana-converter
428895e4b4a73da910a031c3ae7a541919e8dbb9
[ "MIT" ]
null
null
null
ScrapeWeblio.py
yykk3322/Name-to-Kana-converter
428895e4b4a73da910a031c3ae7a541919e8dbb9
[ "MIT" ]
null
null
null
ScrapeWeblio.py
yykk3322/Name-to-Kana-converter
428895e4b4a73da910a031c3ae7a541919e8dbb9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import codecs import io import urllib.request from urllib.parse import quote from bs4 import BeautifulSoup flag = True def search_name(name): url = "https://www.weblio.jp/content/" + quote(name) response = urllib.request.urlopen(url) html = response.read() soup = Bea...
26.216216
94
0.53299
0dbdcdd16c25187c707299f042e492506797ccbb
911
py
Python
TelephonyBruteCall/PyPortScanner/pps.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
TelephonyBruteCall/PyPortScanner/pps.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
TelephonyBruteCall/PyPortScanner/pps.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python3 # N11rm44L 7w44711 # GitHub : https://www.github.com/niirmaaltwaatii/PyPortScanner import funcs dl = "-" * 70 banner = f""" {dl} PyTool : PyPortScanner Version : 1.0.0 Author : Niirmaal Twaatii GitHub : https://www.github.com/niirmaaltwaatii/PyPortScanner {dl} """ options = f"""...
19.804348
66
0.554336
21a2ebfb6b418bb1978bf9195b80fe2119e52b4b
2,134
py
Python
packages/watchmen-storage-oracle/src/watchmen_storage_oracle/storage_oracle_configuration.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-oracle/src/watchmen_storage_oracle/storage_oracle_configuration.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-oracle/src/watchmen_storage_oracle/storage_oracle_configuration.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from __future__ import annotations from watchmen_model.system import DataSource, DataSourceType from .data_source_oracle import OracleDataSourceHelper, OracleDataSourceParams from .storage_oracle import StorageOracle, TopicDataStorageOracle # noinspection PyRedeclaration class Configuration: dataSource: DataSource ...
31.850746
93
0.783505
21b38f1b6e68280ddd350c5b0a318d09b9190ff8
230
py
Python
checker/responsivesecurity/resources.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/resources.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/resources.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
import pkg_resources import os PRIVATE_KEY = pkg_resources.resource_string(__name__, "gameserver_private_key.txt").strip() BROWSERMOB_EXE = pkg_resources.resource_filename(__name__, "browsermob-proxy-2.1.4/bin/browsermob-proxy")
38.333333
105
0.834783
21f7c9888717b5edeef83e3d7e0cff900d7ce0a3
310
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/ocsrest/__init__.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/__init__.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/ocsrest/__init__.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # 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 2 # of the License, or (at your option) any later version.
38.75
68
0.770968
1d5620797f6edfd367001b9cd6056728f9eca387
338
py
Python
Problems/Two Pointers/easy/SortArrayByParity2/SortArrayParity2.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/SortArrayByParity2/SortArrayParity2.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/SortArrayByParity2/SortArrayParity2.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def sortArrayByParityII(nums: List[int]) -> List[int]: n = len(nums) odd, even = 1, 0 result = nums[:] for i in range(n): if nums[i] % 2 == 0: result[even] = nums[i] even += 2 else: result[odd] = nums[i] odd += 2 ...
19.882353
54
0.47929
63a5ace4075ea35a161e0f72ffbcf7dd12f785df
479
py
Python
src/bo4e/enum/tarifzeit.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/tarifzeit.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/tarifzeit.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Tarifzeit(StrEnum): """ Zur Kennzeichnung verschiedener Tarifzeiten, beispielsweise zur Bepreisung oder zur Verbrauchsermittlung. """ TZ_STANDARD = "TZ_STANDARD" #: Tarifzeit Standard für Eintarif-Konfigurationen ...
36.846154
109
0.764092
8940b81b522d996ca1cca6bdb1929feb620ea032
9,173
py
Python
deutschland/verena/verenaextractor.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/verena/verenaextractor.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
deutschland/verena/verenaextractor.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup, element from typing import Tuple import re class VerenaExtractor: """ Extracts the job listings objects from the search result website of the VERENA portal. """ def __init__(self, source: str): """ Init with string containing the sourcecode the website (...
41.885845
164
0.595443
89554853f31e0adece6e16e013b880272eaed5f3
2,126
py
Python
source-code/ESP8266/m_System.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
3
2020-12-30T18:37:13.000Z
2021-10-02T07:43:10.000Z
source-code/ESP8266/m_System.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
null
null
null
source-code/ESP8266/m_System.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
1
2021-10-02T07:47:53.000Z
2021-10-02T07:47:53.000Z
import gc gc.collect() from m_Storage import Storage from m_Audio import Audio from m_Hardware import Hardware from m_Wifi import Wifi from m_Webserver import WebServer class System: def __init__(self): gc.enable() #File self.Save = None self.JSON_Web = None ...
31.264706
141
0.5
f6e8fbc43687471077114129cb8842b47c076100
406
py
Python
brick/version.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/version.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/version.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-21 @author: Xsank ''' __framework_name__="Brick" __license__="MIT" __version__="beta 0.1" __development__="Python27" __platform__="any" __teacher__="Marcel Hellkamp" __author__="Mar Xsank" __email__="825128975@qq.com" __project_url__="https://github.com/xsank/Brick" __packages__=['brick'] __des...
21.368421
58
0.773399
f6ea4e21b00ec2a5e9ede6558e1cf3299b381701
4,986
py
Python
extractTool/extractTool/getGeoTiffInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
extractTool/extractTool/getGeoTiffInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
extractTool/extractTool/getGeoTiffInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click import extractTool from osgeo import gdal, ogr, osr def getGeoTiffbbx(filepath, detail, folder, time): #Boolean variable that shows if the crs of the bbox is in wgs84 wgs_84=True gdal.UseExceptions() ds = gdal.Open(filepath) """@see https://stackoverflow.com/questions/2922532/obtain-la...
42.254237
108
0.45708
63e44ecb3300db1e87ffa40d3b23ffda6c86d12f
425
py
Python
AutosClasificados/core/forms.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/forms.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
AutosClasificados/core/forms.py
joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU
2997359150236a7d897a3f9201f8e9404f3d7f02
[ "MIT" ]
null
null
null
from django import forms from django.forms import Textarea, TextInput, IntegerField from .models import Articulo class FormularioArticulo(forms.ModelForm): class Meta: model = Articulo fields = ('titulo', 'marca', 'precio', 'descripcion', 'imagen' ) widgets = { 'descripcion': ...
23.611111
72
0.614118
126809727319d80685776227dc7b0740e910436e
5,350
py
Python
publ/path_alias.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
6
2018-03-29T02:07:44.000Z
2018-09-26T00:17:31.000Z
publ/path_alias.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
82
2018-04-01T08:53:59.000Z
2018-09-28T23:45:05.000Z
publ/path_alias.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
null
null
null
# path_alias.py """ Handling for URL aliases """ import logging import typing import urllib.parse from flask import redirect, url_for from pony import orm from . import model, user # redirection types PERMANENT = 301 TEMPORARY = 302 LOGGER = logging.getLogger(__name__) @orm.db_session def set_alias(alias: str, a...
28.457447
94
0.641869
6160f7d6875bedb718aa8319b03e045c3675697b
12,209
py
Python
src/Prototyp/flaskProject Kopie/Querries.py
jay-hae/SE-Projekt-I3
1decc546dd04ee994277d03f59b80c33de164f11
[ "CC-BY-4.0" ]
3
2021-12-14T13:07:55.000Z
2022-03-28T14:24:44.000Z
src/Prototyp/flaskProject Kopie/Querries.py
jay-hae/SE-Projekt-I3
1decc546dd04ee994277d03f59b80c33de164f11
[ "CC-BY-4.0" ]
35
2021-12-08T17:01:23.000Z
2022-03-30T10:43:13.000Z
src/Prototyp/flaskProject Kopie/Querries.py
jay-hae/SE-Projekt-I3
1decc546dd04ee994277d03f59b80c33de164f11
[ "CC-BY-4.0" ]
null
null
null
import time, helper import Login from flask import jsonify # get all institutes saved in tbl_institutes def institutes_ret(): cnxn = Login.newConnection() cur = cnxn.cursor() # execute stored procedure cur.callproc('count_agreements') payload = [] # with result create an object that iterates ...
31.877285
135
0.565976
4efd979a4d050133b8487151e47c7e98335a7a21
2,004
py
Python
dhbwFischertechnik/factoryWebsite/views.py
KotschM/FischertechnikMQTTWebApplication
daf2414104521976b1e2f1371de1524c99283440
[ "MIT" ]
1
2021-07-30T05:09:26.000Z
2021-07-30T05:09:26.000Z
dhbwFischertechnik/factoryWebsite/views.py
KotschM/FischertechnikMQTTWebApplication
daf2414104521976b1e2f1371de1524c99283440
[ "MIT" ]
null
null
null
dhbwFischertechnik/factoryWebsite/views.py
KotschM/FischertechnikMQTTWebApplication
daf2414104521976b1e2f1371de1524c99283440
[ "MIT" ]
null
null
null
import json from django.http import JsonResponse from django.shortcuts import render from .models import * from .mqtt import mqttc, MQTT_Topic_Storage_Web from .utils import cartData, guestOrder, sendNewOrderToFactory def store(request): data = cartData(request) cartItems = data['cartItems'] products =...
26.368421
70
0.713573
1ae1ed205674410c2b17ce6caff2b6a609eaf37b
3,953
py
Python
GZP_GTO_ArcMap/scripts/SCR_PFLICHT_Felder_KNTPKT.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_KNTPKT.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_KNTPKT.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 KNTPKT" dialog.description = "...
38.009615
200
0.635214
210cb755702e69130b91c0e30e5f2606e73bcc34
321
py
Python
Matrizen und Vektoren/Matrizen und Vektoren/scikit-learn.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Matrizen und Vektoren/Matrizen und Vektoren/scikit-learn.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Matrizen und Vektoren/Matrizen und Vektoren/scikit-learn.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import sklearn.linear_model as lin import numpy as np diabetes_data_set = np.genfromtxt('diabetes_daten.csv', delimiter=',', encoding ="utf_8_sig") matrix_x = diabetes_data_set[:, :10] y = diabetes_data_set[:, np.newaxis, 10] regr = lin.LinearRegression(fit_intercept=False) regr.fit(matrix_x,y) print(regr.coef_...
20.0625
93
0.760125
212924fdde5944bec8b54a23e578bd8577200fdd
2,275
py
Python
fg/tournaments/management/commands/load_tournament_groups.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/management/commands/load_tournament_groups.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/management/commands/load_tournament_groups.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from tournaments.models import Player, Tournament, TournamentPlayer import csv import os class Command(BaseCommand): help = 'Loads Tournament Groupings from {touranemnt name}_groups.csv file in fg/external_files/csvs' def add_argument...
39.912281
111
0.613187
0d49bb31e22611a1df5d64370cf0aefae171da57
104
py
Python
python/pathlib/origin/write_text.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/write_text.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/write_text.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path path = Path('myfile.txt') path.touch() path.write_text('This is my file.txt')
17.333333
38
0.730769
259ecefd5e7495f58c1867e5973e386e08df1c81
3,198
py
Python
crypto/MaoHash/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
crypto/MaoHash/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
crypto/MaoHash/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
from math import cos X = [int((0xFFFFFFFE) * cos(i)) & 0xFFFFFFFF for i in range(256)] def G(X,Y,Z): return (X ^ (~Z | ~Y) ^ Z) & 0xFFFFFFFF def H(X,Y,Z): return (X ^ Y ^ Z & X) & 0xFFFFFFFF def I(X,Y,Z): return ((X & ~Z) | (~Z & Y)) & 0xFFFFFFFF def J(X,Y,Z): return ((X ^ ~Z) | (X & ~Y)) & 0xFFFFFFFF def K(X,Y,Z...
32.30303
113
0.550657
9f67d2122d9b639690d13cfe5f7614d275dac782
9,794
py
Python
events/tests/test_casting.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
events/tests/test_casting.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
events/tests/test_casting.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
# stdlib from datetime import timedelta # django from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from django.utils import timezone # library from rest_framework import status from rest_framework.exceptions import ValidationError from rest_framework.test imp...
39.333333
87
0.627833
4cd8c0cc7afd93e56c5fee7b7e159738139b8370
136
py
Python
1.py
charlyjose/fizzbuzz
243e3114ae528570cf4614fb7f68f0b04b8d60ef
[ "Unlicense" ]
null
null
null
1.py
charlyjose/fizzbuzz
243e3114ae528570cf4614fb7f68f0b04b8d60ef
[ "Unlicense" ]
null
null
null
1.py
charlyjose/fizzbuzz
243e3114ae528570cf4614fb7f68f0b04b8d60ef
[ "Unlicense" ]
null
null
null
for n in range(1, 101): line = "" if n%3==0: line += "Fizz" if n%5==0: line += "Buzz" if line: print line else: print n
10.461538
23
0.514706
e2551f3d7ac2de45dbaa139bd51a81d290b52b05
4,021
py
Python
LKx21-master/dl.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
LKx21-master/dl.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
LKx21-master/dl.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- import requests , os , time , datetime , re from bs4 import BeautifulSoup W = '\033[0m' # white (default) R = '\033[1;31m' # red G = '\033[1;32m' # green bold O = '\033[1;33m' # orange B = '\033[1;34m' # blue P = '\033[1;35m' # purple C = '\033[1;36m' # cyan GR = '\033[1;37...
44.677778
100
0.359861
e2a063989fda5eeb17095d90b8aad02fb159ad0d
197
py
Python
Python/Random/File-Handling/05-binary-file.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/File-Handling/05-binary-file.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Random/File-Handling/05-binary-file.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
with open("photo.jpg", 'rb') as rf, open("photo-copy.jpg", 'wb') as wf: size = 1024 chunk = rf.read(size) while chunk != b"": wf.write(chunk) chunk = rf.read(size)
24.625
71
0.532995
2ccf7260ba7a0662b01ccdf28559bc431ba95667
3,464
py
Python
tests/onegov/activity/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/activity/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/activity/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from onegov.activity import ActivityCollection from onegov.activity import AttendeeCollection from onegov.activity import BookingCollection from onegov.activity import OccasionCollection from onegov.activity import PeriodCollection from tests.onegov.activity.fixtures.scenario im...
26.646154
77
0.661952
3900e7462cd1a25f3fb1dd9fdd2c646cee5d43cb
1,189
py
Python
pandas_cleaning_test.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
pandas_cleaning_test.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
pandas_cleaning_test.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
import pandas as pd ''' For missing data ''' mean = df['view_duration'].mean() df['view_duration'] = df['view_duration'].fillna(mean) # or df['view_duration'].fillna(mean, inplace=True) ''' For duplicate data ''' df.duplicated() # To see which rows are duplicates. sum(df.duplicated()) df.drop_duplica...
29.725
92
0.639193
644df2770b74634974010bc59eadeb47c1623f79
2,967
py
Python
tests/onegov/agency/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/agency/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/agency/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency.app import AgencyApp from onegov.agency.initial_content import create_new_organisation from onegov.user import User from os import path from pytest import fixture from sqlalchemy.orm.session import close_all_sessions from tests.shared import Client from tests.shared.utils import create_app from trans...
26.491071
76
0.601618
b3e38cd44d28155044c51b3546d65de23585b871
3,283
py
Python
Python/zzz_training_challenge/UdemyPythonPro/Chapter7_CodingGuidelines/PEP8/test_pylint.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter7_CodingGuidelines/PEP8/test_pylint.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter7_CodingGuidelines/PEP8/test_pylint.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import numbers from math import sqrt from functools import total_ordering @total_ordering class Vector2D: def __init__(self, x=0, y=0) -> None: # check Reale Zahlen --> Throw Fehler so früh wie möglich! if isinstance(x, numbers.Real) and isinstance(y, numbers.Real): self.x = x ...
30.971698
109
0.597624