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
27e877651962c48754f6875f13b6574e5a5856d6
2,195
py
Python
hausse/plugins/csv_expand.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
hausse/plugins/csv_expand.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
hausse/plugins/csv_expand.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
import csv import logging import sys from typing import Callable, List, Optional, Union from hausse.lib import Element, Plugin, Project class CSVExpand(Plugin): """ CSVExpand ========= Loads CSV files as collections of elements. """ def __init__( self, pattern=None, delimiter=",", c...
28.506494
85
0.510706
8b7f316b00a0d907d1c988ab38605c98b2122675
175
py
Python
Algorithms/Implementation/fair_rations.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Implementation/fair_rations.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Implementation/fair_rations.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
n = int(input().strip()) b = map(int, input().strip().split()) sum = 0 c = False for i in b: c = (c + i) % 2 sum += c * 2 if c: print('NO') else: print (sum)
13.461538
37
0.48
475eb9716962c319de73791481a0b399b5ff5723
2,338
py
Python
cogs/give.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
1
2021-04-21T09:01:26.000Z
2021-04-21T09:01:26.000Z
cogs/give.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
cogs/give.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
from discord.ext import commands import discord import random class Give(commands.Cog): def __init__(self, client): self.client = client @commands.command(name="give") async def give_command(self, ctx, item=None, member: discord.Member=None): randomnum = random.randint(0, 64) if i...
46.76
155
0.59367
47c2752879666a9aaff5fb61cd682536db9c3ebf
856
py
Python
Backend/services/mail_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/services/mail_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/services/mail_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
from threading import Thread from flask import render_template from flask_mail import Message from werkzeug.exceptions import InternalServerError # https://github.com/paurakhsharma/flask-rest-api-blog-series/blob/master/Part%20-%206/movie-bag/services/mail_service.py def send_async_email(app2, msg): from server...
34.24
121
0.728972
d056420822357c74d576926585c8e0030a426111
1,446
py
Python
src/test/tests/queries/pickcleanzonesonly.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/pickcleanzonesonly.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/queries/pickcleanzonesonly.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: pickcleanzonesonly.py # Tests: queries - Pick on mixed zones of clean zones only # # Defect ID: VisIt00003894 # # Programmer: Jeremy Meredith # Date: October 30, 2003 # # Modificatio...
25.368421
79
0.654219
d061cdcb6c00fd74cb5bb74d849cb7ca46953890
1,416
py
Python
crypto/CBC/server.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
crypto/CBC/server.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
crypto/CBC/server.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 import os BLOCK_SIZE = 256 P = [ (0, [1, 7]), (1, [0, 8]), (0, [5, 3]), (1, [8, 6]), (0, [3, 9]), (1, [4, 0]), (0, [9, 1]), (1, [6, 2]), (0, [7, 5]), (1, [2, 4]), ] def n2B(b,length=BLOCK_SIZE): return list(map(int, bin(b)[2:].rjust(BLOCK_SIZE, '0'...
21.454545
64
0.474576
ef771f5f0652a0ae86515fd6af7252f45e428629
1,156
py
Python
repo/plugin.video.tagesschau/subtitles_test.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.tagesschau/subtitles_test.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.tagesschau/subtitles_test.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...
32.111111
71
0.736159
326a50e17f5aa3993006b3ea8faa821d57c7d115
277
py
Python
db_init.py
ypislon/bachelorarbeit
2e1d07d667d505a79d1adb9363cec5d21dafe832
[ "MIT" ]
null
null
null
db_init.py
ypislon/bachelorarbeit
2e1d07d667d505a79d1adb9363cec5d21dafe832
[ "MIT" ]
null
null
null
db_init.py
ypislon/bachelorarbeit
2e1d07d667d505a79d1adb9363cec5d21dafe832
[ "MIT" ]
null
null
null
from db_schema import create_tables from db_seeder import seed_db try: create_tables(hard_reset=True) seed_db() print("Migrating tables and seeding data was completed successfully.") except: print("Something went wrong while creating tables or seeding data.")
27.7
74
0.772563
32b804ae151df0d552bccf4f6244fae4f222723e
1,181
py
Python
2020-09-02-1112-gma_maximum2.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-02-1112-gma_maximum2.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-02-1112-gma_maximum2.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 2 11:00:10 2020 @author: Georg Maubach Schreiben Sie eine Funktion maximum, die zwei nummerische Werte übergeben werden, und die dann den größeren der beiden Werte zurückliefert. """ #-----------------------------------------------------------------------------...
26.840909
80
0.474174
f5fc787aae96b70651c673d1bce605d6176ca624
1,203
py
Python
tests/test_tarifpreisstaffelproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_tarifpreisstaffelproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_tarifpreisstaffelproort.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.tarifpreisstaffelproort import TarifpreisstaffelProOrt, TarifpreisstaffelProOrtSchema from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] example_tarifpreisstaffelproort = TarifpreisstaffelProOrt( ...
31.657895
99
0.714879
19d4769a899434dee4e51193654cb388617e2419
15,534
py
Python
Saegewerk/bin/Saegewerk.py
Robotron-GmbH/splunk-youtube-material
f04043dae7ca22d3a22b7b21acb97c325724eadb
[ "MIT" ]
1
2021-07-28T15:51:07.000Z
2021-07-28T15:51:07.000Z
Saegewerk/bin/Saegewerk.py
Robotron-GmbH/splunk-youtube-material
f04043dae7ca22d3a22b7b21acb97c325724eadb
[ "MIT" ]
null
null
null
Saegewerk/bin/Saegewerk.py
Robotron-GmbH/splunk-youtube-material
f04043dae7ca22d3a22b7b21acb97c325724eadb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 18 11:09:31 2020 @author: stephan.fuchs """ import sys import os sys.path.insert(0, "..") import datetime import time import random from random import randrange import math Erstelle_Lookup=False kunden=int(sys.argv[1]) #Anzahl der Sekunden wie lange das Skript la...
42.793388
221
0.676838
6ef590403e30c7eeecd41fdcadc897edcbf63a1c
705
py
Python
Packs/Jq/Scripts/Jq/Jq.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Jq/Scripts/Jq/Jq.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/Jq/Scripts/Jq/Jq.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import json import traceback import demistomock as demisto # noqa: F401 import pyjq from CommonServerPython import * # noqa: F401 ''' MAIN FUNCTION ''' def jq_wrap(json_str, query): j = json.loads(json_str) res = pyjq.all(query, j) cmd_res = demisto.executeCommand('Set', {'key': 'jq.result', 'value'...
22.741935
79
0.652482
e47fc1ce41eca08f77ec9d445023a9e650d11a50
22,597
py
Python
Archiv/2Main.py
inventivejon/ExSyNL
daf5b5923ed0e65107ce2904933afeba8bfa99ea
[ "Apache-2.0" ]
null
null
null
Archiv/2Main.py
inventivejon/ExSyNL
daf5b5923ed0e65107ce2904933afeba8bfa99ea
[ "Apache-2.0" ]
5
2021-05-11T02:08:51.000Z
2022-02-26T23:08:18.000Z
Archiv/2Main.py
inventivejon/ExSyL
daf5b5923ed0e65107ce2904933afeba8bfa99ea
[ "Apache-2.0" ]
null
null
null
# Prädikate # Mann # Frau # Ehepaar # Formel # Mann(X) # Frau(Y) # Ehepaar(X, Y) continueAsking = True predicates = {} predicate_equals = {} functions = [] def AddEqualsPredicate(eqPrName, predicate): global predicates global predicate_equals if predicate in predicates: for singleEqPrName in eqPr...
52.796729
179
0.617516
5f987133a8a1f61100615e167e26da0c66c42e9c
3,060
py
Python
our_Net/models/ResNet.py
BIGBALLON/HTD
d3ee10761d9276c1dd67ae31cafc9297723daa7c
[ "MIT" ]
8
2018-06-05T10:46:12.000Z
2020-07-09T09:09:19.000Z
models/ResNet.py
BIGBALLON/Model_Experiment
d96712a01997a2f51cad29d611e60d2567ce1021
[ "MIT" ]
1
2019-04-28T01:31:24.000Z
2019-12-17T09:42:54.000Z
our_Net/models/ResNet.py
BIGBALLON/HTD
d3ee10761d9276c1dd67ae31cafc9297723daa7c
[ "MIT" ]
null
null
null
from keras.layers.normalization import BatchNormalization from keras.layers import Conv2D, Dense, add, Activation, GlobalAveragePooling2D from keras import regularizers class resnet(object): def __init__(self): pass def residual_block(self, intput,out_channel,increase=False): if i...
40.8
85
0.54085
f2d3c29231057c0916c7e71f8ed2c844f8b4cdbf
7,483
py
Python
src/onegov/wtfs/views/scan_job.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/views/scan_job.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/views/scan_job.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.core.templates import render_template from onegov.wtfs import _ from onegov.wtfs import WtfsApp from onegov.wtfs.collections import ScanJobCollection from onegov.wtfs.forms import AddScanJobForm from onegov.wtfs.forms import EditScanJobForm from onegov.wtfs.forms import ScanJob...
27.511029
69
0.640652
ffdb6f742a36bd258398b5ffc72895f28a85ef09
547
py
Python
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_table/test_restaurant_table.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/restaurant/doctype/restaurant_table/test_restaurant_table.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_table/test_restaurant_table.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest test_records = [ dict(restaurant='Test Restaurant 1', no_of_seats=5, minimum_seating=1), dict(restaurant='Test Restaurant 1', no_of_sea...
30.388889
72
0.771481
f289c1063d3245e3713c88e94af2b5a4f922c355
1,169
py
Python
apps/users/forms.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/users/forms.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/users/forms.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
from django import forms from .models import UserProfile class UploadProfilePhoto(forms.ModelForm): class Meta: model = UserProfile fields = ['profile_photo'] class ModifyPwdForm(forms.Form): password1 = forms.CharField(required=True, min_length=5) password2 = forms.CharField(required=Tr...
30.763158
74
0.742515
d9e67a654b3d815aa5001355d372d3e3f78cdd38
241
py
Python
doc/python-study/basic/examples/argparse/short.py
xinetzone/d2py
657362a0451921ef5a7b05b4a8378f7379063cdf
[ "Apache-2.0" ]
3
2022-03-09T14:08:42.000Z
2022-03-10T04:17:17.000Z
doc/python-study/basic/examples/argparse/short.py
xinetzone/d2py
657362a0451921ef5a7b05b4a8378f7379063cdf
[ "Apache-2.0" ]
3
2021-11-07T13:11:26.000Z
2022-03-19T03:28:48.000Z
doc/python-study/basic/examples/argparse/short.py
xinetzone/d2py
657362a0451921ef5a7b05b4a8378f7379063cdf
[ "Apache-2.0" ]
1
2022-03-15T14:18:32.000Z
2022-03-15T14:18:32.000Z
import argparse parser = argparse.ArgumentParser() parser.add_argument("-v", "--verbose", help="increase output verbosity", action="store_true") args = parser.parse_args() if args.verbose: print("verbosity turned on")
34.428571
72
0.688797
8a6f4debd6877118228ecd5c846d67a456bc80b0
260
py
Python
pythonlib/flask_fillin/__init__.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2015-10-26T10:38:32.000Z
2015-10-26T10:38:32.000Z
pythonlib/flask_fillin/__init__.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
pythonlib/flask_fillin/__init__.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ flask.ext.fillin ~~~~~~~~~~~~~~~~ Adds utilities for testing form in flask applications. :copyright: (c) 2012 by Christoph Heer. :license: BSD, see LICENSE for more details. """ from wrapper import FormWrapper
21.666667
58
0.619231
0a6beecbc78119a2dddfd1108c2d610d92f57479
5,158
py
Python
src/transformers/tokenization_reformer_fast.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
12
2021-06-05T03:51:23.000Z
2022-03-05T05:09:41.000Z
src/transformers/tokenization_reformer_fast.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
1
2021-10-20T02:25:36.000Z
2021-10-20T02:25:36.000Z
src/transformers/tokenization_reformer_fast.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors and The HuggingFace Inc. team. # # 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 r...
38.781955
128
0.65413
6aa7d6ffb16c713630b098b79eb4f12249eb4550
4,621
py
Python
research/cv/ProtoNet/src/parser_util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ProtoNet/src/parser_util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ProtoNet/src/parser_util.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...
38.831933
103
0.519368
6ae2b0fe769f0255e6992ad60b8cd9d7bd6d72e0
1,034
py
Python
export_categories.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
export_categories.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
export_categories.py
noahsolomon0518/rengine
a544951c6b7dd707586cd3c4f84ddec554f1c96a
[ "MIT" ]
null
null
null
"""Automatically exports various categories to config for easy type hints.""" from io import TextIOWrapper import os import shutil from typing import List from rengine.dataset import get_dataset CONFIG_PROXY_PATH = "rengine/config_proxy.py" DATASET = get_dataset("clean_data.csv") def export_unique_values_from_df...
28.722222
136
0.699226
0a778ff5a11c017a6fc9bbe3e46bcc6c99cb30a7
897
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__unicode.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__unicode.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__unicode.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_test_test__unicode.py,v 1.1 2021/06/23 18:30:24 schmonz Exp $ macOS arm64 support, via MacPorts. --- Lib/test/test_unicode.py.orig 2021-06-22 19:20:03.000000000 +0000 +++ Lib/test/test_unicode.py @@ -1676,6 +1676,7 @@ class CAPITest(unittest.TestCase): def test_from_format(self): test...
39
80
0.661093
0affde31695fdaf95e8f4291f1e18a84e1447e36
8,612
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/docker_image_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/docker_image_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/docker_image_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright 2016 Red Hat | Ansible # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['prev...
31.316364
159
0.551672
7cb0a01b213b4ac9372f992d3fc1277e9440c88e
348
py
Python
pacman-termux/test/pacman/tests/provision020.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/provision020.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/provision020.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "provision>=1.0-2 dependency" p = pmpkg("pkg1", "1.0-2") p.depends = ["provision>=1.0-2"] self.addpkg2db("sync", p) lp = pmpkg("pkg2", "1.0-2") lp.provides = ["provision"] self.addpkg2db("local", lp) self.args = "-S %s" % p.name self.addrule("PACMAN_RETCODE=1") self.addrule("!PKG_EXIST=pkg1") sel...
21.75
48
0.66092
7cbde15eb143cf642a8a4f31b7e5ebe6b91285f8
8,254
py
Python
official/cv/se_resnext50/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/se_resnext50/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/se_resnext50/eval.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...
39.682692
116
0.634238
7ce47d1ebb4a1d2d3d55f96601a2d9f8054a5a0e
16,375
py
Python
src/ingestion/sources/base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/sources/base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/sources/base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from dataclasses import dataclass from datetime import datetime from dateutil import parser from enum import Enum import logging from posixpath import lexists from sqlalchemy import create_engine from typing import Any, Dict, Generator, List, Optional import abc import json from ingestion.task import MultiTaskUnit, Ta...
28.677758
134
0.600733
6b4264a6da3467f83296cbfe19a07c8d9462cc32
256
py
Python
NumbersOperatorsComments.py
tian142/1.Numbers-Operators-and-Comments
f35b1da8d5ab2da61083b2abbf6ff64947c0ed68
[ "MIT" ]
null
null
null
NumbersOperatorsComments.py
tian142/1.Numbers-Operators-and-Comments
f35b1da8d5ab2da61083b2abbf6ff64947c0ed68
[ "MIT" ]
null
null
null
NumbersOperatorsComments.py
tian142/1.Numbers-Operators-and-Comments
f35b1da8d5ab2da61083b2abbf6ff64947c0ed68
[ "MIT" ]
null
null
null
# ints(whole numbers +/-) floats(decimals) # power(**) # modulo(%) remainder operator, divide as many times as possible, output is that remains # interger division(//) do the devision, give interget(whole number rounded down) as result print(1 + 2) # test
36.571429
91
0.726563
866c4c93308b45b09e8ef5ff9a4f20df908ec904
615
py
Python
backend/songwriter/migrations/0004_verse_paragraph.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
backend/songwriter/migrations/0004_verse_paragraph.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
12
2017-09-25T20:13:29.000Z
2020-02-12T00:12:41.000Z
backend/songwriter/migrations/0004_verse_paragraph.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-04 15:36 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('songwriter', '0003_auto_20170804_1652'), ] operati...
26.73913
142
0.656911
81067f2d3b4c26fa700c288b283b782e49e11f32
345
py
Python
repo/script.video.F4mProxy/lib/f4mUtils/tackwrapper.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.video.F4mProxy/lib/f4mUtils/tackwrapper.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.video.F4mProxy/lib/f4mUtils/tackwrapper.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# Author: Trevor Perrin # See the LICENSE file for legal information regarding use of this file. try: from tack.structures.Tack import Tack from tack.structures.TackExtension import TackExtension from tack.tls.TlsCertificate import TlsCertificate tackpyLoaded = True except ImportError: ...
28.75
73
0.742029
d4f2e58d4baee335879773e78d0309c0427d044a
691
py
Python
GeoTracking/TrackerGeo/server/get_addr.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
GeoTracking/TrackerGeo/server/get_addr.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
GeoTracking/TrackerGeo/server/get_addr.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python #-*- coding:utf-8 -*- import sys import platform import argparse try: from geopy.geocoders import Nominatim except ImportError: sys.exit("\033[31m[!] Error Geopy Not Found !") def get_address(latlong): geolocator = Nominatim(user_agent="get_address_by_latlong") location = geolocato...
25.592593
63
0.70767
71f48f124d2e0ab32a0cb8dbede1b9e694b27524
1,220
py
Python
src/visitpy/visit_flow/visit_flow_vpe/examples/flow_vpe_pyocl_ops_vel_mag_1.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/visit_flow_vpe/examples/flow_vpe_pyocl_ops_vel_mag_1.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/visit_flow_vpe/examples/flow_vpe_pyocl_ops_vel_mag_1.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: flow_vpe_pyocl_ops_vel_mag_1.py author: Cyrus Harrison <cyrush@llnl.gov> created: 3/28...
28.372093
73
0.684426
9c1bf590cec985b34173119b98410c5a678f09e8
100
py
Python
ssrf.py
lalkaltest/ssrf
14c75f67923f744f4b1b624c10c1bbbbf9b8e96f
[ "Unlicense" ]
null
null
null
ssrf.py
lalkaltest/ssrf
14c75f67923f744f4b1b624c10c1bbbbf9b8e96f
[ "Unlicense" ]
null
null
null
ssrf.py
lalkaltest/ssrf
14c75f67923f744f4b1b624c10c1bbbbf9b8e96f
[ "Unlicense" ]
null
null
null
import requests x = requests.get('http://lalka.eu.ngrok.io.ngrok.io/ssrf.ph') print(x.status_code)
20
61
0.74
1317687821e10952a7d87517a390c02461e8f269
321
py
Python
qmk_firmware/lib/python/qmk/errors.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/errors.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/errors.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
class NoSuchKeyboardError(Exception): """Raised when we can't find a keyboard/keymap directory. """ def __init__(self, message): self.message = message class CppError(Exception): """Raised when 'cpp' cannot process a file. """ def __init__(self, message): self.message = message...
24.692308
61
0.654206
b99cfb65bb3fb3268af36a1dfbf89703170b4465
1,239
py
Python
packages/OpenCV/nodes/OpenCV___BlurImg0/OpenCV___BlurImg0.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___BlurImg0/OpenCV___BlurImg0.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___BlurImg0/OpenCV___BlurImg0.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from custom_src.NodeInstance import NodeInstance from custom_src.Node import Node import cv2 # USEFUL # self.input(index) <- access to input data # self.outputs[index].set_val(val) <- set output data port value # self.main_widget <- access to main widget class BlurImg_NodeI...
26.934783
84
0.641646
b9f2ddb875be2d76a1be211cc6baee02923a8b01
8,978
py
Python
prod-pipeline/classification/Preprocessor.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
prod-pipeline/classification/Preprocessor.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
prod-pipeline/classification/Preprocessor.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Imports from luigi.contrib.spark import PySparkTask from luigi.parameter import IntParameter from luigi import LocalTarget, Task, WrapperTask from luigi.format import UTF8 import datetime import pandas as pd import re from nltk.stem.cistem import Cistem from Importer import Impo...
44.666667
148
0.553687
b9f6ab5625b6ac6b5a4ec5338dc0db5621fdf844
487
py
Python
Kryptografie/Python/caesar_puzzle.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
2
2020-09-24T12:11:16.000Z
2022-03-31T04:47:24.000Z
Kryptografie/Python/caesar_puzzle.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-27T15:06:27.000Z
2021-03-01T16:32:48.000Z
Kryptografie/Python/caesar_puzzle.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-24T05:12:35.000Z
2021-02-24T05:12:35.000Z
klartext = input("Klartextwort (ohne Leerzeichen): ") klartext = klartext.upper() schluessel = input("Schlüsselbuchstabe: ") schluessel = schluessel.upper() schluessel = ord(schluessel) - ord("A") geheimtext = "" for zeichen in klartext: unicode = ord(zeichen) verschoben = unicode + schluessel if verschob...
27.055556
53
0.689938
6a09e500a5afb45f31982b84c02b84d493050aac
731
py
Python
exercises/es/solution_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/solution_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/solution_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import Matcher nlp = spacy.load("es_core_news_sm") matcher = Matcher(nlp.vocab) doc = nlp( "El gigante tecnológico IBM está ofreciendo lecciones virtuales " "sobre tecnologías avanzadas gratuitas en español." ) # Escribe un patrón para un sustantivo más uno o dos adjetivos pat...
31.782609
70
0.726402
0ede44d15ce5ffc321478edee54d573593fa6b9f
15,642
py
Python
Packs/Base/Scripts/DBotPreprocessTextData/dbot_preprocess_text_data_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Base/Scripts/DBotPreprocessTextData/dbot_preprocess_text_data_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Base/Scripts/DBotPreprocessTextData/dbot_preprocess_text_data_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import unittest from CommonServerPython import * from DBotPreprocessTextData import clean_html_from_text, remove_line_breaks, hash_word, \ concat_text_fields, whitelist_dict_fields, remove_short_text, remove_duplicate_by_indices, pre_process_batch, main, \ read_file, Tokenizer, clean_text_of_incidents_list, re...
34.302632
121
0.59532
163fe6911677c644d29d7ddcdd3403ee21a7f579
1,094
py
Python
Curso_Python/Secao5-modulos-uteis/138pyPDF2_Unindo_e_dividindo_arquivos_PDF/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/138pyPDF2_Unindo_e_dividindo_arquivos_PDF/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/138pyPDF2_Unindo_e_dividindo_arquivos_PDF/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Documentação: https://pythonhosted.org/PyPDF2/ Mais exemplos de uso: http://www.blog.pythonlibrary.org/2018/06/07/an-intro-to-pypdf2/ pip install pypdf2 # virtualenv pipenv install pypdf2 # pipenv """ import PyPDF2 import os """ caminhos_dos_pdfs = 'pdf' # Gera novo pdf juntando novo_pdf = PyPDF2.PdfFileMerger()...
26.682927
73
0.71298
166c105ec3c6cc6bfb52be95869245fc6d775a14
258
py
Python
docs/scripts/survery_charts.py
cwoodall/artemis-synth
a8e9496cf06a4afb002435746d07ca6c6ccdc49b
[ "CC-BY-3.0" ]
null
null
null
docs/scripts/survery_charts.py
cwoodall/artemis-synth
a8e9496cf06a4afb002435746d07ca6c6ccdc49b
[ "CC-BY-3.0" ]
null
null
null
docs/scripts/survery_charts.py
cwoodall/artemis-synth
a8e9496cf06a4afb002435746d07ca6c6ccdc49b
[ "CC-BY-3.0" ]
null
null
null
import cairoplot as cp #Question 1 q1 = { 'yes': [9, 14]} cp.vertical_bar_plot('q1.svg', q1, 400,300, border=20, display_values=True, grid=True, rounded_corners=True, colors=["green", "red"],x_labels=["Q1: Did the activity take too long?","q2"])#, "red"])
36.857143
197
0.678295
16e60d4cfb895593adebe996687ff751837c3166
6,958
py
Python
python/oneflow/test/modules/test_optim_adam.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_optim_adam.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_optim_adam.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
30.384279
85
0.555045
bc7fc383f6132119722a56e70152d392ba50e8b7
1,168
py
Python
brainfuck/txttofck.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
brainfuck/txttofck.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
brainfuck/txttofck.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
"""loads text from file - and prints a character map into fcot - and prints commands into fout - for ++ptr; or --ptr; and putchar(*ptr); through character map Sounds greek? Yes it is brainfucked! """ file = open('text.txt') fcot = open('charmap.bf', 'w') fout = open('your output.txt.bf', 'w') #####################...
25.391304
87
0.475171
d5b4f05bcbded5d37a03b9248a4cf350ac11d820
8,150
py
Python
python/oneflow/test/graph/test_graph_rmsprop_optim.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/graph/test_graph_rmsprop_optim.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/graph/test_graph_rmsprop_optim.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
29.963235
86
0.581963
912d2640c666a4953129c114b875b44160a088b4
939
py
Python
components/amp-utility/python/ucollections.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/ucollections.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/ucollections.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# * coding: UTF8 * """ 该模块实现相应CPython模块的子集,主要提供命名元组功能 函数 ------------------------------ """ def namedtuple(name,fields): """ 用以创建具有特定名称和字段集的命名元组函数。命名元组为元组的子类, 它可以通过数值索引或具有符号字段名的属性访问语法来访问其字段,字段是指定字段名的字符串序列。 使用示例:: from ucollections import namedtuple MyTuple = namedtuple("MyTupl...
14.904762
85
0.474973
913497e3e6c2b9344a36e1c60ba30a8c3f86fc55
1,319
py
Python
tutorials/robots_and_marbles/videos/robot-marbles-part-2/configBlank.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
tutorials/robots_and_marbles/videos/robot-marbles-part-2/configBlank.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
tutorials/robots_and_marbles/videos/robot-marbles-part-2/configBlank.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# import libraries from decimal import Decimal import numpy as np from datetime import timedelta from cadCAD.configuration import append_configs from cadCAD.configuration.utils import bound_norm_random, ep_time_step, config_sim seeds = { } sim_config = config_sim({ 'T': range(10), 'N': 1 }) # Behaviors def ...
18.577465
82
0.613343
fc412de0f2990c8319987a27e580490a7064e729
332
py
Python
Python/M01_ProgrammingBasics/L06_NestedLoops/Exercises/Solutions/P02_EqualSumsEvenOddPosition.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Exercises/Solutions/P02_EqualSumsEvenOddPosition.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Exercises/Solutions/P02_EqualSumsEvenOddPosition.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
number1 = int(input()) number2 = int(input()) for each in range(number1, number2 + 1): string = str(each) even = 0 odd = 0 for index, digit in enumerate(string): if index % 2 == 0: even += int(digit) else: odd += int(digit) if even == odd: print(ea...
19.529412
42
0.506024
5d95dd09778af0712bd705e12586179a30b07af3
19,140
py
Python
examples/benchmark/clue/mrc/run_c3.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/benchmark/clue/mrc/run_c3.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/benchmark/clue/mrc/run_c3.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 The HuggingFace Inc. team. # # 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....
40.985011
123
0.558255
5d1806c328db7dc68313dfb22ca51b3c21e3ed79
576
py
Python
bot/actions/action_get_time.py
cosibot/cosibot-germany-german
ed8917e0da7ebb1ce2140674cc63bc7f82628408
[ "MIT" ]
null
null
null
bot/actions/action_get_time.py
cosibot/cosibot-germany-german
ed8917e0da7ebb1ce2140674cc63bc7f82628408
[ "MIT" ]
null
null
null
bot/actions/action_get_time.py
cosibot/cosibot-germany-german
ed8917e0da7ebb1ce2140674cc63bc7f82628408
[ "MIT" ]
null
null
null
from typing import Text, Any, Dict, List import time from rasa_sdk import Action, Tracker from rasa_sdk.events import SlotSet, FollowupAction from rasa_sdk.executor import CollectingDispatcher class GetTimeValue(Action): def name(self): return "action_get_time" def run(self, dispatcher: Collecting...
27.428571
66
0.673611
54eabd00089c114837721034c81f37badd4fed11
1,459
py
Python
py_projects/gui_news_viewer/news.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2020-10-04T12:36:45.000Z
2020-10-04T12:36:45.000Z
py_projects/gui_news_viewer/news.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
1
2021-09-30T16:20:57.000Z
2021-09-30T16:20:57.000Z
py_projects/gui_news_viewer/news.py
Anwesha-dash811/hacktober-1
188c859864f06f94a94cb91e63979366db62b9ac
[ "MIT" ]
3
2020-10-04T09:49:36.000Z
2020-10-25T15:26:56.000Z
# -*- coding: utf-8 -*- """ Created on Sun Aug 23 20:50:10 2020 @author: DELL ''' ' """ #In this project after giving the topic input, the news is read out first after clicking the button and then the news text is displayed in the TextBox #pip install GoogleNews(to install the google news package) #pip insta...
30.395833
151
0.708019
ab010b96c847667d16a5930da3aaf4f656cb931a
2,974
py
Python
python/oneflow/compatible/single_client/test/xrt/test_concat.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/xrt/test_concat.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/xrt/test_concat.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
32.681319
82
0.667451
91adce6bae92d77a3c03d00e6982b6c71427455d
10,752
py
Python
distributedenc.py
FinlayDaG33k/HBC
e8aa7ae6b6d8af758f15613ab2aaf6cb276e4cd9
[ "MIT" ]
1
2016-06-15T07:22:14.000Z
2016-06-15T07:22:14.000Z
distributedenc.py
FinlayDaG33k/HBC
e8aa7ae6b6d8af758f15613ab2aaf6cb276e4cd9
[ "MIT" ]
null
null
null
distributedenc.py
FinlayDaG33k/HBC
e8aa7ae6b6d8af758f15613ab2aaf6cb276e4cd9
[ "MIT" ]
null
null
null
#!/usr/bin/python """ HBC by FinlayDaG33k under the MIT License """ import Pyro4 import Pyro4.naming from Pyro4.naming import NamingError import threading import time import logging import os import multiprocessing from threading import Timer from pyftpdlib.servers import FTPServer as ftpserver from pyftpdlib.authorize...
38.12766
114
0.601935
37dce7ad46d7b73c23be4e55a2635911a69af91e
26,353
py
Python
Packs/TrendMicroVisionOne/Integrations/TrendMicroVisionOne/TrendMicroVisionOne_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/TrendMicroVisionOne/Integrations/TrendMicroVisionOne/TrendMicroVisionOne_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/TrendMicroVisionOne/Integrations/TrendMicroVisionOne/TrendMicroVisionOne_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-12-20T15:12:22.000Z
2021-12-20T15:12:22.000Z
from TrendMicroVisionOne import ( Client, add_or_remove_from_block_list, quarantine_or_delete_email_message, isolate_or_restore_connection, terminate_process, add_or_delete_from_exception_list, add_to_suspicious_list, delete_from_suspicious_list, get_file_analysis_status, get_fil...
33.916345
81
0.636702
f43e07dd2fdf8864831234423b1318148854687c
4,157
py
Python
Packs/AWS-EC2/Scripts/AwsEC2GetPublicSGRules/AwsEC2GetPublicSGRules.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AWS-EC2/Scripts/AwsEC2GetPublicSGRules/AwsEC2GetPublicSGRules.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AWS-EC2/Scripts/AwsEC2GetPublicSGRules/AwsEC2GetPublicSGRules.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 json import copy def get_dict_value(data, key): """ Returns dict value for a given key (case insensitive) """ for key_name in data.keys(): if key_name.lower() == key.lower(): return d...
30.566176
105
0.563387
f4480db7b3a4717c6d34980873248b347f443149
1,084
py
Python
gemtown/advertisings/models.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/advertisings/models.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/advertisings/models.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from django.db import models from django.utils.encoding import python_2_unicode_compatible from gemtown.users import models as user_models @python_2_unicode_compatible class TimeStampModel(models.Model): created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) c...
29.297297
75
0.694649
be76e8e39fd16e15563f58720d64d88ceac59fb6
692
py
Python
Shakti/2021/crypto/Rand-S-A/challenge.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Shakti/2021/crypto/Rand-S-A/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Shakti/2021/crypto/Rand-S-A/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import random from Crypto.Util.number import * from secret import flag, x mod = 124912888168404777121624746046278221478415741204063939426455884264204774777990089137717126267769 g = 3 h = pow(g,x,mod) def keyGen(x): random.seed(x) p = random.randint(2**511,2**512 - 1) while isPrime(p) != 1: p = random.randint(2*...
18.210526
102
0.635838
a3cbb3c4657adaab5ebb3a88b0d64d7211f0d157
869
py
Python
src/built_in_functions/str_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/str_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/str_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- print("---------------------------------------------------") st = 322 tem = '%d' % st print(tem) print(type(st)) print(type(tem)) """ 常用的格式化字符串: %s 字符串 (采用str()的显示) %r 字符串 (采用repr()的显示) %c 单个字符 %b 二进制整数 %d 十进制整数 %i 十进制整数 %o 八进制整数 %x 十六进制整数 %e 指数 (...
16.711538
67
0.451093
6013ade5870877f36b341c350c68e19452a854b8
2,044
py
Python
software/supervisor/views/ConfigurationView.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/views/ConfigurationView.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/views/ConfigurationView.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
""" This is a QStackedWidget with every element on the configuration window """ from PyQt5.QtWidgets import QPushButton, QLabel, QCheckBox, QWidget from PyQt5.QtGui import QFont class ConfigurationView(QWidget): def __init__(self, parent): super(ConfigurationView, self).__init__(parent) self.sav...
35.241379
71
0.671233
60e02286a01935828fa7a0af727f511bba58d18b
209
py
Python
books/PythonAutomate/csv_json_files/json_loads.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/csv_json_files/json_loads.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/csv_json_files/json_loads.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""json_loads.py JSON 문자열 데이터를 파이썬 데이터로 변환하기 """ import json string_json_data = '{"name": "Zopie", "isCat": true, "miceCaught": 0, "felineIQ": null}' json_data = json.loads(string_json_data) print(json_data)
23.222222
88
0.712919
60e1a8282235ee7277e832f0913296914f62820c
2,723
py
Python
src/visitpy/mpicom/test/test_mpicom.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/mpicom/test/test_mpicom.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/mpicom/test/test_mpicom.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
#!/usr/bin/env python ############################################################################### # Program: test_mpicom.py # # Purpose: Tests for the pyavt.mpicom python module. # # Programmer: Cyrus Harrison # Creation: Wed Jan 7 14:00:41 PST 2009 # # Notes: # Build and install the pyavt module into your pyt...
25.448598
84
0.614029
71ab7c754fc6a25caa3cb72a88b79f58fcc06fb0
3,384
py
Python
project/views/event_place.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/views/event_place.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/views/event_place.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask import flash, redirect, render_template, url_for from flask_babelex import gettext from flask_security import auth_required from sqlalchemy.exc import SQLAlchemyError from project import app, db from project.access import access_or_401, get_admin_unit_for_manage_or_404 from project.forms.event_place import ...
33.176471
88
0.671395
71e5b86c41cba4c6806e145ae46cd50bb2e62575
103
py
Python
luechenbresse/__init__.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
null
null
null
luechenbresse/__init__.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
4
2020-05-12T07:26:52.000Z
2020-05-23T12:21:49.000Z
luechenbresse/__init__.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
null
null
null
# this line exposes ALL content of module text at least #from .text import sjoin __version__ = "0.0.6"
25.75
55
0.747573
c7ee2416082a0237dcf565e74f100ac2aae67e76
1,821
py
Python
tests/test_template.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
tests/test_template.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
tests/test_template.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest import logya.core import logya.template # Test the functions called in templates. env_globals = logya.template.env.globals env_filters = logya.template.env.filters @pytest.fixture def L(): L = logya.core.Logya(dir_site='logya/sites/docs/') L.build()...
28.904762
76
0.675453
909de3363e51b412c144c41e0643c03331b74060
36,687
py
Python
python/bc/mkgalleries.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/bc/mkgalleries.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/bc/mkgalleries.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" Read in a json file with conference information and create the repository that will host the poster gallery: Landing page with all the posters in a table. Individual pages for each poster with all their info. Directory structure for browsing. """ import argparse import http.client import json import pathlib as pl...
36.834337
90
0.627825
90dfad2847aeac3ae1401bba08ccb2e2e09c4665
6,604
py
Python
src/visuanalytics/server/db/job.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2020-11-27T17:26:27.000Z
2020-11-27T17:26:27.000Z
src/visuanalytics/server/db/job.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
85
2021-01-02T11:38:59.000Z
2021-07-26T07:13:47.000Z
src/visuanalytics/server/db/job.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2021-04-19T06:50:53.000Z
2021-04-19T06:50:53.000Z
from datetime import datetime from visuanalytics.server.db import db from visuanalytics.server.db import queries # This variable is initialized with the value from the config file, # so a change here has no effect. LOG_LIMIT = 100 INTERVAL = {"minute": {"minutes": 1}, "quarter": {"minutes": 15}, "half": {"minutes": ...
40.268293
159
0.613265
463e3ce9a033bd8a0467b19eee07ed36f6c9c2bd
785
py
Python
view/aboutView.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
view/aboutView.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
view/aboutView.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
""" Element of the view. Contains the AboutView class. """ from PyQt5 import QtWidgets from PyQt5.QtCore import Qt from PyQt5.QtGui import QPixmap from view.aboutWindow import Ui_Dialog class AboutView(QtWidgets.QMainWindow, Ui_Dialog): """An AboutView which shows the aboutWindow.""" def __init__(s...
28.035714
89
0.686624
467a79fdb59092bca2596b8c452cce9877c39e3b
1,129
py
Python
DataProcess/augmentation/my_augment.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/augmentation/my_augment.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/augmentation/my_augment.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- """ @Project :DataProcess @File :my_augment.py @Author :Zhang Qihang @Description: 进行时序数据的数据增强 @Date :2022/1/10 15:19 """ from tradition_augmentation import * def tradition_augment(time_series): """ 传统的时间序列增强方法也就是几何变换,详细介绍参照tradition_augmenta...
21.711538
63
0.649247
3142817264d30c66ac7903dde1083562247a0a76
2,433
py
Python
LoPy/LoAirRohr01/lib/LIS2HH12.py
OffenesJena/JenLoRa
332114edc8927b577f9c4775d7c721ba63daa77b
[ "Apache-2.0" ]
1
2017-08-23T20:45:35.000Z
2017-08-23T20:45:35.000Z
LoPy/LoAirRohr01/lib/LIS2HH12.py
OffenesJena/JenLoRa
332114edc8927b577f9c4775d7c721ba63daa77b
[ "Apache-2.0" ]
null
null
null
LoPy/LoAirRohr01/lib/LIS2HH12.py
OffenesJena/JenLoRa
332114edc8927b577f9c4775d7c721ba63daa77b
[ "Apache-2.0" ]
null
null
null
import math import struct class LIS2HH12: ACC_I2CADDR = const(30) PRODUCTID_REG = const(0x0F) CTRL1_REG = const(0x20) CTRL4_REG = const(0x23) ACC_X_L_REG = const(0x28) ACC_X_H_REG = const(0x29) ACC_Y_L_REG = const(0x2A) ACC_Y_H_REG = const(0x2B) ACC_Z_L_REG = const(0x2C) ACC_Z...
30.797468
108
0.567201
b4673255ad9e86619804449042de62f451f6b3d4
2,069
py
Python
scripts/update-episodes.py
arickert/arickert.github.io
27ffc686a5fa74e488d576dc77ea8a364aeaeaf6
[ "MIT" ]
null
null
null
scripts/update-episodes.py
arickert/arickert.github.io
27ffc686a5fa74e488d576dc77ea8a364aeaeaf6
[ "MIT" ]
null
null
null
scripts/update-episodes.py
arickert/arickert.github.io
27ffc686a5fa74e488d576dc77ea8a364aeaeaf6
[ "MIT" ]
null
null
null
from urllib.request import urlopen from bs4 import BeautifulSoup import markdownify import re page=urlopen("https://thedig.blubrry.net/") html = page.read().decode("utf-8") # print(html) soup = BeautifulSoup(html, "html.parser") a=soup.find_all(class_="title") newep=a[0]["href"] #### if statement newpage=urlopen(new...
24.341176
105
0.636539
6f131f57f2fe3fb23ee234686dec3b9cdb5850e4
2,542
py
Python
tools/datasets_convert/dataset_count.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/datasets_convert/dataset_count.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/datasets_convert/dataset_count.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/12 下午7:07 """ from pycocotools.coco import COCO, maskUtils from dataloader.skmt import SkmtDataSet import numpy as np from PIL import Image import os import matplotlib.pyplot as plt import cv2 <<<<<<< HEAD da...
26.479167
75
0.66247
6f62ba8d466089bd9e8de6d908be27964e9f3166
36
py
Python
playbooks/roles/ood-apps-robinhood/files/robinhood/passenger_wsgi.py
ltalirz/az-hop
b773628a43b81d7549fee0db48c3c88e96a8f922
[ "MIT" ]
17
2021-07-13T04:17:08.000Z
2022-03-01T22:14:43.000Z
playbooks/roles/ood-apps-robinhood/files/robinhood/passenger_wsgi.py
ltalirz/az-hop
b773628a43b81d7549fee0db48c3c88e96a8f922
[ "MIT" ]
253
2021-07-13T07:19:13.000Z
2022-03-31T07:11:15.000Z
playbooks/roles/ood-apps-robinhood/files/robinhood/passenger_wsgi.py
ltalirz/az-hop
b773628a43b81d7549fee0db48c3c88e96a8f922
[ "MIT" ]
13
2021-07-12T17:39:29.000Z
2022-03-04T13:29:22.000Z
from app import MyApp as application
36
36
0.861111
5b1975f649d270801b852e842cb1e24033fcc05b
3,999
py
Python
Invent Your Own Computer Games with Python/ch9_extending_hangman/hangman2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/ch9_extending_hangman/hangman2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/ch9_extending_hangman/hangman2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import random def hangmangDisplay(): HANGMAN_PICS = [''' +---+ | | | =====''', ''' +---+ O | | | =====''', ''' +---+ O | | | | =====''', ''' +---+ O | /| | | =====''', ''' +---+ ...
24.384146
170
0.592148
7ddf72ca1d35c6ccb999433edeb4ae56996cb1c2
554
py
Python
examples/keras-mnist-mlp/run_skil_minimal.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
examples/keras-mnist-mlp/run_skil_minimal.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
examples/keras-mnist-mlp/run_skil_minimal.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
from skil import Skil, WorkSpace, Experiment, Model, Deployment from keras.datasets import mnist skil_server = Skil() work_space = WorkSpace(skil_server) experiment = Experiment(work_space) model = Model('model.h5', model_id="keras", experiment=experiment) deployment = Deployment(skil_server) service = model.deploy(...
25.181818
66
0.767148
81d51d8f1de3ab078af6c72ef9767dce8b2d8ac5
631
py
Python
7-assets/past-student-repos/_DS-Python/Algorithms-I-Notes-master/practice_algs/find_rotation_point.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/_DS-Python/Algorithms-I-Notes-master/practice_algs/find_rotation_point.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/_DS-Python/Algorithms-I-Notes-master/practice_algs/find_rotation_point.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Find Rotation Point # Let's say we're given an alphabetically-sorted list of words that has been rotated at a single point. It might look something like this: words = [ 'ptolemaic', 'retrograde', 'supplant', 'undulate', 'xenoepist', 'asymptote', # <-- rotates here! 'babka', 'banoffee...
26.291667
150
0.679873
48511557fa16362cb857b6ca2fe2e02bd6daf770
2,175
py
Python
research/cv/DnCNN/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/DnCNN/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/DnCNN/src/model.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.826923
110
0.651034
73df3196f2fd9d3a557e189c7eabc163934e7042
285
py
Python
___Python/Torsten/Python-Kurs/p11_excel/m02_pandas.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p11_excel/m02_pandas.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p11_excel/m02_pandas.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import pandas as pd from p01_kennenlernen.meinebibliothek import alter df = pd.read_excel('O:/___Python/personen.xlsx') print(df) geburtstage = df["Geburtsdatum"] print(geburtstage) altersangaben = [alter(geburtstag) for geburtstag in geburtstage] print(altersangaben)
21.923077
66
0.764912
fb61a4ab726cea14876b369858ec83b1bd21d54b
297
py
Python
Beginner/03. Python/bubble_sort.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-06T13:55:02.000Z
2021-10-06T13:55:02.000Z
Beginner/03. Python/bubble_sort.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/bubble_sort.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
# bubble sort def bubble_sort(array): for i in range(len(array) - 1): for j in range(len(array) - i - 1): if array[j] > array[j + 1]: temp = array[j] array[j] = array[j + 1] array[j + 1] = temp return array array = [2, 3, 5, 4, 1] print(bubble_sort(array))
21.214286
39
0.542088
f70501b6041b222ae4cdc6349c3646848546cf5f
271
py
Python
CodeChef_problems/XORAGN/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeChef_problems/XORAGN/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeChef_problems/XORAGN/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#Question Link #https://www.codechef.com/problems/XORAGN t=int(input()) for a0 in range(t): n=int(input()) a=list(map(int,input().split())) res=0 for i in a: res=res^i #xorring all the values present print(2*res) #doubling the result obtained
24.636364
49
0.645756
e3c55f014f575560bebb6e34358b9f341205b16b
72
py
Python
lbry/lbry/extras/daemon/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
null
null
null
lbry/lbry/extras/daemon/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/lbry/extras/daemon/__init__.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
from lbry.extras.daemon import Components # register Component classes
36
71
0.833333
587df1b61d26f7d52d87ecf52658750ba1b158bc
8,620
py
Python
research/cv/3dcnn/src/models.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/3dcnn/src/models.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/3dcnn/src/models.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.807018
111
0.47355
b72ab461bdda35db73c56fc76084ca687b3e45e2
840
py
Python
runners/great_expectations/flask_service/service.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/flask_service/service.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/flask_service/service.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
from flask import request, Flask, jsonify from job_config import JobConfigSchema, JobConfig from runner import GERunner ge_runner_service = Flask(__name__) ge_runner_service.config.from_envvar('GE_SERVICE_SETTINGS') ge_runner = GERunner(ge_runner_service.config) @ge_runner_service.route('/runner/great-expectations/...
32.307692
90
0.740476
b7f6e5ee88e0a44d7bba39c27cdc3f38dcffff21
1,302
py
Python
python/kal.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/kal.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/kal.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
cmd = r"C:\Users\wittr\sdr\kalibrate-win-release\kal.exe" import os, re from subprocess import Popen, PIPE pattern_band = r'\s*band to scan\s*\((.+)\)' pattern_chan = r'(chan).+?(\d+).+?([\d.]+)(\w+).+?([\d.]+)(\w+).+?(\w+).+?([\d.]+)' process = Popen(cmd + ' -h', shell=True, stdout=PIPE) # To use a pipe with the...
37.2
155
0.591398
1292dcc1c50865679c951e4970960c1422b2bbe0
3,523
py
Python
python/oneflow/test/modules/test_kldivloss.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-09-13T02:34:53.000Z
2021-09-13T02:34:53.000Z
python/oneflow/test/modules/test_kldivloss.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/modules/test_kldivloss.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
1
2021-01-17T03:34:39.000Z
2021-01-17T03:34:39.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
34.203883
82
0.67698
12b63bb5d6e69d950c7679fd3cb6421aa2de00ae
2,093
py
Python
src/built_in_functions/iter_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/iter_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/built_in_functions/iter_function.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os print("-----用法1:iter(object)-----") print("-----实现了__iter__()方法或者__getitem__()方法-----") obj = [1, 2, 3] for i in iter(obj): print(i) print("返回一个迭代器") print(iter(obj)) print("-----用法2:iter(object, sentinel)-----") print("如果传递了第二个参数,则object必须是一个可调用的对象(如,函数)") pr...
36.719298
733
0.698519
426da92b927bfd11d554c0548deb9268e66a642d
1,708
py
Python
scripts/qt2/pyqt_sw16_QPainter_static.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/qt2/pyqt_sw16_QPainter_static.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/qt2/pyqt_sw16_QPainter_static.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ##pyqt_sw16_QPainter_static.py # https://www.tutorialspoint.com/pyqt/pyqt_qpixmap_class.htm import sys from PyQt5.QtCore import (Qt, QTimer) from PyQt5.QtWidgets import (QWidget, QPushButton, QApplication, QLabel) from PyQt5.QtGui import QPainter, QColor, QFont from PyQt5.QtG...
27.548387
72
0.583138
e1d17e2c739c21cf08e69ffd0bd0aa8f9308c521
2,758
py
Python
eve/tests/response.py
RedTurtle/eve
beaf413372294d4c611f4948fbee904b8e4bc043
[ "BSD-3-Clause" ]
1
2015-02-10T17:38:18.000Z
2015-02-10T17:38:18.000Z
pythonlib/eve/tests/response.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
pythonlib/eve/tests/response.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from ast import literal_eval from eve.tests import TestBase import simplejson as json class TestResponse(TestBase): def setUp(self): super(TestResponse, self).setUp() self.r = self.test_client.get('/%s/' % self.empty_resource) def test_response_data(self): re...
36.773333
74
0.635243
18f8fad7e5ad7bf08e799a5b0744856ec2977d2f
157
py
Python
Online-Judges/DimikOJ/Python/05-box-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/05-box-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/05-box-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
t = int(input()) for j in range(t): n = int(input()) i = 0 while i < n: print("*" *n) i += 1 if j != t-1: print()
12.076923
21
0.363057
bedd16528a1a24076fe5527b8050f2848c706cc2
443
py
Python
Backend/services/hash_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/services/hash_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/services/hash_service.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import os import bcrypt def load_key(): return os.getenv('APP_HASH_SALT').encode() def create_hash(message): if isinstance(message, str): message = message.encode() return bcrypt.hashpw(message, load_key()) def check_hash(message, hashed): if isinstance(message, str): message = me...
20.136364
46
0.674944
55d61040bc72ce18118d388fbcc9569568c2eda9
10,825
py
Python
research/cv/SE-Net/modelarts/start_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SE-Net/modelarts/start_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SE-Net/modelarts/start_train.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 agree...
45.675105
122
0.671039
55ed676949c7b77cd29499baf8bdcb9429e260bb
445
py
Python
exercises/fr/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("fr_core_news_sm") text = ( "Le groupe aéronautique Airbus construit des avions et des " "hélicoptères vendus dans le monde entier. Le siège opérationnel du " "groupe est situé en France à Toulouse dans la région Occitanie." ) # Désactive le tagger et le parser with nlp.disab...
27.8125
73
0.707865
36cecbf24a8a30be6a5aa54508091d1d402c742e
224
py
Python
bds_setup/urls.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
bds_setup/urls.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
bds_setup/urls.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
from django.urls import path from . import views # 从当前文件夹(.)导入views app_name = 'bds_setup' urlpatterns = [ path('bds_setup/', views.bds_setup, name='bds_setup'), path('station/', views.station, name='station'), ]
22.4
58
0.6875
18248c44c4df9913872b06b37f21c13d4dfe2067
1,193
py
Python
frds/mktstructure/cmd_download.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
1
2022-03-06T20:36:06.000Z
2022-03-06T20:36:06.000Z
mktstructure/cmd_download.py
mgao6767/mktstructure
5432c1bed163f838209d34b74c09629bea620ba8
[ "MIT" ]
null
null
null
mktstructure/cmd_download.py
mgao6767/mktstructure
5432c1bed163f838209d34b74c09629bea620ba8
[ "MIT" ]
null
null
null
import argparse import gzip import os from shutil import copyfileobj from .utils import extract_index_components_ric from .utils import SP500_RIC, NASDAQ_RIC, NYSE_RIC from .trth import Connection from .trth_parser import parse_to_data_dir def cmd_download(args: argparse.Namespace): start_date = f"{args.b}T00:0...
25.934783
77
0.657167
a1362f77f48de0608f23c98f9306920e21b288f8
5,196
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_helpers.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_helpers.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_helpers.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import pybedtools import sys import os, difflib from nose.tools import assert_raises from nose.plugins.attrib import attr from .tfuncs import setup, teardown, testdir, test_tempdir, unwriteable def fix(x): """ Replaces spaces with tabs, removes spurious newlines, and lstrip()s each line. Makes it really ea...
32.886076
115
0.674172
a1d09d1725b7be0b02b59d9d2663227dd096ec52
1,142
py
Python
session3/02_file_write.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session3/02_file_write.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session3/02_file_write.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
logdatei = open("rechner_ausgabe.txt", "a+") eingabe = "" while eingabe != "x": eingabe = input("Bitte ein Zeichen eingeben: ") if eingabe == 'x': print("Programm Ende") break elif eingabe == 'm': print("Multiplizieren") zahl_eingabe = input("Bitte zwei Zahlen eingeben: ")...
30.052632
99
0.57268
a1ea6cb850de5a89d08f0ad6ce0f10021dab7456
621
py
Python
Skripte/Python/plot.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/plot.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/plot.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
from vars import * csvFile = CSV_FOLDER + "mems_wave.csv" resolution = 1 # Nur jeden n-ten wert verwenden x = np.genfromtxt(csvFile, delimiter=",", skip_header=8, usecols=1) / 1000000 # Zeit y = np.genfromtxt(csvFile, delimiter=",", skip_header...
29.571429
116
0.607085
62d2bbc0bdf60b8767ec298517da16199382e2f5
723
py
Python
AFluentPython/tools/requestsUtil.py
RoboCuper-hujinlei/AI-Job
cf7a081d59700d75f0f2dc73b6d5130863796f01
[ "Apache-2.0" ]
null
null
null
AFluentPython/tools/requestsUtil.py
RoboCuper-hujinlei/AI-Job
cf7a081d59700d75f0f2dc73b6d5130863796f01
[ "Apache-2.0" ]
null
null
null
AFluentPython/tools/requestsUtil.py
RoboCuper-hujinlei/AI-Job
cf7a081d59700d75f0f2dc73b6d5130863796f01
[ "Apache-2.0" ]
null
null
null
""" python 内建模块urlib和第三方库requests """ from urllib import request # get with request.urlopen("https://www.baidu.com/") as f: data = f.read() print("Status: ", f.status, f.reason) for k, v in f.getheaders(): print(f"{k}, {v}") print('Data:', data.decode('utf-8')) req = request.Request('http://...
25.821429
167
0.621024
a7e40b72e5ab9828441e75757c8b0819c7be4597
597
py
Python
SoSe-21/Uebung-4/A3-Nummernbaum.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Uebung-4/A3-Nummernbaum.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Uebung-4/A3-Nummernbaum.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Aufgabe 3 - Übung 4 # # Erstellen Sie ein Python-Programm mit den folgenden Anforderungen: # • Definieren Sie eine Zähl-Variable mit dem Wert 9 # • Erstellen Sie folgende Ausgabe hoechsterWert = 9 for zeilen in range (hoechsterWert+1): # Leerzeichen generieren for werte in range (hoechsterWert+1-zeilen): ...
31.421053
68
0.661642
3d63cfd4426c60eac4bb1a93aafb39c28193e652
12,134
py
Python
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendAllPANWIoTAssetsToSIEM/SendAllPANWIoTAssetsToSIEM.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendAllPANWIoTAssetsToSIEM/SendAllPANWIoTAssetsToSIEM.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PaloAltoNetworks_IoT3rdParty/Scripts/SendAllPANWIoTAssetsToSIEM/SendAllPANWIoTAssetsToSIEM.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 * SIEM_INSTANCE = demisto.args().get('syslog_sender_instance') PANW_IOT_INSTANCE = demisto.args().get('panw_iot_3rd_party_instance') VULNERABILITIES_FIELDS_MAP = [ ("ip", "dvc="), ("deviceid", "dvcmac="), ("name", "dvchost="), ("profile", "cs...
39.396104
113
0.642657
b12795a348f563094911e90772bb79e0d095c671
776
py
Python
.circleci/checklhe/checklhe.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/checklhe/checklhe.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/checklhe/checklhe.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
#! /usr/bin/env python import sys #https://root.cern.ch/phpBB3/viewtopic.php?t=3198 tempargv = sys.argv sys.argv.insert(0, '-b') import ROOT del sys.argv[0] #Try both ways ROOT.gROOT.SetBatch(True) import lhefile totalevents = 0 total4e = 0 total4mu = 0 total2e2mu = 0 for file in sys.argv[1:]: print file wi...
21.555556
49
0.628866
498bfe1c7cf7b1624274a1c426c71edd312388bf
1,332
py
Python
src/bo4e/com/zeitintervall.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/zeitintervall.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/zeitintervall.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Zeitintervall class and corresponding marshmallow schema for de-/serialization """ import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.enum.zeiteinheit import Zeiteinheit # pylint: disable=too-few-publ...
29.6
181
0.739489