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
be75e74a52cfe0d8194928ebfbb7d5b9d5a130c0
11,134
py
Python
Webpage/web/views.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/web/views.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/web/views.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from datetime import date from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required, user_passes_test from django.core.paginator import Paginator from django.shortcuts import render, redirect, get_object_or_404 from django.template import Context, Template fr...
30.756906
142
0.627537
feb17f1d7546aac639a941e095a81fddbb9522b9
1,480
py
Python
pyventskalender/tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag08.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Noch sinnvoller kann man mit der `for`-Schleife arbeiten, wenn man damit Code # für die einzelnen Elemente einer Collection -- bspw. einer `list` -- ausführt. # %% # Damit kann man beispielsweise sagen, dass man die folgenden Tiere mag: tiere = ["Hunde", "Katzen", "Maulwürfe"] def ich_mag(tiere): for tier in t...
28.461538
119
0.690541
4a5ca42e9edfc76a840cdf0de46f89968175a2d9
1,371
py
Python
tool/anti-cf_hosts_generator/generate.py
stevavoliajvar/stop_cloudflare
983532572294a72776941c5bd2aa372f99603fd2
[ "RSA-MD" ]
1
2021-01-06T04:36:23.000Z
2021-01-06T04:36:23.000Z
tool/anti-cf_hosts_generator/generate.py
stevavoliajvar/stop_cloudflare
983532572294a72776941c5bd2aa372f99603fd2
[ "RSA-MD" ]
null
null
null
tool/anti-cf_hosts_generator/generate.py
stevavoliajvar/stop_cloudflare
983532572294a72776941c5bd2aa372f99603fd2
[ "RSA-MD" ]
null
null
null
import glob import getopt import os import sys print("Anti-CF hosts file generator v1.0") print("Licensed under CC0 1.0") print("") #functions def progress(value, filename): sys.stdout.write('\033[2K\033[1G') #wipe the line before printing sys.stdout.write("Compiling rules [%s] %s" % ("{:,}".format(value), fi...
28.5625
91
0.606856
4a6d1880d18d6e3436e07b1ec8ba0bb6b1803342
1,454
py
Python
examples/basic/example/C.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
examples/basic/example/C.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
examples/basic/example/C.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
import warp from warp import Pipe, Parameter, Product from warp.utils import GlobalImport from . import A # Here, we demonstrate how to use custom save/load functions to specify non-pickle based serialization. # In this case, our product is a directory. def save(path, value): # GlobalImport makes sure that `os` ...
33.045455
137
0.68088
6066effe5f83f4d83034cc92feff059a14a886a7
563
py
Python
official/cv/deeplabv3plus/mindspore_hub_conf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/deeplabv3plus/mindspore_hub_conf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/deeplabv3plus/mindspore_hub_conf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
"""hub config.""" from src.deeplab_v3plus import DeepLabV3Plus def create_network(name, *args, **kwargs): freeze_bn = True num_classes = kwargs["num_classes"] if name == 'DeepLabV3plus_s16': DeepLabV3plus_s16_network = DeepLabV3Plus('eval', num_classes, 16, freeze_bn) return DeepLabV3plus_...
37.533333
85
0.722913
60e0ec00ac2b7fa76e0a18d3fdcb0c77fa0f1828
261
py
Python
exercises/ja/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("ja_core_news_sm") text = ( "チックフィレイはジョージア州カレッジパークに本社を置く、" "チキンサンドを専門とするアメリカのファストフードレストランチェーンです。" ) # parserを無効化 with nlp.disable_pipes("parser"): # テキストを処理する doc = nlp(text) # docの固有表現を表示 print(doc.ents)
17.4
42
0.697318
e0e4c9459699856e0271b4e6081d9eb6dc7ccd71
763
py
Python
exercises/fr/solution_01_12_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_01_12_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_01_12_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.matcher import Matcher nlp = spacy.load("fr_core_news_sm") matcher = Matcher(nlp.vocab) doc = nlp( "L'appli se distingue par une interface magnifique, la recherche " "intelligente, la labellisation automatique et les réponses " "vocales fluides." ) # Écris un motif pour un adjecti...
31.791667
70
0.716907
1ce344501d5ff0074edfc97b8bd2eab5f069c53d
197
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v9_2/remove_company_from_patient.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v9_2/remove_company_from_patient.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v9_2/remove_company_from_patient.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): if frappe.db.exists("DocType", "Patient"): if 'company' in frappe.db.get_table_columns("Patient"): frappe.db.sql("alter table `tabPatient` drop column company")
28.142857
64
0.725888
c75d281bb4c2576d5271cc0545f7d391386da9ad
1,169
py
Python
Python/Sonstige_Uebungen/count_remove_twins.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Sonstige_Uebungen/count_remove_twins.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Sonstige_Uebungen/count_remove_twins.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- #### # File: count_remove_twins.py # Project: Sonstige_Uebungen #----- # Created Date: Sunday 04.08.2019, 15:01 # Author: Apop85 #----- # Last Modified: Sunday 04.08.2019, 15:34 #----- # Copyright (c) 2019 Apop85 # This software is published under the MIT license. # Check ...
23.857143
71
0.652695
2954de09e4decfaa2d564f1296ca0553986dcf67
1,320
py
Python
python/iddl_age.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
3
2016-11-21T21:10:42.000Z
2022-01-22T16:25:44.000Z
python/iddl_age.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
python/iddl_age.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import string import Image, ImageOps import logging import urllib import csv import time import calendar from datetime import datetime from urlparse import urlparse # Main ######################################################################## if __name__ == '__main__': parse...
30
79
0.640909
31c83062ba377dd182093a50e193260a2671b90f
2,860
py
Python
packages/watchmen-meta/src/watchmen_meta/dqc/catalog_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/dqc/catalog_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/dqc/catalog_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List from watchmen_meta.common import TupleService, TupleShaper from watchmen_model.common import TenantId from watchmen_model.dqc import Catalog, CatalogCriteria, CatalogId from watchmen_storage import ColumnNameLiteral, EntityCriteriaExpression, EntityCriteriaOperator, EntityRow, \ EntityShaper f...
36.666667
110
0.785664
5ef21921f0efac5b1a01e1aeab7a87578a5917f1
3,647
py
Python
deprecated/benchmark/ps/distribute_word2vec/paddle/dataset_generator.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/ps/distribute_word2vec/paddle/dataset_generator.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/ps/distribute_word2vec/paddle/dataset_generator.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.597938
121
0.607349
6f0df2b61d379a39487e26e78103a62645df25c2
1,085
py
Python
site/public/courses/BEW-1.1/Lessons/09-ERDs-Resource-Associations-and-MongoDB/demo/events.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/BEW-1.1/Lessons/09-ERDs-Resource-Associations-and-MongoDB/demo/events.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/BEW-1.1/Lessons/09-ERDs-Resource-Associations-and-MongoDB/demo/events.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from pymongo import MongoClient client = MongoClient() client.drop_database('test_database') db = client.test_database # Add a user to represent a single Guest first_guest = { "name": "Dani", "rsvps": [] } # Insert the new Guest first_guest_inserted = db.Guests.insert_one(first_guest) print(first...
27.125
92
0.717051
7d92de016f47f2a495c1aab70621761dcdbc39e2
9,966
py
Python
photo_albums_list.py
hpoon/PhotoAlbumsSite
26396d8e0bb8f1f5e165742e4c96591e56a665e8
[ "MIT" ]
null
null
null
photo_albums_list.py
hpoon/PhotoAlbumsSite
26396d8e0bb8f1f5e165742e4c96591e56a665e8
[ "MIT" ]
null
null
null
photo_albums_list.py
hpoon/PhotoAlbumsSite
26396d8e0bb8f1f5e165742e4c96591e56a665e8
[ "MIT" ]
null
null
null
import abc import argparse import json import logging import os import re import sys import weakref from collections import OrderedDict from datetime import datetime, timedelta from time import sleep import attr from selenium import webdriver from selenium.webdriver import FirefoxProfile from selenium.w...
33.897959
118
0.632049
48006909f95b2d93b98b19851277eb3fe5b13533
428
py
Python
site/public/courses/BEW-1.1/Lessons/09-ERDs-Resource-Associations-and-MongoDB/demo/juggling.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/BEW-1.1/Lessons/09-ERDs-Resource-Associations-and-MongoDB/demo/juggling.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/BEW-1.1/Lessons/09-ERDs-Resource-Associations-and-MongoDB/demo/juggling.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from pymongo import MongoClient client = MongoClient() client.drop_database('test_database') db = client.test_database new_post = { 'title': 'Mastering the Three Ball Cascade', 'subreddit': 'Jugglers Anonymous' } db.Posts.insert_one(new_post) # Return all Posts in a specific subreddit: juggling_...
21.4
68
0.71729
fb997a747e10c782996d0805c2948a8e29a42f7b
2,166
py
Python
bildungslogin-plugin/tests/unittests/test_routes_users.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/tests/unittests/test_routes_users.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/tests/unittests/test_routes_users.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random import faker import nest_asyncio import pytest from bildungslogin_plugin.models import Class, SchoolContext, Workgroup from bildungslogin_plugin.routes.v1.users import DbBackend, User fake = faker.Faker() # pytest event loop is already running: https://github.com/encode/starlet...
35.508197
102
0.60157
fbba29e703245fc84c89d107678cd171b2c3e81e
1,051
py
Python
Tutorials/Statistics/Probability_Dice.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Probability_Dice.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Probability_Dice.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/s10-mcq-1/problem """ d = list(range(1,7)) pt = [(i,j) for i in d for j in d] outof9 = [] c = 0 for i in range(len(pt)): if i in range(6,len(pt),6): print() if sum(pt[i]) <= 9: # at most 9 c += 1 else: outof9.append(pt[i]) print(pt[i],sum...
20.607843
60
0.617507
83a34b2e96832e9369bffc35c942a3722cddb5d4
18,121
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/misopy/sam_utils.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/misopy/sam_utils.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/misopy/sam_utils.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
## ## Utilities for handling SAM/BAM reads ## from collections import defaultdict import misopy from misopy.Gene import load_genes_from_gff import os import time import pysam import binascii import ctypes from numpy import array from scipy import * def cigar_to_end_coord(start, cigar): """ Compute the end ...
32.827899
104
0.567353
83b09c2019ddc2f7cffcfb059bc36603eb76b4fc
4,969
py
Python
spacex_dash_app.py
frkasper/ibm_adsc
537fdf3106a7f4f34bc20f4c4e207e06c74a8076
[ "BSD-3-Clause" ]
null
null
null
spacex_dash_app.py
frkasper/ibm_adsc
537fdf3106a7f4f34bc20f4c4e207e06c74a8076
[ "BSD-3-Clause" ]
null
null
null
spacex_dash_app.py
frkasper/ibm_adsc
537fdf3106a7f4f34bc20f4c4e207e06c74a8076
[ "BSD-3-Clause" ]
null
null
null
# Import required libraries import pandas as pd import dash import dash_html_components as html import dash_core_components as dcc from dash.dependencies import Input, Output import plotly.express as px # Read the airline data into pandas dataframe spacex_df = pd.read_csv("spacex_launch_dash.csv") max_payload = spacex...
42.110169
125
0.535319
f72301b2c63fbdc40c6edfa65c2949f6ab6b9a05
1,352
py
Python
prover.py
hv10/reverseengineering1819
caf9d9f3d5fc685c062378ebd1a92a8cdd4032e6
[ "MIT" ]
1
2019-12-01T18:22:20.000Z
2019-12-01T18:22:20.000Z
prover.py
hv10/reverseengineering1819
caf9d9f3d5fc685c062378ebd1a92a8cdd4032e6
[ "MIT" ]
null
null
null
prover.py
hv10/reverseengineering1819
caf9d9f3d5fc685c062378ebd1a92a8cdd4032e6
[ "MIT" ]
1
2019-03-14T09:52:16.000Z
2019-03-14T09:52:16.000Z
import unittest from functools import wraps def score_with(score): def decorator(fn): def decorated(*args,**kwargs): ret = fn(*args,**kwargs) if ret: args[0].__class__._increase_score(score) return ret return decorated return dec...
28.166667
68
0.588757
f76cfee417afad1e8c3b6624a7526b25acb2a888
988
py
Python
documents/math-minimal-distance-to-cubic-function/calcMinDist.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
documents/math-minimal-distance-to-cubic-function/calcMinDist.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
documents/math-minimal-distance-to-cubic-function/calcMinDist.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
#!/usr/bin/env python import numpy class Point: """Represents a point in 2D.""" def __init__(self, x, y): self.x = x self.y = y def euclidean_dist(p1, p2): """Euclidean distance of two 2D points.""" from math import sqrt return sqrt((p1.x-p2.x)**2 + (p1.y-p2.y)**2) def get_min...
26
79
0.604251
b206bf942489ed5140c7c2bcf569be7de61ad292
5,460
py
Python
Packs/Qintel/Integrations/QintelQSentry/QintelQSentry.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Qintel/Integrations/QintelQSentry/QintelQSentry.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Qintel/Integrations/QintelQSentry/QintelQSentry.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import ''' IMPORTS ''' import urllib3 from typing import Dict, Any from datetime import datetime from dateutil.parser import parse as parse_dt from pytz import utc as pyutc import traceback # Disable insecure war...
23.135593
81
0.603114
b79b25b2837313c60c9796ddcaa8204b3b2e075f
711
py
Python
python/coursera_python/MICHIGAN/code3/ass5.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/code3/ass5.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/code3/ass5.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import xml.etree.ElementTree as ET data = ''' <commentinfo> <note> This file contains the sample data for testing</note> <comments> <comment> <name>Romainia</name> <count>97</count> </comment> <comment> <name>Laurie</name> ...
19.75
68
0.475387
b7cf63a7e423a9eb235aac5beef9365250e5edd1
44,806
py
Python
research/cvtmodel/regnet/src/regnet_y_1_6gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/regnet/src/regnet_y_1_6gf.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/regnet/src/regnet_y_1_6gf.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...
62.665734
119
0.504508
4d0c858c2ed221b3cfd2773adcac545d4ecd0e17
460
py
Python
src/utils/visualize/custom_camp.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
3
2021-05-31T09:25:59.000Z
2022-03-10T08:09:51.000Z
src/utils/visualize/custom_camp.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
1
2021-09-26T16:37:39.000Z
2021-09-28T00:43:05.000Z
src/utils/visualize/custom_camp.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
from matplotlib import cm from matplotlib.colors import LinearSegmentedColormap __all__ = ["register_dbz_cmap"] def register_dbz_cmap(): dbz_list = ["#0000F6", "#01A0F6", "#00ECEC", "#01FF00", "#00C800", "#019000", "#FFFF00", "#E7C000", "#FF9000", "#FF0000", "#D60000", "#C00000", ...
32.857143
81
0.634783
4dec68d85100ba6b5ec0d0ced55b326abb3a46d7
15,221
py
Python
plotting/modules/profiles.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
plotting/modules/profiles.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
plotting/modules/profiles.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
# Standard Packages from dataclasses import dataclass import copy # 3rd Party Packages import matplotlib.pyplot as plt # Local Packages import settings import modules.utils as utils import modules.calculations as calculations import modules.constants as constants from modules.enums import ProfileType, MergeType from ...
42.163435
119
0.647132
4df6e9c4d7107f38ed127c4c770aa79e03fa9361
1,419
py
Python
plugins/shortener/shortener.py
Alucarxd/alucarxd.github.io
69a509957cec73a7cafe70e5e0afdfb0ed136614
[ "MIT" ]
null
null
null
plugins/shortener/shortener.py
Alucarxd/alucarxd.github.io
69a509957cec73a7cafe70e5e0afdfb0ed136614
[ "MIT" ]
null
null
null
plugins/shortener/shortener.py
Alucarxd/alucarxd.github.io
69a509957cec73a7cafe70e5e0afdfb0ed136614
[ "MIT" ]
null
null
null
import os import json from pathlib import Path from pelican import signals def generate_output(sender): output_path = sender.settings.get("OUTPUT_PATH", None) shortener_file = sender.settings.get("SHORTENER_FILE", None) if shortener_file is None: print("No shortener File was given") retu...
25.8
78
0.659619
128feaeeee3999edddffc53f193b78455c32ccd3
867
py
Python
libs/langfromstopwords/LangFromStopwordsModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/langfromstopwords/LangFromStopwordsModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
libs/langfromstopwords/LangFromStopwordsModel.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.path.dirname(__file__)) from libs.AbstractLanguageDetectionModel import AbstractLanguageDetectionModel from libs.langfromstopwords.mobi.LangFromStopwords import LangFromStopwords class LangFromStopwordsModel(AbstractLanguageDetectionModel): def __init__(self): Abst...
30.964286
78
0.677047
12bc6367d495830c91349b80b99cde7b7d2294a1
292
py
Python
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema_interface/topic_storages.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema_interface/topic_storages.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema_interface/topic_storages.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from abc import abstractmethod from watchmen_data_kernel.topic_schema import TopicSchema from watchmen_storage import TopicDataStorageSPI # noinspection PyClassHasNoInit class TopicStorages: @abstractmethod def ask_topic_storage(self, schema: TopicSchema) -> TopicDataStorageSPI: pass
24.333333
73
0.85274
427b77655a5498e435937b61af7af6b476af16e3
1,589
py
Python
expenses_tracker/expenses_tracker/web/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
expenses_tracker/expenses_tracker/web/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
expenses_tracker/expenses_tracker/web/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.core.validators import MinLengthValidator, MinValueValidator from django.db import models from expenses_tracker.web.validators import validate_only_letters, MaxFileSizeInMBValidator class Profile(models.Model): FIRST_NAME_MIN_LENGTH = 2 FIRST_NAME_MAX_LENGTH = 15 LAST_NAME_MIN_LENGTH = 2 ...
22.069444
91
0.655758
67819924fde392847a411af5bffb0933aff25af2
2,387
py
Python
WiSe-2122/Bot-Automation/basic-navigation.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Bot-Automation/basic-navigation.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Bot-Automation/basic-navigation.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# 1. Herunterladen von Google Chrome https://www.google.com/intl/de/chrome/ # 2. Google Chrome Version herausfinden # 3. Passende Chromedriver herunterladen https://chromedriver.chromium.org/downloads # 4. Selenium installieren # Windows: py -m pip install selenium # MacOS: python3 -m pip install selenium # 5. Au...
29.109756
84
0.719732
67b63405f75be06bef363abfb29a86e9e82a2eea
2,620
py
Python
respiratory/Processed Datasets/Processed Datasets/test2.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
respiratory/Processed Datasets/Processed Datasets/test2.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
respiratory/Processed Datasets/Processed Datasets/test2.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
# analysis over all patients # miscellaneous def zeros(n): zeros = [] for i in range (0,n): zeros.append(0) return zeros # initializing - # function takes no args (opens patient CSV files). # Function returns a list containing one list per patient. Each patient list contains all unique tuples that are found i...
25.686275
177
0.655725
67f5a0ee2c7b8a8e3d7fc178159eb49ba1102882
15,187
py
Python
tests/blockchain/rbac_client_helper_class.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/blockchain/rbac_client_helper_class.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/blockchain/rbac_client_helper_class.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
38.35101
84
0.633371
c0209dbafb457238d59ee2699dfb54b2ead4c7c9
3,875
py
Python
test/test_npu/test_network_ops/test_range.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_range.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_range.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/lice...
36.904762
95
0.626323
225da211713818dcfcf6ca4c064a767f447e399a
4,918
py
Python
alweb.py
Rapax-Brak/AlWeb
caaa4b88bf1de11a080efa33f696d6f7245604c9
[ "MIT" ]
null
null
null
alweb.py
Rapax-Brak/AlWeb
caaa4b88bf1de11a080efa33f696d6f7245604c9
[ "MIT" ]
null
null
null
alweb.py
Rapax-Brak/AlWeb
caaa4b88bf1de11a080efa33f696d6f7245604c9
[ "MIT" ]
1
2018-11-15T07:01:40.000Z
2018-11-15T07:01:40.000Z
#!/usr/bin/python3 import gi gi.require_version('Gtk','3.0') gi.require_version('WebKit2','4.0') from gi.repository import Gtk from gi.repository import WebKit2 class MainWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="AlWeb") self.set_default_size(1920, 1080) head...
35.89781
84
0.647824
7a15f5b395399f310f59522b9b9949a13ecee069
32,510
py
Python
packages/watchmen-storage-oracle/src/watchmen_storage_oracle/storage_oracle.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-oracle/src/watchmen_storage_oracle/storage_oracle.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-oracle/src/watchmen_storage_oracle/storage_oracle.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import date, time from decimal import Decimal from logging import getLogger from typing import Any, Callable, Dict, List, Optional, Tuple from sqlalchemy import and_, delete, distinct, func, insert, select, Table, text, update from sqlalchemy.engine import Connection, Engine from sqlalchemy.sql import Jo...
40.893082
118
0.765949
bee88d96bc2629cf21ba84bd38db5bd8586f304d
569
py
Python
Openharmony v1.0/vendor/hisi/hi35xx/third_party/uboot/test/py/test.py
clkbit123/TheOpenHarmony
0e6bcd9dee9f1a2481d762966b8bbd24baad6159
[ "MIT" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/test/py/test.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/device/hisilicon/third_party/uboot/u-boot-2020.01/test/py/test.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2015 Stephen Warren # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. # Wrapper script to invoke pytest with the directory name that contains the # U-Boot tests. import os import os.path import sys from pkg_resources import l...
27.095238
75
0.755712
8360232ebcd4765532e3611f2ac4657f1033d9c8
201
py
Python
python/python_backup/PRAC_PYTHON/err.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/err.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/err.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
a=input("enter a no") b=input("enter another no") c=input("enter third no") d=a+b+c print "the sum is",d e=a+b+c/3 if e>30: print "avg is greater than 30" else: print "avg is less than 30"
18.272727
32
0.631841
55e654452e16b683e59699dd3d0dc9cf2735bf39
38,936
py
Python
Packs/TrustwaveSEG/Integrations/TrustwaveSEG/TrustwaveSEG.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/TrustwaveSEG/Integrations/TrustwaveSEG/TrustwaveSEG.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/TrustwaveSEG/Integrations/TrustwaveSEG/TrustwaveSEG.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import hashlib import time from datetime import datetime import dateparser import requests import urllib3 # Disable insecure warnings urllib3.disable_warnings() DATE_FORMAT = '%d/%m/%Y, %H:%M:%S' class Client(BaseC...
40.643006
113
0.577871
3663790657b4e92581e21843c0466d0c21ba1407
14,518
py
Python
CompilerTheory_exp/exp2/ll1.py
DolorHunter/hfut-exp-archived
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
12
2020-12-07T05:49:05.000Z
2022-03-25T09:09:36.000Z
CompilerTheory_exp/exp2/ll1.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
null
null
null
CompilerTheory_exp/exp2/ll1.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
1
2021-01-08T08:53:53.000Z
2021-01-08T08:53:53.000Z
# coding:utf-8 import operator from queue import Queue mat = [] # 分析表 grams = [] # 文法表 t = [] # 终结符 nt = [] # 非终结符 simp_grams = [] # 简化后的语句(去除或) first_langs = {} # 储存非终结符的first集合 follow_langs = {} # 储存非终结符的follow集合 step_list = [] # 步骤表 analysis_list = [] # 分析栈表 input_string_list = [] # 输入串表 production_lis...
37.035714
134
0.523626
36f1c9fbc8376fae1466ba7c6890ceaf6775f3c0
242
py
Python
7-assets/_SNIPPETS/bryan-guner-gists/get-gistpy/memoize.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
3
2021-04-25T20:07:31.000Z
2021-08-31T00:57:44.000Z
7-assets/_SNIPPETS/bryan-guner-gists/get-gistpy/memoize.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
28
2021-04-06T06:17:02.000Z
2021-05-07T10:03:43.000Z
7-assets/_SNIPPETS/bryan-guner-gists/get-gistpy/memoize.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
def memoize(func): cache = {} def wrapped(*args, **kwargs): key = (tuple(args), tuple(kwargs.items())) if key not in cache: cache[key] = func(*args, **kwargs) return cache[key] return wrapped
22
50
0.541322
3d4074933989e8ffa0e66fb507fb23ac44eb2f1f
7,576
py
Python
tests/onegov/user/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/user/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/user/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from freezegun import freeze_time from onegov.user import RoleMapping from onegov.user import User from onegov.user import UserGroup from unittest.mock import call from unittest.mock import patch class DummyBrowserSession(): def __init__(self, token): self._token = token def flush(self): pass...
30.183267
78
0.618004
b151777af3fb2fc8d8c36bc5250cddfc3ad9c82c
820
py
Python
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/tuples.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/tuples.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/day-1-toy/tuples.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Tuples are like lists, but are immutable and are usually used to hold # heterogenous data. They use parens instead of square brackets. # Example: import math def dist(a, b): """Compute the distance between two x,y points.""" x0, y0 = a # Destructuring assignment x1, y1 = b return math.sqrt((x1 - ...
22.777778
71
0.626829
65e52ff81d640f0fab994a6e5d834b1b835e75fa
269
py
Python
exercises/zh/test_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert "for ent in doc.ents" in __solution__, "你有遍历所有实体吗?" assert ( "print(ent.text, ent.label_)" in __solution__ ), "你有打印文本和标注吗?" __msg__.good( "太棒啦!到现在为止,每一次模型都是正确的。" "下一个练习我们看看模型错了会怎么样," "以及如何调整模型。" )
22.416667
62
0.579926
b23f37cc8299cddc94ad05ad7b4b412d798189b5
1,068
py
Python
Project Euler Questions 1 - 10/Project Euler Question 9.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Questions 1 - 10/Project Euler Question 9.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Questions 1 - 10/Project Euler Question 9.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 9 #A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, #a^2 + b^2 = c^2 #For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. #There exists exactly one Pythagorean triplet for which a + b + c = 1000. #Find the product abc. def abc_finder(x): a = 1 b = 2 c = 3 ...
29.666667
79
0.423221
b23fec11618106e236e0f25532e5563f18933b48
1,449
py
Python
Gundlagen IT-Hardware/Aufgabe7.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
2
2021-11-16T22:53:25.000Z
2021-11-17T12:30:49.000Z
Gundlagen IT-Hardware/Aufgabe7.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-02-23T18:56:51.000Z
2022-02-23T19:09:20.000Z
Gundlagen IT-Hardware/Aufgabe7.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-01-24T16:54:10.000Z
2022-01-24T16:54:10.000Z
import time import explorerhat as hat def nametonumber(name): if name == "one": return 0 if name == "two": return 1 if name == "three": return 2 if name == "four": return 3 else: return -1 # Reset auf Low setzen hat.output[3].on() # PL auf High hat.output...
23
68
0.581781
b2a5617e8eefbeb808337ab88c9579855fff72a6
14,723
py
Python
quant/observers/t_binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/observers/t_binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/observers/t_binance.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging import time from quant import config from quant.brokers import broker_factory from .basicbot import BasicBot class TriangleArbitrage(BasicBot): """ python -m quant.cli -mBinance_WTC_BTC,Binance_WTC_ETH,Binance_ETH_BTC t-watch-binance-wtc -v py...
50.944637
120
0.627657
a2d8df54d88754faef2bb047e12b5fcbe404680f
1,925
py
Python
main.py
SirReaDy/Merkle-tree-scheme
f58a2b5472269433441a5600e195e27aa5e6b42f
[ "MIT" ]
null
null
null
main.py
SirReaDy/Merkle-tree-scheme
f58a2b5472269433441a5600e195e27aa5e6b42f
[ "MIT" ]
null
null
null
main.py
SirReaDy/Merkle-tree-scheme
f58a2b5472269433441a5600e195e27aa5e6b42f
[ "MIT" ]
null
null
null
from mtree import MerkleTree from lap1 import LamportSignature #algoritmul #https://en.m.wikipedia.org/wiki/Merkle_signature_scheme def main(): N = 4 # nr de message # Generate 'N' private/public key pairs (Xi, Yi) from the Lamport signature scheme key_pairs = [LamportSignature() for _ i...
34.375
120
0.64987
a76a3d8a49b146e0e42c00974084e51cecb36ed4
464
py
Python
pacman-arch/test/pacman/tests/upgrade031.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/upgrade031.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/upgrade031.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install packages non-explicitly" lp1 = pmpkg("pkg1") lp1.reason = 0 self.addpkg2db("local", lp1) p1 = pmpkg("pkg1", "1.0-2") p2 = pmpkg("pkg2", "1.0-2") for p in p1, p2: self.addpkg(p) self.args = "-U --asdeps %s" % " ".join([p.filename() for p in (p1, p2)]) self.addrule("PACMAN_RETCODE=0") se...
23.2
73
0.668103
0227a9bcef182a099bfa3c7aa5687fd64c645174
6,221
py
Python
Packs/PiHole/Integrations/PiHole/PiHole.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PiHole/Integrations/PiHole/PiHole.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PiHole/Integrations/PiHole/PiHole.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * ''' IMPORTS ''' import requests # Disable insecure warnings requests.packages.urllib3.disable_warnings() def results_return(command, thingtoreturn): if command == 'RecentBlocked': results = CommandResults( outputs_prefix='PiHole...
47.853846
125
0.625944
5a706189f345d2c3a3ede31697238b149221389a
8,313
py
Python
dash/migrations/0006_auto_20210326_1606.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0006_auto_20210326_1606.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0006_auto_20210326_1606.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-26 16:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dash', '0005_auto_20210325_1621'), ] operations = [ migrations.AddField( model_name='dossier', name='AAP', ...
35.525641
91
0.55323
0b3586803380dc9efc203451fa11315c5c7b81da
901
py
Python
Tutorials/Statistics/Binomial_Distribution1.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Binomial_Distribution1.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Tutorials/Statistics/Binomial_Distribution1.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# Given that b:float = 1.09 g:int = 1 n = 6 # exactly 6 childrens p = b/100 # having of probability of success having a boy q = 1- p # having of probability of success having not a boy # print(p,q) def fact(x,memo={}): # factorial of x! = x * (x-1) * (x-2) * ..... 2 * 1 if x in memo: return memo...
22.525
61
0.532741
f07cc2f0835a00534d7d78093c81c5cf280d24ef
1,750
py
Python
PINp/2015/DENISENKO_A_N/task_8_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_8_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_8_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 8 # Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) #так, чтобы к каждому слову полагалась подсказка. Игрок должен получать право на #подсказку в том случае, если у него нет никаких предположений. Разработайте #систему начисления очков, по которой бы игроки, отгадавшие слово без п...
28.688525
88
0.626286
b2d2256e0e579ee823d818bb59bf3a9011eff5db
684
py
Python
Data Structures/DataStructures-Problems/Arrays/Fredo and Large Numbers/fredo.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/Fredo and Large Numbers/fredo.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/Fredo and Large Numbers/fredo.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
if __name__ == "__main__": n = int(input()) arr = list(map(int, input().split()[:n])) freq = dict() for i in range(n): if arr[i] in freq: freq[arr[i]] = freq.get(arr[i])+1 else: freq[arr[i]] = 1 (li1, li2) = ([0]*(n+1), [0]*(n+1)) for i in range(n): ...
24.428571
45
0.391813
6508592fb930eb15dfdff0da764972c027bb096a
475
py
Python
PMIa/2015/NIKISHIN_P_S/task_5_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/NIKISHIN_P_S/task_5_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/NIKISHIN_P_S/task_5_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 22. # Напишите программу, которая бы при запуске случайным образом отображала имя одного из двух сооснователей компании Google. # Nikishin P. S. # 12.05.2016 import random print ("Программа случайным образом отображает имя одного из двух сооснователей компании Google.") g = random.randint(1,2) ...
26.388889
123
0.728421
6547ec3d33bc19afff1da7e2d84f4c8cd255cc38
1,676
py
Python
pyconuk/migrations/0002_auto_20160808_1403.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
pyconuk/migrations/0002_auto_20160808_1403.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
pyconuk/migrations/0002_auto_20160808_1403.py
OddBloke/2016.pyconuk.org
831d510a83c9cab8541198005c8024003b5049f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-08 14:03 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pyconuk', '0001_initial'), ] operations = [ ...
34.204082
114
0.544153
e8fd57d53921f75f09caade2fbe4ec1a03564061
519
py
Python
Python/pandas/21_sqlalchemy.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/21_sqlalchemy.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pandas/21_sqlalchemy.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import sqlalchemy import pandas as pd import numpy as np from sqlalchemy import Integer engine = sqlalchemy.create_engine('mysql+pymysql://root:@localhost:3306/pandas_data') conn = engine.connect() df = pd.DataFrame( np.random.randint(0, 100, size=(100, 3)) ) df.rename({0:"A", 1:"B", 2:"C"}, axis=1, inplace=True...
18.535714
85
0.647399
331989c14468bda0522405dc32809a01c9a5f990
1,863
py
Python
DataProcess/my_utils/reproduce_readprinter.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/my_utils/reproduce_readprinter.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/my_utils/reproduce_readprinter.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- """ @Project :DataProcess @File :reproduce_readprinter.py @Author :Zhang Qihang @Description: 复现ReadPrinter中的数据处理流程 @Date :2021/12/12 13:05 """ import pandas as pd import numpy as np import myplot def rp_process(file_path): # 获取csv中的数据,默认没有频率不一致的情...
28.227273
77
0.604402
cc2b75eea57cd230d1c69ea83f364c7e8e4f3f41
538
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.8-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.8-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.8-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 7.8 Othello # Othello is played as follows: # Each Othello piece is white on one side and black on the other. # When a piece is surrounded by its opponents on both the left and right sides or both the top and bottom, # it is said to be captured and color flipped. # On your turn, you must capture...
44.833333
110
0.717472
0bdb6013968e2fbb07ab7f97121f4c3ac34433dd
3,955
py
Python
sentinel/vpn/wireguard.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
null
null
null
sentinel/vpn/wireguard.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
null
null
null
sentinel/vpn/wireguard.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import subprocess import time from configparser import ConfigParser from ..config import WIREGUARD_DIR from ..node import node from .utils import convert_bandwidth, convert_to_seconds class Wireguard(object): def __init__(self, show_output=True): self.init_cmd = 'sh /root/sentinel/shell_...
36.962617
96
0.567636
0beff01d6440e57b9d8c4d30da95e7d73e912151
3,782
py
Python
spangle/component.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
spangle/component.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
spangle/component.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
""" Component tools. """ from __future__ import annotations from contextvars import ContextVar from typing import ( TYPE_CHECKING, Optional, Protocol, TypeVar, Union, cast, runtime_checkable, ) from ._internal.utils import execute if TYPE_CHECKING: from spangle.api import Api __all...
21.611429
82
0.644632
c5f23ede004793ce59a7d3fb02d0bd53efa8ca5c
5,248
py
Python
research/cv/IPT/src/data/bicubic.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/IPT/src/data/bicubic.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/IPT/src/data/bicubic.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.458647
120
0.524009
a89c9724848b1a55de65c325a11fad7adf835545
6,467
py
Python
test/test_npu/test_network_ops/test__nnpack_spatial_convolution.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test__nnpack_spatial_convolution.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test__nnpack_spatial_convolution.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
44.909722
88
0.644348
76936dfdf5bf12e623ed7ebc5a599c63ffeac5bd
1,173
py
Python
tests/onegov/translator_directory/test_report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/translator_directory/test_report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/translator_directory/test_report.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os from uuid import uuid4 import transaction from onegov.file import FileCollection from onegov.translator_directory.models.translator import Translator from onegov.translator_directory.report import TranslatorVoucher from tests.onegov.translator_directory.shared import translator_data from tests.shared.utils ...
26.066667
78
0.702472
4f4ac80a71a708a6bb9f585a4cd06b75effc34bd
3,531
py
Python
Webpage/web/migrations/0001_initial.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/web/migrations/0001_initial.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/web/migrations/0001_initial.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.8 on 2021-04-08 07:14 from django.db import migrations, models import django.db.models.deletion import tinymce.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='standartPages', ...
41.05814
143
0.554234
96dbc6ae751b82b22ecf4897944de5cbcab979da
3,275
py
Python
Python/regex/fstring_converter.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/regex/fstring_converter.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/regex/fstring_converter.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import re import pandas as pd import time from sqlalchemy import true class FStringParser: def __init__(self, string_template: str, tag_chars=("%<", ">%")) -> None: self.string_template = string_template self.tag_chars = tag_chars self.keys = self.__get_keys() self.regex = self.__p...
38.988095
215
0.635725
8c301fa512574c86636aeee6d9d1fd3b8e96f317
225
py
Python
pages/themes/beginners/sequenceDataTypes/Tasks_and_HW/task4_solution_with_indexing.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/Tasks_and_HW/task4_solution_with_indexing.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/Tasks_and_HW/task4_solution_with_indexing.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
words = ["dog", "talent", "loop", "aria", "tent", "choice"] print("Words which starts and end with same letter are:") for word in words: # if first letter is equal to last letter: if word[0] == word[-1]: print(word)
28.125
59
0.635556
8c30344ebd5dbaf60bd651e5e2067b71991b0c25
2,587
py
Python
resources/mechanics_lib/Servo.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/Servo.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/Servo.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from api.component import Component from ELibrary import motor class Servo(Component): def defComponents(self): self.addSubcomponent("beam", "RectBeam") self.addSubcomponent("hole", "Cutout") self.addEComponent(motor) def defParameters(self): ### beam parameters inherited by default self.newP...
32.746835
114
0.667955
50e499d22f872e03457efa9c0989f1e3ef7eacdb
1,054
py
Python
src/onegov/ballot/models/election/party_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/party_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ballot/models/election/party_result.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UUID from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import Text from uuid import uuid4 class PartyResult(Base, TimestampMixin): """ The election result of a party in a...
27.736842
75
0.718216
e8b1526ebb17ac4ee8d1efce99f7595fbf14feba
5,659
py
Python
scripts/ssanova/format-con.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/ssanova/format-con.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/ssanova/format-con.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
#/usr/bin/env python ''' ssanova-formatter.py: Extract pairs of columns from EdgeTrak-produced .con files to generate CSV files that Jeff Mielke's tongue_ssanova.R can operate on. Extracts only the center frame in a sequence. Usage $ python ssanova-formatter.py dirname > [output file].txt Arguments dirna...
36.275641
196
0.667432
e8c5acf4adeb1d80ed848d2ec330e02234b370a3
3,294
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/output/__init__.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/output/__init__.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/output/__init__.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2011-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....
30.785047
77
0.634487
7eb741f06a834fa7feaf6473eae4a7a515d2e1d7
4,582
py
Python
frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/buying/doctype/request_for_quotation/test_request_for_quotation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import unittest import frappe from erpnext.templates.pages.rfq import check_supplier_has_docname_access from frappe.utils import nowdate class TestRequestforQuotation...
33.940741
106
0.758621
ada606a48f6491b5355561bf43034c22e47966d4
522
py
Python
partner_ngos/config/programs_management.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/config/programs_management.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/config/programs_management.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Programs"), "items": [ { "type": "doctype", "name": "Programs", "onboard": 1, }, { "type": "doctype", "name": "Project Indicator", "onboard": 1, }, { "type...
15.352941
39
0.454023
adad137c547c087bfa96a807c3ae3d3a6f674a34
5,332
py
Python
Packs/CiscoASA/Integrations/CiscoASA/CiscoASA_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CiscoASA/Integrations/CiscoASA/CiscoASA_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CiscoASA/Integrations/CiscoASA/CiscoASA_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CiscoASA import Client import pytest MOCK_RULES_GLOBAL = { "kind": "collection#ExtendedACE", "selfLink": "https://example.com/api/access/global/rules", "rangeInfo": { "offset": 0, "limit": 1, "total": 1 }, "items": [ { "kind": "object#ExtendedACE", ...
32.512195
118
0.543511
6328a3117c1c2652cad1861c1b471d7d3893d228
545
py
Python
pynanz/Manager.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
pynanz/Manager.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
pynanz/Manager.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
import os import pynanz as pn from abc import ABC, abstractmethod import pandas as pd from typing import List class Manager(ABC): def __init__(self, tickers: List[str], starting_capital: float = 10000.0): self.portfolio = pn.Portfolio(tickers, starting_capital=starting_c...
25.952381
81
0.611009
2d6d60fb5e6cc3d6856e1bd85d96f42dda889675
1,738
py
Python
youtube/youtube-worker/worker.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
youtube/youtube-worker/worker.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
youtube/youtube-worker/worker.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- # # youtube_dl worker # import logging import os import redis import time import youtube_dl def download(url): def hook(info): now = int(time.time()) status = info['status'] if status == 'downloading': rdb.zadd('running', now, ur...
25.558824
104
0.542578
2dc491b9bf1e1c09aeac34b6f4ddf4d3cf08cf08
8,183
py
Python
core/back_test.py
NewLanded/swbt
8b8e8609cea060d6f124dc3c4bd99cb6243501dc
[ "Apache-2.0" ]
null
null
null
core/back_test.py
NewLanded/swbt
8b8e8609cea060d6f124dc3c4bd99cb6243501dc
[ "Apache-2.0" ]
null
null
null
core/back_test.py
NewLanded/swbt
8b8e8609cea060d6f124dc3c4bd99cb6243501dc
[ "Apache-2.0" ]
1
2019-11-28T16:29:49.000Z
2019-11-28T16:29:49.000Z
import copy import pandas as pd from core.plot_data import plot_data class BackTest: """ 回测核心类, 继承该类以定制策略, 覆盖 sizer 及 strategy """ def _store_ori_init_param(self, start_date, end_date, init_funding, max_period, commission, plot_flag, parameter_map, kwargs): self._ori_param = {} self...
37.884259
166
0.587804
ea18f55e3f3997d5fbb1a81a3c3c01a5c51a3152
534
py
Python
Cracking_the_Coding_Interview/hash_tables_ransom_note.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/hash_tables_ransom_note.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/hash_tables_ransom_note.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import Counter def ransom_note(magazine, ransom): m = Counter() for mag in magazine: m[mag] += 1 r = Counter() for ran in ransom: r[ran] += 1 for k, v in r.items(): if r[k] - m[k] > 0: return False return Tr...
19.071429
43
0.567416
ea37f648f059ec06f1c796a54122d50c5f857e2c
604
py
Python
packages/watchmen-storage-postgresql/src/watchmen_storage_postgresql/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-postgresql/src/watchmen_storage_postgresql/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-storage-postgresql/src/watchmen_storage_postgresql/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .data_source_postgresql import PostgreSQLDataSourceHelper, PostgreSQLDataSourceParams from .storage_postgresql import StoragePostgreSQL, TopicDataStoragePostgreSQL from .storage_postgresql_configuration import StoragePostgreSQLConfiguration from .table_defs_postgresql import register_meta_table from .table_defs_he...
75.5
109
0.895695
ea80a67b01add4a0e9c7ecdded4dd2d564a8245c
616
py
Python
Hackerrank_problems/DrawingBook/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/DrawingBook/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/DrawingBook/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
n = int(input().strip()) p = int(input().strip()) if p <= n: print(min(p // 2, n // 2 - p // 2)) # working # the minimum numbers of pages to turn can be achieved either moving pages from the front or from the back # either way pages will increment or decrement in progression of 2 # therefore minimum to any page ...
38.5
106
0.707792
57ac0de631463cd652e9dd6d37eaca64bf1195c9
4,282
py
Python
pk/data/cluster/multi_density_cluster.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/cluster/multi_density_cluster.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
pk/data/cluster/multi_density_cluster.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys import os import math from tools import logger import numpy as np from pandas import Series, DataFrame from PIL import Image # from PIL.Image import core as image import os, random, string, shutil from context.resource_manager import Properties from cluster.dens...
35.683333
115
0.655068
57b365830f3016eabc8bc2edeb5650b8afd9512d
6,669
py
Python
commons/utils.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
commons/utils.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
commons/utils.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import importlib def train(model, dataloader): total_loss = 0.0 model.train() dataloader.shuffle() batches = dataloader.get_train() for batch in batches: # Preprocess ...
33.512563
102
0.667566
353d448c5dd60a2891802c91c15e5a70ca7f8649
3,090
py
Python
RDS/circle1_adapters_and_ports/port_owncloud/src/lib/ownCloudUser.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle1_adapters_and_ports/port_owncloud/src/lib/ownCloudUser.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle1_adapters_and_ports/port_owncloud/src/lib/ownCloudUser.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from RDS import Util import os import requests import logging from webdav3.client import Client logger = logging.getLogger() class OwncloudUser: """ This represents an owncloud user. It initialize only one connection to owncloud for one user and holds the current access token. """ _access_token = No...
30.594059
132
0.599353
35448c7e544e8a70b33601a40402a54477e8514c
602
py
Python
etc code/video2image.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
etc code/video2image.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
etc code/video2image.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
import cv2 import sys import os if len(sys.argv) < 2: print "ERROR: file name" exit() file_name = sys.argv[1] cap = cv2.VideoCapture(file_name + '.mp4') video_h = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) video_w = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_cnt = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) cnt =...
18.242424
53
0.694352
108114c962ccd51851f5e0b29d9b5eedec04a744
3,915
py
Python
research/cv/SPPNet/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SPPNet/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SPPNet/src/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...
36.933962
94
0.585951
52eb433eda052f103928f114c6fddc9c222363e7
867
py
Python
storage/emulated/0/qpython/scripts3/auto_song_qr.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/auto_song_qr.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/auto_song_qr.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
#-*-coding:utf8;-*- #qpy:3 #qpy:console print("This is console module") import os,time try: import androidhelper as android except Exception as error: print(error) base_path="/storage/emulated/0/sl4a/songs/"#must be self create package ,not system exist #base_path="./mnt/sdcard/sl4a/" while...
26.272727
90
0.625144
f49d13e54b73cc1041b993612b63ccc7b08c3e44
442
py
Python
run/core/setup/schema.py
matthewmuccio/FlaskBase
b2d7288a33b20badee1f4667526cfc528599a9ef
[ "MIT" ]
null
null
null
run/core/setup/schema.py
matthewmuccio/FlaskBase
b2d7288a33b20badee1f4667526cfc528599a9ef
[ "MIT" ]
null
null
null
run/core/setup/schema.py
matthewmuccio/FlaskBase
b2d7288a33b20badee1f4667526cfc528599a9ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sqlite3 connection = sqlite3.connect("master.db", check_same_thread=False) cursor = connection.cursor() # Create users table cursor.execute( """CREATE TABLE users( id INTEGER PRIMARY KEY AUTOINCREMENT, username VARCHAR(16) UNIQUE NOT NULL, password VARCHAR(128) NO...
20.090909
67
0.710407
52271667b6dab2300d652d95029424ca8694b2d7
10,380
py
Python
skimind/kernel/useCases/buildTicket/main.py
NathBangwa/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
1
2020-11-13T18:30:47.000Z
2020-11-13T18:30:47.000Z
skimind/kernel/useCases/buildTicket/main.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
5
2020-11-13T18:16:48.000Z
2021-09-08T01:04:59.000Z
skimind/kernel/useCases/buildTicket/main.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
null
null
null
#-*-coding: utf-8 -*- # config from . import config # interfacedb from .import interfacedb # dataFilter from . import dataFilter # global config from . import skiconfig # gFunctions from . import gFunctions # tools import pandas as pd import numpy as np class BuildTicket(object): def __init__(self, bet_mone...
31.359517
133
0.578613
33b580199afc36c89a67d4b54cfbb18d662eac42
12,234
py
Python
ryu/app/simulation/Node.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/simulation/Node.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/simulation/Node.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
import logging import os import threading import time from lib import Flow from networkx import DiGraph import networkx as nx import numpy as np SwitchNumber = 16 SwitchCap = 3 flow_of_each_host = 10 ControllerPower = 200 numSmall = 0 numBig = 0 numSum = 0 class ControllerMonitor(threading.Thread): def __init__...
38.11215
122
0.525339
1d3a36a9767e87f84cb24a4fd63532cbde273b88
117
py
Python
pacman-termux/test/pacman/tests/pacman001.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/pacman001.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/pacman001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Test command line option (--version)" self.args = "--version" self.addrule("PACMAN_RETCODE=0")
19.5
57
0.717949
7f9a64b32dee4d26f889c676570aff380a08ae99
356
py
Python
torch/fx/experimental/fx2trt/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
5
2018-04-24T13:41:12.000Z
2019-07-09T07:32:09.000Z
torch/fx/experimental/fx2trt/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/fx/experimental/fx2trt/__init__.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
from .converters import * # noqa: F403 from .converter_registry import ( CONVERTERS, NO_EXPLICIT_BATCH_DIM_SUPPORT, NO_IMPLICIT_BATCH_DIM_SUPPORT, tensorrt_converter, ) from .fx2trt import TRTInterpreter, TRTInterpreterResult from .input_tensor_spec import InputTensorSpec from .trt_module import TRTMod...
29.666667
56
0.814607
c3cb42fa2263e9920fe490360ea0a00677c26455
350
py
Python
doc/examples/methods_using_function.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/methods_using_function.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/methods_using_function.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import boost def add(a, b): return a + b @boost class MyClass: attr0: float attr1: float def __init__(self, arg): self.attr0 = self.attr1 = 2 * float(arg) @boost def compute(self, number: int): result = 0.0 for _ in range(number): result +...
16.666667
49
0.577143
6151fe88d1666f37cc0471aedc8d4085e7ec50a7
100
py
Python
python/coursera_python/MICHIGAN/WEB/week4/ASCII.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/WEB/week4/ASCII.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/WEB/week4/ASCII.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# ord() x = input("Enter a character which you want to find the ASCII value of :\n"); print(ord(x))
25
77
0.67
61898d653e2e3b9bcd215936edd5bd4b779bbb3f
3,944
py
Python
bolt/discord/models/message.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/message.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/message.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.base import Enum, Model, Snowflake, Field, ListField, Timestamp from bolt.discord.models.emoji import Emoji from bolt.discord.models.user import User from bolt.discord.models.guild import Role, GuildMember from bolt.discord.models.embed import Embed from bolt.discord.models.channel import Chann...
26.469799
88
0.680781
61bfa0ed1290321cde33e971c6e793ea0b756cf8
475
py
Python
doc/for_dev/scikit-image/future/_unwrap_1d.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/for_dev/scikit-image/future/_unwrap_1d.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/for_dev/scikit-image/future/_unwrap_1d.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from numpy import pi from transonic import boost A = "float64[:]" @boost def unwrap_1d(image: A, unwrapped_image: A): """Phase unwrapping using the naive approach.""" unwrapped_image[0] = image[0] periods = 0 for i in range(1, image.shape[0]): difference = image[i] - image[i - 1] if ...
23.75
56
0.585263
4eea7b3db75de54a9b258bc2b8bf85d8b68e5fd7
471
py
Python
Python/Exercícios_Python/018_seno,_cosseno_e_tangente.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/018_seno,_cosseno_e_tangente.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/018_seno,_cosseno_e_tangente.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """018 - Seno, Cosseno e Tangente Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1KRQUxBOFN19OOm3EDMVTxcnprC03YUqA """ from math import cos, tan, sin, radians angulo = float(input('Digite um Ângulo: ')) s = sin(radians(angulo))...
31.4
100
0.692144
f66a3957ec5c7ebb5720ef4d988c442d34b1b420
430
py
Python
ictf-2021/lines/lines.py
AZ-0/Writeups
1420a51cbf55dae9ffd6d458aac6dec03aad6f1c
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/Lines/lines.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/Lines/lines.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from Crypto.Util.number import bytes_to_long import random flag = bytes_to_long(open("flag.txt", "rb").read()) msg = bytes_to_long(b":roocursion:") p = 82820875767540480278499859101602250644399117699549694231796720388646919033627 g = 2 a = random.randint(0, p) b = random.randint(0, p) s = pow(pow(g, a, p), b, p) def...
22.631579
81
0.697674
141c211691c46169321161e2bc5a392fa7f86eb8
738
py
Python
Python/Regex_and_Parsing/Matrix_Script.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Regex_and_Parsing/Matrix_Script.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Regex_and_Parsing/Matrix_Script.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/matrix-script/problem?h_r=internal-search import re #matrix size n x m n,m = tuple(map(int,input().strip().split())) #size allocation for letters matrix = [[0]*m for _ in range(n)] #rearranging letters in matrix for i in range(n): line = input() for j in range(m): ...
16.4
81
0.611111
25a93e58a59bcac7ce6685cfb0620878af4a6703
3,878
py
Python
bewerte/punkte.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
bewerte/punkte.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
bewerte/punkte.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
""" Berechne die Gesamtpunktzahl und speichere sie in punkte.csv """ import csv class PunkteZaehler: def __init__(self): """ Als erste stelle existiertst du """ self.tabelle = [] self.zeilen = [] self.head = [] self.aufgabenListe = [] def read_file(self,read): ...
37.650485
98
0.512635
d3408b7d0b26b8b34f25bb96136733ce1357653d
50
pyde
Python
kapitel2/w2_1/w2_1.pyde
ThomasBollmeier/programmieren-trainieren
b1670528aaae09f1ea9934db100f0d9c6eb3372f
[ "Apache-2.0" ]
null
null
null
kapitel2/w2_1/w2_1.pyde
ThomasBollmeier/programmieren-trainieren
b1670528aaae09f1ea9934db100f0d9c6eb3372f
[ "Apache-2.0" ]
null
null
null
kapitel2/w2_1/w2_1.pyde
ThomasBollmeier/programmieren-trainieren
b1670528aaae09f1ea9934db100f0d9c6eb3372f
[ "Apache-2.0" ]
null
null
null
message = "Three-Two-One-Takeoff!" print(message)
16.666667
34
0.74