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
d4b3c0a0de126685962e3fd89933ad69b173258f
883
py
Python
PINp/2014/Generalov_K_A/task_6_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Generalov_K_A/task_6_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Generalov_K_A/task_6_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 6. Вариант 48 #Создайте игру, в которой компьютер загадывает название одной из двадцати #башен Московского кремля, а игрок должен его угадать. #Generalov K. A. import random print("Попробуй угадать, название какой башни Московского Кремля я загадал") a = random.choice(['Водовзводная','Боровицкая','Оружейная'...
44.15
339
0.686297
be1ef3bc01acb95c290707e8b84fb424173f2883
785
py
Python
functions/get_middle_of_element.py
jlittek/Anki-Vector
1478885955dc142c70d92c6a9e24ef9e8fd5cb18
[ "MIT" ]
null
null
null
functions/get_middle_of_element.py
jlittek/Anki-Vector
1478885955dc142c70d92c6a9e24ef9e8fd5cb18
[ "MIT" ]
null
null
null
functions/get_middle_of_element.py
jlittek/Anki-Vector
1478885955dc142c70d92c6a9e24ef9e8fd5cb18
[ "MIT" ]
null
null
null
from cv2 import cv2 def getMiddleOfElement_area(img, bildRGB): # analyze the "white spots" found in serach_ball contours, hierarchy = cv2.findContours(img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) found_cont = False for cnt in contours: area = cv2.contourArea(cnt) if area > 20: if area > 3500: pri...
30.192308
88
0.644586
5800ba63a31830dc4adf3f3a59e7137d3efe4204
3,999
py
Python
tests/test_examples.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
tests/test_examples.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
tests/test_examples.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
import logging import os from hisim import hisim_main from hisim.simulationparameters import SimulationParameters import shutil import random from hisim.utils import PostProcessingOptions import matplotlib.pyplot as plt def test_basic_household(): if os.path.isdir("../hisim/inputs/cache"): shutil.rmtree(...
42.094737
102
0.713678
131236637e6f9aeb8a342e4e2eb1850b97404759
660
py
Python
tools/pythonpkg/tests/fast/types/test_timestamp_tz.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/types/test_timestamp_tz.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/types/test_timestamp_tz.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import pandas as pd import numpy as np import datetime import duckdb class TestPandasTimestampTz(object): def test_timestamp_tz(self, duckdb_cursor): df_in = pd.DataFrame({ 'datetime': [pd.Timestamp('20180310T11:17:54Z')], 'string': ['foo']} ) df_expected_res...
31.428571
74
0.589394
b9eb0149312adbddf3d8994c68e7f622f58ad896
1,058
py
Python
posts/models.py
sridharvishnut/Hashtag
71eecbb4937f2cf339fb953ef46d546f43d7351d
[ "Unlicense" ]
null
null
null
posts/models.py
sridharvishnut/Hashtag
71eecbb4937f2cf339fb953ef46d546f43d7351d
[ "Unlicense" ]
null
null
null
posts/models.py
sridharvishnut/Hashtag
71eecbb4937f2cf339fb953ef46d546f43d7351d
[ "Unlicense" ]
null
null
null
from django.conf import settings from django.urls import reverse from django.db import models import misaka from groups.models import Group from django.contrib.auth import get_user_model User = get_user_model() class Post(models.Model): user = models.ForeignKey(User, related_name="posts",on_delete=models.CASC...
27.128205
106
0.653119
e0739777c54ca3510b8359bc71448e25b1b1d63e
54,703
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/avi/avi_serviceenginegroup.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/avi/avi_serviceenginegroup.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/avi/avi_serviceenginegroup.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
50.792015
158
0.651262
160b200142cf34b6599b4f62e1f6959fbffeaed2
13,964
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/report/cash_flow/custom_cash_flow.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/cash_flow/custom_cash_flow.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/cash_flow/custom_cash_flow.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import add_to_date from erpnext.accounts.report.financial_statements import (get_period_list, get_columns, ...
31.45045
110
0.730092
bc5ebd5a323ddf7db4d62b63a4605d1965418572
1,849
py
Python
pages/extensions/internal_links/component_version_resolver_test.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
300
2015-12-09T20:35:37.000Z
2019-07-16T06:41:29.000Z
pages/extensions/internal_links/component_version_resolver_test.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
2,099
2019-07-16T13:24:27.000Z
2022-03-26T12:31:51.000Z
pages/extensions/internal_links/component_version_resolver_test.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
543
2019-07-18T09:06:14.000Z
2022-03-31T02:43:10.000Z
import unittest import sys import os sys.path.extend([os.path.join(os.path.dirname(__file__), '.')]) from component_version_resolver import ComponentVersionResolver class PodInternalLinkRewriterTestCase(unittest.TestCase): def test_all(self): docs = [ MockDoc('pages/documents/components/amp-list-v0.5.m...
29.822581
113
0.73391
bcf9ace0459630db22613604c8dc1c42d03e4e54
7,650
py
Python
applications/question_answering/faq_finance/data.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
applications/question_answering/faq_finance/data.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "Apache-2.0" ]
null
null
null
applications/question_answering/faq_finance/data.py
AI-Mart/PaddleNLP
0ababea960427e8b70220ea06d908ed58cbed0ed
[ "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...
35.915493
128
0.63085
e670385fcd276b3c03b441e44ca437ab49138f2b
628
py
Python
769/Fcat_769_greedy.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
769/Fcat_769_greedy.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
769/Fcat_769_greedy.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List class Solution: def maxChunksToSorted(self, arr: List[int]) -> int: next_check_num = 0 checked = [False] * len(arr) cur_max_num = 0 chunk = 0 for num in arr: cur_max_num = max(cur_max_num, num) checked[num] = True i...
31.4
55
0.469745
e6fb79dcc12a40bbe83d1b167f1c4ca653606017
581
py
Python
exercises/en/solution_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/solution_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/solution_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Import the Matcher from spacy.matcher import Matcher nlp = spacy.load("en_core_web_sm") doc = nlp("Upcoming iPhone X release date leaked as Apple reveals pre-orders") # Initialize the Matcher with the shared vocabulary matcher = Matcher(nlp.vocab) # Create a pattern matching two tokens: "iPhone" and ...
27.666667
78
0.733219
5ded24e7a09c0187791f3cb8d0fffb480724b9bd
1,817
py
Python
tag_2/p_10_median.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_2/p_10_median.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_2/p_10_median.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 10 Median (Tag 2) Schreibe eine Funktion, die den Median berechnet. Gegeben sei eine Reihe von Zahlen x[1], x[2], ..., x[n] und aufsteigend nach Wert sortiert. Der Median sei definiert, wie folgt: | x[(n + 1) // 2] falls n ungerade median(x) := < | 0.5 ...
31.877193
91
0.649422
5d0f236bdb7facc2c307bd864ff0fb8b76b99b8a
389
py
Python
string_format.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
string_format.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
string_format.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
def print_formatted(number): a = len(bin(number)[2:]) for i in range(1, number + 1): print(str(i).rjust(a, ' '), end=" ") print(oct(i)[2:].rjust(a, ' '), end=" ") print(((hex(i)[2:]).upper()).rjust(a, ' '), end=" ") print(bin(i)[2:].rjust(a, ' '), end=" ") print("") if...
25.933333
60
0.475578
5d3c679f0fbc40304eef3a6e810a39ab8d3bcf0c
3,614
py
Python
applications/experimental/pipelines/rest_api/application.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/experimental/pipelines/rest_api/application.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/experimental/pipelines/rest_api/application.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright 2021 deepset GmbH. 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.o...
35.431373
180
0.714167
53d50eea5679b57c1e679aa517828e67484d0757
2,722
py
Python
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/automate_the_boring_stuff-csv-remove_csv_header.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/automate_the_boring_stuff-csv-remove_csv_header.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/automate_the_boring_stuff-csv-remove_csv_header.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ automate_the_boring_stuff-csv-remove_csv_header.py Removes the header from all CSV files in the current working directory. Ch14_Working_with_CSV_Files_and_JSON_Data # Automate the Boring Stuff with Python https://automatetheboringstuff.com/ ## Chapter 14 – Working...
29.586957
71
0.645481
916e197f5320e310845bcd550c9055a3c3df63df
14,333
py
Python
test/test_npu/test_network_ops/test_conv2d.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_conv2d.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_conv2d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
67.92891
135
0.512175
9177b2004d80e263d838912d5fa26c662c89729f
1,695
py
Python
pages/extensions/internal_links/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
300
2015-12-09T20:35:37.000Z
2019-07-16T06:41:29.000Z
pages/extensions/internal_links/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
2,099
2019-07-16T13:24:27.000Z
2022-03-26T12:31:51.000Z
pages/extensions/internal_links/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
543
2019-07-18T09:06:14.000Z
2022-03-31T02:43:10.000Z
from grow import extensions from grow.documents import static_document from grow.extensions import hooks from .pod_internal_link_rewriter import PodInternalLinkRewriter from .component_version_resolver import ComponentVersionResolver class PodInternalLinkPostRenderHook(hooks.PostRenderHook): """Handle the post-rende...
33.9
109
0.766962
91bd441b6a7f16019e8ee09295cb389bf8ff7329
21,966
py
Python
build/lib/pynanz/Market.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
build/lib/pynanz/Market.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
build/lib/pynanz/Market.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
import numpy as np import datetime import pandas as pd from yahooquery import Ticker from typing import Union from . import indicators import pickle import copy class Market: """ Market is a class to store and handle market data. The main purpose of a Market object is to store the *Open, High, Low, Close,...
41.919847
120
0.599335
f46df8b5c8ccb71e847eea22f64e4cac2f17cb71
652
py
Python
7_DeepLearning-GANs/03_CGAN/Discriminator.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
7_DeepLearning-GANs/03_CGAN/Discriminator.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
7_DeepLearning-GANs/03_CGAN/Discriminator.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
from tensorflow.keras.layers import * from tensorflow.keras.models import * from tensorflow.keras.optimizers import * def build_discriminator(img_shape, num_classes): img = Input(shape=img_shape) label = Input(shape=(num_classes,)) img_flatten = Flatten()(img) x = Concatenate()([img_flatten, ...
27.166667
55
0.625767
be912ae3376194596f8d4f9c14efe1605314994b
23,818
py
Python
sdks/python/apache_beam/io/gcp/datastore/v1new/datastoreio.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
2
2021-12-29T09:01:21.000Z
2022-02-26T14:32:16.000Z
sdks/python/apache_beam/io/gcp/datastore/v1new/datastoreio.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
4
2021-12-21T21:15:41.000Z
2022-02-15T19:21:28.000Z
sdks/python/apache_beam/io/gcp/datastore/v1new/datastoreio.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
17
2021-12-15T19:31:54.000Z
2022-01-31T18:54:23.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
38.540453
86
0.701948
fe2c3ca3ce630699b19cdac63ed4e80ff7b121db
130
py
Python
dayi.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
dayi.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
dayi.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
phone_time = {} calls = {} def time(phone, time): pass myNumber = '999888' time = 61.1 print(time(myNumber, time))
13
28
0.592308
606e9234ed046d5300f951d8998d8ce31ee38e84
4,996
py
Python
Fastir_Collector/health/windows2008ServerStateMachine.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/health/windows2008ServerStateMachine.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/health/windows2008ServerStateMachine.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from statemachine import _Statemachine class Windows2008ServerStateMachine(_Statemachine): def __init__(self, params): _Statemachine.__init__(self, params) def _list_share(self): return super(Windows2008ServerStateMachine, self)....
40.617886
109
0.77462
71e56a618b0b0a11cddf36c791a345c98d91d577
303
py
Python
Pythonjunior2020/Woche3/Aufgabe_3_3_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_3_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_3_1.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 3.3.1, Woche 3, Block 3, Aufgabe 1 # Dictonary woerterbuch = { "I" : "Ich", "Cake" : "Kuchen", "You" : "Du", "Sun" : "Sonne", "Like" : "mögen", "Apple" : "Apfel", "Hate" : "hassen", "Tree" : "Baum", } # Ausgabe print("Das Woerterbuch hat",len(woerterbuch),"Elemente")
18.9375
56
0.521452
e093fb32951228cdd832075a031261729c626afe
4,337
py
Python
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise2.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise2.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise2.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise2.py #Define a procedure, check_sudoku, that takes as input a square list of lists representing an n x n sudoku puzzle solution and # returns the boolean True if the input is a valid sudoku square and # returns the boolean False otherwise....
25.215116
126
0.483514
e0c91ba5b12d42f3ece66eff3b51ca8618dbf384
2,539
py
Python
egd_site/deploy.py
Ayuda-Efectiva/egd_site
70b9aa6093b3dffab0f49bbb71e5672bd4e72893
[ "MIT" ]
2
2020-10-15T18:39:00.000Z
2020-10-25T10:33:51.000Z
egd_site/deploy.py
Ayuda-Efectiva/egd_site
70b9aa6093b3dffab0f49bbb71e5672bd4e72893
[ "MIT" ]
1
2020-10-31T08:27:01.000Z
2020-10-31T08:27:01.000Z
egd_site/deploy.py
Ayuda-Efectiva/egd_site
70b9aa6093b3dffab0f49bbb71e5672bd4e72893
[ "MIT" ]
2
2020-10-30T20:55:38.000Z
2020-11-04T14:27:45.000Z
from __future__ import unicode_literals import frappe, json, subprocess from frappe.utils import get_bench_path from . import site_env site_app = "egd_site" path_bench = get_bench_path() path_site_app = "{0}/apps/{1}/".format(path_bench, site_app) # Called when pushing to: https://github.com/Ayuda-Efectiva/egd_sit...
33.853333
88
0.707365
1cf4becb6cb6d192c75ae656e794d76ad5004a4e
13,508
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_account.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_account.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_account.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, René Moser <mail@renemoser.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
29.301518
114
0.599275
c743ded5d9c90ed8e9454411242add9477015a19
2,937
py
Python
lda_textmine_ex.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
lda_textmine_ex.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
lda_textmine_ex.py
pku601/LDA
a4bcd3e40ed2920dc29bf0270eab05b245ea003e
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2015 Christopher C. Strelioff <chris.strelioff@gmail.com> # # Distributed under terms of the MIT license. """ An example of getting titles and vocab for lda using textmine package. -- adapted from: http://www.christianpeccei.com/textminin...
30.59375
78
0.668029
c79596cf93d6e2cdc2cef310b52c6068ab27040b
684
py
Python
code/gestures/sound.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/gestures/sound.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/gestures/sound.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
import pygame import os from config import config class Sound: def __init__(self): pygame.mixer.init() self.sounds = { "wait": "snort.wav", # schnarchen "track": "pant.wav", # hecheln "search": "whimper.wav", # fiepen "follow": "bark.wav", # bel...
27.36
79
0.539474
1bf4e39c06515013b86604993dea8f3a43efaa0b
1,086
py
Python
DnD/dnd.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
DnD/dnd.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
DnD/dnd.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
import discord, logging, json from discord.ext.commands import Bot from discord.ext import commands import asyncio import os, sys from os.path import getmtime from character import CharacterCommands from field import FieldCommands from dice import * log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) stream_...
28.578947
102
0.771639
40525eeacaf7753e103667cce24855db56a30011
424
py
Python
fund_keys.py
gshikhri/nse-fund-analysis
c9a51047aad8772148c8b8a5b8c94fe3a3b78901
[ "MIT" ]
null
null
null
fund_keys.py
gshikhri/nse-fund-analysis
c9a51047aad8772148c8b8a5b8c94fe3a3b78901
[ "MIT" ]
null
null
null
fund_keys.py
gshikhri/nse-fund-analysis
c9a51047aad8772148c8b8a5b8c94fe3a3b78901
[ "MIT" ]
null
null
null
mf_dict = { 'uti-nifty-index': 'https://api.mfapi.in/mf/120717', 'HDFC-index-fund': 'https://api.mfapi.in/mf/101281', 'Nippon-index-fund': 'https://api.mfapi.in/mf/118791', 'ICICI-index-fund': 'https://api.mfapi.in/mf/141841', 'TATA-index-fund': 'https://api.mfapi.in/mf/119287', 'Mirae-largeca...
35.333333
58
0.613208
dc137c3c3d33d0c8517e231a8f7f51101aa13293
3,553
py
Python
Web/easy-time-injection/exp2.py
TheReturnOfTheKing/ACTF_Junior_2019
73635a8ea3f741d50153f01ca0ff9ca1a8e4db93
[ "MIT" ]
null
null
null
Web/easy-time-injection/exp2.py
TheReturnOfTheKing/ACTF_Junior_2019
73635a8ea3f741d50153f01ca0ff9ca1a8e4db93
[ "MIT" ]
null
null
null
Web/easy-time-injection/exp2.py
TheReturnOfTheKing/ACTF_Junior_2019
73635a8ea3f741d50153f01ca0ff9ca1a8e4db93
[ "MIT" ]
null
null
null
#/bin/python import requests import datetime import threading import time # url = "http://144.34.200.224:8082/index.php?id=1\' and %s and (SELECT count(*) FROM information_schema.columns A, information_schema.columns B, information_schema.columns C)%%23" url = "http://202.197.58.168:8082/index.php?id=1 and %s" # url ...
42.807229
206
0.60456
462defc852304ee01f742d5c95e1725ba17ee3d4
1,107
py
Python
app/models/users.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/models/users.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/models/users.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from app import db class User(db.Model, UserMixin): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(80), unique=True) password_hash = db.Colu...
27.675
73
0.671183
310cde6e8832e67ee497b61797688d86b9ce78a1
425
py
Python
pacman-arch/test/pacman/tests/upgrade002.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/upgrade002.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/upgrade002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade a package (same version)" lp = pmpkg("dummy") lp.files = ["bin/dummy", "usr/man/man1/dummy.1"] self.addpkg2db("local", lp) p = pmpkg("dummy") p.files = ["bin/dummy", "usr/man/man1/dummy.1"] self.addpkg(p) self.args = "-U %s" % p.filename() self.addrule("PACMAN_RETC...
22.368421
53
0.635294
31806cc38ae05b492d80134c3623211fd90473f1
4,725
py
Python
STIX/json_parser.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
STIX/json_parser.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
STIX/json_parser.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
import json from forTime import fortime from parseCon import parseCon # Konstanten fuer die Abfrage TCP_PROTO = 'eth:ethertype:ip:tcp' ARP_PROTO = 'eth:ethertype:arp' liste = [] liste_con = [] liste_src = [] liste_dst = [] liste_src_mac = [] liste_dst_mac = [] i = 0 # File 1 funktioniert nicht wegen eines DecodeErr...
32.8125
206
0.627513
c33be5bce271ec0b8f8eb8af937f874caafec530
43,674
py
Python
etl/clarity2dw/extractor.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/clarity2dw/extractor.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/clarity2dw/extractor.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import functools import time import os import numpy as np import pandas as pd from etl.transforms.primitives.row import transform from etl.load.primitives.row import load_row from etl.load.pipelines.derive_main import derive_main from etl.load.primitives.tbl.derive_helper import * import etl.load.primitives.tbl.load_ta...
43.28444
286
0.622865
5ede1543746a42a5588b107dd63c8c4a1c078b00
2,303
py
Python
HotUpdateDemo/tools/ZipFile.py
Lmz521/CocosCreatorTutorial
43ad296e77bd91b96d75d3bfa79d79a6fbfb3033
[ "Apache-2.0" ]
512
2018-04-24T14:57:38.000Z
2022-03-22T06:23:41.000Z
HotUpdateDemo/tools/ZipFile.py
xlearns/CocosCreatorTutorial
43ad296e77bd91b96d75d3bfa79d79a6fbfb3033
[ "Apache-2.0" ]
2
2019-03-06T14:28:11.000Z
2019-06-30T04:33:43.000Z
HotUpdateDemo/tools/ZipFile.py
xlearns/CocosCreatorTutorial
43ad296e77bd91b96d75d3bfa79d79a6fbfb3033
[ "Apache-2.0" ]
281
2018-03-31T11:03:29.000Z
2022-03-13T13:53:35.000Z
import os import os.path import zipfile import shutil import json relativePath = '' zipDirList = [] def zip_dir(dirname, zipfilename): filelist = [] if os.path.isfile(dirname): filelist.append(dirname) else: for root, dirs, files in os.walk(dirname): for name in files: ...
25.307692
78
0.607034
7df0aa8f849e6b60c227f064a54d9b8a053462d2
5,575
py
Python
official/cv/yolov5/src/backbone.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/yolov5/src/backbone.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/yolov5/src/backbone.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...
32.225434
85
0.555157
8160148a2c420b4c2a8505a97c60bf8d14edca8e
328
py
Python
src/sft/protocol/__init__.py
huykingsofm/FileTransmitter
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
1
2020-08-28T19:06:13.000Z
2020-08-28T19:06:13.000Z
src/sft/protocol/__init__.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
src/sft/protocol/__init__.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
from sft.protocol.definition import SFTRoles from sft.protocol.definition import SFTProtocols DEFAULT_TOKEN = "default" DEFAULT_TOKEN_LIST = ["default", "default1"] DEFAULT_FILE_LIST = ["tests/file.10MB", "tests/file.500MB"] DEFAULT_INT_SIZE = 4 # bytes DEFAULT_TIMEOUT = 60 # seconds DEFAULT_BUFFER_SIZE = 10 ** 7 ...
29.818182
59
0.768293
81be1cf8de3255c6b96ad31cd2b24a74d92ffa36
4,393
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_15_Aufgaben_zeitlich_Planen_und_Programme_starten/01_grundlagen_modul_time_und_datetime.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_15_Aufgaben_zeitlich_Planen_und_Programme_starten/01_grundlagen_modul_time_und_datetime.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_15_Aufgaben_zeitlich_Planen_und_Programme_starten/01_grundlagen_modul_time_und_datetime.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 01_grundlagen_modul_time_und_datetime.py import os, re, time, datetime max_text_length=70 max_text_delta=24 def output(title, string): print('╔'+''.center(max_text_length+8, '═')+'╗') print('║ '+title.center(max_text_length+7).upper()+'║') print('╠'+''.center(max_text_length+8, '═')+'╣') string=str...
89.653061
533
0.741407
4866d9a032e7c1be2b8afa205f8a70a0315e86a4
252
py
Python
scripts/hello_world_gehazi_bispo.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_gehazi_bispo.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_gehazi_bispo.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# LANGUAGE: Python # ENV: Python 3.5 # AUTHOR: Gehazi Bispo # GITHUB: https://github.com/gehazibispo print("Hello World!") # TUTORIALS: # freeCodeCamp: https://guide.freecodecamp.org/python #CodeCademy: https://www.codecademy.com/learn/learn-python
22.909091
58
0.742063
6faa4201e58aa9444757631c17bafa4b491fb36d
2,093
py
Python
classification/scripts/Importer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/Importer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/Importer.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Imports from luigi.contrib.spark import PySparkTask from luigi.parameter import IntParameter from luigi import LocalTarget, Task, WrapperTask from luigi.format import UTF8 from os import listdir import pandas as pd import datetime from configs.Configurations import Configuration...
34.311475
110
0.639752
73c56ad4021c7897f9b9919bba85ad38991002da
4,754
py
Python
research/cv/Pix2Pix/src/dataset/pix2pix_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/Pix2Pix/src/dataset/pix2pix_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/Pix2Pix/src/dataset/pix2pix_dataset.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...
27.639535
118
0.623265
838a6bbfd54e3e594252127f5a125cd72da82a88
888
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/63d1/recursive_count_th/test_count_th.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63d1/recursive_count_th/test_count_th.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/63d1/recursive_count_th/test_count_th.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import unittest import random from count_th import * class Test(unittest.TestCase): def setUp(self): self.word = "" def test_count_th_empty(self): self.word = "" count = count_th(self.word) self.assertEqual(0, count) def test_count_th_single(self): self.word = "ab...
23.368421
38
0.614865
5820cb84a10dcec864fd066b78c9ad04d9176436
322
py
Python
simple-hadoop-hive-demo/mapper.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-hadoop-hive-demo/mapper.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-hadoop-hive-demo/mapper.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
#!/usr/bin/python import sys # 调用标准输入流 for line in sys.stdin: # 读取文本内容 line = line.strip() # 对文本内容分词,形成一个列表 words = line.split() # 读取列表中每一个元素的值 for word in words: # map函数输出,key为word,下一步将进行shuffle过程,将按照key排序,输出,这两步为map阶段工作为,在本地节点进行 print('%s\t%s' % (word, 1)...
23
77
0.586957
5468f24e3bd4c2e2126f7ffdeb6453528dd9eed2
712
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex03_lcs_timing.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex03_lcs_timing.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex03_lcs_timing.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import time from ch07_recursion_advanced.solutions.ex03_lcs import lcs def main(): inputs_tuples = [["ABCMIXCHXAEL", "MICHAEL"], ["sunday-Morning", "saturday-Night-Party"], ...
23.733333
63
0.558989
b744cd348ec13b26955411451a32d47da21dc3ff
559
py
Python
src/bo4e/enum/vertragsstatus.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/vertragsstatus.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/vertragsstatus.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Vertragsstatus(StrEnum): """ Abbildung einer Statusinformation für Verträge. """ IN_ARBEIT = "IN_ARBEIT" #: in Arbeit UEBERMITTELT = "UEBERMITTELT" #: übermittelt ANGENOMMEN = "ANGENOMMEN" #: angenommen ...
27.95
51
0.670841
4d13d48a230096b4e8511a7490fd53f33d3cb171
3,681
py
Python
Packs/ZeroTrustAnalyticsPlatform/Scripts/ZTAPBuildTimeline/ZTAPBuildTimeline.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ZeroTrustAnalyticsPlatform/Scripts/ZTAPBuildTimeline/ZTAPBuildTimeline.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ZeroTrustAnalyticsPlatform/Scripts/ZTAPBuildTimeline/ZTAPBuildTimeline.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from typing import Dict, Any import traceback """ STANDALONE FUNCTION """ def get_description(contents): """ Gets the description of an ZTAP note. Type will be prefixed to the first line of the comment/log. """ note = contents.get("contents") if not note: ...
25.922535
80
0.590329
426db0cad7b1067c503c578e209d4550d6e17439
1,026
py
Python
lib/new.py
nsde/CraftServers
3010df6374dc7711f01c0f9c969afec13c9f32e6
[ "MIT" ]
null
null
null
lib/new.py
nsde/CraftServers
3010df6374dc7711f01c0f9c969afec13c9f32e6
[ "MIT" ]
null
null
null
lib/new.py
nsde/CraftServers
3010df6374dc7711f01c0f9c969afec13c9f32e6
[ "MIT" ]
null
null
null
"""This program is for creating a new server. """ import os import tkinter import install def newProject(): win = tkinter.Tk() win.title("New project") def projectCreate(): projectName = projectNameInp.get() print(projectName) os.mkdir(os.getcwd() + "\\projects\\" + projectName) ...
24.428571
84
0.630604
c420152099357a48aab73388127f02521417d380
142
py
Python
UIUCTF/2021/jail/baby_python_fixed/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
UIUCTF/2021/jail/baby_python_fixed/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
UIUCTF/2021/jail/baby_python_fixed/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import re bad = bool(re.search(r'[a-z\s]', (input := input()))) exec(input) if not bad else print('Input contained bad characters') exit(bad)
28.4
67
0.683099
c44d711c81098e89d3b1818779bace2e8845b9b7
2,909
py
Python
src/lambda_function.py
heinerengelhardt/covid19incidencewatcher
5e6a6ea6a95db6b52d2ff4ba13d0095c0ce9d822
[ "MIT" ]
null
null
null
src/lambda_function.py
heinerengelhardt/covid19incidencewatcher
5e6a6ea6a95db6b52d2ff4ba13d0095c0ce9d822
[ "MIT" ]
null
null
null
src/lambda_function.py
heinerengelhardt/covid19incidencewatcher
5e6a6ea6a95db6b52d2ff4ba13d0095c0ce9d822
[ "MIT" ]
null
null
null
import requests, json, boto3 from decimal import Decimal from boto3.dynamodb.conditions import Key def lambda_handler(event, context): # Initialisierung lk = event['lk'] # Landkreis Bezeichnung aus Event holen lk_id = event['lk_id'] # Landkreis ID aus Event holen bl = event['bl'] #...
49.305085
135
0.640426
db10181481f72bccedbfbbc29a4b426c18db85c2
14,005
py
Python
tests/onegov/org/test_browser.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_browser.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_browser.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest import requests import transaction from datetime import datetime, timedelta from onegov.core.utils import module_path from onegov.directory import DirectoryCollection from onegov.file import FileCollection from tests.shared.utils import create_image from pytz import UTC from sedate import utcnow from tem...
33.266033
78
0.657337
db3809fd4a1fa91a1394352dccba96a8ed36d8ff
15,150
py
Python
src/processing/Processing.py
Phrosten/CodeCompetition_07-2017_BigData
3d9cb8da2164ea2687471375966d77ff7b129a93
[ "Apache-2.0" ]
null
null
null
src/processing/Processing.py
Phrosten/CodeCompetition_07-2017_BigData
3d9cb8da2164ea2687471375966d77ff7b129a93
[ "Apache-2.0" ]
null
null
null
src/processing/Processing.py
Phrosten/CodeCompetition_07-2017_BigData
3d9cb8da2164ea2687471375966d77ff7b129a93
[ "Apache-2.0" ]
null
null
null
import DataItem, Output, PlayerItem TRACKRANGE = 15 # The maximum id a track can have # # Helper Method # def CalculateAverages(data, count): # Calculate the averages of a data list res = [] for i in range(0, len(data)): # Go through every item if(count[i] != 0): re...
46.189024
177
0.627063
c01cababc432062b7fb6ad4bf6fa7e669a1117bf
3,294
py
Python
bigbench/models/test_hf_models.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/models/test_hf_models.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
bigbench/models/test_hf_models.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
31.371429
86
0.675167
58d81170e063cce47c46b6dbccf21a1f61b45b51
979
py
Python
apps/experiments/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/experiments/urls.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/experiments/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.urls import path from apps.experiments import views app_name = 'experiments' urlpatterns = [ path('new/save', views.newESave, name='newESave'), path('new/<int:id>', views.newE, name='new'), # id is the id of the project the new experiment should be added to # path("newexperiments/intderivate" ,...
54.388889
117
0.717058
18f38b8153c6972f11700ad5aedd8bb5a31400f6
379
py
Python
pacman-arch/test/pacman/tests/sync200.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/sync200.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/sync200.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Synchronize the local database" self.option['XferCommand'] = ['/usr/bin/curl %u -o %o'] sp1 = pmpkg("spkg1", "1.0-1") sp1.depends = ["spkg2"] sp2 = pmpkg("spkg2", "2.0-1") sp2.depends = ["spkg3"] sp3 = pmpkg("spkg3", "3.0-1") sp3.depends = ["spkg1"] for sp in sp1, sp2, sp3: self.addpkg2db("sync"...
21.055556
55
0.633245
e1633cb4503e997d6e94a46c1f3d921bd3a96cf1
4,555
py
Python
Packs/CommonScripts/Scripts/GetlistRow/GetListRow_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/GetlistRow/GetListRow_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/GetlistRow/GetListRow_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest from CommonServerPython import * RETURN_ERROR_TARGET = 'GetListRow.return_error' DATA_WITH_CUSTOM_SEP = [{"Contents": "name;id\nname1;id1\nname2;id2"}] DATA_WITH_NEW_LINE_SEP = [{"Contents": "name\nid\nname1\nid1\nname2\nid2"}] @pytest.mark.parametrize( "parse_all, header, value, expected", [ ...
37.958333
111
0.615148
55e478c86e25c57e050ec6e4db8404da6d32ba63
1,172
py
Python
Curso-Em-Video-Python/2Exercicios/091_jogos_de_dados_em_python.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/091_jogos_de_dados_em_python.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/091_jogos_de_dados_em_python.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
''' from random import randint from time import sleep from operator import itemgetter dado = {'jogador1': randint(0, 6), 'jogador2': randint(0, 6), 'jogador3': randint(0, 6), 'jogador4': randint(0, 6)} ranking = list() print('=-'*12) print(f'{"valores sorteados":^24}') print('=-'*12) for c, i in...
27.255814
63
0.596416
36c72a4dbb965ef786bda3700b9df42045d1e98f
13,159
py
Python
fhirclient/r4models/procedure.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/procedure.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/procedure.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Procedure) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class Procedure(domainresource.DomainResource): """ An action that is being or was performed ...
42.448387
107
0.606733
7ff943e3b5bc2bca49754a77ca42ada683852160
3,816
py
Python
extract/main.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
extract/main.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
extract/main.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
import re from pathlib import Path from shutil import rmtree import click from pyspark.sql import SparkSession, DataFrame from extract.extract_strategies import ( LinkgraphStrategy, PlaintextStrategy, NoBoilerplateStrategy, TweetStrategy, ) @click.command() @click.option( "--derivative", typ...
38.16
87
0.579927
18421a80802cbf5568ace04f8185e279a4719513
6,401
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/route.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/route.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/route.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "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) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.eclipse.org/legal/epl-2....
43.842466
117
0.535698
a11d04b0f07e09480aafb89269eab73003d7ef93
642
py
Python
challenges/isSum/python3/isSum.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/isSum/python3/isSum.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/isSum/python3/isSum.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def isSum(value): i = 1 while value > 0: value -= i i += 1 return value == 0 if __name__ == '__main__': input0 = [10, 11, 100, 42, 110, 45, 82, 55, 400, 321] expectedOutput = [True, False, False, False, False, True, False, True, False, False] assert len(input0) == len(expectedOutput), '# input0 = {}, # expec...
42.8
123
0.663551
a18d928c71bf3b038add8bb15089cd00e8ad14e8
1,615
py
Python
official/nlp/gru/src/gru_for_infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/gru/src/gru_for_infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/gru/src/gru_for_infer.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...
37.55814
88
0.678019
62e0289dec04154205ad6ada14cdbe7356860b23
573
py
Python
hodiny.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
hodiny.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
hodiny.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
def fromDHMtoH(d: float, h: float, m: float) -> float: """Převede čas ve formátu d,h,m na hodiny. Parametry --------- :: d: float - dny h: float - hodiny m: float - minuty Výstup ------ :: float - hodiny """ for i in (d,h,m): if type(i) not i...
24.913043
125
0.52007
c53705e05da25656bdd87e75d4baf52d666667f7
888
py
Python
Contests/Mock CCC '19 Contest 1 J3 - Pusheen Eats Tuna Sashimi and Tuna Nigiri.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/Mock CCC '19 Contest 1 J3 - Pusheen Eats Tuna Sashimi and Tuna Nigiri.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/Mock CCC '19 Contest 1 J3 - Pusheen Eats Tuna Sashimi and Tuna Nigiri.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
import sys input = sys.stdin.readline for i in range(int(input())): found = False q = list(map(int, input().split())) if (q[2] / q[0] == q[2] // q[0] or q[2] / q[1] == q[2] // q[1]): print("YES") else: att = [q[0], q[1]] l = 2 c = 0 while True: lul = ...
26.909091
68
0.313063
c53c3a76abefdd3d32082882fec8693b62fb8537
6,224
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/lxd.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/module_utils/lxd.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/module_utils/lxd.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# -*- coding: utf-8 -*- # (c) 2016, Hiroaki Nakamura <hnakamur@gmail.com> # # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to th...
43.524476
120
0.669344
c576d4901ace68bf94b6bfb8d27bcb61d6279d11
1,628
py
Python
CareerTinderServer/CareerTinder/migrations/0001_initial.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/migrations/0001_initial.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/migrations/0001_initial.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-17 19:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
37
119
0.583538
3dde16687f511f9b4fc1497d8cccb0f9f02a7715
854
py
Python
Chapter4_NN/Chapter4_1_SingleLayerPerceptron/logicOrPerceptron.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
11
2020-10-12T14:06:31.000Z
2022-02-22T09:16:32.000Z
Chapter4_NN/Chapter4_1_SingleLayerPerceptron/logicOrPerceptron.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter4_NN/Chapter4_1_SingleLayerPerceptron/logicOrPerceptron.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
8
2020-10-29T07:53:49.000Z
2022-03-17T11:01:20.000Z
from typing import Tuple import numpy as np def get_dataset() -> Tuple[np.ndarray, np.ndarray]: """OR dataset.""" x = np.array([[0, 0], [1, 0], [0, 1], [1, 1]]) y = np.array([[0], [1], [1], [1]]) return x, y def accuracy_score(y_true: np.ndarray, y_pred: np.ndarray) -> float: pass def step_fu...
20.333333
88
0.58548
4998adf499da65b2c494249d868b1399d377302c
1,444
py
Python
data-structures/week3_hash_tables/1_phone_book/phone_book.py
yiping-wang/data-structures-and-algorithms-coursera
fc0ba34399c27b358ce52a323a52ab2eb095f156
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Data Structures & Algorithms/Algorithm Toolbox/week3_hash_tables/1_phone_book/phone_book.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
6
2020-05-24T13:36:50.000Z
2022-02-15T06:44:20.000Z
Data Structures & Algorithms/Algorithm Toolbox/week3_hash_tables/1_phone_book/phone_book.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
# python3 class Query: def __init__(self, query): self.type = query[0] self.number = int(query[1]) if self.type == 'add': self.name = query[2] def read_queries(): n = int(input()) return [Query(input().split()) for i in range(n)] def write_responses(result): print(...
30.083333
64
0.540166
772e7000b4cb0bb2fa90d315925c47f53c1e75bb
460
py
Python
exercises/fr/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): import spacy.tokens import spacy.lang.es assert isinstance( nlp, spacy.lang.es.Spanish ), "L'objet nlp doit être une instance de la classe Spanish." assert isinstance( doc, spacy.tokens.Doc ), "As-tu traité le texte avec l'objet nlp pour créer un doc ?" assert "p...
32.857143
78
0.667391
775b26a546f74f4cb52fbf6bbb5e455e0451208c
148
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.02-built-in-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.02-built-in-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.02-built-in-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
marks = [55, 64, 75, 80, 34] length = len(marks) print("Length is", length) marks_sum = sum(marks) print("The total makrs you got is", marks_sum)
18.5
46
0.675676
6581ee1d7b1ff8fb43d84732d675547953cb7a07
1,499
py
Python
beispielanwendungen/designer/ui_hellodialog.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/designer/ui_hellodialog.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/designer/ui_hellodialog.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'hellodialog.ui' # # Created: Sat May 28 12:22:22 2011 # by: PyQt4 UI code generator 4.8.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf...
39.447368
129
0.701134
6584fed53cde2780bd76488ec740588a52029d35
3,947
py
Python
ui/ecManRemoteTerminal.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
ui/ecManRemoteTerminal.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
9
2019-05-11T19:53:01.000Z
2020-11-10T07:24:14.000Z
ui/ecManRemoteTerminal.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
# from worker.computer import Computer from PySide2.QtCore import Qt from PySide2.QtWidgets import QApplication, QDialog,QTextEdit import xml.etree.ElementTree as ET from ui.remoteTerminal import Ui_Dialog from worker.computer import Computer class EcManRemoteTerminal(QDialog): """ QDialog based remote admin ...
39.868687
122
0.635926
65ac8365ce9dcfdaf5b086b00bc0fb4991b98117
1,035
py
Python
official/cv/MCNN/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/MCNN/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/MCNN/src/config.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...
33.387097
78
0.663768
b881b0cc680279a96ddb0517b606538b0164faa4
1,322
gyp
Python
bsp-gonk/vendor/silk/silk-speaker/binding.gyp
silklabs/silk
08c273949086350aeddd8e23e92f0f79243f446f
[ "MIT" ]
172
2016-06-07T09:02:34.000Z
2022-03-18T07:43:55.000Z
bsp-gonk/vendor/silk/silk-speaker/binding.gyp
silklabs/silk
08c273949086350aeddd8e23e92f0f79243f446f
[ "MIT" ]
24
2016-06-08T08:09:39.000Z
2017-09-08T04:15:51.000Z
bsp-gonk/vendor/silk/silk-speaker/binding.gyp
silklabs/silk
08c273949086350aeddd8e23e92f0f79243f446f
[ "MIT" ]
37
2016-06-08T16:56:14.000Z
2021-10-05T09:49:08.000Z
{ "variables": { "library_type%": "loadable_module", }, "targets": [ { "target_name": "silk-speaker", "type": "<(library_type)", "include_dirs": [ "<!(node -e \"require('nan')\")", ], "conditions": [ [ "OS==\"android\"", { "sources": [ "...
25.423077
71
0.444781
b23fdeaacffd63e1b7c7fc32442bb6c3970cc972
1,000
py
Python
config/base_setting.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
1
2020-03-24T04:26:34.000Z
2020-03-24T04:26:34.000Z
config/base_setting.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
config/base_setting.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- SERVER_PORT = 8888 DEBUG = False SQLALCHEMY_ECHO = False AUTH_COOKIE_NAME = "mooc_food" SEO_TITLE = "Python Flask构建微信小程序订餐系统" # 过滤url IGNORE_URLS = [ "^/user/login" ] IGNORE_CHECK_LOGIN_URLS = [ "^/static", "^/favicon.ico" ] API_IGNORE_URLS = [ "^/api" ] PAGE_SIZE = 2 PAGE_D...
15.873016
53
0.563
a22dd0fce88a4ea77ec0b416fa9c28d316a6f1be
4,781
py
Python
dcapy/dca/dca.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
4
2021-05-21T13:26:10.000Z
2021-11-15T17:17:01.000Z
dcapy/dca/dca.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
null
null
null
dcapy/dca/dca.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from pydantic import BaseModel, Field, validator, Extra import pandas as pd from typing import List, Optional, Union, Dict from datetime import date from scipy import stats from .timeconverter import FreqEnum class DCA(ABC): """ Declare the DCA abstract Class that can be s...
34.89781
105
0.649237
a2b3cb634eabe7c3c1cb7984da3c0b653c5f2c86
2,384
py
Python
Utils/py/GoPro/utils/GameController.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/GameController.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/utils/GameController.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import threading, socket from utils import Logger, blackboard from utils.GameControlData import GameControlData GAME_CONTROLLER_PORT = 3838 # setup logger for network related logs logger = Logger.getLogger("GameController") class GameController(threading.Thread): """ The GameController class is used to rece...
32.657534
118
0.611997
ac26d282de8567d4a1f0fd970ac1bd2b1294af77
1,204
py
Python
.meta/add_readme.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
.meta/add_readme.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
.meta/add_readme.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
#!/usr/bin/env python import os from os import listdir from os.path import isfile, join import logging import sys logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.DEBUG, stream=sys.stdout) def create_readme(directory): project_name = os.p...
31.684211
79
0.58887
ce1fc41bda38fca11a6fa73ee129a430a6784d10
638
py
Python
Hackerrank_problems/Triangle_Quest_2/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Triangle_Quest_2/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Triangle_Quest_2/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' A positive integer N. The task is to print a palindromic triangle of size N. For example, a palindromic triangle of size is: 1 121 12321 1234321 123454321 ''' #Here in for loop the range from 1 to input+1 #It prints the number raised to power 10 and then divide by 9 and the whole result is having power 2. #Th...
22.785714
102
0.706897
cbf679c7e9f58b70b1287607c4e42d65fe3f1618
859
py
Python
SQL_python/DataBasePython/functionCallSql.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
SQL_python/DataBasePython/functionCallSql.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
SQL_python/DataBasePython/functionCallSql.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
import psycopg2 import sys for eachArg in sys.argv: print(eachArg) # conn = psycopg2.connect("dbname='postgres' user='postgres' host='localhost' password='dbpass'") # cur = conn.cursor() # p_max = int(sys.argv[1]) # #print(p_max) # cur.execute("""select players_young(%s)""",[p_max]) # x = cur.fetchone()[0] # pr...
26.030303
97
0.653085
5a4262ec89341d1c767900d16f41d5eebe15b4fe
589
py
Python
src/doc/tutorials/tutorial_examples/scripting/listing_2_animating_an_isosurface.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/doc/tutorials/tutorial_examples/scripting/listing_2_animating_an_isosurface.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/doc/tutorials/tutorial_examples/scripting/listing_2_animating_an_isosurface.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
########################################### # file: VisIt Scripting Tutorial Listing 2 ########################################### # # 1) Open VisIt # 2) Open 'example.silo' # 3) Paste and execute via the Commands window, or the CLI. # DeleteAllPlots() AddPlot("Pseudocolor", "temp") iso_atts = IsosurfaceAttributes() i...
26.772727
59
0.619694
0cb9e3943c9c8b1f9da86472654a44d87fd9df7e
9,819
py
Python
Packs/WootCloud/Integrations/WootCloud/WootCloud.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/WootCloud/Integrations/WootCloud/WootCloud.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/WootCloud/Integrations/WootCloud/WootCloud.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 * ''' IMPORTS ''' import json import requests from datetime import datetime # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBALS/PARAMS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' CLIENT_ID =...
39.276
115
0.606579
332c622adc893d1287667e0ecd3040e7f6103164
184
py
Python
Exercicios/ex09-4b.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-4b.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-4b.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
#conversao de kelvin para celsius kelvin = float(input('Informe a temperatura em Kelvin:')) celsius = kelvin - 273.15 msg = 'Temperatura em Celsius: {}' print(msg.format(celsius))
18.4
57
0.722826
3361b1ba3dea24f851b2ba26e7161df1f5d8ff32
1,074
py
Python
vorl9b.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl9b.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl9b.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 9. Vorlesung 28.11.2020, Skript Python 5 (07_Python_05.pdf) # Nachholtermin vom 26.11. 20 Uhr ohne Übungen # Übung: +Bilder rotieren import cv2 scale = 1.0 rotation = 0 filename = "cube2_1.jpg" while True: image = cv2.imread(filename, cv2.IMREAD_COLOR) image_resized = cv2.resize(image, None, fx=scal...
30.685714
94
0.657356
f0f1ef89701fa31cd3e8a59c195822abb95c04be
422
py
Python
Problems/Two Pointers/easy/LongPressedName/test_long_pressed_name.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/LongPressedName/test_long_pressed_name.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/LongPressedName/test_long_pressed_name.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from long_pressed_name import isLongPressedName class Test(TestCase): def test_is_long_pressed_name(self): self.assertEqual(isLongPressedName("alex", "aaleex"), True) self.assertEqual(isLongPressedName("saeed", "ssaaedd"), False) self.assertEqual(isLongPressedN...
46.888889
71
0.739336
f0fb371f83bd1cb1021f40991a864196d563777c
5,334
py
Python
files/meas/Experiment_01/03_DCsweep.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
files/meas/Experiment_01/03_DCsweep.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
files/meas/Experiment_01/03_DCsweep.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 12 19:16:39 2019 @author: Selim Cimen """ import sys import time import numpy as np from redpitaya import redpitaya_scpi as scpi # import matplotlib.pyplot as plt # Parameter für die Messung Start_V = -0.5 ...
49.388889
115
0.526059
0b02c3bc636fc42bb0fe59ffda4f58d867ed0e8d
821
bzl
Python
build/workspace.bzl
78182648/blibli-go
7c717cc07073ff3397397fd3c01aa93234b142e3
[ "MIT" ]
22
2019-04-27T06:44:41.000Z
2022-02-04T16:54:14.000Z
build/workspace.bzl
YouthAge/blibli-go
7c717cc07073ff3397397fd3c01aa93234b142e3
[ "MIT" ]
null
null
null
build/workspace.bzl
YouthAge/blibli-go
7c717cc07073ff3397397fd3c01aa93234b142e3
[ "MIT" ]
34
2019-05-07T08:22:27.000Z
2022-03-25T08:14:56.000Z
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("//vendor:repo.bzl", "bili_http_archive") # Sanitize a dependency so that it works correctly from code that includes # TensorFlow as a submodule. def clean_dep(dep): return str(Label(dep)) # If TensorFlow is linked as a submodule. # pa...
32.84
82
0.7162
505956410103e0a46263c95db06773a70041e254
196
py
Python
plugins/filters/suffix.py
ssube/k8s-shards
8ce3464f4a7e96289c9b5f2b259de21d5d873815
[ "MIT" ]
1
2019-08-29T19:45:01.000Z
2019-08-29T19:45:01.000Z
plugins/filters/suffix.py
ssube/k8s-shards
8ce3464f4a7e96289c9b5f2b259de21d5d873815
[ "MIT" ]
null
null
null
plugins/filters/suffix.py
ssube/k8s-shards
8ce3464f4a7e96289c9b5f2b259de21d5d873815
[ "MIT" ]
null
null
null
def format_list(list_, *suffix): sl = list(suffix) return [''.join([it] + sl) for it in list_] class FilterModule(object): def filters(self): return { 'suffix': format_list, }
21.777778
45
0.627551
76799839bf820bb7da15780dcf45f161c73c1ed3
1,251
py
Python
Chapter10_RNN/imdbData.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter10_RNN/imdbData.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter10_RNN/imdbData.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.keras.datasets import imdb from tensorflow.keras.preprocessing import sequence from tensorflow.keras.utils import to_categorical class IMDBData: def __init__( self, num_words: int, skip_top: int, maxlen: int ) -> None: # D...
31.275
83
0.597122
8c047cb390051e93414d8db17051f9ee1f9f3373
943
py
Python
src/classifier/data_processing/annotate/metrics.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/data_processing/annotate/metrics.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/data_processing/annotate/metrics.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import pandas as pd from nltk import agreement from sklearn.metrics import cohen_kappa_score def fleiss_kappa(data, annotator_names): formatted_codes = [] for j, annotator in enumerate(annotator_names): formatted_codes += [[j, i, val] for i, val in enumerate(data[annotator])] ratingtask = agreem...
32.517241
83
0.672322
4feb13efc06ed417db9520bd38e952b1ceea5031
10,042
py
Python
official/cv/mobilenetv2/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/mobilenetv2/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/mobilenetv2/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.830357
116
0.644792
50c47568ade8b5410c750d7bd7075a98341e2168
122
py
Python
python/counter/counter_get_values.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/counter/counter_get_values.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/counter/counter_get_values.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import collections c = collections.Counter("abcdaab") for letter in "abcde": print(f"{letter} : {c[letter]}")
17.428571
37
0.639344
0fd5020768cfc18ef43945bcb4557f2fb31270f7
8,656
py
Python
research/cv/RCAN/src/rcan_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/RCAN/src/rcan_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/RCAN/src/rcan_model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.486056
108
0.57128
e83a2cbc32f0c63e47ed1234f0693a861aa9c53f
3,716
py
Python
app.py
nameyeh/sql-02
08b723b9f995dccc0e6f1b81d21d168a9942e2ed
[ "MIT" ]
null
null
null
app.py
nameyeh/sql-02
08b723b9f995dccc0e6f1b81d21d168a9942e2ed
[ "MIT" ]
null
null
null
app.py
nameyeh/sql-02
08b723b9f995dccc0e6f1b81d21d168a9942e2ed
[ "MIT" ]
null
null
null
# Import dependencies import pandas as pd import numpy as np import datetime as datetime import os from sqlalchemy import Column, Float, Integer, String from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, inspect, func, desc from flask import Flask...
30.966667
135
0.677072
0e4fa5e41030b3d66cb36e149f58a63a70fb79ab
2,334
py
Python
rattler/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
rattler/urls.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
rattler/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
"""rattler URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
37.645161
79
0.659811
7ef1b60c1641b381880562d58502cb030db57fc5
3,269
py
Python
apps/mainloop_and_utils/paparazzi.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/mainloop_and_utils/paparazzi.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/mainloop_and_utils/paparazzi.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import cv2 import time import robolib.modelmanager.downloader as downloader import os import shutil import robolib.datamanager.datadir as datadir def take_pictures(group): name = input("Name (exit group with blank): ") if name == "": return False image_dir = datadir.paparazzi_output(name, group) ...
33.357143
133
0.539003
adcac95fde10753f0fb98abdd7a5c66eb8b94fd2
17,398
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/ftd/test_fdm_swagger_parser.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/ftd/test_fdm_swagger_parser.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/ftd/test_fdm_swagger_parser.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Cisco and/or its affiliates. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
45.784211
118
0.388033
1dc8a74f4f62e1b3256589d6e3d7c91b95f9fa5b
2,786
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/ocsaudit_log.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/ocsaudit_log.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/commonapi/ocsaudit_log.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. import os ...
27.86
98
0.629576
1dc9fe6cfde40610a7d0d199a5ba506e700a872c
1,301
py
Python
src/onegov/gazette/forms/category.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/forms/category.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/forms/category.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import Form from onegov.form.validators import UniqueColumnValue from onegov.gazette import _ from onegov.gazette.models import Category from onegov.gazette.models import GazetteNotice from onegov.gazette.validators import UnusedColumnKeyValue from wtforms import BooleanField from wtforms import String...
27.104167
69
0.654112
387dfa273381d28585309bbdb01c9afc54833008
1,382
py
Python
packages/std/nodes/std___Clock0/widgets/std___Clock0___TimeDelaySlider___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___Clock0/widgets/std___Clock0___TimeDelaySlider___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___Clock0/widgets/std___Clock0___TimeDelaySlider___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
# from PySide2.QtWidgets import ... from PySide2.QtCore import Qt # from PySide2.QtGui import ... from PySide2.QtWidgets import QSlider class %INPUT_WIDGET_TITLE%_PortInstanceWidget(QSlider): def __init__(self, parent_port_instance, parent_node_instance): super(%INPUT_WIDGET_TITLE%_PortInstanceWidget, se...
30.711111
86
0.628799