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
97b143a625ae8a0523c3e9e9d1962c33d36209c6
2,445
py
Python
external/Assimp/port/PyAssimp/pyassimp/material.py
IKholopov/TierGine
1a3c7cd2bed460af672d7cd5c33d7e7863043989
[ "Apache-2.0" ]
36
2017-03-27T16:57:47.000Z
2022-01-12T04:17:55.000Z
external/Assimp/port/PyAssimp/pyassimp/material.py
IKholopov/TierGine
1a3c7cd2bed460af672d7cd5c33d7e7863043989
[ "Apache-2.0" ]
56
2019-01-31T19:57:09.000Z
2019-08-11T17:09:16.000Z
external/Assimp/port/PyAssimp/pyassimp/material.py
IKholopov/TierGine
1a3c7cd2bed460af672d7cd5c33d7e7863043989
[ "Apache-2.0" ]
24
2019-01-14T23:05:04.000Z
2020-03-24T13:35:27.000Z
## <hr>Dummy value. # # No texture, but the value to be used as 'texture semantic' # (#aiMaterialProperty::mSemantic) for all material properties # *not* related to textures. # aiTextureType_NONE = 0x0 ## <hr>The texture is combined with the result of the diffuse # lighting equation. # aiTextureType_DIFFUSE = 0x1 ## ...
27.166667
64
0.762781
e7df70c258915d7e843436756251798bf210779e
5,689
py
Python
BugTracker-main/sendmail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
BugTracker-main/sendmail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
BugTracker-main/sendmail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from config import app # Sending confirmation email to the reporter class ReporterSendMail: def __init__(self, recipient_email, system, severity, steps, message): # Email and password for your SMTP server ...
87.523077
1,150
0.675163
821f97a61aa7a46e2b10c705af230637a92179e0
876
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_observer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_observer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_observer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
from unittest.mock import Mock, patch import pytest from patterns.behavioral.observer import Data, DecimalViewer, HexViewer @pytest.fixture def observable(): return Data("some data") def test_attach_detach(observable): decimal_viewer = DecimalViewer() assert len(observable._observers) == 0 observ...
25.764706
80
0.753425
417fc976e5fb277b2cbdaf4bddd58babbd7ec570
1,293
py
Python
数据结构/NowCode/12_FindKthToTail.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/12_FindKthToTail.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/12_FindKthToTail.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 链表中倒数第K个节点 # 输入一个链表,输出该链表中倒数第k个结点。 # 链表结构 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 FindKthToTail(self, head, k): if k <= 0 or...
20.203125
49
0.501933
68fce63461c016416b598b5a35d6b356fdb5d81e
2,294
py
Python
2016/day01_no_time_for_a_taxicab/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day01_no_time_for_a_taxicab/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day01_no_time_for_a_taxicab/python/src/part2.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Find shortest taxicab distance.""" import re from common import get_input class Walker(object): """Class for turning walking directions into distance from start.""" def __init__(self, input_string): """Initialize.""" self.directions = self._listify_input(input_strin...
29.037975
72
0.547079
d475380cb190a0eb870c03d1764b5d95f3892d0e
3,591
py
Python
2-resources/__CHEAT-SHEETS/cheatsheets-master/cheatsheets-master/dynamodb/python/script.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
103
2019-08-30T10:04:40.000Z
2022-03-30T22:14:44.000Z
2-resources/__CHEAT-SHEETS/cheatsheets-master/cheatsheets-master/dynamodb/python/script.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
6
2021-04-08T08:36:27.000Z
2021-10-01T07:47:17.000Z
2-resources/__CHEAT-SHEETS/cheatsheets-master/cheatsheets-master/dynamodb/python/script.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
51
2019-06-10T06:11:46.000Z
2022-03-30T16:33:05.000Z
import boto3 import time import random import datetime client = boto3.Session(region_name='eu-west-1').client('dynamodb', aws_access_key_id='', aws_secret_access_key='', endpoint_url='http://localhost:4567') userlists = {} userlists['john'] = {'id':'johnsnow9801', 'firstname': 'john', 'age': '23', 'location': 'south ...
43.792683
152
0.614314
2b4bcac9adf6cddccee381cf59c2e64ef6dd93fc
584
py
Python
code/Dictionaries.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
code/Dictionaries.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
code/Dictionaries.py
ju1-eu/pyAnfaenger
59440e99d69582ee2c7a022c8b819e7c78f41ac0
[ "MIT" ]
null
null
null
# Liste names = ["Ben", "Jan", "Peter", "Melissa"] noten = [1, 2, 1, 4] # dict {(key, value)} names_and_noten = {"Ben": 1, "Jan": 2, "Peter": 1, "Melissa": 4} # Wert hinzufügen names_and_noten.update({"Pia": 3}) # oder names_and_noten["Julia"] = 1 # Wert entfernen names_and_noten.pop("Julia") # Keys for k in names_a...
19.466667
64
0.64726
5aa325525b7c0bda7b96ce01496d99f232ccd463
2,554
py
Python
2016/day04_security_through_obscurity/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day04_security_through_obscurity/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day04_security_through_obscurity/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
""".""" import pytest from solution1 import RoomAnalyzer as ra1 from solution2 import RoomAnalyzer as ra2 class TestPart1UnitTests: """.""" @pytest.mark.parametrize("test_input, expected", [ ("aaaaa-bbb-z-y-x-123[abxyz]", ("aaaaabbbzyx", 123, "abxyz")), ("a-b-c-d-e-f-g-h-987[abcde]", ("abcde...
31.925
75
0.550117
5ab17da7bc5572c55edd0f9d96682a83df68d6a3
31,731
py
Python
_scripts/automate.py
sakshamtaneja21/help.jabref.org
98fba5fa4a774c38b34f354b42329df75ce8e2de
[ "CC-BY-4.0" ]
null
null
null
_scripts/automate.py
sakshamtaneja21/help.jabref.org
98fba5fa4a774c38b34f354b42329df75ce8e2de
[ "CC-BY-4.0" ]
null
null
null
_scripts/automate.py
sakshamtaneja21/help.jabref.org
98fba5fa4a774c38b34f354b42329df75ce8e2de
[ "CC-BY-4.0" ]
1
2019-10-20T06:48:18.000Z
2019-10-20T06:48:18.000Z
from __future__ import print_function import argparse import codecs import datetime import json import os import subprocess from os import listdir from os.path import isfile, join, isdir import logger try: import frontmatter except ImportError, e: logger.error("The 'python-frontmatter' package is not availabl...
41.916777
203
0.68838
5acf44f33419d3b8101e2d5a04696c52b121d755
99
py
Python
src/kandidaturen/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
1
2021-12-20T20:15:26.000Z
2021-12-20T20:15:26.000Z
src/kandidaturen/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
null
null
null
src/kandidaturen/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class KandidaturenConfig(AppConfig): name = 'kandidaturen'
16.5
36
0.777778
5ae487f8ac356238b78460ec7d02d0db0dff40e3
1,170
py
Python
LaTeX/table/table_tex.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
4
2018-11-14T12:03:05.000Z
2019-09-03T14:33:28.000Z
LaTeX/table/table_tex.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
null
null
null
LaTeX/table/table_tex.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
1
2018-11-17T14:39:22.000Z
2018-11-17T14:39:22.000Z
#!/usr/bin/env python3 # coding:utf-8 # author mingtinglai@qq.com # simple scripts to transfrom text to LaTeX table import sys def generate_tex_table(file_in,file_out): file=file_in tex=file_out with open(file) as ftext: context =ftext.readlines() f=open(tex,'w'); f.write("\\documentclass{a...
24.893617
50
0.579487
7a245ac8aaf32194b05d940e0f7e9b96f686b93b
677
py
Python
aggregator_auth/connect.py
semen603089/aggregator-backend
04294e0e466c0ecfd322ec1839d3e6e6bb4d2155
[ "BSD-3-Clause" ]
null
null
null
aggregator_auth/connect.py
semen603089/aggregator-backend
04294e0e466c0ecfd322ec1839d3e6e6bb4d2155
[ "BSD-3-Clause" ]
null
null
null
aggregator_auth/connect.py
semen603089/aggregator-backend
04294e0e466c0ecfd322ec1839d3e6e6bb4d2155
[ "BSD-3-Clause" ]
null
null
null
import keyring from sqlalchemy.exc import SQLAlchemyError from sqlalchemy import create_engine, MetaData, Table DB_USER = 'grigorevsi' system = 'app' DB_HOST = 'db.profcomff.com' DB_NAME = 'dev' DB_PORT = '25432' def get_pass(system: str, username: str): return keyring.get_password(system, username) DB_PASS = ...
22.566667
109
0.72969
7a2d9ff5776017cdd2e746e79e8ce39561b9cb41
11,105
py
Python
src/resources/movietemplates/curveoverlay_ref.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/resources/movietemplates/curveoverlay_ref.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/resources/movietemplates/curveoverlay_ref.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
############################################################################### # Function: Sequence1Frames_set_timeslider # # Purpose: # This is a callback function for sequence 1's IterateCallbackAndSaveFrames # function. This function sets the time and updates the time slider so # it has the right time value. ...
37.265101
115
0.577848
64f37b5a2c000d16e73bc4962fbae1dfba9ea790
1,323
py
Python
data/scripts/merge.py
salaniz/berlin-events
5ad6c3b37d39194293223996a520d3a252f8a199
[ "BSD-3-Clause" ]
null
null
null
data/scripts/merge.py
salaniz/berlin-events
5ad6c3b37d39194293223996a520d3a252f8a199
[ "BSD-3-Clause" ]
null
null
null
data/scripts/merge.py
salaniz/berlin-events
5ad6c3b37d39194293223996a520d3a252f8a199
[ "BSD-3-Clause" ]
null
null
null
import json, csv with open('../events_location.json', 'r') as f: json_data = json.load(f) csv_data = [] with open('../events_data.csv', 'r') as f: csv_reader = csv.DictReader(f) for row in csv_reader: csv_data.append(row) print csv_data[0].keys() print json_data[0].keys() merged_data = [] i = 0 p...
30.068182
58
0.640212
8f490d241158cbb2263bebb6f96df756bfb7af21
4,813
py
Python
flask_mapbox/app.py
gaiar/bachelor-beuth-2019
391af71bd6ec483b239ed200cee880651cb5396a
[ "MIT" ]
null
null
null
flask_mapbox/app.py
gaiar/bachelor-beuth-2019
391af71bd6ec483b239ed200cee880651cb5396a
[ "MIT" ]
null
null
null
flask_mapbox/app.py
gaiar/bachelor-beuth-2019
391af71bd6ec483b239ed200cee880651cb5396a
[ "MIT" ]
null
null
null
import json import folium import pandas as pd import xlrd import requests from geojson import Point, Feature # import geojson from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash app = Flask(__name__) app.config.from_object(__name__) # read configuration file from the enviro...
34.134752
149
0.654893
56d097d3b8d7980630a156980f25c5b15df2d9da
6,432
py
Python
WiFiBroot-master/wireless/sniper.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
WiFiBroot-master/wireless/sniper.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
WiFiBroot-master/wireless/sniper.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from scapy.sendrecv import sniff from scapy.sendrecv import sendp from scapy.config import conf from scapy.layers.dot11 import Dot11 from scapy.layers.dot11 import RadioTap from scapy.layers.dot11 import Raw from scapy.layers.dot11 import Dot11Deauth from utils import org import signal import sys import time import th...
34.767568
147
0.674751
a45391c6385c7498426810ce5afb1ac06b5c82be
181
py
Python
ProjectEuler_plus/euler_048.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_048.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_048.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from math import sqrt N = int(input().strip()) + 1 total = 0 for i in range(1, N): total += pow(i, i, 10 ** 10) print(int(str(total)[-10:]))
16.454545
32
0.60221
74524aaeb49f0d165ce802410f4d74b67290db0b
151
py
Python
Python/Itertools/itertools_permutations.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Itertools/itertools_permutations.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Itertools/itertools_permutations.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
from itertools import permutations word, k = input().strip().split() p = [''.join(a) for a in permutations(word, int(k))] print('\n'.join(sorted(p)))
25.166667
52
0.662252
7458b0a76de3d48ff651eb0fde20ecf1b0cbb833
926
py
Python
schemas/problem.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
schemas/problem.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
schemas/problem.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 save_problem_schema = { 'type': 'object', 'properties': { 'title': {'type': 'string'}, 'content': {'type': 'string'}, 'time_limit': {'type': 'integer'}, 'memory_limit': {'type': 'integer'}, 'difficulty' : {'type': 'string'}, 'case_list': {'type':...
26.457143
94
0.515119
7761878ba2c1c5ed6e970937a0849fc5746df656
327
py
Python
gshiw/quotes_web/manage.py
superlead/gsw
fc2bb539e3721cc554b4116b553befd653d2ec74
[ "MIT" ]
null
null
null
gshiw/quotes_web/manage.py
superlead/gsw
fc2bb539e3721cc554b4116b553befd653d2ec74
[ "MIT" ]
null
null
null
gshiw/quotes_web/manage.py
superlead/gsw
fc2bb539e3721cc554b4116b553befd653d2ec74
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": profile = os.environ.get('QUOTES_WEB_PROFILE', 'develop') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "quotes_web.settings.%s" % profile) from django.core.management import execute_from_command_line execute_from_command_line(sy...
29.727273
87
0.75841
bb28f7ec80ef51c0ffa3ad8fac04c259d92c2d12
260
py
Python
models/__init__.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
models/__init__.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
models/__init__.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
from models.trained_models import Resnet18 from models.trained_models import AlexNet from models.trained_models import VGG16 from models.trained_models import DenseNet161 from models.trained_models import Inception_v3 from models.alexnet import Vanilla_AlexNet
43.333333
46
0.888462
bb4cb190b12f8f3deca5ce966bb0c252ffa336e7
8,860
py
Python
sanity_check.py
koriavinash1/BioExp_Experiments
ea556037ed885ebbdbb4b04d43469a0b889fc112
[ "BSD-3-Clause" ]
2
2020-11-20T04:28:18.000Z
2020-11-23T09:05:43.000Z
sanity_check.py
koriavinash1/BioExp_Experiments
ea556037ed885ebbdbb4b04d43469a0b889fc112
[ "BSD-3-Clause" ]
null
null
null
sanity_check.py
koriavinash1/BioExp_Experiments
ea556037ed885ebbdbb4b04d43469a0b889fc112
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from keras.models import load_model import scipy.cluster.hierarchy as shc from sklearn.cluster import AgglomerativeClustering import sys sys.setrecursionlimit(10**6) import matplotlib.pyplot as plt sys.path.append('../BioExp') from BioExp.helpers.metrics import * from BioExp.helpers.losses import * ...
36.163265
120
0.690745
7022c06f8d43d5c3c5176308f9ab5efd2575229b
676
py
Python
数据结构/NowCode/11_PrintListFromTailToHead.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/11_PrintListFromTailToHead.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/11_PrintListFromTailToHead.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 从头到尾打印链表 # 输入一个链表,按链表从尾到头的顺序返回一个ArrayList。 # 链表结构 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: # 返回从尾部到头部的列表值序列,例如[1,2,3] def printListFr...
19.882353
48
0.578402
3b8ad2abcb7c1f58219df07a4e525568f15b06ca
1,503
py
Python
src/onegov/org/exports/base.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/exports/base.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/exports/base.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org.models import Export from onegov.town6 import _ def payment_date_paid(payment): if not payment.paid: return if payment.source == 'manual': # there is not better way to know for now return payment.last_change if payment.source == 'stripe_connect': # meta-prop...
37.575
73
0.654025
8eadcfb892024242ba039e682181f3dcac243889
771
py
Python
python/en/_matplotlib/gallery/lines_bars_and_markers/masked_demo.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/lines_bars_and_markers/masked_demo.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/lines_bars_and_markers/masked_demo.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ lines_bars_and_markers/masked_demo.py Matplotlib > Gallery > Lines, bars and markers > Masked Demo https://matplotlib.org/gallery/lines_bars_and_markers/masked_demo.html#sphx-glr-gallery-lines-bars-and-markers-masked-demo-py """ import matplotlib.pyplot as plt import...
26.586207
125
0.674449
c64083cdbb6bc51279e8d61f14f8bb6353a1ec31
8,600
py
Python
cogs/setup.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
1
2021-09-03T15:14:40.000Z
2021-09-03T15:14:40.000Z
cogs/setup.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
1
2022-01-02T15:18:08.000Z
2022-02-14T12:46:20.000Z
cogs/setup.py
zImPinguin/Bump-Bot
3f449a4e5581a35a5cff998e94a13ae33dbe2b04
[ "MIT" ]
null
null
null
import discord, asyncio from core.database import Servers from core.embeds import Embeds from core.files import Data commands = discord.ext.commands class BumpSetup(commands.Cog): def __init__(self, bot): self.bot = bot self.config = Data("config").yaml_read() self.settings = Data("settin...
41.95122
195
0.614767
0680715fb87395cc84968553ece1b783529d1128
136
py
Python
apps.py
klml/kohrsupply
89ae3ebae120398e8259dbe77c3b092485cc79f9
[ "MIT" ]
null
null
null
apps.py
klml/kohrsupply
89ae3ebae120398e8259dbe77c3b092485cc79f9
[ "MIT" ]
9
2017-06-15T10:24:09.000Z
2018-08-01T21:07:25.000Z
apps.py
klml/kohrsupply
89ae3ebae120398e8259dbe77c3b092485cc79f9
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class kohrsupplyConfig(AppConfig): name = 'kohrsupply'
17
39
0.801471
00375be90a613ab5cd6043f22cb4deaf1382f7a4
346
py
Python
Chapter9_Packages/1_Packages/code.py
kernbeisser/UdemyPythonPro
000d5e66031bcc22b2d8f115edfbd5ef0e80d5b9
[ "MIT" ]
4
2020-12-28T23:43:35.000Z
2022-01-01T18:34:18.000Z
Chapter9_Packages/1_Packages/code.py
kernbeisser/UdemyPythonPro
000d5e66031bcc22b2d8f115edfbd5ef0e80d5b9
[ "MIT" ]
null
null
null
Chapter9_Packages/1_Packages/code.py
kernbeisser/UdemyPythonPro
000d5e66031bcc22b2d8f115edfbd5ef0e80d5b9
[ "MIT" ]
9
2020-09-26T19:29:28.000Z
2022-02-07T06:41:00.000Z
from my_package.calculations import addition from my_package.calculations import division from my_package.calculations import multiplication from my_package.calculations import subtraction from my_package.printing import hello_world hello_world() print(addition(1, 2)) print(subtraction(1, 2)) print(multiplication(1, ...
26.615385
50
0.83237
cc4035011dbf1192d4cd94b47116fc9d567354e8
4,748
py
Python
src/unittest/python/GK/test_crud.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/unittest/python/GK/test_crud.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/unittest/python/GK/test_crud.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
import pytest import json from server.server import app, db import re from server.databaseHandler import createDBAndAdminUser,login userCounter = 0 @pytest.fixture def client(): ''' This method is like the @setup Method. It gets called before every test. :return: Returns a REST interface which is used...
27.766082
127
0.648062
aead4bc57a94d6059889b3eb06930efa48c66de6
429
py
Python
Zh3r0/2021/crypto/twist_and_shout/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Zh3r0/2021/crypto/twist_and_shout/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Zh3r0/2021/crypto/twist_and_shout/challenge.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from secret import flag import os import random state_len = 624*4 right_pad = random.randint(0,state_len-len(flag)) left_pad = state_len-len(flag)-right_pad state_bytes = os.urandom(left_pad)+flag+os.urandom(right_pad) state = tuple( int.from_bytes(state_bytes[i:i+4],'big') for i in range(0,state_len,4) ) random.setst...
28.6
87
0.745921
aec17c9e87a24b9ff7c00abc71f18927344b7a30
2,377
pyde
Python
sketches/hero01/hero01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/hero01/hero01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/hero01/hero01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Hero 01 from sprites3 import Hero, Orc, Obstacle tilesize = 32 terrain = [[0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,7], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7], [0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,7], [0,0,0,0,0,8,8,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,...
29.345679
66
0.454775
c9fb0f8ebbd0b19751210ef3bd1d1790555c3ab4
7,877
py
Python
DWD_hist_weather.py
TrismegistusS/DWD_historical_weather
6a903feea98bdd028ad58dd6d8856f706b328e7b
[ "MIT" ]
1
2021-06-01T10:30:00.000Z
2021-06-01T10:30:00.000Z
DWD_hist_weather.py
TrismegistusS/DWD_historical_weather
6a903feea98bdd028ad58dd6d8856f706b328e7b
[ "MIT" ]
null
null
null
DWD_hist_weather.py
TrismegistusS/DWD_historical_weather
6a903feea98bdd028ad58dd6d8856f706b328e7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # DWD_hist_weather.py # # (c) 2021 Holger Leerhoff # # Dieses Modul importiert Daten aus dem umfangreichen OpenData-Angebot # des Deutschen Wetterdienstes (DWD) in ein Pandas-Dataframe. # # Regionalität # # Die Auswahl der Wetterstationen erfolgt hier nach Bundesländern. Auf # Gru...
48.325153
89
0.573949
4ea3a0dcd2c25937127edf1829caf1b7e18a4575
139
py
Python
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section3ConditionalsLoopsFunctionsAndABitMore/24ErrorHandling.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
1
2022-02-02T21:56:08.000Z
2022-02-02T21:56:08.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section3ConditionalsLoopsFunctionsAndABitMore/24ErrorHandling.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
27
2020-06-27T23:25:59.000Z
2022-02-27T20:40:56.000Z
Python/Courses/LearnToCodeInPython3ProgrammingBeginnerToAdvancedYourProgress/python_course/Section3ConditionalsLoopsFunctionsAndABitMore/24ErrorHandling.py
JamieBort/LearningDirectory
afca79c5f1333c079d0e96202ff44ca21b2ceb81
[ "Info-ZIP" ]
null
null
null
number = input("Type a number: ") try: number = float(number) print("The number is: ", number) except: print("Invalid number")
19.857143
36
0.633094
1109ae93791128000604ddf124ebeadf105e2846
3,562
py
Python
skimind/kernel/pdfManag/extract.py
NathBangwa/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
1
2020-11-13T18:30:47.000Z
2020-11-13T18:30:47.000Z
skimind/kernel/pdfManag/extract.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
5
2020-11-13T18:16:48.000Z
2021-09-08T01:04:59.000Z
skimind/kernel/pdfManag/extract.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
null
null
null
# excel reader import xlrd # system tools import os # datetime import pandas as pd # regular expression import re # copy import copy def extract_metadatas(metadatas, is_betfile=True): """ suppression du caractere versus remplacement des donnees vides (-) transformation ...
23.281046
95
0.52667
feca8821c2a71890d348d55d6596060b0e8c15af
662
py
Python
angstrom/2019/crypto/Secret_Sheep_Society/manager.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2019/crypto/Secret_Sheep_Society/manager.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2019/crypto/Secret_Sheep_Society/manager.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import base64 import json from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad class Manager: BLOCK_SIZE = AES.block_size def __init__(self, key): self.key = key def pack(self, session): cipher = AES.new(self.key, AES.MODE_CBC) iv = cipher.iv dec = json.dumps(session).encode() enc ...
23.642857
51
0.70997
3a2ac405532f3af64dc27adf252a53eab657c4d4
3,459
py
Python
pyramid-creator/app/utils/slide_utils.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
pyramid-creator/app/utils/slide_utils.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/utils/slide_utils.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
import base64 import os from typing import Any, Dict, List, Tuple from app.schemas.slide import Slide def convert_binary_to_base64(binary_data: bytes): """ Converts bytes to base64 :param binary_data: Data to convert :return: The data in base64 """ return base64.b64encode(binar...
28.121951
88
0.625903
3a8dccd4067fa93ab125ce3063cd8685da4e8522
252
py
Python
retro/cores/gba/src/platform/python/cinema/util.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/cinema/util.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/cinema/util.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
def dictMerge(a, b): for key, value in b.items(): if isinstance(value, dict): if key in a: dictMerge(a[key], value) else: a[key] = dict(value) else: a[key] = value
25.2
40
0.436508
c95e36268fee4f635fdeff040e5f9871c8981a24
5,090
py
Python
MAIN/STM32F405_C/NORMAL/history/V28/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V28/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V28/display.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
from micropython import const from pyb import UART import utime import register LCD_COM_SPEED = const(921600) LCD_COM_PORT = const(3) class LCDCommand: class Page: Buffer = str() Backup = str() Repeat = False Headline = "P." Entry = "1" #Page 0_1 Main = "2" ...
32.83871
112
0.582122
2821431eafdeea45b18a5b97332139b738202dbe
895
py
Python
speakerphat/speakerphatled.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
speakerphat/speakerphatled.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
speakerphat/speakerphatled.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
# Updated from: # git clone https://github.com/pimoroni/speaker-phat.git # speaker-phat/python/speakerphat.py import atexit from sys import exit try: import sn3218 except ImportError: exit("This library requires the sn3218 module\nInstall with: sudo pip install sn3218") stupid_led_mappings = [...
20.340909
91
0.670391
282d111aa47b111e35f16fa964919249981c16d2
10,270
py
Python
official/cv/openpose/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/openpose/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/openpose/modelarts/train_start.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...
42.970711
112
0.630088
25181fdb9f6efc5700c1cd156c8eb548c49cdefe
209
py
Python
examples/01 hello/Bot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2020-01-16T08:40:00.000Z
2020-01-16T08:40:00.000Z
examples/01 hello/Bot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
examples/01 hello/Bot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2019-10-16T08:11:51.000Z
2019-10-16T08:11:51.000Z
from samt import Bot bot = Bot() @bot.answer("Hello") @bot.answer("/start") @bot.answer("Hallo") def start(): return "Hello, new user, how can I help you?" if __name__ == "__main__": bot.listen()
13.933333
49
0.631579
c29e708e86c49f9855aad0a25240296cc438dadc
313
py
Python
module/spammer.py
Goodhand11/Spamer
80e7d44e13417e2eebb14c57653dd6c17d351064
[ "Apache-2.0" ]
null
null
null
module/spammer.py
Goodhand11/Spamer
80e7d44e13417e2eebb14c57653dd6c17d351064
[ "Apache-2.0" ]
null
null
null
module/spammer.py
Goodhand11/Spamer
80e7d44e13417e2eebb14c57653dd6c17d351064
[ "Apache-2.0" ]
null
null
null
# - Spammer v1 # | Description: spams a phone number by sending it a lot of sms by using Grab API # | Author: P4kL0nc4t # | Date: 5/12/2017 # | Disclaimer: Editing author will not make you the real coder import spammer_class spammer = spammer_class.Spammer() spammer.author = "P4kL0nc4t" spammer.main()
31.3
83
0.71885
6c3d2d29a6ac823d883558f4bb30a9c51f532846
6,903
py
Python
oldp/apps/backend/processing/content_processor.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/backend/processing/content_processor.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/backend/processing/content_processor.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
import glob import logging.config import os from enum import Enum from django.conf import settings from oldp.apps.backend.processing import ProcessingError from oldp.apps.backend.processing.processing_steps import BaseProcessingStep ContentStorage = Enum('ContentStorage', 'ES FS DB') logger = logging.getLogger(__na...
34.343284
116
0.656961
dd9003ab0ee5a1422ecb9328b37e45da2d4620c7
25,679
py
Python
src/test_zoe.py
En3rGy/14106_Zoe
9273fca7775a5b6fc9a2f9c5411957083352ce4c
[ "MIT" ]
1
2021-01-01T09:12:12.000Z
2021-01-01T09:12:12.000Z
src/test_zoe.py
En3rGy/14106_Zoe
9273fca7775a5b6fc9a2f9c5411957083352ce4c
[ "MIT" ]
4
2020-12-23T23:04:09.000Z
2022-03-16T21:21:38.000Z
src/test_zoe.py
En3rGy/14106_Zoe
9273fca7775a5b6fc9a2f9c5411957083352ce4c
[ "MIT" ]
null
null
null
# coding: UTF-8 import unittest import time # functional import import urllib import urllib2 import ssl import threading from datetime import datetime import json ######################################################### class hsl20_4: LOGGING_NONE = 0 def __init__(self): pass class BaseModule...
40.890127
138
0.580552
06f7222086d29a9b6402a84888a4b5d65dd40296
1,271
py
Python
Packs/SafeNet_Trusted_Access/Scripts/STAPostProcessing/STAPostProcessing_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SafeNet_Trusted_Access/Scripts/STAPostProcessing/STAPostProcessing_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SafeNet_Trusted_Access/Scripts/STAPostProcessing/STAPostProcessing_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import STAPostProcessing from STAPostProcessing import close_incident_sta # Defining output of get_incident_sta function for mocker. incident_fields = { 'id': 100, 'CustomFields': { 'safenettrustedaccessremoveuserfromunusualactivitygroup': 'Yes', 'safenettrustedacc...
37.382353
103
0.767899
b0ea7a1e5c88a3d1279179c14825cadd145a3a09
225
py
Python
Packs/CommonScripts/Scripts/ConvertToSingleElementArray/ConvertToSingleElementArray.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ConvertToSingleElementArray/ConvertToSingleElementArray.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ConvertToSingleElementArray/ConvertToSingleElementArray.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto args = demisto.args() value = args.get("value") if value and isinstance(value, list): demisto.results(value) elif value: demisto.results([value]) else: demisto.results([])
20.454545
38
0.675556
9fe7ba2740acf7e4a8d33dac3debdc5eadc07f41
55
py
Python
POOUber/Python/Route.py
DanielWilches/POO
24624aabede93d428a6a252a4baacd42be166320
[ "MIT" ]
null
null
null
POOUber/Python/Route.py
DanielWilches/POO
24624aabede93d428a6a252a4baacd42be166320
[ "MIT" ]
null
null
null
POOUber/Python/Route.py
DanielWilches/POO
24624aabede93d428a6a252a4baacd42be166320
[ "MIT" ]
null
null
null
class Route: id = int strat = [ ] end = [ ]
13.75
15
0.418182
c6e4f90adf42ebf746ab7269d5531a466f3e415c
10,367
py
Python
Src/Scripts/marmot.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
2
2017-09-28T13:54:57.000Z
2018-06-28T05:03:06.000Z
Src/Scripts/marmot.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
Src/Scripts/marmot.py
hazemalsaied/IdenSys
9b6220ff7e65f7059240b742c81952132a765007
[ "MIT" ]
null
null
null
import os def getTrainModelCorpus(filePath): with open(filePath) as corpusFile: lines = corpusFile.readlines() createMarmotTrainFile(lines, filePath + '.marmot.train') def getTestModelCorpus(filePath): with open(filePath) as corpusFile: lines = corpusFile.readlines() createMa...
36.893238
178
0.547217
afc96595160dd497eaf82c40fcb210d5e1794755
731
py
Python
SoSe-21/Code-Vorlesungen/Wiederholung/Wiederholung-Wortlaenge.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/Wiederholung/Wiederholung-Wortlaenge.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/Wiederholung/Wiederholung-Wortlaenge.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Aufgabe 10 # Ermitteln Sie die Anzahl der Wörter in einer # Nutzereingabe und die durchschnittliche Wortlänge. def anzahlwoerter(nutzereingabe): nutzereingabe_splitted = nutzereingabe.split(" ") return nutzereingabe_splitted def wortlaenge(nutzereingabe, nutzereingabe_splitted): durchschnittliche_wortla...
43
116
0.813953
59cbbc4f1bccb433ec6db3cace8d7db4c1681797
210
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/utils/network.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/utils/network.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/utils/network.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: MIT # import socket def get_free_port(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('', 0)) addr = s.getsockname() s.close() return addr[1]
16.153846
57
0.638095
e64816b9e75a4d5ea71c4e176143e09a34fe5ff2
142
py
Python
1_Datentypen/02_listen/list.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/02_listen/list.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/02_listen/list.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# Grundsätzliches ####### Methoden von Listen # kopieren von listen und deren tücken # richtiges kopieren geht über copy() # Slicing
9.466667
38
0.697183
056b2723acac25910d1251a9850c610b41323569
6,042
py
Python
tests/onegov/org/test_views_stripe.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_stripe.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_stripe.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import textwrap import requests_mock import transaction from purl import URL from onegov.form import FormCollection from onegov.pay import PaymentProviderCollection def test_setup_stripe(client): client.login_admin() assert client.app.default_payment_provider is None with requests_mock.Mocker() as m: ...
31.8
79
0.621483
55bfc7818aa8a05d043b5108689fcc5d932be692
739
py
Python
Packs/CommonScripts/Scripts/AddDBotScoreToContext/AddDBotScoreToContext.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/AddDBotScoreToContext/AddDBotScoreToContext.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/AddDBotScoreToContext/AddDBotScoreToContext.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 main(): indicator = demisto.args().get("indicator") indicatorType = demisto.args().get("indicatorType") score = int(demisto.args().get("score")) vendor = demisto.args().get("vendor") reliability = demist...
25.482759
57
0.635995
ddf9ac169d140abae128b95a53b90bd57ee92765
108
py
Python
codeit/algorithm/util.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/util.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/algorithm/util.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def test_value(result, answer): print(f'result: {result}, answer: {answer}') assert result == answer
36
48
0.675926
fb13ee8a809350a976e17c58ff2ac4031d8ab41a
697
py
Python
grader/tools/grade-from-links.py
LammingerL/selfie
93a094b6b33be000192e0eab946a462a3291907c
[ "BSD-2-Clause" ]
null
null
null
grader/tools/grade-from-links.py
LammingerL/selfie
93a094b6b33be000192e0eab946a462a3291907c
[ "BSD-2-Clause" ]
null
null
null
grader/tools/grade-from-links.py
LammingerL/selfie
93a094b6b33be000192e0eab946a462a3291907c
[ "BSD-2-Clause" ]
null
null
null
import sys import os if len(sys.argv) == 4: filename = sys.argv[1] target = sys.argv[2] assignment = sys.argv[3] else: print "usage: python grade-from-links.py text-file-with-github-links directory-where-repos-are assignment" sys.exit(1) file = open(filename, "r") os.chdir(target) for link in file.readl...
18.837838
107
0.649928
34e93761ac699bc1a45aad8d542a8501afee2d5f
1,375
py
Python
docker/django/restaurant/restapps/views/views.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
3
2019-08-29T10:14:40.000Z
2021-03-05T09:50:15.000Z
docker/django/restaurant/restapps/views/views.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
null
null
null
docker/django/restaurant/restapps/views/views.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
1
2021-03-05T09:50:29.000Z
2021-03-05T09:50:29.000Z
from django.shortcuts import render from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view from .models import * from .serializers import * @api_view(['GET', 'POST']) def api_restaurant_list_view(request): restaurant = Restaurant.objects.all...
33.536585
80
0.679273
2f1966dacb6855ebe339bf13c45835286cb99037
2,234
py
Python
venv/Lib/site-packages/pynance/learn/linreg.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/learn/linreg.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/learn/linreg.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
""" .. Copyright (c) 2014, 2015 Marshall Farrier license http://opensource.org/licenses/MIT Linear regression (:mod:`pynance.learn.linreg`) =============================================== .. currentmodule:: pynance.learn.linreg """ import numpy as np def run(features, labels, regularization=0., constfeat=True): ...
29.786667
116
0.662936
c0b98c972917e6f1cb04039b8fcda0adb3320e7b
1,630
py
Python
algorithm/sorting_algorithms_in_python/bubble_sort.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
algorithm/sorting_algorithms_in_python/bubble_sort.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
algorithm/sorting_algorithms_in_python/bubble_sort.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from random import randint from sorting_timer import run_sorting_algorithm, ARRAY_LENGTH def bubble_sort(array): n = len(array) for i in range(n): # Create a flag that will allow the function to # terminate early if there's nothing left to sort already_sorted = True ...
36.222222
68
0.609202
c0d96859eecd3d674121156205f6ba9a78c359eb
361
py
Python
Chapter2_Basics/Strings.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
2
2021-02-13T19:18:00.000Z
2021-11-10T09:54:49.000Z
Chapter2_Basics/Strings.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
Chapter2_Basics/Strings.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
name = "Jan Maximilan Schaffranek" result = name.find("an") if result == -1: print("Not found") else: print("Found at index: ", result) name2 = name.replace("Jan", "Yann") print(name) print(name2) name3 = name.upper() print(name3) name4 = name.lower() print(name4) name5 = name.split(" ") print(name5)...
11.645161
37
0.642659
c0de37b7e234e77dbe1666c79be0886d512a7b89
1,914
py
Python
Praxisseminar/physical_process.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
Praxisseminar/physical_process.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
Praxisseminar/physical_process.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
""" IN BEARBEITUNG: - physischer Prozess im End Effekt nur starten und beenden des Fliessbandes und Bestimmen der Geschwindigkeit des Motors Fliessband physical process """ from minicps.devices import Tank #from utils import MOTOR_VEL from utils import STATE, MOTOR_VEL, Praxisseminar_test_logger import sys impor...
24.857143
120
0.635319
7b4054c0fab1cb42e9849789454ddaa7ab4f1d54
349
py
Python
PINp/2014/Chernov_M_S/task_2_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_2_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_2_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 27. # Напишите программу, которая будет выводить на экран наиболее понравившееся # вам высказывание, автором которого является Овидий. Не забудьте о том, что # автор должен быть упомянут на отдельной строке. # Чернов Михаил Сергеевич # 28.05.2016 print("Верь опыту") print("\n\t\tОвидий") input("\n\...
31.727273
76
0.765043
7b94e457a9e74ffbf8995bba913eb090c55bbf15
16,133
py
Python
GymFlight.py
kirtis26/Missile3D
23a868b34f7362dac5ce0dff254d990f4d0c4e92
[ "MIT" ]
null
null
null
GymFlight.py
kirtis26/Missile3D
23a868b34f7362dac5ce0dff254d990f4d0c4e92
[ "MIT" ]
null
null
null
GymFlight.py
kirtis26/Missile3D
23a868b34f7362dac5ce0dff254d990f4d0c4e92
[ "MIT" ]
null
null
null
import numpy as np from Missile3D import Missile3D from Target3D import Target3D import matplotlib.pyplot as plt from easyvec import Vec3 class GymFlight(object): scenario_names = {'standard', 'random', 'sample_1', 'sample_2', 'sample_3', 'sample_4'} standard_target_opts = { 'pos': Vec3(8e3, 1.5e3, ...
43.602703
140
0.591335
b527465b85022ddc4c1c597ff6fb6eb0eeecc481
597
py
Python
WiSe-2122/Wiederholung/Vorlesung/datentypen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Wiederholung/Vorlesung/datentypen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Wiederholung/Vorlesung/datentypen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Ganze Zahlen -> Integer (int) a = 10 # Fließkommazahlen -> Float (float) b = 4.5 # Zeichenketten -> String (str) c = "Hallo mein Name ist Hase" d = "und ich weiß von nichts." # Boolean -> Bool (bool) e = True f = False # Liste -> List (list) liste = ["Hallo", # 0 "Welt", # 1 2021, # 2...
19.258065
44
0.475712
a908548011d6d40b85b7ba95830a1bd21b4442cf
11,790
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/bladelog_lib.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/controls/bladelog_lib.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/controls/bladelog_lib.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. #!/usr/bin...
41.957295
140
0.536302
8d5c88c8530781b29f177f0e32a1b2cb1420bfa7
6,081
py
Python
Webpage/arbeitsstunden/migrations/0002_auto_20210616_1733.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/migrations/0002_auto_20210616_1733.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/migrations/0002_auto_20210616_1733.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-16 17:33 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('arbeits...
38.487342
128
0.560763
a5c600219c88a633d16d1461b3ea2bb047e75b0b
449
py
Python
Python/Exercícios_Python/062_progressão_aritmética_v2.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/062_progressão_aritmética_v2.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/062_progressão_aritmética_v2.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """062 - Progressão Aritmética v2 Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1_o5XXKh0Ge_AYEklX_SKZ2g0R2GXpMba """ p = int(input('Informe o primeiro termo de uma PA: ')) r = int(input('Informe a razão da PA: ')) resultado ...
22.45
77
0.652561
574888371f1e0c4e63827d78bc2f6019c0b9f9e4
3,781
py
Python
lib/settings_manager.py
jyurkiw/EncounterRoller
42d036874f6b65bb276003fc9c166917464e4a3b
[ "MIT" ]
null
null
null
lib/settings_manager.py
jyurkiw/EncounterRoller
42d036874f6b65bb276003fc9c166917464e4a3b
[ "MIT" ]
null
null
null
lib/settings_manager.py
jyurkiw/EncounterRoller
42d036874f6b65bb276003fc9c166917464e4a3b
[ "MIT" ]
null
null
null
from genericpath import exists import json import os import pathlib class SettingsManager(object): PCS_NUM = 'pcs_num' PCS_LEVEL = 'pcs_level' ENC_NUM = 'enc_num' CURRENT_TABLE = 'cur_tbl' def __init__(self): # Detect linux/mac vs windows. Fuck solaris. if os.name == 'posix': ...
35.009259
111
0.659349
93a4b91fd07881d9e84c6505270ab1ca90fb655b
1,460
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/onset_strength_check.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/onset_strength_check.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/onset_strength_check.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import glob import os import numpy import pylab def oss(filename, outdirname): basename = os.path.basename(filename) outfilename = os.path.join(outdirname, os.path.splitext(basename)[0] + "-oss.txt") if not os.path.exists(outfilename): cmd = "tempo -m TEST...
25.172414
64
0.647945
19564588c71adc73ce9c53e12b3a611121a4bad0
410
py
Python
warp/workspace/build_pipe.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/workspace/build_pipe.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/workspace/build_pipe.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
# std # extern # warp from warp.workspace import Workspace # types __all__ = [] if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() parser.add_argument('--session-id', required=True) parser.add_argument('--target', required=True) args = parser.parse_args() ws =...
17.083333
54
0.697561
270efca34f3e7d1885851fc74d30e40a777e400f
680
py
Python
exercises/pt/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( len(doc1.ents) == 2 and len(doc2.ents) == 2 and len(doc3.ents) == 2 ), "Devem haver duas entidades em cada exemplo." assert any( e.label_ == "PERSON" and e.text == "PewDiePie" for e in doc2.ents ), "Você rotulou PERSON corretamente?" assert any( e.label_ ...
40
85
0.642647
27a2c1e9c8cb8da6ec8f2e6383ccdc2278ba08fe
175
py
Python
ListenUp/app.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
ListenUp/app.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
ListenUp/app.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
__authors__ = ['Khyber Sen', 'Bayan Berri', 'Naotaka Kinoshita', 'Brian Leung'] __date__ = '2017-10-30' from core import app if __name__ == '__main__': app.run()
21.875
80
0.645714
d0cb0801e4bea85214c13aec8e062c324cd6b2b4
664
py
Python
src/bo4e/enum/gebiettyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/gebiettyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/gebiettyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Gebiettyp(StrEnum): """ List of possible Gebiettypen. """ REGELZONE = "REGELZONE" #: Regelzone MARKTGEBIET = "MARKTGEBIET" #: Marktgebiet BILANZIERUNGSGEBIET = "BILANZIERUNGSGEBIET" #: Bilanzierungsgebie...
33.2
80
0.725904
efd83cda4056e7bcf6fbc513a598991d75dba1ed
140
py
Python
diversos/reduce.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
diversos/reduce.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
diversos/reduce.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
from functools import reduce def somar (x, y ): return x + y lista = [1,3,5,7,9 , 11, 13 ] soma = reduce (somar , lista) print(soma)
17.5
30
0.614286
4be4a79b845c9c4d144b840a18ee92f49791dffb
9,882
py
Python
TensorflowProbability/nonlinear_regression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
TensorflowProbability/nonlinear_regression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
TensorflowProbability/nonlinear_regression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] # # Linear regression to non linear probabilistic neural network # In this post I will attempt to go over the steps between a simple linear regression # towards a non-linear probabilistic model built with a neural network. # # This is particularly useful in case where the model noise changes with one of...
34.432056
152
0.69065
ef6303b465410a24d5e7bd82a0031a969bc5d56c
42
py
Python
Tag_01/a-03_hello_world.py
MrMontag/internship-june-2021
44bcf06c50535c0cadee3d305b0a0da9653b1cf1
[ "CC0-1.0" ]
null
null
null
Tag_01/a-03_hello_world.py
MrMontag/internship-june-2021
44bcf06c50535c0cadee3d305b0a0da9653b1cf1
[ "CC0-1.0" ]
null
null
null
Tag_01/a-03_hello_world.py
MrMontag/internship-june-2021
44bcf06c50535c0cadee3d305b0a0da9653b1cf1
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 print("Hallo World!")
10.5
21
0.666667
32603680c3393bee4e46c1ae84c7814e6c012fd4
384
py
Python
PINp/2015/GOLOVIN_A_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_1_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 7. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается # Эдуард Георгиевич Зюбин. После вывода информации программа должна дожидаться пока пользователь # нажмет Enter для выхода.# Golovin.A.I # 02.06.2016 print ("Эдуард Георгиевич Зюбин, более известный...
54.857143
233
0.783854
f5fcb3c996c5806487a0c1b1d6b82c9a8945c5ca
393
py
Python
volley/data_models.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
volley/data_models.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
volley/data_models.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
# Copyright (c) Shipt, Inc. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import TypeVar from volley.models.pydantic_model import GenericMessage, QueueMessage GenericMessageType = TypeVar("GenericMessageType", bound=GenericMess...
32.75
72
0.796438
26e6facfb72def484f8b4d8418af2a0176ae6452
4,185
py
Python
quark_core_api/data/storage/storage_factory.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/data/storage/storage_factory.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/data/storage/storage_factory.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
import os, six, abc from copy import deepcopy from attrdict import AttrDict from future.utils import viewitems from future.builtins import super from app_settings import Config from quark_core_api.data.storage import CollectionObject, ComplexObject, KeyValueObject, Validator from quark_core_api.common import DelayedEve...
32.44186
98
0.649223
f8c0e8bc48ef9ad008382516f69ada57a83115d7
13,276
py
Python
src/manual-md/page_generator.py
MisterFISHUP/covid-19-in-france
022dec339008a16016358f2bf4612525772c33dd
[ "Apache-2.0" ]
8
2021-04-20T09:57:56.000Z
2021-12-05T16:52:37.000Z
src/manual-md/page_generator.py
MisterFISHUP/covid-19-in-france
022dec339008a16016358f2bf4612525772c33dd
[ "Apache-2.0" ]
5
2021-05-15T10:43:58.000Z
2021-10-10T16:25:48.000Z
src/manual-md/page_generator.py
MisterFISHUP/covid-19-in-france
022dec339008a16016358f2bf4612525772c33dd
[ "Apache-2.0" ]
5
2021-05-02T06:36:07.000Z
2021-09-11T17:42:40.000Z
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% [markdown] # ## Import modules and define global constants # %% # this py file is generated from notebook (ipynb file) import shutil from pathlib import Path from datetime import date, timedelta from opencc import OpenCC diges...
36.076087
213
0.623305
3e166c873f0545edf44e1c03b024dfdfc36a7abf
2,929
py
Python
Jeney/02_Exercise/ex2.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
Jeney/02_Exercise/ex2.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
Jeney/02_Exercise/ex2.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
#Advanced Pratical Programming For Scientists #Assignemnt 2 #author:Viktor Jeney #written in Python 3 #This program reads a XML and writes it into a CSV #For each of those tasks there is a seperate function written. #The filename to read has to be the first argument from the command line. #The filename to write into h...
32.544444
79
0.58211
9005bc1ed0035663e147c53f3cce14d31c7eb1e1
2,088
py
Python
vorl5-ueb1-regex.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl5-ueb1-regex.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl5-ueb1-regex.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 5. Vorlesung 17.10.2020, Skript Python 4 (07_Python_04.pdf) import re # Übung 1: ''' 1. Finden des Worts "Python" oder "python" 2. Inhalt einer gesamte Kommentarzeile 3. Ein Zeichen das eine Ziffer oder ein Vorzeichen ist (+/-) ''' # Aufgabe 1 #daten = "ython python -*0201/637434* -467.1345" #muster = "^[Pp]ython...
27.116883
173
0.632184
ffd3ad210a0d6e0f8813ddf8affffbe59b0cc912
1,698
py
Python
benchmark_test/scripts/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
benchmark_test/scripts/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
benchmark_test/scripts/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
from milvus import Milvus,DataType import os MILVUS_HOST = "192.168.1.58" MILVUS_PORT = 19573 # create table param seg = 1024 METRIC_TYPE = "L2" # index IVF param NLIST = 4096 PQ_M = 12 #index NSG param SEARCH_LENGTH = 45 OUT_DEGREE = 50 CANDIDATE_POOL = 300 KNNG = 100 #index HNSW param HNSW_M = 16 EFCONSTRUCTION...
23.583333
131
0.767373
8aafdb41cfcb3d905748244f6e4a6c9107578fba
12,246
py
Python
MAIN/STM32F405/V13/register.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V13/register.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V13/register.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import os import peripheral import time OPEN_SCENE_SHOW_TIME = 2500 CLOSING_TIME = 10000 CLOSE_SCENE_SHOW_TIME = 1000 MAX_SEAT_NUMBER = 33 InComingDataSize = 10 class Proximity: class Default: Threshold = 100 PositiveTolerance = 10 NegativeTolerance = 25 constVal = 1 divi...
43.119718
302
0.608035
8ab8310083b8af1b3349e8e88818e5aed663f3d0
4,459
py
Python
examples/formbot/actions/actions.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2020-10-14T18:09:10.000Z
2020-10-14T18:09:10.000Z
examples/formbot/actions/actions.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
examples/formbot/actions/actions.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Text, Any, List, Union from rasa_sdk import Tracker from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import FormAction class RestaurantForm(FormAction): """Example of a custom form action.""" def name(self) -> Text: """Unique identifier of the form.""" ...
31.624113
86
0.555954
8ad110e2b7bfc382f38046b0b8aa2b57b45e41bb
3,255
py
Python
spider/spider.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
null
null
null
spider/spider.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
null
null
null
spider/spider.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
null
null
null
""" Provides the spider functionality (website checks). """ import argparse import json import logging import re import statistics import time from datetime import datetime from pprint import pprint from google.api_core.exceptions import InvalidArgument from google.cloud import datastore import checks import config ...
27.584746
105
0.604301
0a19083dfe5a7bbe31b5ca56b93085bcdd1ec4da
5,598
py
Python
official_examples/Using_MXNet_to_Create_a_MNIST_Dataset_Recognition_Application/codes/customize_service.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
official_examples/Using_MXNet_to_Create_a_MNIST_Dataset_Recognition_Application/codes/customize_service.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
official_examples/Using_MXNet_to_Create_a_MNIST_Dataset_Recognition_Application/codes/customize_service.py
hellfire0831/ModelArts-Lab
3e826a5b388244c0588b7bb916184750997ab272
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
import mxnet as mx import requests import zipfile import json import shutil import os import numpy as np from mxnet.io import DataBatch from mms.log import get_logger from mms.model_service.mxnet_model_service import MXNetBaseService from mms.utils.mxnet import image, ndarray logger = get_logger() def check_input_...
37.824324
127
0.566988
7ca1ea0ffc65c25b30e5f446ccbca20cf80ccd6a
553
py
Python
exercises/pt/test_03_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_03_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_03_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert Doc.has_extension("has_number"), "Você registrou a extensão no doc?" ext = Doc.get_extension("has_number") assert ext[2] is not None, "Você definiu o getter corretamente?" assert ( "getter=get_has_number" in __solution__ ), "Você atribuiu a função get_has_number como a fun...
46.083333
94
0.717902
6b31f06182219ab8ebe4752adf4b18d4b079f30e
13,283
py
Python
nets/yolo4_tiny.py
Rory-Godwin/FOLO
32b4773cec99edc6ce7baff9c113eba4f8dc1d29
[ "MIT" ]
null
null
null
nets/yolo4_tiny.py
Rory-Godwin/FOLO
32b4773cec99edc6ce7baff9c113eba4f8dc1d29
[ "MIT" ]
null
null
null
nets/yolo4_tiny.py
Rory-Godwin/FOLO
32b4773cec99edc6ce7baff9c113eba4f8dc1d29
[ "MIT" ]
null
null
null
from functools import wraps import numpy as np import tensorflow as tf from keras import backend as K from keras.layers import (Add, Concatenate, Conv2D, MaxPooling2D, UpSampling2D, ZeroPadding2D) from keras.layers.advanced_activations import LeakyReLU from keras.layers.normalization import B...
42.848387
149
0.443424
865dc4ddf79c635bc688a33bc3eb6b1fd49bd885
17,227
py
Python
Virus-Fake-main/Android.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Virus-Fake-main/Android.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Virus-Fake-main/Android.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import os,time,sys from datetime import datetime def ketik(teks): for i in teks + "\n": sys.stdout.write(i) sys.stdout.flush() time.sleep(0.01) #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng ricod #kqng r...
2.936254
111
0.500203
865ff16740b4c73a1f376881389830505589cda0
12,056
py
Python
source/pkgsrc/audio/csound5/patches/patch-install.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/audio/csound5/patches/patch-install.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/audio/csound5/patches/patch-install.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-install.py,v 1.4 2019/11/06 11:56:56 mrg Exp $ python 3.x support don't fake-conflict with csound6. --- install.py.orig 2013-01-07 04:49:35.000000000 -0800 +++ install.py 2019-11-06 03:43:25.554498784 -0800 @@ -3,7 +3,6 @@ import sys import os import re -import md5 import time # get Python vers...
33.770308
82
0.59066
8693702852c39352bd17eaf0f2b7cd42ca1c63b4
4,301
py
Python
search_good_info_new.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
5
2020-08-17T08:37:16.000Z
2021-06-07T05:02:05.000Z
search_good_info_new.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
null
null
null
search_good_info_new.py
sambabypapapa/CralwerSet
a76e0660c42ce7aac20b8d07ccc454b6636a8a2a
[ "Apache-2.0" ]
1
2021-06-07T05:02:10.000Z
2021-06-07T05:02:10.000Z
""" 功能:爬取多元化商品池所有商品; 环境:python3 作者:百舸 """ import requests import datetime from requests.packages import urllib3 import json import CralwerSet.connect_mysql as connect_mysql import threading import time import CralwerSet.schedule as schedule import pymysql import CralwerSet.badou_essay_list_crawl as badou_essay_list_cra...
37.72807
315
0.527087
86e3001fd4adfb850bc3a09937532548227d1017
906
py
Python
exercises/ja/solution_03_07.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/solution_03_07.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/solution_03_07.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.language import Language from spacy.matcher import PhraseMatcher from spacy.tokens import Span nlp = spacy.load("ja_core_news_sm") animals = ["ゴールデンレトリバー", "ネコ", "カメ", "ドブネズミ"] animal_patterns = list(nlp.pipe(animals)) print("動物の一覧: ", animal_patterns) matcher = PhraseMatcher(nlp.vocab) matcher...
28.3125
87
0.745033
be27fd4c08d298cd50a0a9b327b9a00ec468166e
441
py
Python
pacman-arch/test/pacman/tests/remove041.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/remove041.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/remove041.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Remove a no longer needed package (multiple provision)" lp1 = pmpkg("pkg1") lp1.provides = ["imaginary"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.provides = ["imaginary"] self.addpkg2db("local", lp2) lp3 = pmpkg("pkg3") lp3.depends = ["imaginary"] self.addpkg2db("local", lp3) self.ar...
22.05
75
0.70068
07a2db1851d29ca80e67df7768a13848d0db9404
1,966
py
Python
packages/geometry/nodes/geometry___PointsField0/widgets/geometry___PointsField0___main_widget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/geometry/nodes/geometry___PointsField0/widgets/geometry___PointsField0___main_widget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/geometry/nodes/geometry___PointsField0/widgets/geometry___PointsField0___main_widget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
# from PySide2.QtWidgets import ... from PySide2.QtCore import Qt from PySide2.QtGui import QPixmap, QPainter, QPen, QColor, QBrush from PySide2.QtWidgets import QWidget, QVBoxLayout, QLabel import random class PointsField_NodeInstance_MainWidget(QWidget): def __init__(self, parent_node_instance): super...
27.690141
67
0.5941
ed63d4d83c087e768a6ffc8f116f1047c1b8ba40
23,069
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/assign/routeChoices.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/assign/routeChoices.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/assign/routeChoices.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) 2007-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.eclipse.org/legal/epl-2....
39.842832
120
0.5637
ed71656700d1db7b25b8e9ec5248f1b9bc9d5715
358
py
Python
elements/python/5/9/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/5/9/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/5/9/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def column_index(ref): n = 0 for ch in ref: x = ord(ch) - ord('A') + 1 n = 26*n + x return n def test(): assert column_index('A') == 1 assert column_index('Z') == 26 assert column_index('AA') == 27 assert column_index('AZ') == 52 def main(): test() print 'pass' ...
15.565217
35
0.522346
1314332eb6760e67b08fcc54cc48edf6495afbcd
15,488
py
Python
Packs/ApiModules/Scripts/FireEyeApiModule/FireEyeApiModule.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
null
null
null
Packs/ApiModules/Scripts/FireEyeApiModule/FireEyeApiModule.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
2
2021-12-26T07:34:37.000Z
2021-12-26T07:49:34.000Z
Packs/ApiModules/Scripts/FireEyeApiModule/FireEyeApiModule.py
PAM360/content
928aac9c586c6e593b2a452c402a37cb5df28dac
[ "MIT" ]
null
null
null
from CommonServerPython import * # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' FE_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S' OK_CODES = (200, 206) class FireEyeClient(BaseClient): def __init__(self, base_url: str, username: str, password: str, ...
46.650602
120
0.570764
b95a46feb812629ea5b487e0c49294b20678f680
301
py
Python
project/api/fields.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/api/fields.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/api/fields.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
from marshmallow import fields from project.dateutils import berlin_tz class CustomDateTimeField(fields.DateTime): def _serialize(self, value, attr, obj, **kwargs): if value: value = value.astimezone(berlin_tz) return super()._serialize(value, attr, obj, **kwargs)
25.083333
61
0.697674
b9855a7b8af3720e6d1dbd812feacca892103be0
5,114
py
Python
Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/Palo_Alto_Networks_WildFire/Integrations/WildFireReports/WildFireReports_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import base64 import demistomock as demisto from WildFireReports import main import requests_mock def test_wildfire_report(mocker): """ Given: A sha256 represents a file uploaded to WildFire. When: internal-wildfire-get-report command is running. Then: Ensure that the command ...
37.881481
120
0.688698
b9e603dad544416c8aafede286add848d2811213
2,569
py
Python
tag_generator.py
e5k/e5k.github.io
9f2e2097a87e38501a12760024e655b9cb8e9226
[ "MIT" ]
null
null
null
tag_generator.py
e5k/e5k.github.io
9f2e2097a87e38501a12760024e655b9cb8e9226
[ "MIT" ]
null
null
null
tag_generator.py
e5k/e5k.github.io
9f2e2097a87e38501a12760024e655b9cb8e9226
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' tag_generator.py Copyright 2017 Long Qian Contact: lqian8@jhu.edu This script creates tags for your Jekyll blog hosted by Github page. No plugins required. ''' import glob import os tag_dir = 'tag/' post_dir = '_posts/' filenames = glob.glob(post_dir + '*md') page_dir = 'pages/' filen...
25.949495
136
0.58116