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
99ffcafc9796089a1c41e3f68f16c3f6c517c282
7,109
py
Python
research/cv/resnetv2/modelarts/resnetv2_101/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/resnetv2/modelarts/resnetv2_101/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/resnetv2/modelarts/resnetv2_101/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 3.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 a...
42.568862
117
0.685469
68f308f2db85267cfb951b483f57e2eeb2382c11
2,450
py
Python
features/clock.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
features/clock.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
features/clock.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
import time from datetime import datetime from features.feature import Feature from field import Field from numbersforwatch import Number from painter import RGB_Field_Painter, Led_Matrix_Painter class Clock(Feature): def __init__(self, field_leds: Field, field_matrix: Field, rgb_field_painter: RGB_Field_Painter,...
35
100
0.654286
d45c49b429f393fbac074b0e693428b43918040b
2,072
py
Python
test/test_npu/test_mean.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_mean.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_mean.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
36.350877
141
0.692085
2e54a56a79c815de1a55fc7b540dc5440e79dd00
2,851
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_vrouter_bgp_network.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright: (c) 2018, Pluribus Networks # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_coll...
45.983871
148
0.687829
cf214e5984270fc5eab403dc4e99a9d0ad497e55
1,138
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_01_bis_03/02_kapitel_03_repetitionsaufgabe_2.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_01_bis_03/02_kapitel_03_repetitionsaufgabe_2.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_01_bis_03/02_kapitel_03_repetitionsaufgabe_2.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 01_kapitel_03_repetitionsaufgabe_2.py # Project: Buch_Python3_Das_umfassende_Praxisbuch # Created Date: Friday 22.02.2019, 19:59 # Author: Apop85 # ----- # Last Modified: Friday 22.02.2019, 20:10 # ----- # Copyright (c) 2019 Apop85 # This software is published u...
40.642857
97
0.710896
9911a12d0f5ab08a7dd13d19f83dee3ba6311aaa
235
py
Python
src/building_cost_analysis/settings.py
mike199011/building_cost_analysis
897fe3fddf882099c279a4fe855da0f5f3dff56a
[ "MIT" ]
null
null
null
src/building_cost_analysis/settings.py
mike199011/building_cost_analysis
897fe3fddf882099c279a4fe855da0f5f3dff56a
[ "MIT" ]
null
null
null
src/building_cost_analysis/settings.py
mike199011/building_cost_analysis
897fe3fddf882099c279a4fe855da0f5f3dff56a
[ "MIT" ]
null
null
null
path_gewerke = r'C:\Users\Michael\Google Drive\Projekt_Palast\Finanzen\Kostenberechung\Kostenberechnung_Gewerke.xlsx' dir_angebote = r'C:\Users\Michael\Google Drive\Projekt_Palast\Finanzen\Kostenberechung\Analyse' path_ausgaben = None
58.75
117
0.851064
32135ac8724d4312acd825677a929acdf055bb6e
1,123
py
Python
tests/test_lin_reg.py
samanmon/che696_fall2018
07a141d2655cbf4bfefae0fadb4fadff9c2b09b8
[ "MIT" ]
null
null
null
tests/test_lin_reg.py
samanmon/che696_fall2018
07a141d2655cbf4bfefae0fadb4fadff9c2b09b8
[ "MIT" ]
null
null
null
tests/test_lin_reg.py
samanmon/che696_fall2018
07a141d2655cbf4bfefae0fadb4fadff9c2b09b8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `lin_reg` package.""" import unittest from click.testing import CliRunner import numpy as np from numpy.core.multiarray import ndarray from lin_reg import lin_reg from lin_reg.lin_reg import regr from lin_reg import cli class TestLin_reg(unittest.TestCase)...
26.738095
74
0.621549
5ccff63e0bf2e80e2ecdf9144c09745275ef4be7
597
py
Python
src/formatQAWoContext.py
stasj145/Bachelorarbeit-Texterzeugungsmodelle
a62519d7b1f7288927811a0bac76c4db4f0c1129
[ "Apache-2.0" ]
null
null
null
src/formatQAWoContext.py
stasj145/Bachelorarbeit-Texterzeugungsmodelle
a62519d7b1f7288927811a0bac76c4db4f0c1129
[ "Apache-2.0" ]
null
null
null
src/formatQAWoContext.py
stasj145/Bachelorarbeit-Texterzeugungsmodelle
a62519d7b1f7288927811a0bac76c4db4f0c1129
[ "Apache-2.0" ]
null
null
null
import pandas import io colnames = ['csvindex', 'text', 'questions', 'id', "answer_start", "answers"] data = pandas.read_csv('../data/SQuAD_csv.csv', names=colnames) text=data.text.tolist() questions=data.questions.tolist() answers=data.answers.tolist() c, q, a, e = "<|startoftext|>", "\n[QUESTION]:", "\n[ANSWER]:", ...
22.961538
83
0.646566
8ff4c3637e80724e9f84935be7ceec494989f82c
2,259
py
Python
official/cv/ssd/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ssd/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ssd/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.948276
100
0.674635
56ad9811c471d41fedf4759ddcb082b86cfcf82f
263
py
Python
usuario/urls.py
joaogabriel15/spfc
74e0fb79cfe64001fe55fea07aa80d61fa76b2e4
[ "MIT" ]
null
null
null
usuario/urls.py
joaogabriel15/spfc
74e0fb79cfe64001fe55fea07aa80d61fa76b2e4
[ "MIT" ]
null
null
null
usuario/urls.py
joaogabriel15/spfc
74e0fb79cfe64001fe55fea07aa80d61fa76b2e4
[ "MIT" ]
null
null
null
from django.contrib.auth import logout from django.urls import path, include from . import views urlpatterns = [ path('', views.logar, name='login'), path('login/', views.logar, name='login'), path('logout/', views.deslogar, name ='logout'), ]
20.230769
52
0.661597
8537d9835e695ccf40749d1381ab70b7fc61772d
536
py
Python
Language Proficiency/Python/Strings/The Minion Game/minion_game.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Strings/The Minion Game/minion_game.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Strings/The Minion Game/minion_game.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 vowels = "AEIOU" def minion_game(string): # your code goes here stuart_score = 0 kevin_score = 0 for i in range(len(s)): if s[i] in vowels: kevin_score += len(s) - i else: stuart_score += len(s) - i if kevin_score > stuart_score: ...
18.482759
42
0.565299
2d2f85346b821f74a6db2852a46b1c7ae38a9600
1,275
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/fundamental/delegation_pattern.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/fundamental/delegation_pattern.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/fundamental/delegation_pattern.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Reference: https://en.wikipedia.org/wiki/Delegation_pattern Author: https://github.com/IuryAlves *TL;DR Allows object composition to achieve the same code reuse as inheritance. """ from __future__ import annotations from typing import Any, Callable, Union class Delegator: """ >>> delegator = Delegator(...
21.982759
72
0.642353
748541cb8e9d7305b2398125abeaf9d08db632f3
249
py
Python
Tutorials/Statistics/Normal_distribution.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Normal_distribution.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Normal_distribution.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/s10-normal-distribution-2/problem mean = 70 sd = 10 #P(X>80) x = 80 z = (x - mean) / sd Z = 1.0 A = 0.84134 p_x_80 = 1 - A print(round(p_x_80,2)) #P(X>=60) x = 60 z = (x - mean) / sd Z = -1.0 A = #P(X<60)
12.45
73
0.574297
77b25d4247d730a8da12f5c8028edd360b7d1baf
688
py
Python
train_inference/MNIST Dataset Recognition/codes/customize_service.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
train_inference/MNIST Dataset Recognition/codes/customize_service.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
train_inference/MNIST Dataset Recognition/codes/customize_service.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
from PIL import Image import numpy as np import tensorflow as tf from model_service.tfserving_model_service import TfServingBaseService class mnist_service(TfServingBaseService): def _preprocess(self, data): preprocessed_data = {} for k, v in data.items(): for file_name, file_content in v.items(): ...
25.481481
70
0.69186
bb5054f1492653e62515d661a97b305e7ddeaa3c
83
py
Python
addition_module/DMUE/losses/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/DMUE/losses/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/DMUE/losses/__init__.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
from .softLoss import SoftLoss, SoftLoss_normal from .SP_KD_Loss import SP_KD_Loss
27.666667
47
0.855422
24ba8b4292b56d610ecbdfe5f1068966f4616b23
2,488
py
Python
engine/jsonCollection.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/jsonCollection.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/jsonCollection.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import random class Collection: def __init__(self, path=""): self.difficulties = dict() self.pools = dict() if path == "": self.difficulties = {0: 50, 1: 100, 2: 200, 3: 300, 4: 500, 5: 1000, 6: 2000, 7: 4000, 8: 8000, 9: 16000, ...
36.057971
156
0.507235
796a43a0dd2fd444e0f30f99572155da39dd43f6
6,183
py
Python
zencad/libs/kinematic.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/libs/kinematic.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/libs/kinematic.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import zencad.assemble import zencad.libs.screw import numpy import time from abc import ABC, abstractmethod from zencad.assemble import kinematic_unit class kinematic_chain: """Объект-алгоритм управления участком кинематической чепи от точки выхода, до точки входа. Порядок следования обратный, потому ...
29.303318
87
0.535824
79b2816c83b6d91c5b22972b32c6c4d5416b5aaa
564
py
Python
src/backend/config.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-24T14:12:09.000Z
2020-03-25T07:43:10.000Z
src/backend/config.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-23T11:56:03.000Z
2020-03-24T13:50:14.000Z
src/backend/config.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-20T22:00:58.000Z
2020-03-21T00:11:45.000Z
######### # Default (development) values # overwrite in instance/config.py ######### CORS_ORIGIN = "*" HOSTNAME = "localhost" SEND_SMS = "DEBUG" # options: "AWS", "SPRYNG", "DEBUG" (default) # API keys for AWS AWS_ACCESS_KEY_ID = "" AWS_SECRET_ACCESS_KEY = "" SPRYNG_API_URL = "" SPRYNG_API_BEARER_TOKEN = "" SPRYNG_...
22.56
65
0.721631
eb8b5250e171931898e9bf2c3624fbc78354cd5c
826
py
Python
ciphey/basemods/Decoders/url.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
2
2020-09-28T23:27:22.000Z
2021-09-09T17:24:26.000Z
ciphey/basemods/Decoders/url.py
drpacket/Ciphey
b46e00c611ee4b5f5795e967a50b05a63cbb5ef0
[ "MIT" ]
1
2020-10-06T09:18:17.000Z
2020-10-06T09:18:17.000Z
ciphey/basemods/Decoders/url.py
drpacket/Ciphey
b46e00c611ee4b5f5795e967a50b05a63cbb5ef0
[ "MIT" ]
1
2021-02-13T13:10:13.000Z
2021-02-13T13:10:13.000Z
from typing import Optional, Dict, List from ciphey.iface import Config, ParamSpec, T, U, Decoder, registry from urllib.parse import unquote_plus @registry.register class Url(Decoder[str, str]): def decode(self, ctext: T) -> Optional[U]: """ Performs URL decoding """ try: ...
22.324324
67
0.575061
ebc4b8877f450357aeecef1eac599789db2cbd3f
124
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/103_sobreposicao_de_membros/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/103_sobreposicao_de_membros/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/103_sobreposicao_de_membros/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from classes import * c1 = Cliente('Pedro', 23) c1.comprar() print() c2 = ClienteVip('Rose', 25, 'Paula') c2.falar()
8.857143
36
0.620968
cceaa1dde18416d633f3357f1ad781584903faad
1,421
py
Python
Backend/migrations/alembic/versions/f8791d49d830_create_bed_capacity_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/f8791d49d830_create_bed_capacity_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/f8791d49d830_create_bed_capacity_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create bed_capacity table Revision ID: f8791d49d830 Revises: b84312f6532e Create Date: 2020-11-26 15:22:19.299937 """ from alembic import op # revision identifiers, used by Alembic. revision = 'f8791d49d830' down_revision = '4fcda072e8c6' branch_labels = None depends_on = None def upgrade(): op.get_bind().e...
28.42
82
0.635468
d6810632b0e18c87719e85c2924abd43a5233b08
57
py
Python
books/python_workout/code_examples/killerapp/dothings.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
books/python_workout/code_examples/killerapp/dothings.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
books/python_workout/code_examples/killerapp/dothings.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
def do_something(): print(f'Dies ist do_something')
14.25
35
0.701754
d6a1b6fdf8ab530898c05cae4d6567a042290897
3,094
py
Python
collage.py
Video-Captioning/Overview
5afb31db5d39ca0925cd07ba459f33ded05aed97
[ "BSD-3-Clause-Clear" ]
null
null
null
collage.py
Video-Captioning/Overview
5afb31db5d39ca0925cd07ba459f33ded05aed97
[ "BSD-3-Clause-Clear" ]
null
null
null
collage.py
Video-Captioning/Overview
5afb31db5d39ca0925cd07ba459f33ded05aed97
[ "BSD-3-Clause-Clear" ]
null
null
null
# Adapted from https://gist.github.com/npenzin/f884aa0258db6cc76639 from PIL import Image, ImageOps #from wand.image import Image as wimage import os import sys import glob import zlib import numpy as np PATH = './img/' IMAGES = glob.glob(PATH+'*.png') COLS = 2 ROWS = 2 DEFAULT_SIZE = 600 DEFAULT_PADDING = 60 DEFAUL...
31.896907
91
0.572075
79f74a5c2798effd0695db980ed5ae8fa33fc2f3
255
py
Python
register.py
bank-manage/Bank
1e88bde04b8c1cd59513844457b3db9ed739bfeb
[ "Apache-2.0" ]
null
null
null
register.py
bank-manage/Bank
1e88bde04b8c1cd59513844457b3db9ed739bfeb
[ "Apache-2.0" ]
null
null
null
register.py
bank-manage/Bank
1e88bde04b8c1cd59513844457b3db9ed739bfeb
[ "Apache-2.0" ]
null
null
null
print('------注册界面----------') bank = {} def register(): username =input('输入用户名:') password = input('输入密码:') password1 =input('确认密码:') if username not in bank: if password == password1: bank[username]=[password,0] else: print('用户已存在!请直接登录!')
19.615385
31
0.607843
030ed0866df5eb52eacc82af3ba8834b8fc2ae58
2,686
py
Python
ppyt/exceptions.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/exceptions.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/exceptions.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import os class NoDataError(Exception): """historyやindicatorのデータにアクセスした際に、取得対象のデータが存在しない場合に発生する例外です。 データが存在しない場合は「データが足りていない(※1)」や「範囲外へのアクセス(※2)」などがあります。 ※1: 25日移動平均線の場合、1から24日目まではデータがないので集計できません。 ※2: 明日以降などのデータにはアクセスできないようになっています。""" pass class OrderTypeError(Exception): """...
27.131313
89
0.612807
307a03f03cded02c4fd1cc146ab50052bfce15a3
709
py
Python
books/PythonCleanCode/ch7_generator/generators_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch7_generator/generators_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch7_generator/generators_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 7: Using Generators """ import itertools import statistics from _generate_data import PURCHASE_FILE, create_purchases_file from log import logger def load_purchases(filename): with open(filename) as f: for line in f: *_, price_raw = line.partition...
26.259259
64
0.684062
06a007ef8455512e6c931ce7cf332aaff0cb4ac2
485
py
Python
src/compat/py2.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/compat/py2.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/compat/py2.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""py2 - Python2 compatibility module""" import cPickle as pickle def printf(*args, **kwargs): end = kwargs.get('end', '\n') newline = (end == "\n") if args: if not newline: for i in args: print i, else: for i in args[:-1]: print i, ...
20.208333
40
0.496907
23338a807d21c70e730b714a865ac70770c5608b
6,511
py
Python
Packs/CommonScripts/Scripts/PositiveDetectionsVSDetectionEngines/PositiveDetectionsVSDetectionEngines_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/PositiveDetectionsVSDetectionEngines/PositiveDetectionsVSDetectionEngines_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/PositiveDetectionsVSDetectionEngines/PositiveDetectionsVSDetectionEngines_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from __future__ import print_function import pytest from PositiveDetectionsVSDetectionEngines import extract_engines_data_from_indicator '''INDICATORS DATA FOR TESTING''' detect_positive_not_zero_1 = { 'CustomFields': { 'detectionengines': 71, 'positivedetections': 10 }, 'ManuallyEditedFie...
30.85782
87
0.625096
aecc83dc18400537fcf5c6567aab922fad4edf12
1,255
py
Python
src/Raspberry Pi/REST Http Server/FlaskServer.py
Air92/AtmosphericPollutionCollecting
9c152b2d961535fa1e1b87f1d7c47f25573f7ca7
[ "MIT" ]
1
2018-06-07T21:54:56.000Z
2018-06-07T21:54:56.000Z
src/Raspberry Pi/REST Http Server/FlaskServer.py
Air92/AtmosphericPollutionCollecting
9c152b2d961535fa1e1b87f1d7c47f25573f7ca7
[ "MIT" ]
1
2018-01-26T16:13:15.000Z
2018-01-26T18:39:26.000Z
src/Raspberry Pi/REST Http Server/FlaskServer.py
Air92/AtmosphericPollutionCollecting
9c152b2d961535fa1e1b87f1d7c47f25573f7ca7
[ "MIT" ]
5
2017-11-20T09:39:07.000Z
2019-10-28T13:10:50.000Z
# ruuning server in debug mode: # export FLASK_APP=hello.py # flask run # running server in external mode: # flask run --host=0.0.0.0 from flask import Flask app = Flask(__name__) if __name__ == '__main__': app.run(host='0.0.0.0', port=5000) @app.route('/') @app.route('/index') def index(): ...
22.818182
89
0.596016
aefed898b9ca8ac7a82447629cb231ce1fa426be
92
py
Python
2014/06/table-obama-state-visits/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/06/table-obama-state-visits/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/06/table-obama-state-visits/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1nAlTmIaVfzqag2d2NMG-XpEqkt9v2HS23Tm6UGQ1lPY'
23
68
0.836957
ae5e3f46123630c23afa6139ed3633dda34e5d3f
3,629
py
Python
Blockwelt/Blockworld.py
flikkes/intelligente_agenten
340ca9b9d98b4525b330292f16444e106dec9d66
[ "MIT" ]
null
null
null
Blockwelt/Blockworld.py
flikkes/intelligente_agenten
340ca9b9d98b4525b330292f16444e106dec9d66
[ "MIT" ]
null
null
null
Blockwelt/Blockworld.py
flikkes/intelligente_agenten
340ca9b9d98b4525b330292f16444e106dec9d66
[ "MIT" ]
null
null
null
class World: start = [] table = [] finish = [] hand = None def __init__(self, start, table, finish): self.start = start self.table = table self.finish = finish def onground(self, x): if self.start: if self.start[0] == x: return True ...
27.492424
64
0.471204
ae999ad17f109425164af0f5d86b14714d90d2c9
915
py
Python
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/test/dbus/validatestate.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/test/dbus/validatestate.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/test/dbus/validatestate.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2. # # You should have received a copy of the GNU Genera...
27.727273
76
0.760656
ee561384b010ee45bd7512d40640feecd0e8affb
2,360
py
Python
WeChatRecorder/recorder.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatRecorder/recorder.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatRecorder/recorder.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python35 from RecorderUtils.ConfigParser import ConfigParser from itchat.content import * from logging import handlers import logging from flask import Flask, url_for, request import itchat logger = logging.getLogger('WeChatRecorder') logger.setLevel(level=logging.INFO) handler = handlers.Time...
38.064516
126
0.680508
6dcd7d72910108933d0389a43d0b4889c10cf5b9
1,827
py
Python
simple-sklearn-demo/test4/irisTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-sklearn-demo/test4/irisTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-sklearn-demo/test4/irisTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
""" k nearest neighbors 欧式距离 distance = sqrt((x1 - x2)^2 + (y1 - y2)^2 + (z1 - z3)^2) k太小, 容易受到异常点影响 k太大, 容易受到样本不均衡的影响 优点是无需训练, 简单易用 缺点是计算量大, 内存开销大, 不易确定k的精度 """ from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.n...
29.467742
98
0.713191
fedccad512601b23a96f34cf50cd7ee805ec415a
2,472
py
Python
tests/onegov/town6/test_views_homepage.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views_homepage.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views_homepage.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import transaction def test_homepage(client): client.app.org.meta['homepage_cover'] = "<b>0xdeadbeef</b>" client.app.org.meta['homepage_structure'] = """ <row-wide> <column span="12"> <slider /> </column> </row-wide> <row> <column span="8"> <focus im...
25.75
74
0.511327
3a19ef3af5322eeb3377c3ae7b35ca810d9284db
253
py
Python
aoc2020/day_05/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_05/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_05/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * class Solution(SolutionABC): expected = 820 c2n = lambda s, v: {'F': "0", 'B': "1", 'L': "0", 'R': "1"}[v] int = lambda s, v: int("".join(map(s.c2n, v)), 2) solve = lambda s: max(s.resource_lines("input", s.int))
28.111111
66
0.545455
28ca7d3cb7c60e67c048ac8086fabce0d9f1af4c
8,581
py
Python
ProbeShot/ProbeShot.py
cherrytrees-kpu/sturdy-journey
ce87562bde81ec55235d8f65e8ec9d5e13b50bcc
[ "MIT" ]
null
null
null
ProbeShot/ProbeShot.py
cherrytrees-kpu/sturdy-journey
ce87562bde81ec55235d8f65e8ec9d5e13b50bcc
[ "MIT" ]
null
null
null
ProbeShot/ProbeShot.py
cherrytrees-kpu/sturdy-journey
ce87562bde81ec55235d8f65e8ec9d5e13b50bcc
[ "MIT" ]
null
null
null
import pathlib import argparse import blastsetup import json import csv import AlignmentData import oligofinder from Bio import AlignIO def import_data(path): """ Import data """ inputfile = open(path, 'r') data = json.loads(inputfile.readline()) inputfile.close() return data def output_da...
36.206751
129
0.633026
c902479dfa95c7890962ccb10b0dfa152c9ad705
258
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/06_clipboard_interceptor.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/06_clipboard_interceptor.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/06_clipboard_interceptor.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Warten bis etwas neues in die Zwischenablage kopiert wurde und dann Zwischenablage ausgeben from pyperclip import copy, paste print('Warte auf CTRL+C') if paste() != '0': copy(0) while True: if paste() != '0': print(paste()) break
23.454545
93
0.658915
c9774495c570b30c4b479c33e39d30149e71c51d
91
py
Python
Books/Gonit-Korbo-Joi/chapter-01/01_multiply_with_summation.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Books/Gonit-Korbo-Joi/chapter-01/01_multiply_with_summation.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Books/Gonit-Korbo-Joi/chapter-01/01_multiply_with_summation.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
n = 100 m = 99 result = 0 for i in range(m): result = result + n print(result, n*m);
10.111111
23
0.571429
c98592af703d3d2f744af99337058a45988516f3
9,365
py
Python
python/data_sutram/scraper/wwsat.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/wwsat.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/wwsat.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import urllib2 import os import re try: import Image except: print 'You do not have PIL installed' print 'www.pythonware.com/products/pil/' sys.exit(2) import sys, getopt hBox = .0021 size = 512 filetype = 'png' folderbase = 'wwsat' foldercounter = 0 folderfinal = '' input_format = 'p...
41.622222
361
0.502082
a35e9e18c735696f791af08c492a8bea39fe0f27
2,988
py
Python
WeChatSecretary/utils/weather/main.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatSecretary/utils/weather/main.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatSecretary/utils/weather/main.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python37 from utils.api_config import keys from utils.general_model import call_api import json class Weather(): def __init__(self, key_type, method, api, city_code_file='./utils/weather/amap_citycode.csv'): self.key = keys[key_type] self.method = method self.api =...
35.571429
113
0.582999
66eab45e036c3b2b8d94ebf5f1a93602ea4f9656
1,642
py
Python
DiceCTF/2021/misc/TI-1337PlusCE/ti1337plusce.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
DiceCTF/2021/misc/TI-1337PlusCE/ti1337plusce.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
DiceCTF/2021/misc/TI-1337PlusCE/ti1337plusce.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 from pathlib import Path import subprocess import sys import os import colr print = lambda s: __builtins__.print(colr.Colr(s).rainbow(freq=0.8)) input = lambda s: (__builtins__.print(colr.Colr(s).rainbow(freq=0.8), end=""), __builtins__.input())[1] print("Welcome to the TI-1337 Plus CE!") user...
27.830508
137
0.68514
dd599a90b4a171e671e39526ca395d8f74c71cab
1,362
py
Python
src/user/models.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/user/models.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/user/models.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
from django.db import models from src.enums import AuthSource, Relationship from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import UserManager from django.contrib.auth.models import AbstractUser import uuid # Create your models here. class User(AbstractUser, ): REQUIRED_F...
38.914286
69
0.729809
6605872a95c5d7b4392bab6732e66984cab91a35
181
py
Python
basic/37-charm.fi/scripts/flatten.py
yingjingyang/Dapp-Learning
5bf10a02932926e429c1a61704d9a9dfee3a13ea
[ "MIT" ]
987
2021-12-19T09:57:18.000Z
2022-03-31T15:39:45.000Z
basic/37-charm.fi/scripts/flatten.py
yingjingyang/Dapp-Learning
5bf10a02932926e429c1a61704d9a9dfee3a13ea
[ "MIT" ]
73
2021-07-04T03:53:57.000Z
2021-12-18T06:17:13.000Z
basic/37-charm.fi/scripts/flatten.py
yingjingyang/Dapp-Learning
5bf10a02932926e429c1a61704d9a9dfee3a13ea
[ "MIT" ]
263
2021-06-28T15:26:56.000Z
2021-12-19T08:14:37.000Z
from brownie import AlphaStrategy def main(): source = AlphaStrategy.get_verification_info()["flattened_source"] with open("flat.sol", "w") as f: f.write(source)
20.111111
70
0.685083
b08f5fcb4889260ae764c98abe31eaee038b51f8
1,464
py
Python
a2p2_170111updated/run_jobs.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
1
2017-08-25T07:46:30.000Z
2017-08-25T07:46:30.000Z
a2p2_170111updated/run_jobs.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
null
null
null
a2p2_170111updated/run_jobs.py
cwandtj/A2P2
a5999f6dbcd7da194fbded8b8c113affdb419c3b
[ "MIT" ]
null
null
null
__author__ = 'ones' import os, sys, threading import error_handling working_dir = os.getcwd() directories = [] zombies = [] if len(sys.argv) == 1: os.system('find -mindepth 3 -type d > compounds_directories') elif len(sys.argv) == 2: root = sys.argv[1] depth = root.count('/') os.system('find ./'+ro...
17.638554
91
0.614071
b090037a44bbfa57c0310a1264887621c0191a12
4,009
py
Python
src/diatomic.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
src/diatomic.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
src/diatomic.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # ============================================================================= # 2mmn40 code # Diatomic molecule simulation # version 2018-01-15 # BA # # # for BA: Make sure to run in directory # C:\Users\20165263\Dropbox\tue\2mmn40\src # # ==================================================...
29.696296
92
0.553505
9fe6c103f17cdb0ff8bc8986997280479b3b1744
402
py
Python
sketches/codingtrain_unicorn_rainbow/codingtrain.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/codingtrain_unicorn_rainbow/codingtrain.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/codingtrain_unicorn_rainbow/codingtrain.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class CodingTrain: def __init__(self): self.im = loadImage("train.png") self.pos = PVector(width + 200, random(height - 100)) self.speed = 5 def update(self): self.pos.x -= self.speed if self.pos.x < -100: self.pos = PVector(width + 200, random(heigh...
26.8
65
0.544776
c6da4ac44de5e5e7a924afdc7328f27d694abf25
700
py
Python
PBO_8081/tugas PBO 1.py
ifanamirudin/PBO
76ab2b1ca2a4a4e05aa5fae48bfeb45f20018911
[ "MIT" ]
null
null
null
PBO_8081/tugas PBO 1.py
ifanamirudin/PBO
76ab2b1ca2a4a4e05aa5fae48bfeb45f20018911
[ "MIT" ]
null
null
null
PBO_8081/tugas PBO 1.py
ifanamirudin/PBO
76ab2b1ca2a4a4e05aa5fae48bfeb45f20018911
[ "MIT" ]
null
null
null
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> x1=input("masukkan nama") masukkan namaifan hi amirudin >>> x2=input("masukkan nmp") masukkan nmp8081 >>> a="masukkan nama" >>> b="masukkan n...
25.925926
95
0.638571
05f55517dadef4afa2a7ae0431d4e780a2e16387
5,127
py
Python
test/test_npu/test_network_ops/test_upsample_nearest1d_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_upsample_nearest1d_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_upsample_nearest1d_backward.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...
38.840909
89
0.612054
af6e7b8b96bd05c0231497d43cf6b6cded1af526
1,159
py
Python
model_zoo/electra/deploy/serving/covert_inference_model_to_serving.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/electra/deploy/serving/covert_inference_model_to_serving.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/electra/deploy/serving/covert_inference_model_to_serving.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
import argparse import paddle import paddle_serving_client.io as serving_io def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--inference_model_dir", type=str, required=True, help="input inference model dir") p...
34.088235
68
0.595341
afbe274d35b85cb726be90a6c63a447fafed2e4c
433
py
Python
exercises/pt/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_01_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_01_02_02.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.de assert isinstance( nlp, spacy.lang.de.German ), "O objeto nlp deve ser uma instância da classe German." assert isinstance( doc, spacy.tokens.Doc ), "Você processou o texto com o objeto nlp para criar o documento Doc?" asse...
30.928571
86
0.665127
a551c6f874d03933e410e30d810a9629b7923999
1,889
py
Python
research/hpc/molecular_dynamics/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/molecular_dynamics/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/molecular_dynamics/preprocess.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.981481
117
0.658549
a593c7c95bf3f9d737cd3bbfcff932681aae316e
2,468
py
Python
scripts/tms_polygons.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
31
2015-07-13T15:36:50.000Z
2022-02-07T21:37:51.000Z
scripts/tms_polygons.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
109
2015-04-24T10:03:24.000Z
2019-04-12T13:34:01.000Z
scripts/tms_polygons.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
16
2015-10-03T06:03:22.000Z
2022-03-31T08:24:37.000Z
# -*- coding: utf-8 -*- import osgeo.ogr as ogr import osgeo.osr as osr from quantized_mesh_tile.global_geodetic import GlobalGeodetic from forge.lib.helpers import transformCoordinate # The goal of this script it to generate a shapefile per pyramidi/zoom level containing # a poylgon per tile following the TMS stand...
33.808219
87
0.648703
b1f825d6f7912384cafeb71230d98e5aad198dd8
1,604
py
Python
zencad/examples/Models/logo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/Models/logo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/Models/logo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import evalcache from zencad import * mandarinc = os.path.join(zencad.moduledir, "examples", "fonts/mandarinc.ttf") fontpath = register_font(mandarinc) NUT_RENDER = True DISPLAY_BOLT = False @lazy def instrument_metric_nut(drad, step, h): H = step * math.tan(deg(60)) ...
20.831169
77
0.549875
59187b0df8ef682a8f43cf621fcea07a9ffb1a1a
87
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.4-see-data-type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.4-see-data-type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/pg-3.4-see-data-type.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# this program one run in interpater v = 10 type(v) v = '10' type(v) v = 10.0 type(v)
9.666667
36
0.62069
abfe4dcb7cf9e67884e22004e95495a2d2dbd00c
1,211
py
Python
misc/angrbox/deploy/jailyard/solver.py
b01lers/circle-city-ctf-2021
5d6c341f8d9647487dc69df84a4bea5e61d7ca43
[ "MIT" ]
9
2021-06-13T19:33:53.000Z
2021-10-04T13:17:26.000Z
CircleCityCon/2021/misc/angrbox/jailyard/solver.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-06-13T23:20:05.000Z
2021-06-13T23:20:05.000Z
CircleCityCon/2021/misc/angrbox/jailyard/solver.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-06-14T02:09:46.000Z
2021-06-14T02:09:46.000Z
import sys import angr import claripy import logging from angr.engines.vex import HeavyVEXMixin from angr.engines.unicorn import SimEngineUnicorn from angr.engines.failure import SimEngineFailure from angr.engines.hook import HooksMixin class MyEngine( SimEngineFailure, HooksMixin, SimEngineUnicorn, H...
23.745098
72
0.663088
f9f33baa14e027d297d43425247789bcc35c0a41
1,874
py
Python
ticketfrei.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
ticketfrei.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
ticketfrei.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 import logging import pytoml as toml import time import sendmail from retootbot import RetootBot from retweetbot import RetweetBot from mailbot import Mailbot from trigger import Trigger if __name__ == '__main__': # read config in TOML format (https://github.com/toml-lang/toml#toml) wi...
30.225806
73
0.554963
75ab5c20abe7c18b06bb740568fd59d0eb70718c
18,628
py
Python
verto/tests/ConfigurationTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/ConfigurationTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/ConfigurationTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from verto.Verto import Verto, VertoResult from verto.VertoExtension import VertoExtension from verto.processors.ScratchTreeprocessor import ScratchImageMetaData from verto.utils.HeadingNode import HeadingNode from verto.tests.BaseTest import BaseTest from verto.errors.ArgumentMissingError import Argum...
42.144796
125
0.596468
fb2e093331dc15356cc2a90c824c95acbc92c316
119
py
Python
pset1_prob1.py
realomgitsdave/mit-6.00.1x
d12a0c6a0b063133e57969e1b0b9d2781231a234
[ "MIT" ]
null
null
null
pset1_prob1.py
realomgitsdave/mit-6.00.1x
d12a0c6a0b063133e57969e1b0b9d2781231a234
[ "MIT" ]
null
null
null
pset1_prob1.py
realomgitsdave/mit-6.00.1x
d12a0c6a0b063133e57969e1b0b9d2781231a234
[ "MIT" ]
null
null
null
vowels = 'aeiou' count = 0 for i in s: if i in vowels: count += 1 print ('Number of vowels: ' + str(count))
19.833333
41
0.571429
9bae3bdfbedbbc1050c3e68820792564ddf54fa1
165
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/71_count/teste.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/71_count/teste.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/71_count/teste.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from itertools import count, zip_longest contador = count(1) lista = ['a', 'v', 'c', 'd', 'r', 'r', 'g', 'h', 'y'] lista_numerada = list(zip(lista, contador))
15
53
0.587879
1f38c13e35c0fc10e614ebb81403dd03d87ff873
598
py
Python
P8702N/reboot.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
P8702N/reboot.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
P8702N/reboot.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import argparse import requests parser = argparse.ArgumentParser() parser.add_argument('password') parser.add_argument('--user', help="username here if other than 'admin'", default='admin') parser.add_argument('--host', help="hostname here if other than '10.0.0.138'", default='http://10.0.0.138') args = parser.parse_...
33.222222
112
0.727425
1f489ae1d449362c2cacbaa15f2c0fef2666573e
9,363
py
Python
model/simulation.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
model/simulation.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
model/simulation.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
""" Coordinator of the model. Contains the Simulation class. """ from PyQt5.QtCore import QMutex from model.particle import Particle from model.simulationParameter import SimulationParameter from model.statistics import Statistics particles = [] mutex_particles = QMutex() mutex_statistics = QMutex() # noins...
35.60076
120
0.62982
c844ee61ecfafd827216273c670e4eab279054ab
5,528
py
Python
lego/calculus/expression.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/calculus/expression.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/calculus/expression.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
""" Representation of a expression Parses given tokens using an recursive descent parser respecting a grammar: expression = factor {'+' | '-' factor}; factor = power {'*' | '/' power}; power = unary {'^' unary}; unary = ('-' | '+' | ) term; term = '(' expression ')' | number | function | variable | constant; number = ...
26.965854
77
0.52008
c84c807aacbc558e2d7b9dec8702f0fba3d6855d
3,040
py
Python
src/onegov/wtfs/layouts/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/layouts/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/layouts/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.wtfs.layouts.daily_list import DailyListBoxesAndFormsLayout from onegov.wtfs.layouts.daily_list import DailyListBoxesLayout from onegov.wtfs.layouts.daily_list import DailyListLayout from onegov.wtfs.layouts.default import DefaultLayout from onegov.wtfs.layouts.invoice import InvoiceLayout from onegov.wtfs....
41.643836
74
0.829276
9e9e362785fb0a9e3623a1c1728d5a64e4c6ba0f
365
py
Python
Contests/CCC/CCC '15 S2 - Jerseys.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/CCC/CCC '15 S2 - Jerseys.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/CCC/CCC '15 S2 - Jerseys.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 sizes = {"S": 1, "M": 2, "L": 3} jers = int(input()) athl = int(input()) stuff = [input().rstrip() for n in range(jers)] works = 0 for _ in range(athl): s = input().split() s[1] = int(s[1]) - 1 if (stuff[s[1]] != 0 and sizes[stuff[s[1]]] >= sizes[s[0]]): wor...
19.210526
64
0.526027
a9a393d5bf9dd7f776507e5a896a732ce4133d1c
9,626
py
Python
posts/views.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/views.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/views.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from itertools import chain from django.conf import settings from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import Count from django.db.models import F from django.http import ...
32.741497
136
0.627363
192abb49bd2a24387daf4f1de503096991638bbc
1,805
py
Python
robot/yxkfw/visitor.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/yxkfw/visitor.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/yxkfw/visitor.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# coding=utf-8 from selenium import webdriver import time import random browser = webdriver.Chrome() browser.get("http://www.yxkfw.com/forum.php") time.sleep(2) username = browser.find_element_by_id("ls_username") username.send_keys("user") password = browser.find_element_by_id("ls_password") password.send_keys("pass"...
31.12069
109
0.683657
199aef0d1468aa238e15516379db30e97a000c05
109
py
Python
scripts/hello_world_gowtham1997.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_gowtham1997.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_gowtham1997.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# LANGUAGE: Python # ENV: # AUTHOR: Gowtham R # GITHUB: https://github.com/gowtham1997 print('hello world')
15.571429
40
0.706422
477fde246168e7d7462e8a5b6b2b1fbbe0b27423
53
py
Python
basics/long_string.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/long_string.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/long_string.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
haiku = """ The old pond, A frog jumps in: Plop! """
8.833333
16
0.584906
7bd49578b57c5e156c51c5ffff8871901b049858
3,112
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/district/filterDistricts.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/district/filterDistricts.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/district/filterDistricts.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2007-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
44.457143
120
0.660347
d02a710091e8a49a9cd6206cc07e1936c95b0bd1
2,718
py
Python
src/routing/node.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/routing/node.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/routing/node.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""node.py - Nodes for graph based representation of gas stations in a route""" from math import cos, asin, sqrt import datetime class Node: def __init__(self, id_, lat, lon, price=0, timestamp=''): """Node for representing a gas station id_: int, station id lat: float, the station latitu...
33.555556
98
0.575423
d05bf80691bcd58c769268998d6c278266af1d90
6,471
py
Python
src/bo4e/bo/rechnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/rechnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/rechnung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Rechnung class and corresponding marshmallow schema for de-/serialization """ from datetime import datetime from typing import List, Optional import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, Ge...
46.891304
170
0.759697
ef158d730272d58b4f4ce3cdc47a23b3d8b83f67
3,795
py
Python
Unpublished/temp.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
Unpublished/temp.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
Unpublished/temp.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% import pandas as pd with open('table.html') as f: df = pd.read_html( f, decimal=',', flavor='bs4' )[0] # %% df.columns temp = df.loc[(df['Preis in € (ca.)']<150) & (df['Sicherheit (Gewichtung 50%)']<=20), :] temp.sort_values(['Preis in € (ca.)']) # %% from sklearn.datasets import make_friedman2...
24.326923
89
0.641107
086daab71223eac6f986d1c9e5c9729b84e9aa14
147
py
Python
apps/flowguard/admin.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/flowguard/admin.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/flowguard/admin.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
from django.contrib import admin from apps.flowguard import models admin.site.register(models.FlowChannel) admin.site.register(models.FlowValue)
21
39
0.836735
08ba0e743fc18f4fb0502e8482674bd3e46f052b
4,357
py
Python
jobs/tasks/queue/index.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
1
2020-03-24T04:26:34.000Z
2020-03-24T04:26:34.000Z
jobs/tasks/queue/index.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
jobs/tasks/queue/index.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from application import app,db from common.models.queue.QueueList import QueueList import json,requests,datetime from common.libs.Helper import get_current_date from common.libs.pay.WeChatService import WeChatService from common.models.pay.PayOrder import PayOrder from common.models.pay.PayOrder...
39.252252
124
0.591692
eb1be0b528c59ed9e9fcbca18a1e83c3963c80a5
6,819
py
Python
test/test_npu/test_dynamic_ops/test_network_dynamic_shape.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_dynamic_ops/test_network_dynamic_shape.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_dynamic_ops/test_network_dynamic_shape.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...
35.149485
89
0.587769
c21373ab122d7ba35be8132544236fc3583331ec
705
py
Python
data-pipeline/src/data_pipeline/data_types/coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/data_types/coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/data_types/coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import hail as hl from data_pipeline.data_types.locus import x_position def prepare_coverage(coverage_path): coverage = hl.read_table(coverage_path) coverage = coverage.annotate(xpos=x_position(coverage.locus)) # Median field name is different in v3.0.1 vs v2 if "median" not in coverage.row.dtype.f...
22.03125
67
0.611348
a02c96c29a4d9d8cdf4c87df3d1a2ae1418a2c91
12,536
py
Python
vulners-lookup-master/vulners-lookup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
vulners-lookup-master/vulners-lookup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
vulners-lookup-master/vulners-lookup.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/env python3 # -*- coding: utf-8 -*- # # vulners-lookup # -------------- # Perform vulnerabilities lookup on Vulners, the largest database (lots of sources # including exploit-db, 0day.today, Nessus, OpenVAS...). Ref: https://vulners.com/stats # # Based on Vulners API (https://github.com/vulnersCom/api) # # T...
30.207229
606
0.569161
26f25696b45f6730d5e95322157f9bfa04077d12
582
py
Python
AP_SS16/US1/python_custom_scripts/error_calculation.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/601/python_custom_scripts/error_calculation.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/US3/python_custom_scripts/error_calculation.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
import numpy as np #Fehler des Mittelwertes def MeanError (Data): assert isinstance(Data, (np.ndarray, np.generic) ) , "You need to give a numpy array for calculation of mean error." assert Data.size , "Empty arrays are not allowed for calculation of mean error." Mean = np.mean(Data) N = np.size(Data) ...
36.375
120
0.67354
f8a14132dc43d625d110691fea71abd5dc24dcc4
141
py
Python
doc/examples/packages/package_cythran/package_cythran/other.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/packages/package_cythran/package_cythran/other.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/packages/package_cythran/package_cythran/other.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import boost, set_backend_for_this_module set_backend_for_this_module("numba") @boost def func_numba(a): return a ** 2
15.666667
56
0.780142
3e590bdfcdd56793ce5a6c5831fb19387ccce39f
2,900
py
Python
book/_build/jupyter_execute/docs/002_networking.py
tom-tubeless/wwg-digitales-miteinander
d9391046a7ed12b91b538b937993161c67d77d68
[ "CC0-1.0" ]
null
null
null
book/_build/jupyter_execute/docs/002_networking.py
tom-tubeless/wwg-digitales-miteinander
d9391046a7ed12b91b538b937993161c67d77d68
[ "CC0-1.0" ]
null
null
null
book/_build/jupyter_execute/docs/002_networking.py
tom-tubeless/wwg-digitales-miteinander
d9391046a7ed12b91b538b937993161c67d77d68
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Netzwerke # # In diesem Kapitel wirst du selbst tätig. # Mit dem Netzwerksimulator Filius kannst du die Grundlagen von Computer-Netzwerken auf dem eigenen Computer ausprobieren. # Den Netzwerksimulator Filius gibt es für Windows, OSX und Linux. # Du kannst Filius kostenlos un...
49.152542
414
0.766897
5fa275a8e651a1112797047745fb7ec3986c80ab
1,931
py
Python
internet_test.py
PabloFreitasUfsc/bist-du-da
551dc29ec07bc182e12d86d4ee5e103a98089de4
[ "MIT" ]
null
null
null
internet_test.py
PabloFreitasUfsc/bist-du-da
551dc29ec07bc182e12d86d4ee5e103a98089de4
[ "MIT" ]
null
null
null
internet_test.py
PabloFreitasUfsc/bist-du-da
551dc29ec07bc182e12d86d4ee5e103a98089de4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ============================================================================= # Created By : Pablo Freitas Santos # Created Date: 19.07.2021 # ============================================================================= """The Module Has Been Build for...""" # Referenc...
27.985507
79
0.528742
844ea69f743957ff09f8631bff7d9882d0b65090
626
py
Python
Interview Preparation Kits/Interview Preparation Kit/Recursion and Backtracking/Recursive Digit Sum/super_digit.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Recursion and Backtracking/Recursive Digit Sum/super_digit.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Recursion and Backtracking/Recursive Digit Sum/super_digit.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the superDigit function below. def superDigit(n, k): def aux(n): if n // 10 == 0: return n else: n = sum([int(str(n)[i]) for i in range(len(str(n)))]) return aux(n) number = s...
17.388889
66
0.543131
ffc249bf95965e5801698f81292f95c76a4bba29
615
py
Python
Imaginary/2021/crypto/Easy_Crypto_Challenge/super_safe_decryption.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/Easy_Crypto_Challenge/super_safe_decryption.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/Easy_Crypto_Challenge/super_safe_decryption.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from sage.all import * # read encrypted Cs = open("out.txt", "r").readlines() # initialize same curve p = 692893 a = 1 b = 6 E = EllipticCurve(GF(p),[a,b]) # initialize Bob's decryption P = E(683798, 652629) kA = 4001 #!!!0hH no0... tH3 F1le g07 corRuPt3D!!!#56 B = #!!!0hH no0... tH3 F1le g07 corRuPt3D!!!#* P # con...
21.206897
57
0.604878
f2c3f319183e06a0b4ed2322694172ad50ac3a4c
6,270
py
Python
module/classification_package/deep_features.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
module/classification_package/deep_features.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
module/classification_package/deep_features.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import torch import numpy as np import os import cv2 from tensorboardX import SummaryWriter class DeepFeatures(torch.nn.Module): ''' This class extracts, reads, and writes data embeddings using a pretrained deep neural network. Meant to work with Tensorboard's Embedding Viewer (https://www.te...
33.351064
129
0.584211
d9f02c44c2a6bd3143e9f3820127a230f039c766
113
py
Python
pythonDemo/createPrivateKey.py
SteveWooo/ethnet
34855b621d1933c0258443cd785ef942906aad58
[ "Apache-2.0" ]
null
null
null
pythonDemo/createPrivateKey.py
SteveWooo/ethnet
34855b621d1933c0258443cd785ef942906aad58
[ "Apache-2.0" ]
1
2021-03-10T17:14:42.000Z
2021-03-10T17:14:42.000Z
pythonDemo/createPrivateKey.py
SteveWooo/ethnet
34855b621d1933c0258443cd785ef942906aad58
[ "Apache-2.0" ]
null
null
null
from secp256k1 import PrivateKey k = PrivateKey(None) f = open("priv_key", 'w') f.write(k.serialize()) f.close()
18.833333
32
0.707965
8a0d126becd506d6374bc977d894b346ea2a8a40
2,534
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/vidup_me.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/vidup_me.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/vidup_me.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" urlresolver XBMC Addon Copyright (C) 2011 t0mm0 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
41.540984
126
0.614444
8a716ac98caa3ac6b571d6726ae494a5ae52e2bd
628
py
Python
data_tests/saved__backend__py3.9/pythran/class_rec_calls.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/saved__backend__py3.9/pythran/class_rec_calls.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/saved__backend__py3.9/pythran/class_rec_calls.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
def __for_method__Myclass__func(self_attr, self_attr2, arg): if __for_method__Myclass__func(self_attr, self_attr2, arg - 1) < 1: return 1 else: a = __for_method__Myclass__func( self_attr, self_attr2, arg - 1 ) * __for_method__Myclass__func(self_attr, self_attr2, arg - 1) ...
27.304348
73
0.640127
8a898935461efb6ef57f1b18101e6cd457ffa832
418
py
Python
server/apps/movie/migrations/0002_genre_doubanids.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/movie/migrations/0002_genre_doubanids.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/movie/migrations/0002_genre_doubanids.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
# Generated by Django 2.1.4 on 2019-04-27 15:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movie', '0001_initial'), ] operations = [ migrations.AddField( model_name='genre', name='doubanIds', fie...
22
95
0.602871
8aad4317432b8d3434aa952a982baf77773dfafa
3,405
py
Python
research/cv/resnetv2/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/resnetv2/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/resnetv2/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
46.643836
116
0.69721
8ab0c9258105c798aa105c7a58f51102b734043c
156
py
Python
ALBERT/dataset/utils/__init__.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
ALBERT/dataset/utils/__init__.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
ALBERT/dataset/utils/__init__.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
import sys import os abs_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(abs_path) from data_deal import * from my_csv import *
17.333333
54
0.737179
8abb82c974db9ae4e95d128fee8940156cce8cf9
310
py
Python
home/tasks.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
1
2022-01-08T14:18:14.000Z
2022-01-08T14:18:14.000Z
home/tasks.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
null
null
null
home/tasks.py
DeepakDarkiee/stockbinz
53512e9eb7d7214662e38828b23e4b664e6a6cda
[ "Apache-2.0" ]
null
null
null
import random from celery import Celery from celery import shared_task from home.utils import mail from celery.schedules import crontab app = Celery() @shared_task(name="contact_mail") def contact_mail(recipient): mail(recipient) @app.task def add(): z = 5 + 2 print(z) return True
16.315789
36
0.712903
6a7d88201078267e64c8b025bd1a607f1a866742
1,844
py
Python
python/en/_numpy/organize_this/test-numpy.matmul.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/organize_this/test-numpy.matmul.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/organize_this/test-numpy.matmul.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ References numpy.matmul¶ https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.matmul.html """ import numpy as np # Examples # For 2-D arrays it is the matrix product: a = [[1,0], [0,1]] b = [[4,1], [2,2]] np.matmul(a,b) # For 2-D mixed with 1-D, the result is the usual...
18.626263
94
0.508134
0a8c40dfcf493debee61ac4ff834b53b5c8b2edc
24,923
py
Python
frappe-bench/env/lib/python2.7/site-packages/premailer/premailer.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/premailer/premailer.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/premailer/premailer.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals, print_function import codecs import operator import os import re import warnings try: from collections import OrderedDict except ImportError: # pragma: no cover # some old python 2.6 thing then, eh? from ordereddict import OrderedDict import sys if ...
37.365817
101
0.547526
0ab5d04c8b7302f30a7769dfa1feb4fd38ce423b
7,561
py
Python
official/nlp/lstm/infer/sdk/sentiment/sentiment_analysis.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/lstm/infer/sdk/sentiment/sentiment_analysis.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/lstm/infer/sdk/sentiment/sentiment_analysis.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# coding = utf-8 """ Copyright 2021 Huawei Technologies Co., Ltd 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 or agreed ...
36.177033
97
0.678746
7cadd044a09705a018a034e160c705a7c0ca63e3
159
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 6/6.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 6/6.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 6/6.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Complete the script so that it prints out a list containing letters d, e, f. letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] print(letters[3:6])
39.75
77
0.566038
7cb936fba6ef82e3d103162221fde5f1d8e46283
17,265
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/storage/sql_alchemy_connector.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage/sql_alchemy_connector.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/storage/sql_alchemy_connector.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from contextlib import contextmanager import cbor2 from sqlalchemy import create_engine from sqlalchemy import Table, Column, Integer, String, MetaData, BINARY, func, Boolean from sqlalchemy.orm import sessionmaker, mapper from ...log import create_logger from ...constants import SQLITE, EVENTTABLE, MASTERTABLE, FEED...
41.502404
119
0.583261
86835e9fb58150de09b44a87655f456ef19d4170
751
py
Python
exercises/pt/test_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_01_12_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(pattern) == 2 ), "A expressão deve descrever dois tokens (dois dicionários)." assert isinstance(pattern[0], dict) and isinstance( pattern[1], dict ), "Cada item da expressão deve ser um dicionário." assert ( len(pattern[0]) == 1 and len(pattern[1]) ==...
39.526316
91
0.628495
86a4d6f79544f2aca6152c9a03b6ac0c27dfee16
3,955
py
Python
Packs/PostmarkSpamcheck/Integrations/PostmarkSpamcheck/PostmarkSpamcheck.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/PostmarkSpamcheck/Integrations/PostmarkSpamcheck/PostmarkSpamcheck.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/PostmarkSpamcheck/Integrations/PostmarkSpamcheck/PostmarkSpamcheck.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import traceback import requests import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CLIENT CLASS ''' class Client(BaseClient): """Client class to interact with the Postmark Spamcheck API "...
30.658915
116
0.628319
810294f0f4a9c36bf8b561d0561b2efd4c596dd9
2,978
py
Python
tests/integration/test.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
5
2019-03-04T12:59:53.000Z
2022-03-25T03:07:00.000Z
tests/integration/test.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
12
2018-06-05T16:35:31.000Z
2022-02-14T21:43:40.000Z
tests/integration/test.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
2
2018-06-05T18:00:09.000Z
2019-03-04T12:59:57.000Z
import unittest import os import shutil import subprocess from pathlib import Path from tempfile import TemporaryDirectory test_data_dir = Path(__file__).resolve().parent / '..' / 'data' lichen_installation_dir = Path("/usr", "local", "submitty", "Lichen") class TestLichen(unittest.TestCase): def testLichen(sel...
48.032258
141
0.548355