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
18adcb2fa83f91c7182a28396fc3bead551cb5cb
16,067
py
Python
experimental/ini/iniParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
experimental/ini/iniParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
experimental/ini/iniParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ####################################################################### # # SYMBOLS SECTION - Can be edited. Changes will be preserved. # ####################################################################### import collections from functools import partial import os import sys from typing im...
38.346062
111
0.631107
55f342b567b885ff05873d6baee7f672da598dcd
694
py
Python
Course_1/Week_01/2_MergeSort.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_01/2_MergeSort.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_01/2_MergeSort.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
def merge(array_a, array_b): len_a = len(array_a) len_b = len(array_b) len_all = len_a + len_b i, j = 0, 0 sorted_array = [] while (i < len_a) and (j < len_b): if i < len_a and array_a[i] < array_b[j]: sorted_array.append(array_a[i]) i +=1 elif j < len_b and array_b[j] <= array_a[i]: sorted_array.a...
20.411765
46
0.646974
184e4e9747235cc02a243e6edced841236d8720e
1,087
py
Python
sketches/rpg01/player.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/rpg01/player.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/rpg01/player.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class Player(): def __init__(self): self.pos = PVector(width/2, height/2) self.w = self.h = 32 self.max_speed = 6 self.speed = PVector(0, 0) self.img = loadImage("knt1_fr1.gif") self.debug = True # False def update(self): if self.speed.x >= s...
31.057143
69
0.5115
a11fabb4d32a8c919c79c0a41d532618ee61d06a
706
py
Python
Bibliothek/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Bibliothek/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Bibliothek/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
from django.conf.urls import url from . import views, models from Grundgeruest.views import ListeMitMenue, DetailMitMenue, TemplateMitMenue from Bibliothek.views import liste_buecher app_name = 'Bibliothek' urlpatterns = [ url(r'^$', liste_buecher, name='liste_alle'), url(r'^(?P<slug>[\w-]+)$', ...
32.090909
85
0.63881
a13cea63e454508747ca7e8809dc92b2c8a0cf7f
354
py
Python
lintcode/000-394-Coins-in-a-Line/CoinsinaLine_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
lintcode/000-394-Coins-in-a-Line/CoinsinaLine_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/000-394-Coins-in-a-Line/CoinsinaLine_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param n: an integer # @return: a boolean which equals to True if the first player will win def firstWillWin(self, n): # write your code here if n == 0: return False a, b = True, True for i in range(2, n): c = not (a and b) ...
22.125
74
0.5
b1295bc7e603c668ad174d6c254660388fc3e902
30,832
py
Python
ECMan.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
ECMan.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
9
2019-05-11T19:53:01.000Z
2020-11-10T07:24:14.000Z
ECMan.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import ctypes import os, os.path import time import socket import subprocess import sys import webbrowser from configparser import ConfigParser from datetime import date from pathlib import Path from PySide2.QtCore import QEvent, Qt, QThreadPool from PySide2.QtGui import QTextDocument, QKeySequence...
40.250653
172
0.613162
621517036485094f30b5bb05ddcd08906e011f43
704
py
Python
pacman-termux/test/pacman/tests/epoch005.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/epoch005.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/epoch005.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with sync packages having absurd epochs" versions = ( "1234327518932650063289125782697890:1.0-1", "1234327518932650063289125782697891:0.9-1", "1234327518932650063289125782697891:1.0-1", "1234327518932650063289125782697891:1.1-1", "1234327518932650063289125782697892:1.0-1", ) pkgver...
27.076923
71
0.715909
b2ab6c0adc50778427c8d58a26038af456cc76a4
6,171
py
Python
html_generiloj/generi.py
junefish/kurso-zagreba-metodo
d057192dd28b85710614cdf2425bebd52d04b775
[ "CC-BY-4.0" ]
124
2016-03-22T16:53:28.000Z
2022-03-10T15:10:10.000Z
html_generiloj/generi.py
junefish/kurso-zagreba-metodo
d057192dd28b85710614cdf2425bebd52d04b775
[ "CC-BY-4.0" ]
55
2016-02-01T19:47:49.000Z
2022-02-23T00:00:15.000Z
html_generiloj/generi.py
junefish/kurso-zagreba-metodo
d057192dd28b85710614cdf2425bebd52d04b775
[ "CC-BY-4.0" ]
55
2016-02-16T19:18:49.000Z
2021-07-04T22:33:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil import re import yaml, jinja2, mistune import sys sys.path = ['./genanki'] + sys.path import genanki def render_page(name, enhavo, vojprefikso, env, output_path): rendered = env.get_template(name + '.html').render( enhavo = enhavo, ...
28.702326
116
0.585318
a2376bbaddfb4fa76e870bc8596da2c89ffc73ea
190
py
Python
exercises/zh/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "patterns = list(nlp.pipe(people))" in __solution__ ), "你有用list将nlp.pipe的结果变为列表吗?" __msg__.good( "干得漂亮!接下来我们看一个实际例子,用nlp.pipe来处理文档生成更多的元数据。" )
21.111111
59
0.647368
0c313f9f68160135394839effecf9e3e6d70e7d9
488
py
Python
cloudmesh/volume/azure/azuretest2.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-12T09:49:53.000Z
2020-03-12T09:49:53.000Z
cloudmesh/volume/azure/azuretest2.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-25T00:47:12.000Z
2020-03-30T23:32:00.000Z
cloudmesh/volume/azure/azuretest2.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
5
2020-02-20T01:04:24.000Z
2020-05-05T14:36:30.000Z
from cloudmesh.volume.azure.Provider import Provider as AZProvider from pprint import pprint from cloudmesh.common.util import path_expand configuration = path_expand("~/.cloudmesh/cloudmesh.yaml") p = AZProvider(name="azure", configuration=configuration) print(p) # pprint(p.create()) # pprint(p.dele...
22.181818
66
0.704918
0c352032b1adc5a94f8e196622a3af10c212a7ba
176
py
Python
src/onegov/file/models/associated_files.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/file/models/associated_files.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/file/models/associated_files.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm.abstract import associated from onegov.file.models.file import File class AssociatedFiles(object): files = associated(File, 'files', 'one-to-many')
22
52
0.761364
a74dc3247e6096bdbe3597f25d5184eef5da77d6
1,761
py
Python
RDS/circle1_adapters_and_ports/port_openscienceframework/src/server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle1_adapters_and_ports/port_openscienceframework/src/server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle1_adapters_and_ports/port_openscienceframework/src/server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
#!/usr/bin/env python from RDS import Util, OAuth2Service, FileTransferMode, FileTransferArchive from __init__ import app import os redirect_uri = os.getenv("RDS_OAUTH_REDIRECT_URI", "") osf_address = os.getenv("OPENSCIENCEFRAMEWORK_ADDRESS", "https://accounts.test.osf.io") osf_oauth_token_ur...
42.95122
229
0.756388
65f0cca4bb806352821f7fd963673f220fc653f5
8,596
py
Python
src/database.py
minhluu2000/AggiePass
a86198b26e5fbec0f2de68f88fc4fd6aac362233
[ "MIT" ]
null
null
null
src/database.py
minhluu2000/AggiePass
a86198b26e5fbec0f2de68f88fc4fd6aac362233
[ "MIT" ]
null
null
null
src/database.py
minhluu2000/AggiePass
a86198b26e5fbec0f2de68f88fc4fd6aac362233
[ "MIT" ]
null
null
null
""" This library contains all the functions needed to setup the database system for the password manager. The mydb class is based on: https://www.tutorialspoint.com/postgresql/index.htm """ import psycopg2 from sqlalchemy import create_engine import pandas as pd import pandas.io.sql as psqlio from constant impor...
34.66129
92
0.551303
0c82de2e9e9fb1a0d7e34e759e76e5774a646038
14,266
py
Python
larq_compute_engine/tf/python/modelconverter.py
timdebruin/compute-engine
bdd3c080ea330ad911cfb6b02dd41b6c574a7cf4
[ "Apache-2.0" ]
null
null
null
larq_compute_engine/tf/python/modelconverter.py
timdebruin/compute-engine
bdd3c080ea330ad911cfb6b02dd41b6c574a7cf4
[ "Apache-2.0" ]
null
null
null
larq_compute_engine/tf/python/modelconverter.py
timdebruin/compute-engine
bdd3c080ea330ad911cfb6b02dd41b6c574a7cf4
[ "Apache-2.0" ]
null
null
null
"""TF lite converter for larq models.""" import tensorflow as tf import numpy as np import larq as lq from larq_compute_engine import bsign, bconv2d64 from larq_compute_engine.tf.python.utils import tf_2_or_newer from tensorflow.keras.utils import get_custom_objects get_custom_objects()["bsign"] = bsign quantizer_re...
38.661247
210
0.599467
b2c6e1abf361d80fc7a7a103344f7fd480cefad9
979
py
Python
classification_snips/classifier/test.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
classification_snips/classifier/test.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
classification_snips/classifier/test.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals, print_function import json from pathlib import Path from snips_nlu import SnipsNLUEngine, load_resources from snips_nlu.default_configs import CONFIG_DE SAMPLE_DATASET_PATH = Path(__file__).parent / "dataset_de.json" PERSIST_PATH = Path(__file__).parent / "persist_data" with...
27.971429
63
0.782431
651c22a95915c9eb540f6a57683e6ad7c2c827e0
1,193
py
Python
web/MicroservicesAsAservice/src/notes/redis_userdata/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
65
2019-10-07T01:29:16.000Z
2022-03-18T14:20:40.000Z
web/MicroservicesAsAservice/src/notes/redis_userdata/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/MicroservicesAsAservice/src/notes/redis_userdata/app.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
12
2020-05-04T01:16:53.000Z
2022-01-02T14:33:41.000Z
from flask import Flask, request, jsonify import redis import random import os import os app = Flask(__name__) @app.route('/adduser') def adduser(): port = random.randint(50000, 60000) if os.system(f"redis-server --port {port} --daemonize yes --protected-mode no") == 0: return str(port), 200 else...
23.392157
89
0.574183
3369bf8918a3a2525eef32cad96f1c6cefae6cbd
1,031
py
Python
src/test/tests/rendering/image.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/rendering/image.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/rendering/image.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: image.py # # Tests: mesh - 2D curvilinear, single domain # plots - Pseudocolor # annotations - Image # # Defect ID: None # # Programmer: Kathleen Biagas #...
22.413043
78
0.558681
c5d0fa98e6e3e8656b5e077fdd3daf700e23be07
483
py
Python
codeit/algorithm/merge.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/merge.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/merge.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def merge(list1, list2): result = list() while list1 and list2: if list1[0] < list2[0]: result.append(list1.pop(0)) else: result.append(list2.pop(0)) result += list1 + list2 return result if __name__ == '__main__': print(merge([1], [])) print(merge([],[...
25.421053
44
0.498965
c5e6321835a9f9f8a51a46a38ee098d202ecb3ee
5,433
py
Python
module/pollingRSShub.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
module/pollingRSShub.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
module/pollingRSShub.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import time import traceback import threading import random import module.msgStream as msgStream from load_config import config from module.RSShubApiPackage import RSShubsPackage from module.RSS import pushlist, rsshubevendeal from helper import getlogger, data_read_auto, data_save, TempMemory ...
31.224138
106
0.607767
76405436971163e38fd9c6d64befabbcef77cdaf
4,868
py
Python
quant/datafeed.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/datafeed.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/datafeed.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import config import time import logging from concurrent.futures import ThreadPoolExecutor, wait import traceback import sys import signal from quant.tool import email_box from markets.market_factory import create_markets is_sigint_up = False def sigint_handler(signu...
28.97619
113
0.579293
76935ed74be01590230deb2f43edaabedfb88b82
331
py
Python
intro_to_algos_2020_mit/ps3/count_anagram_substrings.py
venu-gopal-myneni/assignments
871148ccaa6291539623fc7d3f9704cb497fbcb6
[ "MIT" ]
1
2022-02-26T13:52:31.000Z
2022-02-26T13:52:31.000Z
assignments/ps3-template/count_anagram_substrings.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
null
null
null
assignments/ps3-template/count_anagram_substrings.py
tallamjr/mit-6006
c2aa6bb48edef5800c0779ba2eebd697d44249b5
[ "MIT" ]
null
null
null
def count_anagram_substrings(T, S): ''' Input: T | String S | Tuple of strings S_i of equal length k < |T| Output: A | Tuple of integers a_i: | the anagram substring count of S_i in T ''' A = [] ################## # YOUR CODE HERE # ################## retur...
25.461538
60
0.471299
76c510989e29cef3c1b2cb30cc2d6bbd198722f6
1,225
py
Python
official/cv/ADNet/src/utils/get_benchmark_path.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/src/utils/get_benchmark_path.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/src/utils/get_benchmark_path.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.516129
78
0.675102
4f9c2b719180c764f0d90e23b177717c7ae44a82
156
py
Python
Import/error.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Import/error.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Import/error.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
"""Exception classes for imports""" class SourceError(Exception): pass class JsonError(SourceError): pass class DataError(SourceError): pass
14.181818
35
0.724359
8c4da81b4356bf8de691909731bf73b2e4e3c298
92
py
Python
2014/07/table-internet-cats/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/07/table-internet-cats/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/07/table-internet-cats/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1dNKHeXeIU8XEp0KY6sXZVPAEIn5-BuxAmIaUmmOeV6U'
23
68
0.836957
8c5c38ae77e795c2580a46ba22243b7369e44254
26,100
py
Python
Co-Simulation/Veins/my-sumo-launched.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
Co-Simulation/Veins/my-sumo-launched.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
Co-Simulation/Veins/my-sumo-launched.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # sumo-launchd.py -- SUMO launcher daemon for use with TraCI clients # Copyright (C) 2006-2012 Christoph Sommer <christoph.sommer@uibk.ac.at> # # Documentation for these modules is at http://veins.car2x.org/ # # SPDX-License-Identifier: GPL-2.0-or-later # # This program is free software; you c...
35.175202
227
0.631456
4fd2fc3a3d946efc96b0f8d04ff93c463e073746
2,818
py
Python
export/test2.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
export/test2.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
export/test2.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% [markdown] # # Lists and Arrays in Python # %% import array import numpy as np # %% [markdown] # ## Python List # %% my_list = [True, "Hello", 42.0, 420, None] print([type(val) for val in my_list]) # %% [markdown] # ## Pytho...
20.874074
157
0.633428
8b389a2270f12ec137389a6b1c05239b98ef492f
2,724
py
Python
Packs/CheckpointFirewall/Scripts/CheckpointFWCreateBackup/CheckpointFWCreateBackup.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CheckpointFirewall/Scripts/CheckpointFWCreateBackup/CheckpointFWCreateBackup.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CheckpointFirewall/Scripts/CheckpointFWCreateBackup/CheckpointFWCreateBackup.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 * CLI_ADD = "add backup local" BASH_ADD = '/etc/cli.sh -c "' + CLI_ADD + '"' def main(): res = [] tbl = [] devices = demisto.get(demisto.args(), 'devices') devicesBackupStarted = [] devicesBackupErr...
44.655738
120
0.517988
8ce9147dd7852e1c11dfe088a0dcd5fdcf6357ae
459
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch04_strings/ex10_anagram_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch04_strings/ex10_anagram_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch04_strings/ex10_anagram_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch04_strings.solutions.ex10_anagram import is_anagram @pytest.mark.parametrize("str1, str2, expected", [("Otto", "Toto", True), ("Mary", "Army", True), ...
28.6875
58
0.605664
d156729fe373fd7df2c8acf4103ee176ec7b28d9
399
py
Python
RasPi/switch.py
Jugendhackt/SMocket
6aa495f3052c85f503ebf0e81b3ee5799cea37b2
[ "MIT" ]
null
null
null
RasPi/switch.py
Jugendhackt/SMocket
6aa495f3052c85f503ebf0e81b3ee5799cea37b2
[ "MIT" ]
null
null
null
RasPi/switch.py
Jugendhackt/SMocket
6aa495f3052c85f503ebf0e81b3ee5799cea37b2
[ "MIT" ]
null
null
null
from gpiozero import * import sys from time import sleep ident = sys.argv[1] value = int(sys.argv[2]) """print(ident) print(value)""" dic =[[11, 13], [15, 18], [27, 22] ] pair = dic[int(ident)-1] print(pair) if value == 0: print(pair[1]) pin = LED(pair[1]) elif value == 1: print(pa...
13.758621
37
0.548872
0f4c1c1a5d287f89cd972229a378c90ba9796bee
7,565
py
Python
cs/lambda_cs/06_graphs/projects/ancestor/graph.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/projects/ancestor/graph.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/projects/ancestor/graph.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Simple graph implementation """ import os import sys sys.path.append(os.path.abspath("../graph")) from util import Stack, Queue # These may come in handy class Graph: def __init__(self): """Represent a graph as a dictionary of vertices mapping labels to edges.""" self.vertices = {} def...
33.034934
112
0.539855
0ea5906db21c3f77a6432aa097385551fc70fd37
1,841
py
Python
tp1/source/tp1.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/tp1.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/tp1.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Trabalho Pratico 1: Inteligência Artificial Autor: Hugo Araujo de Sousa (2013007463) tp1.py: ''' from AStar import * from BestFirst import * from IDS import * from Map import * from UniformCost import * import argparse parser = argparse.ArgumentParser() parser.add_argument('map', type=st...
28.323077
77
0.726779
7d168e8656a2f6e138e374179ba89c98512a4752
2,124
py
Python
create_dataset.py
JACKYLUO1991/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
24
2019-09-01T09:02:59.000Z
2022-03-22T08:38:16.000Z
create_dataset.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
2
2019-10-25T02:39:03.000Z
2022-03-20T15:45:22.000Z
create_dataset.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
11
2019-10-25T01:36:18.000Z
2021-04-09T06:51:58.000Z
""" Create training dataset """ import cv2 import os import sys import glob import numpy as np from tqdm import tqdm import pandas as pd from common.landmark_helper import LandmarkHelper from common.landmark_utils import LandmarkImageCrop import time from pprint import pprint import argparse ap = argparse.ArgumentPar...
31.701493
101
0.624765
7d224b36bfd7531883986d99275ea6386da37344
274
py
Python
2285-maximum-total-importance-of-roads/2285-maximum-total-importance-of-roads.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2285-maximum-total-importance-of-roads/2285-maximum-total-importance-of-roads.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2285-maximum-total-importance-of-roads/2285-maximum-total-importance-of-roads.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def maximumImportance(self, n: int, roads: List[List[int]]) -> int: path=[0]*n for road in roads: path[road[0]]+=1 path[road[1]]+=1 path.sort() return sum([each*i for i, each in enumerate(path, 1)])
34.25
71
0.532847
70d127e2e501864d1af2efc000c3f42f718d091c
419
py
Python
server/tests/api/views/test_account.py
bumfiness/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
6
2017-01-07T17:59:46.000Z
2017-02-10T13:19:46.000Z
server/tests/api/views/test_account.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
server/tests/api/views/test_account.py
rixx/bumf
71c404c0a8f804b8f0e127df3de6d8916db4c660
[ "Apache-2.0" ]
null
null
null
import pytest @pytest.mark.django_db def test_budget_account_view(logged_in_client, virtual_budget_account): response = logged_in_client.get('/v1/budget-accounts/') assert len(response.data) == 1 @pytest.mark.django_db def test_no_other_accounts_in_budget_account_view(logged_in_client, virtual_income_accoun...
29.928571
92
0.789976
1dc73777508e45fbd056218c11f9506868936acd
664
py
Python
elements/python/6/11/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/6/11/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/6/11/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def longest_increasing_subarray(a): A = a + [float('-inf')] best_s, best_n = 0, 1 s, n = 0, 1 for i in range(len(a)): if A[i] <= A[i+1]: n += 1 continue if n > best_n: best_s, best_n = s, n s = i+1 n = 1 return best_s, best_s + best...
18.444444
40
0.498494
384a1adbaf5ecdfe5951d2dac8c2650386e7c0cc
111
py
Python
Shivani/age.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/age.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/age.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
age = int(input("enter age\n")) if(age<=60): print("Senior citizen") else: print("Not senoir citizen")
18.5
31
0.630631
38b10f7df18cffd8fa539d054ff45956adcdd785
7,882
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/test_leave_application.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/test_leave_application.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/leave_application/test_leave_application.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 frappe import unittest from erpnext.hr.doctype.leave_application.leave_application import LeaveDayBlockedError, OverlapError from frappe.permiss...
29.631579
101
0.740421
2a25f25e0a28e7a4ee4f470629b55fd00de911a5
90
py
Python
pyntcloud/geometry/__init__.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/geometry/__init__.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/geometry/__init__.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
""" HAKUNA MATATA """ from .models.plane import Plane from .models.sphere import Sphere
11.25
33
0.733333
aa90152574636b9dcc4c37882b40a2e1fae03d23
5,837
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_iscsi_target.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_iscsi_target.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_iscsi_target.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# coding=utf-8 # (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible_collections.community.general.plugins.modules.storage.netapp.netapp_e_iscsi_target import IscsiTarget from ansible_collections.community.general.tests.unit.modules.utils impo...
43.887218
123
0.6356
2aa814c71f8293c58e127e77d1f510c321b422b6
1,550
py
Python
tools/add_navigation_to_lectures.py
terben/Linux_Deutsch_Jupyter
1980dacc970fc2905380624c941b5ed31aaa9bad
[ "CC-BY-4.0" ]
1
2022-01-24T17:17:57.000Z
2022-01-24T17:17:57.000Z
tools/add_navigation_to_lectures.py
terben/Linux_Deutsch_Jupyter
1980dacc970fc2905380624c941b5ed31aaa9bad
[ "CC-BY-4.0" ]
null
null
null
tools/add_navigation_to_lectures.py
terben/Linux_Deutsch_Jupyter
1980dacc970fc2905380624c941b5ed31aaa9bad
[ "CC-BY-4.0" ]
1
2019-11-28T11:58:57.000Z
2019-11-28T11:58:57.000Z
import os import nbformat from nbformat.v4.nbbase import new_markdown_cell import notebook_utils as nu # script to add navigation information to the Linux # lecture notebooks. # # We implicitely assume: # - lecture notebooks have the naming scheme: # XX_Shell_Lecturename.ipynb # where XX is a number. Use explicite...
33.695652
76
0.649032
6330fa8df40250c199ad5fd04851f431253a0ae9
229
py
Python
bot/database/models.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/database/models.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/database/models.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
from .database import db class Guild(db.Model): __tablename__ = "guilds" id = db.Column(db.String(), primary_key=True) server_log_channel = db.Column(db.String(), nullable=True) prefix = db.Column(db.String())
22.9
62
0.68559
2d6e10b5747e1e082355d781d73a76bddd71c978
2,580
py
Python
Packs/ApiModules/Scripts/SiemApiModule/SiemApiModule_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ApiModules/Scripts/SiemApiModule/SiemApiModule_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/ApiModules/Scripts/SiemApiModule/SiemApiModule_test.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from typing import Any from SiemApiModule import ( IntegrationEventsClient, IntegrationHTTPRequest, IntegrationOptions, IntegrationGetEvents, Method, ) import json class MyIntegrationEventsClient(IntegrationEventsClient): def set_request_filter(self, after: Any): """Implement the next ...
32.25
78
0.622093
faa4d79de5d2e75a6f4c77b9395ede95d85f9157
373
py
Python
python/coding_dojang/coroutine_yield_from.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/coroutine_yield_from.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/coroutine_yield_from.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def accumulate(): total = 0 while True: x = (yield) if x is None: return total total += x def sum_coroutine(): while True: total = yield from accumulate() print(total) co = sum_coroutine() next(co) for i in range(1, 11): co.send(i) co.send(None) ...
14.346154
39
0.544236
87ea5fcf4e722f99d5efbd8e6dc9a851f3e1197d
783
py
Python
spider/Config_new.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/Config_new.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/Config_new.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # got文件、MongoDB数据库和Redis数据库配置文件 import os import sys import pymongo import redis def get_noau_config(): # got文件 if sys.version_info[0] < 3: import got else: import got3 as got # MongoDB数据库 # client = pymongo.MongoClient(os.environ['MONGOHOST'], 27017, connec...
26.1
81
0.662835
ea95a977723285a7252d7888938bd697dec4ce0e
1,487
py
Python
scripts/send_mail_to_get_participant_lists.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
scripts/send_mail_to_get_participant_lists.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
scripts/send_mail_to_get_participant_lists.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
#!/usr/bin/env python3 import os import logging from configparser import ConfigParser from imwievaluation.semester_old import Semester logger = logging.getLogger(__name__) configParser = ConfigParser() configParser.read('config.ini') def generate_empty_participant_files(current_semester, basepath, lectures): par...
27.537037
79
0.718225
352ecb5e75684a3e81e778bbc70bbda7edf23831
186
py
Python
Python/BasicDataTypes/list_comprehensions.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/BasicDataTypes/list_comprehensions.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/BasicDataTypes/list_comprehensions.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
x = int(input()) y = int(input()) z = int(input()) n = int(input()) a = [[xx,yy,zz] for xx in range(0,x+1) for yy in range(0,y+1) for zz in range(0,z+1) if xx + yy + zz != n ] print(a)
26.571429
107
0.553763
105f3d820c5cac2ad51d023e566d445977a4365e
2,041
py
Python
verarbeitung.py
caxenie/oom-oop-intro
e70cd2ab8067b4d81001b7491deab9e029eefd3d
[ "MIT" ]
1
2022-02-23T20:18:35.000Z
2022-02-23T20:18:35.000Z
verarbeitung.py
caxenie/oom-oop-intro
e70cd2ab8067b4d81001b7491deab9e029eefd3d
[ "MIT" ]
null
null
null
verarbeitung.py
caxenie/oom-oop-intro
e70cd2ab8067b4d81001b7491deab9e029eefd3d
[ "MIT" ]
null
null
null
class StahlVerarbeitung(object): def __init__(self, a, n, d): self.schrittenAnzahl = a self.schrittName = n self.schrittDauer = d def getAnzahl(self): return self.schrittenAnzahl def setAnzahl(self, a): self.schrittenAnzahl = a def getSchrittName(...
24.011765
48
0.627634
f49e08ef62a78c7a3e41885be0fa832c5fde2ba8
1,737
py
Python
src/visitpy/visit_utils/tests/test_qannote_circle.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/tests/test_qannote_circle.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_utils/tests/test_qannote_circle.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. """ author: Cyrus Harrison (cyrush@llnl.gov) description: Tests for qannote module. """ ...
25.544118
73
0.568221
f4de15a4c2c8175f025e7465a8a10f9d25885c85
6,650
py
Python
source/api_wrapper/src/actions_handler.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/api_wrapper/src/actions_handler.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/lib/ptp/src/actions_handler.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
from fuzzywuzzy import fuzz class ActionsHandler: """ actions object function: There are 3 different cases that a text could match. 1: A text contains exactly the text specified in a exactly attribute. 2: A text matches with a text specified in a match attribute, b...
40.54878
120
0.479699
52701d1456999216db995a6543edfddf754457e9
1,014
py
Python
tensorflow/basic-rl/tutorial11/code/enjoy_mountaincar_continuous_ppo1.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/tutorial11/code/enjoy_mountaincar_continuous_ppo1.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/tutorial11/code/enjoy_mountaincar_continuous_ppo1.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
import gym import tensorflow as tf from baselines.common import set_global_seeds, tf_util as U from baselines.ppo1 import mlp_policy, pposgd_simple env = gym.make("MountainCarContinuous-v0") def policy_fn(name, ob_space, ac_space): return mlp_policy.MlpPolicy(name=name, ob_space=ob_space, ac_space=ac_space, h...
31.6875
103
0.740631
bff02eef8f564c9a66429f0533eea63374f45c21
4,477
py
Python
Data-Structures/Python/BST_orderTraversal.py
M-Usman-Tahir/Data-Structures-and-Algorithms
08331182f0bbfd85fcdba50477dcf408b09a37cd
[ "Apache-2.0" ]
2
2021-12-13T10:09:47.000Z
2022-01-05T11:04:31.000Z
Data-Structures/Python/BST_orderTraversal.py
M-Usman-Tahir/Data-Structures-and-Algorithms
08331182f0bbfd85fcdba50477dcf408b09a37cd
[ "Apache-2.0" ]
1
2021-10-15T17:55:47.000Z
2021-10-17T20:43:15.000Z
Data-Structures/Python/BST_orderTraversal.py
M-Usman-Tahir/Data-Structures-and-Algorithms
08331182f0bbfd85fcdba50477dcf408b09a37cd
[ "Apache-2.0" ]
4
2021-10-12T13:05:10.000Z
2021-10-16T19:31:46.000Z
class Node: def __init__(self, d): self.data = d self.left = None self.right = None self.parent = None def __del__(self): print("Node is deleted") class BST: head = None def __init__(self, s): # BST(int s): if s>0: self.head = No...
25.011173
70
0.457226
5e3dd54cddc8262d02aa88052195442eecf42ceb
366
pyde
Python
sketches/weather/weather.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/weather/weather.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/weather/weather.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from getWeatherData import getWeatherData, getNow def setup(): size(600, 400) background(0) # frame.setTitle (u"Jörgs Wetterstation") font = createFont("American Typewriter", 18) textFont(font) getWeatherData() getNow() frameRate(1) def draw(): if(second() == 0): background...
20.333333
49
0.622951
0dc812697dc657977edd2e53732c08f6cd6864e3
960
py
Python
backend/geojson/shpToGeoJSON.py
whatwouldmarvindo/sweetgeeks
9d7d1103b7aa08aaeecfe32745016b789d922076
[ "MIT" ]
null
null
null
backend/geojson/shpToGeoJSON.py
whatwouldmarvindo/sweetgeeks
9d7d1103b7aa08aaeecfe32745016b789d922076
[ "MIT" ]
2
2021-09-29T08:15:26.000Z
2021-11-03T09:37:37.000Z
backend/geojson/shpToGeoJSON.py
whatwouldmarvindo/sweetgeeks
9d7d1103b7aa08aaeecfe32745016b789d922076
[ "MIT" ]
null
null
null
import pandas as pd import geopandas as gp import json import sys import os import pathlib #import matplotlib as mp from shapely.geometry import Point from shapely.geometry.polygon import Polygon def list_files(path,format): current_path = pathlib.Path(path) files = os.listdir(current_path) for file in fi...
26.666667
78
0.635417
df0b41e087e543483e813d4903fa3a5f51b5f296
7,060
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/dtw/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/dtw/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/dtw/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render_to_response import subprocess import re import marsyas import sys def median_filter(input,window_width): half = window_width / 2 output = [] for i in range(half,len(input)-half): b = [] for j in range(i-half,i+half+1): b.append(input[j]) ...
37.754011
116
0.594618
10de61ecce8097a916dbc423f55036b10c1f7bbd
340
py
Python
exercises/de/test_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/test_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/test_02_10_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "token1.similarity(token2)" or "token2.similarity(token1)" in __solution__ ), "Vergleichst du die Ähnlichkeit der zwei Tokens?" assert ( 0 <= float(similarity) <= 1 ), "Der Ähnlichkeitswert muss eine Zahl zwischen 0 und 1 sein. Hast du ihn korrekt berechnet?" __m...
37.777778
98
0.661765
894f60ebf46a01092011242094616e24fff8da54
185
py
Python
python_lessons/MtMk_Test_Files/SublimeText_Test.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/SublimeText_Test.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/SublimeText_Test.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
print("Hallo neuer User.") myString = input("Bitte gebe deinen Namen ein: ") print("Hallo neuer User, dein Name ist " + myString) print("-------------------------------------")
26.428571
53
0.52973
1208d23a5255a9b87e27561ff39188a43d3af26b
110,763
py
Python
AIO-Checker-main/Extreme-AIO-v1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
AIO-Checker-main/Extreme-AIO-v1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
AIO-Checker-main/Extreme-AIO-v1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import requests, threading, re, time, sys, os, random, webbrowser, ctypes, json, hashlib, subprocess, pypresence, tkinter from colorama import Fore, init from re import search from tkinter import filedialog, messagebox from time import gmtime, strftime from pypresence import Presence lista_mesaje = ["Coded by Ext...
44.447432
1,153
0.510396
12110de470f2b345db6c14e0d8e8aeedc0c0535e
4,437
py
Python
cogs/lol.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
1
2021-04-21T09:01:26.000Z
2021-04-21T09:01:26.000Z
cogs/lol.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
cogs/lol.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
from discord.ext import commands import discord from botlibrary import constants import requests from botlibrary import constants from riotwatcher import LolWatcher class Lol(commands.Cog): def __init__(self, client): self.client = client self.api_key = constants.lol_token self.base_url = ...
51
123
0.536624
d3095a20554166d62c146e405b786735d4b595bf
1,497
py
Python
intro-vietstack/tools/release-graph.py
vietstack/vietstack.github.io
6571001dc72751ee89115d9ed520c2b9ca2f2b86
[ "MIT" ]
1
2016-11-29T09:35:50.000Z
2016-11-29T09:35:50.000Z
intro-vietstack/tools/release-graph.py
vietstack/vietstack.github.io
6571001dc72751ee89115d9ed520c2b9ca2f2b86
[ "MIT" ]
8
2016-09-23T01:25:12.000Z
2016-11-14T04:02:16.000Z
intro-vietstack/tools/release-graph.py
vietstack/vietstack.github.io
6571001dc72751ee89115d9ed520c2b9ca2f2b86
[ "MIT" ]
14
2016-09-22T01:46:57.000Z
2019-09-05T05:42:11.000Z
#!/usr/bin/python import os import sys import argparse import yaml release_dates = { 'austin': '2010-10-21', 'bexar': '2011-02-03', 'cactus': '2011-04-15', 'diablo': '2011-09-22', 'essex': '2012-04-05', 'folsom': '2012-09-27', 'grizzly': '2013-04-04', 'havana': '2013-10-17', 'iceho...
21.385714
66
0.561122
d3aabc26ed36a06709ddafd35fbd22d439d34ba3
1,581
py
Python
CS303/lab4-6/work/algorithm_ncs/check_funnction.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS303_Artifical-Intelligence/NCS/algorithm_ncs/check_funnction.py
Eveneko/SUSTech-Courses
0420873110e91e8d13e6e85a974f1856e01d28d6
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS303/lab4-6/work/algorithm_ncs/check_funnction.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import numpy as np import unittest from algorithm_ncs.benchmark import benchmark_func from algorithm_ncs.problem import load_problem def load_test_data(file_path): with open(file_path, "r") as f: lines_data = f.readlines() lines = [] for data in lines_data: line = [] ...
23.954545
73
0.573055
9fc330c49bf76d433ed2bf97c36f3ac806135d0a
2,184
py
Python
reports/srp/code/data_generation.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/srp/code/data_generation.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/srp/code/data_generation.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
""" This script is used to create training data for the student research project. On starting it the user is presented with a prompt, asking whether to draw base-nodes, nodes or neither of them (random stuff). The user can then start to draw images onto the canvas, which are saved to the respective directory in "data/...
30.333333
89
0.677656
e24d1fee0de9b3d5818ec01800228184ffb5f8d0
3,409
py
Python
DCM/programs/EEGModel_old.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
1
2018-04-20T07:44:11.000Z
2018-04-20T07:44:11.000Z
DCM/programs/EEGModel_old.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
null
null
null
DCM/programs/EEGModel_old.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Tobias Beschreibung: Implementierung der DGL des EEG Modells nach "Dynamic causal models of steady-state responses", hier jedoch in der vereinfachten Version von "A neural mass model for MEG/EEG: coupling and neuronal dynamics", Friston, 2003. Funktionsweise: Die Zustan...
28.173554
180
0.63215
2c9fb49755a65cffa16b3268d48e635cd29058ea
1,353
py
Python
run/core/controllers/login.py
matthewmuccio/FlaskBase
b2d7288a33b20badee1f4667526cfc528599a9ef
[ "MIT" ]
null
null
null
run/core/controllers/login.py
matthewmuccio/FlaskBase
b2d7288a33b20badee1f4667526cfc528599a9ef
[ "MIT" ]
null
null
null
run/core/controllers/login.py
matthewmuccio/FlaskBase
b2d7288a33b20badee1f4667526cfc528599a9ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Blueprint, redirect, render_template, request, session, url_for from core.models import model controller = Blueprint("login", __name__, url_prefix="/login") @controller.route("/", methods=["GET", "POST"]) def show_login(): # In session (user signed in) if "u...
34.692308
96
0.691796
1acbddc40b7f3f0393b6986e4a4743f443e95862
4,309
py
Python
deeplearning2020/datasets.py
fokkerh/deeplearning2020
4446c046982430d5e063919cf9511c8a174c76c2
[ "MIT" ]
133
2020-03-11T09:56:22.000Z
2022-01-03T08:27:00.000Z
deeplearning2020/datasets.py
fokkerh/deeplearning2020
4446c046982430d5e063919cf9511c8a174c76c2
[ "MIT" ]
10
2020-03-12T15:02:46.000Z
2020-11-27T21:21:42.000Z
deeplearning2020/datasets.py
fokkerh/deeplearning2020
4446c046982430d5e063919cf9511c8a174c76c2
[ "MIT" ]
64
2020-03-12T08:11:38.000Z
2021-06-25T08:45:53.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import os import pathlib import typing from typing import TYPE_CHECKING import numpy as np if TYPE_CHECKING: # pragma: no cover import tensorflow as _tf try: import tensorflow as tf assert tf.__version__[:2] == "2." exc...
33.929134
245
0.645161
46c6867a42c465afd66d565896305b56b929934a
4,360
py
Python
cs/lambda_cs/03_data_structures/lru_cache/lru_cache_cachenode.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/03_data_structures/lru_cache/lru_cache_cachenode.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/03_data_structures/lru_cache/lru_cache_cachenode.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Data Structures :: LRU Cache """ class CacheNode: def __init__(self, key, value, prev=None, next=None): """A node in a doubly-linked list-based LRU cache. :param key : Key by which to access nodes. :param value : Value accessed by key. :param pr...
35.16129
78
0.584174
46e749c4581395dd743f5c0c0b55bac91ed6adbe
714
py
Python
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_NumberofIncidentsNoOwner/IncidentsCheck_NumberofIncidentsNoOwner_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_NumberofIncidentsNoOwner/IncidentsCheck_NumberofIncidentsNoOwner_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/IntegrationsAndIncidentsHealthCheck/Scripts/IncidentsCheck_NumberofIncidentsNoOwner/IncidentsCheck_NumberofIncidentsNoOwner_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import demistomock as demisto from IncidentsCheck_NumberofIncidentsNoOwner import main, RED_HTML_STYLE, GREEN_HTML_STYLE @pytest.mark.parametrize('incident_ids, expected', [ (['1', '2', '3'], f"<h1 style={RED_HTML_STYLE}3</h1>"), (['2'], f"<h1 style={RED_HTML_STYLE}1</h1>"), ([], f"<h1 styl...
34
117
0.693277
b3a03874d9a581092e2bbdfa0ea8ed7235ce28a5
828
py
Python
ImageRecognition/obj.names_creation_script.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
4
2019-03-17T19:55:43.000Z
2019-04-30T15:22:36.000Z
ImageRecognition/obj.names_creation_script.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
null
null
null
ImageRecognition/obj.names_creation_script.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 29 21:40:08 2019 @author: ramon """ f = open("C:\\Users\\ramon\\darknet\\build\\darknet\\x64\\data\\obj.names","w") f.write("Rosen 6"+"\n"+"Rosen 7"+"\n"+"Rosen 8"+"\n"+"Rosen 9"+"\n"+"Rosen 10"+"\n"+"Rosen Under"+"\n"+"Rosen Ober"+"\n"+"Rosen König"+"\n"+"Rosen Ass"+"\n...
82.8
662
0.573671
b3ab8dc7f34ec3895810541949ab3aa56e0912e4
2,492
py
Python
apps/training_tf_simple_m/XOCnn.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/training_tf_simple_m/XOCnn.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/training_tf_simple_m/XOCnn.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import numpy as np import keras from keras.models import Sequential from keras.layers import Dense from keras.layers import Conv2D from keras.layers import MaxPooling2D from keras.layers import Flatten import robolib.robogui.pixel_editor as pe import cv2 import robolib.images.feature_extraction as extr DEBUG = True l...
33.226667
122
0.657303
37b1a269fb6ea5550fa30e7cf20c16468228661b
640
py
Python
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Cache # Imagine a web server for a simplified search engine. # This system has 100 machines to respond to search queries, which may then call # out using processSearch(string query) to another cluster of machines to # actually get the result. # The machine which responds to a given query is chosen at random...
45.714286
81
0.75625
afe42d3db30f80ea95efeffef09acfb6fddbe458
144
py
Python
1_Datentypen/03_tuples/_04_i_m_not_a_number_i_have_a_name.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/03_tuples/_04_i_m_not_a_number_i_have_a_name.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/03_tuples/_04_i_m_not_a_number_i_have_a_name.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
############ Tricky => not so optimal ################# # for d in get_data_tricky(): ########### Better solution ########################
16
55
0.368056
ff9b5224e58da6ced836b83b86224e48792dc943
3,086
py
Python
tests/model/test_tfp.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
1
2021-02-22T01:39:50.000Z
2021-02-22T01:39:50.000Z
tests/model/test_tfp.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
tests/model/test_tfp.py
SachsLab/indl
531d2e0c2ee765004aedc553af40e258262f86cb
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import tensorflow.keras.layers as tfkl from tensorflow.keras import backend as K import tensorflow_probability as tfp tfd = tfp.distributions tfpl = tfp.layers tfb = tfp.bijectors scale_shift = np.log(np.exp(1) - 1).astype(np.float32) def test_make_mvn_prior(): from indl...
38.098765
99
0.685029
444482ee3e40ad47d27f3b4f6d4cfa8415591ab4
563
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/intro/intro_formatting.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/intro/intro_formatting.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/intro/intro_formatting.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden product = "Apple iMac" price = 3699 # formatting print("the", product, "costs", price) print("the {} costs {}".format(product, price)) print("the %s costs %d" % (product, price)) print(f"the {product} costs {price}") ############...
19.413793
50
0.618117
4725b2d9460e08b1db7463392919ce9836efd798
8,618
py
Python
slcyPins.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyPins.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyPins.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import slcypi.slcyGeneral as General # GPIO.HIGH = 1 # GPIO.LOW = 0 class OutPin(): """Sets up a pin for output pin <dict>, <list>, <int>, {'out':1} [name] <str>, identify this pin [verbose] <bool>, print every action """ def __init__(self,pins={},name='',verbose=False...
39.172727
117
0.585171
caf07817813d2f673ae14c97f3954fea5808cabe
961
py
Python
src/autograph/services/core/update_devices.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/services/core/update_devices.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/services/core/update_devices.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
from ..autograph import autograph_session from autograph.models import Schema, DeviceGroup, Device def update_devices() -> bool: ''' Обновление машин ''' schemas = Schema.objects.all() existing_device_ids = Device.objects.values_list('device_id', flat=True) for schema in schemas: devices_js...
35.592593
132
0.693028
1b4df27e4f6342a7b77efe03f425c35367b16ca5
5,005
py
Python
analyze.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
6
2016-08-15T17:57:45.000Z
2019-03-19T05:08:29.000Z
analyze.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
10
2016-04-11T10:20:34.000Z
2016-08-09T21:47:48.000Z
analyze.py
TensorVision/MediSeg
222fcab98d82f48f09304eda3cfbfe4d6ac825b7
[ "MIT" ]
7
2016-06-21T04:08:58.000Z
2018-09-01T14:02:40.000Z
#!/usr/bin/env python """Analyze how well a segmentation is.""" import scipy import logging import time import os.path import struct from tensorvision.analyze import merge_cms, get_accuracy, get_mean_accuracy from tensorvision.analyze import get_mean_iou, get_frequency_weighted_iou from tensorvision.analyze import g...
32.290323
78
0.634565
945dd12b54e44a1f6943f243e1a63083b5aa8ce8
4,132
py
Python
docs/content/code/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/code/automated-data-processing.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
m5-101/content/code/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 文件 ########################...
20.66
78
0.475799
b6e4d227423ac2a7fcc3c7b75a9348fdd74613ec
3,497
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex08_reconstruct.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex08_reconstruct.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex08_reconstruct.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch08_binary_trees.util import TreeUtils from ch08_binary_trees.intro.intro_binary_tree_node import BinaryTreeNode from ch08_binary_trees.solutions.ex13_print_tree import nice_print def reconstruct(values): if not values:...
26.293233
78
0.659422
1e118f19ea9d5425d6496f121d1b92042374ce0f
368
py
Python
Chapter12_Multiprocessing/sequential.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter12_Multiprocessing/sequential.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter12_Multiprocessing/sequential.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
import math import time def calc(num_elements): res = 0 for i in range(num_elements): res += math.sqrt(i) print(res) def main(): start_time = time.perf_counter() for _ in range(4): calc(8_000_000) end_time = time.perf_counter() print("Took: {} s".format(end_time - start...
15.333333
53
0.608696
bf909593b7174ed83440fe4f2af62e5fb207f8cf
682
py
Python
app/track.py
ItZzMJ/SliderDownloader
9c5b5aee096e7a56d5d42e1cb8dbd1a104e2b5a9
[ "MIT" ]
null
null
null
app/track.py
ItZzMJ/SliderDownloader
9c5b5aee096e7a56d5d42e1cb8dbd1a104e2b5a9
[ "MIT" ]
null
null
null
app/track.py
ItZzMJ/SliderDownloader
9c5b5aee096e7a56d5d42e1cb8dbd1a104e2b5a9
[ "MIT" ]
null
null
null
class Track: def __init__(self, name, artists, genre=None, artwork_url=None, year=None): self.name = name self.artists = artists self.genre = genre self.artwork_url = artwork_url self.year = year def get_artists(self): return self.artists def print_artists(s...
24.357143
79
0.58651
788b83131386b9f368b5868969a660b65a771d84
1,573
py
Python
books/SystemProgramming/ch3_introduction/mylog.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch3_introduction/mylog.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch3_introduction/mylog.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
#!/bin/env python def printlog(logfile, search_word, start_index, pre_rowcount, next_rowcount): f = open(logfile) logdata = f.read() f.close() index = logdata.find(search_word, start_index) if index >= 0: print("-" * 70) print(f"Log file : {logfile}") print(f"Find this word...
30.843137
92
0.588684
155c4530ec77c5ac534340295dec73da3c216506
317
py
Python
BITs/2014/VOROSHIN_S_I/task_2_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/VOROSHIN_S_I/task_2_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/VOROSHIN_S_I/task_2_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №2, Вариант 7 #Компьютер выводит понравившееся мне высказывание Стендаля на экран #Ворошин С.И. #28.02.2016 print ("Умереть за друга при каких-нибудь исключительных обстоятельствах менее возвышенно, чем ежедневно и втайне жертвовать собой.\n" + "\t\t\t\t\t\t\t Стендаль") input("Нажмите Enter для выхода.")
35.222222
163
0.769716
158e7db4cd83b61167706c5c659ee60939e7ccfa
1,211
py
Python
spo/spo/report/alle_anfragen/alle_anfragen.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
null
null
null
spo/spo/report/alle_anfragen/alle_anfragen.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/report/alle_anfragen/alle_anfragen.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# Copyright (c) 2013, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(filters=None): columns, data = [ {"label": _("Anfrage"), "fieldname": "id", "fieldtype": "Link", "options": "Anfrage"}, {"label...
52.652174
179
0.662263
15b762206a6e42c39e6192cd841cf1da285ef553
2,769
py
Python
tests/test_sections.py
supcik/pymdown-include
fe426425e646d9111d230885b96d605fa78a62c0
[ "Apache-2.0" ]
null
null
null
tests/test_sections.py
supcik/pymdown-include
fe426425e646d9111d230885b96d605fa78a62c0
[ "Apache-2.0" ]
null
null
null
tests/test_sections.py
supcik/pymdown-include
fe426425e646d9111d230885b96d605fa78a62c0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Jacques Supcik # # 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 in writin...
23.666667
76
0.481401
ecd14b3824d343d53a55eca8dfd839a7897476e6
1,221
py
Python
website/apps/uploader/models.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/uploader/models.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/uploader/models.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
import os from django.utils.translation import ugettext_lazy as _ from django.db import models from django.conf import settings from django.core.files.storage import FileSystemStorage from django_extensions.db.fields import * file_store = FileSystemStorage( location=settings.MEDIA_ROOT, base_url=settings.MEDIA_URL...
27.75
77
0.676495
17673019d070252f32a560bc6d17c3d428418d83
98
py
Python
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P07_SumNumbers.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P07_SumNumbers.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Lab/Solutions/P07_SumNumbers.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
number = int(input()) total = 0 for each in range(number): total += int(input()) print(total)
16.333333
26
0.642857
8ad9c7acf9c8222f362766f0b2643a1f0d336816
3,742
py
Python
aw/python/distributed/common/common.py
openharmony-gitee-mirror/test_developertest
49c7d7ade2ee54a3a49a306fedb06d1c845042db
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/aw/python/distributed/common/common.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/aw/python/distributed/common/common.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2021-09-13T12:03:37.000Z
2021-09-13T12:03:37.000Z
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2021 Huawei Device 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 # # Unle...
36.330097
78
0.564404
c1ab4b77e25d52ed47277cf8549cd9e0be216b09
112
py
Python
python/gdal_cookbook/cookbook_general/check_gdal.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
1
2021-06-18T12:39:25.000Z
2021-06-18T12:39:25.000Z
Python/topoBatch/isGdalInstalled.py
AJGeo/DEM-to-Topo
361b5d49445f11b3e24b2a12c32486c12c44af07
[ "MIT" ]
null
null
null
Python/topoBatch/isGdalInstalled.py
AJGeo/DEM-to-Topo
361b5d49445f11b3e24b2a12c32486c12c44af07
[ "MIT" ]
null
null
null
import sys try: from osgeo import ogr, osr, gdal except: sys.exit('ERROR: cannot find GDAL/OGR modules')
22.4
51
0.705357
e78fdba07b0672d9eddedcf2dabd40535c16f207
3,615
py
Python
mod/units/ticket_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/units/ticket_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/units/ticket_handler.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2015-04-18 16:41:24 # @Author : yml_bright@163.com import tornado.web from ..models.ticket import TicketType, TicketUsed, TicketLeft from config import LOCAL, TICKET_INSTRUCTION, TICKET_URL, QR_PATH from sqlalchemy.orm.exc import NoResultFound from r...
33.165138
181
0.622683
2e1c3a265d37423cb461abf18a425c95b53640d5
2,041
py
Python
marsyas-vamp/marsyas/src/marsyas_python/in_out.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/in_out.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/in_out.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """a quick hack to demonstrate getting data between python and marsyas. """ import sys import numpy import pylab import marsyas import marsyas_util #PLOT = True PLOT = False def make_input(filename_input): series = ["Series/input", ["SoundFileSource/src"]] this_net = marsyas_util.c...
27.581081
77
0.676629
996cabd9e3724a7c8e7864b0d27513645013d518
6,261
py
Python
ts2panda/scripts/generate_plugin.py
openharmony-sig-ci/ark_ts2abc
1d6fac6447760fce2e81c3738ac735b4424eed31
[ "Apache-2.0" ]
null
null
null
ts2panda/scripts/generate_plugin.py
openharmony-sig-ci/ark_ts2abc
1d6fac6447760fce2e81c3738ac735b4424eed31
[ "Apache-2.0" ]
null
null
null
ts2panda/scripts/generate_plugin.py
openharmony-sig-ci/ark_ts2abc
1d6fac6447760fce2e81c3738ac735b4424eed31
[ "Apache-2.0" ]
2
2021-09-13T11:32:30.000Z
2021-09-13T12:12:06.000Z
#!/usr/bin/env python3 #coding: utf-8 """ Copyright (c) 2021 Huawei Device 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 ...
36.401163
92
0.592238
51734eae7ddab6c3c186eb03dfb27aedc3d70d91
1,180
py
Python
BlinkingLED3/MeasurementData/HexToDezimal.py
ninasm/M242_Uebungsprojekte
30bb27e53e539b969e1f8fe864bb5c380a4aefeb
[ "MIT" ]
1
2020-04-29T12:13:56.000Z
2020-04-29T12:13:56.000Z
BlinkingLed3/MeasurementData/HexToDezimal.py
LaichR/M242
8418f50e0e2169d25f6e802aa36d98f58c969cf5
[ "MIT" ]
null
null
null
BlinkingLed3/MeasurementData/HexToDezimal.py
LaichR/M242
8418f50e0e2169d25f6e802aa36d98f58c969cf5
[ "MIT" ]
null
null
null
import os, pathlib def RewriteCsv( fname, outName ): with open( fname, "r") as input: lines = input.readlines() lineNr = 0 values = lines[lineNr].split(',') while values[0] != 'Sample-Nr': lineNr+=1 values = lines[lineNr].split(',') ...
36.875
78
0.594915
cfa057a94efe9043f34901dd8a37aaec3c17dc7e
750
py
Python
PIControllerConnection.py
p4squ4lle/PI-Controller-Communication
fb18a7837ab1135ef5ae51b84d3b7a54bc24b42d
[ "MIT" ]
null
null
null
PIControllerConnection.py
p4squ4lle/PI-Controller-Communication
fb18a7837ab1135ef5ae51b84d3b7a54bc24b42d
[ "MIT" ]
null
null
null
PIControllerConnection.py
p4squ4lle/PI-Controller-Communication
fb18a7837ab1135ef5ae51b84d3b7a54bc24b42d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import serial import subprocess import logging from pipython import GCSDevice, pitools # Initialize PI Motor Controller SN = '120060504' STAGES = ['M-521.DG1', 'M-405.DG(FW000.000)', 'M-405.DG(FW000.000)',] REFMODE = 'FRF' PI = GCSDevice('C-844') PI.ConnectUSB(serialnum=SN) pr...
25.862069
70
0.5
cfbfd0244cf993d95e71328cf3fb5c07491531d5
3,288
py
Python
research/cv/DeepID/src/split.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/DeepID/src/split.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/DeepID/src/split.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.533333
94
0.649331
7a9f875b3c1d8ed78fd252ea72c85a9a1944d9f1
1,321
py
Python
Packs/X509Certificate/Scripts/CertificateReputation/CertificateReputation_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/X509Certificate/Scripts/CertificateReputation/CertificateReputation_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/X509Certificate/Scripts/CertificateReputation/CertificateReputation_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest def load_json_data(path): import json with open(path, 'r') as f: return json.load(f) TEST_VECTORS = [ ('test_data/ca.json', 'test_data/ca_result.json'), ('test_data/messy.json', 'test_data/messy_result.json'), ] @pytest.mark.parametrize("input, expected", TEST_VECTORS) def t...
30.022727
98
0.660863
8f10e33cdd450e81c13d5d683737b72d003e6eba
1,722
py
Python
showcase1/com/aaron/jsonexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase1/com/aaron/jsonexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase1/com/aaron/jsonexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# _*_ encoding:utf-8 _*_ """a test module""" __author__ = 'Aaron.qiu' import json import os from pprint import pprint from sysexample import print_hello def load_json(): info_string = """ { "name": "echo", "age": 24, "coding skills": ["python", "matlab", "java", "c", "c++", "ruby", "s...
24.253521
83
0.524971
8f79fa2bbbd5571a8efb73778e36008291b20adc
1,363
py
Python
data/preprocess.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
null
null
null
data/preprocess.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
4
2021-04-30T21:07:54.000Z
2022-02-10T01:23:11.000Z
data/preprocess.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
null
null
null
import os from typing import List import re import string import itertools from pandarallel import pandarallel import pandas as pd import numpy as np import spacy pandarallel.initialize(progress_bar=True) DATA_DIR = os.path.dirname(os.path.abspath(__file__)) NLP = spacy.load("en") SENTENCE_LENGTH_THRESHOLD = 4 de...
27.816327
83
0.711665
a474d5cc27d1901975a6cdf6af93a370ef72c318
820
py
Python
Code/DataTypes/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/DataTypes/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/DataTypes/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
# int a = 1 b = 2 c = a + b print(c) # float f = 1.0 g = 2.0 h = f * g print(h) # string, formatting s = "hello world" name = "martin" t = "hello {}".format(name) print(t) # bool u = True v = False w = u and v x = u or v print(w) print(x) # list l = ["a", "b", "c"] print(len(l), l) l.append("d") print(len(l...
10.25
35
0.528049
a47d223208ba398bbe6f7f7f5876b2a10cfe33cd
229
py
Python
whitespace/lookups.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
whitespace/lookups.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
whitespace/lookups.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
from definitions import IMP def instr_mod(s): if s[:2] in IMP.keys(): return(IMP[s[:2]]) elif s[0] in IMP.keys(): return IMP[s[0]] else: return "INVALID_IMP_INSTRUCTION_MODIFICATION_PARAMETER"
25.444444
63
0.624454
bb0a93d107424d7968779dffe21ab927a776852d
139
py
Python
Curso-Em-Video-Python/2Exercicios/027_ Primeiro_e_Ultimo_nome_de_uma_pessoa.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/027_ Primeiro_e_Ultimo_nome_de_uma_pessoa.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/027_ Primeiro_e_Ultimo_nome_de_uma_pessoa.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome completo: ')).strip().split() print('Primeiro nome: ', nome[0]) print('Segundo nome', nome[len(nome)-1])
34.75
63
0.669065
7024bfabcb7b480309c3b53aef4fbb06241be7b7
3,785
py
Python
user/migrations/0001_initial.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
user/migrations/0001_initial.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
user/migrations/0001_initial.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
# Generated by Django 3.0.4 on 2020-04-24 17:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ('plan', '0001_initial...
41.593407
196
0.564069