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
f788f931d4a28f803c07b6e69b05c5823cc5c0a2
7,785
py
Python
paddlenlp/utils/tools.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/utils/tools.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/utils/tools.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.169421
114
0.618754
581a1467384ed3c7465f96d2a89e8062848df008
4,811
py
Python
pacman-arch/test/pacman/util.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/util.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/util.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
# Copyright (c) 2006 by Aurelien Foret <orelien@chez.com> # Copyright (c) 2006-2021 Pacman Development Team <pacman-dev@archlinux.org> # # 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; eith...
25.727273
98
0.594887
b72fe19d01acee6f62a8e04b5b867719df5a113e
2,562
py
Python
tests/onegov/core/test_elements.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_elements.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_elements.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import Bunch from onegov.core.elements import Link, Confirm, Intercooler def test_link(render_element): # text is translated result = render_element(Link(text="Settings", url='/settings')) assert result.pyquery('a').text() == "Settings" assert result.pyquery('a').attr('href') ==...
34.16
78
0.62178
b7d6b61bd5c672ea3b72fcf0504562145ddd5f77
6,503
py
Python
src/test/tests/hybrid/ddf_vs_dbinning.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/ddf_vs_dbinning.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/ddf_vs_dbinning.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
from visit_utils import * import math def setup_plot(): DeleteAllPlots() OpenDatabase(silo_data_path("rect3d.silo")) exprs.define("coords", "coord(quadmesh3d)",etype="vector") exprs.define("mesh_x_zonal","recenter(coords[0])") exprs.define("mesh_y_zonal","recenter(coords[1])") exprs.define("m...
30.530516
88
0.627403
4d101470bc24f374c184b991e70cd6bf397529a6
4,136
py
Python
python/en/archive/topics/command_line_arguments/command_line_arguments.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/command_line_arguments.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/command_line_arguments.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ command_line_arguments.py Draft: 2019-11-13 (Wed) This is a class version of test-getopt_full.py at https://github.com/aimldl/python3/blob/master/topics/command_line_arguments/test-getopt_full.py Example: $ python command_line_arguments.py -c conf.txt -i in.t...
31.815385
97
0.53119
4d18936f76d5e7b98eeb6d17d2257da2a066fdc2
385
py
Python
py-basics/src/lectures/lists/exercise2.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/lists/exercise2.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/lists/exercise2.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
""" List Exercise 2 Implementieren Sie die Funktion includes() zur Überprüfung, ob ein bestimmtes Element 'search_element' in der Liste enthalten ist. Benutzen Sie die nachfolgenden Tests zur Kontrolle. """ def includes(my_list, search_element): return search_element in my_list # Tests print(includes([1, 2, 3,...
24.0625
105
0.716883
421dc039646aa97978bd6e781f4546797741d924
645
py
Python
tests/test_datatypes.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
tests/test_datatypes.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
tests/test_datatypes.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
import pytest from genutil import datatypes class TestIsListOfStrings: @pytest.mark.parametrize( "test_parameter,expected", [ pytest.param(["this", "is", "a", "list", "of", "strings"], True, id="Param1 - List of Strings"), pytest.param("no list, but string", False, id="Para...
37.941176
108
0.615504
c4398fc2571aa2bf3c82a1ee5c5fd0508ff75b59
1,425
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/max_sum_on_rotation.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/max_sum_on_rotation.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/max_sum_on_rotation.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Input: arr[] = {1, 20, 2, 10} # Output: 72 def single_rotation(arr,l): temp=arr[0] for i in range(l-1): arr[i]=arr[i+1] arr[l-1]=temp def sum_calculate(arr,l): sum=0 for i in range(l): sum=sum+arr[i]*(i) return sum def max_finder(arr,l): max=arr[0] for i in range(l):...
19
61
0.555789
6717d9c142e9411315a2a1880908e9b395f56901
14,833
py
Python
app/models.py
jkopka/price_tracker
370dd320a3d54a3bd955b62df337dfe87b58f7ee
[ "MIT" ]
null
null
null
app/models.py
jkopka/price_tracker
370dd320a3d54a3bd955b62df337dfe87b58f7ee
[ "MIT" ]
2
2020-07-04T18:44:37.000Z
2020-08-10T06:29:53.000Z
app/models.py
jkopka/price_tracker
370dd320a3d54a3bd955b62df337dfe87b58f7ee
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests from urllib.parse import urljoin from re import sub from decimal import Decimal import numpy as np import matplotlib.pyplot as plt from flask import Markup from urllib.parse import urlparse import logging import time # Objekt für einzelne Suchen class SearchItem: def ...
34.819249
149
0.57035
3f3fa889de296183a0378e06a3c8af385a29f4c5
1,557
py
Python
Utils/MatlabWhistleDetection/python/extract_wav.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
Utils/MatlabWhistleDetection/python/extract_wav.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
Utils/MatlabWhistleDetection/python/extract_wav.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
import os import sys import getopt """ Extracts the audio from our game videos. This script expects that ffmpeg is installed and in the PYTHONPATH. Usage: python extract_wav.py -i <path_to_folder_where_mp4_files_are> """ def parse_arguments(argv): input_path = '' try: opts, args = getopt.getop...
27.803571
111
0.572897
58fb641ddef7dd56129d8590322e1acc160f4372
170
py
Python
exercises/ja/solution_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_md") doc1 = nlp("暖かい夏の日です") doc2 = nlp("外は晴れています") # doc1とdoc2の類似度を取得 similarity = doc1.similarity(doc2) print(similarity)
15.454545
35
0.747059
18dd95fdf486775b427fa0e34f665f471886c16e
2,883
py
Python
ods2md.py
tuksik/kennytm-ods2md
cf5e322aa3e3d5eb4dcd72e9531ddb277854ea02
[ "MIT" ]
null
null
null
ods2md.py
tuksik/kennytm-ods2md
cf5e322aa3e3d5eb4dcd72e9531ddb277854ea02
[ "MIT" ]
null
null
null
ods2md.py
tuksik/kennytm-ods2md
cf5e322aa3e3d5eb4dcd72e9531ddb277854ea02
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2015, 2017 Kenny Chan # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and # associated documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, ...
34.73494
111
0.635796
e1409b6ab26fffacafd213ca4b4a376b80aed345
1,514
py
Python
14 Server, PDF Text extraction/scraper.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
6
2019-08-06T14:53:34.000Z
2020-10-16T19:44:16.000Z
14 Server, PDF Text extraction/scraper.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
1
2020-06-25T09:46:58.000Z
2020-06-25T09:46:58.000Z
14 Server, PDF Text extraction/scraper.py
manuelapaganini/20_21_Workfile
5ec3637d18cbd73256b56682d9b99547e21a24d9
[ "MIT" ]
2
2019-09-16T13:05:51.000Z
2019-09-27T09:07:49.000Z
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select import time import pandas as pd from bs4 import BeautifulSoup #Wir starten den Browser auf driver = webdriver.Chrome(executable_path='/usr/local/b...
36.926829
113
0.758256
beca66fd1093873b130ccbeef5e67429df005b04
315
py
Python
Packs/CaseManagement-Generic/Scripts/LinkIncidentsButton/LinkIncidentsButton.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CaseManagement-Generic/Scripts/LinkIncidentsButton/LinkIncidentsButton.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CaseManagement-Generic/Scripts/LinkIncidentsButton/LinkIncidentsButton.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto action = demisto.getArg('action') if action not in ['link', 'unlink']: action = 'link' demisto.results(demisto.executeCommand("linkIncidents", {"linkedIncidentIDs": demisto.getArg("linkedIncidentIDs"), "action": action}))
35
114
0.606349
3639e32504c69a680e54972a052608364a7f5904
3,532
py
Python
research/cv/ssd_resnet50/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ssd_resnet50/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ssd_resnet50/postprocess.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...
39.244444
115
0.635617
367948e4f4cad432e628a0a5718fa9052acf05a5
2,538
py
Python
tests/test_tipc/bigru_crf/export_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/test_tipc/bigru_crf/export_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/test_tipc/bigru_crf/export_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- # 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 # ...
39.65625
136
0.639086
62d4a793bd739cd33232d2134880a8d12117672b
914
py
Python
tf/clasificador2/clasificador_dir.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/clasificador_dir.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/clasificador_dir.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
# coding=UTF-8 import cv2 import sys import os import tensorflow as tf import filetype CATEGORIAS = ['dormido', 'despierto', 'otro'] IMG_SIZE = int(sys.argv[3]) def preparaimg(filepath): img_array = cv2.imread(filepath, cv2.IMREAD_GRAYSCALE) new_array = cv2.resize(img_array, (IMG_SIZE, IMG_SIZE)) retur...
28.5625
73
0.658643
3dab09c9f18895b904125d9ba2ec741590c1da28
1,372
py
Python
Packs/ServiceNow/Scripts/ServiceNowIncidentStatus/ServiceNowIncidentStatus.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ServiceNow/Scripts/ServiceNowIncidentStatus/ServiceNowIncidentStatus.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ServiceNow/Scripts/ServiceNowIncidentStatus/ServiceNowIncidentStatus.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 COLORS = { '1 - New': '#00CD33', # (success green) '2 - In Progress': '#7995D4', # (royal blue) '3 - On Hold': '#FF9000', # (warning orange) '4 - Awaiting Caller': '#FF9000', # (warning orange) '5 - Await...
30.488889
90
0.61516
3dd1f074801fdda6a493b5523fc6da4e546d091d
14,609
py
Python
mltrain-nips-2017/lu_jensen/visdial_workshop.pytorch/train/train_G.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
mltrain-nips-2017/lu_jensen/visdial_workshop.pytorch/train/train_G.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
mltrain-nips-2017/lu_jensen/visdial_workshop.pytorch/train/train_G.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
from __future__ import print_function import argparse import os import random import sys sys.path.append(os.getcwd()) import pdb import time import numpy as np import json import progressbar import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.parallel import torch.backends.cudnn as cudn...
39.590786
118
0.630912
9abde9590954dcb678193a7a66faed82267b7746
192
py
Python
top/clearlight/base/runoob/error/error_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/runoob/error/error_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/runoob/error/error_01.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
def mye(level): if level < 1: raise Exception("Invalid level!") # 触发异常后,后面的代码就不会再执行 try: mye(0) # 触发异常 except Exception as err: print(1, err) else: print(2)
14.769231
41
0.578125
772f6e8f3bcedc9cbec66eab050585305eca1dc8
3,318
py
Python
thread_float_bbs.py
ikeikeikeike/scrapy-2ch-summary-spider
7142693f25025a09390377649a727cfd33d15af3
[ "MIT" ]
2
2015-01-12T08:23:35.000Z
2017-07-28T15:02:26.000Z
thread_float_bbs.py
ikeikeikeike/scrapy-2ch-summary-spider
7142693f25025a09390377649a727cfd33d15af3
[ "MIT" ]
null
null
null
thread_float_bbs.py
ikeikeikeike/scrapy-2ch-summary-spider
7142693f25025a09390377649a727cfd33d15af3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import itertools from scrapy.spider import BaseSpider from scrapy.selector import Selector from scrapy.http.request import Request import feedparser from scrapy_mongodb import MongoDBPipeline collection = None def _request_ignores(url, settings=None): """ すでに登録済みはリクエストしない """ ...
25.921875
73
0.57173
62724a923dd489807922b5dc845a52a4c8ed8c56
394
py
Python
sakf/db/nosql/nosql.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/db/nosql/nosql.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/db/nosql/nosql.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import jdb2 from sakf.conf import globalConfig def nosqlDB(): """ creat nodb db obj :return: """ _nosql_conf = globalConfig.config.get('nodb') _nosqlFile = _nosql_conf.get('file') _dump_time = _nosql_conf.get('dump_time') _dump = _nosql_conf.get('dump', False) noSql = jdb2.No...
23.176471
75
0.700508
6593b826e62099da56eb2eadb02bfa96e0211a8d
787
py
Python
Problems/Depth-First Search/easy/CousinsBT/cousins_in_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/easy/CousinsBT/cousins_in_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/CousinsBT/cousins_in_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def isCousins(self, root: Optional[TreeNode], x: int, y: int) -> bool: compare = [] def check(cur...
26.233333
76
0.597205
b2384000bdcd943fb13098761f1cc4096d467b87
3,740
py
Python
models/syntaxsql/net_utils.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
models/syntaxsql/net_utils.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
models/syntaxsql/net_utils.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
def to_batch_seq(batch): q_seq = [] history = [] label = [] for item in batch: q_seq.append(item['question_tokens']) history.append(item["history"]) label.append(item["label"]) return q_seq, history, label # CHANGED def to_batch_tables(batch, table_type): # col_lens = [...
35.961538
93
0.631818
b2ad2f6ba80c0b860b88095f733e43696a7ffe64
718
py
Python
turngen/test_mcts.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/test_mcts.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
turngen/test_mcts.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
import montecarlo as mc import state as s import numpy as np import alphazero.NeuralNet as nn def main(): monteCarlo = mc.MCTS(2) nnet = nn.NeuralNet() board = np.array([ -1, 1, 1, 1, 1, 1, 1,-1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
27.615385
63
0.4039
a79de92abde8a036971edb9e164fe877f323fa18
554
py
Python
rename.py
loublock/Adam-Soundbox
ba859411a5c289c4ea61735233906d657785071d
[ "MIT" ]
1
2020-08-24T19:27:48.000Z
2020-08-24T19:27:48.000Z
rename.py
loublock/Adam-Soundbox
ba859411a5c289c4ea61735233906d657785071d
[ "MIT" ]
null
null
null
rename.py
loublock/Adam-Soundbox
ba859411a5c289c4ea61735233906d657785071d
[ "MIT" ]
null
null
null
import os path = 'SD_CARD/MP3/' count = 1 for filename in os.listdir('SD_CARD/MP3/'): if count > 9 and count <= 99: os.rename(r'SD_CARD/MP3/' + filename,r'SD_CARD/MP3/00' + str(count) + '.mp3') elif count > 99 and count <= 999: os.rename(r'SD_CARD/MP3/' + filename,r'SD_CARD/MP3/0' + str(count)...
32.588235
86
0.584838
ac393dd807b5c59556b193ea8bb84dc1c5bb967f
2,716
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/06_voting_example/06_voting_example.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/06_voting_example/06_voting_example.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_07_Sequenzen_Mengen_und_Generatoren/06_voting_example/06_voting_example.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 06_voting_example.py # Project: Kapitel_07_Sequenzen_Mengen_und_Generatoren # Created Date: Sunday 03.03.2019, 20:34 # Author: Apop85 # ----- # Last Modified: Monday 04.03.2019, 12:20 # ----- # Copyright (c) 2019 Apop85 # This software is published under the MIT...
33.530864
94
0.594256
3bfa4b294340d6fee73a1d146009ab06204ed881
8,331
py
Python
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_dataset.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_dataset.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_dataset.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
# Copyright 2018 Deep Learning Service of Huawei Cloud. 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...
45.774725
80
0.580483
ce2254fb627e25c68c6cea60e4ad2d54c2a44a57
145
py
Python
hardware/chip/rtl872xd/hal/hal_test/uart/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/rtl872xd/hal/hal_test/uart/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/rtl872xd/hal/hal_test/uart/ucube.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
src = Split(''' uart_test.c ''') component = aos_component('uart_test', src) component.add_cflags('-Wall') component.add_cflags('-Werror')
16.111111
43
0.689655
024e111fd4f6f72908ffde93407e9cbee5a5191b
124
py
Python
tests/conftest.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
tests/conftest.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
tests/conftest.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
import pathlib import pytest @pytest.fixture() def root_dir() -> pathlib.PosixPath: return pathlib.Path().absolute()
13.777778
36
0.725806
ce48e39d702f37a92e96b02b7bc8ff6f0a2fe3c4
7,560
py
Python
Sephrasto.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
Sephrasto.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
Sephrasto.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 23 21:30:34 2017 @author: Aeolitus """ from PyQt5 import QtWidgets, QtCore, QtGui import sys import logging import os.path import MainWindow import CharakterEditor import DatenbankEdit import CharakterMain import DatenbankMain from Wolke import Wolk...
40.427807
161
0.63836
0cc57be939cacc9e98dc3136d3ccf6ef1562d646
1,912
py
Python
codeit/oop/transports.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/transports.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/transports.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from vehicle import Vehicle class Bicycle(Vehicle): max_speed = 15 def __init__(self, speed): self._speed = speed @property def speed(self): return self._speed @speed.setter def speed(self, new_value): self._speed = new_value if 0 <= new_value <= Bicycle.max_speed el...
20.126316
77
0.598849
b2d2ed6b1a8a1264916646d07cfdf043ed82812c
3,914
py
Python
src/onegov/election_day/layouts/default.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/default.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/default.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from babel import Locale from cached_property import cached_property from datetime import datetime from onegov.ballot import VoteCollection from onegov.core.i18n import SiteLocale from onegov.core.layout import ChameleonLayout from onegov.core.static import StaticFile from onegov.election_day import _ from onegov.elect...
29.428571
72
0.655084
0bf75ffc14183ea1a2ac1a22331593a7ef86822e
1,620
py
Python
PMIa/2014/VINOGRADOVA_J_S/task_7_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/VINOGRADOVA_J_S/task_7_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/VINOGRADOVA_J_S/task_7_48.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 48. # Создайте игру, в которой компьютер загадывает название одной из двадцати # башен Московского кремля, а игрок должен его угадать. # Vinogradova J. # 31.03.2016 import random name = random.randint(1,12) if name == 1 : name = 'Беклемишевская' elif name == 2 : name = ...
22.816901
75
0.558025
f0f764b0db8aca5c56a82e63ae276f69198633e6
903
py
Python
kernel/blog/migrations/0002_auto_20180605_1353.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/blog/migrations/0002_auto_20180605_1353.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/blog/migrations/0002_auto_20180605_1353.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-05 09:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterField( model_name='news', name='sku', field=mod...
31.137931
126
0.612403
0b15922f9b1b565f5c12d8838021c8e30ac2f17a
808
py
Python
535-encode-and-decode-tinyurl/535-encode-and-decode-tinyurl.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
535-encode-and-decode-tinyurl/535-encode-and-decode-tinyurl.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
535-encode-and-decode-tinyurl/535-encode-and-decode-tinyurl.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Codec: def __init__(self): self.codec_dict = dict() self.codec_reversed = dict() self.codec_len = 0 def encode(self, longUrl: str) -> str: """Encodes a URL to a shortened URL. """ if longUrl not in self.codec_dict: self.codec_dict[longUrl]=self....
32.32
71
0.600248
acbbe6f47814bc2d3c6890dde8a7d1503844ddbb
34,894
py
Python
exportmodul.py
MaliziaGrimm/Lohnvorerfassung-50a-fuer-DATEV
41b99deacc5bfee6562907de109a8ad5af917d01
[ "MIT" ]
null
null
null
exportmodul.py
MaliziaGrimm/Lohnvorerfassung-50a-fuer-DATEV
41b99deacc5bfee6562907de109a8ad5af917d01
[ "MIT" ]
null
null
null
exportmodul.py
MaliziaGrimm/Lohnvorerfassung-50a-fuer-DATEV
41b99deacc5bfee6562907de109a8ad5af917d01
[ "MIT" ]
null
null
null
from flask import Flask from flask import request, render_template import os, time, csv from flask_sqlalchemy import SQLAlchemy from sqlalchemy import create_engine from sqlalchemy import Column, Integer, Text, MetaData, Table, DATE from sqlalchemy.sql import select, update import datenbank_obj, funktionen, ...
70.635628
316
0.681865
c5ea4da058d255d3e25980e8b5d5bf136c0cc014
3,119
py
Python
python/oneflow/nn/modules/in_top_k.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/nn/modules/in_top_k.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/in_top_k.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
33.537634
143
0.639307
a8795bb44959370b2560cf2e7355d2e856b814cc
1,866
py
Python
infrastructure/cosmosdb.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/cosmosdb.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/cosmosdb.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
from azwrapper import * def createCosmosDBAccount(group, accountName): if resourceExists(group, accountName): print('ComsosDB already exists: ' + accountName) else: print('Create database ' + accountName) createDbAccount = "cosmosdb create -g {} -n {} --capabilities {}" azSafe(c...
50.432432
105
0.692926
a87f7aed36e7fc9a75ee23496f61ca32906a59c8
17,187
py
Python
Packs/CadoResponse/Integrations/CadoResponse/CadoResponse.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CadoResponse/Integrations/CadoResponse/CadoResponse.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/CadoResponse/Integrations/CadoResponse/CadoResponse.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
''' Cado Response API Integration for the Cortex XSOAR Platform ''' import time import traceback from typing import Any, Dict, Optional from CommonServerPython import * from CommonServerUserPython import * import demistomock as demisto import requests ''' Module Level Declarations ''' requests.packages.urllib3....
34.512048
120
0.62588
a89f298697050a2c424f873ab03e66ee832c4dc3
35
py
Python
lib/python3.5/tarfile.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
1
2020-08-16T04:04:23.000Z
2020-08-16T04:04:23.000Z
lib/python3.5/tarfile.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
5
2020-06-05T18:53:24.000Z
2021-12-13T19:49:15.000Z
lib/python3.5/tarfile.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
/usr/local/lib/python3.5/tarfile.py
35
35
0.8
76872eea649dcd5c2106cccdf2659c2c3759be61
3,024
py
Python
computer-networking-a-top-down-approach/cp2/email.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
3
2021-08-04T07:59:48.000Z
2022-03-26T23:58:17.000Z
computer-networking-a-top-down-approach/cp2/email.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
computer-networking-a-top-down-approach/cp2/email.py
Jocs/reading-notes
26b8331877a2de034b8860bc3e3967893112d52d
[ "MIT" ]
null
null
null
from socket import * msg = "I love computer networks!" contenttype = "text/plain" endmsg = "\r\n.\r\n" # Choose a mail server (e.g. Google mail server) and call it mailserver mailserver = 'smtp.126.com' #Fill in start #Fill in end # Create socket called clientSocket and establish a TCP connection with mailserver #Fi...
28.8
82
0.719907
4fb1670a959d3fb2101469c3784de01390232933
18,818
py
Python
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/daemons/lvmdbusd/cmdhandler.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/daemons/lvmdbusd/cmdhandler.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/cmdhandler.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# 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 General Public License # a...
24.924503
78
0.691306
8b2bff222da0952a2a2b2adcc82956a89e5eecd6
679
py
Python
Algorithms/DynamicProgramming/Longest Common Subsequence/lcs_dynamic.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Algorithms/DynamicProgramming/Longest Common Subsequence/lcs_dynamic.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Algorithms/DynamicProgramming/Longest Common Subsequence/lcs_dynamic.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
def lcs(s1, s2, x, y): if arr[x-1][y-1] != -1: return arr[x-1][y-1] if x==0 or y==0: arr[x-1][y-1] = 0 return 0 elif s1[x-1] == s2[y-1]: arr[x-1][y-1] = 1 + lcs(s1, s2, x-1, y-1) return arr[x-1][y-1] else: arr[x-1][y-1] = max(lcs(s1, s2, x-1, y), lcs(s...
21.21875
84
0.555228
50ad6f764c13e48dce605fcce721d08f212c4bdb
170
py
Python
exercises/fr/exc_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Importe spaCy import ____ # Crée l'objet nlp français nlp = ____ # Traite un texte doc = nlp("Ceci est une phrase.") # Affiche le texte du document print(____.text)
14.166667
33
0.717647
ba24c1927a095432b0acf43547b2e9f348a098b7
38,795
py
Python
Packs/Netskope/Integrations/NetskopeAPIv1/NetskopeAPIv1.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Netskope/Integrations/NetskopeAPIv1/NetskopeAPIv1.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/Netskope/Integrations/NetskopeAPIv1/NetskopeAPIv1.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
# type: ignore from copy import deepcopy from typing import Any, Dict, List, Optional, Tuple from urllib.parse import urljoin import urllib3 import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * # disable insecure warnings urllib3.disable_warnings() DEFAULT_PAGE = 1 DEF...
40.53814
129
0.593143
e84d456546a7effda0c065864dac6f4667e69a6e
1,691
py
Python
Packs/GoogleChronicleBackstory/Scripts/ExtractDomainFromIOCDomainMatchRes/ExtractDomainFromIOCDomainMatchRes_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleChronicleBackstory/Scripts/ExtractDomainFromIOCDomainMatchRes/ExtractDomainFromIOCDomainMatchRes_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleChronicleBackstory/Scripts/ExtractDomainFromIOCDomainMatchRes/ExtractDomainFromIOCDomainMatchRes_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from unittest.mock import patch import demistomock as demisto import ExtractDomainFromIOCDomainMatchRes ARGS = {'json_response': "{\"Artifact\": \"e9428.b.akamaiedge.net\", \"IocIngestTime\": \"2020-07-17T20:00:00Z\", " "\"FirstAccessedTime\": \"2018-11-05T12:01:29Z\", \"LastAccessedTime\": "...
44.5
116
0.662921
fa24c06f6cb71d0d132ad5eaf12a37f9f961d403
3,896
py
Python
examples/relationship/manytoonefield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytoonefield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytoonefield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.shortcuts import render, HttpResponse from .models import Reporter, Article from datetime import date def single_create(request): # 测试用例-1: 创建一条维表数据和一条主表数据. # 1. 创建维表数据. # INSERT INTO `manytoonefield_reporter` (`first_name`, `last_name`, `email`) # VALUES ('John', 'Smith', 'john@example.co...
42.813187
118
0.630903
fa4e1e4a8bcd6ba18676178d49cdccda27580841
1,657
py
Python
Curso-Em-Video-Python/1Materias/20_Funcoes/#021 função parte 2.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/20_Funcoes/#021 função parte 2.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/20_Funcoes/#021 função parte 2.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
'''print('Ajuda Interativa') print('Usando o help(e o comando)') #help(print)''' #exemplo DOCTRINGS** '''def contador(i, f, p): """ -> faz uma contagem e mostra na tela. :param i: Inicio da contagem :param f: Fim da contagem :param p: Passo da contagem :return: sem retorno """ c = i ...
18.411111
63
0.554013
ad4de6af8414028b9dbc8d7ea1bd1128514f7053
12,216
py
Python
Beginner/03. Python/buscas-heuristicas.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-06T13:55:02.000Z
2021-10-06T13:55:02.000Z
Beginner/03. Python/buscas-heuristicas.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/buscas-heuristicas.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
#'Importa pacote Numpy e renomeia com NP' import numpy as np #'Importa módulo base.funcoes e renomeia para FN' import base.funcoes as fn from base.grafo import Aresta #'De Pillow importar Image, ImageDraw' from PIL import Image, ImageDraw #'De queue=fila importar Queue, LifoQueue' from queue import Queue, LifoQueue, ...
34.803419
135
0.563032
ada0a3f19ebd4f734d0b9a458bc4f2e1505253c6
783
py
Python
UFV---Python/Trabalho Mat. Disc/rascunho.py
Vith-MCB/UFV
9d96fecdc9ffde2563f9f397bcdb39d95aaf7e69
[ "MIT" ]
1
2022-01-25T16:52:26.000Z
2022-01-25T16:52:26.000Z
UFV---Python/Trabalho Mat. Disc/rascunho.py
Vith-MCB/UFV
9d96fecdc9ffde2563f9f397bcdb39d95aaf7e69
[ "MIT" ]
null
null
null
UFV---Python/Trabalho Mat. Disc/rascunho.py
Vith-MCB/UFV
9d96fecdc9ffde2563f9f397bcdb39d95aaf7e69
[ "MIT" ]
null
null
null
# input n = int(input()) cont1 = int(input()) conttot = 1 # grafo contador = 0 g = [[0 for i in range(n)] for j in range(n)] lista = input().split() for col in range(n): for linha in range(n): g[col][linha] = int(lista[contador]) contador += 1 if col == linha: g[col][linha] = 0 ...
23.029412
81
0.551724
7e949d1be8b4b1624b308071102466425b0db545
800
py
Python
undumb.py
pierce403/undumb
966d15a1010ad675054c1fdde253448c7d50cb09
[ "Apache-2.0" ]
1
2020-08-11T05:01:05.000Z
2020-08-11T05:01:05.000Z
undumb.py
pierce403/undumb
966d15a1010ad675054c1fdde253448c7d50cb09
[ "Apache-2.0" ]
null
null
null
undumb.py
pierce403/undumb
966d15a1010ad675054c1fdde253448c7d50cb09
[ "Apache-2.0" ]
null
null
null
import re import sys if(len(sys.argv)>1): file = open(sys.argv[1], encoding = "ISO-8859-1") else: file = open(sys.stdin.fileno(), encoding = "ISO-8859-1") minlength = 8 maxlength = 20 specials = re.compile('[@_!#$%^&*()<>?/\|}{~:]') lowers = re.compile('[abcdefghijklmnopqrstuvwxyz]') uppers = re.compile('[ABCDEFG...
22.222222
58
0.63375
bc1e72531c888ffd6f8a9aa21c25be6502ced3a4
99
py
Python
backend/apps/ineedstudent/apps.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
3
2020-03-27T20:39:31.000Z
2020-03-31T20:24:55.000Z
backend/apps/ineedstudent/apps.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
21
2020-03-28T09:57:15.000Z
2020-03-31T11:38:00.000Z
backend/apps/ineedstudent/apps.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class IneedstudentConfig(AppConfig): name = 'ineedstudent'
16.5
36
0.777778
cb2cc562d1c939cd1753a77b41c7d4d1890aa287
2,340
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/build/typemap.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/build/typemap.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/build/typemap.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) 2015-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...
40.344828
115
0.680769
3842ea2b47a34f7d49abb2340d79662e97807666
472
py
Python
pythonProj/FZPython/taskCenter/dailyTickData.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/taskCenter/dailyTickData.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/taskCenter/dailyTickData.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
""" 获取实时盘口数据 """ import tushare as ts from pymongo import MongoClient import json import time stockList = ['600196','601933','600703'] # 根据stock列表获得实时数据, df = ts.get_realtime_quotes(stockList) #Single stock symbol # print(df) # conn = MongoClient('121.42.26.144', 27017) while True: # 每隔3秒执行一次数据 time.sleep(...
20.521739
71
0.713983
69b0b6a4eff52152771be7b2f24bd2e2a56e40d2
901
py
Python
0088merge-sorted-array.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0088merge-sorted-array.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0088merge-sorted-array.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Solution: def merge(self, nums1, m: int, nums2, n: int) -> None: """ Do not return anything, modify nums1 in-place instead. """ for i in range(m): nums1[-1-i] = nums1[m-1-i] i = 0 j = 0 k = 0 ...
22.525
62
0.374029
3864e2aa61bdb12eff257d3cbadcdb4edbbe581e
114
py
Python
python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE28JUL/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from AppOperations import AppOperations as ao from AppOperations import Rec ao.reset_slno() #print(Rec.timestmp())
28.5
45
0.824561
aab5aa24a847ec42ce8ae7235d2646ee49fe8cfa
5,706
py
Python
Utils/py/PathPlanner/LPG.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/LPG.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/LPG.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from __future__ import division import sys import math import numpy as np from matplotlib import pyplot as plt from matplotlib.patches import Circle import matplotlib as mpl import Queue as Q import copy import time base = 1.1789 minimal_cell = 100 angular_part = 16 parameter_s = 0.5 robot_radius = 0 ...
33.174419
170
0.578339
fadc9bf4539325b36b93f4d31e6ebd90427b62db
7,743
py
Python
src/bo4e/bo/marktlokation.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/marktlokation.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/marktlokation.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Marktlokation class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.bo.geschaeftsobjekt import Geschaeftsobjekt, GeschaeftsobjektSchema from bo4e.bo.geschaeftspartner import G...
47.213415
180
0.767661
35a4b7c239146705ae98c9ce84c0a611d5d09b7d
1,020
py
Python
python/python_backup/wisp_old/archives/test3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/wisp_old/archives/test3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/wisp_old/archives/test3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import tkinter as tk def populate(frame): '''Put in some fake data''' for row in range(100): tk.Label(frame, text="%s" % row, width=3, borderwidth="1", relief="solid").grid(row=row, column=0) t="this is the second column for row %s" %row tk.Label(frame, text=t).grid(ro...
34
80
0.680392
ea28cd016775170d9f5df70e42ab1a9b9f1f1670
5,533
py
Python
research/audio/fcn-4/infer/utils/mxbase_get_auc.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/fcn-4/infer/utils/mxbase_get_auc.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/fcn-4/infer/utils/mxbase_get_auc.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 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 agree...
37.134228
114
0.628411
575d446b1875d8a5d0653247ca05134efd4ea1e2
2,409
py
Python
users/serializers.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/serializers.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/serializers.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
""" Serializers to convert API data to and from the database """ from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User from rest_framework.serializers import ModelSerializer from .models import Profile, UserPhoto class UserSerializer(ModelSerializer): """ A seriali...
23.851485
74
0.515982
57c8c5e2bf31423c6e4182faf3ddad0eb33fdc06
537
py
Python
06.BinarySearch/min/B2805-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
06.BinarySearch/min/B2805-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
06.BinarySearch/min/B2805-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
import sys num , need = map(int, input().split()) arr = list(map(int, input().split())) #sys.stdin.readline().strip() high = max(arr) low = 1 def cutTree(mid): sum = 0 for i in arr: if(mid < i): sum += i - mid return sum check = 0 while low <= high: #print("high, low : " , high ...
17.322581
42
0.493482
17acd44b2823516e5d98e96db26b6112f10205bc
965
py
Python
plugins/tff_backend/migrations/_007_referral_in_user_data.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/migrations/_007_referral_in_user_data.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/migrations/_007_referral_in_user_data.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
33.275862
74
0.767876
102ee09bcc7103b2bffb1124afb43dd99b75ca8a
5,224
py
Python
MyNaiveBayes.py
hakimkt/SAIVS
c310bd7c9426f0d21efeea8866cf6b881b7e8530
[ "Apache-2.0" ]
40
2018-10-29T02:29:13.000Z
2021-11-23T13:14:50.000Z
MyNaiveBayes.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
1
2021-02-23T12:27:28.000Z
2021-02-23T12:27:28.000Z
MyNaiveBayes.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
29
2018-10-29T02:29:17.000Z
2022-03-17T06:31:35.000Z
#!/usr/bin/python #coding:utf-8 import os import sys import math import pickle # NaiveBayesで種々の分類を実行 class Classify(): def __init__(self): # 訓練済みデータを格納するpklファイルパスを定義 self.bin_nb_okng_body_path = os.path.join('.\\data', 'nb_okng_classify_body.pkl') self.bin_nb_page_type_bod...
33.487179
100
0.605475
1088f0cf4fe8f58837847c8d44ed70a295f79b15
2,480
py
Python
src/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
11
2018-01-16T06:39:00.000Z
2021-11-28T11:46:41.000Z
src/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
null
null
null
src/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
2
2019-08-16T14:53:37.000Z
2019-08-17T02:01:22.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @Author:lch02 @Time: 2017/12/25 14:46 @Description: 处理xlxsw中的文本,将其中的数据(160w条)导出 """ import os import re import pickle from nltk import regexp_tokenize from nltk.corpus import stopwords from config import test_path from openpyxl import load_workbook from multiprocess...
29.879518
124
0.515726
10abffd57deb1a4efdc92c688f38e868db500bfb
1,335
py
Python
src/lcdoc/mkdocs/lp/plugs/drawio/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/lp/plugs/drawio/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/lp/plugs/drawio/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
""" ### `drawio` Automatically includes an svg, based on .drawio file changes. """ import json import subprocess as sp from lcdoc import lp from lcdoc.tools import file_hash, app, dirname, exists, os, read_file, write_file, os multi_line_to_list = True req_kw = ['fn', 'src'] def run(cmd, kw): """ """ ...
25.188679
86
0.595506
875dde80a08590b75ccd856d48fdea2d4ae6724f
2,784
py
Python
02_context.py
melandresen/Ich-Daten
87362aa8060865d2d33443054297214bd80526fe
[ "Apache-2.0" ]
null
null
null
02_context.py
melandresen/Ich-Daten
87362aa8060865d2d33443054297214bd80526fe
[ "Apache-2.0" ]
null
null
null
02_context.py
melandresen/Ich-Daten
87362aa8060865d2d33443054297214bd80526fe
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd import re def update_indices(span_start, span_end, string): match = re.search("[Ii]ch", string) start_corr = span_start + match.start(0) end_corr = span_end - len(string) + match.end(0) return start_corr, end_corr def extended_search(text, start_index, end_index, tol...
33.95122
97
0.62967
5e6cef070a741281952542c67242e44998f24d2d
726
py
Python
order/migrations/0010_auto_20201203_1426.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/migrations/0010_auto_20201203_1426.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/migrations/0010_auto_20201203_1426.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-12-03 06:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0009_auto_20201203_1410'), ] operations = [ migrations.AlterField( model_name='order', name=...
29.04
134
0.559229
21b0b6ef09081080c08a08dca17dbd50bf6f03dd
72
py
Python
Dinsel/ex3/ex3.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
Dinsel/ex3/ex3.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
Dinsel/ex3/ex3.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
#!/usr/bin/env python with open(__file__) as fname: print(fname.read())
24
49
0.722222
9cae12c7b07e7617324c5978fde17b09cc1eb0e4
2,178
py
Python
research/cv/sknet/src/util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/sknet/src/util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/sknet/src/util.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...
39.6
120
0.636823
b48f72baf888034c5ea9cf3c4ad814f4ef5eb7e7
6,705
py
Python
shinrl/solvers/base/solver.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/solvers/base/solver.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/solvers/base/solver.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
""" Author: Toshinori Kitamura Affiliation: NAIST & OSX """ from __future__ import annotations import inspect import random from abc import ABC, abstractmethod, abstractstaticmethod from itertools import count from typing import Dict, Iterator, List, Optional, Type import gym import jax import numpy as np import stru...
34.209184
120
0.587323
2590d3bc780b4146ff7f23d380a633901e96a1ff
142
py
Python
MiniProjects/Python-Challenges/Password_Gen.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
MiniProjects/Python-Challenges/Password_Gen.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
MiniProjects/Python-Challenges/Password_Gen.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
import random char = 'qwertyuiopasdfghjklzxcvbnm!@#$%^&*(()' stren = 10 password = "".join(random.sample(char , stren)) print (password)
23.666667
48
0.669014
25b53a178f0eaa0c9af5577e4a3ff3f2ba9ddd5f
1,251
py
Python
Test.py
ShuboshaKuro/SimpleGameEngine
01da061fe931ec0ade898b82baa93c591eacbb43
[ "MIT" ]
null
null
null
Test.py
ShuboshaKuro/SimpleGameEngine
01da061fe931ec0ade898b82baa93c591eacbb43
[ "MIT" ]
null
null
null
Test.py
ShuboshaKuro/SimpleGameEngine
01da061fe931ec0ade898b82baa93c591eacbb43
[ "MIT" ]
null
null
null
import numpy as np import os from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D # has to change whenever noise_width and noise_height change in the PerlinNoise.hpp file DIMENSION1 = 200 DIMENSION2 = 200 # works if the working directory is set path = os.path.dirname(os.path.realpath(__file__)...
27.8
108
0.689848
d353a668d33712371061f7bfd82f3ba63ccb884e
1,877
py
Python
leetcode/serialize-and-deserialize-binary-tree/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
leetcode/serialize-and-deserialize-binary-tree/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
leetcode/serialize-and-deserialize-binary-tree/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import struct class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Codec: def serialize(self, root): """Encodes a tree to a single string. :type root: TreeNode :rtype: str """ if root is None: ...
20.626374
76
0.514651
d36fbff74f07f79524ba41fa627d903538351ac5
475
py
Python
deprecated/RasaNLU/src/rasaTrain.py
th-koeln-intia/ip-sprachassistent-team2
b8f8a20011bc766b1937566ee5a8786ee32bb3c5
[ "MIT" ]
1
2020-12-09T23:14:19.000Z
2020-12-09T23:14:19.000Z
deprecated/RasaNLU/src/rasaTrain.py
th-koeln-intia/ip-sprachassistent-team2
b8f8a20011bc766b1937566ee5a8786ee32bb3c5
[ "MIT" ]
1
2020-09-30T08:58:14.000Z
2020-10-14T13:55:14.000Z
deprecated/RasaNLU/src/rasaTrain.py
th-koeln-intia/ip-sprachassistent-team2
b8f8a20011bc766b1937566ee5a8786ee32bb3c5
[ "MIT" ]
1
2020-09-17T17:04:11.000Z
2020-09-17T17:04:11.000Z
from rasa_nlu.training_data import load_data from rasa_nlu import config from rasa_nlu.model import Trainer def train(model_dir="./models", project="default", data_dir="./intents"): training_data = load_data(data_dir) trainer = Trainer(config.load("nlu_config.yml")) trainer.train(training_data) model_...
29.6875
74
0.757895
1a3ece3b49e6e7901d088b748a11e4b43a2e9bce
138
py
Python
Sketche/title.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/title.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/title.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
from p5 import * def setup(): title("🐍 Jörgs Python Sketch 🐍".encode("utf-8")) def draw(): background(245, 245, 245) run()
13.8
52
0.586957
46cb478c44288acd22123b079969ab88e333de41
146
py
Python
saku/auction/apps.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
saku/auction/apps.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
saku/auction/apps.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AuctionConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'auction'
20.857143
56
0.760274
20166dff6b10b36f23bf6275623fcc30a520ef4e
244
py
Python
Python-programming-3/ascii.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
Python-programming-3/ascii.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-10-24T18:08:27.000Z
2020-10-24T18:10:52.000Z
Python-programming-3/ascii.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
4
2020-10-24T14:01:29.000Z
2020-10-25T09:21:07.000Z
# Python program to print # ASCII Value of Character # In c we can assign different # characters of which we want ASCII value c = 'g' # print the ASCII value of assigned character in c print("The ASCII value of '" + c + "' is", ord(c))
24.4
51
0.680328
6444e8f4d74e1d3a00ed257386acab8f6f38462e
897
py
Python
HackerEarth_problems/13 Reasons Why/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
2
2020-10-17T12:50:42.000Z
2020-10-17T12:50:49.000Z
HackerEarth_problems/13 Reasons Why/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
null
null
null
HackerEarth_problems/13 Reasons Why/solution1.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
1
2020-12-29T16:46:18.000Z
2020-12-29T16:46:18.000Z
''' Problem: 13 Reasons Why Given 3 integers A, B, C. Do the following steps- Swap A and B. Multiply A by C. Add C to B. Output new values of A and B. ''' # When ran, you will see a blank line, as that is needed for the submission. # If you are debugging and want it to be easier, change it too # input ...
24.916667
98
0.662207
3764765a408de9f3ab9a2e62174d54e08bd084e9
527
py
Python
server/apps/movie/adminx.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/movie/adminx.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/movie/adminx.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-04-19 20:45 # @Author : Mayandev # @Site : https://github.com/Mayandev/ # @File : adminx.py # @Software: PyCharm import xadmin from .models import Movie, Genre class MovieAdmin(object): list_display = ['id', 'closest_movie', 'doubanId'] m...
18.821429
54
0.660342
03bda1d222a249c9fd6e62c3dc9d059b6da67f6a
446
py
Python
exercises/pt/solution_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/solution_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/solution_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importar a classe da língua inglesa (English) e criar um objeto nlp from spacy.lang.en import English nlp = English() # Processar o texto doc = nlp("I like tree kangaroos and narwhals.") # Uma partição do Doc para "tree kangaroos" tree_kangaroos = doc[2:4] print(tree_kangaroos.text) # Uma partição do Doc para "tr...
27.875
76
0.762332
20810687c51cbb1a65e77504b29548d915b2e407
171
py
Python
02_Python/functions.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/functions.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/functions.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
def main(): for i in range(10): print(f"The square of {i} is {square(i)}") return def square(n): return n**2 if __name__ == '__main__': main()
13.153846
50
0.54386
643e431e28c0c195f6258a3a158f9de4a2b572c0
736
py
Python
tests/test_testing.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
tests/test_testing.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
tests/test_testing.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
import asyncio from asyncio import sleep from spangle.api import Api from spangle.handler_protocols import RequestHandlerProtocol from ward import fixture, raises, test, using @fixture def api(): return Api() @fixture @using(api=api) def timeout(api: Api): @api.route("/timeout") class Timeout: ...
23
74
0.691576
a68edaa4ffdc8b0f4c9c5edcf020b638b5b5c299
1,085
py
Python
Problems/BinarySearch/Hard/SplitArrayLargestSum/split_array_largest_sum.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/BinarySearch/Hard/SplitArrayLargestSum/split_array_largest_sum.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/BinarySearch/Hard/SplitArrayLargestSum/split_array_largest_sum.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from functools import lru_cache from typing import List # DP - Top-Down def splitArray(self, nums: List[int], m: int) -> int: n = len(nums) ps = [0] for num in nums: ps.append(ps[-1] + num) @lru_cache(None) def dp(i: int, c: int) -> int: if i == n: return 0 if ...
21.7
54
0.428571
5b300286bbd0afaf046bc7ddfda9a7f00bec8be6
1,799
py
Python
testcode/tok.py
Cl3V0r/MLSeminar
d05f171a9b7d773ea123e1919e07312a7f0c9fe8
[ "MIT" ]
null
null
null
testcode/tok.py
Cl3V0r/MLSeminar
d05f171a9b7d773ea123e1919e07312a7f0c9fe8
[ "MIT" ]
null
null
null
testcode/tok.py
Cl3V0r/MLSeminar
d05f171a9b7d773ea123e1919e07312a7f0c9fe8
[ "MIT" ]
null
null
null
#!usr/bin/env python #coding:utf8 from nltk.tokenize import TweetTokenizer from nltk.stem.cistem import Cistem from nltk.corpus import stopwords import nltk from sklearn.feature_extraction.text import CountVectorizer import matplotlib.pyplot as plt from wordcloud import WordCloud from pathlib import Path from sklearn.c...
32.125
81
0.716509
5b91aebc7e18c8a8d4f2c5b8c278295d0821b5e8
4,218
py
Python
SichereEntnahme.py
ThoEngel/rentenplanung
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
3
2022-01-01T18:24:46.000Z
2022-01-08T15:28:46.000Z
SichereEntnahme.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
SichereEntnahme.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
''' Vorsicht vor der 4%-Regel Sicher Entnahmerate https://www.finanzen-erklaert.de/vorsicht-vor-der-4-regel/ ''' import pandas as pd import time from SEsimulation.mDate import mDate from SEsimulation import SEsimulation import plotly.express as px import numpy as np def optimize(s, probability, loBound, hiBound): ...
31.477612
103
0.631342
5b9bf844c4b3f56ac874807da7d365032010e1ef
295
py
Python
PSA/psaExceptions.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/psaExceptions.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/psaExceptions.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
# -*- Mode:Python;indent-tabs-mode:nil; -*- # # File: psaExceptions.py # Created: 05/09/2014 # Author: BSC # # Description: # Custom execption class to manage error in the PSC # class psaExceptions( object ): class confRetrievalFailed( Exception ): pass
19.666667
57
0.620339
f3a5fab66ceedfb341431e9840acd30ba94bdbc7
38
py
Python
python/testlint/testlint/util.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/testlint/testlint/util.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/testlint/testlint/util.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
def add_yourself(a): return a + a
12.666667
20
0.631579
caf2517dfa6294e5eb94ac336f65b2026a084016
14,489
py
Python
scripts/signal_marker_processing/marker_aggregation.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
scripts/signal_marker_processing/marker_aggregation.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
scripts/signal_marker_processing/marker_aggregation.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Daniele Borio # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD # Created on Sun Sep 26 15:34:44 2021 import numpy as np """ Su...
34.415677
99
0.494168
caf8d2e93123505a305327145631a51379f4be2b
693
py
Python
tests/test_cli.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
tests/test_cli.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
tests/test_cli.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
from click.testing import CliRunner from modelindex.commands.cli import cli def test_cli_invocation(): runner = CliRunner() result = runner.invoke(cli) assert result.exit_code == 0 def test_cli_check_ok(): runner = CliRunner() result = runner.invoke(cli, ["check", "tests/test-mi/11_markdown/rexn...
28.875
97
0.707071
1b56962e5a6d5a63085f2158e015e7d133280d2e
82
py
Python
0-notes/job-search/Cracking the Coding Interview/C14Databases/questions/14.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C14Databases/questions/14.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C14Databases/questions/14.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 14.5 Denormalization # What is denormalization? # Explain the pros and cons.
16.4
28
0.731707
a2173048fd49fa12babfe4478a4385f72c5c1495
871
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_supplier_address_in_stock_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_supplier_address_in_stock_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_supplier_address_in_stock_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): # copy supplier_address to address_display, and set supplier_address to blank stock_entries = frappe.db.sql(""" select name, purchase_order, s...
37.869565
123
0.768083
bf914edd5e334bdda9f1192d6a3b43c7fe5939d7
6,731
py
Python
frappe-bench/apps/erpnext/erpnext/shopping_cart/test_shopping_cart.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/shopping_cart/test_shopping_cart.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/shopping_cart/test_shopping_cart.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import unittest import frappe from frappe.utils import nowdate, add_months from erpnext.shopping_cart.cart import _get_cart_quotation, update_cart, get_...
30.876147
122
0.733769
157d19a898890b81f2e5c2fb54100bd500b6c261
1,857
py
Python
tests/web.adblockplus.org/pages/landingPage.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2016-01-29T18:05:29.000Z
2021-10-06T04:21:55.000Z
tests/web.adblockplus.org/pages/landingPage.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2015-04-06T19:03:32.000Z
2019-05-28T13:34:55.000Z
tests/web.adblockplus.org/pages/landingPage.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
18
2015-04-06T17:42:31.000Z
2021-10-06T04:26:29.000Z
from pages.basePage import BasePage DOWNLOAD_BUTTON_HREF = 'a[href*="install"]' DOWNLOAD_BUTTON_HREF_ANDROID = 'a[href*="https://eyeo.to/adblockbrowser/android/abp-website"]' DOWNLOAD_BUTTON_HREF_IOS = 'a[href*="https://eyeo.to/adblockplus/ios_safari_install/abp-website"]' DOWNLOAD_BUTTON_HREF_LANG = 'a[href*="chrome_...
38.6875
110
0.777598
1734d420c88d48f5713ccdaf11d5cc003b5ad203
43,342
py
Python
Packs/CounterTack/Integrations/CounterTack/CounterTack.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CounterTack/Integrations/CounterTack/CounterTack.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CounterTack/Integrations/CounterTack/CounterTack.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 import os import os.path # Disable insecure warnings requests.packages.urllib3.disable_warnings() # remove proxy if not set to true in params if not demisto.params().get('pr...
30.245639
120
0.604056
bdac16655c6ca969dc0bc7dd06b8c0d0dd447a3b
482
py
Python
pattern-classification/machine_learning/scikit-learn/tokenizer.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2021-12-13T15:41:48.000Z
2021-12-13T15:41:48.000Z
pattern-classification/machine_learning/scikit-learn/tokenizer.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
15
2021-09-12T15:06:13.000Z
2022-03-31T19:02:08.000Z
pattern-classification/machine_learning/scikit-learn/tokenizer.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2022-01-29T00:37:52.000Z
2022-01-29T00:37:52.000Z
from nltk.stem.porter import PorterStemmer import re from nltk.corpus import stopwords stop = stopwords.words('english') porter = PorterStemmer() def tokenizer(text): text = re.sub('<[^>]*>', '', text) emoticons = re.findall('(?::|;|=)(?:-)?(?:\)|\(|D|P)', text.lower()) text = re.sub('[\W]+', ' ', text.lo...
34.428571
84
0.595436
97a8774db190df1aef3f8228788815dfb27dbc2d
70
py
Python
research/cv/ICNet/src/models/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ICNet/src/models/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ICNet/src/models/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
"""__init__""" from .icnet import ICNet from .icnet_dc import ICNetdc
17.5
29
0.757143
a9b6354e3ee0809a18fb29ba82e1e3553ac6b3df
813
py
Python
novel/crawler/novelcrawler/spiders/jianke.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
novel/crawler/novelcrawler/spiders/jianke.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
novel/crawler/novelcrawler/spiders/jianke.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# -*- coding: utf-8 -*- import scrapy class JiankeItem(scrapy.Item): title = scrapy.Field() link = scrapy.Field() desc = scrapy.Field() class JiankeSpider(scrapy.Spider): name = 'jianke' allowed_domains = ['www.xxbiquge.com'] start_urls = ['http://www.xxbiquge.com/2_2327/'] def parse(se...
29.035714
79
0.619926
e7883f622839652116c8434612035980b2af5b57
3,514
py
Python
extraction/links_in_context/main.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
extraction/links_in_context/main.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
extraction/links_in_context/main.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
from pathlib import Path from shutil import rmtree from aut import WebArchive from pyspark import SparkContext from pyspark.sql import SparkSession from links_in_context.filter_records import ( decode_pages, get_links_in_context, filter_links_in_context, exclude_dest_hosts, merge_links_in_context,...
37.784946
85
0.653671