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
bc8b8dc0c54eb22ced952ca09844913b18f694cf
122,459
py
Python
Packs/AzureFirewall/Integrations/AzureFirewall/AzureFirewall.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/AzureFirewall/Integrations/AzureFirewall/AzureFirewall.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/AzureFirewall/Integrations/AzureFirewall/AzureFirewall.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
# type: ignore import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import copy from requests import Response class AzureFirewallClient: def __init__(self, subscription_id: str, resource_group: str, client_id: str, api_versio...
41.497458
128
0.624356
9137cd55582f0fdc78883dfbfe12847434eb61bc
3,935
py
Python
scripts/update_support_index.py
pratikkumar-jain/Twitter-Mining
228a852f38b8ff8b8c9b86f270d4b530840696f7
[ "MIT" ]
1
2020-10-04T13:46:21.000Z
2020-10-04T13:46:21.000Z
scripts/update_support_index.py
pratikkumar-jain/Twitter-Mining
228a852f38b8ff8b8c9b86f270d4b530840696f7
[ "MIT" ]
null
null
null
scripts/update_support_index.py
pratikkumar-jain/Twitter-Mining
228a852f38b8ff8b8c9b86f270d4b530840696f7
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 """Script to update the support index for all tweets.""" from cassandra.cluster import Cluster from cassandra.query import BatchStatement from textblob import TextBlob def getTweets(session): """Get all tweets with all fields.""" tweets = {} # Creating dynamic CQL query qr...
29.148148
118
0.665565
5df9d2f3f9533c298b9d542172ad0f4c6837b874
5,974
py
Python
src/onegov/org/models/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.chat import Message from onegov.core.elements import Link, Confirm, Intercooler from onegov.core.utils import paragraphify, linkify from onegov.event import Event from onegov.org import _ from onegov.org.utils import hashtag_elements from onegov.ticket import Tick...
29
78
0.628557
070717e993fa54bd313fbfd19b3a97891b5a5669
635
py
Python
source/pkgsrc/games/unknown-horizons/patches/patch-run__uh.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/games/unknown-horizons/patches/patch-run__uh.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/games/unknown-horizons/patches/patch-run__uh.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-run__uh.py,v 1.1 2019/08/07 12:07:35 nia Exp $ Add PREFIX to list of search paths. --- run_uh.py.orig 2019-08-07 10:59:56.696840075 +0000 +++ run_uh.py @@ -159,7 +159,7 @@ def get_content_dir_parent_path(): # Unknown Horizons.app/Contents/Resources/contents options.append(os.getcwd()) # Try often...
39.6875
113
0.685039
db5b9951745e3fc06c4bd06de896cd5eebbbdfa8
3,934
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_18_Maus_und_Tastatur_steuern/06_auto_moorhuhn/06_auto_moorhuhn.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_18_Maus_und_Tastatur_steuern/06_auto_moorhuhn/06_auto_moorhuhn.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_18_Maus_und_Tastatur_steuern/06_auto_moorhuhn/06_auto_moorhuhn.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 06_auto_moorhuhn.py # In dieser Übung geht es darum das Spiel Moorhuhn zu automatisieren. # Um das Script abzubrechen die Maus nach oben links ziehen. import pyautogui, time, webbrowser, threading, logging from PIL import Image logging.basicConfig(level=logging.INFO, format=('%(asctime)s - %(levelname)s - %(message...
35.763636
130
0.626335
db7c72d3d31bd16fce8e6ecf9fe0f2cf35b3e365
1,965
py
Python
zak.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
zak.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
zak.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- # @Author: lock # @Date: 2017-02-17 23:36:16 # @Last Modified by: lock # @Last Modified time: 2017-04-09 01:45:27 import sys import zipfile import itertools import optparse def attack(zipFile,passwd): try: zipFile.setpassword(passwd) zipFile.extractall() print "The password is: ", pa...
27.291667
107
0.714504
37d72f05653f64dc694f0ff1e455960fe53ebdbf
534
py
Python
compress_images.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2019-01-29T15:57:20.000Z
2019-01-29T15:57:20.000Z
compress_images.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-05-05T19:43:28.000Z
2018-05-05T19:43:28.000Z
compress_images.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-04-24T09:36:57.000Z
2018-04-24T09:36:57.000Z
import os from PIL import Image from blog import top_level_path post_folders = [ folder for folder in (top_level_path / "blog/static/posts").iterdir() ] for folder in post_folders: images_in_post_folder = [ image for image in folder.iterdir() if image.name.lower().endswith((".jpg", ".png")) ...
25.428571
73
0.644195
533da73b7df259f317f1b5a1fe7dc5559820c1a5
1,489
py
Python
src/lcdoc/mkdocs/lp/plugs/chartist/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/lp/plugs/chartist/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/lp/plugs/chartist/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
# :docs:page_assets_example page_assets = { 'header': [ '//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css', '//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js', ] } # :docs:page_assets_example # for convenience we allow to declare aspect not only as name but also as ratio: ar = ''' c...
20.971831
80
0.60779
72cff49e1059afd7bae02f331e6e0c6423b1ece4
7,234
py
Python
Entfernungen.py
BalkanBoy19/Entfernungen
2115968f49e08da81daabd41b626eabcb0b3d8c2
[ "CC-BY-4.0" ]
null
null
null
Entfernungen.py
BalkanBoy19/Entfernungen
2115968f49e08da81daabd41b626eabcb0b3d8c2
[ "CC-BY-4.0" ]
null
null
null
Entfernungen.py
BalkanBoy19/Entfernungen
2115968f49e08da81daabd41b626eabcb0b3d8c2
[ "CC-BY-4.0" ]
null
null
null
import pandas as pd import numpy as np import math import tkinter as tk from tkinter import ttk from PIL import Image, ImageTk import os import sqlite3 from sqlite3 import OperationalError #file = str(os.path.realpath(__file__)) csv_file = "/Users/nedimdrekovic/Python/DB/simplemaps_worldcities/" + "world_cities.csv" s...
51.304965
433
0.639757
f48576bf008afa04bc0229a00dd3494cfeae4b8a
87
py
Python
libapp/apps.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
2
2021-05-31T13:11:50.000Z
2021-06-05T04:37:51.000Z
libapp/apps.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
libapp/apps.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class LibappConfig(AppConfig): name = 'libapp'
14.5
33
0.747126
fe35e0c17c432bf41d1bd14968ce51320441d10d
362
py
Python
source/pkgsrc/chat/py-xmpppy/patches/patch-xmpp_debug.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/chat/py-xmpppy/patches/patch-xmpp_debug.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/chat/py-xmpppy/patches/patch-xmpp_debug.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-xmpp_debug.py,v 1.1.1.1 2011/02/06 21:06:08 schnoebe Exp $ disable debugging in the library --- xmpp/debug.py.orig 2006-03-25 00:11:17.000000000 -0600 +++ xmpp/debug.py @@ -420,4 +420,4 @@ class Debug: DBG_ALWAYS='always' ##Uncomment this to effectively disable all debugging and all debugging...
27.846154
82
0.718232
fe7ecefe88dbdb87e5740ba3f94b8d3ba0fa4df0
4,754
py
Python
translation/merge_temponym_translations.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
translation/merge_temponym_translations.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
translation/merge_temponym_translations.py
dainst/chronoi-corpus-processing
7f508a7572e1022c4c88d1477db029e6619a1f0c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import csv file_english = "/srv/output/heideltime_temponym_files/en_repattern.txt" labels_to_files = { 'idai_vocab': "/srv/output/temponym-translations/translate_en_idai_vocab.txt", 'dbpedia': "/srv/output/temponym-translations/translate_en_dbpedia.txt", 'g...
37.730159
132
0.691207
22b8d999aba760d390c30d8563cb445b10d370f9
2,739
py
Python
project/api/organization_relation/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/api/organization_relation/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/api/organization_relation/schemas.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from marshmallow import fields from project.api import marshmallow from project.api.organization.schemas import ( OrganizationRefSchema, OrganizationWriteIdSchema, ) from project.api.schemas import ( IdSchemaMixin, PaginationRequestSchema, PaginationResponseSchema, SQLAlchemyBaseSchema, Tra...
27.666667
83
0.761957
22f0e84fd8faf5e348a8f12caf96545c795bc04d
2,390
py
Python
src/network/conversations/transaction_validation.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
2
2021-11-08T12:00:02.000Z
2021-11-12T18:37:52.000Z
src/network/conversations/transaction_validation.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
null
null
null
src/network/conversations/transaction_validation.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
1
2022-03-28T13:49:37.000Z
2022-03-28T13:49:37.000Z
from ..bo.messages.prepare_to_validate import Prepare_to_validate from ..bo.messages.vote import Vote from ..bo.messages.global_decision import Global_decision class Transaction_Validation(): def __init__(self, node, transaction) -> None: self.node = node self.transaction = transaction sel...
33.194444
67
0.616736
fe1e69e88ccd48fd3f6ae558d8d3b62e02ee305c
1,359
py
Python
software/supervisor/views/ErrorView.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/views/ErrorView.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/views/ErrorView.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
from PyQt5.QtWidgets import QWidget, QPushButton, QLabel from PyQt5.QtGui import QFont import time class ErrorView(QWidget): def __init__(self, parent): super(ErrorView, self).__init__(parent) font = QFont("Arial", 10) font_title = QFont() font.setBold(1) self.error_lb = ...
34.846154
119
0.639441
600d641830e64177b379294d8caf8503eec2ea69
8,600
py
Python
server.py
alexandrwang/hackmit
57add9846184a6f2bd1d04ea2f6f2588cfc6b68f
[ "MIT" ]
null
null
null
server.py
alexandrwang/hackmit
57add9846184a6f2bd1d04ea2f6f2588cfc6b68f
[ "MIT" ]
null
null
null
server.py
alexandrwang/hackmit
57add9846184a6f2bd1d04ea2f6f2588cfc6b68f
[ "MIT" ]
1
2021-04-02T19:47:06.000Z
2021-04-02T19:47:06.000Z
from flask import Flask, request, redirect import twilio.twiml import subprocess import json import sklearn import random import datetime from sklearn.feature_extraction import DictVectorizer from sklearn import svm import re import nltk import datetime import traceback app = Flask(__name__) AMADEUS_API_KEY = 'L3BWAb...
36.595745
180
0.63686
60e74bcdc55588d426ab312e0951edefd81ebe2d
1,065
py
Python
数据结构/NowCode/13_ReverseList.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/13_ReverseList.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/13_ReverseList.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 反转链表 # 输入一个链表,反转链表后,输出新链表的表头。 # 链表结构 class ListNode: def __init__(self, x): self.val = x self.next = None # 打印链表 def printChain(head): node = head while node: print(node.val) node = node.next class Solution: def ReverseList(self, pHead): if pHead == None: ...
19.722222
44
0.573709
60f2397227ca7609b927a178709510573e782f14
6,621
py
Python
norden/norden/doctype/eyenor_datasheet/eyenor_datasheet.py
thispl/norden
2a208056e948cae42da688e28c15024124254867
[ "MIT" ]
null
null
null
norden/norden/doctype/eyenor_datasheet/eyenor_datasheet.py
thispl/norden
2a208056e948cae42da688e28c15024124254867
[ "MIT" ]
null
null
null
norden/norden/doctype/eyenor_datasheet/eyenor_datasheet.py
thispl/norden
2a208056e948cae42da688e28c15024124254867
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Teampro and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class EyenorDatasheet(Document): pass @frappe.whitelist() def get_header(doc): data = '' data +=...
47.633094
363
0.647787
1c91c3936837af966fa9ab1eceb31bd4d0b6a5cb
1,804
py
Python
projects/api/operators.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/operators.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/api/operators.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Operators blueprint.""" from flask import Blueprint, jsonify, request from ..controllers.operators import list_operators, create_operator, \ update_operator, delete_operator from ..utils import to_snake_case bp = Blueprint("operators", __name__) @bp.route("", methods=["GET"]) def han...
36.08
70
0.636364
c720b0e2a0d1cf8f152b60f92b6d813f4939e109
268
py
Python
tests.py
keithwegner/wordle-finder
4f2de8046ab3d5d3ba21661f9caabd795da11901
[ "Unlicense" ]
null
null
null
tests.py
keithwegner/wordle-finder
4f2de8046ab3d5d3ba21661f9caabd795da11901
[ "Unlicense" ]
1
2022-02-07T03:09:27.000Z
2022-02-07T03:09:27.000Z
tests.py
keithwegner/wordle-finder
4f2de8046ab3d5d3ba21661f9caabd795da11901
[ "Unlicense" ]
null
null
null
""" Just test something for CodeCov tool """ import unittest class Testing(unittest.TestCase): """Class docstring""" def test_boolean(self): """Tests docstring""" self.assertEqual(True, True) if __name__ == "__main__": unittest.main()
17.866667
44
0.645522
c7222542f77e7b9bb119218891edcbec8d309409
262
py
Python
sam_app/sam_app/view_layer/view_exp_api_disabled.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
sam_app/sam_app/view_layer/view_exp_api_disabled.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
sam_app/sam_app/view_layer/view_exp_api_disabled.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
import traceback from sam_core.res_obj import ResBase, STATUS_API_DISABLED class ViewApiDisabledException(Exception): def __init__(self, data=None): self.data = data def handle_exception(context, request): return ResBase(STATUS_API_DISABLED)
21.833333
57
0.778626
c73bec6dbf013da50b02529f23b90f7a1e8e9424
38,277
py
Python
webinterface/form_views.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/form_views.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/form_views.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from .forms import * from django.urls import reverse_lazy, reverse from django.views.generic.edit import CreateView, DeleteView, UpdateView, FormView from django.http import HttpResponseRedirect from django.http import Http404, HttpResponseForbidden from django.shortcuts import get_object_or_404 from .views import back...
47.372525
119
0.584711
40c83915b39ad5b292985e71d5eba7027280741a
756
py
Python
ProjectEuler_plus/euler_040.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_040.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_040.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from functools import reduce ''' terms 1~9 10~99 100~999 ... 9 180 2700 ... 9 * 1 * 10^0 9 * 2 * 10^1 9 * 3 * 10^2 ... ==> 9 * i * (10 ** (i - 1)) ''' for _ in range(int(input().strip())): arr = ...
22.909091
51
0.386243
90e0379f736d03367e4958dea6888b4fd8357521
818
py
Python
apps/training_tf_simple_m/HairClassifier.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/training_tf_simple_m/HairClassifier.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/training_tf_simple_m/HairClassifier.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import cv2 import numpy as np import robolib.modelmanager.downloader as downloader MODEL_FILE = 'FrontalFace.xml' downloader.get_model(downloader.HAARCASCADE_FRONTALFACE_ALT, MODEL_FILE, False) face_cascades = cv2.CascadeClassifier(MODEL_FILE) cap = cv2.VideoCapture(0) cv2.namedWindow('img') while True: ret, img ...
34.083333
116
0.677262
90ead7f9790d29403057398fd411e3e26bde49c5
2,162
py
Python
deutschland/interpol/models/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
445
2021-07-26T22:00:26.000Z
2022-03-31T08:31:08.000Z
deutschland/interpol/models/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
30
2021-07-27T15:42:23.000Z
2022-03-26T16:14:11.000Z
deutschland/interpol/models/__init__.py
kiranmusze/deutschland
86d8ead3f38ad88ad66bb338b9f5a8db06992344
[ "Apache-2.0" ]
28
2021-07-27T10:48:43.000Z
2022-03-26T14:31:30.000Z
# flake8: noqa # import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from deutschland.interpol.model.pet import Pet # or import this package, but b...
43.24
86
0.859389
290b5228198164b71c0073e0f0e6144f0816baea
23,125
py
Python
sdks/python/apache_beam/io/azure/blobstorageio.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
2
2021-12-29T09:01:21.000Z
2022-02-26T14:32:16.000Z
sdks/python/apache_beam/io/azure/blobstorageio.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
4
2021-12-21T21:15:41.000Z
2022-02-15T19:21:28.000Z
sdks/python/apache_beam/io/azure/blobstorageio.py
diegomez17/beam
29dea08c873abc75871674762e68fd5b29b8052b
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
17
2021-12-15T19:31:54.000Z
2022-01-31T18:54:23.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
33.907625
80
0.681557
46ab5c5082ff70c1775a02e01e6b386bc7765e82
1,534
py
Python
research/cv/RefineDet/src/l2norm.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/RefineDet/src/l2norm.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/RefineDet/src/l2norm.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.333333
110
0.677314
b4774b5ad2eec2777012634c8d92517487755fdb
7,176
py
Python
mpy_code/amg88xx.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
1
2021-04-03T18:57:35.000Z
2021-04-03T18:57:35.000Z
mpy_code/amg88xx.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
null
null
null
mpy_code/amg88xx.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------------- # amg88xx.py # Class for AMG88XX GRID-Eye IR 8x8 thermal camera driver # # The MIT License (MIT) # Copyright (c) 2019 Thomas Euler # 2019-07-30, v1 # # Based on the CircuitPython driver: # https://github.com/adafruit/Adafruit_CircuitPython_A...
31.893333
79
0.617196
c3056547178746b9746f59d1996d6c6fbd6e9b30
467
py
Python
4_DeepLearning-Advanced/Verbesserung der Netzwerke/CaliforniaHousing_Regression/CaliforniaHousing_LinReg.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
4_DeepLearning-Advanced/Verbesserung der Netzwerke/CaliforniaHousing_Regression/CaliforniaHousing_LinReg.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
4_DeepLearning-Advanced/Verbesserung der Netzwerke/CaliforniaHousing_Regression/CaliforniaHousing_LinReg.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from CaliforniaHousing_Data import CALIHOUSING cali_data = CALIHOUSING() x_train, y_train = cali_data.x_train, cali_data.y_train x_test, y_test = cali_data.x_test, cali_data.y_test num_features = cali_data.num_featur...
29.1875
55
0.82227
c35b7a43090d9a0075cf48b5c7d45ebe0d58bc2d
4,347
py
Python
test.py
balsi2001/FCU
39269f65d862769d74b27d91ceed9e3bdb75d81f
[ "MIT" ]
null
null
null
test.py
balsi2001/FCU
39269f65d862769d74b27d91ceed9e3bdb75d81f
[ "MIT" ]
null
null
null
test.py
balsi2001/FCU
39269f65d862769d74b27d91ceed9e3bdb75d81f
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select import os from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from time import sle...
35.341463
183
0.668737
48fb49c9edcfd35a4c0dc2cfadd3c378cf795d53
14,720
py
Python
Packs/ApiModules/Scripts/AnsibleApiModule/AnsibleApiModule.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/AnsibleApiModule.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/AnsibleApiModule.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * # noqa: F403 from CommonServerUserPython import * # noqa: F403 import ansible_runner # pylint: disable=E0401 import json from typing import Dict, cast, List, Union, Any # Dict to Markdown Converter adapted from https://github.com/PolBaladas/torsimany/ def dict2md(json_block: Unio...
42.057143
121
0.581114
d2ae10612fdb810c1a397e66c8fa8bcdf1a823e6
4,006
py
Python
haas_lib_bundles/python/docs/examples/smart_panel/esp32/code/soundttf.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/smart_panel/esp32/code/soundttf.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/smart_panel/esp32/code/soundttf.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import lvgl as lv # RESOURCES_ROOT = "S:/Users/liujuncheng/workspace/iot/esp32/solution/MicroPython/smart_panel/smart_panel/" RESOURCES_ROOT = "S:/data/pyamp/" sound_ttf_alive = False def sound_ttf_back_click_callback(e, win): global sound_ttf_alive if (sound_ttf_alive): from smart_panel import load_...
35.451327
108
0.657763
82a35ebab1791aacebe5364e86973ec67fcb6370
734
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_21/fix_reorder_level.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v6_21/fix_reorder_level.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_21/fix_reorder_level.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe from erpnext.stock.doctype.item.item import DuplicateReorderRows def execute(): if frappe.db.has_column("Item", "re_order_level"): for item in frappe.db.sql("""select name, default_warehouse, re_order_level, re_order_qty from tabItem where ifnull(re_order...
29.36
91
0.73297
7d947181914b0ae7b40f04e1e5bd811bc90c6eaa
2,230
py
Python
statusPersistence.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
null
null
null
statusPersistence.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
null
null
null
statusPersistence.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
null
null
null
############################################################################ ### Written by Noah Powers # ### # ### Designed to be run on the CS Team Server # ### Tested i...
35.396825
231
0.39417
c4b56e03eced9c49a0d17ccba4a5271beffadaf6
417
py
Python
Data Structures/DataStructures-Problems/Arrays/Converting a Sequence to Another/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Data Structures/DataStructures-Problems/Arrays/Converting a Sequence to Another/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Data Structures/DataStructures-Problems/Arrays/Converting a Sequence to Another/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
n = int(input()) a = list(map(int, input().split())) m = int(input()) b = list(map(int, input().split())) c = 0 a.sort() b.sort() r1 = a if len(a)>len(b) else b r2 = a if len(a)<len(b) else b for i in range(min(n,m)): if r1[i]!=r2[i]: if r2[i] not in r1: c = c+1 elif r1[i] not in r2: ...
21.947368
35
0.494005
6fbd8877ebc0a3e89aa46b94002e4b6d22bf1c2e
4,750
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/os_networks_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/os_networks_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/os_networks_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
29.874214
136
0.664421
d2111a513d226cdafad8515ba845f6fb2d6cf5ad
3,992
py
Python
apps/home/views.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
apps/home/views.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
4
2020-09-21T01:32:14.000Z
2020-09-21T01:32:47.000Z
apps/home/views.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ # import mpld3 # from mpld3.plugins import Zoom, LineLabelTooltip # from matplotlib import pyplot as plt from datetime import datetime from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import render from django.views.generic import TemplateView # from .models import Dat...
35.327434
94
0.613226
d230f851a440d9a77a7b15d92f6b4a8d9ffb06cc
69
py
Python
dbs/U1/Name.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
dbs/U1/Name.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
dbs/U1/Name.py
qiaw99/SS2020
b4e2f1fca4b1ed0482802909054db7e3408fa739
[ "Apache-2.0" ]
null
null
null
string = input("What's your name?\n") print("Hallo " + string + "!")
23
37
0.594203
7391e1b45c350397c4cf26b13dbe32896ea8dd78
3,324
py
Python
Contrib-Inspur/openbmc/poky/bitbake/lib/bb/remotedata.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/bb/remotedata.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/bitbake/lib/bb/remotedata.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
""" BitBake 'remotedata' module Provides support for using a datastore from the bitbake client """ # Copyright (C) 2016 Intel Corporation # # SPDX-License-Identifier: GPL-2.0-only # import bb.data class RemoteDatastores: """Used on the server side to manage references to server-side datastores""" def __ini...
31.065421
99
0.547533
73b616d5f340145ad3714fbdb8ccb7a85c5a8e96
5,172
py
Python
ChannelAdmin/plugin.py
jztech101/Loggy
1883a09ebbb6c8120cae648aebeb2771e7f39d9b
[ "MIT" ]
null
null
null
ChannelAdmin/plugin.py
jztech101/Loggy
1883a09ebbb6c8120cae648aebeb2771e7f39d9b
[ "MIT" ]
6
2018-02-09T18:39:37.000Z
2018-08-31T18:40:02.000Z
ChannelAdmin/plugin.py
jztech101/Loggy
1883a09ebbb6c8120cae648aebeb2771e7f39d9b
[ "MIT" ]
null
null
null
import supybot.utils as utils from supybot.commands import * import supybot.plugins as plugins import supybot.ircmsgs as ircmsgs import supybot.ircutils as ircutils import supybot.callbacks as callbacks try: from supybot.i18n import PluginInternationalization _ = PluginInternationalization('ChannelAdmin') exce...
38.029412
109
0.569219
f728661a3070ebaff8acf86cbb8fae3a9b6e04a3
548
py
Python
exercises/fr/exc_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_01_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Importe le Matcher from spacy.____ import ____ nlp = spacy.load("fr_core_news_sm") doc = nlp("Le constructeur Citröen présente la e-Méhari Courrèges au public.") # Initialise le matcher avec le vocabulaire partagé matcher = ____(____.____) # Crée un motif qui recherche les deux tokens : "e-Méhari" et...
26.095238
79
0.74635
b20a6ed5f3dc3c4d39729b1366d8d2ce4edab2b5
1,124
py
Python
apps/projects/migrations/0003_auto_20180427_0823.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/projects/migrations/0003_auto_20180427_0823.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/projects/migrations/0003_auto_20180427_0823.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-04-27 08:23 from django.db import migrations categories = [ { 'name': 'Sonstiges', 'children': [] }, ] def save(model, name, parent=None): try: entry = model.objects.get(name=name, parent=parent) except model.DoesNotExist: entry = mode...
24.434783
63
0.623665
35f9a4bc0e87342acbdd30f0c567aa3b92987e1f
2,314
py
Python
mysite/mysite/urls.py
hschueh/TrollersHackNTU
9303a07909f89b7b2511db1fc5185be35047e0c4
[ "Apache-2.0" ]
null
null
null
mysite/mysite/urls.py
hschueh/TrollersHackNTU
9303a07909f89b7b2511db1fc5185be35047e0c4
[ "Apache-2.0" ]
null
null
null
mysite/mysite/urls.py
hschueh/TrollersHackNTU
9303a07909f89b7b2511db1fc5185be35047e0c4
[ "Apache-2.0" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
36.730159
79
0.685825
c4583ab64311e4c570742882c68c490abfed6c80
129
py
Python
scripts/HelloPython.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/HelloPython.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/HelloPython.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
// LANGUAGE: Python // ENV: Python 3.5 // AUTHOR: Lucas Marioza // GITHUB: https://github.com/LucasMarioza print("Hello World!")
21.5
42
0.697674
c4808276665bebf6386f4d2dfdc96796088d94d8
2,663
py
Python
Packs/DBotTruthBombs/Integrations/DBotTruthBombs/DBotTruthBombs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/DBotTruthBombs/Integrations/DBotTruthBombs/DBotTruthBombs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/DBotTruthBombs/Integrations/DBotTruthBombs/DBotTruthBombs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import random import traceback import demistomock as demisto # noqa: F401 import urllib3 from CommonServerPython import * # noqa: F401 # Disable insecure warnings urllib3.disable_warnings() BASE_URL = 'https://api.chucknorris.io' CATEGORIES = ['career', 'dev', 'history', 'money', 'movie', 'music', 'science', 'sp...
25.361905
106
0.634623
6716a4ef46d85c90a82ebd4a4fbd8d295a89da4a
3,794
py
Python
zencad/libs/screw.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/libs/screw.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/libs/screw.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
"""Бивектор углового и линейного параметра""" import numpy import math import zencad.util class screw: """Геометрический винт. Состоит из угловой и линейной части.""" __slots__ = ['ang', 'lin'] def __init__(self, ang=(0, 0, 0), lin=(0, 0, 0)): self.ang = zencad.util.vector3(ang) ...
27.693431
101
0.579863
67c9e21ae74e09b6bced12acf0a3ae6825929980
1,373
py
Python
tests/mock/test_serde.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
tests/mock/test_serde.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
tests/mock/test_serde.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import pytest from skil.utils.io import serialize_config, deserialize_config from skil import Experiment import os import sys if sys.version_info >= (3, 3): import unittest.mock as mock else: import mock as mock MOCK_CONFIG = { 'experiment_id': 'foo', 'experiment_name': 'bar', 'workspace_id': 'b...
22.145161
62
0.686089
db07cb8de5b7b7155fd831e793881467f1e6c695
3,224
py
Python
src/server/app/endpoints/standby/task_management/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/app/endpoints/standby/task_management/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/app/endpoints/standby/task_management/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
from flask import Flask, Blueprint, render_template, abort, g, request from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt, set_access_cookies, get_jti, set_refresh_cookies, unset_jwt_cookies,...
30.130841
176
0.706886
222f85fe0f6b32ca57b33e7ae0cc5e6ce5ee1b48
1,807
py
Python
src/onegov/gazette/models/category.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/models/category.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/models/category.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm.abstract import AdjacencyList from onegov.core.orm.mixins import ContentMixin from onegov.core.orm.mixins import TimestampMixin from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import or_ from sqlalchemy_utils import observes from sqlalchemy.orm import object_session c...
28.234375
79
0.663531
3f280e281906994152be309072cfd38aa82586bf
5,694
py
Python
haas_lib_bundles/python/libraries/si7006/si7006.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/si7006/si7006.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/si7006/si7006.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2015-2021 Alibaba Group Holding Limited MicroPython's drive for SI7006 Author: HaaS Date: 2021/09/09 """ from driver import I2C from utime import sleep_ms # The commands provided by SI7006 Si7006_MEAS_REL_HUMIDITY_MASTER_MODE = 0xE5 Si7006_MEAS_REL_HUMIDITY_NO_MASTER_MODE = 0xF5 ...
31.285714
91
0.62399
1884f20dae2c31a29f918bc69c4591009dd3eee0
242
py
Python
Python/Collections/word_order.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/word_order.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/word_order.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
from collections import OrderedDict o = OrderedDict() for i in range(int(input())): n = input().strip() if n in o: o[n] += 1 else: o[n] = 1 print(len(o.items())) print(' '.join(map(str, [v for i,v in o.items()])))
22
51
0.549587
188a1456ea3db532bf7e86b111dbd3905349aa88
289
py
Python
___Python/KarPoo/po1_kennenlernen/p06_persistence/m01_pickle.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/po1_kennenlernen/p06_persistence/m01_pickle.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/KarPoo/po1_kennenlernen/p06_persistence/m01_pickle.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import pickle from p01_kennenlernen.m01_kennenlernen import teilnehmerliste # Schreiben with open("teilnehmer.pickle", "wb") as datei: pickle.dump(teilnehmerliste, datei) # Lesen with open("teilnehmer.pickle", "rb") as datei: liste = pickle.load(datei) print(liste)
22.230769
62
0.723183
18aec12eb373b56e1c88ad735d58deef548fc86b
3,674
py
Python
main.py
rxhan/EWA
5d0726e72bab0f867ec8ecf3b6a8e77ec2d3d776
[ "MIT" ]
null
null
null
main.py
rxhan/EWA
5d0726e72bab0f867ec8ecf3b6a8e77ec2d3d776
[ "MIT" ]
null
null
null
main.py
rxhan/EWA
5d0726e72bab0f867ec8ecf3b6a8e77ec2d3d776
[ "MIT" ]
null
null
null
import logging import sys import threading import traceback from pymodbus.datastore import ModbusSlaveContext, ModbusServerContext from pymodbus.device import ModbusDeviceIdentification from pymodbus.server.sync import StartTcpServer from pymodbus.version import version from ewa import ServerData FORMAT = ('%(asctim...
36.376238
94
0.536473
e19713cc2c9d24b9933514966c9463ac861700c6
279
py
Python
Curso-Em-Video-Python/2Exercicios/074_Maior_e_menor_valoresvem_Tupla.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/074_Maior_e_menor_valoresvem_Tupla.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/074_Maior_e_menor_valoresvem_Tupla.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from random import randint numero = (randint(0, 30), randint(0, 30), randint(0, 30), randint(0, 30), randint(0, 30)) print(' Os numeros sorteados foram: ', end='') for n in numero: print(f'{n}', end=' ') print(f'\n Maior numero: {max(numero)}\n Menor numero: {min(numero)}')
39.857143
89
0.645161
830e07c909b79b2989c76f2360d15638bfd7544e
969
py
Python
SoSe-21/Code-Vorlesungen/VL-7/Gruppe-Montag/VL-Listen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-7/Gruppe-Montag/VL-Listen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-7/Gruppe-Montag/VL-Listen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# ETH = 0, ADA = 1, BTC = 2, LINK = 3, BTT = 4 # krypto = ["ETH", "ADA", "BTC", "LINK", "BTT"] # Ausgangstext text = "Die Kryptowährung Ethereum erreicht in diesem Jahr noch 10.000,00€ und ist eine tolle Kryptowährung." # Splitten des Textes in einzelne Wörter in einer Liste text_gesplittet = text.split(" ") # print...
35.888889
109
0.722394
832fb70a271f8795c2b4953723300ad786b285ff
52,010
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/vehicles.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/contributed/sumopy/coremodules/demand/vehicles.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/contributed/sumopy/coremodules/demand/vehicles.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
44.797588
244
0.473717
55c3a48273f17217fdc8300dea14cb19cae3a807
113
py
Python
top/clearlight/base/liaoxuefeng/function/RecursiceFunction.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/function/RecursiceFunction.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/function/RecursiceFunction.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
# n的阶乘 def fact(n): if n == 1: return 1 return n * fact(n - 1) print(fact(4)) print(fact(100))
11.3
26
0.513274
3672375116ef1166ac3d88cd553bf7606365caf5
367
py
Python
007-C103-DataVisualization-1/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
2
2021-09-28T13:55:20.000Z
2021-11-15T10:08:49.000Z
007-C103-DataVisualization-1/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
null
null
null
007-C103-DataVisualization-1/__main__.py
somePythonProgrammer/PythonCode
fb2b2245db631cefd916a960768f411969b0e78f
[ "MIT" ]
1
2022-01-20T03:02:20.000Z
2022-01-20T03:02:20.000Z
# DataVisualization-1 # This is a python script made by @somePythonProgrammer # for a WhiteHat Junior project. # imports import pandas as pd import plotly_express as px # read data and show plot df = pd.read_csv('008-C103-DataVisualization-1/csv/corona_data.csv') plot = px.scatter(df, x='date', y='cases', color='cou...
28.230769
87
0.749319
3676d16cb6312ad15f12cc081a53bbc48924d906
92
py
Python
2014/08/table-youth-population/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/08/youth-population-map/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/08/youth-population-map/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 = '1TvyIcbWrkHJeRbzGRbrD7K87QtRgoT6Cp7pJaSi7SKw'
23
68
0.847826
36b63103721a6da75997204d3581ac95663f2b29
395
py
Python
divvydash/dashboard/models.py
Sawyer-Middeleer/divvy-dash
5ef1738d47516949f7288b56b5c92a5c7d1d9d42
[ "MIT" ]
null
null
null
divvydash/dashboard/models.py
Sawyer-Middeleer/divvy-dash
5ef1738d47516949f7288b56b5c92a5c7d1d9d42
[ "MIT" ]
5
2020-06-06T01:45:31.000Z
2021-06-10T19:59:14.000Z
divvydash/dashboard/models.py
Sawyer-Middeleer/divvy-dash
5ef1738d47516949f7288b56b5c92a5c7d1d9d42
[ "MIT" ]
null
null
null
from django.db import models import json import requests class Station(models.Model): num_bikes_disabled = models.IntegerField() station_id = models.CharField(max_length=50) num_bikes_available = models.IntegerField() num_docks_available = models.IntegerField() last_reported = models.DateTimeField...
28.214286
60
0.762025
18730981577488b7622858bd8b2418410d828d11
3,546
py
Python
Liter_Client/LoginWindow.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Client/LoginWindow.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Client/LoginWindow.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
from .PicBase64 import get from .TLabel import TLabel from .TLineEdit import TLineEdit from .TPushButton import TPushButton from .RoundShadow import RoundShadow from PyQt5.QtCore import (QRegExp, pyqtSignal) from PyQt5.QtGui import (QColor, QFont, QRegExpValidator) class LoginWindow(RoundShadow): close_signal = p...
44.886076
139
0.620135
a17c5b9939deeb3763cf848d60819e16904c3369
3,556
py
Python
tests/views/test_event_place.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_event_place.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_event_place.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest @pytest.mark.parametrize("db_error", [True, False]) def test_create(client, app, utils, seeder, mocker, db_error): user_id, admin_unit_id = seeder.setup_base() url = utils.get_url("manage_admin_unit_places_create", id=admin_unit_id) response = utils.get_ok(url) if db_error: uti...
26.147059
81
0.661136
3db218259d6001db1ad9f80905e4f8f52f3e5dc6
993
py
Python
experimental/OUTDATED/ts2dataclass/scripts/extract_ts_from_lsp.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
experimental/OUTDATED/ts2dataclass/scripts/extract_ts_from_lsp.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
experimental/OUTDATED/ts2dataclass/scripts/extract_ts_from_lsp.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """extract_ts_from_lsp.py - extracts the typescript parts from the specification of the language server protocol: https://github.com/microsoft/language-server-protocol/tree/gh-pages/_specifications """ def extract(source, dest): with open(source, 'r', encoding='utf-8') as f: src = f...
25.461538
83
0.553877
b13d9228cdd2e6e481b032b1819508c7ab969ef3
1,162
py
Python
lat/fits.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
lat/fits.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
lat/fits.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
""" TODO: *Make Event class for event file. """ import numpy as np # import pandas as pd # import matplotlib.pyplot as plt def make_gti(time, dt=1, min_points=1): # search for irregular interval diff = np.round(np.diff(time), 6) idxs_split = np.array(np.where(diff != dt)) + 1 # add 0 and -1 to id...
20.75
59
0.589501
656aef961510986883e29cd3c350c1f5f8f89a8b
3,696
py
Python
src/test/tests/rendering/evalcubic.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/evalcubic.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/evalcubic.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: evalcubic.py # # Tests: mesh - 3D structured, single domain # plots - pseudocolor # # Programmer: Cyrus Harrison # Date: Mon Feb 7 15:52:37 PST 2011 # # Modifications...
30.04878
113
0.572511
657db8755ed61ef72a0cb48e4d4ec741ded5146b
4,323
py
Python
v2/rules3.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
1
2021-03-31T03:41:06.000Z
2021-03-31T03:41:06.000Z
v2/rules3.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
null
null
null
v2/rules3.py
timm/py
28be3bb63433895e2bcab27ad82cb0b0cc994f37
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3.9 # vim: ts=2 sw=2 sts=2 et : import re,sys,copy from collections import defaultdict BEAM=7 def zeros() : return defaultdict(lambda:0) def sets() : return defaultdict(lambda:set()) class o(object): def __init__(i, **k): i.__dict__.update(**k) def __repr__(i): return i.__class__.__nam...
27.890323
80
0.536896
02a0ab8347896ef6c7cf9baacd963eb357e34e59
110
py
Python
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.2-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.2-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.2-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 2.2 Return Kth to Last: # Implement an algorithm to find the kth to last element of a singly linked list
27.5
80
0.736364
02ae664820669b630b3a508d4575b371603221d5
426
py
Python
scripts/in_out_degree.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
1
2021-01-20T00:37:31.000Z
2021-01-20T00:37:31.000Z
scripts/in_out_degree.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
17
2021-03-03T14:48:54.000Z
2021-09-08T15:52:50.000Z
scripts/in_out_degree.py
tliu68/maggot_connectome
ef4bbd2011fa9e03da187fcca8c8c1ca79209a36
[ "MIT" ]
2
2021-03-05T12:23:20.000Z
2021-03-29T11:49:53.000Z
#%% [markdown] # ## Degree shit #%% [markdown] # ### Plot the distribution of out - in degree #%% [markdown] # ### Plot the out - in degree sequence # Colored by broad cell type #%% [markdown] # ### Plot the adjacency matrix sorted by degree difference #%% [markdown] # ### Plot the adjacency matrix sorted by averag...
20.285714
63
0.652582
02c096283a1c510f943264ce0dbf0903b90fc583
3,912
py
Python
Veranstaltungen/models.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Veranstaltungen/models.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Veranstaltungen/models.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
""" Die Modelle der Veranstaltungen und Medien - die ArtDerVeranstaltung speichert gemeinsame Attribute - eine Veranstaltung muss einer Art zugeordnet sein (zu überdenken?) - ein Medium kann gehoert_zu Veranstaltung sein und erbt div. Attribute - kann auch selbst Preis, Datum, etc, festlegen - beim 1.Speichern von...
36.90566
109
0.686861
b23c79f3a4c898fdc27368f30c26bad042d2f61b
4,234
py
Python
3_DeepLearning-CNNs/04_CNN_Optimization/3-Validation/Dataset_class.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/04_CNN_Optimization/3-Validation/Dataset_class.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/04_CNN_Optimization/3-Validation/Dataset_class.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
''' Validation: die Trainingsdaten aufsplitten in Trainings und Validierungsdaten um die Genauigkeit bzw. Leistung des Netzwerkes zu testen ,da das Netz erst am Ende mit den Originaldaten (y) getestet werden sollte. -> Evaluierung erst mit dem finalen Netz durchführen ''' import numpy as np from sklearn.preprocessin...
45.042553
99
0.679735
a2308d4c0858b267df0e273388135e93ea4c0aef
538
py
Python
Dropbox/Dropbox Delete by path/Dropbox Delete by path.py
MithunKulkarniCTS/MithunKulkarniCTS
a9c264209d25495dea7ae919b8ad7080449f5db2
[ "MIT" ]
4
2019-12-07T03:27:41.000Z
2021-03-11T02:30:40.000Z
Dropbox/Dropbox Delete by path/Dropbox Delete by path.py
MithunKulkarniCTS/MithunKulkarniCTS
a9c264209d25495dea7ae919b8ad7080449f5db2
[ "MIT" ]
2
2021-08-17T03:06:52.000Z
2021-09-17T13:18:19.000Z
Dropbox/Dropbox Delete by path/Dropbox Delete by path.py
MithunKulkarniCTS/MithunKulkarniCTS
a9c264209d25495dea7ae919b8ad7080449f5db2
[ "MIT" ]
37
2019-08-19T19:41:16.000Z
2022-02-03T08:43:59.000Z
import sys import json if (3,0) <= sys.version_info < (4,0): import http.client as httplib elif (2,6) <= sys.version_info < (3,0): import httplib def execute(Path,AccessToken): headers = { "Authorization": "Bearer "+ AccessToken, "Content-Type": "application/json" } params = { "pat...
24.454545
72
0.624535
a2952a06fb0219452b145f0e4fdf4c949eccd289
433
py
Python
src/onegov/org/views/dashboard.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/dashboard.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/dashboard.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Secret from onegov.org import _, OrgApp from onegov.org.layout import DashboardLayout from onegov.org.models import Dashboard @OrgApp.html(model=Dashboard, template='dashboard.pt', permission=Secret) def dashboard(self, request, layout=None): layout = layout or DashboardLayout(sel...
27.0625
73
0.711316
0c023c2945e35bc9bc175cdcefb197a36da995b0
507
py
Python
Lehrjahr_2/Modul_122/python/integer.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
5
2015-05-19T14:26:53.000Z
2016-06-24T17:03:03.000Z
Lehrjahr_2/Modul_122/python/integer.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
null
null
null
Lehrjahr_2/Modul_122/python/integer.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
6
2015-05-26T06:25:05.000Z
2020-04-30T07:25:30.000Z
#!/usr/bin/python3.4 # #SCRIPT: integer.py #AUTHOR: Severin Kaderli #PURPOSE: Some calculations in python #USAGE: ./integer.py from math import sqrt # String ausgeben print("--------------------") print("Hello Python!") print("--------------------") #Integer: Pythogaras print("Integer:") print("Pythagoras a^2+b^2=c^...
18.777778
39
0.617357
ac085c162014846eaff7c34d61eb62bc4b81bba2
8,985
py
Python
module/d_optimal_design.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
module/d_optimal_design.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
module/d_optimal_design.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
import numpy as np import sys from operator import itemgetter import itertools sys.path.insert(0,'.\module') from boundaries import ub, lb class Doptimaldesign(): def __init__(self, var): self.var = var self.schritte = round(5000**(1/len(self.var))) def rasterbau(self): # Skalare vektor fü...
30.35473
190
0.525543
ac2cbd9e70bd95a90acf5df66a65552b2191e49b
2,163
py
Python
test/test_npu/test___rshift__.Scalar.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test___rshift__.Scalar.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test___rshift__.Scalar.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # 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/licen...
36.05
81
0.656033
ac6321fdee02efe187ce40883aaa9565a3c7fb5c
1,496
py
Python
notebooks/util/solr_helper/queries.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
notebooks/util/solr_helper/queries.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
notebooks/util/solr_helper/queries.py
dbmdz/webarchiv-dh-bestandsausbau
98c271a09cdb026d1d58133f49dcb3e1c9fcf9b6
[ "MIT" ]
null
null
null
import re import pysolr def get_facets(solr_url: str, facet_field: str): solr = pysolr.Solr(solr_url) results = solr.search( "*:*", "select", **{"facet": "on", "facet.field": facet_field, "rows": 0} ) annotations = results.facets["facet_fields"][facet_field] annotations_counted = [] f...
28.226415
81
0.56016
5a2025adc87356f092ef539893a458ab69715734
3,912
py
Python
research/cv/IRN/src/data/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/IRN/src/data/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/IRN/src/data/dataset.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...
33.724138
79
0.570297
f07062db1a4b4a3391cc3de32840be758337c1e1
406
py
Python
python/unittest/mock/realpython/patch_objects_attributes.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/realpython/patch_objects_attributes.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/realpython/patch_objects_attributes.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch from my_calendar import get_holidays, requests class TestCalendar(unittest.TestCase): @patch.object(requests, "get", side_effect=requests.exceptions.Timeout) def test_get_holidays_timeout(self, mock_requests): with self.assertRaises(requests.exceptions....
25.375
75
0.751232
689a2420d570e636e97b87195ff8ae7fa98b3900
711
py
Python
BIZa/2014/Zyabko_A_A/Task_7_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Zyabko_A_A/Task_7_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Zyabko_A_A/Task_7_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 7. Вариант 45 #Как шестая, только с балами. #Зябко Антон #20.05.2016 import random Chudesa=("Пирамида Хеопса", "Висячие сады Семирамиды","Статуя Зевса"," Храм Артемиды"," Мавзолей в Галикарнасе"," Колосс Родосский","Александрийский маяк") Chudo=random.randint(0,6) rand=Chudesa[Chudo] print("Попробуй угадать о...
30.913043
155
0.722925
68b3ff6ef2d5aab335159e72dfb7a60214fe36f5
139
py
Python
python/primary/func_return.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
1
2020-07-29T16:43:46.000Z
2020-07-29T16:43:46.000Z
python/primary/func_return.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
python/primary/func_return.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: func_key.py def maximun(a, b): if a>b: return a else: return b print(maximun(2,5))
12.636364
23
0.561151
0be1ca499790f6978cd5ef5f26ff5c8226579636
738
py
Python
Kirk Byers - Python for Network Engineers/Lesson 1/Exercise 2.py
Caradawg/HBS
467b73c52bbba7b43f37a62e4302a4ff84ff0684
[ "MIT" ]
null
null
null
Kirk Byers - Python for Network Engineers/Lesson 1/Exercise 2.py
Caradawg/HBS
467b73c52bbba7b43f37a62e4302a4ff84ff0684
[ "MIT" ]
null
null
null
Kirk Byers - Python for Network Engineers/Lesson 1/Exercise 2.py
Caradawg/HBS
467b73c52bbba7b43f37a62e4302a4ff84ff0684
[ "MIT" ]
null
null
null
from __future__ import print_function try: ip_addr = raw_input("Please enter an IP address: ") except NameError: ip_addr = input("Please enter an IP address: ") octects = ip_addr.split(".") print() print("{:^15}{:^15}{:^15}{:^15}".format("Octet1", "Octet2", "Octet3", "Octet4")) print("-" * 60) ...
36.9
85
0.523035
0bf30081dce5d5a810e9d72f08193cb14c8e6027
19,943
py
Python
ds/projects/blog/intro_data_indexing/trashcoco.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/projects/blog/intro_data_indexing/trashcoco.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/projects/blog/intro_data_indexing/trashcoco.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" COCOPanda :: Trash Panda COCO Data Manipulation The goal of this package is to convert the COCO dataset into the Trash Panda YOLO format (nested class directories). The code in this file is based on: - The official COCO Python API: pycocotools - https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pyc...
34.207547
89
0.504739
f0c983368751d8234739574bc1694714439633c1
171
py
Python
Python/Topics/Json/02-json-file.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Python/Topics/Json/02-json-file.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Python/Topics/Json/02-json-file.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
import json with open("data.json", "r") as file: data = json.load(file) print(type(data)) with open("data2.json", "w") as file: json.dump(data, file, indent=4)
17.1
37
0.637427
f0d13676e38be2a0abe6b9a1c00d8c72e3e605bb
7,317
py
Python
AP_SS16/504/python/functions.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/504/python/functions.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/504/python/functions.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from uncertainties import ufloat import uncertainties from uncertainties.unumpy import uarray from scipy.optimize import curve_fit import os # print("Cwd:", os.getcwd()) # print("Using matplotlibrc from ", mpl.matplotlib_fname()) fig = plt.f...
28.807087
146
0.606669
502750154dd827a5fe1eb170ee630d61079837e5
9,923
py
Python
wz/backend/interface_pupils.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/backend/interface_pupils.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/backend/interface_pupils.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ backend/interface_pupils.py - last updated 2021-05-22 Controller/dispatcher for pupil management. ============================== Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
34.695804
77
0.608082
4f6d6ac5f391150c184014bf6e5dbca7886a584b
6,909
py
Python
dataloader/skmt.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
dataloader/skmt.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
dataloader/skmt.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: LiuXin @contact: xinliu1996@163.com @Created on: DATE{TIME} """ from __future__ import print_function, division import os from PIL import Image import numpy as np import torch from torch.utils.data import Dataset from mypath import Path from torchvision import transforms from datalo...
31.83871
94
0.563902
509dbfbfae44ebddcfe4f9bc85955c201dd1c1fb
148
py
Python
src/utils.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/utils.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/utils.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
def has_context(txt, context_list): if any(context in str(txt) for context in context_list): return True else: return False
24.666667
60
0.662162
66f7cb5be5de274865acf6605ab0d328229f966a
249
py
Python
.arch/arch/mkdocs.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
.arch/arch/mkdocs.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
.arch/arch/mkdocs.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Passthrough to Standard Mkdocs """ import os, sys def main(): if sys.argv[0] != __file__: sys.argv.pop(1) sys.exit(os.system('mkdocs %s' % ' '.join(sys.argv[1:]))) if __name__ == '__main__': main()
14.647059
61
0.582329
0f3ec116b5e851fbbb065235c839d694aacd103a
103
py
Python
Fastir_Collector/hooks/hook-dump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/hooks/hook-dump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/hooks/hook-dump.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
datas = [('winpmem_x64.sys', ''), ('winpmem_x86.sys', ''), ('msvcr100.dll', 'DLLs')]
25.75
34
0.466019
70bb39a8bf3b8dbca4a95b8772d9575544109129
3,851
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_metadata.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_metadata.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_metadata.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
# -*- coding: utf-8 -*- import os import sys import shutil from PyQt5.QtCore import QSettings from .gto_info import gtoInfo class gtoMetadata(object): def __init__(self): # system self.path_plugin = os.path.dirname(__file__) self.info = gtoInfo(self) self.debug = self.info.debug ...
34.079646
95
0.631265
385d6494085a229930d5eff0677b6beb6361c9a6
1,262
py
Python
30_days_of_Code/23_bst_level_order_traversal.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/23_bst_level_order_traversal.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/23_bst_level_order_traversal.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys class Node: def __init__(self, data): self.right = self.left=None self.data = data class Solution: def insert(self, root, data): if root is None: return Node(data) else: if data <= root.data: cur = self.i...
26.291667
57
0.534865
38862c58586a22726cd7947c6b0c5d4f8d90e2c1
394
py
Python
Projekteuler/projecteuler_aufgabe002.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
Projekteuler/projecteuler_aufgabe002.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
Projekteuler/projecteuler_aufgabe002.py
kilian-funk/Python-Kurs
f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f
[ "MIT" ]
null
null
null
""" Jeder neue Term in der Fibonacci-Reihe wird gebildet, indem die beiden vorherigen Zahlen addiert werden. Wenn man mit 1 und 2 beginnt, sind die ersten 10 Terme wie folgt: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Finden Sie die Summe aller geraden Terme der Fibonacci-Reihe, die 4 Millionen nicht überschreiten. """...
21.888889
72
0.730964
aa679492872c76158f6b4c11ce6ccac40bcca45a
22,447
py
Python
DC_01.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
2
2020-11-25T07:53:48.000Z
2021-09-19T14:19:51.000Z
DC_01.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
DC_01.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DC_01.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_DC_MainWindow(object): def setupUi(self, DC_MainWindow): DC_Main...
56.399497
142
0.711097
fafe0fe62cc6f39cf2d75488cfca04f6108086c7
6,194
py
Python
autojail/model/datatypes.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/model/datatypes.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/model/datatypes.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import ast import operator import re from typing import TYPE_CHECKING, List, Union import simpleeval from ..utils.string import remove_prefix if TYPE_CHECKING: from pydantic.typing import CallableGenerator StrIntFloat = Union[str, int, float] class JailhouseFlagList(list): """A list that can also parse J...
27.166667
110
0.545851
87d6d540589e855934a741b6757672495c3a2f5e
2,548
py
Python
solutions/pedestrian_search/webserver/src/service/models/bi_lstm.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/pedestrian_search/webserver/src/service/models/bi_lstm.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/pedestrian_search/webserver/src/service/models/bi_lstm.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import random seed_num = 223 torch.manual_seed(seed_num) random.seed(seed_num) """ Neural Networks model : Bidirection LSTM """ class BiLSTM(nn.Module): def __init__(self, args): super(BiLSTM, self).__init__() self.hidden_dim = args.num_lstm_units V =...
33.973333
121
0.67033
aa3723d4556373583286b8012a7657701b323443
3,625
py
Python
Packs/TwitterIOCHunter-FullDailyFeed/Integrations/TwitterIOCHunterFullDailyFeed/TwitterIOCHunterFullDailyFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/TwitterIOCHunter-FullDailyFeed/Integrations/TwitterIOCHunterFullDailyFeed/TwitterIOCHunterFullDailyFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/TwitterIOCHunter-FullDailyFeed/Integrations/TwitterIOCHunterFullDailyFeed/TwitterIOCHunterFullDailyFeed.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def test_module(client, url): result = client._http_request('GET', full_url=url) if isinstance(result, list): return 'ok' else: return 'Test failed: ' + str(result) def find_type_and_value(indicato...
39.402174
101
0.611586
a4ac15b5966a27b53bf974a729a8e6f49b28de22
4,463
py
Python
modules/parameters.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/parameters.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/parameters.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" PARAMETERS for the Neural network IMPORT BY: <parameters.py> RETURN: Several Parameters INFO: All Parameters can be changed only here and spread over the whole Project. Only the Dimensions and Connections of Matrices A and B as well as some substantial Parameters can be changed...
33.810606
108
0.47905
352cabb39bb77e0ecfb07f64dc7698474f406e57
1,826
py
Python
get-weblist-2-main/gets.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
get-weblist-2-main/gets.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
get-weblist-2-main/gets.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python # -*- coding: utf-8 -* #Greetz : Jamet31337 - JametKNTLS - h0d3_g4n - Moslem - Kiddenta #http://secpriv8.com/crack.php #https://www.blog-gan.org ##################################### import requests, sys, re, os, time, random, json from colorama import Fore, Back, Style from re import findall as reg ...
27.253731
180
0.578313
52f8af074bc90014a30dde0dc31a9b565dde7e7b
92
py
Python
2014/12/quiz-grammar/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/12/quiz-grammar/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/12/quiz-grammar/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 = '16kHnY93l_I1XvNiU0p3oXM-R2WT8jdTYlVzyYJUBE8A'
23
68
0.836957
eaa37935d2ce7c1001eed249971c786b082a44ad
10,023
py
Python
src/onegov/election_day/formats/election/wabsti_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/election/wabsti_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/election/wabsti_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Candidate from onegov.ballot import CandidateResult from onegov.ballot import ElectionResult from onegov.election_day import _ from onegov.election_day.formats.common import EXPATS, validate_integer from onegov.election_day.formats.common import FileImportError from onegov.election_day.formats...
33.079208
79
0.545346