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
edcef98b9dacc4ad7161a18913e7407f99c623b2
410
py
Python
yougetguide/com/aaron/youtu.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
yougetguide/com/aaron/youtu.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
yougetguide/com/aaron/youtu.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# _*_ encoding:utf-8 _*_ """ pip install you-get https://you-get.org/ """ __author__ = "aaron.qiu" from you_get.common import any_download from you_get.__main__ import main_dev if __name__ == '__main__': any_download(url="https://www.youtube.com/watch?v=QuPiZ86EFhQ", output_dir="E:\\", merge="E:\\") # any_dow...
29.285714
102
0.692683
61271b84835e262c10e8b559fc1fa612e169a55f
2,122
py
Python
doc/for_dev/scikit-image/setup_codes/_greyreconstruct_reconstruction_loop.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/for_dev/scikit-image/setup_codes/_greyreconstruct_reconstruction_loop.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/for_dev/scikit-image/setup_codes/_greyreconstruct_reconstruction_loop.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from future._greyreconstruct import reconstruction_loop from skimage.filters._rank_order import rank_order y, x = np.mgrid[:20:0.5, :20:0.5] bumps = np.sin(x) + np.sin(y) h = 0.3 seed = bumps - h mask = bumps assert tuple(seed.shape) == tuple(mask.shape) selem = np.ones([3] * seed.ndim, dtype=boo...
33.68254
79
0.724317
b64ab9777b46eab4ee60cf54089c1834113bf065
154
py
Python
rmpflow_using_class/world.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
rmpflow_using_class/world.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
rmpflow_using_class/world.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
"""世界クラス""" import numpy as np class World: def __init__(self): pass if __name__ == '__main__': pass
9.058824
27
0.461039
b6938ad851ae1550dcb14a69fef08b345fac93c0
2,358
py
Python
pyBarcode-0.6/barcode/__init__.py
fau-fablab/etiketten
5f4fcdd14001807e183164ae66df48d86c8f7a3e
[ "Unlicense" ]
1
2018-12-15T04:07:38.000Z
2018-12-15T04:07:38.000Z
pyBarcode-0.6/barcode/__init__.py
fau-fablab/etiketten
5f4fcdd14001807e183164ae66df48d86c8f7a3e
[ "Unlicense" ]
14
2015-01-02T10:37:33.000Z
2021-10-03T13:42:15.000Z
pyBarcode-0.6/barcode/__init__.py
fau-fablab/etiketten
5f4fcdd14001807e183164ae66df48d86c8f7a3e
[ "Unlicense" ]
1
2018-12-15T04:07:40.000Z
2018-12-15T04:07:40.000Z
# -*- coding: utf-8 -*- """ pyBarcode ========= This package provides a simple way to create standard barcodes. It needs no external packages to be installed, the barcodes are created as SVG objects. If PIL (Python Imaging Library) is installed, the barcodes can also be rendered as images (all formats supported by P...
26.2
76
0.678117
fcb883962e19f13abc3f5f56595d2598d41a13a9
773
py
Python
challenges/specialPolynomial/python3/specialPolynomial.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/specialPolynomial/python3/specialPolynomial.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/specialPolynomial/python3/specialPolynomial.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def specialPolynomial(x, n): s = 1 k = 0 while s <= n: k += 1 s += x**k return k-1 if __name__ == '__main__': input0 = [2, 10, 1, 3] input1 = [5, 111111110, 100, 140] expectedOutput = [1, 7, 99, 4] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutput = {}'.format(len(input0), len(exp...
42.944444
132
0.658473
fcbf602d803b6a54b3266317d31336074db58fce
4,933
py
Python
NucleusDataset.py
ramesh152/SegmentationExperiment
b52dbc57759c086155e79c6621e6d25a4db0e974
[ "Apache-2.0" ]
2
2019-06-12T13:53:00.000Z
2020-04-29T13:11:12.000Z
NucleusDataset.py
ramesh152/SegmentationExperiment
b52dbc57759c086155e79c6621e6d25a4db0e974
[ "Apache-2.0" ]
1
2019-12-10T12:23:06.000Z
2019-12-10T12:23:06.000Z
NucleusDataset.py
ramesh152/SegmentationExperiment
b52dbc57759c086155e79c6621e6d25a4db0e974
[ "Apache-2.0" ]
1
2020-08-05T18:12:24.000Z
2020-08-05T18:12:24.000Z
from torch.utils.data import Dataset from torch.utils.data import DataLoader import os import torch import torch.nn.functional as F import torch.optim as optim from torchvision import transforms import torch.nn as nn import numpy as np import cv2 import os.path as osp from glob import glob from tqdm import tqdm c...
38.539063
111
0.59254
781ffedcf4eb6caa8472cb0a95889aa460aacf54
4,187
py
Python
TimeBomb/plugin.py
jztech101/Loggy
1883a09ebbb6c8120cae648aebeb2771e7f39d9b
[ "MIT" ]
null
null
null
TimeBomb/plugin.py
jztech101/Loggy
1883a09ebbb6c8120cae648aebeb2771e7f39d9b
[ "MIT" ]
6
2018-02-09T18:39:37.000Z
2018-08-31T18:40:02.000Z
TimeBomb/plugin.py
jztech101/Loggy
1883a09ebbb6c8120cae648aebeb2771e7f39d9b
[ "MIT" ]
null
null
null
import supybot.utils as utils from supybot.commands import * import supybot.plugins as plugins import supybot.ircmsgs as ircmsgs import supybot.schedule as schedule import supybot.ircutils as ircutils import supybot.callbacks as callbacks import random import time try: from supybot.i18n import PluginInternationali...
42.292929
220
0.615238
1589bd8034ad9ff8a7b1cd9fe23fc9670a853980
1,181
py
Python
backend/python/flask_app/app.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:07:54.000Z
2021-02-08T17:07:54.000Z
backend/python/flask_app/app.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
null
null
null
backend/python/flask_app/app.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:08:01.000Z
2021-02-08T17:08:01.000Z
from flask import Flask, request, make_response, jsonify from flask_cors import CORS from sqlalchemy import create_engine from controller import PostController, response_with_status_code import sys, os sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/../dao/src")) from Exception import IllegalArgumentExcept...
31.918919
75
0.750212
15bd4274e6d8fdce9fe3d2528a023fbdda7c53b4
384
py
Python
hello/hello_ui/hello_ttk.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_ui/hello_ttk.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_ui/hello_ttk.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import tkinter.ttk import tkinter root = tkinter.Tk() tkinter.ttk.Style().configure("TButton", padding=6, relief="flat", background="#ccc") count = 0 def show_hello(): tkinter.ttk.Label(text="Hello World!!").pack() btn = tkinter.ttk.Button...
16
66
0.640625
01a7d0637b5eebf039bcaa642b8fb40f2dbc88ec
8,657
py
Python
py_script/test_question_recall.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
4
2021-07-29T11:32:34.000Z
2021-08-12T07:13:25.000Z
py_script/test_question_recall.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
null
null
null
py_script/test_question_recall.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
1
2021-11-29T03:47:35.000Z
2021-11-29T03:47:35.000Z
import os import json def get_courseware_main_kp(kp_courseware_question_file_path): courseware_main_kp_list = dict() with open(kp_courseware_question_file_path, 'r') as f: for line in f: json_object = json.loads(line) if json_object['courseware_id'] not in courseware_main_kp_l...
36.682203
214
0.617881
bf26e2fcf5aa6ab695cba1677a162a9790060f1d
4,468
py
Python
practices/practice_2/task4.2.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_2/task4.2.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_2/task4.2.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
from libs.can import CANSocket from libs.myactuator import MyActuator from time import perf_counter, sleep import numpy as np # import getpass # password = getpass.getpass() # the serial port of device # you may find one by examing /dev/ folder, # this is usually devices ttyACM # os.system(f"sudo slcand -o -c -s8 /d...
26.915663
175
0.520815
17445f5f07de989a85324937c557067a23958ba3
4,288
py
Python
frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/setup/setup_wizard/operations/defaults_setup.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 frappe from frappe import _ from frappe.utils import cstr, getdate from frappe.core.doctype.communication.comment import add_info_comment def se...
34.031746
101
0.752799
e53cac43abe6635fcf3bddc1958ddbbcf9d875a2
524
pyde
Python
sketches/ca01/ca01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/ca01/ca01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/ca01/ca01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from cell import Cell GRID_W = 51 GRID_H = 51 def setup(): global cellList size(600, 600) this.surface.setTitle("CA 1") cellList = createCellList() def draw(): for row in cellList: for cell in row: cell.display() def createCellList(): sz = width//GRID_W + 1 newLis...
20.153846
45
0.578244
e5a36e0147df5dbc6f2cc497ee2bbfccca7dcc8b
1,510
py
Python
数据结构/NowCode/16_FindFirstCommonNode.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/16_FindFirstCommonNode.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/16_FindFirstCommonNode.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 两个链表的公共节点 # 输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针random指向一个随机节点), # 请对此链表进行深拷贝,并返回拷贝后的头结点。(注意,输出结果中请不要返回参数中的节点引用,否则判题程序会直接返回空) class Solution: # 第一个参数给比较短的链表,第二个参数给长链表的值 # def findEqual(self,): def FindFirstCommonNode(self, pHead1, pHead2): # 假设输入的两个链表,是同一个链表 if pHead1 == pHead2: ...
23.968254
61
0.491391
f91e5410497abb871d44b4b26fcd319dca905de1
561
py
Python
python/pubmed_test.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/pubmed_test.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/pubmed_test.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ Look up a DOI in PubMed. This script looks up a DOI in pubmed. """ import argparse from openapc_toolkit import get_metadata_from_pubmed as gmfp def main(): parser = argparse.ArgumentParser() parser.add_argument("doi", help="A DOI to look up in pubmed.") ...
20.035714
66
0.622103
00818ae4d66705777029ed38b458a986cd50e250
6,242
py
Python
test/test_npu/test_network_ops/test_multilabel_margin_loss.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_multilabel_margin_loss.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_multilabel_margin_loss.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...
46.237037
141
0.618392
009ff893a246abac723c2453f610f4f157cd7c08
395
py
Python
flask/tutorial-1-3-router-blueprint/users/views.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
flask/tutorial-1-3-router-blueprint/users/views.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
flask/tutorial-1-3-router-blueprint/users/views.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
# https://github.com/gothinkster/flask-realworld-example-app/blob/master/conduit/user/views.py from flask import Blueprint blueprint = Blueprint('users', __name__, url_prefix='/users') @blueprint.route("/", methods=('GET',)) def get_user_list(): return {"message": "Get List of Users."} @blueprint.route("/", met...
30.384615
94
0.701266
979c526ba5837032a402dbf4c59db3301a80e989
1,289
py
Python
AnaliseZipf/lerolero_extractor.py
Superar/PLN
2ed5ea1f0ebb28ca8dd3729c064758bc5c2abcee
[ "MIT" ]
null
null
null
AnaliseZipf/lerolero_extractor.py
Superar/PLN
2ed5ea1f0ebb28ca8dd3729c064758bc5c2abcee
[ "MIT" ]
null
null
null
AnaliseZipf/lerolero_extractor.py
Superar/PLN
2ed5ea1f0ebb28ca8dd3729c064758bc5c2abcee
[ "MIT" ]
null
null
null
# from builtins import print import time import scrapy from selenium import webdriver def is_two_pages(fileobject): fileobject.seek(0, 2) size = fileobject.tell() if size > 16000: return True else: return False class TextSpider(scrapy.Spider): name = "text_spider" allowed_...
21.483333
91
0.559348
e7608e1a8bd326ff094486601d1bccb84db52a27
5,192
py
Python
wz/ui/datatable_widget.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/datatable_widget.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/datatable_widget.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/datatable_widget.py Last updated: 2021-10-22 Gui editor widget for "DataTables". See datatable-editor.py for an app which can be used for testing this widget. =+LICENCE================================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (t...
32.049383
82
0.609977
6b675ae6ec20cdf575afb06a81fd2c5c2aa8bbb7
1,418
py
Python
tensorflow/basic-rl/tutorial14/code/train_deepqnaf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/tutorial14/code/train_deepqnaf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/tutorial14/code/train_deepqnaf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
from baselines.deepqnaf.learn import learn import gym import tensorflow as tf import argparse #parser parser = argparse.ArgumentParser() parser.add_argument('--environment', dest='environment', type=str, default='MountainCarContinuous-v0') parser.add_argument('--num_timesteps', dest='num_timesteps', type=int, default=...
36.358974
102
0.685472
d892995b60c5c42b2a079b10bef6d2f69d80e364
3,006
py
Python
menucard/migrations/0002_auto_20201230_1855.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/migrations/0002_auto_20201230_1855.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/migrations/0002_auto_20201230_1855.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-30 17:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('menucard', '0001_initial'), ] operations = [ migrations.AddField( model_name='alkoholfreiedrinks', name='zusatzstoff...
35.785714
96
0.581171
991287d9cb504a003155ca828430c40f5035c979
58
py
Python
febonaci.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
febonaci.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
febonaci.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-09-30T18:53:05.000Z
2020-09-30T18:53:05.000Z
a=0 b=1 while a<10: print(a) a,b=b,a+b
8.285714
14
0.396552
99201384e272dc16b1c63b79e4253d0df9af8dfd
15,870
py
Python
easyp2p/p2p_parser.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
easyp2p/p2p_parser.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
easyp2p/p2p_parser.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Niko Sandschneider """ Module for parsing output files of P2P platforms and printing combined results. Each P2P platform has a unique format for presenting investment results. The purpose of this module is to provide parser methods to transform them into a single out...
37.429245
80
0.622684
51a7b49f979b6c5a0c6020e4d8c3a5c997029df6
15,831
py
Python
pyScript/custom_src/MainWindow.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/MainWindow.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/MainWindow.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
import os, sys # QT from PySide2.QtWidgets import QMainWindow, QFileDialog, QShortcut from PySide2.QtGui import QColor, QFontDatabase, QIcon, QKeySequence # parent UI from ui.ui_main_window import Ui_MainWindow from custom_src.GlobalAccess import GlobalStorage # custom content from custom_src.Script import Script # f...
39.676692
124
0.619481
cfca473c7636af7a265aadb872e696e60bca57e4
213
py
Python
2021/RoundC/tmp.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
1
2021-03-12T08:39:01.000Z
2021-03-12T08:39:01.000Z
2021/RoundC/tmp.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
null
null
null
2021/RoundC/tmp.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
1
2021-03-20T18:55:52.000Z
2021-03-20T18:55:52.000Z
# Python program showing no need to # use global keyword for accessing # a global value # global variable a = 15 b = 10 # function to perform addition def add(): c = a + b print(c) # calling a function add()
13.3125
35
0.690141
8ff5cab7fb4ce3e6dd3d1a109f20f0119467486f
471
py
Python
pacman-termux/test/pacman/tests/smoke002.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/smoke002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/smoke002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install packages with huge descriptions" p1 = pmpkg("pkg1") p1.desc = 'A' * 500 * 1024 self.addpkg(p1) p2 = pmpkg("pkg2") p2.desc = 'A' * 600 * 1024 self.addpkg(p2) self.args = "-U %s %s" % (p1.filename(), p2.filename()) # We error out when fed a package with an invalid description; the second o...
26.166667
77
0.692144
712eefca56c390466eeff675972b4137318849fa
4,390
py
Python
kollektiv5gui/views/DatasetTableWidget.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/views/DatasetTableWidget.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/views/DatasetTableWidget.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import json from PyQt5.QtCore import Qt from PyQt5.QtGui import QPixmap, QCursor, QColor from PyQt5.QtWidgets import QTableWidget, QTableWidgetItem, QMenu from kollektiv5gui.util import api from kollektiv5gui.models.Dataset import Dataset class DatasetTableWidget(QTableWidget): """ This table displays contain...
35.12
78
0.615262
a4489dffe718a97ccb74e3c9f52f9b17c3e92dd1
318
py
Python
src/onegov/onboarding/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/onboarding/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/onboarding/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('onegov.onboarding') # noqa log.addHandler(logging.NullHandler()) # noqa from translationstring import TranslationStringFactory _ = TranslationStringFactory('onegov.onboarding') # noqa from onegov.onboarding.app import OnboardingApp __all__ = ['_', 'log', 'OnboardingApp']
28.909091
57
0.783019
a44b22a980e8ffa2fe3644e6346b6c4921cf8ee2
73
py
Python
src/showcase/__init__.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2021-04-28T09:45:34.000Z
2021-04-28T09:45:34.000Z
src/showcase/__init__.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2020-09-24T07:20:16.000Z
2020-09-24T07:20:16.000Z
src/showcase/__init__.py
th-koeln-intia/ip-sprachassistent-team1
69fbc06a326da91fd3d84f222eba6cd2b1a79975
[ "MIT" ]
1
2020-12-04T13:38:33.000Z
2020-12-04T13:38:33.000Z
from showcase import showcase def setup(): return showcase.setup()
12.166667
29
0.726027
a4a0c0f4e8de3d2fc701771f2ec4f0812f3c362a
359
py
Python
exercises/ja/solution_03_09_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/solution_03_09_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/solution_03_09_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.tokens import Token nlp = spacy.blank("ja") # デフォルト値がFalseである拡張属性「is_country」をトークンに追加 Token.set_extension("is_country", default=False) # テキストを処理し、「スペイン」のトークンについてis_country属性をTrueにする doc = nlp("私はスペインに住んでいます。") doc[2]._.is_country = True # すべてのトークンについて、文字列とis_country属性を表示 print([(token.text, ...
23.933333
58
0.785515
74b00c2b6dfd171d2e4c14614c92073db83d7af2
419
py
Python
pacman-termux/test/pacman/tests/epoch004.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/epoch004.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/epoch004.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with same version, different epochs" sp = pmpkg("dummy", "2:2.0-1") sp.files = ["bin/dummynew"] self.addpkg2db("sync", sp) lp = pmpkg("dummy", "1:2.0-1") lp.files = ["bin/dummyold"] self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSIO...
24.647059
67
0.699284
2d104ecbf49f42703884e2800e25b87173a1113e
472
py
Python
checker/responsivesecurity/product_key.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/product_key.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/product_key.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
import urllib.request import ssl import nacl.encoding import nacl.public from .resources import PRIVATE_KEY def get_url(url): return urllib.request.urlopen(url, context=ssl._create_unverified_context()).read() def get_from_api(endpoint): sk = nacl.public.PrivateKey(PRIVATE_KEY, nacl.encoding.HexEncoder) ...
27.764706
87
0.769068
743b6debf39ce598a411de981da701a3a8d87d62
29,795
py
Python
Openharmony v1.0/third_party/ltp/testcases/kernel/power_management/lib/pm_sched_mc.py
clkbit123/TheOpenHarmony
0e6bcd9dee9f1a2481d762966b8bbd24baad6159
[ "MIT" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/ltp/testcases/kernel/power_management/lib/pm_sched_mc.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/ltp/testcases/kernel/power_management/lib/pm_sched_mc.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' Reusable functions related to sched mc FVT are put together ''' import os import sys import re from time import time __author__ = "Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>" __author__ = "Poornima Nayak <mpnayak@linux.vnet.ibm.com>" cpu_map = {} stats_start = {} stats_stop = {} ...
35.639952
102
0.535123
748e1e1b17a2070f17bb8fc5cff4ce2b007e61bc
525
py
Python
books/PythonAutomate/google_spreadsheets/create_upload_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/google_spreadsheets/create_upload_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/google_spreadsheets/create_upload_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""create_upload_spreadsheets.py 구글 스프레드 시트 문서 열기, 생성하기, 업로드 하기 """ import ezsheets # 등록된 문서 열기 sheet_id = "1jDZEdvSIh4TmZxccyy0ZXrH-ELlrwq8_YYiZrEOB4jg" ss = ezsheets.Spreadsheet(sheet_id) print(ss) # <Spreadsheet title="Bean Count", 1 sheets> print(ss.title) # Bean Count # 빈 스프레드 시트 문서 만들기 ss = ezsheets.createS...
23.863636
62
0.737143
7ac894034e1f619251fe3ec435d7496765057222
4,158
py
Python
official/audio/melgan/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/audio/melgan/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/audio/melgan/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.8
109
0.62482
bb32bbe04e04b5f3fd070e1b2b1575b440eafdc4
490
py
Python
codeit/algorithm/fib_memo.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/fib_memo.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/fib_memo.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""피보나치 수열 Memoization""" def fib_memo(n, cache): if n < 3: return 1 if n in cache: return cache[n] cache[n] = fib_memo(n - 2, cache) + fib_memo(n - 1, cache) return cache[n] def fib(n): # n번째 피보나치 수를 담는 사전 fib_cache = {} return fib_memo(n, fib_cache) if __name__ ...
20.416667
62
0.581633
701e63a0eb1392bb35e5e801b97cc6aae8372040
2,121
py
Python
aero_info.py
kirtis26/Missile3D
23a868b34f7362dac5ce0dff254d990f4d0c4e92
[ "MIT" ]
null
null
null
aero_info.py
kirtis26/Missile3D
23a868b34f7362dac5ce0dff254d990f4d0c4e92
[ "MIT" ]
null
null
null
aero_info.py
kirtis26/Missile3D
23a868b34f7362dac5ce0dff254d990f4d0c4e92
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd def table_atm(h, parametr): """ Cтандартная атмосфера для высот h = -2000 м ... 80000 м (ГОСТ 4401-81) arguments: h высота [м], parametr: 1 - температура [К]; 2 - давление [Па]; 3 -...
31.656716
94
0.530882
70783165cd3fb9edb1ec92fcc5a029ba5024797c
590
py
Python
apps/quiver/forms.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/quiver/forms.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/quiver/forms.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ from .models import AnalyticsService class AnalyticsServiceForm(forms.ModelForm): field_order = ( 'name', 'description', 'url', 'api_key', 'visibility', ) def __init__(self, *args, **k...
21.071429
67
0.555932
3b1680f8c48497f62608c5fbf5364bcabd9c3bf9
1,288
py
Python
leetcode/010-Regular-Expression-Matching/RegExpMatch.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/010-Regular-Expression-Matching/RegExpMatch.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/010-Regular-Expression-Matching/RegExpMatch.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def isMatch(self, s, p): """ :type s: str :type p: str :rtype: bool """ n_s = len(s) n_star = 0 seg = [] i = len(p) - 1 while i > -1: if p[i] == '*': n_star += 1 seg.i...
28
113
0.321429
3b5a0df898048828f4c520e9b8d8fa29121269d4
2,459
py
Python
warf/urls.py
acaciawater/warf
2c2f5f38f6f681549f34e335e88fb6e7e4b7d229
[ "MIT" ]
null
null
null
warf/urls.py
acaciawater/warf
2c2f5f38f6f681549f34e335e88fb6e7e4b7d229
[ "MIT" ]
null
null
null
warf/urls.py
acaciawater/warf
2c2f5f38f6f681549f34e335e88fb6e7e4b7d229
[ "MIT" ]
null
null
null
"""warf URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
42.396552
80
0.660838
8ed1051b90c83fd42c2125034f9fa9858f735a06
2,252
py
Python
pyventskalender/tag11.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag11.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag11.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Heute geht es um das Dictionary, `dict`, einen Container, mit dem man Daten # mit "Stichworten" ablegen und auslesen kann. # # Wir bleiben thematisch beim Einlesen der Datei mit Gewichten. # Wie wir sie lesen und den Inhalt extrahieren haben wir verstanden. # Doch um aktuell bspw. die Frage zu beantworten, was das Hö...
32.171429
79
0.723801
15e077649c4d54f45c9db25294bbe2de314c2d0f
1,523
py
Python
python/asyncio/example_3.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/example_3.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/example_3.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" example_3.py Just a short example demonstrating a simple state machine in Python However, this one has delays that affect it """ import time import queue def check_time(func): def wrapper(*args, **kwargs): start_time = time.time() func(*args, **kwargs) print(f'Task {args[0]} total el...
23.075758
83
0.550886
c61c855194ada76d3956f7dc1656562be0558a60
1,501
py
Python
chapter100/postgres_03.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/postgres_03.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/postgres_03.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
import asyncio import psycopg from datetime import datetime start = datetime.now() async def main(): client = await psycopg.AsyncConnection.connect( "postgres://username:password@127.0.0.1" ) cursor = await client.cursor() await cursor.execute( """ CREATE TABLE table_name( ...
23.825397
71
0.571619
c62ddfcde20e40bca5ab0c76df0f397bf947ced5
24,032
py
Python
Packs/Ansible_Powered_Integrations/Integrations/VMwareV2/VMwareV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Ansible_Powered_Integrations/Integrations/VMwareV2/VMwareV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Ansible_Powered_Integrations/Integrations/VMwareV2/VMwareV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import traceback from typing import Dict, cast import ansible_runner import demistomock as demisto # noqa: F401 import ssh_agent_setup from CommonServerPython import * # noqa: F401 # Dict to Markdown Converter adapted from https://github.com/PolBaladas/torsimany/ def dict2md(json_block, depth=0): m...
56.679245
109
0.656666
d6a5db705d8f686da0afa5b69e90350e26b17f99
20,538
py
Python
server/game_logic.py
JungleState/ksr_junglestate
99e86458b5056507bd36906f295bef11f2c734f5
[ "MIT" ]
1
2022-01-25T07:53:12.000Z
2022-01-25T07:53:12.000Z
server/game_logic.py
JungleState/ksr_junglestate
99e86458b5056507bd36906f295bef11f2c734f5
[ "MIT" ]
14
2022-01-03T13:19:11.000Z
2022-01-12T15:36:42.000Z
server/game_logic.py
JungleState/ksr_junglestate
99e86458b5056507bd36906f295bef11f2c734f5
[ "MIT" ]
null
null
null
from random import randint import functools import logging import threading logging.getLogger().setLevel("DEBUG") class Item: def __init__(self, name, id): self.name = name self.id = id def __str__(self) -> str: return self.id class Rules: TIME_TO_MOVE = 0.5 SIGHT = 2 c...
36.806452
207
0.539634
242ab624f6041e0f0ff0c58d127b511bf351b7a3
2,277
py
Python
official/audio/melgan/ascend310_infer/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/audio/melgan/ascend310_infer/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/audio/melgan/ascend310_infer/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...
42.166667
92
0.658762
cc6957a197b7f3640abef490156842f956195524
1,090
py
Python
src/onegov/ballot/models/election/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot.models.election.association import ElectionAssociation from onegov.ballot.models.election.candidate import Candidate from onegov.ballot.models.election.candidate_result import CandidateResult from onegov.ballot.models.election.election import Election from onegov.ballot.models.election.election_compo...
37.586207
76
0.815596
cca977640d2f6e18b7bb9a3f372ec4db7db02e25
2,621
py
Python
datastories_semeval2017_task4/embeddings/WordVectorsManager.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
datastories_semeval2017_task4/embeddings/WordVectorsManager.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
datastories_semeval2017_task4/embeddings/WordVectorsManager.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
import errno import os import pickle import numpy from utilities_nn.ResourceManager import ResourceManager class WordVectorsManager(ResourceManager): def __init__(self, corpus=None, dim=None, omit_non_english=False): super().__init__() self.omit_non_english = omit_non_english self.wv_filena...
40.323077
109
0.54979
d1d5c4248dc98ceb78d1d3d12f2b463f38fb1d21
899
py
Python
IVTa/2014/BURMISTROV_V_D/task4_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/BURMISTROV_V_D/task4_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/BURMISTROV_V_D/task4_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 45. # Напишите программу, которая выводит имя, под которым скрывается Борис Николаевич Кампов. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех...
47.315789
445
0.775306
ae5e5a697b06aaa04f673eeb7ff7efe22a339346
197
py
Python
exercises/de/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.de import German nlp = German() people = ["David Bowie", "Angela Merkel", "Lady Gaga"] # Erstelle eine Liste von Patterns für den PhraseMatcher patterns = list(nlp.pipe(people))
21.888889
56
0.730964
ee0bdabfe7177e17c0250471fb986fa7c87bf387
449
py
Python
pacman-arch/test/pacman/tests/sync893.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync893.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync893.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "conflict 'db vs db'" sp1 = pmpkg("pkg1", "1.0-2") sp1.conflicts = ["pkg2"] self.addpkg2db("sync", sp1); sp2 = pmpkg("pkg2", "1.0-2") self.addpkg2db("sync", sp2) lp1 = pmpkg("pkg1") self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") self.addpkg2db("local", lp2) self.args = "-S %s --ask=4" % " ".jo...
21.380952
68
0.64588
c9d1d1114e0bf8d6bd40c016bd8fc62824b2c634
640
py
Python
ICHSA/2021/crypto/Baby_Homework/best_crypto_service.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
ICHSA/2021/crypto/Baby_Homework/best_crypto_service.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
ICHSA/2021/crypto/Baby_Homework/best_crypto_service.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2 from Crypto.Cipher.AES import AESCipher import os, random, binascii from sys import argv import string import sys def padding(data): pad_size = 16 - (len(data) % 16) data = data + "".join([random.choice(string.printable) for _ in range(pad_size)]) return data def e...
24.615385
86
0.678125
4e44df4dba1220622395129688ddb6a7ecd10074
13,501
py
Python
premium-main/setting.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
premium-main/setting.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
premium-main/setting.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
########################################################################### # TEAM : ZEE K WORLD,MR.RISKY,WANSXGANS, # # SOSIAL : # # - Facebook : https://m.facebook.com/llovexnxx # # - WhatsApp : https://wa.me/6283143565470 # # - TeleGram : 6283143565470 # # - Github : ...
34.976684
390
0.59403
01623b6ac7c423b3e033ba536d9e56a325ace94d
92
py
Python
2014/12/state-outbreak-preparedness/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/12/state-outbreak-preparedness/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/12/state-outbreak-preparedness/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 = '1exAtJogmunF-R70TvaWDUeSI_l3hBNGAQqIlfiz7uP8'
23
68
0.836957
6dbe7269619cd4767cc2fe11a43620e6cdd14447
392
py
Python
SoSe-21/Code-Vorlesungen/VL-7/Gruppe-Montag/VL-Histogramm.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-7/Gruppe-Montag/VL-Histogramm.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-7/Gruppe-Montag/VL-Histogramm.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# import matplotlib.pyplot as plt # Menge an Werten zahlen = "1203456708948673516874354531568764645" # Initialisieren der Histogramm Variable histogramm = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] for index in range(len(zahlen)): histogramm[int(zahlen[index])] += 1 # plt.hist(histogramm, bins = 9) # plt.show() for i in r...
24.5
60
0.67602
6dc3d3e7a80eac5dc41e59f1b8431ccbb2626936
751
py
Python
jobs/tasks/pay/index.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
2
2019-06-10T08:57:47.000Z
2021-06-12T16:22:15.000Z
jobs/tasks/pay/index.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
jobs/tasks/pay/index.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from common.models.pay.PayOrder import PayOrder from common.libs.Helper import get_format_date from common.libs.pay.PayService import PayService import datetime from application import app,db ''' python manager.py runjob -m pay/index ''' class JobTask(): def __init__(self): pass def run(se...
28.884615
83
0.724368
6de8bc77d99bd8c2b60621a8c6ad7cdc2d5243b7
303
py
Python
asteroid/utils/test_utils.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
3
2020-09-30T02:32:08.000Z
2021-02-05T04:48:01.000Z
asteroid/utils/test_utils.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2020-09-17T08:55:12.000Z
2020-09-17T08:55:12.000Z
asteroid/utils/test_utils.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2021-02-05T04:48:05.000Z
2021-02-05T04:48:05.000Z
import torch from torch.utils import data class DummyDataset(data.Dataset): def __init__(self): self.inp_dim = 10 self.out_dim = 10 def __len__(self): return 20 def __getitem__(self, idx): return torch.randn(1, self.inp_dim), torch.randn(1, self.out_dim)
20.2
73
0.650165
feea298fda9086d758aa991fce9281751e0298f3
2,753
py
Python
DQN/CartPole/DQN_brain.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
2
2021-01-06T09:45:23.000Z
2021-04-21T09:39:14.000Z
DQN/CartPole/DQN_brain.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
DQN/CartPole/DQN_brain.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : DQN_brain.py @Time : 2020/12/4 @Author : Yuan Yifu """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F MEMORY_CAPACITY = 2000 N_STATE = 4 N_ACTIONS = 2 EPSILON = 0.9 LR = 0.01 REPLACE_COUNTER = 100 BATCH_SIZE = 32 GAMMA = 0.9 class Ne...
28.978947
78
0.596803
3ab24c20823920d5111b8036369161a00d3ac54a
1,384
py
Python
nnc/migrations/0002_auto_20210729_1145.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
nnc/migrations/0002_auto_20210729_1145.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
nnc/migrations/0002_auto_20210729_1145.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-07-29 06:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('nnc', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', field...
35.487179
123
0.568642
42e032ee6f5fd3a434b14ad21b08ade337d214d7
9,115
py
Python
pacman-arch/test/pacman/pmdb.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/pmdb.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/pmdb.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...
34.923372
82
0.531761
b0cfc3d3bf9955fb661e1ec0bd1d6dc5443cb1b0
1,073
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_2/fix_missing_default_taxes_and_lead.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/v6_2/fix_missing_default_taxes_and_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_2/fix_missing_default_taxes_and_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): # remove missing lead for customer in frappe.db.sql_list("""select name from `tabCustomer` where ifnull(lead_name, '')!='' and not exists (select name from `tabLead` where name=`tabCustomer`.lead_name)"""): frappe.db.set_value("Customer", custo...
41.269231
117
0.744641
c6e2d5025d80a181409d731ccf587ea75bb94b51
725
py
Python
___Python/Carsten/p13_parameter/m01_parameter.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p13_parameter/m01_parameter.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p13_parameter/m01_parameter.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
def mittelwert(liste): return sum(liste)/len(liste) def mittelwert2(*liste): return sum(liste)/len(liste) print(mittelwert([3, 4, 5])) print(mittelwert2(3, 4, 5)) def ausgabe(Liste, ende="\n"): for element in Liste: print(element, end=ende) def ausgabe2(Liste, **kwargs): ende...
24.166667
77
0.645517
b1b4780e8e74008de4143424c97cc6503058ec3b
2,011
py
Python
code/paamestia.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
1
2020-12-24T12:20:26.000Z
2020-12-24T12:20:26.000Z
code/paamestia.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
null
null
null
code/paamestia.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
null
null
null
""" paamestia main script """ # pygame stuff import pygame import pygame.freetype pygame.init() pygame.freetype.init() # imports import globals as gl import ext_ui_methods_lib as ui """ ### ### main loop ### ### """ while gl.prog_active: ui.loop() # run external methods according to prog_pos if gl.prog_pos == ...
23.658824
90
0.61462
5520a59059023af687e2cd895064ca5eb926e4f5
579
py
Python
Chapter5_DNN/Chapter5_5_NeuralNetworkGUI/start/drawer/src/preprocessing.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_5_NeuralNetworkGUI/start/drawer/src/preprocessing.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_5_NeuralNetworkGUI/start/drawer/src/preprocessing.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import os from typing import Any import cv2 import matplotlib.pyplot as plt import numpy as np from scipy.ndimage import center_of_mass FILE_PATH = os.path.abspath(__file__) PROJECT_DIR = os.path.dirname(os.path.dirname(FILE_PATH)) def load(image_path: str) -> np.ndarray: pass # TODO def resize(image: np.n...
17.545455
68
0.704663
9b596c057f676eb8d344832bc535c05925d901d7
1,000
py
Python
rvk/keys/rvk_keys.py
DennisTobola/jskos-data
d32837447b01498fc4c05c49c534d4ab4faae35f
[ "CC0-1.0" ]
7
2015-10-02T15:43:56.000Z
2021-12-07T11:20:46.000Z
rvk/keys/rvk_keys.py
DennisTobola/jskos-data
d32837447b01498fc4c05c49c534d4ab4faae35f
[ "CC0-1.0" ]
22
2015-11-06T14:33:55.000Z
2022-03-31T11:48:11.000Z
rvk/keys/rvk_keys.py
DennisTobola/jskos-data
d32837447b01498fc4c05c49c534d4ab4faae35f
[ "CC0-1.0" ]
4
2018-10-17T13:06:57.000Z
2022-03-14T08:46:35.000Z
#!/usr/bin/env python3 import csv import sys inputfile = sys.argv[1] csvwriter = csv.writer(sys.stdout, delimiter=',') csvwriter.writerow(("notation", "prefLabel", "broaderNotation")) dict = {} with open(inputfile, newline='') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: ...
25
64
0.542
85ddfdee024df99ee33c491242c5dfd17b5299fe
1,735
py
Python
842/Fcat_842_backtracking.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
842/Fcat_842_backtracking.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
842/Fcat_842_backtracking.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List class Solution: def splitIntoFibonacci(self, num: str) -> List[int]: def check_next_fib(fibs, index): while str(fibs[-1] + fibs[-2]) == num[index:index + len(str(fibs[-1] + fibs[-2]))]: if fibs[-1] + fibs[-2] >= 2147483648: return Fal...
36.145833
95
0.459366
c82a47e72d6874b62a23d6e009c4375e5b84c92f
75
py
Python
python/python_backup/PRAC_PYTHON/fast.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/fast.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/fast.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
l=input("enter a no") h=input("enter another no") a=(l*h) print "area",a
18.75
28
0.626667
f1f4099023e6b6d59f30abee8dc1afadb79b3acf
146
py
Python
3.Python/shelb-doc.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
11
2020-10-02T06:37:32.000Z
2020-10-28T09:09:33.000Z
3.Python/shelb-doc.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
7
2020-10-08T09:03:22.000Z
2020-11-03T23:58:13.000Z
3.Python/shelb-doc.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
58
2020-09-29T15:35:39.000Z
2021-10-05T17:35:15.000Z
name, age = "Shelby De Oliveira", 29 username = "shelb-doc" print ('Hello!') print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
29.2
68
0.643836
cde2403b73ac9d49dcb8079c7134bc254f3991a7
7,346
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/console/subject_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/console/subject_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/console/subject_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Callable, List, Optional from fastapi import APIRouter, Depends from starlette.responses import Response from watchmen_auth import PrincipalService from watchmen_meta.common import ask_meta_storage, ask_snowflake_generator from watchmen_meta.console import ConnectedSpaceService, ReportService, Subj...
41.502825
124
0.737408
a93c59cdb6ee1b78cc1c59f343e289f1ca60fed7
210
py
Python
src/python/py-accepted/236A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/236A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/236A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 236A # Created on : 2019-01-14 23:41:28 def Main(): cnt = len(set(input())) print('IGNORE HIM!' if cnt & 1 else 'CHAT WITH HER!') if __name__ == '__main__': Main()
15
57
0.561905
9e058e1d235494a1c0cea3fb6861559ed48cbf3a
959
py
Python
Packs/CommonScripts/Scripts/FileCreateAndUploadV2/FileCreateAndUploadV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-11-02T05:36:38.000Z
2021-11-02T05:36:38.000Z
Packs/CommonScripts/Scripts/FileCreateAndUploadV2/FileCreateAndUploadV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CommonScripts/Scripts/FileCreateAndUploadV2/FileCreateAndUploadV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import base64 import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): args = demisto.args() filename = args.get('filename', '') data = args.get('data', '') data_encoding = args.get('data_encoding', 'raw') entdy_id = args.get('entryId') try: ...
28.205882
76
0.607925
f57fecf4e45ef37fa99cd8f2c73cf05ae15afdd7
13,706
py
Python
Packs/SOCRadar/Integrations/SOCRadarThreatFusion/SOCRadarThreatFusion_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SOCRadar/Integrations/SOCRadarThreatFusion/SOCRadarThreatFusion_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SOCRadar/Integrations/SOCRadarThreatFusion/SOCRadarThreatFusion_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io import pytest from CommonServerPython import DemistoException, FeedIndicatorType, CommandResults def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) SOCRADAR_API_ENDPOINT = 'https://platform.socradar.com/api' CALCULATE_DBOT_S...
31.292237
121
0.721509
27163f24d844c92ccb536a87d1157a8f38afad46
74
py
Python
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P03_EvenPowersOf2.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P03_EvenPowersOf2.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P03_EvenPowersOf2.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
n = int(input()) for number in range(0, n + 1, 2): print(2 ** number)
18.5
33
0.554054
fdc3f82bfe8cd9cd0dfc5da504d65b190d0f8e4a
491
py
Python
profil/migrations/0010_auto_20191219_1938.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
profil/migrations/0010_auto_20191219_1938.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
profil/migrations/0010_auto_20191219_1938.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-12-19 18:38 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profil', '0009_auto_20190112_2032'), ] operations = [ migrati...
22.318182
72
0.631365
e3014b4ac863fdcc0113d57c274d4b8a383198e1
649
py
Python
command/generate_queries.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
command/generate_queries.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
command/generate_queries.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
from pathlib import Path def run(data): scripts_path = Path("scripts/queries") scripts_path.mkdir(parents=True, exist_ok=True) target_path = Path("scripts/queries.sql") contents = list() for child in scripts_path.iterdir(): if child.is_file(): with open(child) as f: ...
28.217391
62
0.550077
4733ace140f79fe7cd170dae520a781ee4570091
1,012
py
Python
x2paddle/project_convertor/pytorch/torch2paddle/__init__.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/project_convertor/pytorch/torch2paddle/__init__.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/project_convertor/pytorch/torch2paddle/__init__.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
# 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 appl...
32.645161
74
0.76087
47d799e33ad3c0b215a7bc41a0380faf90812fe8
2,271
py
Python
test/test_npu/test_network_ops/test_conv_tbc.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_conv_tbc.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_conv_tbc.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.491525
75
0.704095
d056390316c4c3b08e77129ff3eda9ac506e66fc
6,486
py
Python
School/G11/Pizza.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
School/G11/Pizza.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
School/G11/Pizza.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
running = True # Global Options SIZES = {'small': [7.58, 0], 'medium': [9.69, 1], 'large': [12.09, 2], 'jumbo': [17.99, 3], 'party': [20.29, 4]} # [Price, ID] TOPPINGS = {'pepperoni': [0, False], 'bacon': [0, True], 'sausage': [0, False], 'mushroom': [1, False], 'black olive': [1, False], 'green pepper': [1, False]} #...
37.062857
177
0.533611
de3b726dcfd836a816338d387f0a4c0586d9837a
8,238
py
Python
Transformer/Transformer_.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
Transformer/Transformer_.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
Transformer/Transformer_.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
""" Transformer 实现 Author: Bao Wenjie Date: 2021/3/7 REF: http://nlp.seas.harvard.edu/2018/04/03/attention.html """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import copy import math from torch.autograd import Variable from torch.nn.modules.container import Sequential from to...
31.204545
138
0.615319
7251a9cddcac3ca7253315617b552e7fb5136eae
471
py
Python
detect_anomalies.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
detect_anomalies.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
detect_anomalies.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
import logarithmoforecast import pandas as pd from pathlib import Path def create_ml_dataframe(station_name, phase, pickle_dir=Path('pickles')): path = pickle_dir / station_name df_ml = pd.read_pickle(path / ("h_phase"+str(phase))) df_ml.drop(columns=['ServiceDeliveryPoint']) print(df_ml) def main()...
24.789474
73
0.740977
a0ccc9c86f74e1c212fb9075845bda4af158fdd4
3,641
py
Python
official/cv/mobilenetv2_quant/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
official/cv/mobilenetv2_quant/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/mobilenetv2_quant/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
49.876712
111
0.642131
9d606bc58b436b44d159a2d4a2bfa6fd8143c76e
871
py
Python
savageml/utility/loss_functions.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/utility/loss_functions.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/utility/loss_functions.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
from enum import Enum import numpy as np def mean_squared_error(observed_value: np.ndarray, predicted_value: np.ndarray, axis: tuple = None) -> np.ndarray: if axis is None: return np.mean(np.square(np.subtract(observed_value, predicted_value))) else: return np.mean(np.square(np.subtract(obser...
33.5
125
0.746269
5f1babfeaa215707d37f84a6fbfd72f88443e789
382
py
Python
IVTa/2014/SAVCHENKOV_A_M/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/SAVCHENKOV_A_M/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/SAVCHENKOV_A_M/task_1_28.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 28 # Напишите программу, которая будет сообщать род деятельности и псевдоним под # которым скрывается Норма Бейкер. После вывода информации программа должна # дожидаться пока пользователь нажмет Enter для выхода. print("Норма Бейкер, более известная как Мэрилин Монро - американская \nкиноактриса, ...
54.571429
108
0.795812
26786c4a1069b5de398f71e5114d509f1670b3b0
143
py
Python
hardware/chip/rtl872xd/hal/hal_test/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/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/ucube.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
src = Split(''' hal_test.c ''') component = aos_component('hal_test', src) component.add_cflags('-Wall') component.add_cflags('-Werror')
15.888889
42
0.685315
26e3e51359c7f6d973f7e33c603f8cd613694d58
2,545
py
Python
DataStructure/U12/U12_79.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U12/U12_79.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U12/U12_79.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys #string = sys.argv[1] def initialize(): string = "1 2 3, 1 -2, 2 -3" clauses = string.split(',') print("Boolean Formel: ", clauses) length = len(string) global ls, substitution, value value = [] substitution = [0, 1] ls = [No...
20.198413
73
0.463261
f8220b2d2e4a2f9c3b32b095852979df43be7131
1,008
py
Python
test/test_levenshtein.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
6
2018-12-20T06:50:52.000Z
2021-12-16T13:08:38.000Z
test/test_levenshtein.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2020-06-29T07:00:51.000Z
2020-06-29T07:00:51.000Z
test/test_levenshtein.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2022-03-04T07:29:55.000Z
2022-03-04T07:29:55.000Z
from parameterized import parameterized from nose.tools import assert_equal, assert_true import os import sys dir_path = os.path.dirname(os.path.abspath(__file__)) module_path = os.path.join(dir_path, "../src") if module_path not in sys.path: sys.path.append(module_path) os.chdir(dir_path) class TestSPTokenizer...
31.5
53
0.641865
f89bb5eabd945384434347dd1427bbd72171300c
4,293
py
Python
gdp1/assignment_4/hanoi.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
gdp1/assignment_4/hanoi.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
gdp1/assignment_4/hanoi.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
import curses import sys from os import path class TowerOfHanoi: def __init__(self, stdscr): self.disks = 0 self.pegs = [] # For the curses-based UI. self.stdscr = stdscr self.x_base = 5 self.y_base = 2 def init_curses_colors(self): curses.init_color(1...
28.62
116
0.566969
e4a060c55419c13e5662d1b033d518ce0494f5fc
890
py
Python
agents/nets/cnn2.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
agents/nets/cnn2.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
agents/nets/cnn2.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
from tensorflow.keras import Model from tensorflow.keras.layers import Conv2D, Flatten, Dense, Input class CNN2Net(Model): def __init__(self, output_dim=3): """ Args: output_dim: 网络需要三个输出,对应3个动作的累积回报 """ super(CNN2Net, self).__init__() self.c1 = Conv2D(filters=...
27.8125
93
0.561798
90044b4795cabd524ecd61fd4425e141f39d9606
83
py
Python
examples/nowcoder/SQL7/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/nowcoder/SQL7/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/nowcoder/SQL7/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.apps import AppConfig class Sql7Config(AppConfig): name = 'SQL7'
13.833333
33
0.73494
f2e7936fbf1f9c345615a76cbbee0a4ffa951e89
986
py
Python
ref/dockerfiles-master/kinesis/consumer.py
DavidSche/davidche.tools
739578f2f92ad9cc120a0e08c30b9910efcd0033
[ "Apache-2.0" ]
2
2021-04-25T06:18:26.000Z
2021-11-14T15:49:51.000Z
ref/dockerfiles-master/kinesis/consumer.py
DavidSche/davidche.tools
739578f2f92ad9cc120a0e08c30b9910efcd0033
[ "Apache-2.0" ]
null
null
null
ref/dockerfiles-master/kinesis/consumer.py
DavidSche/davidche.tools
739578f2f92ad9cc120a0e08c30b9910efcd0033
[ "Apache-2.0" ]
1
2022-03-23T00:36:06.000Z
2022-03-23T00:36:06.000Z
import boto3 import json import time import os client = boto3.Session(region_name='eu-west-1').client('kinesis', aws_access_key_id='', aws_secret_access_key='', endpoint_url='http://localhost:4567') stream_details = client.describe_stream(StreamName='mystream') shard_id = stream_details['StreamDescription']['Shards'][...
39.44
151
0.713996
8429c53f7fd28307a11ce122a67b429fe703dee1
10,777
py
Python
src/main/python/view/plot_utils.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/view/plot_utils.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/view/plot_utils.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- from context import resource_manager import pandas import numpy from tools import logger import numpy as np import matplotlib.pyplot as plt log = logger.getLogger() def plot_image_file(img): plt.imshow(img) plt.show() def plot_image(narray, w='...
34.10443
141
0.461538
08138e27474e66b5810b4b252a33adee270963de
87
py
Python
Django/ballon/apps.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/apps.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
Django/ballon/apps.py
ballon3/GRAD
c630e32272fe34ead590c04d8360169e02be87f1
[ "MIT" ]
null
null
null
from django.apps import AppConfig class BallonConfig(AppConfig): name = 'ballon'
14.5
33
0.747126
d9fc1f3c4ad13786efc9302efb8fa7ea490ce0da
5,504
py
Python
frappe-bench/apps/erpnext/erpnext/demo/user/purchase.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/demo/user/purchase.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/demo/user/purchase.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 frappe, random from frappe.utils.make_random import how_many, get_random from frappe.desk import query_report from erpnext.setup.utils import ge...
35.057325
94
0.742914
8a0a0862cfd8814dd290af9a040daeea80778378
1,682
py
Python
tests/integration/server/search_api_tests.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
tests/integration/server/search_api_tests.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
tests/integration/server/search_api_tests.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
38.227273
88
0.615339
6a8786049d93e5d64909f980dc2b63e8b8fc9186
18,405
py
Python
Packs/CloudConvert/Integrations/CloudConvert/CloudConvert.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CloudConvert/Integrations/CloudConvert/CloudConvert.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CloudConvert/Integrations/CloudConvert/CloudConvert.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 * import urllib3 from typing import Any, Dict # Disable insecure warnings urllib3.disable_warnings() class Client(BaseClient): @logger def __init__(self, headers, verify=False, proxy=False): url = 'https://api.cloudconvert.com/v2' ...
37.484725
123
0.639065
0ab7436f0492d2dec23bf952529e99ce9b35b6d4
117
py
Python
classification/scripts/get_configsSize.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/get_configsSize.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/get_configsSize.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
import os from configs.Configurations import Configurations configs = Configurations().configs print(len(configs))
16.714286
49
0.820513
077e695b9af2564011604b4c4473cecbffac1320
250
py
Python
exercises/zh/test_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/zh/test_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/zh/test_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( "doc1.similarity(doc2)" in __solution__ or "doc2.similarity(doc1)" in __solution__ ), "你有计算两个doc之间的相似度吗?" assert ( 0 <= float(similarity) <= 1 ), "相似度分数是一个浮点数。你确定你计算正确了吗?" __msg__.good("棒棒哒!")
27.777778
90
0.612
07ed2f164464d0ace36548fb4bd47260d456faeb
225
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/85. number of days between two given dates.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/85. number of days between two given dates.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/85. number of days between two given dates.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that calculates the number of days between two given dates. Input Data: Date1 = 2011-1-1 Date2 = 2021-1-1' """ import datetime def date_diff(Date1, Date2): delta = Date2 - Date1 return (delta)
16.071429
76
0.693333
ed10cca5481e57a735298c518e21319ede230312
511
py
Python
hola_hercy.py
Hercita/POO
879d1e5462619579a5aec710bf3bc3ec6232de72
[ "CC0-1.0" ]
null
null
null
hola_hercy.py
Hercita/POO
879d1e5462619579a5aec710bf3bc3ec6232de72
[ "CC0-1.0" ]
null
null
null
hola_hercy.py
Hercita/POO
879d1e5462619579a5aec710bf3bc3ec6232de72
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Escribir SCRIPT que pregunte el nombre del usuario en la consola y un numero entero e imprima por pantalla en lineas distintas el nombre del usuario tantas veces como el numero """ name = input("¿Como te llamas? ") # input campo de entrada de datos, en python no se pone el punto y com...
46.454545
110
0.694716
b9bf59b2a3598e683d8a7c3d04f091a528408841
1,215
py
Python
Models/classTemplateTF/util/model_builder.py
guillaumedescoteauxisabelle/compai
b1f4c0c7c1995233461dd3a3a73c6f6bafbf98f2
[ "Apache-2.0" ]
null
null
null
Models/classTemplateTF/util/model_builder.py
guillaumedescoteauxisabelle/compai
b1f4c0c7c1995233461dd3a3a73c6f6bafbf98f2
[ "Apache-2.0" ]
null
null
null
Models/classTemplateTF/util/model_builder.py
guillaumedescoteauxisabelle/compai
b1f4c0c7c1995233461dd3a3a73c6f6bafbf98f2
[ "Apache-2.0" ]
1
2020-01-07T17:57:57.000Z
2020-01-07T17:57:57.000Z
import tensorflow as tf import tensorflow.keras from tensorflow.keras.applications import MobileNet def mobilenet_transfer(class_number): """Return a classification model with a mobilenet backbone pretrained on ImageNet # Arguments: class_number: Number of classes / labels to detect """ # ...
37.96875
104
0.702881