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
1b4462ddf62bae4c49f342ee2733696d236529b5
305
py
Python
Test.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
Test.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
Test.py
illy777/Python_uebungen
0106ebd8885974c0e22549688e33c49ddbbff179
[ "Unlicense" ]
null
null
null
import math a = 3 b = 4 m = 2/(1/a+1/b) n= 2/((b/(a*b))+(a/(a*b))) n1 = 2/((b+a)/(a*b)) n2 = round((2*a*b)/(b+a), 3) n= round(n, 3) n1 = round(n1, 3) print(n2*b) #´n2*b (2*a*b^2)/(b+a) n3 = round(((2*a*b*b)/b)+((2*a*b*b)/a), 3) print(n3) if (n2 == n1): print("true") else: print("false")
12.2
42
0.44918
940f2be5ced11f4e4c30c186a2385200af137cf0
1,773
py
Python
pegasus-loki-rat-master/server/models.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
pegasus-loki-rat-master/server/models.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
pegasus-loki-rat-master/server/models.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 random import string from datetime import datetime from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Agent(db.Model): __tablename__ = 'agents' id = db.Column(db.String(100), primary_key=True) display_name = db.Column(db.String(100)) last_online = db.Column(db.DateTime()) op...
29.55
84
0.662155
04b8b7d66a8db1bbd34fef2b3c67fc55c19a158f
123
py
Python
m6_006/py_m6_006/test_mit6_006.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
m6_006/py_m6_006/test_mit6_006.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
m6_006/py_m6_006/test_mit6_006.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
#!/bin/python import unittest ''' like - some # - suit - one is 8 ''' # FIXME: "memoi. need if graph not topol sorted"
9.461538
48
0.617886
a215a3095581f4fe50bf4c02a9202fed6f7c4ec5
2,133
py
Python
Source/Python/Recursive Function.py
creosB/RecursiveFunction
0d5f86a822fb17f0d981276ef5697f4011fe63b0
[ "CC0-1.0" ]
null
null
null
Source/Python/Recursive Function.py
creosB/RecursiveFunction
0d5f86a822fb17f0d981276ef5697f4011fe63b0
[ "CC0-1.0" ]
null
null
null
Source/Python/Recursive Function.py
creosB/RecursiveFunction
0d5f86a822fb17f0d981276ef5697f4011fe63b0
[ "CC0-1.0" ]
null
null
null
def Toplama(a, b): return a + b def Cikarma(a, b): return a - b def Bolme(a, b): return a / b def Carpma(a, b): return a*b def Karesi(a, b): return a**b def Faktoriel(a): if(a < 0): print("Sayinin faktoriyeli alınamadı") elif(a == 0 or a == 1): return a else: ...
28.824324
117
0.525082
bfa79fe06e46ac7832ee223aee2e767466093e7c
613
py
Python
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Sorted_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Sorted_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Sorted_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
from operator import itemgetter # 高阶函数: sorted print(sorted([36, 12, 43, -8])) print(sorted([35, 12, 43, -13], key=abs)) print(sorted(['bob', 'about', 'Zoo', 'Credit'])) L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)] print(L[0][0]) def by_name(t): return t[0] def by_score(t): return -t[1] ...
18.029412
66
0.606852
157a42c4850a7c6a9261572bd1b5ea45236acc3e
1,274
py
Python
Webpage/utils/management/commands/fake.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/utils/management/commands/fake.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/utils/management/commands/fake.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand from utils.faker import fakeNews, fakeNutzer from utils.member import newMember from blog.models import blogPost from member.models import profile import random class Command(BaseCommand): help = 'Creates Fake Infos and users for Testing' def add_arguments(...
31.073171
118
0.591052
ec6d57c57da4383d199bfbf0806123423c763083
394
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/sales_by_match.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/sales_by_match.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/data_struct_and_algo-master/sales_by_match.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Complete the sockMerchant function below. def sockMerchant(n, arr): dictonary={} counter=0 for i in arr: if i in dictonary: dictonary[i]+=1 else: dictonary[i]=1 for pred in dictonary.values(): if pred%2!=0: counter+=1 return counter ...
23.176471
43
0.560914
bf2924f757a1e79ebc6e34e9a0629d4a10647320
238
py
Python
Python/008-List-Comprehensions.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
5
2019-03-09T22:44:01.000Z
2021-09-14T00:11:38.000Z
Python/008-List-Comprehensions.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
4
2018-08-16T09:39:47.000Z
2018-09-14T17:37:07.000Z
Python/008-List-Comprehensions.py
jguerra7/HackerRank-4
7e1663d0050ffbb0fd885b8affdada9ea13b0e80
[ "Apache-2.0" ]
1
2020-06-01T23:38:35.000Z
2020-06-01T23:38:35.000Z
if __name__ == '__main__': x = int(raw_input()) y = int(raw_input()) z = int(raw_input()) n = int(raw_input()) print [ [ i, j, k] for i in xrange(x+1) for j in xrange(y+1) for k in xrange(z+1) if ( ( i + j + k) != n )]
39.666667
111
0.529412
bf38551e1a1f4ce6a12b266ae64c6a4ab8b33f1e
6,797
py
Python
Packs/ML/Scripts/HashIncidentsFields/HashIncidentFields_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ML/Scripts/HashIncidentsFields/HashIncidentFields_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ML/Scripts/HashIncidentsFields/HashIncidentFields_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import hashlib from CommonServerPython import * from HashIncidentsFields import hash_incident, pattern_match, is_key_match_fields_to_hash default_args = { 'fieldsToHash': 'labels, activated, created, fake, owner, statuss, status, ,,,,11, activated, CustomFields.emailto', 'contextKeys': 'simpleValue, listValu...
35.401042
121
0.583934
1721bb42f7777051184e72c474e5083661739f35
3,704
py
Python
evolutionary-algo/Networkgraph.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
evolutionary-algo/Networkgraph.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
evolutionary-algo/Networkgraph.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu May 27 21:13:08 2021 @author: Bjarne Gerdes """ import pandas as pd import plotly.io as pio from pyvis.network import Network pio.renderers.default = 'browser' class NetworkPlot: def __init__(self, evolution_iteration): """ This class takes a whole evol...
31.12605
136
0.517279
172b98720ea6cf1195534afa634f92bf63af4c15
4,245
py
Python
spotify_gender_ex/__main__.py
Theta-Dev/Spotify-Gender-Ex
4e5360f115cb3302397b8e1ad1b11ad96b887ad2
[ "MIT" ]
1
2022-02-05T16:40:13.000Z
2022-02-05T16:40:13.000Z
spotify_gender_ex/__main__.py
Theta-Dev/Spotify-Gender-Ex
4e5360f115cb3302397b8e1ad1b11ad96b887ad2
[ "MIT" ]
31
2021-06-17T11:59:33.000Z
2022-03-19T07:05:18.000Z
spotify_gender_ex/__main__.py
Theta-Dev/Spotify-Gender-Ex
4e5360f115cb3302397b8e1ad1b11ad96b887ad2
[ "MIT" ]
null
null
null
# coding=utf-8 import os import click from spotify_gender_ex import __version__, genderex, gh_issue def start_genderex(apk_file='', directory='.', replacement_table='', builtin=False, no_internal=False, ks_password='', key_password='', no_interaction=False, force=False, no_verify=False, gh_token=...
40.817308
136
0.687868
bdbfd6225cb3c02fd3aa11fcb33d9b416a0e1f3d
959
py
Python
oneflow/python/onnx/constants.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/onnx/constants.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/onnx/constants.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
29.96875
72
0.75391
e56ffa29c7f899c704bf3dfe613e1c0bcaff7845
3,715
py
Python
practices/practice_4/task1.1.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_4/task1.1.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_4/task1.1.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
from libs.can import CANSocket from libs.myactuator import MyActuator from time import perf_counter from math import pi import numpy as np # the serial port of device # you may find one by examing /dev/ folder, # this is usually devices ttyACM serial_device = "ttyACM0" # Initiate the can bus socket can_bus = CANSocke...
29.484127
123
0.513324
e5c7b269548668028d8db139711a6f9bcf813c6a
17,490
py
Python
Packs/Cymulate/Integrations/Cymulate/Cymulate.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Cymulate/Integrations/Cymulate/Cymulate.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Cymulate/Integrations/Cymulate/Cymulate.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * ''' IMPORTS ''' import requests import dateparser from datetime import datetime, timedelta import enum # disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ" BASE_URL = 'https://api.cymulate.com/v1/' DEFAULT_LIMIT...
37.939262
120
0.575758
007ee85175c8f456046b6a5c836b16ef44990e8c
603
py
Python
AudioKa.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
1
2020-07-30T15:46:06.000Z
2020-07-30T15:46:06.000Z
AudioKa.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
null
null
null
AudioKa.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
null
null
null
import json class AudioKa(): def __init__(self, _titre, _url): self._titre = _titre self._url = _url def getTitre(self): return self._titre def getUrl(self): return self._url def setTitre(self, _titre:str): self._titre = _titre def setUrl(self, _url:str):...
21.535714
61
0.616915
9727dbec866f5fd76fd0a7d5234eba5745ab0e92
1,421
py
Python
plugins/tff_backend/migrations/_012_ensure_role.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/migrations/_012_ensure_role.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/migrations/_012_ensure_role.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.525
84
0.774806
c128e9c3af7312f220c80c1c9ed6bebd63306784
2,211
py
Python
packages/watchmen-model/src/watchmen_model/console/dashboard.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/console/dashboard.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/console/dashboard.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List, Optional, Union from pydantic import BaseModel from watchmen_model.common import Auditable, DashboardId, DataModel, GraphicRect, LastVisit, ReportId, UserBasedTuple from watchmen_utilities import ArrayHelper from .report import construct_funnels, ReportFunnel from .utils import construct_rect...
29.878378
117
0.769335
c1738ce9027909e73470072f7efd252955687198
162
py
Python
Python/compress_the_string.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/compress_the_string.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/compress_the_string.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
from itertools import groupby if __name__ == '__main__': for key, group in groupby(input()): print('({}, {})'.format(len(list(group)),key), end=" ")
27
63
0.604938
e7586e2366544694bfce641f388c202516370490
18,711
py
Python
benchmark/DAWNBench_Inference/dawnbench_inference.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
benchmark/DAWNBench_Inference/dawnbench_inference.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
benchmark/DAWNBench_Inference/dawnbench_inference.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Copyright 2018 The TensorFlow 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://w...
41.765625
182
0.65368
41b4c18c793dcd5cfdcd54677c41d2853d6a2da7
7,938
py
Python
projects/controllers/experiments.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/controllers/experiments.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/controllers/experiments.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Experiments controller.""" import sys from datetime import datetime from os.path import join from sqlalchemy.exc import InvalidRequestError, ProgrammingError from werkzeug.exceptions import BadRequest, NotFound from ..database import db_session from ..models import Dependency, Experiment, T...
33.213389
91
0.671706
ec01621114ea776d156f1cadc8de1d17dfc5811a
1,170
py
Python
venv/lib/python3.7/site-packages/twilio/rest/numbers/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
venv/lib/python3.7/site-packages/twilio/rest/numbers/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
bot/lib/python3.7/site-packages/twilio/rest/numbers/__init__.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base.domain import Domain from twilio.rest.numbers.v2 import V2 class Numbers(Domain): def __init__(self, twilio): """ Initialize the Numbers Domain :retur...
21.666667
85
0.566667
ec28d1fa867ca2b274af24c466ef8759b1ec16c9
1,957
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__httplib.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__httplib.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__httplib.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_test_test__httplib.py,v 1.3.8.1 2021/10/13 21:04:01 tm Exp $ bpo-39603 (CVE-2020-26116): header injection via HTTP method Taken from: https://gitweb.gentoo.org/fork/cpython.git/commit/?h=gentoo-2.7-vanilla&id=138e2caeb4827ccfd1eaff2cf63afb79dfeeb3c4 Fix CVE-2021-3737: http client infinite line rea...
34.946429
115
0.605519
5cd198b4d384787f2c2f4a9df4c9f7e5561e3a23
2,031
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/42_tk_colour.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/42_tk_colour.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/42_tk_colour.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * from tkinter.colorchooser import askcolor ''' There are applications where the user should have the possibility to select a colour. Tkinter provides a pop-up menu to choose a colour. To this purpose we have to import the tkColorChooser module and have to use the method askColor: ...
40.62
233
0.716396
7a945fede39c2a9d3f467273c5e32de564b4e133
1,226
py
Python
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section3ConditionalsLoopsFunctionsAndABitMore/22ExerciseLoops.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section3ConditionalsLoopsFunctionsAndABitMore/22ExerciseLoops.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section3ConditionalsLoopsFunctionsAndABitMore/22ExerciseLoops.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
# First of two. # Create a program that asks a user for 8 names of people. # Store them in a list. # When all the names have been given, pick a random one and print it. # Second of two. # Create a guess game with the names of colors. # At each round pick a random color and let the user guess it. # After a successful g...
37.151515
159
0.680261
8544a817aed0dc87acd3d1d61e07ce752b2c7755
1,582
py
Python
scriptsForPreprocessing/merge_few_dataset.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
scriptsForPreprocessing/merge_few_dataset.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
scriptsForPreprocessing/merge_few_dataset.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import os, json from shutil import copyfile import random def merge_data_set(data, proportions, data_set_name): array_with_data = [] for i in data: path_to_annotations = os.path.join(i, 'via_region_data.json') json_tmp = json.load(open(path_to_annotations)) for name_record in json_tmp...
40.564103
108
0.646018
85abbbc3ef5da8b75325149644cf4b377e087497
282
py
Python
hausse/plugins/elements/keep.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
hausse/plugins/elements/keep.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
hausse/plugins/elements/keep.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
from typing import List from hausse.lib import Element, Project, SelectorPlugin class Keep(SelectorPlugin): """ Keep only specified elements and drop everything else. """ def __call__(self, project: Project): project.elements[:] = self.selector(project)
21.692308
58
0.705674
f1517f41c27673705a7da73f0b4853e64f54ef9e
532
py
Python
lbry/tests/unit/schema/test_tags.py
Nykseli/lbry-sdk
07afc0aa0a1e6c0ef6aa284fb47513af940440c1
[ "MIT" ]
null
null
null
lbry/tests/unit/schema/test_tags.py
Nykseli/lbry-sdk
07afc0aa0a1e6c0ef6aa284fb47513af940440c1
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/tests/unit/schema/test_tags.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
import unittest from lbry.schema.tags import normalize_tag, clean_tags class TestTagNormalization(unittest.TestCase): def assertNormalizedTag(self, clean, dirty): self.assertEqual(clean, normalize_tag(dirty)) def test_normalize_tag(self): tag = self.assertNormalizedTag tag('', ' \t ...
26.6
72
0.607143
749a012a4131dd50c4beb84a7e1621d8205471ec
3,851
py
Python
interactions/commands/bilder_herunterladen.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
interactions/commands/bilder_herunterladen.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
interactions/commands/bilder_herunterladen.py
AuxiliumCDNG/MET-Bot
7e00d878c92ad4f68b0b2920235019e14c9ea2fa
[ "MIT" ]
null
null
null
import asyncio import os import secrets import shutil import zipfile import discord.errors import requests import validators from globals import zipdir, tokens from interactions.create import headers from statics import config def run(req, client=None, options=None, res_url=None, **kwargs): begin = [option["val...
35.009091
166
0.628408
778583b044a77cb98bfc7ca29da1488f72da662a
498
py
Python
site/public/courses/CS-1.3/Code/stacks-and-queues/queue.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/CS-1.3/Code/stacks-and-queues/queue.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/CS-1.3/Code/stacks-and-queues/queue.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
class Queue: def __init__(self): #CREATE AN EMPTY Queue #put the front at index 0 #back at index n - 1 self.my_queue = [] #ADDS and item to the back of the queue #If the back is at index n - 1 def enqueue(self, item): self.my_queue.append(item) #Remove the item at the front...
23.714286
45
0.63253
7086756003adc711955f0a17146052ff797cc922
124
py
Python
python/file_system/get_info.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/file_system/get_info.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/file_system/get_info.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import os cwd = os.getcwd() for dir_path, dir_names, file_names in os.walk(cwd): for f in file_names: print(f)
17.714286
52
0.66129
d90495a5f7db6d9459b1c7fe7b9f437dd8200686
634
py
Python
var.py
oznotes/Andro-IT
127f6425b3f5766a5c6775b647bdd0f484dd7921
[ "Unlicense" ]
null
null
null
var.py
oznotes/Andro-IT
127f6425b3f5766a5c6775b647bdd0f484dd7921
[ "Unlicense" ]
null
null
null
var.py
oznotes/Andro-IT
127f6425b3f5766a5c6775b647bdd0f484dd7921
[ "Unlicense" ]
null
null
null
ADB_COMMAND_PREFIX = 'adb' ADB_COMMAND_BUGREPORT = 'bugreport' ADB_COMMAND_CHMOD = 'chmod -R 777' ADB_COMMAND_DEVICES = 'devices' ADB_COMMAND_FORWARD = 'forward' ADB_COMMAND_GET_STATE = 'get-state' ADB_COMMAND_GETSERIALNO = 'get-serialno' ADB_COMMAND_INSTALL = 'install' ADB_COMMAND_KILL_SERVER = 'kill-server' ADB_COMMA...
31.7
45
0.802839
d91091f306064046e7d150492923f9ba1c18e8ed
6,330
py
Python
chapter7/facerecognition.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
1
2020-02-16T13:31:42.000Z
2020-02-16T13:31:42.000Z
chapter7/facerecognition.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
null
null
null
chapter7/facerecognition.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/3/20 13:21 # @Author : LunaFire # @Email : gilgemesh2012@gmail.com # @File : facerecognition.py import os import cv2 import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches from sklearn.preprocessing import LabelEncoder from sklearn.neigh...
29.579439
103
0.652607
5c0cbe01476ec2231710c652f9f23320e9fe22a1
2,003
py
Python
pyscriptsforpentesters-main/scripts/keybust3r.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
pyscriptsforpentesters-main/scripts/keybust3r.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
pyscriptsforpentesters-main/scripts/keybust3r.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#! py ######################################## #Copyright of Xtreme Pentesting, 2021 # #https://www.twitter.com/xtremepentest # #https://www.github.com/0xtraw # ######################################## # this will help us read the keystrokes as the user types in stuff from pynput.keyboard im...
39.27451
146
0.591613
c608bc50a7a82921e69a3635b32c3f44e9ad02e5
16,727
py
Python
repo/plugin.video.tagesschau/tagesschau_json_api.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.tagesschau/tagesschau_json_api.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.tagesschau/tagesschau_json_api.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# # Copyright 2012 Henning Saul, Joern Schumacher # # 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. # # This program is...
40.599515
118
0.622885
d692e6374a56e0dc31e0deca7e27003b1a784152
26,150
py
Python
Packs/Traps/Integrations/PaloAltoNetworks_Traps/PaloAltoNetworks_Traps.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Traps/Integrations/PaloAltoNetworks_Traps/PaloAltoNetworks_Traps.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Traps/Integrations/PaloAltoNetworks_Traps/PaloAltoNetworks_Traps.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import copy import urllib3 import jwt from CommonServerPython import * # Disable insecure warnings urllib3.disable_warnings() PARAMS = demisto.params() # Remove trailing slash to prevent wrong URL path to service SERVER = PARAMS['url'][:-1] \ if (PARAMS['url'] and PARAMS['url'].endswith('/')) else PARAMS['url']...
32.204433
120
0.653996
d69f9cf61298c4368298eb6311dcbce477ddf389
5,209
py
Python
m5-101/content/solutions/automated-data-processing.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:15:38.000Z
2021-11-10T12:29:19.000Z
m5-101/content/solutions/automated-data-processing.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
m5-101/content/solutions/automated-data-processing.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:18:10.000Z
2021-04-08T13:44:48.000Z
# encoding=utf-8 # -*- coding: utf-8 -*- ''' Author: Chonghan Chen (paulcccccch@gmail.com) ----- Last Modified: Tuesday, 6th April 2021 11:52:31 am Modified By: Chonghan Chen (paulcccccch@gmail.com) ----- Copyright (c) 2021 IceWould Information Technology Co., Ltd. ''' import csv # 用来处理 csv 文件 #######################...
22.452586
113
0.486658
0348d87531ac10ad46df300430a595f808788c16
2,846
py
Python
library/tests/test_ptProcess.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
library/tests/test_ptProcess.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
library/tests/test_ptProcess.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
from library.TestApp import BaseTestCase from library.core.ptprocess import PtProcess from PySide.QtCore import QProcess import re,subprocess from library.core.ptprocess import PtProcess import os class TestPtProcess(BaseTestCase): def setUp(self): self.proc = PtProcess() super(TestPtProcess, self)....
34.707317
108
0.634575
0372fbd35bde7029921334fa345983a9258cdeea
6,471
py
Python
jurig.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
jurig.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
jurig.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 marshal,zlib,base64 exec(zlib.decompress(base64.b64decode("eJztPNtu5EZ2z9FXlGgs2D1qse/SSLFmMJY0Y63HM4Il2wk0QoNNVnfTzdvyMurGzABGgASLAHsZrMfOGjtAEAQL7EOCPAYB8hP5BL3kMb+QU1UssppdZLNljb3GmhhomsU6p07VudQ5pw753mYzDoPm0HKb2H2O/Hk08dzuxnto+842MjzTcsf7KI5G23dJy8Z7hwHWI2yiTn+71dvutDrtjfc+nqORbuCh501RbRJFfrjfbF5dXWm8VTM8p/...
2,157
6,443
0.967857
cefa5dab2c9b6091207b5448d8caa6ad6c5df9c5
5,125
py
Python
6th_sem/souptik_codes/matlabprograms/Actor_01/mfcc_getter_all.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
6th_sem/souptik_codes/matlabprograms/Actor_01/mfcc_getter_all.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
6th_sem/souptik_codes/matlabprograms/Actor_01/mfcc_getter_all.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Dec 23 18:01:34 2018 @author: souptik """ import numpy as np from numpy import array from numpy import zeros,newaxis import python_speech_features as psf import matplotlib.pyplot as plt from scipy.io import wavfile as wav #import soundfile as sf import...
33.940397
105
0.702439
3024690c7deb788162c3ea7bec1557094882ea00
425
py
Python
zencad/examples/1.GeomPrim/2.prim2d/ngon.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/2.prim2d/ngon.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/2.prim2d/ngon.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ZenCad API example: ngon last update: 04.10.2019 """ from zencad import * m0 = ngon(r=10, n=3) m1 = ngon(r=10, n=5) m2 = ngon(r=10, n=8) m3 = ngon(r=10, n=256) disp(m0) disp(m1.right(30)) disp(m2.right(60)) disp(m3.right(90)) NMin = 3 NMax = 12 for i in range(NMin, NMax + 1): k = (i-...
15.740741
74
0.590588
064579a97bca7bd7a0dcb2cf97bb827dd2fbb949
224
py
Python
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.1-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.1-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.1-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Sorted Merge # You are given two sorted arrays, A & B, where A has a large enough buffer # at the end to hold B. # Write a method to merge B into A in sorted order. # time complexity: O() # space complexity: O()
22.4
76
0.669643
cc76472a903662510f4c9e986f2bdba32be80482
1,357
py
Python
src/SHD/utils/terminal_utilities.py
mheob/SHD.GraphicsMagick
fbf84f1feb7e5ca76a3e99238653d8f15c6b504a
[ "MIT" ]
1
2021-01-30T15:50:13.000Z
2021-01-30T15:50:13.000Z
src/SHD/utils/terminal_utilities.py
mheob/SHD.GraphicsMagick
fbf84f1feb7e5ca76a3e99238653d8f15c6b504a
[ "MIT" ]
null
null
null
src/SHD/utils/terminal_utilities.py
mheob/SHD.GraphicsMagick
fbf84f1feb7e5ca76a3e99238653d8f15c6b504a
[ "MIT" ]
null
null
null
class TerminalUtilities: @staticmethod def query_yes_no(question, default=True): valid = {"yes": True, "y": True, "ye": True, "ja": True, "j": True, "no": False, "n": False, "nein": False, "nee": False} if default is None: prompt = " [j/n] " elif default is ...
32.309524
115
0.529108
9df2624871a28951b598446fd2bc04195620c8ff
1,185
py
Python
nodes/ue05_action_server/publish_point_2_file.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
nodes/ue05_action_server/publish_point_2_file.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
nodes/ue05_action_server/publish_point_2_file.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python3 # publish_point_2_file.py # ################################################################################ # edited WHS, OJ , 3.12.2020 # # usage # $1 roslaunch rtc turtlebot3_action_server_client_path_gazebo_house.launch # $2 rosrun rtc publish_point_2_file # click at point at RViz-Map ...
30.384615
85
0.568776
d18e77ece6c67282597f4bf2946510c35c7af914
581
py
Python
src/getAnswerDistribution.py
stasj145/Bachelorarbeit-Texterzeugungsmodelle
a62519d7b1f7288927811a0bac76c4db4f0c1129
[ "Apache-2.0" ]
null
null
null
src/getAnswerDistribution.py
stasj145/Bachelorarbeit-Texterzeugungsmodelle
a62519d7b1f7288927811a0bac76c4db4f0c1129
[ "Apache-2.0" ]
null
null
null
src/getAnswerDistribution.py
stasj145/Bachelorarbeit-Texterzeugungsmodelle
a62519d7b1f7288927811a0bac76c4db4f0c1129
[ "Apache-2.0" ]
null
null
null
fileName="../output/math7_4000steps_774M.txt" prevLine="[SOLVEFOR]: x\n" f=open(fileName) lines = f.readlines() f.close nOfLinesFound=0 lineFound=False distList={} index=0 while(index < len(lines)): line=lines[index] if line == prevLine: nOfLinesFound+=1 lineFound=True index+=1 ...
17.088235
45
0.611015
d1bf71fb18416f60d3c0c7370ebffd4f5822ea44
111
py
Python
Online-Judges/CodingBat/Python/List-01/02-same_first_last.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/List-01/02-same_first_last.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/List-01/02-same_first_last.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def same_first_last(nums): if len(nums) >= 1 and nums[0] == nums[-1]: return True return False
22.2
46
0.594595
ee8fc6c3114c729d482e907385df3dfc44f76e66
113
py
Python
config.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
config.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
config.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
# Dictionaries default_name = "trash" data_dir = "DATA" model_dir = "output" default_config = "hypes/medseg.json"
22.6
36
0.752212
014a74abe36dda39eb8b64319d8d3c919f8a0e19
288
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_6/point_sms_doctype_module_to_frappe_core.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/v8_6/point_sms_doctype_module_to_frappe_core.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_6/point_sms_doctype_module_to_frappe_core.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.db.sql('''UPDATE `tabDocType` SET module="Core" WHERE name IN ("SMS Parameter", "SMS Settings");''')
32
57
0.736111
0160a158ce8add97f0bc5ce88b1e10c4bbe14fb7
295
py
Python
1812-determine-color-of-a-chessboard-square/1812-determine-color-of-a-chessboard-square.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1812-determine-color-of-a-chessboard-square/1812-determine-color-of-a-chessboard-square.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1812-determine-color-of-a-chessboard-square/1812-determine-color-of-a-chessboard-square.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def squareIsWhite(self, coordinates: str) -> bool: chess = {'a':1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h':8} output = chess[coordinates[0]]+int(coordinates[1]) if output%2==1: return True else: return False
36.875
78
0.491525
61e89d3dec85a360e8b146baa413224b04522cdc
972
py
Python
chapter_six/timing_script.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
21
2021-09-10T12:46:26.000Z
2022-03-23T02:50:39.000Z
chapter_six/timing_script.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
null
null
null
chapter_six/timing_script.py
PacktPublishing/Speed-up-your-Python-with-Rust
1fce5fb59ea966015768e7eca51c0e31d69531ec
[ "MIT" ]
6
2021-09-02T08:32:37.000Z
2022-03-17T21:15:25.000Z
from flitton_fib_rs.flitton_fib_rs import FibProcessor import time class PythonFibProcessor: def __init__(self, number, numbers): self.number = number self.numbers = numbers self.numbers_results = None self.number_results = None self._process() def _process(self): self.numbers_results = [self.calculat...
23.707317
79
0.704733
28bfbc41227d662015f5bf2823c9830360ba42f2
835
py
Python
sakf/conf/globalConfig.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/conf/globalConfig.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/conf/globalConfig.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # global conf import os __baseDir__ = os.path.dirname(os.path.dirname(__file__)) config = { 'bash_dir': __baseDir__, 'log_file': './logs/sakf.log', 'encrypt': { 'certfile': os.path.join(__baseDir__, 'data', 'encrypt', 'server.crt'), 'keyfile': os.path.join(__baseDir__, 'data', 'e...
24.558824
75
0.560479
28fe1e425c71ff9cc27285bfd99234bcf6b19e79
352
py
Python
python/f-strings/example-f-strings.py
eucalypto/potato
9df3eada95956daf344eb49900d2ed79dc418817
[ "Unlicense" ]
null
null
null
python/f-strings/example-f-strings.py
eucalypto/potato
9df3eada95956daf344eb49900d2ed79dc418817
[ "Unlicense" ]
null
null
null
python/f-strings/example-f-strings.py
eucalypto/potato
9df3eada95956daf344eb49900d2ed79dc418817
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import sys args = sys.argv[1:] # sys.argv[0] gives usually the name of the python script print(f"there are {len(sys.argv)} arguments given") print(f"arguments given: {str(sys.argv)}") name = "Gandalf the Grey" breakfast = "Bacon and eggs" amount = 3 order = f"{name} wants {amount} {breakfas...
20.705882
78
0.698864
6ec7962f78dd44938f42ba376348b27660e50b52
4,634
py
Python
src/train_unet.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
10
2018-01-11T01:15:15.000Z
2020-06-22T15:03:31.000Z
src/train_unet.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
src/train_unet.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
import argparse import os import numpy as np import keras.backend as K from keras.optimizers import Adam from keras.utils import generic_utils from keras.callbacks import ModelCheckpoint import nets def load_img_and_dct_data(dataset_path): files = os.listdir(dataset_path) X = np.zeros((len(files), 224, 224...
36.488189
208
0.643936
42cb1ec64150c32fb179e3b952b11c1b3668045a
240
py
Python
src/onegov/wtfs/collections/notifications.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/collections/notifications.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/collections/notifications.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.chat import MessageCollection class NotificationCollection(MessageCollection): def __init__(self, session, **kwargs): kwargs.pop('type', None) super().__init__(session, type='wtfs_notification', **kwargs)
26.666667
69
0.720833
6e508e4a5e3c8206616747cbf6a13c8889c38d65
1,050
py
Python
Advanced/MetaClass/meta_class_pyt_1.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Advanced/MetaClass/meta_class_pyt_1.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Advanced/MetaClass/meta_class_pyt_1.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
#################################### # Author: "BALAVIGNESH" # # Maintainer: "BALAVIGNESH" # # License: "CC0 1.0 Universal" # # Date: "25/04/2021" # #################################### ''' Meta Class is used for defining class rules Example: - Giving the class rul...
20.192308
69
0.51619
2515c858bd14e964782dd9cff4584ce5640f302e
7,112
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/assigners/max_iou_assigner_ava.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/assigners/max_iou_assigner_ava.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/assigners/max_iou_assigner_ava.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-07T10:51:21.000Z
2022-03-07T10:51:21.000Z
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
47.731544
101
0.61122
665c73698054e605c3b309c412a0c7a7efd577c6
161
py
Python
src/nfz_module/model/WarningLevel.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/model/WarningLevel.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/model/WarningLevel.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
from enum import Enum __author__ = 'Hans-Werner Roitzsch' class WarningLevel(Enum): NO_WARNING = 0 HAZARD_SPOT_WARNING = 1 DANGEROUS_SITUATION_WARNING = 2
16.1
35
0.782609
666fc26bb5b1fbb6318297a8edbfa4b61246569b
458
py
Python
BITs/2014/Baybulatova_Karina_V/task3_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_Karina_V/task3_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_Karina_V/task3_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Имя и псевдоним задача3,вариант3 #Программа, которая выводит имя "Чарльз Лютвидж Доджсон", и запрашивает его псевдоним. #Байбулатова К.В. #29.02.2016 print("Герой нашей сегодняшней программы-Чарльз Лютвидж Доджсон") psevdonim=input("Под каким же именем мы знаем этого человека? Ваш ответ:") if(psevdonim)==("Льюис...
32.714286
87
0.742358
6697dbede5038b8dcdd8b2c38139bb5fd4102426
394
py
Python
basics/deque.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/deque.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/deque.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
from collections import deque d = deque() n = int(input()) for i in range(0,n): userinput = input().split() if userinput[0] == "append": d.append(int(userinput[1])) elif userinput[0] == "appendleft": d.appendleft(int(userinput[1])) elif userinput[0] == "pop": d.pop() elif userinput[0] == "poplef...
21.888889
36
0.596447
b0f4c824a47b7be65383a8b93e1539576defb682
462
py
Python
source.py
CedricFauth/TimeToAbi
62bca5e186c3d5af104fcd07b5ad2327de31f525
[ "Unlicense" ]
null
null
null
source.py
CedricFauth/TimeToAbi
62bca5e186c3d5af104fcd07b5ad2327de31f525
[ "Unlicense" ]
null
null
null
source.py
CedricFauth/TimeToAbi
62bca5e186c3d5af104fcd07b5ad2327de31f525
[ "Unlicense" ]
null
null
null
import datetime currentdate = datetime.date.today() print("Datum: " + currentdate.strftime("%d.%m.%Y")) f = open("klausuren.txt", "r") data = f.readlines() print("") for i in range(0, 7, 2): print(data[i].rstrip() + ":") try: daysleft = datetime.date(2018, int(data[i+1][3:5]), int(data[i+...
25.666667
81
0.564935
9fdba609cdc8468ce0bd7051a0666273117a1ce3
928
py
Python
src/helper/log_helper.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/helper/log_helper.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/helper/log_helper.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
"""[Log Helper] Helper class to instantinate loggers """ import logging def get(fileHandler=False, logger_name="undefined"): """[Creates Logger] Keyword Arguments: fileHandler {[boolean]} -- Creates filehandler (default: {FALSE}) logger_name {str} -- Name of logger (default: {"undefined"}) ...
25.081081
89
0.65625
05da969b155429bc6c18b7e3a8c647974f80ee54
471
py
Python
python/data_sutram/pypath/PyPath/json_sqlite/9_find_nearest_stop.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/pypath/PyPath/json_sqlite/9_find_nearest_stop.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/pypath/PyPath/json_sqlite/9_find_nearest_stop.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" This can be found out using the coordinates plotting in a map, by appling k-nearest or etc ML algorithms which are perhaps present in folium. Don't know whether this is necessary. INPUT : loc[lat,lon] and dist OUTPUT : { "isJunction": "N", "isValid": "Y", "locationType": "...
22.428571
104
0.571125
3c7633a61acf7dc3980952c3eb99f58fec699b3c
1,124
py
Python
Chapter7_CNN/Chapter7_1_CNN_Layers/cnnPoolingSolution.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter7_CNN/Chapter7_1_CNN_Layers/cnnPoolingSolution.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter7_CNN/Chapter7_1_CNN_Layers/cnnPoolingSolution.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from tensorflow.keras.datasets import mnist def get_kernel_values(i: int, j: int, image: np.ndarray) -> np.ndarray: kernel_values = image[i: i + 2, j: j + 2] return kernel_values def max_pooling(image: np.ndarray) -> np.ndarray: # Setup outpu...
27.414634
72
0.623665
594425013b1c44591a2124395d3b8a6440213027
99
py
Python
pages/extensions/amp_example_preview/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
300
2015-12-09T20:35:37.000Z
2019-07-16T06:41:29.000Z
pages/extensions/amp_example_preview/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
2,099
2019-07-16T13:24:27.000Z
2022-03-26T12:31:51.000Z
pages/extensions/amp_example_preview/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
543
2019-07-18T09:06:14.000Z
2022-03-31T02:43:10.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .amp_example_preview import *
24.75
39
0.757576
3cb59697ab3bc43461f310aaecc138c5674e331b
358
py
Python
2_Iterables/Tuples/tuple_packing.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
2_Iterables/Tuples/tuple_packing.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
2_Iterables/Tuples/tuple_packing.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
def squaring_list(input_list): squared_list = [x**2 for x in input_list] return input_list, squared_list list1 = [x for x in range(10)] tuple1 = squaring_list(list1) # tuple print(tuple1) # tuple unpacking list2, squred_list = squaring_list(list1) print(list2) print(squred_list) # tuple packing x = 2 y = ...
15.565217
45
0.698324
3cd890ad2c65776f6a89da9961ba4befb42ad6e7
1,149
py
Python
2018/finals/re-drm/validator/hash_hasher.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/re-drm/validator/hash_hasher.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/re-drm/validator/hash_hasher.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # Copyright 2018 Google LLC # # 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 ag...
31.054054
80
0.710183
596e6367bc0a47381dad98b52c488d38b1bd4125
3,083
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/09_docx_word_cloud_aus_docx_dateien/09_docx_word_cloud_aus_docx_dateien.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/09_docx_word_cloud_aus_docx_dateien/09_docx_word_cloud_aus_docx_dateien.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/09_docx_word_cloud_aus_docx_dateien/09_docx_word_cloud_aus_docx_dateien.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 09_docx_word_cloud_aus_docx_dateien.py # In dieser Übung geht es darum den Kompletten Text aus einem Word-Dokument zu erfassen und # die darin vorkommenden Wörter zu zählen und anschliessend als Word-Cloud auszugeben bei # welcher die Schriftgrösse des Wortes dessen vorkommen repräsentiert. # Prüfen ob Nomen oder nic...
38.061728
150
0.693156
59941cf0ac8521e04b9a24f5993f441b4727661b
528
py
Python
exercises/pt/test_03_09_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_03_09_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_03_09_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert Token.has_extension( "reversed" ), "Você registrou a extensão no token?" ext = Token.get_extension("reversed") assert ext[2] is not None, "Você definiu o getter corretamente?" assert ( "getter=get_reversed" in __solution__ ), "Você atribuiu a função get_reverse...
40.615385
94
0.704545
59e4bd00616f1ba98c5f1e8a39bdf0c458096975
5,189
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/schemaCheck.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/schemaCheck.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/schemaCheck.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
38.154412
104
0.588745
abd6dad4a49991aa576269dc757c2a6d6127d196
279
py
Python
Python/find_angle_MBC.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/find_angle_MBC.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/find_angle_MBC.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
import math if __name__ == '__main__': AB = float(input()) BC = float(input()) if (AB > 0 and AB <= 100) and (BC > 0 and BC <= 100): MBC = math.degrees(math.atan2(AB,BC)) degree_sign = u"\N{DEGREE SIGN}" print(str(round(MBC)) + degree_sign)
27.9
58
0.55914
ddfe6087c61a65cdf04fb2ea5b8f52072d230265
2,426
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOsba.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/mActionGTOsba.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/mActionGTOsba.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 PyQt5.QtGui import * import qgis def run(id, gtotool, config, debug): try: #tool data layers = config['layers'] info = gtotool.info except Exception as e: gtotool.info.err(e) try: for lyr in layers: layer = ...
44.109091
105
0.482688
34b6b8ea31b51d4a219d29384c68f580b31ded57
821
py
Python
quizpptx/win32.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
quizpptx/win32.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
quizpptx/win32.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
import os import sys def LoadSystemModule(lib_dir, modname): # See if this is a debug build. import importlib.util import importlib.machinery suffix = '_d' if '_d.pyd' in importlib.machinery.EXTENSION_SUFFIXES else '' filename = "%s%d%d%s.dll" % \ (modname, sys.version_info[0], sys....
35.695652
87
0.719854
55160ce8853bedf79f7e675814e9bc8e639f3e80
34,266
py
Python
assets/development/digest/genCVSlog.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
5
2019-10-14T23:00:48.000Z
2021-11-06T22:21:06.000Z
assets/development/digest/genCVSlog.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
31
2020-11-14T09:27:16.000Z
2022-03-08T17:09:15.000Z
assets/development/digest/genCVSlog.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
15
2020-11-10T17:04:25.000Z
2022-01-31T12:12:48.000Z
import email.Parser import time import re import sys import getopt youngest = 0 oldest = 0 merged_branches=[] integrated_branches=[] projects = {} integrationMatch = re.compile ( r"200[0-9]/[0-9]+/[0-9]+ [0-9]+:[0-9]+:[0-9]+" ) version = re.compile ( r"[0-9]+\.[0-9]+[.0-9]*") cws_branch = re.compile ( r"CWS ([a-zA-Z0-...
33.397661
116
0.609934
9b66dd4a21ea8b90f9cd32d63dc7b8f9e6dc8f37
1,216
py
Python
ContPlaylistKa.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
1
2020-07-30T15:46:06.000Z
2020-07-30T15:46:06.000Z
ContPlaylistKa.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
null
null
null
ContPlaylistKa.py
K-A-R-I-M/SonKa
3ff5b95afa2f3c968cdaf670f27e6abc813907e4
[ "MIT" ]
null
null
null
from PlaylistKa import PlaylistKa class ContPlaylistKa(): def __init__(self): self._liste_PlayListKa = [] def ajout(self, playlistka:PlaylistKa): self._liste_PlayListKa.append(playlistka) print("ajout réussi") def suppression(self, titre="", nb=-1): titre_playlist = [] ...
29.658537
104
0.616776
9badfd3e97e241cc03dbd42f2af7706bafe72270
639
py
Python
birthday-bar.py
kautuk-desai/HackerRank
6c0b22800ea2e40d118d6a0a5c0ece067a0a69bf
[ "MIT" ]
null
null
null
birthday-bar.py
kautuk-desai/HackerRank
6c0b22800ea2e40d118d6a0a5c0ece067a0a69bf
[ "MIT" ]
null
null
null
birthday-bar.py
kautuk-desai/HackerRank
6c0b22800ea2e40d118d6a0a5c0ece067a0a69bf
[ "MIT" ]
null
null
null
#!/bin/python3 def solve(n, s, d, m): # Complete this function num_squares = len(s) sum_count = 0 if(num_squares == m): if(sum(s) == d): return 1 else: return sum_count idx = 0 int_sum = 0 while(idx <= num_squares - m): sub_arr = s[idx: ...
19.96875
46
0.485133
32fba74aea398f9aa6530c2928b41dac7cf4a8a4
347
py
Python
Packs/IsArrayItemInList/Scripts/IsArrayItemInList/IsArrayItemInList.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/IsArrayItemInList/Scripts/IsArrayItemInList/IsArrayItemInList.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/IsArrayItemInList/Scripts/IsArrayItemInList/IsArrayItemInList.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 array = demisto.args().get('inputArray') list_name = demisto.args().get('listName') res = demisto.executeCommand("getList", {"listName": list_name})[0] for item in array: if str(item) in res['Contents']: demisto.re...
26.692308
67
0.682997
bd2bdf026c9ea47a0405a806daafe25e8f8b26e1
3,682
py
Python
backend_api/book/6_database/source_codes/app_with_db.py
mrtonnet/topics_in
94a174bd32ab89aaba0f58380b97dd90cfda8233
[ "MIT" ]
null
null
null
backend_api/book/6_database/source_codes/app_with_db.py
mrtonnet/topics_in
94a174bd32ab89aaba0f58380b97dd90cfda8233
[ "MIT" ]
null
null
null
backend_api/book/6_database/source_codes/app_with_db.py
mrtonnet/topics_in
94a174bd32ab89aaba0f58380b97dd90cfda8233
[ "MIT" ]
1
2020-06-06T08:48:25.000Z
2020-06-06T08:48:25.000Z
# app_with_db.py # This Python script is to run a Flask server for miniter with MySQL Database. # # * Draft: 2020-09-24 (Thu) # # This code is from: # '깔끔한 파이썬 탄탄한 백엔드', '6장 데이터베이스', 송은우 지음, pp.167-171 # https://github.com/rampart81/python-backend-book/blob/master/chapter6/app.py from flask import Flask, r...
22.728395
84
0.625747
950298af3896db19650d97cb86ef1d123a2a4a9f
2,230
py
Python
bruteforce_tsp.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
1
2018-04-18T19:55:42.000Z
2018-04-18T19:55:42.000Z
bruteforce_tsp.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
null
null
null
bruteforce_tsp.py
B0mM3L6000/CI
3b55ef8e6017a596e7b22e20a16ca7659bc73204
[ "MIT" ]
null
null
null
import numpy as np from numpy import * from random import * import itertools import time from itertools import permutations # load the distnace matrix from file def loadDistances(): distancesFile = open("citiesAndDistances.txt") cities = distancesFile.readline().split() del cities[16:] numCities = le...
27.530864
104
0.674439
1f79eb8748867edf7c975587243d2363e0c784a5
7,998
py
Python
DataCollections/PubMed/PubMedHandler.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
7
2020-03-06T05:53:43.000Z
2022-01-30T17:31:18.000Z
DataCollections/PubMed/PubMedHandler.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
DataCollections/PubMed/PubMedHandler.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
from requests import get from requests.exceptions import RequestException from contextlib import closing import xml.etree.ElementTree as xme import time import re import pandas as pd import calendar def getrequest(url): try: with closing(get(url,stream=True)) as resp: if (is_good_response(resp)...
49.37037
146
0.577394
c0b79b12463f37fcfe6c0b97e50f92eb8844729a
382
py
Python
tests/test_plugin.py
noirbizarre/pelican-myst
c2c7b44803ebc33e70d915c35b692df14597469b
[ "MIT" ]
null
null
null
tests/test_plugin.py
noirbizarre/pelican-myst
c2c7b44803ebc33e70d915c35b692df14597469b
[ "MIT" ]
21
2021-12-21T16:47:35.000Z
2022-03-29T04:34:59.000Z
tests/test_plugin.py
noirbizarre/pelican-myst
c2c7b44803ebc33e70d915c35b692df14597469b
[ "MIT" ]
null
null
null
from pelican import Pelican from pelican.plugins import myst from .helpers import get_settings def test_myst_plugin_not_enabled(): settings = get_settings(PLUGINS=[]) p = Pelican(settings) assert myst not in p.plugins def test_myst_plugin_pelican_registeration(): settings = get_settings(PLUGINS=["m...
22.470588
45
0.748691
f1b29b0e6fecf1633f8eaf811f62e86d0924a53e
2,709
py
Python
src/onegov/core/converters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/converters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/converters.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains custom converters used by onegov.town. """ import isodate import morepath from datetime import date, datetime from onegov.core.framework import Framework from onegov.core.utils import is_uuid from onegov.core.custom import custom_json as json from time import mktime, strptime from uuid import UUID def ...
19.773723
66
0.688077
c8f49ed9e1908af3615ddef65e1a097cf885b988
574
py
Python
Imaginary/2021/misc/Just_in_Time_1/lookatthetime.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/misc/Just_in_Time_1/lookatthetime.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/misc/Just_in_Time_1/lookatthetime.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import time import random def main(): time.sleep(random.random()) random.seed(round(time.time(), 2)) print("If you guess my numbers, I'll give you the flag.") print("I'll give you a hint: %d"%random.randint(0, 1000000000)) for i in range(3): try: rnum = random.randint(0, 1000000000) ...
23.916667
64
0.644599
c8f75a8f9906fa24b5bf9657f1930c3324d6bdf8
1,185
py
Python
Fonction.py
Jlaqueyrie/Bornes-d-faut
131675e63eb5e44b1332a72a288054a818d7a097
[ "MIT" ]
null
null
null
Fonction.py
Jlaqueyrie/Bornes-d-faut
131675e63eb5e44b1332a72a288054a818d7a097
[ "MIT" ]
null
null
null
Fonction.py
Jlaqueyrie/Bornes-d-faut
131675e63eb5e44b1332a72a288054a818d7a097
[ "MIT" ]
null
null
null
import datetime from openpyxl import load_workbook from os import path def GetDate(): """ récupère la date d'aujourdi'hui """ Date = '' Temps = '' Temps = datetime.datetime.now().time() Date = datetime.datetime.now().date() return Date, Temps def sauvDonnee(Chemin, ...
18.809524
47
0.532489
a99a86a99360591b99887658b9ee0a67f38e346e
24,758
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import unittest import frappe, erpnext import frappe.model from frappe.utils import cint, flt, today, nowdate, add_days import frappe.defaults from erp...
34.578212
131
0.73556
a5d8b12762f03bcac967f69b60a3bc430affff38
1,099
py
Python
src/autograph/migrations/0002_geofence.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/migrations/0002_geofence.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/migrations/0002_geofence.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-25 21:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('autograph', '0001_initial'), ] operations = [ migrations.CreateModel( name='Geofence', ...
37.896552
169
0.608735
570410887d94f736cf3edbd140660aea54b7f801
1,557
py
Python
packages/watchmen-meta/src/watchmen_meta/system/key_store_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/system/key_store_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/system/key_store_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Optional from watchmen_meta.common import StorageService from watchmen_model.common import TenantId from watchmen_model.system import KeyStore from watchmen_storage import ColumnNameLiteral, EntityCriteriaExpression, EntityFinder, EntityRow, EntityShaper class KeyStoreShaper(EntityShaper): def se...
29.942308
111
0.774566
191b0db4a8dfb824b1136221d7902ccc8867c884
1,252
py
Python
imgtl/i18n.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
imgtl/i18n.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
imgtl/i18n.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- i18n_dict = { 'ko': { 'youmustlogin': '로그인을 해야 합니다', 'invalidemail': '잘못된 이메일 주소입니다.', 'invalidusername': '잘못된 사용자명입니다. 사용자명은 최소 4글자여야 합니다.', 'invalidpassword': '잘못된 비밀번호입니다. 비밀번호는 최소 8글자여야 합니다.', 'passwordmismatch': '두 비밀번호가 일치하...
36.823529
87
0.584665
1979f3edbe4c2c47dff0923348bb077ca8745b94
1,922
py
Python
src/bo4e/com/preisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/preisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/preisstaffel.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Preisstaffel and corresponding marshmallow schema for de-/serialization """ from decimal import Decimal from typing import Optional import attr from marshmallow import fields from bo4e.com.com import COM, COMSchema from bo4e.com.sigmoidparameter import Sigmoidparameter, SigmoidparameterSchema # pylint...
35.592593
179
0.765869
1991af422c1b671aae5ebadf8a6565c5dffa8124
1,780
py
Python
research/nlp/hypertext/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/hypertext/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/hypertext/postprocess.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...
41.395349
93
0.666854
277bea0471831abe33d63fd02fcc8c73bfe715af
5,650
py
Python
src/test/tests/databases/unv.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/unv.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/unv.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Tests: smoke check of unv file reader. # # Programmer: Olivier Cessenat # Date: Thu Oct 11 08:42:44 PDT 2012 # ---------------------------------------------------------------------------- datapath = data_path...
33.040936
130
0.766018
fde1dcbef63f66eeb9edf607370057083f5b0d1a
278
py
Python
Findusername-main/Test/Test.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Findusername-main/Test/Test.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Findusername-main/Test/Test.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 unittest class Test(unittest.TestCase): def instagram(self): self.assertTrue(True) def facebook(self): self.assertTrue(True) def pinrest(self): self.assertTrue(True) if __name__=="__main__": unittest.main()
18.533333
30
0.604317
e305dfc102d89af8be94eb23856c78554e904be3
973
py
Python
machine_vision/capture_face_pics.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
machine_vision/capture_face_pics.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
machine_vision/capture_face_pics.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
import cv2 from PIL import Image from pathlib import Path save_folder = Path(__file__).parent / "face_pics" save_folder.mkdir(exist_ok=True) cap = cv2.VideoCapture(0) n_img = 3 for idx in range(n_img+1): success, image = cap.read() if not success: print("Ignoring empty camera frame.") # If lo...
25.605263
78
0.662898
477f2ab23dec6abd81d28ead56c02ac301301bd5
3,127
py
Python
spletni-vmesnik.py
majbc1999/Projekt
f6d2f0d1453d0a2c5ed2cd15dde224a2a690fd94
[ "MIT" ]
1
2019-11-14T07:43:11.000Z
2019-11-14T07:43:11.000Z
spletni-vmesnik.py
majbc1999/Projekt
f6d2f0d1453d0a2c5ed2cd15dde224a2a690fd94
[ "MIT" ]
null
null
null
spletni-vmesnik.py
majbc1999/Projekt
f6d2f0d1453d0a2c5ed2cd15dde224a2a690fd94
[ "MIT" ]
null
null
null
# Najprej uvozimo bottle in model. import bottle from model import Knjiznica, Knjiga, povprecje, ustvari_novo_knjiznico, ustvari_slovar_naziva, ustvari_ime_za_v_slovar_naziva nasa_knjiznica = ustvari_novo_knjiznico() slovar_naziva = ustvari_slovar_naziva(nasa_knjiznica) # Tukaj bo naš program dejansko tekel. @bottl...
34.362637
136
0.740646
d07b912877c802ad7f061108c7ca90e57c5b1a8b
2,135
py
Python
src/nfz_module/examples/python_postRequest.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/examples/python_postRequest.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/examples/python_postRequest.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
# Name: python_postRequest.py # Haupt-Funktion: sendet die aktuelle Position mit dem Zeitstempel an den Server __author__ = "BKonstantin" __date__ = "$14.12.2015 13:29:04$" #if __name__ == "__main__": # print ("start postRequest...") # Imports: # Die Bibliothek "requests" muss vorher installiert werden. import re...
37.45614
101
0.764403
ef176a14787146c2aae9392cb5db0662c3233a45
1,104
py
Python
plugins/tff_backend/consts/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/consts/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/consts/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
25.674419
74
0.725543
328cd322b02331811cf32cb077b305460ccb9c1d
2,091
py
Python
scr_fr/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
11
2018-01-16T06:39:00.000Z
2021-11-28T11:46:41.000Z
scr_fr/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
null
null
null
scr_fr/deal_files.py
Times125/Emotion-Analyse
b5d9f23fdf6c75f57f5cf20d58834a095b0c7e1e
[ "Apache-2.0" ]
2
2019-08-16T14:53:37.000Z
2019-08-17T02:01:22.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @Author:lch02 @Time: 2017/12/25 14:46 @Description: 处理xlxsw中的文本,将其中的数据(160w条)导出 """ import os import re import pickle from nltk import regexp_tokenize from nltk.corpus import stopwords from config import test_path from openpyxl import load_workbook from multiprocess...
27.88
118
0.539455
32be1f4f04fc0796ffc93c10af1dedc95926f2d1
905
py
Python
py-basics/src/lectures/basics/fizz-buzz.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/basics/fizz-buzz.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/basics/fizz-buzz.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
""" 7kyu | Fizz Buzz https://www.codewars.com/kata/5300901726d12b80e8000498/python Theor. Grundlagen für FizzBuzz If..Else https://www.w3schools.com/python/python_conditions.asp Loops: https://www.w3schools.com/python/python_for_loops.asp Lists: https://www.w3schools.com/python/python_lists.asp """ def fizzbuzz(...
19.673913
63
0.571271
086219e6f0633d8cda9b78459316d58566bd9384
16,969
py
Python
tests/onegov/gazette/test_views_issues.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_issues.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_issues.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import datetime from freezegun import freeze_time from io import BytesIO from onegov.pdf.utils import extract_pdf_info from openpyxl import load_workbook from pyquery import PyQuery as pq from tests.onegov.gazette.common import login_editor_1 from tests.onegov.gazette.common import login_publisher from we...
42.635678
77
0.58106
f5ef242895f929543456b527eac007f5275a7941
533
py
Python
wk-sentiment/app/main/api/sentiment/serializers.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
4
2020-10-08T15:05:02.000Z
2021-08-03T01:00:08.000Z
wk-sentiment/app/main/api/sentiment/serializers.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
null
null
null
wk-sentiment/app/main/api/sentiment/serializers.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
1
2020-10-08T15:05:04.000Z
2020-10-08T15:05:04.000Z
from flask_restplus import fields from main.api.restplus import api # the sentiment request model (used for request validation) sentiment_request = api.model('Sentiment Request', { 'sentence': fields.String(required=True, description='The sentence to analyze') }) # the sentiment response model sentiment_response...
35.533333
87
0.763602
de4b2842f6d161ce210949267c3a6a2741add01e
49
py
Python
TokyoWesterns/2020/vi-deteriorated/run.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
TokyoWesterns/2020/vi-deteriorated/run.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
TokyoWesterns/2020/vi-deteriorated/run.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/python3 import pty pty.spawn("./vid")
12.25
18
0.673469
9d254fe0605fb55d894ad15bbf4ca470b4379e22
276
py
Python
Language Proficiency/Python/Sets/No Idea!/happiness.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Sets/No Idea!/happiness.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Sets/No Idea!/happiness.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': n, m = map(int, input().split()) arr = (map(int, input().split())) like = set(map(int, input().split())) dislike = set(map(int, input().split())) print(sum([(i in like) - (i in dislike) for i in arr]))
23
59
0.557971