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
2d247aeb11faf90357dd0f77411aad1a93ff9c26
6,064
py
Python
ARFFBuilder.py
weidler/tyrex
76a3d2c36405b1213f230a7a414c2741237933f8
[ "MIT" ]
1
2015-12-08T15:11:15.000Z
2015-12-08T15:11:15.000Z
ARFFBuilder.py
weidler/tyrex
76a3d2c36405b1213f230a7a414c2741237933f8
[ "MIT" ]
null
null
null
ARFFBuilder.py
weidler/tyrex
76a3d2c36405b1213f230a7a414c2741237933f8
[ "MIT" ]
null
null
null
import json from pathlib import Path import sys class ARFFBuilder(): """ Class manages ARFF FIle Construction. @parameters feature_dir string directory of json vector files arff_filename string created arff file will be named like This relation_name[=tyrex] string name of the relation in arff file """ ...
26.596491
139
0.694261
7497d6e0dee77b4a64e4fceadb5cee0875887aa9
323
py
Python
Termux-Login-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Termux-Login-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Termux-Login-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os,sys os.chdir('/data/data/com.termux/files/usr/etc') opr = open('bash.bashrc','a') opr.write("\nalias txl='python /data/data/com.termux/files/home/Termux-Lock/Termux-Lock.py -l'\n") opr.write('txl\n') opr.close() os.system('apt install figlet') os.system('pip install stdiomask') os.system('pip install lolca...
26.916667
98
0.718266
7ae9f057d4176c803225d1829564be9b6ee620fc
1,496
py
Python
comp/advwhereugo/maxdiff_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/advwhereugo/maxdiff_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/advwhereugo/maxdiff_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
def maxdiff(nums): size = len(nums) minnum = [0] * size zeronum = [0] * size zeronum[0] = 1 if nums[0] == 0 else -1 minnum[0] = 0 if nums[0] == 0 else -1 for i in range(1, size): if nums[i] == 0: zeronum[i] = zeronum[i - 1] + 1 else: zeronum[i] = zeronum[i...
24.933333
75
0.472594
704a4ac937b74d15c4ce77cf9c4a89b85dc03672
2,261
py
Python
examples/adminEx2/simulate_auth/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/adminEx2/simulate_auth/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/adminEx2/simulate_auth/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.shortcuts import render, HttpResponse from .models import SimulateContentType, SimulatePermission # Create your views here. def index_view(request): simulate_content_type = SimulateContentType.objects.get(pk=1) # related_name='sp_set' 所以就不会有 simulatepermission_set 这个属性. # ['DoesNotExist', 'Mu...
70.65625
120
0.725785
8e5aef1d3d4b695f828468f6f4b11e2c0850952d
1,643
py
Python
Src/config.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
2
2017-09-28T13:54:57.000Z
2018-06-28T05:03:06.000Z
Src/config.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
Src/config.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
class Configuration: def __init__(self, stack, buffer, tokens, sent, transition, isInitial=False ): self.buffer = buffer self.stack = stack self.tokens = tokens self.isInitial = isInitial self.isTerminal = self.isTerminalConf() self.sent = sent self.transitio...
31
85
0.562386
5c078d72ea0d7722a1d3bda4b9e4b3357cfd4ae2
615
py
Python
utils/math_utils.py
alexpod1000/TF_PoseNet
0329a16275ec974d660e99564949ca95d71389ff
[ "MIT" ]
1
2020-03-04T02:32:07.000Z
2020-03-04T02:32:07.000Z
utils/math_utils.py
alexpod1000/TF_PoseNet
0329a16275ec974d660e99564949ca95d71389ff
[ "MIT" ]
null
null
null
utils/math_utils.py
alexpod1000/TF_PoseNet
0329a16275ec974d660e99564949ca95d71389ff
[ "MIT" ]
null
null
null
import numpy as np def sigmoid(x): return 1 / (1 + np.exp(-x)) def argmax2d(t): if len(t.shape) > 3: t = np.squeeze(t) if not len(t.shape) == 3: print("Input must be a 3D matrix, or be able to be squeezed into one.") return height, widt...
29.285714
93
0.588618
30edfa943b0ce53f0e93d1abc16579235e14eb1c
281
py
Python
ebenezer/atencion/views/diagnostic_tag/serializer.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/views/diagnostic_tag/serializer.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/views/diagnostic_tag/serializer.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
from ...models.diagnostic_tag import DiagnosticTag from rest_framework import serializers, viewsets # Serializers define the API representation. class DiagnosticTagSerializer(serializers.ModelSerializer): class Meta: model = DiagnosticTag fields = '__all__'
25.545455
59
0.772242
306953650bb8b09873e009efd6574754410a93a9
2,733
py
Python
interface/gridrenderer.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
1
2021-01-20T18:33:01.000Z
2021-01-20T18:33:01.000Z
interface/gridrenderer.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
null
null
null
interface/gridrenderer.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
2
2019-09-04T08:27:14.000Z
2019-09-06T20:32:30.000Z
from typing import Callable from PyQt5.QtCore import QPointF, Qt from PyQt5.QtGui import QPaintEvent, QPainter, QColor, QResizeEvent from PyQt5.QtWidgets import QWidget, QSizePolicy from bots.botutilities import Grid class GridRenderer(QWidget): bot_1_color = QColor(255, 0, 0) bot_2_color = QColor(0, 255, 0...
37.958333
103
0.606293
0035c47e619990bf9b3e6904353a2f7e41020984
1,558
py
Python
Documentation/licenses.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Documentation/licenses.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Documentation/licenses.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
"""Generates the copyright file with license information""" from xml.etree import ElementTree as ET from .markdowndoc import MarkdownDoc from .generator import Generator class Licenses(MarkdownDoc): def __init__(self, mdfile, navi): super().__init__(mdfile, navi) self.add_table('Nach id sortiert')...
38
81
0.588575
cca5e4baff1cb5025274331535cb7fcc3918567e
506
py
Python
python/coding_dojang/decorator_class_parameter.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/decorator_class_parameter.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/decorator_class_parameter.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class IsMultiple: def __init__(self, x): self.x = x def __call__(self, func): def wrapper(a, b): r = func(a, b) if r % self.x == 0: print('{0}의 반환값은 {1}의 배수입니다.'.format(func.__name__, self.x)) else: print('{0}의 반환값은 {1}의 배수가 아닙...
23
79
0.476285
0608081cd502d3e5c0e1160afe0f868539cb0e8b
363
py
Python
setup.py
pekh/pykasso
86ece737d62ce28aef00805a19a789714e788453
[ "MIT" ]
null
null
null
setup.py
pekh/pykasso
86ece737d62ce28aef00805a19a789714e788453
[ "MIT" ]
null
null
null
setup.py
pekh/pykasso
86ece737d62ce28aef00805a19a789714e788453
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='pykasso', version='0.0.1 dev', description='Werkzeuge für die Kasse', author='Jan-Peer Grunwald', author_email='pekh@eufrutki.net', license='MIT', packages=find_packages(), entry_points={ 'console_scripts': [ '...
21.352941
43
0.61708
4e9d58c1226aa77e6f4e5314c60f167d9c0b883c
335
py
Python
Python-programming-1/Individual Files of Multiplication tables.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
Python-programming-1/Individual Files of Multiplication tables.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
Python-programming-1/Individual Files of Multiplication tables.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-09-30T18:53:05.000Z
2020-09-30T18:53:05.000Z
# Makes Individual Multiplication table Files for every no. from 2 to 20 # Developer - Dernyt-TPE for a in range(2, 21): f = open('Multiplication table of ' + str(a), 'w') f.write(f"\t\t\t*** Multiplication table of {a} ***\n\n\t") for b in range(1, 11): table = f.write(f"{a} x {b} = {a * b}\n\t")...
30.454545
72
0.58209
09a4c9c35f551a693e311539fba28bbce89380c2
907
py
Python
research/cvtmodel/regnet/src/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/regnet/src/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/regnet/src/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
from .regnet_y_400mf import MindSporeModel as regnet_y_400mf_net from .regnet_y_800mf import MindSporeModel as regnet_y_800mf_net from .regnet_y_1_6gf import MindSporeModel as regnet_y_1_6gf_net from .regnet_y_3_2gf import MindSporeModel as regnet_y_3_2gf_net from .regnet_y_8gf import MindSporeModel as regnet_y_8gf...
60.466667
65
0.877619
fec0e7ad5e734f08ab7bd25655a340a08bba18e6
1,368
py
Python
scripts/gen_embedding.py
largelymfs/DeepFold
9f723539e67d00230646cdb3b1ba706b46cee39b
[ "MIT" ]
17
2017-05-15T07:44:18.000Z
2021-12-23T02:06:12.000Z
scripts/gen_embedding.py
afcarl/DeepFold
9f723539e67d00230646cdb3b1ba706b46cee39b
[ "MIT" ]
null
null
null
scripts/gen_embedding.py
afcarl/DeepFold
9f723539e67d00230646cdb3b1ba706b46cee39b
[ "MIT" ]
8
2017-08-10T15:40:00.000Z
2021-09-29T19:40:34.000Z
#! /usr/bin/env python ################################################################################# # File Name : gen_embedding.py # Created By : yang # Creation Date : [2017-01-26 21:54] # Last Modified : [2017-01-26 23:01] # Description :...
45.6
164
0.616959
aaff6d80d01a080a1fb6d0e8dea56f4b7f542dc9
35,569
py
Python
wz/ui/editable.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/editable.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/editable.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/editable.py Last updated: 2021-10-21 An editable table widget using QTableWidget as base class. Only text cells are handled. Originally inspired by "TableWidget.py" from the "silx" project (www.silx.org), thanks to P. Knobel, but it differs in several respects. =+LICENCE=============...
36.631308
89
0.602716
c90919babc3fec61ffab707d67deda0b78c267bc
32,069
py
Python
MAFIA-main/mafia.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
MAFIA-main/mafia.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
MAFIA-main/mafia.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
4‰ac�������� ���@���sX��d��d�l��Z��y�d��d�l�Z�Wn8�e�k �rV�d�GHe��j�e��j�d�k�rL�d�n�d�ƒ�n�Xy�d��d�l�Z�Wn8�e�k �r¡�d�GHe��j�e��j�d�k�r—�d�n�d�ƒ�n�Xy�d��d�l�Z�Wn8�e�k �rì�d �GHe��j�e��j�d�k�râ�d �n�d �ƒ�n�Xy�d��d�l�Z�Wn8�e�k �r7d �GHe��j�e��j�d�k�r...
75.992891
854
0.402039
a3312a3c682f5c48d7aa8e400bed48e7311ca1d2
10,217
py
Python
extractTool/extractTool/getIsoInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
extractTool/extractTool/getIsoInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
extractTool/extractTool/getIsoInfo.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
import click, json, sqlite3, csv, pygeoj, extractTool from osgeo import gdal, ogr, osr import pandas as pd import numpy as np import xarray as xr import os import ogr2ogr #new for this module import tempfile from scipy.spatial import ConvexHull import geojson as gj import xml.etree.ElementTree as ET import dateparser ...
39.600775
134
0.455613
6e792a57aefe764a724fd9665fd34a5183d06e0a
9,953
py
Python
Packs/CommonScripts/Scripts/ListUsedDockerImages/ListUsedDockerImages.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ListUsedDockerImages/ListUsedDockerImages.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ListUsedDockerImages/ListUsedDockerImages.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""ListUsedDockerImages Script for Cortex XSOAR (aka Demisto) This is a script that list all the dockers images that are in ues in the integrations and automations """ import demistomock as demisto from CommonServerPython import * import json from typing import Dict '''REST API HTTP COMMANDS''' POST_COMMAND = "POST...
37.277154
117
0.679795
66981bc8dbaf75efc01e139295b098be0a479290
1,588
py
Python
tests/test_bt/test_mongofeed/test_mongofeed_00.py
fs714/ialgotest
eae968cff963549af40ed34745b44c1b5e20efa7
[ "Apache-2.0" ]
null
null
null
tests/test_bt/test_mongofeed/test_mongofeed_00.py
fs714/ialgotest
eae968cff963549af40ed34745b44c1b5e20efa7
[ "Apache-2.0" ]
null
null
null
tests/test_bt/test_mongofeed/test_mongofeed_00.py
fs714/ialgotest
eae968cff963549af40ed34745b44c1b5e20efa7
[ "Apache-2.0" ]
1
2021-11-24T18:59:12.000Z
2021-11-24T18:59:12.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import datetime as dt import backtrader as bt from ialgotest.data_feeds.backtrader_mongo_feed import MongoFeed # Create a Stratey class TestStrategy(bt.Strategy): def log(self, txt, dt=None): ''' Logging function fot t...
30.538462
109
0.642947
dd7501c7ff3a74fbd9e708cc4f6a528be26007ea
1,110
py
Python
src/test/tests/databases/openexr.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/openexr.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/openexr.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: openexr.py # # Tests: openexr reading # # Programmer: Brad Whitlock # Date: Thu Feb 15 14:16:45 PST 2018 # # Modifications: # # ----------------------------------------------------------...
20.555556
78
0.552252
06dc6a818a792026144cf9b67f52cbca76eb20bc
1,273
py
Python
rf_demo.py
NeumannSven/esp_rf433mhz
70cda6a91c44f8899466935f0ed6436a43990925
[ "MIT" ]
null
null
null
rf_demo.py
NeumannSven/esp_rf433mhz
70cda6a91c44f8899466935f0ed6436a43990925
[ "MIT" ]
null
null
null
rf_demo.py
NeumannSven/esp_rf433mhz
70cda6a91c44f8899466935f0ed6436a43990925
[ "MIT" ]
null
null
null
import time from machine import Pin def rfSwitch(channels='A', sysCode='', on=True, pinNb=17): frame = [0 for _ in range(0, 128)] frame[128-32] = 1 txPin = Pin(pinNb, Pin.OUT) sendframe = '' for i in range(1,6): if str(i) in sysCode: sendframe += '0' else: ...
22.732143
61
0.427337
af8e10ed3ae2d25f7107cf515afc06d61a833d23
1,929
py
Python
py_projects/gui_temperature_prediction/temperature.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2020-10-04T12:36:45.000Z
2020-10-04T12:36:45.000Z
py_projects/gui_temperature_prediction/temperature.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2021-09-30T16:20:57.000Z
2021-09-30T16:20:57.000Z
py_projects/gui_temperature_prediction/temperature.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
3
2020-10-04T09:49:36.000Z
2020-10-25T15:26:56.000Z
# -*- coding: utf-8 -*- """ Created on Fri Sep 4 13:32:55 2020 @author: DELL """ import requests from tkinter import * import tkinter as tk def weather(): city_name=entry.get() api_key = "dea5a2217c08125e1395555a7c9cf8e3" base_url="http://api.openweathermap.org/data/2.5/weather?" comp...
30.140625
79
0.629342
ab83f4f06857f279d77fa3e8ae570468753167b9
318
py
Python
tests/additionals_for_pigar.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
tests/additionals_for_pigar.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
tests/additionals_for_pigar.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
''' Additional imports for right versions with pigar ''' import spyder import spyder_kernels import rtree import pigar import jsonschema import PyYAML import m2r2 import sphinx_rtd_theme import pylinac import tinycss2 import pyflakes import jinja_markdown import pylint import pynetdicom import pytds import py_linq
15.9
49
0.845912
e630e0f9a225506cfcf9bf69c6a66ef5b9908f50
4,947
py
Python
official/recommend/tbnet/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/tbnet/infer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/tbnet/infer.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...
30.349693
110
0.635941
051093081933dff5d0b378d0f279a91323d5a372
74,852
py
Python
private_sdk/client.py
teambge/bge-private-sdk
b27d4a6caf35bcb89a260938260fd75dba173311
[ "MIT" ]
null
null
null
private_sdk/client.py
teambge/bge-private-sdk
b27d4a6caf35bcb89a260938260fd75dba173311
[ "MIT" ]
null
null
null
private_sdk/client.py
teambge/bge-private-sdk
b27d4a6caf35bcb89a260938260fd75dba173311
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ BGE 私有平台 SDK 客户端模块。 使用示例: """ import json from . import constants from . import models from .error import BGEError from .http import HTTPRequest from .utils import make_sign __all__ = ['PrivateAPI', 'endpoints'] endpoints = [v['endpoint'] for v in constants.ENDPOINTS] class PrivateAP...
33.356506
76
0.581361
057aaa4b1c64f6901b132f45025266a1d93e3d17
6,133
py
Python
2021-05-09/城市地图带后端/城市地图后端/user/views.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/城市地图带后端/城市地图后端/user/views.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/城市地图带后端/城市地图后端/user/views.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from django.http import HttpResponseRedirect from django.shortcuts import render from django.contrib.auth import authenticate, login, logout from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import LoginForm, SignupForm, UserProfileForm, AvatarForm from .models i...
31.290816
84
0.646013
f9be5c5f35c8f51c2e300f8bdfe4f69d3af89fd4
102
py
Python
scripts/hello_world_Kaerit.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Kaerit.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Kaerit.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
''' LANGUAGE: Python 3.5 AUTHOR: Kaerit GITHUB: https://github.com/Kaerit ''' print("Hello World!!")
12.75
33
0.676471
b5d33d237b8cd0ad2ddeeae656269e614f498837
23,950
py
Python
tests/test_sonnen.py
Katamave/sonnen_api_v2
a2ed19631162cd730c1c56a30c1597bbe28c4c04
[ "MIT" ]
null
null
null
tests/test_sonnen.py
Katamave/sonnen_api_v2
a2ed19631162cd730c1c56a30c1597bbe28c4c04
[ "MIT" ]
null
null
null
tests/test_sonnen.py
Katamave/sonnen_api_v2
a2ed19631162cd730c1c56a30c1597bbe28c4c04
[ "MIT" ]
null
null
null
import datetime import os import unittest import responses import logging from freezegun import freeze_time from sonnen_api_v2 import Sonnen class TestSonnen(unittest.TestCase): @responses.activate def setUp(self) -> None: test_data_latest_charging = { 'Consumption_W': 403, 'F...
40.252101
101
0.555491
1f04c12bbb8fdf21f386043679f9d231d2dfbef7
19,663
py
Python
pickle_helper.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
pickle_helper.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
pickle_helper.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path import os import numpy as np import datetime from pickle_plotting import get_file_paths import logarithmoforecast as lf import holidays def pickle_directory(datasets_dir, pickle_dir): file_paths = os.listdir(datasets_dir) sdp_series = {} for path in file_paths:...
47.725728
184
0.606215
1f544ad911c46170a6aed38c4d739f7dff0882ba
1,090
py
Python
beispielanwendungen/pythonqml2/main3.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/pythonqml2/main3.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/pythonqml2/main3.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 -*- #!/usr/bin/env python import sys, os, traceback from PySide import QtCore, QtGui, QtDeclarative utterances = [] utterances.append({ "id": "a1", "utterance": u"dün ak\u015Fam ko\u015Fa ko\u015Fa eve geldim", "ilelements": [ [u'dün', u'dün', u'yester...
25.952381
75
0.592661
2f2a84ab2b83e91e40c55998eb1462de8f9953fc
2,958
py
Python
ieee_keys.py
ahmad88me/YaPub
a370aed2f75b5b35d2a1785429f8c7a6960c1754
[ "Apache-2.0" ]
null
null
null
ieee_keys.py
ahmad88me/YaPub
a370aed2f75b5b35d2a1785429f8c7a6960c1754
[ "Apache-2.0" ]
null
null
null
ieee_keys.py
ahmad88me/YaPub
a370aed2f75b5b35d2a1785429f8c7a6960c1754
[ "Apache-2.0" ]
null
null
null
# keys = { # "title": [ # """ <head> # <meta charset="utf-8" /> # <title>""", # """"</title> # <link rel="stylesheet" href="css/pubcss-ieee.css"> # </head>""" # ], # "section": [ # "<h1>", # "</h1>" # ], # "subsec": [ # "<h2>", # ...
20.978723
88
0.371873
c8501dc9b60e149bd42be82a454cf0ccb829e0e5
1,157
py
Python
python/clipboard.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/clipboard.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/clipboard.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
from time import sleep import sys import os sys.path.append(os.path.abspath("SO_site-packages")) import pyperclip import re pattern = r'(\d{2}\/\d{4}) - (\d{2}\/\d{4})\t([\w -ÆØÅæøå]+)\t([\w -ÆØÅæøå]+)\t([\w -ÆØÅæøå]+)' from keyboard import * recent_value = "" selfchange = False while True: clp_value = pypercli...
28.925
95
0.495246
2393b6dcb812401df5edc9065eebe00791b9885f
8,938
py
Python
Python3-Botnet-master/bot.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Python3-Botnet-master/bot.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Python3-Botnet-master/bot.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python3 #Code By Leeon123 #-- Python Bot version v2 --# # Added xor encode traffic # # Improved dos attack code # # New process lock desgin # # More easy for the skid # ############################# import socket import sys import os import time import random import threading import base64 as b64...
42.561905
263
0.666704
9e8ec06bbebde90300d81ba471278019ae899ce8
2,273
py
Python
migrations/versions/27da3ceea723_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/27da3ceea723_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/27da3ceea723_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 27da3ceea723 Revises: 00daa8c472ba Create Date: 2020-11-08 16:14:01.866196 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op # revision identifiers, used by Alembic. revision = "27da3ceea723" down_revision = "00daa8c472ba" branch_labels = None depends_on = None ...
29.519481
84
0.619446
7b59e4b79f3b7503eb480d7ce9ec33d09bdb27f2
5,490
py
Python
prototype/examples/accessing_api/api-step2.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/accessing_api/api-step2.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/accessing_api/api-step2.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
1
2021-09-26T12:09:52.000Z
2021-09-26T12:09:52.000Z
from flask import Flask, make_response, request import requests import os import logging import yaml import re app = Flask(__name__) class KubernetesAPI: def __init__(self, kubernetes_service_host, kubernetes_service_port, service_account_token=None, cacert=None, insecure_ssl=False): if ...
33.680982
105
0.647359
7b844e68ce6fe64e4abd570d1f0638eba2315bd6
273
py
Python
apps/principal/urls.py
Cesar0510/lbzproject
c197875488cfb10cd35890bcdc0dcc60adf8af76
[ "Apache-2.0" ]
null
null
null
apps/principal/urls.py
Cesar0510/lbzproject
c197875488cfb10cd35890bcdc0dcc60adf8af76
[ "Apache-2.0" ]
null
null
null
apps/principal/urls.py
Cesar0510/lbzproject
c197875488cfb10cd35890bcdc0dcc60adf8af76
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.views.generic import TemplateView from . import views urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='principal/home.html'), name='index'), #url(r'^$', views.index, name='index'), # func View ]
27.3
73
0.681319
7bb42205863e2a384754c95ddc34c6f32b49a917
1,214
py
Python
packages/std/nodes/std___Result0/widgets/std___Result0___main_widget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___Result0/widgets/std___Result0___main_widget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/std/nodes/std___Result0/widgets/std___Result0___main_widget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QLineEdit # from PySide2.QtCore import ... # from PySide2.QtGui import ... import os class Result_NodeInstance_MainWidget(QLineEdit): def __init__(self, parent_node_instance): super(Result_NodeInstance_MainWidget, self).__init__() # leave these lines ---------------...
25.291667
97
0.546952
a974017accd9db72d95a040da9520333ecce0b59
1,693
py
Python
Graphs/graphChromaCanvas.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
2
2020-11-25T07:53:48.000Z
2021-09-19T14:19:51.000Z
Graphs/graphChromaCanvas.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
Graphs/graphChromaCanvas.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QSizePolicy from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure class PlotCanvas_Chrom(FigureCanvas): def __init__(self, parent=None, width=5, height=4, dpi=100): fig = Figure(figsize=(width, height), dpi=dpi)...
34.55102
102
0.604843
8d3d1b23fc0baa8c9fbeb0bb5c8225bac87dc18d
1,229
py
Python
modeling/skmtnet.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/skmtnet.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/skmtnet.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/10/27 下午5:31 """ import torch import torch.nn as nn class SkmtNet(nn.Module): def __init__(self, backbone,auxiliary,trunk,num_classes): super(SkmtNet, self).__init__() self.backbone=backbone...
18.621212
76
0.585028
f5978f7b2de6dead97ea566e61bdf0411a8ac812
1,654
py
Python
docs/lectures/lecture17/notebook/helper.py
tteenathankachan/2021-CS109A
9349749539f439deff280ceb25621fc61a337253
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
docs/lectures/lecture17/notebook/helper.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
docs/lectures/lecture17/notebook/helper.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
import matplotlib.pyplot as plt import numpy as np def plot_boundary(elect_train, dt1, dt2): y_train = elect_train['won'] x1_min, x1_max = elect_train['minority'].min() - 1, elect_train['minority'].max() + 1 x2_min, x2_max = elect_train['bachelor'].min() - 1, elect_train['bachelor'].max() + 1 x1x, x2x...
42.410256
120
0.623942
fdd7f6630442a1013e6928fdcddb58101d2af298
725
py
Python
python/en/archive/practice_python/practice_python-exercise07-List Comprehensions.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/practice_python/practice_python-exercise07-List Comprehensions.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/practice_python/practice_python-exercise07-List Comprehensions.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 2018-10-25 (Thu) PRACTICE PYTHON, https://www.practicepython.org/ Exercise 7. List Comprehensions https://www.practicepython.org/exercise/2014/03/19/07-list-comprehensions.html Let’s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write...
27.884615
89
0.653793
8bd82bc1f3b837e94855c5f9032b69e15a4146c4
10,485
py
Python
Python/tree/octree.py
li195111/Algorithm
35df3c885b4ebec010c41eec4560bcd46d59588e
[ "MIT" ]
null
null
null
Python/tree/octree.py
li195111/Algorithm
35df3c885b4ebec010c41eec4560bcd46d59588e
[ "MIT" ]
null
null
null
Python/tree/octree.py
li195111/Algorithm
35df3c885b4ebec010c41eec4560bcd46d59588e
[ "MIT" ]
null
null
null
from typing import Union import numpy as np class OctreePoint: def __init__(self, min_xyz, max_xyz) -> None: self.min_xyz = min_xyz self.max_xyz = max_xyz self.dxyz = self.max_xyz - self.min_xyz self.center = self.min_xyz + self.dxyz // 2 self.size = abs(np.ceil(sel...
46.6
149
0.587792
d0ebf478b6116daeb03118f93e678425726773f8
475
py
Python
python_first_step/sortalgoArrayOperation/sort1.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/sort1.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/sort1.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
import time import numpy as np import numpy .linalg as nl import random import matplotlib.pyplot as plt def f(t): return np.exp(-t) * np.cos(2*np.pi*t) t1 = np.arange(0.0, 5.0, 0.1) t2 = np.arange(0.0, 5.0, 0.02) plt.figure("superposed figures"") #plt.title("superposed figures") plt.subplot(221) plt.plot(t1...
21.590909
41
0.646316
ef6e4d7bf40ce47243868c65d1ee1494469fc89e
1,710
py
Python
passmaker.py
sera619/PassMaker
51075a77bffbc79e429a1b6f111291e642a4cd32
[ "Apache-2.0" ]
null
null
null
passmaker.py
sera619/PassMaker
51075a77bffbc79e429a1b6f111291e642a4cd32
[ "Apache-2.0" ]
null
null
null
passmaker.py
sera619/PassMaker
51075a77bffbc79e429a1b6f111291e642a4cd32
[ "Apache-2.0" ]
null
null
null
import secrets alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!§$%&/()=?_:;,.-{[}]" head = ['ABC', 'DEF', 'GHI', 'JKL', 'MNO', 'PQR', 'STU', 'VWX', 'YZ1', '_:?', '(-.', '!,#'] # erstellen einer zufalls "kette" an zeichen def random_string(): return secrets.choice(alphabet) + ...
24.428571
95
0.611111
4be910bdc3ac3ee0f2957fc980cd3f7068211350
372
py
Python
site/public/courses/BEW-1.1/Lessons/06-Testing-RESTful-Routes/demo/string_tests.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/BEW-1.1/Lessons/06-Testing-RESTful-Routes/demo/string_tests.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/BEW-1.1/Lessons/06-Testing-RESTful-Routes/demo/string_tests.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
import unittest def greet_by_name(name): """Greet user by name.""" greeting = "Hello, " + name + "!" return greeting class StringFunctionTests(unittest.TestCase): def test_greeting(self): """Test the greeting function.""" self.assertEqual(greet_by_name('Dani'), 'Hello, Mark!'...
26.571429
64
0.629032
08afbb8fdfa47c76f643d3f410ad3c745c0e3dfd
543
py
Python
pacman-arch/test/pacman/tests/upgrade023.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/upgrade023.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/upgrade023.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade a package, with a backup file in the NEW package only" lp = pmpkg("dummy") lp.files = ["etc/dummy.conf*"] self.addpkg2db("local", lp) p = pmpkg("dummy", "1.1-1") p.files = ["etc/dummy.conf"] p.backup = ["etc/dummy.conf"] self.addpkg(p) self.args = "-U %s" % p.filename() self.addrule("PAC...
27.15
82
0.699816
eb1c3b63f0525fdbbf0d2a74e9a131612cdc5997
1,213
py
Python
game_sound.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
game_sound.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
game_sound.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
import random import pygame _songs = ['./sound-files/lied.mp3', './sound-files/lied2.mp3'] def play_song(_song_file_name): pygame.mixer.music.load(_song_file_name) pygame.mixer.music.set_volume(0.2) print('Song playing:' + _song_file_name) pygame.mixer.music.play(0) # -1 plays song for ever def st...
24.26
72
0.665293
eb1c823b4d3ed8c7c1c0d4424fee54cac8f3626a
748
py
Python
Python/Exercícios_Python/004_dissecando_uma_variável.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/004_dissecando_uma_variável.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/004_dissecando_uma_variável.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """004 - Dissecando uma variável Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1b8lRRu_Rjd35Kda9m7RYI33Kthkzx-N4 """ algo = input('Digite algo: ') if algo.isalpha(): print(f'{algo} é uma letra!') if algo.isnumeric(): ...
34
77
0.578877
de911af566fa64880bd941ea30fce6619a90f06d
17,341
py
Python
Crack-rar-master/crack-rar.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
10
2021-10-19T11:31:41.000Z
2022-02-21T19:50:55.000Z
Crack-rar-master/crack-rar.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Crack-rar-master/crack-rar.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-10-21T13:56:06.000Z
2022-03-01T19:48:29.000Z
import marshal exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s\xd2\x00\x00\x00d\x00d\x01l\x00Z\x00d\x00d\x01l\x01Z\x01d\x00d\x01l\x02Z\x02d\x00d\x01l\x03Z\x03d\x00d\x01l\x04Z\x04d\x00d\x01l\x05Z\x05d\x00d\x01l\x06Z\x06d\x00d\x01l\x07Z\x07d\x00d\x01...
8,670.5
17,326
0.73629
dfcfeb6bf5db0702116074fcd9f253bc5bb506b9
897
py
Python
Source/08_TCP_Thread/client.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
1
2022-02-28T09:49:35.000Z
2022-02-28T09:49:35.000Z
Source/08_TCP_Thread/client.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
Source/08_TCP_Thread/client.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
import socket print("Client Side with Thread") print("*" * 30) PORT = 30000 BASIC_MSG_LEN = 64 # 64x bytes FORMAT = "utf-8" DISCONNECT_MSG = "!DISCONNECT" ip = "localhost" # receive from all IPs ADDR = (ip,PORT) # Create the Socket client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Client Connent cl...
19.085106
64
0.694537
5f174fb7e59ff7aa417bdd74dbce9df28a6b03a8
188
py
Python
Python/Collections/collections_namedtuple.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/collections_namedtuple.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/collections_namedtuple.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
from collections import namedtuple n, Student = int(input()), namedtuple('Student', input().strip()) print(sum(map(float,[Student(*input().strip().split()).MARKS for a in range(n)])) /n)
47
86
0.691489
13fc5fbda5f495a20d74e94715e181ce183f6f82
657
py
Python
workshop_petstagram/workshop_petstagram/main/views/generic.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
workshop_petstagram/workshop_petstagram/main/views/generic.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
workshop_petstagram/workshop_petstagram/main/views/generic.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from workshop_petstagram.main.helpers import get_profile_pet_photos from workshop_petstagram.main.templatetags.profiles import has_profile def show_home(request): context = { 'hide_additional_buttons': True, } return render(request, 'home_page.html',...
21.9
70
0.722983
cd8dfe0d5e82ed5e0bc2b991978ab89115b78061
2,278
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigbed.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigbed.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigbed.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import os import subprocess import six import pybedtools def bigbed(x, genome, output, blockSize=256, itemsPerSlot=512, bedtype=None, _as=None, unc=False, tab=False): """ Converts a BedTool object to a bigBed format and returns the new filename. `x` is a BedTool object `genome` is an assembly string...
30.373333
109
0.615891
f895385a8b0ce7d18fa11005c07ce50603ea290a
1,233
py
Python
src/onegov/town6/views/people.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/people.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/people.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Public, Private from onegov.org.views.people import view_people, view_person, \ handle_new_person, handle_edit_person from onegov.town6 import TownApp from onegov.org.forms import PersonForm from onegov.people import Person, PersonCollection from onegov.town6.layout import PersonCo...
38.53125
79
0.776967
3e3f3bc654c918d51c6c8453e8bac4538021402f
19,925
py
Python
scripts/fit.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/fit.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/fit.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script simultaneously fits the volume dependence of all expansion coefficients. Data are read from files fitting a user defined regex. """ import glob import re import numpy as np import pcm_coeff as pcm import fit_function_gen as FFG import os.path import time...
37.665406
80
0.431016
e4a1bc86d2baed92a080207626f830d17b39290c
796
py
Python
Licence 1/I21/TP4/dico.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I21/TP4/dico.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I21/TP4/dico.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
with open("dico-fr.txt", "r+") as file: lines = file.readlines() words = [w.rstrip() for w in lines] words = [w for w in words if len(w) > 1] len_words = len(words) m_word = "" c_word = 0 i = 0 while i < len_words: wparent = words[i] childs = 0 j = 0 while j < len_words: wchild = words[i...
19.414634
47
0.518844
f2f6bc7479bb9324a282c2959190827a7c33b983
56
py
Python
prediction/__init__.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
prediction/__init__.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
prediction/__init__.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
default_app_config = "prediction.apps.PredictionConfig"
28
55
0.857143
84453ce804eaf06e74dd99a23fbcb2a008ce5d81
3,918
py
Python
python/etc/preprocessing/openapc-se/openapc-se_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/etc/preprocessing/openapc-se/openapc-se_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/etc/preprocessing/openapc-se/openapc-se_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse from os import path import sys ARG_HELP_STRINGS = { "apc_se_file": 'Path to the openapc-se core data file (usually named "apc_se.csv")', "org_acronym_file": 'Path to the openapc-se institutional acronym mapping table (usually ' + ...
42.129032
156
0.674068
0801d34a4bf41aa6e42571f066a51ed81c5361ca
2,612
py
Python
Str0nger-master/keystroke.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Str0nger-master/keystroke.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Str0nger-master/keystroke.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os import time from pynput.keyboard import Listener,Key liste = list() cpstatus = False shstatus = False gr_status = False gr_list = ["}",">","£","#","$","½","","{","[","]"] sh_list = ["=","!","'","^","+","%","&","/","(",")"] number = "0123456789" def main(): def buttonon(key): ...
17.890411
67
0.396631
29c86aeebeb76ae1630a1a9ef9512274a39c6b0c
386
py
Python
python/primary/error.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
1
2020-07-29T16:43:46.000Z
2020-07-29T16:43:46.000Z
python/primary/error.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
python/primary/error.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 from __future__ import print_function bis = __builtins__.__dict__.items() def filter_exception(item): if type(item[1]) == type: if issubclass(item[1], BaseException): return True return False bis_without_exct = list(filter(filter_exception, bis)) print(u'共', len(bis_with...
18.380952
54
0.69171
4b11ff2dbf9f7d211009c801418ecaa2859eb8ce
12,206
py
Python
Baerlauch.py
cibobo/Baerlauch
f0a0ecdeb253002abe4289c62cda0549e1713926
[ "Apache-2.0" ]
null
null
null
Baerlauch.py
cibobo/Baerlauch
f0a0ecdeb253002abe4289c62cda0549e1713926
[ "Apache-2.0" ]
null
null
null
Baerlauch.py
cibobo/Baerlauch
f0a0ecdeb253002abe4289c62cda0549e1713926
[ "Apache-2.0" ]
null
null
null
import json import time import numpy from datetime import datetime from collections import deque import BinanceRestLib class TradingChecker(object): #TODO: use other time interval instead the fixed 1m init_interval = '15m' #TODO: replace 300 also with a parameter related to running_interval running_...
40.551495
147
0.603392
d9aa089f2348a1778ee89f723d7f266775d856c1
305
py
Python
2016/02/greece-migrants-20160219/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/02/greece-migrants-20160219/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/02/greece-migrants-20160219/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 COPY_GOOGLE_DOC_KEY = '1TNW6GDLPDeDkB2UvyQdxy_KwKLEu1ecU_TGTljhKtqY' 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.FILTERS
21.785714
77
0.819672
d9c4b5fd73ed2161a43ab55c58e26642fe3e710d
5,462
py
Python
Utils/py/naoth/naoth/LogReader.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/naoth/naoth/LogReader.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/naoth/naoth/LogReader.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import struct import os import io from AudioData_pb2 import * from CommonTypes_pb2 import * from Framework_Representations_pb2 import * from Messages_pb2 import * from Representations_pb2 import * from google.protobuf import text_format class Parser: def __init__(self): self.nameToType = {} def regis...
26.906404
107
0.539912
0a4933b2a5e9f5e9f21e5c4dd161a10f8c19b05f
1,196
py
Python
core/floorplanConverter.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
core/floorplanConverter.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
core/floorplanConverter.py
kklocker/EiT-WiFi-placer
c2c621baa06377d62567d7bd0c2f048f1e6c0859
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.image N_CONSTANTS = { "air": {"value": 1, "lower_bound": -1, "higher_bound": 0}, # Air is the default "concrete": {"value": 2.16 - 0.021j, "lower_bound": 0, "higher_bound": 0.90}, } def parse_image(filename): """ Imports a greyscale png image, and determines wher...
32.324324
95
0.643813
6acb34aafcdf6cdab9c81f7af1778f53686ec6ed
21,197
py
Python
src/lcdoc/call_flows/call_flow_logging.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/call_flows/call_flow_logging.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/call_flows/call_flow_logging.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
import os, json, sys, time from lcdoc.tools import exists, project, write_file, read_file, to_list import inspect, shutil from functools import partial, wraps from lcdoc.call_flows.call_flow_charting import make_call_flow_chart from lcdoc.call_flows.markdown import Mkdocs, deindent, to_min_header_level from pprint im...
31.684604
132
0.528424
0ab1acea901b40d953dec49e0cee6e15139576ff
3,048
py
Python
chapter2/challenge_problems.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
chapter2/challenge_problems.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
chapter2/challenge_problems.py
Baw25/MongoStuff
0a6f35505948d36b3bf1b07a1a75709babaeca71
[ "MIT" ]
null
null
null
# Challenge problem 1 # Suppose our movie details documents are structured so that rather than contain an # awards field that looks like this: # "awards" : { # "wins" : 56, # "nominations" : 86, # "text" : "Won 2 Oscars. Another 56 wins and 86 nominations." # } # they are structured with an awards field a...
26.973451
143
0.602362
0acf0f425b3e1fbd098a2e7e86919478f48a9a1c
1,665
py
Python
examples/relationship/manytomanyfield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytomanyfield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytomanyfield/views.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.shortcuts import render, HttpResponse from .models import Publication, Article def single_create(request): # 测试用例-1(正向操作) # 1. 创建维表数据. # INSERT INTO `manytomanyfield_publication` (`title`) # VALUES ('The Python Journal'); p1 = Publication.objects.create(title='The Python Journal') ...
38.72093
110
0.693694
7c42bc527b69a0465c7f1eebb86ffba2db0d08fa
370
py
Python
oldp/apps/backend/processing/processing_steps/post/send_to_fs.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/backend/processing/processing_steps/post/send_to_fs.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/backend/processing/processing_steps/post/send_to_fs.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import logging from enum import Enum from oldp.apps.backend.processing.processing_steps.post import PostProcessingStep logger = logging.getLogger(__name__) PostProcessingAction = Enum('PostProcessingAction', 'KEEP MOVE REMOVE') class SendToFS(PostProcessingStep): def process(self, content): raise NotIm...
26.428571
81
0.797297
866ee9c306e6352419d485cb461f2bbabc0d9a4c
32,165
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/avi/avi_analyticsprofile.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/avi/avi_analyticsprofile.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/avi/avi_analyticsprofile.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
52.55719
160
0.683569
be1689d764a2d7fd3e1679d9911de955aa854b8b
285
py
Python
DataStructures/LinkedList/DeleteDuplicate.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/DeleteDuplicate.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/DeleteDuplicate.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 def RemoveDuplicates(head): if head == None: return head node = head.next prev = head while node: if node.data == prev.data: prev.next = node.next else: prev = node node = node.next return head
19
34
0.526316
07a4517364b58b86c789501f0d285f545891ecec
3,687
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex05_jewels_board_init.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex05_jewels_board_init.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/solutions/ex05_jewels_board_init.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import random from ch06_arrays.intro.intro import print_array, get_dimension # Terminiert ggf. nicht!! def init_jewels_board_v1(width, height, num_of_colors): board = [] for y in range(height): board.append([]) ...
27.110294
78
0.578248
13b10c0b27c3694dc50a69f76080de253825793a
591
py
Python
20-fs-ias-lec/groups/05-loraLink/src/old/Feed_Sender_release3/Feed_Sender/lib/lora_test_sensor_layer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/05-loraLink/src/old/Feed_Sender_release3/Feed_Sender/lib/lora_test_sensor_layer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/05-loraLink/src/old/Feed_Sender_release3/Feed_Sender/lib/lora_test_sensor_layer.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from lora_feed_layer import Lora_Feed_Layer class Lora_Test_Sensor_Layer: def __init__(self, feed_layer): self.feed_layer = feed_layer self.feed_layer.create_event(self.feed_layer.get_sensor_feed_fid(), "['chat', 'Hi Bob 1']") self.feed_layer.create_event(self.feed_layer.get_senso...
39.4
100
0.695431
6a41b66e580ae5e7b249c6741b97d5ab9690b6bf
2,939
py
Python
python/oneflow/test/graph/test_graph_check.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/graph/test_graph_check.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/graph/test_graph_check.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" 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.022472
76
0.63457
fc89ee248321cbb111a2efcced8e81e5cbb65805
3,188
py
Python
test/test_npu/test_network_ops/test_dirichlet_grad.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_dirichlet_grad.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_dirichlet_grad.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...
46.202899
101
0.71675
5da3991e209732c0b9f987d74d97ad694cfa3924
2,312
py
Python
research/cv/ProtoNet/model_init.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ProtoNet/model_init.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ProtoNet/model_init.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...
36.125
106
0.689446
5dff3659f308508f375382bce553d819938fc498
5,725
py
Python
research/cv/resnetv2/infer/resnetv2_101/sdk/classification_task_metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/resnetv2/infer/resnetv2_101/sdk/classification_task_metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/resnetv2/infer/resnetv2_101/sdk/classification_task_metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicab...
35.339506
109
0.613799
db9cf5192730d4762ecde55bae463bc2535b608e
5,985
py
Python
minesweeper-2021-02-23.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
minesweeper-2021-02-23.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
minesweeper-2021-02-23.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
from tkinter import Tk, Canvas import typing import random import time SIZE = (600, 600) BLACK = "black" # "#000" WHITE = "white" # "#FFF" GREY = "grey" # "#323232" LIGHT_GREY = "green" # "#787878" MID_GREY = "red" # "#5F5F5F" playSize = (10, 10) display = Tk() display.title("Mines") canvas = Canvas(display, wi...
29.482759
78
0.498747
dba0678ff9d546ea454790c459ffb9f2928965a6
305
py
Python
elements/python/11/5/test.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/11/5/test.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/11/5/test.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import random import median def main(): s = median.Streaming() data = [] for i in range(100): x = random.randrange(100000) s.add(x) data.append(x) m = s.median() assert m == median.naive(data) print 'pass' if __name__ == '__main__': main()
15.25
38
0.537705
dbc562d42cec48bfcc7c2b8a395b2962ab3be202
1,841
py
Python
phypidaq/pulseGPIO.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
7
2018-11-30T13:38:27.000Z
2021-03-10T15:37:56.000Z
phypidaq/pulseGPIO.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
5
2020-11-11T09:19:00.000Z
2022-02-06T09:04:55.000Z
phypidaq/pulseGPIO.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
16
2019-04-16T10:15:45.000Z
2021-12-15T14:59:31.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals from __future__ import absolute_import import numpy as np, time, sys import RPi.GPIO as gpio from multiprocessing import Process, Queue class pulseGPIO(object): '''Set Signal on Raspberry Pi GPIO pin''' def pulseGPIOpin(sel...
26.681159
70
0.593699
532eec086364a950435c84f689e3136294639371
17,899
py
Python
applications/speech_cmd_analysis/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/speech_cmd_analysis/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
applications/speech_cmd_analysis/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
37.057971
108
0.532041
536680f53439cb73772fbc16e191fd0cf85c41ec
492
py
Python
solution/dynamic_programming_1/19622/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/dynamic_programming_1/19622/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/dynamic_programming_1/19622/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# Authored by : chj3748 # Co-authored by : - # Link : http://boj.kr/25c02a4ea33e493f9f1320165f1a5f95 import sys def input(): return sys.stdin.readline().rstrip() N = int(input()) meetings = [] for _ in range(N): meetings.append(list(map(int, input().split()))) dp = [0] * N for i in range(N): if i == 0: ...
21.391304
55
0.563008
729bb43364a68767e0f6dce0ff3d54b1ac8bc809
1,573
py
Python
python/interface/register_subclass_detection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/interface/register_subclass_detection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/interface/register_subclass_detection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import abc class FormalParserInterface(metaclass=abc.ABCMeta): @classmethod def __subclasshook__(cls, subclass): return ( hasattr(subclass, "load_data_source") and callable(subclass.load_data_source) and hasattr(subclass, "extract_text") and ca...
29.12963
88
0.650985
72aa102e74282b894d62f12202a2e1161e3aacd9
11
py
Python
python/coursera_python/MICHIGAN/DATABASES/week1/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/DATABASES/week1/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/DATABASES/week1/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def a():
2.75
8
0.363636
f410f359a1a09e3abe66a47ed08a1f39b2bad281
1,500
py
Python
src/dumbellcharts/dumbell.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/dumbellcharts/dumbell.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/dumbellcharts/dumbell.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# dumbell charts import matplotlib.lines as mlines # Import Data df = pd.read_csv("https://raw.githubusercontent.com/selva86/datasets/master/health.csv") df.sort_values('pct_2014', inplace=True) df.reset_index(inplace=True) # Func to draw line segment def newline(p1, p2, color='black'): ax = plt.gca() l = mli...
36.585366
91
0.658
22a9aa0982cabe564cd747b267f43fef60f92e2b
1,753
py
Python
bindings/python/ensmallen/datasets/get_string_okapi_tfidf_weighted_textual_embedding.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
bindings/python/ensmallen/datasets/get_string_okapi_tfidf_weighted_textual_embedding.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
bindings/python/ensmallen/datasets/get_string_okapi_tfidf_weighted_textual_embedding.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
"""Submodule for a pre-parametrized graph TFIDF weighted textual embedding.""" from typing import Optional, Dict, List import numpy as np import os from .automatic_graph_retrieval import AutomaticallyRetrievedGraph from .get_graph_okapi_tfidf_weighted_textual_embedding import get_graph_okapi_tfidf_weighted_textual_embe...
36.520833
110
0.693098
a3e15df0ec485ef10c29cd91b3652a1b149764a1
14,736
py
Python
myspiders/master_hr/spider_master.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/master_hr/spider_master.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/master_hr/spider_master.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import Master, Response, PyppeteerResponse from urllib.parse import urlparse, urljoin import re import os from bs4 import BeautifulSoup import json from copy import copy from config import Target, CONFIG, Job from constants import BankDict from myspiders.spider_hr.icbc_spider import IcbcItem from my...
46.194357
155
0.625407
a3e366d5349d5db06587028609393f12ebb3c274
2,489
py
Python
tests/components/test_clusterers.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
tests/components/test_clusterers.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
tests/components/test_clusterers.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
from os import environ, path, remove from requests import get from pytest import fixture from papermill import execute_notebook from .utils import creates_iris_metadata, creates_titanic_metadata, \ creates_mock_dataset, delete_mock_dataset from projects.controllers.utils import uuid_alpha EXPERIMENT_ID = str(uui...
32.75
102
0.754118
43aa693965c39b470e6a2aea1995f7c596aeaccb
855
py
Python
scripts/gen_ex_trans.py
Laighno/evt
90b94e831aebb62c6ad19ce59c9089e9f51cfd77
[ "MIT" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
scripts/gen_ex_trans.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
scripts/gen_ex_trans.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 json import re import click @click.command() @click.argument('input', type=click.Path(exists=True)) @click.argument('output', type=click.Path()) def gen(input, output): exs = [] with open(input, 'r') as reader: for line in reader: if not line.startswith('FC...
25.147059
99
0.526316
60fe5de2b5ef2e2dc0ccd161046070e21eb53b99
2,004
py
Python
src/torch/npu/_utils.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
src/torch/npu/_utils.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
src/torch/npu/_utils.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...
38.538462
81
0.678144
e0f77a6366c49d879280ddf3506072eb51bbbfbc
553
py
Python
pacman-arch/test/pacman/tests/upgrade005.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/upgrade005.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/upgrade005.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a set of three packages" p1 = pmpkg("pkg1") p1.files = ["bin/pkg1", "usr/man/man1/pkg1.1"] p2 = pmpkg("pkg2", "2.0-1") p2.files = ["bin/pkg2", "usr/man/man1/pkg2.1"] p3 = pmpkg("pkg3", "3.0-1") p3.files = ["bin/pkg3", "usr/man/man1/pkg3.1"] for p in p1, p2, p3: s...
23.041667
68
0.585895
1c4f0528c732163b00b719cd69aebb63f0c2c30c
378
py
Python
logger.py
ds-vologdin/geocoder
152f461b3c030654f59619aa2c8b52df2f8b8326
[ "MIT" ]
null
null
null
logger.py
ds-vologdin/geocoder
152f461b3c030654f59619aa2c8b52df2f8b8326
[ "MIT" ]
null
null
null
logger.py
ds-vologdin/geocoder
152f461b3c030654f59619aa2c8b52df2f8b8326
[ "MIT" ]
null
null
null
import logging def convert_str_to_logging_level(level_str: str='warning') -> int: level_logging = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'error': logging.ERROR, 'critical': logging.CRITICAL, } return level_logging.get(level_str, ...
23.625
66
0.653439
c7e427d322423b41126cd886f404ed92e85dccf2
1,157
py
Python
src/python3_learn_video/sequence.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/sequence.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/sequence.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
""" 列表、元组、字符串的共同点: ——都可以通过索引得到每一个元素 ——默认索引值总是从0开始 ——可以通过分片的方法得到一个范围内的元素的集合 ——有很多共同的操作符(重复操作符、拼接操作符、成员关系操作符) """ print(help(list)) print('----------------------------------') a = list() print(a) b = 'I love FishC.com' b = list(b) print(b) c = (1, 1, 2, 3, 5, 8, 13, 21, 34) c = list(c) print(c) prin...
16.528571
54
0.535869
4068c7a837ef66db3420943442327dc00676bf7e
1,138
py
Python
python/crossref_test.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/crossref_test.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/crossref_test.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ Look up a DOI in crossref. This script looks up a DOI in Crossref. Prints a listing of fields that could be received and are relevant to OpenAPC, an error message otherwise. """ import argparse from urllib.request import urlopen, Request from openapc_toolkit import...
29.179487
95
0.636204
905dcbe515c82f8c4e06864193e006c38cbf2d5c
550
py
Python
webapp/data_viewer/flask/dataViewer1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/data_viewer/flask/dataViewer1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/data_viewer/flask/dataViewer1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pandas as pd from pydataset import data from flask import Flask, request app = Flask(__name__) app.debug = True @app.route('/show', methods=['GET']) def dataViewer_1(): dataset_name = request.args.get('dataset') if dataset_name == None: dataset_name = 'Aids2' # default if no arg passed ...
22
59
0.672727
90f378588bb0b1af9e87d078f416dcdcebb169e9
73
py
Python
src/onegov/intranet/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/intranet/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/intranet/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.intranet.app import IntranetApp __all__ = ('IntranetApp', )
18.25
43
0.767123
2918d7ae02fad1029048eebe4083dad0c697f6b1
21,399
py
Python
tarefas-poo/lista-02/processa-numeros/test/testa_modulo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/test/testa_modulo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/test/testa_modulo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
import unittest import model.processa_numeros as pn class TestaModulo(unittest.TestCase): def test_soma(self): self.assertIsNone(pn.soma([]), 'soma de [] deveria dar None') self.assertEqual(pn.soma([5]), 5, 'soma de [5] deveria dar 5'...
33.331776
88
0.502687
463385238ea7c50b53e57a14ab787b8aff9293b9
571
py
Python
exercises/de/test_03_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/test_03_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/test_03_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert nlp.meta["name"] == "core_news_sm", "Lädst du die richtige Pipeline?" assert nlp.meta["lang"] == "de", "Lädst du die richtige Pipeline?" assert ( "print(nlp.pipe_names)" in __solution__ ), "Druckst du die Namen der Komponenten?" assert "print(nlp.pipeline)" in __solution__...
40.785714
86
0.660245
4689821d91936f24768d26a4b7bbaca1e84230f3
92
py
Python
2014/07/table-opioid-prescriptions/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/07/table-opioid-prescriptions/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/07/table-opioid-prescriptions/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 = '1XuC1kF2z5z8AtmzntHCQ8gp0guUpaaq9creiiIc_BQo'
23
68
0.847826
46973a3cebd701fce15794197ece6846b1f69e83
61,719
py
Python
mlEngine.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
mlEngine.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
mlEngine.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
################################################################################ # # Copyright (c) 2020 Dawson Dean # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, in...
39.870155
132
0.590969
73547f6e24caac7792416e6fe52cf14251736570
1,825
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/videozupload.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/videozupload.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/videozupload.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" urlresolver Kodi plugin Copyright (C) 2018 gujal This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
36.5
85
0.667397