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
2249e0a090ec3b77c082f1c9a5aa2feb5c64745f
5,745
py
Python
fhirclient/r4models/documentmanifest.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/documentmanifest.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/documentmanifest.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/DocumentManifest) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class DocumentManifest(domainresource.DomainResource): """ A list that defines a set o...
38.3
114
0.60557
3f3f9fb25c349a3c888e7d7f0eac0aa41ca044d4
2,197
py
Python
Packs/McAfee_DXL/Integrations/McAfee_DXL/McAfee_DXL_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/McAfee_DXL/Integrations/McAfee_DXL/McAfee_DXL_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/McAfee_DXL/Integrations/McAfee_DXL/McAfee_DXL_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from McAfee_DXL import * import pytest data_test_push_ip = ['-.-.-.-', '1.1.1'] valid_private_key = """-----BEGIN PRIVATE KEY----- This is a vaild Private Key -----END PRIVATE KEY-----""" valid_certificate = """-----BEGIN CERTIFICATE----- This is a valid Certificate -----END CERTIFICA...
33.8
81
0.679563
18bf2b7f0236448d9b2a23b99393608657cb5169
299
py
Python
exercises/en/solution_02_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/solution_02_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/solution_02_02_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("en") doc = nlp("David Bowie is a PERSON") # Look up the hash for the string label "PERSON" person_hash = nlp.vocab.strings["PERSON"] print(person_hash) # Look up the person_hash to get the string person_string = nlp.vocab.strings[person_hash] print(person_string)
23
48
0.755853
55c33b652c56eb4097dc69e525a6c39011c07986
766
py
Python
scripts/component_graph/server/graph/__init__.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/server/graph/__init__.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/server/graph/__init__.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The graph module provides the component graph implementation. The graph module stores the core component graph data structure which ...
45.058824
77
0.830287
368a73cd089fecad18f48880265cc7f707a2d3cf
3,501
py
Python
src/onegov/user/auth/clients/kerberos.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/auth/clients/kerberos.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/auth/clients/kerberos.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import kerberos import os from attr import attrs, attrib from contextlib import contextmanager from webob.exc import HTTPUnauthorized @attrs() class KerberosClient(): """ Kerberos is a computer-network authentication protocol that works on the basis of tickets to allow nodes communicating over a non-secure n...
30.181034
79
0.630677
7fff6aaf66a9845b39dcb54295e22f93f5b63ab6
3,871
py
Python
rnpflow_test/rmp_tree.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
rnpflow_test/rmp_tree.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
rnpflow_test/rmp_tree.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
"""作成中""" import numpy as np #import types class RMPAlgebra: @classmethod def pushforward(cls, x, dx, psi, J): """1個だけpush""" y = psi dy = J @ dx return y, dy @classmethod def pullback(cls, x, dx, J, dJ, f, M): """1個だけpull""" f...
22.770588
99
0.461896
1845c3c45efd65d09c114e1b1efccf0256ae1e75
3,847
py
Python
packages/watchmen-meta/src/watchmen_meta/system/pat_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/system/pat_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/system/pat_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List, Optional from watchmen_auth import PrincipalService from watchmen_meta.common import StorageService from watchmen_model.common import PatId, TenantId, UserId from watchmen_model.system import PersonalAccessToken from watchmen_storage import ColumnNameLiteral, EntityCriteriaExpression, EntityFi...
32.880342
119
0.77203
a10abac17391de8fda18dd7fe5aefe9fce3a54e0
9,859
py
Python
modules/random_search.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/random_search.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/random_search.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" RL MODULE WITH RANDOM SEARCH CALL BY: <random_search.py> RETURN: Parameter Matrices for the inverted Pendulum Problem Stores Data of best Parameters in '<date>_rs_reward_<reward>.p' INFO: - """ # Some dependencies import numpy as np # Maths and stuff import gym.spaces # Simulating the E...
39.278884
171
0.507151
a163b0117a17ba99e21ac37c7e06d0b806653ad2
15,746
py
Python
book/_build/jupyter_execute/docs/002_networking.py
tom-tubeless/linux-server-management
6e061ce44d6d4fc6339da6a666fa971c33dc131b
[ "MIT" ]
null
null
null
book/_build/jupyter_execute/docs/002_networking.py
tom-tubeless/linux-server-management
6e061ce44d6d4fc6339da6a666fa971c33dc131b
[ "MIT" ]
null
null
null
book/_build/jupyter_execute/docs/002_networking.py
tom-tubeless/linux-server-management
6e061ce44d6d4fc6339da6a666fa971c33dc131b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Netzwerke # # In diesem Kapitel wirst du selbst tätig. # Mit dem Netzwerksimulator Filius kannst du die Grundlagen von Computer-Netzwerken auf dem eigenen Computer ausprobieren. # Den Netzwerksimulator Filius gibt es für Windows, OSX und Linux. # Du kannst Filius kostenlos un...
49.20625
414
0.719611
a1676755478872868570e61fbdf78e1a9ab81e15
62,446
py
Python
repo/service.vpn.manager/libs/generation.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/libs/generation.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/libs/generation.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Zomboided # # 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 3 of the License, or # (at your...
40.287742
144
0.535294
62e67574ff414cef9dd57ca86caec43477a33960
4,495
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_length.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_length.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_length.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformLength(unittest.TestCase): def setUp(self): self.data = { "list": ["Canada", "Argentina", "Cyprus", "Schweden", "Norway", "USA", "Germany", "United Kingdom", "Z"], ...
39.086957
118
0.448498
c556d6e6c3ff320603b65c940abbfb67ebc9d686
3,594
py
Python
rasa/shared/nlu/training_data/features.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
30
2020-11-30T12:55:45.000Z
2022-01-20T02:53:03.000Z
rasa/shared/nlu/training_data/features.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/shared/nlu/training_data/features.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
10
2021-01-11T02:08:43.000Z
2021-11-19T09:12:46.000Z
from typing import Union, Text, Optional, List, Any, Tuple import numpy as np import scipy.sparse from rasa.shared.nlu.constants import VALID_FEATURE_TYPES class Features: """Stores the features produces by any featurizer.""" def __init__( self, features: Union[np.ndarray, scipy.sparse.spma...
32.672727
94
0.623261
b178fa7a040859ce0385e5cfec01bb100317c1ce
20
py
Python
python/en/archive/topics/temp/regex/delete_hashtag.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/regex/delete_hashtag.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/regex/delete_hashtag.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
\B(\#[a-zA-Z_]+\b)
6.666667
18
0.35
77473f519b023549e089ff9dbc7879714e10e1de
494
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_state.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_state.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/behavioral/test_state.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
import pytest from patterns.behavioral.state import Radio @pytest.fixture def radio(): return Radio() def test_initial_state(radio): assert radio.state.name == "AM" def test_initial_am_station(radio): initial_pos = radio.state.pos assert radio.state.stations[initial_pos] == "1250" def test_togg...
17.642857
54
0.700405
775dfe2dec4654f34a04629b46195ce42655c3f8
110
py
Python
python_project/python/fun_for_t1.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
python_project/python/fun_for_t1.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
python_project/python/fun_for_t1.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
a = ['Mary', 'had', 'a', 'little', 'lamb'] for i in a: print i for i in range(len(a)): print i,a[i]
15.714286
42
0.5
62392a5ce2e8c3c69c65b3554b853624e53d0a4a
387
py
Python
DataStructure/U5/U5_43_Zusatz.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U5/U5_43_Zusatz.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U5/U5_43_Zusatz.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
def intergral(f): #((a,b),(c,d)) -> A function f = list(f) ls = [] ls.append(f[0][0][0]) for x in f: a = x[0][0] b = x[0][1] c = x[1][0] d = x[1][1] # Increasing of the linear k = (d - b) / float(c - a) ls.extend([k, c]) ...
19.35
48
0.374677
02df3fcb56997d9a3d4dc72c4dfc3734f173848b
1,437
py
Python
demo/HelloPython/BFS.py
muhlenXi/enjoy-algorithm
a2e2edca96dc5706c494415f9e2e96f62d045fb3
[ "Apache-2.0" ]
null
null
null
demo/HelloPython/BFS.py
muhlenXi/enjoy-algorithm
a2e2edca96dc5706c494415f9e2e96f62d045fb3
[ "Apache-2.0" ]
null
null
null
demo/HelloPython/BFS.py
muhlenXi/enjoy-algorithm
a2e2edca96dc5706c494415f9e2e96f62d045fb3
[ "Apache-2.0" ]
null
null
null
import math import heapq graph = { "A" : ["B", "C"], "B": ["A", "E"], "C": ["A", "D", "F"], "D": ["C", "E"], "E": ["B", "D", "F", "G"], "F": ["C", "E"], "G": ["E"] } graph1 = { "A" : {"B": 4, "C": 1}, "B": {"A": 4, "E": 21}, "C": {"A": 1, "D": 5, "F": 8}, "D": {"C": 5, "E": 5}, "E": {...
16.905882
41
0.517049
f322586eb1f146e1bd34d0c641a1b4b6e5958b50
2,516
py
Python
riqc/libs/viz.py
ratschlab/software-m53
affc6b8bffc72c5dbaa9d4eca513c42962de01fe
[ "MIT" ]
null
null
null
riqc/libs/viz.py
ratschlab/software-m53
affc6b8bffc72c5dbaa9d4eca513c42962de01fe
[ "MIT" ]
null
null
null
riqc/libs/viz.py
ratschlab/software-m53
affc6b8bffc72c5dbaa9d4eca513c42962de01fe
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('AGG') import matplotlib.pyplot as plt import numpy as np def plotBias(vals, fn_plot, myidx, logScale = False, refname = 'TCGA'): iqr = ( (np.percentile(vals[~myidx],75) - np.percentile(vals[~myidx],25) ) * 1.5) iqr2 = ( (np.percentile(vals[myidx],75) - np.percentile(va...
41.245902
130
0.617647
b892eea727aea103cb230bc3a707b25cdde18553
361
py
Python
Kapitel_1/_3_Klassenattribute_2.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_1/_3_Klassenattribute_2.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_1/_3_Klassenattribute_2.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Deklaration der Klasse mit einem Klassenattribut und dem Konstruktor --- # class PC: klassen_attribut = "Ich bin ein Klassenattribut" def __init__(self): self.attr1 = self.__class__.klassen_attribut # Zeile 1 self.attr2 = type(self).klassen_attribut # Zeile 2 self.attr3 = PC...
40.111111
80
0.65928
b275a51037d8c136c4d9ca4b6080ad2ae527cf0d
5,919
py
Python
tree/b_tree.py
yujungcheng/algorithm_and_data_structure
3742238227067217b82bf35ca3a968db4375f3c9
[ "Apache-2.0" ]
null
null
null
tree/b_tree.py
yujungcheng/algorithm_and_data_structure
3742238227067217b82bf35ca3a968db4375f3c9
[ "Apache-2.0" ]
null
null
null
tree/b_tree.py
yujungcheng/algorithm_and_data_structure
3742238227067217b82bf35ca3a968db4375f3c9
[ "Apache-2.0" ]
1
2020-04-16T01:17:04.000Z
2020-04-16T01:17:04.000Z
#!/usr/bin/python3 ''' B-Tree Structure (B_Tree) | | | degree ---- Integer | (Node) | | | | | is_leaf ---- True/False | values ---- [integer, integer, ...] children ---- [(Node), (Node), ...] | | | ...
29.595
79
0.486062
a2b7fd46331a548fd215a570e187418ec895f8b6
4,180
py
Python
data/WikiTransformer.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
data/WikiTransformer.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
data/WikiTransformer.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import sys import csv from pathlib import Path class WikiTransformer(): """Transform and prepare Wiki data.""" def __init__(self, min_doc_lines=10, max_content_size=120, max_articles=1000): self.min_doc_lines = min_doc_lines # Skip articles with less than 10 lines of raw content (inkl...
34.262295
141
0.516986
a73cace65a678f129c21e15a24c531b30f5c71ba
552
py
Python
tests/test_overlap.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
49
2018-11-07T06:43:33.000Z
2022-03-18T20:53:06.000Z
tests/test_overlap.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
94
2018-11-06T20:15:04.000Z
2022-01-06T09:06:15.000Z
tests/test_overlap.py
qucontrol/krotov
9f9a22336c433dc3a37637ce8cc8324df4290b46
[ "BSD-3-Clause" ]
20
2018-11-06T20:03:11.000Z
2022-03-12T05:29:21.000Z
import numpy as np import qutip from qutip import ket import krotov def test_overlap(): Qmagic = (1.0 / np.sqrt(2.0)) * qutip.Qobj( np.array( [[1, 0, 0, 1j], [0, 1j, 1, 0], [0, 1j, -1, 0], [1, 0, 0, -1j]], dtype=np.complex128, ), dims=[[2, 2], [2, 2]], ) d...
22.08
75
0.518116
ac893206c69b1493e44c8b53ad145bd0f1514057
7,521
py
Python
src/onegov/election_day/formats/election/internal_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/election/internal_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/election/internal_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Candidate from onegov.ballot import CandidateResult from onegov.ballot import ElectionResult from onegov.election_day import _ from onegov.election_day.formats.common import EXPATS, validate_integer from onegov.election_day.formats.common import FileImportError from onegov.election_day.formats...
32.7
79
0.633692
3bceaec0780aab9c40de19b4597fceecdc40021c
1,774
py
Python
kts/eda/importance.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/eda/importance.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/eda/importance.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import seaborn as sns from matplotlib.pyplot import figure from kts.feature_selection.selector import BuiltinImportance def plot_importances(experiment, n_best=15, sort_by="mean", calculator=BuiltinImportance(), fontsize=12): """...
36.958333
85
0.616122
025bc1378a7a678f7a81293c321926576e8e2bac
148
py
Python
app/__init__.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
app/__init__.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
app/__init__.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
from flask import Flask from .config import Config from .utils import * app = Flask(__name__) app.config.from_object(Config) from . import routes
16.444444
30
0.777027
0baeac4755d7750ba8348c97bfabf2f172c72ebe
145
py
Python
3.Python/azzahra07.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
11
2020-10-02T06:37:32.000Z
2020-10-28T09:09:33.000Z
3.Python/azzahra07.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
7
2020-10-08T09:03:22.000Z
2020-11-03T23:58:13.000Z
3.Python/azzahra07.py
AyushSarode/Hacktoberfest2020-Newbie
f7194dabcefb7e808eaedc852c630cbd65367517
[ "MIT" ]
58
2020-09-29T15:35:39.000Z
2021-10-05T17:35:15.000Z
name, age = "Salsabila Azzahra", 21 username = "azzahra07" print ('Hello!') print("Name: {}\nAge: {}\nUsername: {}".format(name, age, username))
29
68
0.655172
f080c32cd0d94d84f5dcea45ce84ef681d8e328a
3,524
py
Python
layouts/community/ergodox/algernon/tools/text-to-log.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2019-05-13T05:19:02.000Z
2021-11-29T09:07:43.000Z
layouts/community/ergodox/algernon/tools/text-to-log.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
layouts/community/ergodox/algernon/tools/text-to-log.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys charmap = { '9': [[1, 0]], '7': [[2, 0]], '@': [[2, 5], [2, 0]], '5': [[3, 0]], '*': [[2, 5], [3, 0]], '3': [[4, 0]], '^': [[2, 5], [4, 0]], '1': [[5, 0]], '$': [[2, 5], [5, 0]], '0': [[8, 0]], '%': [[2, 5], [8, 0]], '2': [[9, 0]], '!': [[2, 5], ...
32.62963
87
0.28462
65350e8ae099bd8e65a67aa425fd58b726789eb1
457
py
Python
python/pytest/test_pytest_parametrize2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pytest/test_pytest_parametrize2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pytest/test_pytest_parametrize2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pytest def is_palinedrome(word: str): word = word.replace(" ", "") return word.lower() == word[::-1].lower() @pytest.mark.parametrize("palindrome, expected_result", [ ("", True), ("a", True), ("Bob", True), ("Never odd or even", True), ("Do geese see God", True), ("abc", False...
22.85
57
0.61488
9bceefc5dfdae8cd14ea60f8281b9230c935bda9
8,412
py
Python
research/cv/deeplabv3plus/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/deeplabv3plus/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/deeplabv3plus/eval.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 a...
37.891892
105
0.626961
5056cdbe67dec0767ab9a04fdcfd0fd9dbb57351
1,130
py
Python
toilet/monitor.py
kazunori279/ml-misc
6cf25dd44522cd49e6a1c3edff38f7dfc70cba33
[ "Apache-2.0" ]
31
2017-08-30T23:27:33.000Z
2022-01-18T19:37:40.000Z
toilet/monitor.py
kazunori279/ml-misc
6cf25dd44522cd49e6a1c3edff38f7dfc70cba33
[ "Apache-2.0" ]
null
null
null
toilet/monitor.py
kazunori279/ml-misc
6cf25dd44522cd49e6a1c3edff38f7dfc70cba33
[ "Apache-2.0" ]
15
2017-10-16T01:15:44.000Z
2021-12-24T03:36:11.000Z
# # monitor.py # # when the toilet isn't dark, takes a picture and check if the floor is wet. # import time import predict from picamera import PiCamera from picamera.exc import PiCameraRuntimeError from grovepi import * # I/O ports LIGHT = 0 LED = 5 BUZZ = 6 # buzzer def buzz(): for i in range (0, 5): time....
18.225806
77
0.679646
4a05774db9c2f75475e871722d80c2e7094dcbb3
1,794
py
Python
2018/finals/pwn-mojo/attachments/service.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/finals/pwn-mojo/attachments/service.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/finals/pwn-mojo/attachments/service.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#! /usr/bin/python # Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
30.931034
118
0.520624
c58aa81905707a9e321009ab30cb93009f9a9574
3,922
py
Python
src/test/tests/hybrid/conn_cmfe.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/conn_cmfe.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/conn_cmfe.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: conn_cmfe.py # # Defect ID: '6616 # # Programmer: Hank Childs # Date: August 30, 2005 # # Modifications: # # Hank Childs, Tue Sep 20 13:15:11 PDT 2005 # Test for non-existent databases, e...
28.42029
119
0.711882
8c58012696158243a2c1dbfb4b947240bc67ca52
217
py
Python
pacman-termux/test/pacman/tests/query001.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/query004.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/query004.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Query a package" p = pmpkg("foobar") p.files = ["bin/foobar"] self.addpkg2db("local", p) self.args = "-Q %s" % p.name self.addrule("PACMAN_RETCODE=0") self.addrule("PACMAN_OUTPUT=^%s" % p.name)
19.727273
42
0.668203
8c7e0fa10bfb31aca7c1cb0af7ce85d94acf0645
434
py
Python
python/primary/模块/print_tuple2.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
1
2020-07-29T16:43:46.000Z
2020-07-29T16:43:46.000Z
python/primary/模块/print_tuple2.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
python/primary/模块/print_tuple2.py
EstherLacan/jiangfw
a449b1925742873c76dc1b3284aedb359204bc76
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: using_tuple.py zoo = ('wolf', 'elephant', 'penguin') print ('Number of animals in the zoo is', len(zoo)) print ('animals in the zoo are', zoo) new_zoo = ('monkey', 'dolphin', zoo) print ('Number of animals in the new zoo is', len(new_zoo)) print ('All animals in new zoo are', new_zoo) pr...
33.384615
60
0.68894
8cbfac16c68f4d9f56f325e5f4bff88f2f80f5bd
752
py
Python
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P05_Journey.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P05_Journey.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P05_Journey.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
budget = float(input()) season = input() spend = 0 if budget <= 100: if season == "summer": spend = budget * 0.3 print("Somewhere in Bulgaria") print("Camp - " + f'{spend:.2f}') elif season == "winter": spend = budget * 0.7 print("Somewhere in Bulgaria") print("H...
28.923077
42
0.523936
508a9c249281d717a3b604a815e0f1eccbb23a52
223
py
Python
Problems/Two Pointers/easy/ReverseString2/test_reverse_string_2.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/ReverseString2/test_reverse_string_2.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/ReverseString2/test_reverse_string_2.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from reverse_string_2 import reverseStr class Test(TestCase): def test_reverse_str(self): self.assertEqual(reverseStr("abcdefg"), 2) self.assertEqual(reverseStr("abcd"), 2)
31.857143
50
0.73991
50baa044cd2cbb07afb3d13397d22c8eb6605981
8,995
py
Python
tests/transformers/roberta/test_modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/transformers/roberta/test_modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/transformers/roberta/test_modeling.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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...
38.276596
130
0.618232
e84e2ae286567a2cf607e21c2c8b421232b59420
549
py
Python
src/lcdoc/mkdocs/lp/plugs/python/pyplugs/mpl_pyplot/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/lp/plugs/python/pyplugs/mpl_pyplot/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/lp/plugs/python/pyplugs/mpl_pyplot/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
import os from functools import partial from lcdoc.mkdocs.lp.plugs import python from lcdoc.mkdocs.tools import make_img config, page, Session = (python.config, python.page, python.Session) def register(fmts): """registering us as renderer for show(<pyplot module>) within lp python""" fmts['matplotlib.pyplo...
26.142857
79
0.708561
e85d38ae56414a7307d53146806860138691a330
15,303
py
Python
fcos_core/modeling/rpn/fcos/fcos.py
HaoGood/MMMC
24dd4ce830efc7a8dc580735903c2a776b6a1a7b
[ "Apache-2.0" ]
3
2022-01-12T11:22:38.000Z
2022-01-27T02:28:30.000Z
fcos_core/modeling/rpn/fcos/fcos.py
HaoGood/MMMC
24dd4ce830efc7a8dc580735903c2a776b6a1a7b
[ "Apache-2.0" ]
null
null
null
fcos_core/modeling/rpn/fcos/fcos.py
HaoGood/MMMC
24dd4ce830efc7a8dc580735903c2a776b6a1a7b
[ "Apache-2.0" ]
1
2022-01-23T02:45:03.000Z
2022-01-23T02:45:03.000Z
import math import torch import torch.nn.functional as F from torch import nn from .inference import make_fcos_postprocessor from .loss import make_fcos_loss_evaluator from fcos_core.layers import Scale from fcos_core.layers import DFConv2d class FCOSHead(torch.nn.Module): def __init__(self, cfg, in_channels): ...
41.697548
111
0.582435
e8ac72ffd0145948f765de28692b72ed350e4674
179
py
Python
pyScript/custom_src/DetailsWidget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/DetailsWidget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/DetailsWidget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QWidget class DetailsWidget(QWidget): def __init__(self): super(DetailsWidget, self).__init__() def vy_update(self): pass
17.9
45
0.687151
d7134bc58a1063d3c0e2225410c680686d9e9a73
249
py
Python
python/coding_dojang/decorator_class.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/decorator_class.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/decorator_class.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class Trace: def __init__(self, func): self.func = func def __call__(self): print(self.func.__name__, '함수 시작') self.func() print(self.func.__name__, '함수 끝') @Trace def hello(): print('hello') hello()
14.647059
42
0.566265
d15dc64e0956211ed23d5f633f388d55f134c0ec
160
py
Python
Workflow/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Workflow/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Workflow/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
from django.conf.urls import url from .views import control_view app_name = 'Workflow' urlpatterns = [ url('^skripte$', control_view, name='skripte'), ]
16
51
0.7125
0f0ba708c041cc99ab7bda9bd2fc6b5597ca8b15
7,181
py
Python
code/tests/test_code.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/tests/test_code.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/tests/test_code.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
1
2019-06-05T09:10:30.000Z
2019-06-05T09:10:30.000Z
import unittest from strategy.code import Strategy from strategy import Action from strategy import BlockOrigin from strategy import ActionException class StrategyTest(unittest.TestCase): def test_same_length_block_origin_public(self): strategy = Strategy() action = strategy.find_action(0, 1, Bl...
35.549505
109
0.718145
7e33fb8400bcebf495d6361fd09f72db35d2d834
1,845
py
Python
official/cv/crnn_seq2seq_ocr/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/crnn_seq2seq_ocr/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/crnn_seq2seq_ocr/src/utils.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...
35.480769
114
0.675339
7e75125936cb372999eaefe8d8949720f030b696
308
py
Python
Webpage/web/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/web/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/web/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin #from .models import BlogEintrag from web.models import infoPage, frontHeader, HeadPage, standartPages, sponsoren admin.site.register(infoPage) admin.site.register(HeadPage) admin.site.register(frontHeader) admin.site.register(standartPages) admin.site.register(sponsoren)
28
80
0.834416
7ed862e2456926b98c7bdc8847ccc85ee72184cd
6,405
py
Python
hashing/scripts/breakdown_hsstudy.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/breakdown_hsstudy.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/breakdown_hsstudy.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
import os import matplotlib import matplotlib.pyplot as plt import numpy as np import pylab from matplotlib.font_manager import FontProperties from matplotlib.ticker import LinearLocator from numpy import double OPT_FONT_NAME = 'Helvetica' TICK_FONT_SIZE = 20 LABEL_FONT_SIZE = 22 LEGEND_FONT_SIZE = 24 LABEL_FP = Font...
32.51269
117
0.560187
adfdd154e18eb8fce16db296e32b47f32a9f55f4
485
py
Python
exercises/pt/test_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert nlp.meta["name"] == "core_web_sm", "Você está carregando o modelo correto?" assert "print(nlp.pipe_names)" in __solution__, "Você está imprimindo o nome dos componentes?" assert "print(nlp.pipeline)" in __solution__, "Você está imprimindo o pipeline?" __msg__.good( "Muito bom...
48.5
98
0.71134
70eb95bf41b2ee7f3b65774703d8daf97e0162fe
3,650
py
Python
code/selfish_proxy/main.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/selfish_proxy/main.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/selfish_proxy/main.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
1
2019-06-05T09:10:30.000Z
2019-06-05T09:10:30.000Z
import argparse import logging import sys from networking import Networking from strategy.executor import Executor from strategy.code import Strategy from chain import Chain from bitcoin import core import threading import cliserver from threading import Lock def check_positive(value): integer_value = int(value) ...
30.165289
93
0.590137
38c2aac059861ee3ceb322d979834fee85556260
1,156
py
Python
enrich/queries.py
sonar-idh/Transformer
bbfde9d19ad4a4917257483ba66eb30a8294244d
[ "MIT" ]
null
null
null
enrich/queries.py
sonar-idh/Transformer
bbfde9d19ad4a4917257483ba66eb30a8294244d
[ "MIT" ]
null
null
null
enrich/queries.py
sonar-idh/Transformer
bbfde9d19ad4a4917257483ba66eb30a8294244d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- per_wd = { "DateOfDeath": "SELECT ?Todestag WHERE { wd:%s wdt:P570 ?Todestag}", "DateOfBirth": "SELECT ?Geburtsdatum WHERE { wd:%s wdt:P569 ?Geburtsdatum}", "Gender": """SELECT ?GeschlechtLabel WHERE { wd:%s wdt:P21 ?Geschlecht . SERVICE ...
52.545455
87
0.554498
93461ed0c01eb3c7dd28f14f1416c48e5d152a99
1,667
py
Python
gratz/forum/views.py
mike-carter/Gratz
5f0889c4ad127e2bb513f11cb4b39e9a3aa2d4c6
[ "MIT" ]
null
null
null
gratz/forum/views.py
mike-carter/Gratz
5f0889c4ad127e2bb513f11cb4b39e9a3aa2d4c6
[ "MIT" ]
null
null
null
gratz/forum/views.py
mike-carter/Gratz
5f0889c4ad127e2bb513f11cb4b39e9a3aa2d4c6
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render, get_object_or_404 from django.views import generic from django.urls import reverse from django.utils import timezone from .models import Post, Comment # Create your views here. class HomepageView(generic.ListView): ""...
29.767857
73
0.70066
8787d38984a0554c9892abc1c05bebf334c0b5f8
3,500
py
Python
python/csv_find_similarities.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/csv_find_similarities.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/csv_find_similarities.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import codecs import sys from Levenshtein import ratio import openapc_toolkit as oat ARG_HELP_STRINGS = { "csv_file": "The csv input file", "index": "The index of the column to find similarities in", "encoding": "The encoding of the CSV file...
36.842105
98
0.602857
35ca98253179ffaabea9d1230a52f4bf5b110473
245
py
Python
test/2022/2-15/test.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
test/2022/2-15/test.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
test/2022/2-15/test.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
arr = [ "-rtsp_transport", "tcp", "-i", "-vcodec", "copy", "-f", "mp4", "-movflags", "frag_keyframe+empty_moov", "-reset_timestamps", "1", "-vsync", "1", "-flags", "global_header", "-bsf:v", "dump_extra", "-y", "-" ] print(' '.join(arr))
49
108
0.546939
ea8129afdc7b20e94fa3569ef03b9f1c82943d6d
21,853
py
Python
model_zoo/ernie-health/cblue/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-health/cblue/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-health/cblue/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 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...
40.170956
102
0.571729
57702f4a1dd2bd5d0148b56b6b260e2248073be1
1,303
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/morphological_transformations.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/morphological_transformations.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/morphological_transformations.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Apr 1 11:18:39 2019 @author: jone """ import cv2 from matplotlib import pyplot as plt img = cv2.imread('img/morph.png') kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5)) #kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5)) #kernel = cv2.getStructuringEl...
30.302326
97
0.706063
103afe55fd95550716403462cfe11795977df0dd
542
py
Python
.pythonstartup.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
5
2017-04-18T20:21:06.000Z
2020-12-28T05:44:39.000Z
.pythonstartup.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
35
2016-09-21T18:04:51.000Z
2020-03-11T02:39:20.000Z
.pythonstartup.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
2
2018-12-17T03:16:35.000Z
2020-10-18T10:09:01.000Z
# http://stackoverflow.com/questions/675370/tab-completion-in-python-interpreter-in-os-x-terminal?lq=1 # try: # import readline # except ImportError: # print("Module readline not available.") # else: # import rlcompleter # readline.parse_and_bind("tab: complete") # http://stackoverflow.com/questions/71...
31.882353
102
0.747232
eafe0e2cd28b59044f0679a51f481998193107aa
2,304
py
Python
owmtest.py
phucdev/weatherbot
2a88ebb5fb52cc8309f6ce133d850328320a5f5f
[ "Apache-2.0" ]
null
null
null
owmtest.py
phucdev/weatherbot
2a88ebb5fb52cc8309f6ce133d850328320a5f5f
[ "Apache-2.0" ]
10
2016-06-21T17:25:23.000Z
2016-07-19T09:07:02.000Z
owmtest.py
phucdev/weatherbot
2a88ebb5fb52cc8309f6ce133d850328320a5f5f
[ "Apache-2.0" ]
null
null
null
import pyowm owm = pyowm.OWM(API_key='0ce70d38fc4aaade9c6f004e226e8a61', language='de') # You MUST provide a valid API key # Will it be sunny tomorrow at this time in Berlin (Germany) ? # returns forecaster forecast = owm.daily_forecast("Berlin,de") # alternatively: owm.three_hours_forecast("Berlin, de") # timeutil...
35.446154
110
0.749132
dc34c1ec64a340182ef2880e559e79c608256ee9
1,156
py
Python
tests/utils/test_validation.py
techBeck03/rasa
72fef6e7742f5ccb8614c75b6410dff68f137554
[ "Apache-2.0" ]
2
2020-02-27T16:41:52.000Z
2020-02-27T16:41:57.000Z
tests/utils/test_validation.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
56
2020-06-09T00:16:14.000Z
2020-11-16T00:25:20.000Z
tests/utils/test_validation.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
import pytest from rasa.constants import DOMAIN_SCHEMA_FILE, CONFIG_SCHEMA_FILE import rasa.utils.validation as validation_utils import rasa.utils.io as io_utils @pytest.mark.parametrize( "file, schema", [ ("examples/restaurantbot/domain.yml", DOMAIN_SCHEMA_FILE), ("data/test_config/config_d...
34
82
0.752595
522ec09f0bd4b3c31708817aba6c08591b3bd05b
548
py
Python
Speech-to-Text-and-Text-to-Speech/web_speech2text.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Speech-to-Text-and-Text-to-Speech/web_speech2text.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Speech-to-Text-and-Text-to-Speech/web_speech2text.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
import speech_recognition as sr import webbrowser as wb import speak chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s' r = sr.Recognizer() with sr.Microphone() as source: print ('Say Something!') audio = r.listen(source) print ('Done!') try: text = r.recognize_google(au...
21.076923
78
0.666058
87661d33a9e9e25399b3243daf21461a5d95ed6d
125
py
Python
frds/measures/general.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/measures/general.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/measures/general.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
from .func_anomaly_score import anomaly_score from .func_hhi_index import hhi_index from .func_kyle_lambda import kyle_lambda
41.666667
45
0.888
5e7a49f2cd4a9f5df4bba40317b9eb91054f83c2
2,461
py
Python
Architectures/ConvNet.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Architectures/ConvNet.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Architectures/ConvNet.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.models import load_model from keras.layers import Dense, Conv2D, Flatten from Architectures.Algorithm import Algorithm # noinspection PyMethodOverriding class ConvNet(Algorithm): def __init__(self, hidden_layer:list, n_classes:int, input_shape:tuple): self._...
39.693548
127
0.676554
21829f6f433481eb5fd009fb63cd835db17f75e4
292
py
Python
2020/RoundB/a.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
1
2021-03-12T08:39:01.000Z
2021-03-12T08:39:01.000Z
2020/RoundB/a.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
null
null
null
2020/RoundB/a.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
1
2021-03-20T18:55:52.000Z
2021-03-20T18:55:52.000Z
"""author : Akash kumar kickstart : Akash@1996""" T=int(input()) for i in range(1,T+1): n=int(input()) c=0 arr=list(map(int,input().split()[:n])) for j in range(1,n-1): if arr[j]>arr[j-1] and arr[j]>arr[j+1]: c+=1 print("Case #"+str(i)+":", c)
22.461538
47
0.496575
219c2d743601104caaea3698fad3c5dec200694a
1,345
py
Python
6_ObjectOriented/iterators_and_generators.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
6_ObjectOriented/iterators_and_generators.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
6_ObjectOriented/iterators_and_generators.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# Iterator: # iter macht Objekt iterrierbar # next nimmt immer das nächste Element / am Anfang das Erste print("---------------Iterator------------------") class PowerOfTwo: def __init__(self, N): self.N = N def __iter__(self): self.current_n = 0 return self # returnt das iterierba...
28.617021
143
0.648327
339fb818c9deace4a53c1e712c3a16aa9ad094fc
2,146
py
Python
code/config/config.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/config/config.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/config/config.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
import os CAMERA_RESOLUTION = (640, 480) # the resolution to use for the raspberry pi camera SCANLINE_DISTANCE = 5 DETECTION_SIZE_THRESHOLD = .001 # minimum size of a colored object, relative to the total image size DEBUG_MODE = False # enable or disable debug mode GRAPHICAL_OUTPUT = True # enable or disable gr...
24.666667
118
0.764678
d5627047bfa4b1e621311c4685af32a7d80478bc
5,410
py
Python
Backend/views/hospitals.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/views/hospitals.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/views/hospitals.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
from flask import Blueprint, jsonify, request from cache import cache, make_cache_key from db import db from models.hospital import (Hospital, HospitalsPerBundesland, HospitalsPerLandkreis, HospitalsPerRegierungsbezirk) from models.icuDevelopments import IcuDev...
36.066667
120
0.687246
9840447347b80f30f4fc355d544bb1bd6f5afc52
176
py
Python
CS208/exercise1/nf.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS208/exercise1/nf.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS208/exercise1/nf.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import random def work(n): if n == 0: return for i in range(n): a = random.uniform(0, 1) work(i - 1) if __name__ == "__main__": work(10)
13.538462
32
0.5
985722afbc85db039d8398c19a7d36ab2aed961e
1,303
py
Python
elements/python/10/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/10/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/10/10/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, v, l=None, r=None): self.value = v self.left = l self.right = r def preorder(t): stack = [t] order = [] while len(stack) > 0: n = stack.pop(-1) if n is None: continue order.append(n.value) stack....
21.360656
80
0.452034
985bf5912d833af19f86093cb59d9b40c1563220
20,081
py
Python
test/test_npu/test_network_ops/test_prod.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_prod.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_prod.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...
43.940919
109
0.599472
f6c91e98104e379c2d584c146f1a1d4f30b5e501
20,348
py
Python
DHParser/error.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
DHParser/error.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
DHParser/error.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
# error.py - error handling for DHParser # # Copyright 2016 by Eckhart Arnold (arnold@badw.de) # Bavarian Academy of Sciences an Humanities (badw.de) # # 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...
38.537879
116
0.604875
122a19f49a3834508cb34256477470fd9f2c1918
2,718
py
Python
plugins/tff_backend/api/rogerthat/referrals.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/api/rogerthat/referrals.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/api/rogerthat/referrals.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
41.815385
101
0.747609
c3e8761f4d6438cb092fb6dc6fe9a6bf6115643b
3,366
py
Python
04_SQL/commerce/auctions/models.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
04_SQL/commerce/auctions/models.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
04_SQL/commerce/auctions/models.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): first_name = models.CharField(max_length=64, default="") last_name = models.CharField(max_length=64, default="") def add_listing(self, listing_id): listing = Listing.objects.get(id=listing_...
30.6
99
0.654783
61cac172715869af335fddcd96f8d3c4e44efe4b
14,953
py
Python
other/re-risky/directors-cut/spoilers_and_source/src/risky.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
other/re-risky/directors-cut/spoilers_and_source/src/risky.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
other/re-risky/directors-cut/spoilers_and_source/src/risky.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # -*- coding: utf8 -*- # Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
287.557692
13,270
0.72875
20469a6f65d28c4469eb9cb81b9511bf462f721b
683
py
Python
plus_minus.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
plus_minus.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
plus_minus.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # https://www.hackerrank.com/rest/contests/master/challenges/plus-minus/ positive = [] negative = [] zero = [] def plusMinus(arr): for i in arr: if i > 0: positive.append(i) elif i < 0: negative.appe...
17.075
72
0.575403
806c9abed85e61ff10bff996300e6dcf3dfd0825
563
py
Python
simple-redis-queue-demo/consumer/consumer.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-redis-queue-demo/consumer/consumer.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-redis-queue-demo/consumer/consumer.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
import redis class Consumer(object): def __init__(self, host, port=6379, auth=None): self.__r = redis.Redis(host=host, port=port, password=auth) def subscribe(self, list_name): while True: msg = self.__r.lpop(list_name)[1] print(msg.decode("utf-8")) def blocking_...
24.478261
67
0.609236
03a9e7762dbcd03e9b1a9adced1c9c84f3730d9b
268
pyde
Python
sketches/kugel01/kugel01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/kugel01/kugel01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/kugel01/kugel01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
a = 0 def setup(): size(200, 200, P3D) def draw(): global a background(160) lights() translate(width/2, height/2, 0) sphereDetail(30) with pushMatrix(): rotateX(radians(-10)) rotateY(a) a += 0.01 sphere(80)
16.75
35
0.533582
b31b722c62abb38df2a17f165fb5c2b2a44e023b
4,903
py
Python
tools/test.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
tools/test.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
tools/test.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/2 上午11:12 """ # -*- coding: utf-8 -*- import time import numpy as np import torch import torch.nn as nn from torch.utils.data import DataLoader from metrics.metrics import Evaluator from tqdm import tqdm from p...
31.429487
107
0.615134
b35e199fec13c6bea08a3a316091f72aaeca265b
2,697
py
Python
pyScript_NodeManager/CodeEditor.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript_NodeManager/CodeEditor.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript_NodeManager/CodeEditor.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QTextEdit from PySide2.QtGui import QFont, QFontMetrics, QTextCharFormat, QTextCursor, QColor from PySide2.QtCore import Qt import re class CodeEditor(QTextEdit): def __init__(self): super(CodeEditor, self).__init__() self.static_elements = [] self.component...
28.691489
84
0.612903
4725c1d1bd54169a837f9ed2846e564d65c21800
2,792
py
Python
listings/chapter05/graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/graph.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
class Graph: def __init__(self): self.vertices = [] self.edges = [] # Knoten hinzufügen def add_vertex(self, vertex): if vertex not in self.vertices: self.vertices.append(vertex) # Kante hinzufügen def add_edge(self, vertex_from, vertex_to): # Knoten hi...
30.681319
65
0.596705
3479bfc68acbd74d2e5d8ecef7c3082f92222af0
3,738
py
Python
nz_django/day8/user_demo2/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day8/user_demo2/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day8/user_demo2/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.db import models from django.contrib.auth.models import AbstractUser,BaseUserManager,AbstractBaseUser,PermissionsMixin from django.core import validators from django.dispatch import receiver #接收 from django.db.models.signals import post_save # class Person(User): # # telephone = models.CharField(max_le...
38.142857
136
0.692081
1b0bccde639c845f11338be78ffc039cc71b0a11
430
py
Python
Algorithms/Greedy/GridChallenge.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Greedy/GridChallenge.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Greedy/GridChallenge.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 T = int(raw_input()) for _ in xrange(T): N = int(raw_input()) grid = [sorted(raw_input()) for _ in xrange(N)] is_yes = True for j in xrange(len(grid[0])): for i in xrange(1, N): if grid[i][j] < grid[i-1][j]: is_yes = False break ...
18.695652
52
0.462791
1b45a8b904faf7a212d1c298b2567c42a65d7357
5,221
py
Python
programm/wingamepad.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/wingamepad.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/wingamepad.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
#!/usr/bin/env python import math import time import general from inputs import get_gamepad # hardcoeded first input #events = get_gamepad() # vars # center ~34000 should be 32768 31000&37000 nullzone # debug log to console # >10: log everything """ leftspeedvalue = 0 rightspeedvalue = 0 """ # get scaled int...
31.263473
260
0.653706
17074ef3430e7b1f003ac3364be4f547dbb91973
1,916
py
Python
bildungslogin-plugin/bildungslogin_plugin/plugin.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/bildungslogin_plugin/plugin.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/bildungslogin_plugin/plugin.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import asyncio import logging from pathlib import Path from typing import List from fastapi import APIRouter from ucsschool.apis.models import Plugin from ucsschool.apis.plugins.auth import ldap_auth from . import __version__ from .backend import DbBackend from .routes.v1 import users as user...
32.474576
87
0.764614
6d3b6e14f22e988c97e82db5721bdd151c41484d
2,800
py
Python
backend/python/dao/tests/TestPostDAO.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:07:54.000Z
2021-02-08T17:07:54.000Z
backend/python/dao/tests/TestPostDAO.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
null
null
null
backend/python/dao/tests/TestPostDAO.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:08:01.000Z
2021-02-08T17:08:01.000Z
import pytest from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import time import sys, os sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/../src")) from PostDAO import PostDAO from Post import Post from Exception import IllegalArgumentException, UnknownElementException class Te...
26.666667
88
0.708214
edee36f11728e384b4907e1b888fe1f3d281ab34
225
py
Python
utils/fileutil.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
utils/fileutil.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
utils/fileutil.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
import os def mdkir(path): folder = os.path.exists(path) if not folder: os.makedirs(path) def write_to_file(text, file_path): f = open(file_path, "a", encoding='utf-8') f.write(text) f.close()
16.071429
46
0.617778
fcfff39bd69b63ccfc3aacba8cb675779d543f94
2,109
py
Python
Schnurlaengen.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
Schnurlaengen.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
Schnurlaengen.py
UlrichBerntien/Uebungen-Python
67e6d885dd2319e999979410448364ec4d59dc51
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Schnurlängen https://www.programmieraufgaben.ch/aufgabe/schnurlaengen/acgo5ap7 """ # Programmieraufgabe: # Eine Schnur mit einer Gesamtlänge von 450 m soll in Teilstücke der Länge # 17 m, 19m und 21 m geteilt werden. Ist das ohne Rest möglich? Die Frage # ...
34.57377
100
0.667615
1e09eea5cfcc06c52e2e9ee75a655bfddd58b3a8
361
py
Python
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/value_range.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/value_range.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/value_range.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Any, Optional from watchmen_utilities import is_decimal def in_range(value: Any, min_value: Optional[int], max_value: Optional[int]) -> bool: parsed, v = is_decimal(value) if not parsed: return False if min_value is not None and v < min_value: return False if max_value is not None and v >...
21.235294
85
0.747922
1e26ca8840b90cc856f4f2f0964f11ef1ae1a777
1,426
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/ocsfile.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/ocsfile.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/ocsfile.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. from ctype...
34.780488
99
0.685133
a210f319f20ae41efb3eafcc15f6282ae506f203
603
py
Python
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/count_sink_nodes.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/count_sink_nodes.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-ds-master/data_structures/graphs/count_sink_nodes.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Count the number of sink nodes Sink nodes are the nodes without any outgoing edge Solution - vertices contains the total number of edges and graph is an adjacency list. Simply subtract the vertices and len(graph) """ from collections import defaultdict class Graph: def __init__(self, vertices): se...
19.451613
75
0.696517
78ace22171e720e0af6c620ba1a65a62d70f46f8
433
py
Python
Vars.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
null
null
null
Vars.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
1
2020-12-27T21:12:40.000Z
2022-03-17T00:08:47.000Z
Vars.py
Lynext/VordLraxx
fb63c2e3e1608d947981832349d32fffe222f3db
[ "MIT" ]
null
null
null
PROCESS_NAME = b'Brawlhalla.exe' mem = None debug = False mode = "Manuel" localPointer = 0 localPlayer = None target = None entities = {} entitiesToRemove = [] uniqueEntityID = 0 entityPointers = [] ginput = None end = False map = "shipwreck" directStart = False started = False velMultiplier = 1 keepPressed = 0 # GAME...
18.041667
78
0.688222
78c076b43f70a4c78fcac5e18a24827b341399c0
5,940
py
Python
packages/watchmen-model/src/watchmen_model/indicator/inspection.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/indicator/inspection.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/indicator/inspection.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from enum import Enum from typing import Any, List, Literal, Optional, Union from pydantic import BaseModel from watchmen_model.common import Auditable, BucketId, DataModel, FactorId, IndicatorId, InspectionId, UserBasedTuple from watchmen_utilities import ArrayHelper from .indicator import IndicatorAggregateArithmet...
30.9375
117
0.790067
1760c60dbc51a51826b1fc9c0840b36629b9ff1d
2,287
py
Python
src/onegov/org/open_graph.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/open_graph.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/open_graph.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.file import File class OpenGraphMixin: og_description_attr = 'lead' @property def og_title(self): return getattr(self, 'title', None) or \ getattr(self.og_model, 'title', None) @property def og_type(self): retu...
25.131868
73
0.624399
bdb271371e438d9f5098f0f231843a070f830f76
462
py
Python
pages/themes/beginners/dictAndSetDataTypes/examples/dictionary_methods.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/dictAndSetDataTypes/examples/dictionary_methods.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/dictAndSetDataTypes/examples/dictionary_methods.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
prices = { "apples": 2.50, "oranges": 2.43, "bananas": 3.50 } '''get all dictionary keys:''' fruits = prices.keys() print(fruits) # dict_keys(['apples', 'oranges', 'bananas']) price_list = prices.values() print(price_list) # dict_values([2.5, 2.43, 3.5]) for key in prices: print("{} - {}".format(key,...
19.25
45
0.599567
e5ad46b6796c7902b91b0a4ba4445b715fc5c9c7
67
py
Python
sun_dataset/__init__.py
JugendForscht-CoLoS/SunDetection-NeuralNetwork
139bcc314cf6b5b84a82b08fda8b1e4455f7cf93
[ "MIT" ]
4
2021-02-26T15:47:28.000Z
2021-03-04T16:46:00.000Z
sun_dataset/__init__.py
JugendForscht-CoLoS/SunDetection-NeuralNetwork
139bcc314cf6b5b84a82b08fda8b1e4455f7cf93
[ "MIT" ]
null
null
null
sun_dataset/__init__.py
JugendForscht-CoLoS/SunDetection-NeuralNetwork
139bcc314cf6b5b84a82b08fda8b1e4455f7cf93
[ "MIT" ]
1
2021-02-24T13:01:21.000Z
2021-02-24T13:01:21.000Z
"""sun_dataset dataset.""" from .sun_dataset import SunDataset
16.75
36
0.731343
e5b50d676570cebbc65da68b7f331ea2d7ed4fc1
140
py
Python
zencad/examples/1.GeomPrim/2.prim2d/polygon.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/2.prim2d/polygon.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/2.prim2d/polygon.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ZenCad API example: polygon """ from zencad import * m = polygon([(0,0),(0,10),(20,20),(10,0)]) disp(m) show()
12.727273
42
0.6
c1617eede63dd0a6ed8c8c5ad5f870ca78721635
880
py
Python
Data Science & Machine Learning/Machine Learning/Anomaly Detection/download.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Data Science & Machine Learning/Machine Learning/Anomaly Detection/download.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Data Science & Machine Learning/Machine Learning/Anomaly Detection/download.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#!/usr/bin/python """ This script will download all papers/books and rename to proper name if there is no copyright issue. TODO: download resources by item number TODO: add exception handler for downloader """ import re import pathlib import urllib.request # initialize the log directory if it does no...
26.666667
72
0.671591
e78108ce8969811a5c809fc791b0aa23968e3ce0
222
py
Python
exercises/pt/exc_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.load("pt_core_news_md") doc1 = nlp("Eu quero comprar um livro novo") doc2 = nlp("Preciso ler um livro") # Obtenha a similiridade entre doc1 e doc2 similarity = ____.____(____) print(similarity)
20.181818
44
0.743243
d439d4ab790b9ef1ef84e1209a389659c204ef05
2,405
py
Python
DeepRTS/python/_py_util.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
1
2020-01-08T22:20:37.000Z
2020-01-08T22:20:37.000Z
DeepRTS/python/_py_util.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
1
2021-11-11T18:39:56.000Z
2021-11-11T22:15:59.000Z
DeepRTS/python/_py_util.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
null
null
null
import contextlib with contextlib.redirect_stdout(None): import pygame import math import os import shutil import stat import warnings def image_at(sheet, tile_n, tile_size=32): size = sheet.get_size() n_cols = math.floor(size[0] / tile_size) n_rows = math.floor(tile_n / n_cols) mod_id = tile_n % ...
26.722222
109
0.561331
cf0d9e41c0ad10876e1a06a811c3b8388468ceea
310
py
Python
dialogs/__init__.py
Maxwingber/corobot
a959e0deba734d3900d7b8a826b3fb56964db4c6
[ "MIT" ]
null
null
null
dialogs/__init__.py
Maxwingber/corobot
a959e0deba734d3900d7b8a826b3fb56964db4c6
[ "MIT" ]
null
null
null
dialogs/__init__.py
Maxwingber/corobot
a959e0deba734d3900d7b8a826b3fb56964db4c6
[ "MIT" ]
2
2020-03-22T11:38:54.000Z
2020-03-24T11:11:56.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .main_dialog import MainDialog from .symptoms_selection_dialog import SymptomsSelectionDialog from .top_level_dialog import TopLevelDialog __all__ = ["MainDialog", "SymptomsSelectionDialog", "TopLevelDialog"]
34.444444
69
0.825806
d847fde08dffbdac3dc356e15e7816984086e1c9
3,552
py
Python
src/visuanalytics/util/config_manager.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2020-11-27T17:26:27.000Z
2020-11-27T17:26:27.000Z
src/visuanalytics/util/config_manager.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
85
2021-01-02T11:38:59.000Z
2021-07-26T07:13:47.000Z
src/visuanalytics/util/config_manager.py
Biebertal-mach-mit-TV/Data-Analytics
70cda2393e61f7ca0a1a4a5965646e908bd0faa9
[ "MIT" ]
1
2021-04-19T06:50:53.000Z
2021-04-19T06:50:53.000Z
"""Dieses Modul stellt Methoden für den Zugriff auf private sowie öffentliche Konfigurationsparameter bereit. """ import json import os from json import JSONDecodeError from visuanalytics.util.dict_utils import merge_dict CONFIG_LOCATION = "../config.json" CONFIG_PRIVATE_LOCATION = "../instance/config.json" STEPS_BA...
32.587156
113
0.685811
cfad7dc3aec3f6d8541acbb9924db0641f44c9a8
510
py
Python
src/onegov/onboarding/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/onboarding/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/onboarding/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.onboarding import OnboardingApp from onegov.onboarding.models import DefaultAssistant, TownAssistant @OnboardingApp.path(model=DefaultAssistant, path='/') def get_default_assistant(app): return DefaultAssistant(TownAssistant(app)) @OnboardingApp.path(model=TownAssistant, path='/f...
30
68
0.754902
8f960d561f8fee62104ef19f3ef4382bb13dc1ff
43,078
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_system_action.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/ocscli/ocs_system_action.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/ocscli/ocs_system_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # -*- codi...
57.978466
229
0.650796