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
03ce4da45817c4ed653fb2efb4c8596dc163e244
4,476
py
Python
Packs/PhishLabs/Scripts/PhishLabsPopulateIndicators/PhishLabsPopulateIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PhishLabs/Scripts/PhishLabsPopulateIndicators/PhishLabsPopulateIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PhishLabs/Scripts/PhishLabsPopulateIndicators/PhishLabsPopulateIndicators.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 * from distutils.util import strtobool def indicator_type_and_value_finder(indicator_data: dict): """Find the indicator type and value of the given indicator Args: indicator_data(dict): The data about th...
43.456311
121
0.623548
03e23db692e8f239e49b0d6cd6526e36b105acd0
153
py
Python
src/aijack/collaborative/core/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/collaborative/core/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/collaborative/core/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
from .api import BaseFLKnowledgeDistillationAPI # noqa : F401 from .client import BaseClient # noqa: F401 from .server import BaseServer # noqa: F401
38.25
62
0.777778
45a2b109d746d79fc9872a7357f822347795d0a7
316
py
Python
setup.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
setup.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
setup.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup from fspke import __version__ setup(name='fspke', description='Forward Secure Public Key Encryption based on Canetti, Halevi and Katz model', version=str(__version__), author='Joseph deBlaquiere', author_email='jadeblaquiere@yahoo.com', packages=['fspke'])
35.111111
97
0.727848
afd70d99758e41048218132f8a41179330d212f6
7,272
py
Python
test/test_npu/test_network_ops/test_rsub.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_rsub.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_rsub.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...
42.526316
112
0.637101
2fdc2c9211827e20a7d4d7901cedfa5d7547d7a1
92
py
Python
2014/10/hh-ratios2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/10/hh-ratios2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/10/hh-ratios2/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 = '1GYOzG6v3-_DAUrUkKGsZQEINi5vLLv5nHn_A_UmEAUU'
23
68
0.836957
ff92817fcff05b84881d723879744ad185df5cbd
325
py
Python
python/callback_function.py
daoxuewu/cheat_sheet
4a164f7eccb85ca39b9a9ad58fe5d495862ecf44
[ "MIT" ]
null
null
null
python/callback_function.py
daoxuewu/cheat_sheet
4a164f7eccb85ca39b9a9ad58fe5d495862ecf44
[ "MIT" ]
null
null
null
python/callback_function.py
daoxuewu/cheat_sheet
4a164f7eccb85ca39b9a9ad58fe5d495862ecf44
[ "MIT" ]
null
null
null
# python回呼函式(callback function)練習 # reference : https://www.youtube.com/watch?v=iUrUf5ijiWs&list=PL-g0fdC5RMboYEyt6QS2iLb_1m7QcgfHk&index=33 def add(n1,n2,cb): cb(n1+n2) def handle(result): print("結果是",result) def handle1(sum): print("answer = ",sum) add(94,87,handle) add(3,5,handle1) # 結果是 181 # answer...
20.3125
106
0.701538
2bc1c25889d36cc703b3567e4fd397fea5b3fe92
2,370
py
Python
py/jpy/src/test/python/imp/import_ex2.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
210
2015-03-19T14:07:16.000Z
2022-03-31T19:28:13.000Z
py/jpy/src/test/python/imp/import_ex2.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/src/test/python/imp/import_ex2.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
40
2015-10-17T13:53:41.000Z
2021-07-18T20:09:11.000Z
""" Testing Python import machinery with the goal to let users import Java class like this: from jpy.java.io import File or from jpy import java.io.File as File """ __author__ = 'Norman' import sys import importlib.abc ModuleType = type(sys) yyyy = ModuleType('yyyy') class JavaClass: def __init__(self,...
25.76087
88
0.594515
a60f60a8d16c50995574b0285eddec95a469e526
82
py
Python
session2/for_tip_1.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session2/for_tip_1.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session2/for_tip_1.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
from itertools import permutations for i in permutations('ABCD'): print(i)
11.714286
34
0.719512
ca3a63454095a4064d0a27fd74823ec091e49799
8,710
py
Python
src/onegov/org/views/form_definition.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/form_definition.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/form_definition.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath from onegov.core.security import Private, Public from onegov.core.utils import normalize_for_url from onegov.form import FormCollection, FormDefinition from onegov.org import _, OrgApp from onegov.org.cli import close_ticket from onegov.org.elements import Link from onegov.org.forms import FormDefiniti...
31.788321
79
0.650861
04a398c74b5d76b287964d785859b10bba82adeb
4,326
py
Python
source/lib/ptp/src/threads/thread_management.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/lib/ptp/src/threads/thread_management.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/lib/ptp/src/threads/thread_management.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
<<<<<<< HEAD:source/api_wrapper/src/threads/thread_management.py from src.threads.stoppable_thread import StoppableThread ======= from lib.ptp.src.threads.stoppable_thread import StoppableThread >>>>>>> 11e35e95e78125364a542819f0c8a1c8167747b9:source/lib/ptp/src/threads/thread_management.py from time import sleep cla...
32.772727
118
0.587841
ed9ed9852deea7aefda3629ad571c21577814353
7,116
py
Python
source/pkgsrc/lang/python38/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python38/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python38/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.6 2021/05/04 05:16:07 adam Exp $ - Disable certain modules, so they can be built as separate packages. - Do not look for ncursesw. - Assume panel_library is correct; this is a fix for ncurses' gnupanel which will get transformed to panel in buildlink. - Also look for uuid/uuid.h. --- set...
46.207792
137
0.565065
6127ae0d4aad2fd2d1a000ba310baec2dda19134
2,437
py
Python
utest/math_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
utest/math_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
utest/math_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import unittest from zencad import * from OCC.Core.gp import gp_Dir, gp_Vec, gp_Pnt from OCC.Core.BinTools import BinTools_ShapeSet from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox def early(a, b): if abs(a.x - b.x) > 0.0001: return False if abs(a.y - b.y) > 0.0001: return False if ab...
30.848101
85
0.487074
b65ee13bbf310767e8dc7b136fdc0679c3f73424
3,831
py
Python
zip-brute-master/zipbrute.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
zip-brute-master/zipbrute.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
zip-brute-master/zipbrute.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Author: AnonyminHack5 #Whatsapp: KzIzNDkwMzM2Nzc10DkK (Decrypt to know my number) #Do no try to modify or change the script!! #Language: Python2 #Contact me if you face issues: AnonyminHack5@protonmail.com import base64 exec(base64.b64decode('aW1wb3J0IG9zCmltcG9ydCBjb2xvcmFtYQpjb2xvcmFtYS5pbml0KCkgCmRlZiBjbHMoKToK...
348.272727
3,602
0.984599
449c356f3dcdc69bfaccbb7a32a2b797142e4e6c
8,415
py
Python
main_bot.py
Shelicus/Krypto_discod_bot
e1b747d2cbee28511e9000b3ba87a869600f49fa
[ "Apache-2.0" ]
null
null
null
main_bot.py
Shelicus/Krypto_discod_bot
e1b747d2cbee28511e9000b3ba87a869600f49fa
[ "Apache-2.0" ]
null
null
null
main_bot.py
Shelicus/Krypto_discod_bot
e1b747d2cbee28511e9000b3ba87a869600f49fa
[ "Apache-2.0" ]
null
null
null
import asyncio from discord.ext import commands import discord import requests from datetime import datetime from verarbeitung import * kurs_channel_btc_id = "Channel_id" kurs_channel_ether_id = "Channel_id" kurs_channel_doge_id = "Channel_id" kurs_channel_litecoin_id = "Channel_id" API_KEY = "API-KEY" allgemeine_in...
39.693396
217
0.565538
44b21e72946c8d566bd63a9771b06caf82d0a8e0
3,740
py
Python
conftest.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
conftest.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
conftest.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
from typing import List, Tuple, Optional, Iterator import pytest import shutil from pathlib import Path from wasabi import msg import srsly import shutil from spacy.tokens.underscore import Underscore TESTS_DIR = "__tests__" EXERCISES_DIR = "exercises" META_FILE = "meta.json" PYTEST_TEMPLATE = "pytestTemplate" LANG_C...
38.163265
94
0.62139
155630c7154309ea333198635ac512b2aa90d88e
430
py
Python
PYTHON/Strings/the_minion_game.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Strings/the_minion_game.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Strings/the_minion_game.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def minion_game(string): kevin, stuart = 0, 0 ls = len(string) for i in range(ls): if string[i] in 'AEIOU': kevin += ls -i else: stuart += ls -i if stuart > kevin: print('Stuart', stuart) elif stuart < kevin: print('Ke...
17.916667
32
0.509302
ec6d96fb951acd50a1863ae20ebc625746b5e9b8
1,707
py
Python
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/AppOperations.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/AppOperations.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/AppOperations.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import sqlite3 from tkinter import * from tkinter import font from tkinter.filedialog import askopenfilename # making the connection conn = sqlite3.connect("appDb.sqlite") cur = conn.cursor() # email address is the primary key cur.executescript(''' CREATE TABLE IF NOT EXISTS details( sl_no INTEGER, name TEXT, e...
26.671875
114
0.679555
ec784d83dcacfecec1afe348dab9c03df5189ea8
1,300
py
Python
dewar/account/models.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
dewar/account/models.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
dewar/account/models.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from flask.ext.login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from dewar.exts import db class Account(db.Model, UserMixin): __tablename__ = 'account' id = db.Column(db.Integer, primary_key=True) use...
32.5
73
0.68
ec8ea54f41732f0d0a24171028aadb2697ef6050
16,880
py
Python
kaifa_kundenschnittstelle_auslesen.py
micronano0/RaspberryPi-Kaifa-SmartMeter-Reader
686da05fcf83e22fa4dee28a84e5e54dc062555b
[ "MIT" ]
2
2021-09-14T08:18:44.000Z
2021-10-04T12:23:13.000Z
kaifa_kundenschnittstelle_auslesen.py
micronano0/RaspberryPi-Kaifa-SmartMeter-Reader
686da05fcf83e22fa4dee28a84e5e54dc062555b
[ "MIT" ]
null
null
null
kaifa_kundenschnittstelle_auslesen.py
micronano0/RaspberryPi-Kaifa-SmartMeter-Reader
686da05fcf83e22fa4dee28a84e5e54dc062555b
[ "MIT" ]
null
null
null
from os import system, name import time from time import sleep import binascii import datetime import serial from Crypto.Cipher import AES def clear(): if name == 'nt': _ = system('cls') else: _ = system('clear') # key lesen datei = open("key.txt", "r") key = datei...
41.271394
180
0.593069
ecd23a61d1679ddb340c90ea55eadd09fd31353c
1,368
py
Python
src/ingestion/destinations/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/destinations/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/destinations/__init__.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from typing import Any, Dict, Type import logging import json from .base import ( Destination, DestinationConfiguration ) from .monosi import MonosiDestination, MonosiDestinationConfiguration class DestinationFactory: @classmethod def _configuration_cls(cls, config_type: str) -> Type[DestinationConfi...
30.4
84
0.681287
1778860ad158e6d13271d659e301afc314930e76
622
py
Python
Leetcode/(677) Map Sum Pairs.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Leetcode/(677) Map Sum Pairs.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Leetcode/(677) Map Sum Pairs.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
# https://leetcode.com/problems/map-sum-pairs/ class MapSum(object): def __init__(self): """ Initialize your data structure here. """ self._values = {} def insert(self, key, val): """ :type key: str :type val: int :rtype: None ""...
22.214286
63
0.475884
bda19a75dc27355afdb74ba951d5036c193472d4
571
py
Python
backend/app/models/task_group.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/models/task_group.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/models/task_group.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
import shortuuid from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.orm import relationship from app.db.base_class import Base # noinspection PyUnresolvedReferences from app.models.base_task import BaseTask class TaskGroup(Base): id = Column(Integer, primary_key=True, index=Tr...
33.588235
80
0.747811
bdf00db4aecbf8cc664205b2b48884972c3bda37
4,513
py
Python
.venv/Lib/site-packages/dexpy/tests/test_ccd.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
21
2016-10-19T18:13:03.000Z
2021-11-02T13:58:31.000Z
.venv/Lib/site-packages/dexpy/tests/test_ccd.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
43
2016-10-11T20:56:28.000Z
2020-08-20T16:39:38.000Z
.venv/Lib/site-packages/dexpy/tests/test_ccd.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
6
2017-12-22T03:47:37.000Z
2021-03-13T03:45:26.000Z
from unittest import TestCase from dexpy.ccd import build_ccd from dexpy.ccd import alpha_from_type from dexpy.eval import det_xtxi from dexpy.model import make_quadratic_model import numpy as np import patsy class TestCentralComposite(TestCase): @classmethod def test_fcd(cls): """Tests a simple 2 f...
39.938053
82
0.649457
da023ebbc6ccc21ac6f627fdef543b3e08709483
7,877
py
Python
local-nn-prototype/nn_train.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
local-nn-prototype/nn_train.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
local-nn-prototype/nn_train.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
#!/usr/bin/env python3 import os import csv import random import argparse from collections import namedtuple DatasetEntry = namedtuple('DatasetEntry', 'filename x1 y1 x2 y2 class_id') # we make some hardcoded assumptions about the dataset in this script num_classes = 43 # commandline interface parser = argparse.Argu...
38.05314
113
0.659261
16f6327e9e258da748f94cef2d6b3b50ef4c1103
518
py
Python
python_lessons/Textastic_Files/myDatabaseTest001.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/myDatabaseTest001.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/myDatabaseTest001.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
import sqlite3 import os os.system('clear') conn = sqlite3.connect('customer.db') c = conn.cursor() def submit(): return def query(): return ''' c.execute("""CREATE TABLE customer ( first_name text, last_name text, email text ) """) ''' # c.execute("INSERT INTO customer VALUES ('Markus','Martin','1986mmar...
16.1875
86
0.671815
007299a7981192f46fb27d2d36e3ca1610090371
22,995
py
Python
frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/bom/bom.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/bom/bom.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/bom/bom.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, erpnext from frappe.utils import cint, cstr, flt from frappe import _ from erpnext.setup.utils import get_exchange_rate from frappe.websi...
34.7882
152
0.703457
8afd863bc223cbe78604af46246d1606431eb494
900
py
Python
Object Oriented Programming/monopoly/spielbrett.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/monopoly/spielbrett.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/monopoly/spielbrett.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import felder class Spielbrett: def __init__(self): self.felder = [ felder.Feld("Start"), felder.Feld("Dübendorfstrasse"), felder.Feld("Winterthurerstrasse"), felder.Feld("Schwammendingerplatz"), felder.Feld("Einkommenssteuer"), felder...
36
48
0.551111
a9ebfb4b597fe177c195f03e3a7dbbb40a908b6b
3,780
py
Python
Backend/src/awattprice/apns.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
8
2020-10-22T14:47:54.000Z
2022-01-23T20:17:51.000Z
Backend/src/awattprice/apns.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
75
2020-11-16T16:13:28.000Z
2022-03-27T09:45:56.000Z
Backend/src/awattprice/apns.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
4
2020-11-10T21:21:08.000Z
2021-10-20T12:35:33.000Z
# -*- coding: utf-8 -*- """ Code to handle notification configuration from clients used for communication with APNs later. """ __author__ = "Léon Becker <lb@space8.me>" __copyright__ = "Léon Becker" __license__ = "mit" import json from typing import Optional from loguru import logger as log from awattprice.token...
37.8
111
0.701323
99fdc5d95bc9c1a6113f07eb2535cd3209ded92c
722
py
Python
1_Datentypen/06_dictionary/_02_merge_ahead.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/06_dictionary/_02_merge_ahead.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/06_dictionary/_02_merge_ahead.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# ############ merging dictionaries ############# # # Overview: # Often we have multiple dictionaries and want to combine # them. For example, we have separate dictionaries # that hold query string data, route data, and POST data. Merging # these makes access form data easier. That's just one example. # route = {'id':...
24.066667
65
0.666205
ec0c96d06c638af58f5465c9924b9bcf3aaea048
7,182
py
Python
games/rpg/game.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
games/rpg/game.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
games/rpg/game.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
# Game controller implementation from envs.rpg.world import World from matplotlib import pyplot as plt import datetime class RPGGame: def __init__(self, env, agent, renderer, max_rounds=100000, test_interval=2000, ...
41.514451
131
0.567391
d428a453f9fcc9b6ee69a398d8f358924d9ca708
1,055
py
Python
frappe-bench/apps/erpnext/erpnext/crm/doctype/lead/test_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/crm/doctype/lead/test_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/doctype/lead/test_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# 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 import unittest test_records = frappe.get_test_records('Lead') class TestLead(unittest.TestCase): def test_make_customer(self): from...
30.142857
68
0.779147
d4735604b07309d8e0ac5609cf4b1390b505b622
1,501
py
Python
programm/navigation_handler.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/navigation_handler.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/navigation_handler.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
""" Main Python-Script for human interaction and object detection @author: wimmer, simon-justus """ from object_detection import ObjectTracker import log from time import sleep import sys import threading import motor import general import wingamepad modus = 3 try: modus = sys.argv[1] except Exception as e: p...
23.825397
86
0.643571
cf6668563a8089addec3a982683d9a4416db0d5c
29,668
py
Python
research/cv/glore_res/src/glore_resnet.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/glore_res/src/glore_resnet.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/glore_res/src/glore_resnet.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...
40.255088
119
0.514022
2b5d6dc5a46ec7cc74f481db41ca15ea3aa39f0b
1,653
py
Python
python/coursera_python/WESLEYAN/week4/test/ph_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/test/ph_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/test/ph_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" This was written as a basic program that did little at first. Additional features were added until it was finished. Here is a first version. phones.py Version 1 -- builds the menu -- functions are empty """ def delete_phone(): print("Deleting") def edit_phone(): print("Editing") def save_phone_list(): ...
22.958333
73
0.555959
5129860ad205c7f649ea3df3759ca256b420be4d
431
py
Python
exercises/en/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/en/solution_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/solution_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Import the English language class and create the nlp object from spacy.lang.en import English nlp = English() # Process the text doc = nlp("I like tree kangaroos and narwhals.") # A slice of the Doc for "tree kangaroos" tree_kangaroos = doc[2:4] print(tree_kangaroos.text) # A slice of the Doc for "tree kangaroos ...
26.9375
72
0.761021
5af029853333dcde93b6787fcd883008b21bfec4
338
py
Python
online_library/online_library/library/migrations/0003_alter_book_options.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
online_library/online_library/library/migrations/0003_alter_book_options.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
online_library/online_library/library/migrations/0003_alter_book_options.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-25 21:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('library', '0002_book'), ] operations = [ migrations.AlterModelOptions( name='book', options={'ordering': ['type', 'title']},...
18.777778
52
0.568047
3200b2ad7e873b4d0faf9cdd50a09d43934100f2
2,525
py
Python
PINp/2014/Platonova Olga/task_10_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Platonova Olga/task_10_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Platonova Olga/task_10_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 10. Вариант 21. #Напишите программу "Генератор персонажей" для игры. Пользователю должно быть предоставлено 30 пунктов, которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но и воз...
42.083333
372
0.64198
5ce434bfa2b3bf4fb65fa2061c973828ea9f80d8
3,556
py
Python
deprecated/benchmark/reader/reader_libjpeg.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/reader/reader_libjpeg.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/reader/reader_libjpeg.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
""" Reader using libjpeg_turbo. """ from __future__ import division from __future__ import print_function import os import random import functools import math import numpy as np import paddle from turbojpeg import TurboJPEG, TJPF_RGB from transformation import rotate_image, random_crop, distort_color from transformatio...
31.469027
93
0.591114
8f6e4fdf60c3e8a1a033cdedacc62a4781df88d3
3,127
py
Python
Machine Learning/kMeansClustering.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Machine Learning/kMeansClustering.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Machine Learning/kMeansClustering.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_iris from sklearn.datasets import make_blobs def elbowMethod(centroids, dataset, dist): inertias = [] for i in range(len(centroids)): inertias.append(np.sum([(dataset[x]-centroids[i])**2 for x in range(len(dataset)) i...
26.5
116
0.589703
56bd3e368dd413914911c7962b317b02559d1e30
810
py
Python
server/deleteTree.py
codeforcologne/baumkataster
fa61e550341167630578173e4891712074c562a7
[ "BSD-2-Clause" ]
null
null
null
server/deleteTree.py
codeforcologne/baumkataster
fa61e550341167630578173e4891712074c562a7
[ "BSD-2-Clause" ]
null
null
null
server/deleteTree.py
codeforcologne/baumkataster
fa61e550341167630578173e4891712074c562a7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 import cgi import json import psycopg2 try: arguments = cgi.FieldStorage() uuid = arguments.getvalue("id") comment = arguments.getvalue("comment") conn = psycopg2.connect("host=yourHost dbname=yourDB user=yourUser password=yourPassword") cur = conn.cursor() cur.execute("UPDATE...
35.217391
94
0.665432
85a422688d14aab2d9870c32c957ee3ddd26d509
2,113
py
Python
test/test_npu/test_onnx/torch.onnx/export/model_export-cpu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_onnx/torch.onnx/export/model_export-cpu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_onnx/torch.onnx/export/model_export-cpu.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
43.122449
120
0.732608
a417b4686edb06a58d164e23b72500461ec10acb
638
py
Python
python_gui_tkinter/KALU/GARBAGE1/SAFE26JUL/GRBG/wrap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE26JUL/GRBG/wrap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/SAFE26JUL/GRBG/wrap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * from tkinter import ttk import textwrap def wrap(string, lenght=8): return '\n'.join(textwrap.wrap(string, lenght)) myApp = Tk() NewTree = ttk.Treeview(myApp, height=5) NewTree['show'] = 'headings' s = ttk.Style() s.configure('Treeview', rowheight=40) NewTree["columns"] = ("1", "2") Ne...
20.580645
74
0.631661
f1772990d3f093d91054cba129b648a9b4d2010b
1,610
py
Python
src/test_pc/test_wingbeats_helper.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pc/test_wingbeats_helper.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pc/test_wingbeats_helper.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
2
2020-02-05T05:19:18.000Z
2020-02-05T15:04:32.000Z
import unittest import os from model import wingbeats_helper class TestWingbeatsHelper(unittest.TestCase): @classmethod def setUpClass(cls): # Create a Wingbeats Dataset instance cls.samples = 200 cls.wb = wingbeats_helper.Wingbeats("../../Wingbeats/", cls.samples) def testGetSpe...
40.25
147
0.681988
f18d3b73fac60d2734d1a87c189d778da8a3ecb3
8,793
py
Python
Utils/download_packs_and_docker_images.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Utils/download_packs_and_docker_images.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Utils/download_packs_and_docker_images.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
# Perquisites to run this script: # # 1. Python 3.8+ # 2. requests python lib should be installed (can be installed by running "pip install requests" or "pip3 install requests") # 3. docker is installed (if docker is not install, you can skip docker download using the `-sd` option) # 4. docker python is installed (inst...
43.529703
125
0.652223
77d44a3883f37f070a85ccd380d3b1796ff569fb
6,008
py
Python
tesis5.py
gasa1296/Tesis
c8dd9c86c447a1bf31fd5a95336e6c3ed8be2e5f
[ "MIT" ]
1
2019-05-16T18:02:58.000Z
2019-05-16T18:02:58.000Z
tesis5.py
gasa1296/Tesis
c8dd9c86c447a1bf31fd5a95336e6c3ed8be2e5f
[ "MIT" ]
null
null
null
tesis5.py
gasa1296/Tesis
c8dd9c86c447a1bf31fd5a95336e6c3ed8be2e5f
[ "MIT" ]
null
null
null
from multiprocessing import Process, Queue import mysql.connector import cv2 import numpy as np from datetime import datetime def run_camara(direccion, arreglo_jugadores, cola, indice_proceso_actual): cap = cv2.VideoCapture(direccion) jugador_actual = None continuar1 = True if cap.isOpened(): while True: ...
27.309091
139
0.686917
706a06a33ea29d667d097182c4b102e7e3b80d2b
4,600
py
Python
sam_core/sam_core/utils_tasks.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
sam_core/sam_core/utils_tasks.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
sam_core/sam_core/utils_tasks.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
import time import threading import threadpool from apscheduler.schedulers.blocking import BlockingScheduler class SchedulerTaskBase: def __init__(self, task_id, seconds): self.task_id = task_id self.seconds = seconds def run(self): pass class SchedulerTaskQueue: __scheduler = B...
30.065359
117
0.662609
568d3d1bc0b6150de426cbe1a1afa2d5a89f4b84
635
py
Python
DiceCTF/2021/crypto/newcryptv2/chall.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
DiceCTF/2021/crypto/newcryptv2/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
DiceCTF/2021/crypto/newcryptv2/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 from Crypto.Util.number import * flag = open('flag.txt','rb').read() class Generator: def __init__(self,bits): self.p = getPrime(bits) self.q = getPrime(bits) self.N = self.p*self.q print(self.N) def gen(self): numbers = [] for round in ...
21.896552
72
0.566929
8ec90ffd8906cb59d2f5abb71a482212f329637a
87,425
py
Python
Packs/IronDefense/Integrations/IronDefense/IronDefense_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/IronDefense/Integrations/IronDefense/IronDefense_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/IronDefense/Integrations/IronDefense/IronDefense_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# type: ignore import json import unittest import demistomock as demisto import IronDefense as irondefense_module from IronDefense import IronDefense, LOG_PREFIX from unittest import TestCase, mock from unittest.mock import Mock, call import requests from typing import Dict from http.client import HTTPException reques...
47.617102
127
0.553766
79dc1510349ea3f46f3a9ef7573fbb3e5c6c5a5b
29,377
py
Python
python/active.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
1
2020-07-29T16:43:46.000Z
2020-07-29T16:43:46.000Z
python/active.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
python/active.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 import MySQLdb import mymail import time import datetime import sys reload(sys) sys.setdefaultencoding('utf-8') class ActiveUser(object): """docstring for ActiveUser""" def __init__(self): super(ActiveUser, self).__init__() conn= MySQLdb.connect( host='localhost', port = 3306, user='ro...
235.016
26,938
0.814617
6916d01107f26962a4bd90143af83769f36d702c
629
py
Python
Group1_Module1_Precious_Opeyemi/Week_3/Project_8 (Basic Python)/Project_8.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
Group1_Module1_Precious_Opeyemi/Week_3/Project_8 (Basic Python)/Project_8.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
Group1_Module1_Precious_Opeyemi/Week_3/Project_8 (Basic Python)/Project_8.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from PIL import Image def Image_resize(): # Opens the image img = Image.open("Image.jpg") # Opens the desired image. #Copy the image img_copy = img.copy() # Resize the image (w = Width h = Height) Replace "w" and "h" with image size choice img_resize = img_copy....
24.192308
88
0.63275
ba6a5205cf655ba9e5846a685292b6d4cff6e646
332
py
Python
doc/examples/jit_fib.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/jit_fib.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/jit_fib.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import jit, wait_for_all_extensions @jit def fib(n: int): """fibonacci""" if n < 2: return n return fib(n - 1) + fib(n - 2) @jit def use_fib(): return [fib(n) for n in [1, 3, 5]] fib2 = fib(2) result = use_fib() wait_for_all_extensions() assert fib2 == fib(2) assert result =...
15.090909
50
0.611446
baa14c65dff3985bec12d5b3d899da6aa3443f87
1,910
py
Python
tests/test.py
S0S-90/geocachingTooly
a6ed356d0187dd517a9436a83bded3752d488db5
[ "MIT" ]
null
null
null
tests/test.py
S0S-90/geocachingTooly
a6ed356d0187dd517a9436a83bded3752d488db5
[ "MIT" ]
null
null
null
tests/test.py
S0S-90/geocachingTooly
a6ed356d0187dd517a9436a83bded3752d488db5
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """main file for testing""" import sys import time import test_frame import test_ownfunctions import test_geocache import test_user_io import test_gpscontent test_frame.changepath("../tests") saved_stdout = sys.stdout # save standard output if len(sys.argv) > 1: # if...
34.107143
118
0.594764
2443cf4b9d2ed849163fba22fd5edec4e30f100b
4,584
py
Python
tests/onegov/core/test_filestorage.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_filestorage.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_filestorage.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath import os.path from onegov.core.framework import Framework from onegov.core import utils from webtest import TestApp as Client def test_independence(temporary_directory): class App(Framework): pass app = App() app.configure_application( filestorage='fs.osfs.OSFS', ...
32.510638
79
0.668412
24485b69f55aa396e265737eecb945a543ddd139
636
py
Python
Webpage/arbeitsstunden/migrations/0012_auto_20210625_2031.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/migrations/0012_auto_20210625_2031.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/migrations/0012_auto_20210625_2031.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-25 20:31 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('arbeitsstunden', '0011_auto_20210625_2029'), ] operations = [ migrations.AlterField( model_name='project', ...
25.44
95
0.602201
0326f63a1baa11dee57f6675b1e3969e077ba4cf
3,634
py
Python
Packs/Cherwell/Scripts/CherwellQueryIncidents/CherwellQueryIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Cherwell/Scripts/CherwellQueryIncidents/CherwellQueryIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Cherwell/Scripts/CherwellQueryIncidents/CherwellQueryIncidents.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 * args = demisto.args() # #################################################################################### # ############################## CONFIGURATION PART ################################## # ####################...
38.659574
119
0.641167
cee5dfe997e0d9685a81bfddb99ddbc2d6e32b42
240
py
Python
Curso_Python/Exercicio_banco/utilidades.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Exercicio_banco/utilidades.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Exercicio_banco/utilidades.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
def func_parar(): while True: parar = input('Deseja continuar? [S/N]').upper() if parar == 'S' or parar == 'N': break else: print('Digite S ou N.') if parar == 'N': return 'N'
24
56
0.454167
06706d9f5cdd5b47efe6d666c848717a8d3d9b32
1,724
py
Python
CareerTinderServer/CareerTinder/models.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/models.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/models.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
import datetime from django.db import models from django.utils import timezone from listfield import ListField DEGREE_CHOICES = ( ('BA', "B.A./B.S."), ('MA', "M.A./M.S."), ('DO', "Ph.D. or Higher") ) def update_filename(instance, filename): return "media/faces/" + str(instance.id) + filename[filena...
30.245614
114
0.691995
001757f95aed60a0b40afdd9843abc5167e3aad4
1,939
py
Python
chord_rec/models/seq2seq/Encoder.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/seq2seq/Encoder.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/seq2seq/Encoder.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
import random import torch import torch.nn as nn import torch.optim as optim class BaseEncoder(nn.Module): """ The Encoder module of the Seq2Seq model """ def __init__(self, input_size, emb_size, encoder_hidden_size, decoder_hidden_size, n_layers, dropout = 0.5): super().__init__() self.input...
38.019608
112
0.560598
ccafa2907fe791b88fc351cff5a4e00e0eda3ddb
631
py
Python
refex/tests/test_models.py
d-e-h-i-o/legal-reference-extraction
a9f7793124818d5710315f75e52b077a232acccf
[ "MIT" ]
null
null
null
refex/tests/test_models.py
d-e-h-i-o/legal-reference-extraction
a9f7793124818d5710315f75e52b077a232acccf
[ "MIT" ]
null
null
null
refex/tests/test_models.py
d-e-h-i-o/legal-reference-extraction
a9f7793124818d5710315f75e52b077a232acccf
[ "MIT" ]
null
null
null
from unittest import TestCase from refex.models import Ref, RefType, RefMarker class RefExModelsTest(TestCase): def setUp(self): pass def tearDown(self): pass def test_replace_content(self): text = "§ 123 ABC" marker = RefMarker(text, 0, len(text)) marker.uuid = ...
24.269231
80
0.584786
9dab596c6d3f7db182517de539ba1cbe4cfc2a49
1,459
py
Python
setup.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
setup.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
setup.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
# _ _ _ # / \ _ __ __| (_)_ __ ___ _ __ _ _ # / _ \ | '_ \ / _` | | '_ \ / _ \| '_ \| | | | # / ___ \| | | | (_| | | | | | (_) | |_) | |_| | # /_/ \_\_| |_|\__,_|_|_| |_|\___/| .__/ \__, | # |_| |___/ # by Jakob Groß from setuptools imp...
40.527778
99
0.532557
9dc118b67c80eb4146ebaa23011fb26eb53aa931
373
py
Python
docs/API/Users_Guide/scripts/Sample_Request.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
null
null
null
docs/API/Users_Guide/scripts/Sample_Request.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
null
null
null
docs/API/Users_Guide/scripts/Sample_Request.py
ZhenyuZ/gdc-docs
f024d5d4cd86dfa2c9e7d63850eee94d975b7948
[ "Apache-2.0" ]
null
null
null
import requests import json file_endpt = 'https://api.gdc.cancer.gov/files/' file_uuid = 'd853e541-f16a-4345-9f00-88e03c2dc0bc' response = requests.get(file_endpt + file_uuid) # OUTPUT METHOD 1: Write to a file. file = open("sample_request.json", "w") file.write(response.text) file.close() # OUTPUT METHOD 2: View on...
26.642857
50
0.745308
d1d1493accb46b579599981aff9b12ab7f7cf6f0
5,985
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/turn-defs/turndefinitions.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/turn-defs/turndefinitions.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/turn-defs/turndefinitions.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2011-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....
38.365385
97
0.641437
0603bb0c5d029623524402ac040e521dd6c6eec7
2,733
py
Python
Channelpedia/test_all.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
26
2015-08-17T19:30:52.000Z
2021-03-12T20:39:19.000Z
Channelpedia/test_all.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
9
2015-01-15T20:16:08.000Z
2017-05-18T20:53:52.000Z
Channelpedia/test_all.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
18
2015-08-17T19:30:56.000Z
2022-03-04T06:01:30.000Z
import osb.utils from ChannelpediaToNeuroML2 import channelpedia_xml_to_neuroml2 from analyse import generate from bs4 import BeautifulSoup import os import xml.etree.ElementTree as ET import neuroml.loaders as loaders contents = osb.utils.get_page("http://channelpedia.epfl.ch/reports/model") soup = BeautifulSoup...
30.707865
141
0.598244
8853dc51cdfa1020f65417e3d70b05d05ab50259
512
py
Python
Simple Wave Analysis/test2.py
washingtonxr/OpenAlgorithm
e1898e36dead0c79b23e054587d92f378c5e8b10
[ "Apache-2.0" ]
null
null
null
Simple Wave Analysis/test2.py
washingtonxr/OpenAlgorithm
e1898e36dead0c79b23e054587d92f378c5e8b10
[ "Apache-2.0" ]
null
null
null
Simple Wave Analysis/test2.py
washingtonxr/OpenAlgorithm
e1898e36dead0c79b23e054587d92f378c5e8b10
[ "Apache-2.0" ]
null
null
null
filename = 'array_reflection_2D_TM_vertical_normE_center.txt' # txt文件和当前脚本在同一目录下,所以不用写具体路径 pos = [] Efield = [] with open(filename, 'r') as file_to_read: while True: lines = file_to_read.readline() # 整行读取数据 if not lines: break pass p_tmp, E_tmp = [float(i) for i in lines.split()] # 将整行数据分割处理,...
30.117647
102
0.677734
88b22cd48a1a1f6a455af82dd9bf701c36cb60f7
1,091
py
Python
USACOClassLiveTest/src/solitair.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOClassLiveTest/src/solitair.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOClassLiveTest/src/solitair.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
from queue import Queue table = { "A": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "T": 10, "J":11, "Q":12, "K": 13 } N = int(input()) cards = [] for i in range(N): cards.append([]) for j in range(N): cards[i].append([0]) for i i...
23.212766
83
0.493126
ee7a6b6912d60a95656613a44f2846ef37a7daa5
4,249
py
Python
043_Smartdisplay 5/Code/main.py
hobbyelektroniker/Arduino_Einstieg
53ff0ecfbedc449008a65385bf4f3a5f0eeea53e
[ "Unlicense" ]
3
2021-01-07T18:50:59.000Z
2021-12-03T18:58:13.000Z
043_Smartdisplay 5/Code/main.py
hobbyelektroniker/Arduino_Einstieg
53ff0ecfbedc449008a65385bf4f3a5f0eeea53e
[ "Unlicense" ]
null
null
null
043_Smartdisplay 5/Code/main.py
hobbyelektroniker/Arduino_Einstieg
53ff0ecfbedc449008a65385bf4f3a5f0eeea53e
[ "Unlicense" ]
1
2021-03-25T23:33:08.000Z
2021-03-25T23:33:08.000Z
''' Für LoLin - Board Modifiziert von 'Micropython mit ESP32', Lektion 19, WebWetter9.py Erste Test für Kommunikation mit Smartdisplay ''' from netzwerk import * from geheim import * from webseiten import startHTTP, log, hp, wetter from openweathermap import * import time import gc import esp import machine esp...
31.014599
139
0.608614
c9fefdd4e9eb9a0bfd8568656616f46a81b194bb
3,713
py
Python
tests/addons/res2dict/test_xml.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/res2dict/test_xml.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/res2dict/test_xml.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import datetime import pytest from owlmixin.util import load_yaml, dump_json, load_json from jumeaux.addons.res2dict.xml import Executor from jumeaux.models import Response, Res2DictAddOnPayload NORMAL_BODY = """<?xml version="1.0"?> <catalog> <book id="bk001"> ...
32.858407
93
0.391058
4e6223f1913a640bda9c9ce9cf4efe45dd72f027
8,100
py
Python
tests/onegov/election_day/views/test_views_subscription.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_subscription.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_subscription.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os from onegov.election_day.models import Subscriber from tests.onegov.election_day.common import login from webtest import TestApp as Client def test_view_email_subscription(election_day_app): client = Client(election_day_app) client.get('/locale/de_CH').follow() # Subscribe using the form s...
37.327189
79
0.705926
113e4eb948f9d5e49fd9a81adb33097b2c4f8774
16,943
py
Python
Packs/SolarWinds/Integrations/SolarWinds/SolarWinds_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SolarWinds/Integrations/SolarWinds/SolarWinds_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SolarWinds/Integrations/SolarWinds/SolarWinds_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 os import pytest import unittest.mock as mock from CommonServerPython import DemistoException BASE_URL = "https://{}:17778/SolarWinds/InformationService/v3/Json" SERVER_DOMAIN = "dummy.server" def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: ret...
42.146766
117
0.697574
fecf324aaed3fc8b8cada9253f57885e195d0c06
9,338
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_calculate_divide.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_calculate_divide.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_calculate_divide.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformCalculate(unittest.TestCase): def setUp(self): self.data = { "testvalue1": 5, "testvalue2": 3.7, "testarray1": [5, 4, 7, 1, 3, 6], "tes...
36.054054
110
0.373206
28ec7930cff7c6bdf5b36a0293f4fa15f818f4f4
7,851
py
Python
tools/datasets_convert/random_split.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/datasets_convert/random_split.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/datasets_convert/random_split.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description:modified from RanTran.py by cly. @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/8/13 上午9:35 """ import os import numpy as np class SplitImageSets(object): """ description:随机切分图片 """ def __init__(self,default_split_ratio=0.8,joint_key='Shoulder',...
32.442149
102
0.586932
3a995d2e8f571d5668fb204cb35196371a07967d
1,256
py
Python
toplogy DFS better.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
toplogy DFS better.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
toplogy DFS better.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python class Solution: # @param {integer} numCourses # @param {integer[][]} prerequisites # @return {integer[]} def findOrder(self, numCourses, prerequisites): #if prerequisites==[]: # return range(numCourses) self.n=numCourses self.prerequisites=prerequisites self.loop=0 self.visited=...
20.933333
77
0.671178
c93168b05e39be33df47a9890665cf2e28336d1d
13,474
py
Python
src/prediction/predict.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/prediction/predict.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/prediction/predict.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""predict.py - core prediction tools""" import logging import os import warnings import pandas as pd import numpy as np import dateutil from ..compat import printf, pickle from ..config import Configuration from ..exceptions_ import (BadFormatException, BadValueException) from ..dao import CSVDAO, StationDAO from .c...
44.03268
350
0.682796
c9641848d3793f021589dd8532231db941aff96b
4,023
py
Python
python_experiments/data_analysis/util/parsing_helpers.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/util/parsing_helpers.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/util/parsing_helpers.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from data_analysis.util.read_file_utils_updated import get_log_header_col, format_str, get_splitter_line, contains from exec_utilities import exec_utils def parse_line_split(line: str, splitter=':'): return [x.strip() for x in line.split(splitter)] def parse_line(line: str, tag_lst: list): data_len = len(ta...
36.572727
114
0.62267
42b55d50cfd0219ad2d308127ea385cac017980a
642
py
Python
elements/python/10/11/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/10/11/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/10/11/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import tree def leftmost(n): """ Return the leftmost item in a binary tree. """ while n.left is not None: n = n.left return n def successor(n): """ Return the successor of the binary tree node n. """ if n.right is not None: return leftmost(n.right) while n.pa...
16.05
55
0.566978
954a86ca84b5069bf7d13f6cc077c3fc6a938071
5,603
py
Python
vim/vim-denite-codesearch/rplugin/python3/denite/source/cached_file_search.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
5
2017-04-18T20:21:06.000Z
2020-12-28T05:44:39.000Z
vim/vim-denite-codesearch/rplugin/python3/denite/source/cached_file_search.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
35
2016-09-21T18:04:51.000Z
2020-03-11T02:39:20.000Z
vim/vim-denite-codesearch/rplugin/python3/denite/source/cached_file_search.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
2
2018-12-17T03:16:35.000Z
2020-10-18T10:09:01.000Z
import shlex import typing from denite import util, process from denite.base.source import Base from denite.util import Nvim, UserContext, Candidates, Candidate PLUGIN_NAME = 'cached_file_search' class BaseSource(Base): def on_init(self, context: UserContext) -> None: context['__proc'] = None arg...
36.620915
120
0.518829
95faf9e166b24a8c1b3de1628bcfd9ec28e7dae2
1,338
py
Python
20-hs-redez-sem/groups/03-doubleRatchet/src/helper_functions/helpers_rsync.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/03-doubleRatchet/src/helper_functions/helpers_rsync.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/03-doubleRatchet/src/helper_functions/helpers_rsync.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import os path_my_directory = os.getcwd() + "/my_directory.txt" path_other_directory = os.getcwd() + "/other_directory.txt" def send_rsync() -> None: os.system(f"rsync -a --exclude='*/' --exclude='*.txt' --exclude='*.py' {get_path_my_log()} {get_path_other_log().rstrip('/')}") pass def recv_rsync() -> Non...
29.733333
177
0.627803
666ba95be6e8312829e14d6b8e93ddb077e65096
1,711
py
Python
wanghao/flask-tutorial/flaskr/db.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
wanghao/flask-tutorial/flaskr/db.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
wanghao/flask-tutorial/flaskr/db.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext import os def get_db(): if 'db' not in g: g.db = sqlite3.connect( current_app.config['DATABASE'], detect_types=sqlite3.PARSE_DECLTYPES ) g.db.row_factory = sqlite3.Ro...
22.220779
69
0.619521
66d6c16d9bdcedf03af23ab01e255cbcd15c994a
176
py
Python
2057-smallest-index-with-equal-value/2057-smallest-index-with-equal-value.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2057-smallest-index-with-equal-value/2057-smallest-index-with-equal-value.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2057-smallest-index-with-equal-value/2057-smallest-index-with-equal-value.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def smallestEqual(self, nums: List[int]) -> int: for i in range(len(nums)): if i%10==nums[i]: return i return -1
29.333333
52
0.505682
66eda3d332520ebcd4e7abe80a18b2533dac249d
195
py
Python
nz_django/day6/error_view_demo/errors/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day6/error_view_demo/errors/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day6/error_view_demo/errors/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render def view_403(request): return render(request,'errors/403.html',status=403) def view_400(request): return render(request,'errors/400.html',status=400)
27.857143
55
0.764103
dd93390a3a7bfd19a09c2d2031ef9dcd078f77c5
13,696
py
Python
Web/uploadwebpage.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
Web/uploadwebpage.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
Web/uploadwebpage.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
#!/usr/bin/env python3 #Inputs are down at the bottom. No need to change anything above that unless there's a bug import argparse from contextlib import contextmanager from getpass import getpass import os import re import shutil from subprocess import CalledProcessError, check_call import tempfile import urllib.requ...
41.629179
169
0.617626
b07febf7468acaa590408fcdc93393a799530b65
186,379
py
Python
DHParser/parse.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
DHParser/parse.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
DHParser/parse.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
# parse.py - parser combinators for DHParser # # Copyright 2016 by Eckhart Arnold (arnold@badw.de) # Bavarian Academy of Sciences an Humanities (badw.de) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obta...
44.428844
120
0.605208
b0261832ddf585a4f331eb2fd5f4eaa1f4e704e6
1,047
py
Python
Packs/CrowdStrikeOpenAPI/Integrations/CrowdStrikeOpenAPI/CrowdStrikeOpenAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CrowdStrikeOpenAPI/Integrations/CrowdStrikeOpenAPI/CrowdStrikeOpenAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CrowdStrikeOpenAPI/Integrations/CrowdStrikeOpenAPI/CrowdStrikeOpenAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io import json import pytest from CrowdStrikeOpenAPI import Client, query_behaviors_command @pytest.fixture() def client(requests_mock): requests_mock.post( 'https://api.crowdstrike.com/oauth2/token', json={ 'access_token': 'access_token', }, ) return Client(pa...
23.795455
110
0.659026
3c3761e8763cfafeaa000ce26766cb19c00cfff1
50,141
py
Python
src/main.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/main.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/main.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
# service is based on flask from flask import Flask # using flask restX from flask_restx import Api, Resource, fields # cors as a flask expendency from flask_cors import CORS #We use our application logic including BusinessObject classes from server.ElectionSystemAdministration import ElectionSystemAdministration fr...
43.225
196
0.679584
3c3ef4e22f6b50b7daef8f4084a3d745b2910de2
8,991
py
Python
TestBot/test_cogs/poketcgFunctions/card.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
TestBot/test_cogs/poketcgFunctions/card.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
TestBot/test_cogs/poketcgFunctions/card.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
import json from .. import Page, log, sql, chunk from . import api_call from .sets import Set from .player import Player, get_player from collections import Counter # contants UPDATE_CARDS = '''update cards set amount = (select tc.amount from tmp_cards tc where tc.discord_id = cards.discord_id and tc.card_id = cards.c...
31.882979
145
0.675342
ab7d43102eeba7feef1a8e05d093689687c982e8
5,703
py
Python
UpdatePublications.py
less-lab-uva/less-lab-uva
d91948bbead52be5018e6b3537b61934bf018dd3
[ "MIT" ]
null
null
null
UpdatePublications.py
less-lab-uva/less-lab-uva
d91948bbead52be5018e6b3537b61934bf018dd3
[ "MIT" ]
null
null
null
UpdatePublications.py
less-lab-uva/less-lab-uva
d91948bbead52be5018e6b3537b61934bf018dd3
[ "MIT" ]
1
2021-06-24T16:56:45.000Z
2021-06-24T16:56:45.000Z
import re import os import time import requests import bibtexparser def remove_special_chartacters(in_string): out_string = re.sub('[^A-Za-z0-9 ]+', '', in_string) return out_string def make_yaml_safe(in_string): in_string = in_string.replace("\\", "") in_string = in_string.replace('"', "'") retu...
40.161972
125
0.53428
ab965b122b4c83fc3554ea50599ece26fba7d8bc
93
py
Python
WeChatSecretary/utils/api_config.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatSecretary/utils/api_config.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatSecretary/utils/api_config.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python37 keys = { 'amap': '857239c60197db15e421a502a382a276' }
13.285714
46
0.623656
aba8a3e2596196c68efc1f437948978b83343cd9
632
py
Python
src/mvg/api.py
dfrommi/alfred-mvv
5310f80ca3e17686fb534db0e53a613043a1b352
[ "MIT" ]
2
2019-07-07T19:24:15.000Z
2019-10-16T09:07:25.000Z
src/mvg/api.py
dfrommi/alfred-mvv
5310f80ca3e17686fb534db0e53a613043a1b352
[ "MIT" ]
1
2020-06-05T16:49:17.000Z
2020-06-05T16:49:17.000Z
src/mvg/api.py
dfrommi/alfred-mvv
5310f80ca3e17686fb534db0e53a613043a1b352
[ "MIT" ]
2
2017-04-03T11:47:59.000Z
2019-10-16T09:09:26.000Z
from workflow import web __url__ = 'https://www.mvg.de/fahrinfo/api' __headers__ = { 'Accept': 'application/json', 'X-MVG-Authorization-Key': '5af1beca494712ed38d313714d4caff6' } class MVG: def __init__(self, wf): self.wf = wf def search(self, query): response = web.get(__url__ + "/lo...
31.6
100
0.655063
75dbc4f95682c70330e743a06afb97f49f028a20
92
py
Python
2015/01/sotu-ratings/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/01/sotu-ratings/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/01/sotu-ratings/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 = '1IFPJtpq6bbBWF4mFex7585mNw-nFdQx9Pr08hjSueko'
23
68
0.836957
3498d05344e793acc4bfc102ccf9f9ed42c7eccc
203
py
Python
app/driver/handler.py
geospatial-jeff/cognition-datasources-api
9c2f0332f231638e5fb615d2293c32a3ad96654d
[ "Apache-2.0" ]
18
2019-03-27T20:09:37.000Z
2022-02-04T17:38:07.000Z
app/driver/handler.py
geospatial-jeff/cognition-datasources-api
9c2f0332f231638e5fb615d2293c32a3ad96654d
[ "Apache-2.0" ]
3
2019-06-05T15:12:17.000Z
2020-04-30T17:54:37.000Z
app/driver/handler.py
geospatial-jeff/cognition-datasources-api
9c2f0332f231638e5fb615d2293c32a3ad96654d
[ "Apache-2.0" ]
3
2019-06-29T01:16:37.000Z
2020-04-30T17:25:26.000Z
from datasources import Manifest def __TEMPLATENAME__(event, context): manifest = Manifest() manifest['__TEMPLATENAME__'].search(**event) response = manifest.execute() return response
20.3
48
0.729064
b5ba6899529dce518894e16524115129564e2c40
371
py
Python
storage/emulated/0/qpython/scripts3/helloworld.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/helloworld.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/helloworld.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
#-*-coding:utf8;-*- #qpy:quiet """ This is an example file which tell you how to use QPython to develop android app. It use the SL4A feature and the quiet feature which run background @Author: River @Date: 2012-12-31 """ import androidhelper droid = androidhelper.Android() line = droid.dialogGetInput() s =...
24.733333
82
0.700809
b5c7113398d24b3ddcb687e04ee421fa6798592d
850
py
Python
py_projects/gui_url_shortener/url_short.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2020-10-04T12:36:45.000Z
2020-10-04T12:36:45.000Z
py_projects/gui_url_shortener/url_short.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2021-09-30T16:20:57.000Z
2021-09-30T16:20:57.000Z
py_projects/gui_url_shortener/url_short.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
3
2020-10-04T10:07:10.000Z
2020-10-25T15:21:15.000Z
# -*- coding: utf-8 -*- """ Created on Fri Aug 21 17:28:08 2020 @author: DELL """ import pyshorteners import tkinter as tk from tkinter import END win=tk.Tk() win.title("URL SHORTENER") win.geometry("700x200") def short(): link = input.get("1.0","end-1c") print(link) shortener=pyshor...
23.611111
55
0.676471
1fdad8397bb3e9a119a31bc3061f8aa9c89f93bf
2,027
py
Python
addition_module/DMUE/preprocess/crop_msra.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/DMUE/preprocess/crop_msra.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/DMUE/preprocess/crop_msra.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
import os import cv2 import numpy as np from tqdm import tqdm from PIL import Image from mtcnn import MTCNN def mtcnn_detect(mtcnn, image): boxes, probs = mtcnn.detect(image, landmarks=False) if boxes is not None: if boxes[0][0] < 0: boxes[0][0] = 0 if boxes[0][1] < 0: ...
30.253731
83
0.571288
20fc02996b5e89a92e84cd8805981d898208e72f
4,142
py
Python
plugins/tff_backend/models/user.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/models/user.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/models/user.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.95082
115
0.704008
c8a2b9530f2aabad6497b050c27f6ad247059438
8,752
py
Python
tag_3/p_14_game_of_life.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_3/p_14_game_of_life.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_3/p_14_game_of_life.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 14 Game of Life (Tag 3) Programmiere die Simulation Game of Life von Conway. In dieser Simulation wird das Wachstum von Zellkulturen modellhaft nachgeahmt. Das Zellen-Modell ist sehr einfach. Es werden Zellen simuliert, deren Leben von ihren Nachbarfeldern abhängt. Außer der Eigenschaft "lebendig" haben diese Zell...
42.280193
117
0.667505
c8d249978450727f194f5aca77736485e06b73e6
1,569
py
Python
pk/data/step2_cluster.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/step2_cluster.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/step2_cluster.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 tools import logger import numpy as np from sklearn import manifold from sklearn import __version__ as sklearn_version from view import plot_utils from view import plot from cluster import cluster_dpc from view.plot_utils import * from cluster.cluster_dpc import * f...
44.828571
117
0.7355
cdb8e0f9dd05eb610e656ab39bae5e640e98ce52
545
py
Python
python/pickle/pickling.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/pickling.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/pickling.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pickle class example_class: a_number = 35 a_string = "hey" a_list = [1, 2, 3] a_dict = {"first": "a", "second": 2, "third": [1, 2, 3]} a_tuple = (22, 23) my_object = example_class() my_pickle_object = pickle.dumps(my_object) # Picking the object print(f"This is my pickle o...
24.772727
77
0.67156
a95894d27ece41738c4811637eb21800a77ed8da
3,230
py
Python
models/hr_employee_children.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_children.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_children.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
40.375
81
0.599071
8d6e71d27e01038a2aa59b2925d92fb2bbd49c56
561
py
Python
20-hs-redez-sem/groups/05-decentGames/src/Board.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/05-decentGames/src/Board.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/05-decentGames/src/Board.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
class Board: def __init__(self, board): self.board = board def __str__(self) -> str: output: str = ' A B C D E F G H \n' board = self.board.split('/') for i, row in enumerate(board): output += str(8 - i) + ' |' for elem in row: try: ...
26.714286
45
0.399287
27b30ca35264ab443683785c8d3c524937c7d991
712
py
Python
DataStructures/DisjoinSet/Graph.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/DisjoinSet/Graph.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/DisjoinSet/Graph.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 def find(disjoin_set, i): if disjoin_set[i] <= -1: return i else: disjoin_set[i] = find(disjoin_set, disjoin_set[i]) return disjoin_set[i] N = int(raw_input()) disjoin_set = [-1] * (2*N + 1) for _ in xrange(N): G, B = map(int, raw_input().split()) G = find(d...
19.777778
58
0.571629