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
84f303ca570b047473fe9010bb33848750845d9b
8,717
py
Python
mlir/test/Bindings/Python/ir_operation.py
hanzhan1/llvm
efe40bb5c797b102088e3cd2579a0f57ccf93310
[ "Apache-2.0" ]
null
null
null
mlir/test/Bindings/Python/ir_operation.py
hanzhan1/llvm
efe40bb5c797b102088e3cd2579a0f57ccf93310
[ "Apache-2.0" ]
null
null
null
mlir/test/Bindings/Python/ir_operation.py
hanzhan1/llvm
efe40bb5c797b102088e3cd2579a0f57ccf93310
[ "Apache-2.0" ]
null
null
null
# RUN: %PYTHON %s | FileCheck %s import gc import io import itertools import mlir def run(f): print("\nTEST:", f.__name__) f() gc.collect() assert mlir.ir.Context._get_live_count() == 0 # Verify iterator based traversal of the op/region/block hierarchy. # CHECK-LABEL: TEST: testTraverseOpRegionBlockIterator...
29.750853
79
0.653665
ca085b37357cdc2d4c5cf3eb7e0a836ed524c73a
732
py
Python
BreakCode/python/BreakCode.py
Lian0123/TextArt
26a2378a48fb1e49df067240fcb1dbd50e346a8e
[ "MIT" ]
2
2018-07-29T05:02:53.000Z
2021-08-16T10:52:59.000Z
BreakCode/python/BreakCode.py
Lian0123/TextArt
26a2378a48fb1e49df067240fcb1dbd50e346a8e
[ "MIT" ]
null
null
null
BreakCode/python/BreakCode.py
Lian0123/TextArt
26a2378a48fb1e49df067240fcb1dbd50e346a8e
[ "MIT" ]
null
null
null
# # 這是正常的分號: ; # 這是希臘的分號: ; # 這是SQL的引號: ` # 這是注音符號四聲: ˋ # 這是Go語言常用的: := # 這是撒瑪利亞字母: ࠺ # 這是...
43.058824
53
0.148907
04d4207e101eb537794da4b114741f866faa33bc
4,082
py
Python
get_img_in_taobao.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
get_img_in_taobao.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
get_img_in_taobao.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
import re import requests import CralwerSet.connect_mysql as connect_mysql import threading import CralwerSet.schedule as schedule import time import datetime import json from requests.packages import urllib3 urllib3.disable_warnings() class mythread(threading.Thread): def __init__(self, name, sc): threa...
31.643411
151
0.553895
04d5a4c0fe5479e1a0af884c51da0761801a2c30
131
py
Python
scripts/python3.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/python3.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/python3.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
#Lang Python3 #env Interactive as well as script #aut Anshu Musaddi #github https://github.com/anshucollege print ("Hello World")
18.714286
39
0.770992
04ee82e86977509ff5405ca8ab495d55fda96048
1,095
py
Python
Backend/views/extent.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/views/extent.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/views/extent.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
from flask import Blueprint, jsonify from cache import cache from db import db from timer import timer routes = Blueprint('extent', __name__, url_prefix='/extent') @routes.route('/', methods=['GET']) @timer @cache.cached() def get_extent(): """ Returns the extent of our data """ sql_stmt = ''' ...
23.297872
113
0.558904
fcaaa3b9044e705a01ebc18089afe78a7068b562
692
py
Python
bots/bot_manager.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
1
2021-01-20T18:33:01.000Z
2021-01-20T18:33:01.000Z
bots/bot_manager.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
null
null
null
bots/bot_manager.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
2
2019-09-04T08:27:14.000Z
2019-09-06T20:32:30.000Z
import importlib import pkgutil from pathlib import Path from typing import Optional, List, Type from .basebot import BaseBot __imported = False def import_all_bots(): global __imported if __imported: return for (_, name, _) in pkgutil.iter_modules([Path(__file__).parent]): importlib.imp...
21.625
70
0.702312
1e3ecb9f758d2abcedf56035a993c92688feec4f
238
py
Python
Data-Collecting/script.py
YoshlikMedia/STT-uzbek-bot
fec5d6a7bec4135aeb35a86970193654637194f5
[ "MIT" ]
null
null
null
Data-Collecting/script.py
YoshlikMedia/STT-uzbek-bot
fec5d6a7bec4135aeb35a86970193654637194f5
[ "MIT" ]
null
null
null
Data-Collecting/script.py
YoshlikMedia/STT-uzbek-bot
fec5d6a7bec4135aeb35a86970193654637194f5
[ "MIT" ]
null
null
null
import pandas as pd import glob, os COMMON_VOICE_PATH = "common-voice-tsv" # list of all the files in the common voice data folder files = os.chdir(COMMON_VOICE_PATH) for file in glob.glob("*.txt"): files.append(file) print(files)
19.833333
55
0.739496
1e5fc85ed08a6993d1f9dbb70dab6cf7b0305a34
12,749
py
Python
sso-service/sso/endpoints/user_endpoint.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-service/sso/endpoints/user_endpoint.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
sso-service/sso/endpoints/user_endpoint.py
faical-yannick-congo/sso-backend
e962006b0fecd68e4da94e54b4dc63547a5a2c21
[ "MIT" ]
null
null
null
import simplejson as json from flask.ext.api import status import flask as fk from ssodb.common import crossdomain from sso import app, SERVICE_URL, service_response, smartWelcome, fetch_city from ssodb.common.models import Country, City, Service, User, Activity import mimetypes import traceback import datetime impo...
50.391304
135
0.5693
1ed697f33417130e235913b957d97e8c072911db
278
py
Python
pacman-arch/test/pacman/tests/sync050.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/sync050.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/sync050.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a virtual target (provided by a sync package)" sp1 = pmpkg("pkg1") sp1.provides = ["pkg2"] self.addpkg2db("sync", sp1); self.args = "-S %s" % sp1.name self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=pkg1") self.addrule("!PKG_EXIST=pkg2")
23.166667
74
0.705036
7863fba29f30ace4d6eb8015ff31d64c921f49c3
213
py
Python
Algorithms/Implementation/between_two_sets.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Implementation/between_two_sets.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Implementation/between_two_sets.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
n,m = map(int, input().split()) a = list(map(int, input().split())) b = list(map(int, input().split())) l = [ all(i % y == 0 for y in a) & all(x % i == 0 for x in b) for i in range(max(a),min(b)+1)] print(sum(l))
35.5
94
0.544601
1538b4ea87f774168dd2852895543533f589c8d2
5,238
py
Python
haas_lib_bundles/python/libraries/heartrate/heartbeat.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/heartrate/heartbeat.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/heartrate/heartbeat.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @File : heartbeat.py @Description: 心率传感器驱动 @Author : victor.wang @version : 1.0 ''' from driver import ADC # ADC类,通过微处理器的ADC模块读取ADC通道输入电压 from driver import TIMER # 定时器类,用于定时调用心率传感器 from driver import GPIO class HE...
40.604651
94
0.435281
da46ae26c8bbbd04da1aa86da442c34ab542ce06
3,683
py
Python
Assigmnet Entropy/AidarAhmetshin.py
brooky56/IT
ff3198cd2d1838d3a1afe609fa1efb7576f76e8a
[ "MIT" ]
null
null
null
Assigmnet Entropy/AidarAhmetshin.py
brooky56/IT
ff3198cd2d1838d3a1afe609fa1efb7576f76e8a
[ "MIT" ]
null
null
null
Assigmnet Entropy/AidarAhmetshin.py
brooky56/IT
ff3198cd2d1838d3a1afe609fa1efb7576f76e8a
[ "MIT" ]
null
null
null
""" Implemented by Aidar Ahmetshin BS17-RO-01 """ import glob import matplotlib.pyplot as plt import numpy as np # function to plot histogram (amount distribution for each byte) def plot_hist(arr, file, entropy): plt.style.use('ggplot') plt.title(str("Histogram of bytes distribution in file {0} with entr...
35.757282
111
0.635352
da7605449af4dd385125cfe64c738333d9030b29
910
py
Python
v351/python/dreieck.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v351/python/dreieck.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v351/python/dreieck.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np from scipy.stats import sem import matplotlib.pyplot as plt x = np.ones(10) dv, ve, u, ue = np.genfromtxt('python/dreieckanalyse.txt', unpack=True) for i in range(10): x[i] = (u[i]*(2*i+1)**2*np.pi**2)/8 # Grundamplitude ausrechnen e = x.mean() n = np.ones(10) for m in range(10): n[m] = 8*...
23.947368
106
0.635165
ec1785165afe755c2f30a469d53bfaad98efdf49
7,923
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/server_session.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/server_session.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/server_session.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
40.840206
128
0.588161
6ba0f546fc581632730671bdf78248265e00bd8b
2,310
py
Python
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/Hilens接多路视频流方案/flask_server.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/Hilens接多路视频流方案/flask_server.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/Hilens接多路视频流方案/flask_server.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
# -*- coding: utf-8 -*- import base64 import warnings import cv2 warnings.filterwarnings("ignore") from flask import Flask, request import numpy as np import json import uuid import time app = Flask(__name__) skip_count = {} skip_frame = 4 @app.route('/', methods=['POST']) def get_json(): # time.sleep(0.0...
31.216216
119
0.556277
6bde12ece8cc94434381e683a505d97098ea5f9f
2,750
py
Python
src/onegov/activity/matching/interfaces.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/matching/interfaces.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/matching/interfaces.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class MatchableOccasion(metaclass=ABCMeta): """ Describes the interface required by the occasion class used by the algorithm. This allows us to untie our implementation from the database. """ @property @abstractmethod def id(self): """ The...
25.229358
76
0.638909
d46dd00aee410ca758742fcc78eb589f7890d365
269
py
Python
modules/stop.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
modules/stop.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
modules/stop.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
import sys from discord.ext import commands from discord.ext.commands import Context as CommandContext def setup(bot: commands.Bot): @bot.command() @commands.is_owner() async def stop(ctx: CommandContext): return #sys.exit(0)
20.692308
59
0.665428
d8570e0d0d06d912630e22d85009cec5ba8a408f
764
py
Python
old/analyze-luminosity.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
2
2018-10-16T08:09:13.000Z
2019-02-18T13:33:11.000Z
old/analyze-luminosity.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
7
2019-02-28T18:10:44.000Z
2019-03-04T21:09:03.000Z
old/analyze-luminosity.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
1
2020-04-05T08:53:13.000Z
2020-04-05T08:53:13.000Z
import os import cv2 import numpy def evaluateImage(img): mat = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY); res = cv2.calcHist([img], [0], None, [256], [0, 256]) medium = 0.0 total = 0.0 for i, val in enumerate(res): medium += i * val[0] total += val[0] medium /= total print(m...
19.589744
59
0.591623
2b2e932760f30834fbc2be31a0a6915186b7e347
205
py
Python
exercises/en/exc_02_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/exc_02_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/exc_02_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy # Load the en_core_web_md pipeline nlp = ____ # Process a text doc = nlp("Two bananas in pyjamas") # Get the vector for the token "bananas" bananas_vector = ____.____ print(bananas_vector)
17.083333
40
0.756098
5af9bb83ff668275eade4a5dc6947e1220873926
273
py
Python
nz_django/day6/uploadfile_demo/front/forms.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day6/uploadfile_demo/front/forms.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day6/uploadfile_demo/front/forms.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django import forms from .models import Article class ArticleForm(forms.ModelForm): class Meta: model = Article fields = "__all__" error_messages = { 'thumbnail':{ 'invalid':'请上传正确格式的图片' } }
21
38
0.542125
51e753c464d27cc49405ae47a413d4ef331d60e9
4,130
py
Python
Packs/Qintel/Integrations/QintelPMI/QintelPMI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Qintel/Integrations/QintelPMI/QintelPMI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Qintel/Integrations/QintelPMI/QintelPMI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""Qintel PMI Integration for Cortex XSOAR - Unit Tests file""" import json import io MOCK_URL = 'https://this-is-only-a-test.local' MOCK_CLIENT_ID = 'client-id' MOCK_CLIENT_SECRET = 'client-secret' def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()...
31.052632
79
0.694673
51f4a0b974ef0151a0d337402095ba68312bf25c
463
py
Python
test/os_test.py
littlecharacter/AutoWork
feebb8459f889b7a9165073be8fd44ba544cbb35
[ "Apache-2.0" ]
null
null
null
test/os_test.py
littlecharacter/AutoWork
feebb8459f889b7a9165073be8fd44ba544cbb35
[ "Apache-2.0" ]
null
null
null
test/os_test.py
littlecharacter/AutoWork
feebb8459f889b7a9165073be8fd44ba544cbb35
[ "Apache-2.0" ]
null
null
null
import os import psutil import time import subprocess if __name__ == "__main__": pass # op_content = "/Applications/微信.app" # p = subprocess.Popen(op_content) # time.sleep(3) # p.terminate() # os.system(f'open \"{op_content}\"') # os.system("osascript -e 'tell application \"/Applications/微...
23.15
83
0.602592
7a59d8b2e4e0155e6618156489dbe0040e3d3ade
3,446
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/late_heuristic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/late_heuristic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/late_heuristic.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python def energy_in_histo_range(histo, low, high): index_low = round(low) index_high = round(high) if high == 1: index_high = len(histo)-1 if high > len(histo)-1: high = len(histo)-1 if low < 0: low = 0 return sum(histo[index_low:index_high+1]) def info...
32.205607
82
0.541788
64e46bdfc13460ecc858da4b59cd9addcc424255
1,246
py
Python
Website/backend/database/Queries/Tables.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
3
2018-06-16T12:49:20.000Z
2021-01-26T16:15:11.000Z
Website/backend/database/Queries/Tables.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
2
2019-11-01T09:36:31.000Z
2020-11-20T13:27:42.000Z
Website/backend/database/Queries/Tables.py
nachgeradelt/nachgeradelt
d45ed6b3c9088d58cdd315e26b932b5da8b5f130
[ "MIT" ]
1
2019-04-23T06:46:45.000Z
2019-04-23T06:46:45.000Z
# -*- coding: utf-8 -*- ''' Created on May 10, 2018 @author: iranox ''' """This are all needed Tables """ TABLES = {} TABLES['waypoints'] = ("CREATE TABLE IF NOT EXISTS `waypoints` ( `id` int(11) NOT NULL AUTO_INCREMENT," "`name` varchar(30) NOT NULL," "`description` text," " `lat` float," " `lon` ...
29.666667
113
0.577047
8f632bbde6577d091f443cb4b1b0cd99654c6589
352
py
Python
2018/01/slingshot-sketch-20171206/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2018/01/slingshot-sketch-20171206/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2018/01/slingshot-sketch-20171206/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 import base_filters import custom_filters COPY_GOOGLE_DOC_KEY = '16gsJEtRhLeVJbXF-9nnGBdU84bhJzSoDjgxHzNCVJC0' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.F...
23.466667
77
0.823864
74b1ff17c4a23d07e9fdb55977729b3a7bed84d2
1,069
py
Python
elements/python/6/7/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/6/7/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/6/7/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import random def first_missing_positive(a): """ O(n) time but reuses the array for state. """ n = len(a) i = 0 while i < n: j = a[i] while 0 < j <= n and a[j-1] != j: a[j-1], j = j, a[j-1] i += 1 for i, x in enumerate(a): if x != i+1: ...
18.754386
59
0.501403
2479acd5190d104b7881cc39b49f614f8fe85de4
10,671
py
Python
skill.py
patrickjane/hss-s710-lightsha
da98362f05011602248006bb93f9ead4a0be09d1
[ "MIT" ]
null
null
null
skill.py
patrickjane/hss-s710-lightsha
da98362f05011602248006bb93f9ead4a0be09d1
[ "MIT" ]
null
null
null
skill.py
patrickjane/hss-s710-lightsha
da98362f05011602248006bb93f9ead4a0be09d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Snips Lights + Homeassistant # ----------------------------------------------------------------------------- # Copyright 2019 Patrick Fial # -------------------------------------------------...
46.395652
159
0.575954
24bd224da264e24ec96d6e5efdf845b896810ddd
1,606
py
Python
site/public/courses/CS-1.2/Code/Simplified_Starter_Code/markov.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.2/Code/Simplified_Starter_Code/markov.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.2/Code/Simplified_Starter_Code/markov.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from dictogram import Dictogram class MarkovChain: def __init__(self, word_list): #The Markov chain will be a dictionary of dictionaries #Example: for "one fish two fish red fish blue fish" #{"one": {fish:1}, "fish": {"two":1, "red":1, "blue":1}, "two": {"fish":1}, "red": {"fish...
36.5
123
0.60274
24eb6abe3fe784deeca35ceca285ce9a17e2f83e
1,449
py
Python
algorithm/sorting_algorithms_in_python/insertion_sort.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
algorithm/sorting_algorithms_in_python/insertion_sort.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
algorithm/sorting_algorithms_in_python/insertion_sort.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from random import randint from sorting_timer import run_sorting_algorithm, ARRAY_LENGTH def insertion_sort(array): # Loop from the second element of the array until # the last element for i in range(1, len(array)): # This is the element we want to position in its # correct place ...
35.341463
66
0.623879
7007b2447bcf722e93277c34575ccc9f22372c3e
148
py
Python
dataset/utils/__init__.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
dataset/utils/__init__.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
dataset/utils/__init__.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
import sys import os abs_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(abs_path) from data_deal import * from my_csv import *
16.444444
53
0.777027
d90622771b4d0de8fb67006420367c4a8eee6e5d
3,304
py
Python
src/assets/experiences/sortierroboter/BlueberryCode/berrysort_template.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
1
2022-03-28T17:23:03.000Z
2022-03-28T17:23:03.000Z
src/assets/experiences/sortierroboter/BlueberryCode/berrysort_template.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
null
null
null
src/assets/experiences/sortierroboter/BlueberryCode/berrysort_template.py
TU-Blueberry/bluestberry
fbde8dbcd730fe5c4e69ba15a1208a5c0903aa7d
[ "MIT" ]
null
null
null
import os import pandas as pd import numpy as np from skimage import io import berrytemplates as bt from sklearn.metrics import accuracy_score from berrysort import TestDataLoader path = "BlueberryData/TrainingData/" # Lade die Bilder und deren Klasse. # Gute Beeren bekommen die Klasse 1, schlechte Beeren die Kl...
28.982456
73
0.733051
c602120c40f33d7428e758e6f3c4cbbe510a2856
4,585
py
Python
src/onegov/wtfs/layouts/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/layouts/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/layouts/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.core.elements import Confirm from onegov.core.elements import Intercooler from onegov.core.elements import Link from onegov.wtfs import _ from onegov.wtfs.layouts.default import DefaultLayout from onegov.wtfs.security import AddModel from onegov.wtfs.security impo...
28.65625
75
0.497492
79faba84e092339f7d87f77fa4da95ea9206024e
14,761
py
Python
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/get_data_from_scatter_chart.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
14
2016-11-03T19:06:21.000Z
2021-11-24T09:05:09.000Z
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/get_data_from_scatter_chart.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
10
2022-02-16T07:17:49.000Z
2022-03-08T12:43:51.000Z
asset/integrations/django/samples/fusioncharts/samples/get_data_from_scatter_chart.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file which has required functions to embed the charts in html page from ..fusioncharts import FusionCharts # Loading Data from a Static JSON String # It is a example to show a selectscatter chart where data is pas...
44.062687
179
0.17675
30469c2f7f0e6e7ce7237811cd7a604997bc6c6c
494
py
Python
ipcs/2018/raw_data.py
Loks-/competitions
3bb231ba9dd62447048832f45b09141454a51926
[ "MIT" ]
4
2018-06-05T14:15:52.000Z
2022-02-08T05:14:23.000Z
ipcs/2018/raw_data.py
Loks-/competitions
3bb231ba9dd62447048832f45b09141454a51926
[ "MIT" ]
null
null
null
ipcs/2018/raw_data.py
Loks-/competitions
3bb231ba9dd62447048832f45b09141454a51926
[ "MIT" ]
1
2018-10-21T11:01:35.000Z
2018-10-21T11:01:35.000Z
import requests session = requests.Session() URL_LOGIN = "https://ipsc.ksp.sk/2018/login" login_request = session.post(url = URL_LOGIN, data={"username" : "Loks", "password" : "q1w2e3"}) URL_R1 = "https://ipsc.ksp.sk/2018/practice/problems/r1" r = session.post(url = URL_R1) r = session.post(url = URL_R1) r = session...
35.285714
96
0.696356
23142a568f5ab0f27c6895eaf9df47a685ad4d1e
536
py
Python
sandbox/action/gotolocationaction.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
null
null
null
sandbox/action/gotolocationaction.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
1
2022-03-22T23:50:32.000Z
2022-03-22T23:50:32.000Z
sandbox/action/gotolocationaction.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
null
null
null
from sandbox.action.action import Action from sandbox.character.character import Character from sandbox.target.locationselector import LocationSelector class GotoLocationAction(Action): location_selector: LocationSelector def __init__(self, location_selector: LocationSelector) -> None: super().__init...
29.777778
68
0.740672
cc3802195df1c499fafa87e680e7c6aa1bf0a383
2,645
py
Python
src/onegov/people/collections/memberships.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/collections/memberships.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/collections/memberships.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.collection import GenericCollection from onegov.core.orm.abstract import MoveDirection from onegov.people.models import AgencyMembership class AgencyMembershipCollection(GenericCollection): """ Manages a list of agency memberships. Use it like this:: from onegov.people import Agency...
32.654321
78
0.617391
ccba220a7a2cfeaad19af0cdf7a7d44a4f4e2b89
6,836
py
Python
robot/wxgui.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/wxgui.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/wxgui.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 wx import time import urllib2 as request from random import randint from threading import * from wx.lib.pubsub import pub import re ID_START = wx.NewId() ID_STOP = wx.NewId() EVT_RESULT_ID = wx.NewId() url = "" n = 0 flag = 0 time_x = 0 proxy = [{'https': '110.88....
37.152174
155
0.532768
ae07cf2f62623b576501b803d43d8fc5174e145b
615
py
Python
Algorithms/Strings/super_reduced_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Strings/super_reduced_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Strings/super_reduced_string.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def super_reduced_string(s): # Complete this function input_s = list(s) while len(input_s) > 1: for i in range(len(input_s) -1): try: if input_s[i] == input_s[i + 1]: input_s.pop(i) input_s.pop(i) ...
24.6
48
0.473171
ae0cc50b6576653f196b0318ea45c364679aa432
483
py
Python
sCRAPing/finn.no/cleaner.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
sCRAPing/finn.no/cleaner.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
sCRAPing/finn.no/cleaner.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
shorts = {'administrasjon': 'adm'} remove = {' -': ',', 'European Organization for Nuclear Research': ''} def shortenword(word): wolo = word.lower() return shorts[wolo] if wolo in shorts else word def uniquewords(line, shorten=False): trim = '' for word in line.split(): if word not in trim: ...
21.954545
70
0.606625
884a891ab12a8031fb4faccce640f152021cc98e
353
py
Python
Backend.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
1
2015-08-02T09:53:18.000Z
2015-08-02T09:53:18.000Z
Backend.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
null
null
null
Backend.py
lihuiba/SoftSAN
1b8ab2cae92b7aac34211909b27d4ebe595275d7
[ "Apache-2.0" ]
2
2018-03-21T04:59:50.000Z
2019-12-03T15:54:17.000Z
import pylvm2.lvm_ctrl class LVM_SOFTSAN(pylvm2.lvm_ctrl.LVM2): """docstring for LVM_SOFTSAN""" def __init__(self): pylvm2.lvm_ctrl.LVM2.__init__(self) self.reload_softsan_lvs() def reload_softsan_lvs(self): self.reload() self.softsan_lvs=[lv for vg in self.vgs for lv in vg.lvs if lv.name.startswith('lv_...
17.65
96
0.739377
eeddb5cd8cc8ef197348d037ce0b5773ddad812f
1,922
py
Python
official/cv/vgg16/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/vgg16/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/vgg16/ascend310_quant_infer/export_bin.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.686275
103
0.686785
0991f32a1375b572b90e807580d6e703fbed2b40
212
py
Python
lintcode/000-394-Coins-in-a-Line/CoinsinaLine_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
lintcode/000-394-Coins-in-a-Line/CoinsinaLine_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/000-394-Coins-in-a-Line/CoinsinaLine_003.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param n: an integer # @return: a boolean which equals to True if the first player will win def firstWillWin(self, n): # write your code here return not (n % 3 == 0)
30.285714
74
0.617925
0994a77d6899565ec0509fbd6d91d8398ed6e399
1,217
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/9_button.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/9_button.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/9_button.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' The Button widget is a standard Tkinter widget, which is used for various kinds of buttons. A button is a widget which is designed for the user to interact with, i.e. if the button is pressed by mouse click some action might be started. They can also contain text and images like labels. While labels can display tex...
35.794118
434
0.686935
115f59c6161d02de6b7acc26fb72305d4694956b
3,621
py
Python
nz_crawl_demo/day3/dytt8.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day3/dytt8.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day3/dytt8.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import requests from lxml import etree BASE_DOMAIN = "https://www.dytt8.net" headers = { "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36", "Referer": "https://www.dytt8.net/" } #获取电影的详情信息 def parse_detail_info(url): movie = {...
33.841121
135
0.5504
28e0e38f82dcef1d9a7c1f564be25990fe5b0261
942
py
Python
src/notif/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/notif/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/notif/migrations/0001_initial.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2022-05-12 19:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
32.482759
144
0.613588
3ae00dd510ae506784a2e0fd3e01cfb28839d0cb
5,475
py
Python
Metadataextraction/getGeoJsonInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
Metadataextraction/getGeoJsonInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
Metadataextraction/getGeoJsonInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click # used to print something import pygeoj # used to parse the geojson file, NOTE: only works with two-dimensional coordinates import json # used to parse the geojson file import extractTool # used for the the transformation and prints import dateparser # used to parse the dates fr...
36.993243
129
0.604201
a30e079d23092062727e40083ae1b5b2649cef9e
4,568
py
Python
pyventskalender/tag21.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag21.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag21.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Heute beginnen wir mit eineme eigenen einfachen Spiel. # %% installiere arcade in venv -- Tests 10 20 30 # Die Library 'arcade' (siehe https://arcade.academy/) hilft, einfache Spiele # in Python zu entwerfen. # Installiere sie in dem Virtual Environment `venv`, das wir gestern schon # angelegt haben. # Hinweis: Wenn...
40.785714
79
0.714755
280ef392b1123d842632429929476311182d7eb4
2,335
py
Python
db_schema.py
ypislon/bachelorarbeit
2e1d07d667d505a79d1adb9363cec5d21dafe832
[ "MIT" ]
null
null
null
db_schema.py
ypislon/bachelorarbeit
2e1d07d667d505a79d1adb9363cec5d21dafe832
[ "MIT" ]
null
null
null
db_schema.py
ypislon/bachelorarbeit
2e1d07d667d505a79d1adb9363cec5d21dafe832
[ "MIT" ]
null
null
null
from peewee import * from playhouse.migrate import * import datetime from db_connection import db_connection # db_connection is available from db_schema # and looks like this ## db_connection = MySQLDatabase('ba', user='root', password='1234', # host='127.0.0.1', port=3306) # define the mod...
29.935897
75
0.715203
6c58c9784516109b1a993ebb3b690c5d1abf3ffe
14,309
py
Python
Modell/CSV/diagramm_marvin_genauigkeit.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/CSV/diagramm_marvin_genauigkeit.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Modell/CSV/diagramm_marvin_genauigkeit.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np #Input = Sprache #datenTF #output sprache maIn_spOut = np.array([20.02,0.0,0.0,0.01,0.08,0.0,0.13,0.0,0.22,96.22,0.01,3.3,75.45,42.31,0.0,80.9,69.52,20.13,0.0,0.0,0.0,48.77,0.0,100.0,100.0,100.0,99.99,100.0,0.0,4.1,0.03,0.07,0.28,0.51,0.0,0.0,1.33,0.05,0.05,0.07,5.49,...
77.345946
1,764
0.590048
66563fd632a208ff4da126d4ad8853dc7bdafdc0
3,079
py
Python
data_storage.py
Slin-Miraka/EF
9a4372e5ba8f0416715314e7e8a7af156bb6923c
[ "BSD-2-Clause" ]
null
null
null
data_storage.py
Slin-Miraka/EF
9a4372e5ba8f0416715314e7e8a7af156bb6923c
[ "BSD-2-Clause" ]
null
null
null
data_storage.py
Slin-Miraka/EF
9a4372e5ba8f0416715314e7e8a7af156bb6923c
[ "BSD-2-Clause" ]
null
null
null
import streamlit as st import numpy as np list_ = [] HECK10 = ['COST','BP','AMZN','TM','XOM','AAPL','CVS','BRK','UNH','T'] top10weights = ['GOOGL','FB','AMZN','MSFT','AAPL','GOOG','BRK','JPM','TSLA','JNJ'] FEMALE10 = ["ORCL","GSK","ACN","BBY","GM","ANTM","UPS","GD","PGR","NOC"] def get_list(): ...
44.623188
163
0.596622
b08122db77826a59b8c77b4b8b1dd2a9bcdb8443
974
py
Python
Algorithms/DynamticProgramming/TheMaxiumuSubarray.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/DynamticProgramming/TheMaxiumuSubarray.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/DynamticProgramming/TheMaxiumuSubarray.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 T = int(raw_input()) for _ in xrange(T): N = int(raw_input()) ar = map(int, raw_input().split()) maxsum = None maxar = [] maxmum = 0 maxneg = -10 ** 4 have_positive = 0 i = 0 for a in ar: i += 1 if a >= 0: if maxsum == None: ...
19.48
38
0.39117
b0e6485f62fe879e8c6b64b14e97bf8e1a7e4ae9
1,303
py
Python
runners/great_expectations/job_config.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/job_config.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/job_config.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import List, Dict, Optional, Any import marshmallow_dataclass from marshmallow.validate import Range, Equal, ContainsNoneOf, Length from expectations import ExpectationType @dataclass class DatasetType(Enum): BIGQUERY = 1 @dataclass cl...
20.68254
86
0.736761
3c76a8149b1a31c972af31f5aced8cb04d3286fc
1,110
py
Python
zencad/examples/1.GeomPrim/1.prim3d/halfspace.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/1.prim3d/halfspace.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/1.prim3d/halfspace.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 """ ZenCad API example: halfspace Halfspace is special solid that used to boolean operation. In fact, we can't display halspace, but we can use it for intersection or for substutution. """ from zencad import * # Substitution example: m0 = sphere(10) m1 = m0 - halfspace().rotate...
24.130435
70
0.664865
b1c95f0e9398e05002c83d603c8ed12a1bc03e5a
2,766
py
Python
Packs/MacVendors/Integrations/macvendors/macvendors.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/MacVendors/Integrations/macvendors/macvendors.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/MacVendors/Integrations/macvendors/macvendors.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa from typing import Dict, Any import urllib.parse # Disable insecure warnings requests.packages.urllib3.disable_warnings() # pylint: disable=no-member ''' CONS...
28.8125
107
0.563991
59311762934c1d1ae32c83a58394e36c838d9f96
3,085
py
Python
hyperts/estimators.py
oaksharks/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
null
null
null
hyperts/estimators.py
oaksharks/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
1
2021-12-08T02:08:58.000Z
2021-12-08T02:08:58.000Z
hyperts/estimators.py
newbei/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
1
2021-12-07T01:32:44.000Z
2021-12-07T01:32:44.000Z
import numpy as np from prophet import Prophet from sktime.classification.interval_based import TimeSeriesForestClassifier from statsmodels.tsa.vector_ar.var_model import VAR from hypernets.core.search_space import ModuleSpace from hypernets.utils import logging logger = logging.get_logger(__name__) class Estimator...
26.826087
89
0.629498
2805d38d64d7d6b1a6c54f98342c738c3803bd46
304
py
Python
Algorithms/Implementation/cats_and_a_mouse.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/cats_and_a_mouse.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/cats_and_a_mouse.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys q = int(input().strip()) for a0 in range(q): x,y,z = input().strip().split(' ') x,y,z = [int(x),int(y),int(z)] if abs(z - y) == abs(z - x): print('Mouse C') elif abs(z - y) < abs(z - x): print('Cat B') else: print('Cat A')
19
38
0.473684
053036ef5d28c27ad3718b1f0fb747af3e74a274
537
py
Python
webapp/wine_dash/database/create_db.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/wine_dash/database/create_db.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/wine_dash/database/create_db.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import csv, sqlite3 import pandas as pd conn = sqlite3.connect('wine_data.sqlite') cur = conn.cursor() columns = ['country', 'description', 'designation', 'points', 'price', 'province', 'region_1', 'region_2', 'variety', 'winery'] cur.execute(f'CREATE TABLE wine_data ({",".join(columns)})') # data from https://www.ka...
33.5625
127
0.718808
055e87c05dd4a8293eefaa20bed3db41c6956e3d
2,210
py
Python
robot/yxkfw/__init__.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/yxkfw/__init__.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/yxkfw/__init__.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
# coding=utf-8 from selenium import webdriver import time import random browser = webdriver.Chrome() # browser.maximize_window() browser.get("http://www.yxkfw.com/forum.php") time.sleep(2) username = browser.find_element_by_id("ls_username") username.send_keys("user") password = browser.find_element_by_id("ls_password...
35.645161
75
0.681448
557bd2157ce5caaf4728d8df12eb5d10e40fa269
707
py
Python
blender/addon/__init__.py
cnisidis/DMod
f51fb7928b0cdcde2772432194772b3676e41a12
[ "MIT" ]
null
null
null
blender/addon/__init__.py
cnisidis/DMod
f51fb7928b0cdcde2772432194772b3676e41a12
[ "MIT" ]
null
null
null
blender/addon/__init__.py
cnisidis/DMod
f51fb7928b0cdcde2772432194772b3676e41a12
[ "MIT" ]
null
null
null
bl_info = { "name": "DMod Addon", "author": "Constantine Nisidis", "description":"", "version": (0,1), "blender": (2, 90, 0), "support": "TESTING", "category": "Tools" } import bpy import os #os.system('cls') from op import DMOD from ui import DMOD_PT_SETTINGS, DMOD_Settings classes ...
18.128205
82
0.681754
55977dfdf29fa187cefea04c83cb95b913b56536
88
py
Python
nz_crawl_demo/jianshu_spider/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/jianshu_spider/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/jianshu_spider/start.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
#encoding: utf-8 from scrapy import cmdline cmdline.execute("scrapy crawl js".split())
17.6
42
0.761364
55a76e6822ef9c299459e1ff538909507ed52873
2,011
py
Python
main.py
gluttony2016/RNN
8991f020abdb5b28d9f73062dbfcd88d30d760a8
[ "MIT" ]
null
null
null
main.py
gluttony2016/RNN
8991f020abdb5b28d9f73062dbfcd88d30d760a8
[ "MIT" ]
null
null
null
main.py
gluttony2016/RNN
8991f020abdb5b28d9f73062dbfcd88d30d760a8
[ "MIT" ]
null
null
null
import argparse # from data.LCSTS.preprocess import preprocess from preprocess import preprocess import json from config.configurable import Configurable from train_op import build_train_op from helper import Helper from run import train config = Configurable('data') if __name__=='__main__': parser = argparse.Arg...
62.84375
170
0.755843
e9a2d55157e5c4f7b590196d0080c274f5d18e7e
450
py
Python
beispielanwendungen/lokalisierung/lokalisierung_context.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/lokalisierung/lokalisierung_context.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/lokalisierung/lokalisierung_context.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
# -*- coding: utf-8 -*- import sys from PyQt4 import QtCore, QtGui class A(QtCore.QObject): def hello(self): return self.tr("Hello") class B(A): pass app = QtGui.QApplication(sys.argv) language = unicode(QtCore.QLocale.system().name()) myappTranslator = QtCore.QTranslator() myappTranslator.load("lok...
19.565217
66
0.706667
75aa75aca89a259eed5989ef21145fd75c1fd012
1,991
py
Python
src/pfun/random.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/random.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/random.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
import random as random_ from typing_extensions import Protocol from .effect import Depends, Success, depend, purify from .immutable import Immutable class Random(Immutable): """ Module that provides random number generation """ def randint(self, a: int, b: int) -> Success[int]: """ ...
24.580247
77
0.587644
ddbe7c75c529009e37a4c3d551788e24612624a8
1,743
py
Python
INBa/2015/Shirlin_V_V/task_9_32.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Shirlin_V_V/task_9_32.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Shirlin_V_V/task_9_32.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 9. Вариант 32. #Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен его отгадать. #Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток узнать, есть ли какая-либо #буква в слове, причем программа может отвечать только "Да" и "Нет". #Вслед за тем игрок должен попробоват...
34.176471
112
0.677567
34eba01f8289c65d92a6905ef5336148f8dc7a05
4,061
py
Python
scripts/crash_ops.py
Laighno/evt
90b94e831aebb62c6ad19ce59c9089e9f51cfd77
[ "MIT" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
scripts/crash_ops.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
scripts/crash_ops.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
364
2018-06-09T12:11:53.000Z
2020-12-15T03:26:48.000Z
#!/usr/bin/env python3 import os import pathlib import re import subprocess import time import boto3 import click from botocore.exceptions import ClientError from botocore.handlers import disable_signing def green(text): return click.style(text, fg='green') @click.group('cli') def cli(): pass @cli.comma...
30.765152
88
0.61118
1fd0082f1d309bb3f95e4853a75c01e8f16a22ec
1,413
py
Python
build_run.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
src/tmp/build_run.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/tmp/build_run.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #http://stackoverflow.com/questions/4629595/using-pysides-qtwebkit-under-windows-with-py2exe #http://qt-project.org/wiki/Packaging_PySide_applications_on_Windows from glob import glob from distutils.core import setup import py2exe import sys import os if len(sys.argv) ...
26.660377
92
0.571125
7b57770c62be32cc8dcf3b30ca8a9ddc76dd2fa4
433
py
Python
exercises/pt/test_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert cat_hash == nlp.vocab.strings["cat"], "Você atribuiu o código hash corretamente?" assert 'nlp.vocab.strings["cat"]' in __solution__, "Você selecionou a string corretamente?" assert cat_string == "cat", "Você selecionou a string corretamente?" assert ( "nlp.vocab.strings[cat_ha...
43.3
95
0.692841
c8b6be7f537373058338560acdfae3608d2f2c8a
549
py
Python
project/reverse_proxied.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/reverse_proxied.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/reverse_proxied.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
from project import app class ReverseProxied(object): def __init__(self, app): self.app = app def __call__(self, environ, start_response): # if one of x_forwarded or preferred_url is https, prefer it. forwarded_scheme = environ.get("HTTP_X_FORWARDED_PROTO", None) preferred_sch...
36.6
79
0.68306
2787869b00c77a0ee962bee213585e5ddbc7f6b7
7,181
py
Python
wt_search.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
wt_search.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
wt_search.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
""" 微淘搜索 """ import redis import CralwerSet.connect_mysql as connect_mysql import requests from urllib import parse import json import re from bs4 import BeautifulSoup import traceback import time as t import hashlib HEADER = { "User-Agent": "PostmanRuntime/7.20.1"} def weibo(url): try: id = max(re.f...
32.493213
289
0.525136
475cf30028d10105fe7fe83f52cb283d7516b0b9
1,962
py
Python
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/update_data_runtime.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
14
2016-11-03T19:06:21.000Z
2021-11-24T09:05:09.000Z
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/update_data_runtime.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
10
2022-02-16T07:17:49.000Z
2022-03-08T12:43:51.000Z
asset/integrations/django/samples/fusioncharts/samples/update_data_runtime.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file that contains functions to embed the charts. from ..fusioncharts import FusionCharts # Loading Data from a Static JSON String # Example to create a Angular Gauge with the chart data passed as JSON string form...
40.040816
130
0.496432
d0b8e8ec7671e654ec25d069af0d4d0afb3ec7ba
4,646
py
Python
progs/pypw/pypw.py
kukrimate/projects
4ce45ac225001f88299dad6cf4acbee6969d2292
[ "0BSD" ]
null
null
null
progs/pypw/pypw.py
kukrimate/projects
4ce45ac225001f88299dad6cf4acbee6969d2292
[ "0BSD" ]
null
null
null
progs/pypw/pypw.py
kukrimate/projects
4ce45ac225001f88299dad6cf4acbee6969d2292
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 # Crypto modules from Crypto.Cipher import AES from Crypto.Hash import HMAC from Crypto.Hash import SHA256 from Crypto.Protocol import KDF import argparse import os import json parser = argparse.ArgumentParser(description='Python password manager') parser.add_argument('-d', metavar='database', req...
29.592357
103
0.72966
ef333b1c1d565067ed6d30f49b1aba3cf17f947d
835
py
Python
py/jpy/src/test/python/jpy_reentrant_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
py/jpy/src/test/python/jpy_reentrant_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/src/test/python/jpy_reentrant_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
import unittest import jpyutil jpyutil.init_jvm(jvm_maxmem='512M', jvm_classpath=['target/classes']) import jpy class TestReentrant(unittest.TestCase): def test_reentrant_function(self): PyObject = jpy.get_type('org.jpy.PyObject') PyInputMode = jpy.get_type('org.jpy.PyInputMode') PyModule = jpy.get_typ...
29.821429
92
0.732934
323384c01c209bc563da2994474ec879b4683062
6,390
pyde
Python
School/G11/Robot/Robot.pyde
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
School/G11/Robot/Robot.pyde
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
School/G11/Robot/Robot.pyde
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
# Main Robot Drawing robot = [ # [partOfRobot, Type, Parent, Position/Values] # Rect: x, y, w, h [False, 'fill', 'ground', [160, 82, 45]], [False, 'rect', 'ground', [0, 500, 800, 100]], [False, 'fill', 'feet', [0, 0, 0]], [True, 'rect', 'foot_l', [275, 475, 60, 25]], [True, 'rect', 'foot_r',...
32.436548
127
0.437872
eb338729e523d7a34b0aec4f09b750f7bb789952
318
py
Python
exercises/zh/exc_04_11_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/exc_04_11_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/exc_04_11_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
TRAINING_DATA = [ ( "哔哩哔哩与阿里巴巴合作为博主们建立社群", {"entities": [(____, ____, "WEBSITE"), (____, ____, "WEBSITE")]}, ), ("李子柒打破了Youtube的记录", {"entities": [(____, ____, "WEBSITE")]}), ( "阿里巴巴的创始人马云提供了一千万购物优惠券", {"entities": [(____, ___, "WEBSITE")]}, ), # 以及更多类似的数据。。。 ]
24.461538
73
0.506289
c23049c74ca5c457dabc3c5430def155291b08a2
7,573
py
Python
spo/utils/arbeitszeituebersicht_berechnung.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
null
null
null
spo/utils/arbeitszeituebersicht_berechnung.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/utils/arbeitszeituebersicht_berechnung.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.utils.data import nowdate, add_to_date, get_datetime, get_datetime_str, time_diff_in_hours, get_time, add_days, getdate, dat...
61.569106
351
0.656147
5f0bd8b17c049dfd49520cfe05ef126cdadcb8b6
302
py
Python
tag_0/p_1_5_multipliziere_zwei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_0/p_1_5_multipliziere_zwei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_0/p_1_5_multipliziere_zwei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 1 Einstieg (Tag 0) 1.5 Multipliziere 2 Zahlen. """ from hilfprogramme import float_number_input if __name__ == '__main__': print('Multiplikation von zwei Zahlen: x = a * b.') a = float_number_input('a? ') b = float_number_input('b? ') x = a * b print('x =', a, '*', b, '=', x)
23.230769
55
0.599338
a0bac144232cf4cbd2709aa97a9ea980ed8b596b
207
py
Python
src/python3_learn_video/if_condition4.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/if_condition4.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/if_condition4.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
score = int(input('请输入一个分数:')) if 100 >= score >= 90: print('A') elif 90 > score >= 80: print('B') elif 80 > score >= 60: print('C') elif 60 > score >= 0: print('C') else: print('输入错误!')
17.25
30
0.516908
f86bd6744ed89a1cd6eb8f6953f92802117f531b
3,065
py
Python
dist/packages/.config/openbox/openbox/openbox_shutdown_window.py
rongworks/open-gecko-de
37ec52bbea1fa13fbb44bbd7162c96afffcf9f16
[ "MIT" ]
2
2018-03-27T21:11:20.000Z
2018-11-11T19:49:55.000Z
test/openbox/openbox_shutdown_window.py
rongworks/open-gecko-de
37ec52bbea1fa13fbb44bbd7162c96afffcf9f16
[ "MIT" ]
9
2018-03-18T19:14:04.000Z
2018-06-29T07:35:00.000Z
test/openbox/openbox_shutdown_window.py
rongworks/open-gecko-de
37ec52bbea1fa13fbb44bbd7162c96afffcf9f16
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk import os import dbus class LogoutWindow: def cancel(self, widget, event, data=None): gtk.main_quit() return False def logout(self, widget): os.system("openbox --exit") def suspend(self, widget): bus = d...
32.263158
80
0.645351
3e109ea27147ece8c273e3e13ce3b96365507ae0
450
py
Python
1844-replace-all-digits-with-characters/1844-replace-all-digits-with-characters.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1844-replace-all-digits-with-characters/1844-replace-all-digits-with-characters.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1844-replace-all-digits-with-characters/1844-replace-all-digits-with-characters.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def replaceDigits(self, s: str) -> str: letter_count = dict((letter, i) for i, letter in enumerate(string.ascii_lowercase)) count_letter = dict((i, letter) for i, letter in enumerate(string.ascii_lowercase)) output="" for i, c in enumerate(s): if i%2==1: ...
40.909091
91
0.573333
3e5e2596f6dd45cf7e68463ec1a2d3c8233a3733
902
py
Python
posts/urls.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/urls.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
posts/urls.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from . import views from .feeds import LatestPostFeed urlpatterns = [ url(r'^$', views.post_list, name='main-page'), url(r'^$', views.post_list, name='list'), url(r'^draft/$', views.post_draft_list, name='draft_list'), url(r'^feed/$', LatestPostFeed(), name='...
45.1
86
0.635255
e47cb0ca16b25f6a08ba0e212270996abd1d3ba4
895
py
Python
exercises/es/test_03_12.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_03_12.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_03_12.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(nlp.pipeline) == 1 and nlp.pipe_names[0] == "countries_component" ), "¿Añadiste el componente correctamente?" assert Span.has_extension("capital"), "¿Registraste la extensión en el span?" ext = Span.get_extension("capital") assert ext[2] is not None, "¿Registraste ge...
44.75
91
0.668156
5fd1d3eafc0c6ea9be9d8aa39b8d8a74096f3a8f
21,065
py
Python
tests/onegov/org/test_views_ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_ticket.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import json import re import textwrap from datetime import date, timedelta, datetime import transaction from webtest import Upload from onegov.form import FormCollection from onegov.reservation import ResourceCollection from tests.onegov.org.common import get_mail def test_tickets(client): assert client.get( ...
32.658915
78
0.659388
396fefee020c593344e3aabb1e61c7678d753d85
481
py
Python
projects/api/figures.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/figures.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/figures.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Figures blueprint.""" from flask import Blueprint, jsonify from ..controllers.figures import list_figures bp = Blueprint("figures", __name__) @bp.route("", methods=["GET"]) def handle_list_figures(project_id, experiment_id, operator_id): """Handles GET requests to /.""" return js...
28.294118
64
0.642412
d9a39dc6cd9f04c155ede93169b868aef75ba693
2,750
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/rax_identity.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/rax_identity.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/rax_identity.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
25.700935
130
0.666909
d9a490581fab4577641b0ec72d43159b240d6d02
596
py
Python
face_sdk/core/image_cropper/BaseImageCropper.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
face_sdk/core/image_cropper/BaseImageCropper.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
face_sdk/core/image_cropper/BaseImageCropper.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: JiXuan Xu, Jun Wang @date: 20201015 @contact: jun21wangustc@gmail.com """ from abc import ABCMeta, abstractmethod class BaseImageCropper(metaclass=ABCMeta): """Base class for all model loader. All image alignment classes need to inherit this base class. """ def __init__(self): pas...
27.090909
64
0.677852
8a098fee50b2818a0771fa74ca3650176044189e
192
py
Python
Language Proficiency/Python/Math/Triangle Quest/triangle_quest.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Math/Triangle Quest/triangle_quest.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Math/Triangle Quest/triangle_quest.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == "__main__": for i in range(1, int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also print((10**i//9)*i)
24
110
0.625
76d11b8ded2165638bb1fb8ab0242c75417869c8
10,927
py
Python
Packs/Opsgeniev2/Integrations/Opsgeniev2/Opsgeniev2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Opsgeniev2/Integrations/Opsgeniev2/Opsgeniev2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Opsgeniev2/Integrations/Opsgeniev2/Opsgeniev2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import requests # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' ALERTS_SUFFIX = "/alerts" REQUESTS_SUFFIX = "/requests" S...
31.399425
119
0.598792
76e7bc5851d5f6bd9b2d0a89fc89e874d008982f
566
py
Python
SleekSecurity/layers/plugins/fingerprint/waf/sucuri.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/waf/sucuri.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/waf/sucuri.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt from re import search,I def sucuri(headers,content): _ = False _ |= search(r"Questions\?.+cloudproxy@sucu...
33.294118
89
0.69258
6a653d7db89bbf859283cd3f81eddb290bc52368
205
py
Python
python_gui_tkinter/KALU/GARBAGE1/mail/mail_Secrets.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/mail/mail_Secrets.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/mail/mail_Secrets.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class Secret(): username="dragonjimut008@gmail.com" # write the username here password="Hackingis110%easier" # write the password here #username="jimutbahanpal@gmail.com" #password="jimut1234S#"
34.166667
63
0.75122
7c482b0f93dabc6e8a2fd002c84904aa07457188
10,866
py
Python
torch/ao/sparsity/sparsifier/base_sparsifier.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/ao/sparsity/sparsifier/base_sparsifier.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
torch/ao/sparsity/sparsifier/base_sparsifier.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
import abc import copy from collections import defaultdict from typing import Dict, Optional, Tuple import torch from torch import nn from torch.nn.utils import parametrize from .utils import FakeSparsity, module_to_fqn, fqn_to_module SUPPORTED_MODULES = { nn.Linear } class BaseSparsifier(abc.ABC): r"""Bas...
39.802198
90
0.558439
7c592a0fff1bdb09cf9d24f6a104ca7349b635ff
5,396
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import pa...
42.825397
103
0.701816
7cdd86716559769ff0b4a12e472ff298bd1f946d
3,538
py
Python
TFLCycles/data_proc.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
TFLCycles/data_proc.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
TFLCycles/data_proc.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] """ Functions used to preprocess the TFL cycle data """ # %% import os import datetime import numpy as np import pandas as pd # %% def load_tfl_csv() -> pd.DataFrame: # Fetch data into dataframe dathpath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data") filepath = os.pa...
28.764228
86
0.63567
810312613d3d13feca18d14a9768696a8e5a74ba
1,918
py
Python
python/oneflow/compatible/single_client/nn/modules/tan.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/compatible/single_client/nn/modules/tan.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/compatible/single_client/nn/modules/tan.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
27.4
80
0.672576
d4ca229fd45443d27d893bfb12720477184eb197
121
py
Python
hypercut/urlcut/admin.py
UnoYakshi/HyperCut
dc1dc2ad4383b69d2833e94f205959e5fe079971
[ "MIT" ]
null
null
null
hypercut/urlcut/admin.py
UnoYakshi/HyperCut
dc1dc2ad4383b69d2833e94f205959e5fe079971
[ "MIT" ]
5
2021-03-30T13:49:59.000Z
2021-09-22T19:19:10.000Z
hypercut/urlcut/admin.py
UnoYakshi/HyperCut
dc1dc2ad4383b69d2833e94f205959e5fe079971
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import UrlPair # Register your models here. admin.site.register(UrlPair)
17.285714
32
0.801653
d4e69da31c734dc3f391e1844c3b7e588656c3d4
1,265
py
Python
03_SDN/ext/aufgabe1.py
kit-tm/Labs
8e5af3a76be6e17bdb62fd3175ecc545ed6e9147
[ "BSD-2-Clause" ]
null
null
null
03_SDN/ext/aufgabe1.py
kit-tm/Labs
8e5af3a76be6e17bdb62fd3175ecc545ed6e9147
[ "BSD-2-Clause" ]
null
null
null
03_SDN/ext/aufgabe1.py
kit-tm/Labs
8e5af3a76be6e17bdb62fd3175ecc545ed6e9147
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from pox.core import core import pox.openflow.libopenflow_01 as of from pox.lib.util import dpidToStr from pox.lib.packet.ethernet import ethernet, ETHER_BROADCAST from pox.lib.packet.ipv4 import ipv4 from pox.lib.packet.arp import arp from pprint import pprint from help...
30.853659
72
0.698814
be0c752116e3566e7c79250bf563089bac2b7809
994
py
Python
setup.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
setup.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
setup.py
sirboldilox/hrsweb
7d0b9df08fde8edba9cdd4c86d9a4518aa5f9758
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os from setuptools import setup, find_packages def read(fname): """Returns a file as a string""" return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "hrsweb", version = "0.2", author = "Matt Parker", author_email='m.parker-12@student....
23.666667
73
0.599598
076e6efbb224154fd0e514b32c473d1883d1a7b5
1,632
py
Python
opencv_tutorial/opencv_python_tutorials/Gui_Features/videos.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Gui_Features/videos.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Gui_Features/videos.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 25 18:09:09 2019 @author: jone """ #%% import cv2 # cap.isOpened() - cap이 정상적으로 open 되었는지 확인 # False 값이면 open되지 않은 것 cap = cv2.VideoCapture(0) # cap.get(prodId) / cap.set(prodId, value)를 통해 속성 변경 가능 # prodId - 3 : width, 4 : height cap.set(3, 320) cap.set(4, 240) while...
20.4
82
0.603554
07abc36f1d12f5632524c7aca00145372437d541
9,807
py
Python
publ/user.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
6
2018-03-29T02:07:44.000Z
2018-09-26T00:17:31.000Z
publ/user.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
82
2018-04-01T08:53:59.000Z
2018-09-28T23:45:05.000Z
publ/user.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
null
null
null
""" Authenticated user functionality """ import ast import collections import configparser import datetime import logging import typing import urllib.parse import arrow import flask import werkzeug.exceptions as http_error from pony import orm from werkzeug.utils import cached_property from . import caching, model,...
32.581395
98
0.620883
ed0790b7ba56eae0c796e46f914f0f889994d482
2,222
py
Python
movies/omdb/example.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
movies/omdb/example.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
movies/omdb/example.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import os # https://pypi.python.org/pypi/omdb/0.9.1 import omdb import sys import requests import PyQt5 import PyQt5.QtCore import PyQt5.QtWidgets class UI_Widget(PyQt5.QtWidgets.QDialog): def __init__(self, parent=None): super(UI_Widget, self).__init__(parent) vbox = PyQ...
27.432099
88
0.656166
9c7ee3762b457378de3f68aec63610c5cfeaeeca
8,027
py
Python
python/oneflow/compatible/single_client/ops/tensor_buffer_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/ops/tensor_buffer_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/ops/tensor_buffer_ops.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
33.307054
126
0.634733