hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
a765f6c349621f1e0308c3686c2a549868853c7d
1,854
py
Python
sopel_modules/urban_dictionary/urbandictionary.py
capsterx/sopel-urbandictionary
188a54badc64c4626b1413dfab93ee685f543cf1
[ "MIT" ]
null
null
null
sopel_modules/urban_dictionary/urbandictionary.py
capsterx/sopel-urbandictionary
188a54badc64c4626b1413dfab93ee685f543cf1
[ "MIT" ]
1
2021-01-10T06:53:49.000Z
2021-01-13T02:03:30.000Z
sopel_modules/urban_dictionary/urbandictionary.py
capsterx/sopel-urbandictionary
188a54badc64c4626b1413dfab93ee685f543cf1
[ "MIT" ]
null
null
null
from sopel.module import commands, example from sopel import web import sopel.module import socket import re import urbandictionary as ud BOLD=chr(0x02) ITALICS=chr(0x1D) UNDERLINE=chr(0x1F) def ud_conv(s): italics = re.sub(r"\[([\w' \"_-]*)\]", f"{UNDERLINE}\\1{UNDERLINE}", s.strip()) newlines = re.sub(r...
29.903226
119
0.651564
0
0
0
0
601
0.324164
0
0
397
0.214132
a7660deda124d1efd2085f69810453398abdc730
324
py
Python
Aula01 e exercicios/exercicio_06.py
Dorcival/PYTHON
0dc3fa53699d40b21c6ed721a190ffb4f8404345
[ "MIT" ]
null
null
null
Aula01 e exercicios/exercicio_06.py
Dorcival/PYTHON
0dc3fa53699d40b21c6ed721a190ffb4f8404345
[ "MIT" ]
null
null
null
Aula01 e exercicios/exercicio_06.py
Dorcival/PYTHON
0dc3fa53699d40b21c6ed721a190ffb4f8404345
[ "MIT" ]
null
null
null
# Conversor de CELSIUS para FAHRENHEIT v.0.1 # Por Dorcival Leite 202003362174 import time print("CONVERTER TEMPERATURA DE CELSIUS PARA FAHRENHEIT\n") c = float(input("Digite a temperatura em CELSIUS: ")) f = float((9 * c)/5)+32 print("\nA temperatura de", c, "graus CELSIUS é igual a", f, "graus FAHRENHEIT") time.sleep...
40.5
80
0.734568
0
0
0
0
0
0
0
0
228
0.701538
a7687184494cf93d9f5d684cfc40811e7667b3e4
772
py
Python
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
3
2017-08-29T22:56:38.000Z
2017-12-12T06:20:35.000Z
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
1
2017-09-10T08:02:24.000Z
2017-09-12T01:03:25.000Z
multranslate.py
anoidgit/NMTServer
f608695c4c1f5319fb3c56f218b1d78056861c62
[ "Apache-2.0" ]
null
null
null
#encoding: utf-8 import sys reload(sys) sys.setdefaultencoding( "utf-8" ) import zmq, sys, json import seg import detoken import datautils from random import sample serverl=["tcp://127.0.0.1:"+str(port) for port in xrange(5556,5556+4)] def _translate_core(jsond): global serverl sock = zmq.Context().socket(zmq.R...
19.794872
182
0.75
0
0
0
0
0
0
0
0
41
0.053109
a769f370668047fa9ac58fd30c92b5d2a06a8ba0
10,995
py
Python
face_detector.py
duwizerak/Keras_insightface
dae425d7ef5dfeccb50a8ddca5814a0901b2957a
[ "MIT" ]
null
null
null
face_detector.py
duwizerak/Keras_insightface
dae425d7ef5dfeccb50a8ddca5814a0901b2957a
[ "MIT" ]
null
null
null
face_detector.py
duwizerak/Keras_insightface
dae425d7ef5dfeccb50a8ddca5814a0901b2957a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import numpy as np import tensorflow as tf from tqdm import tqdm from glob2 import glob from skimage import transform from skimage.io import imread, imsave gpus = tf.config.experimental.list_physical_devices("GPU") for gpu in gpus: tf.config.experimental.set_memory_growth(gpu, Tru...
46.588983
149
0.606639
9,111
0.828649
0
0
0
0
0
0
1,228
0.111687
a76a5f631eaf931f6a0d7bb1f2bdb5a30e7ae751
4,132
py
Python
pyleus/configuration.py
earthmine/pyleus
4d9c14c9df470be6ff544f2ad82985f37e582d80
[ "Apache-2.0" ]
166
2015-01-14T16:06:37.000Z
2021-11-15T12:17:11.000Z
pyleus/configuration.py
WenbinTan/pyleus
8ab87e2d18b8b6a7e0471ceefdbb3ff23a576cce
[ "Apache-2.0" ]
105
2015-01-16T19:59:06.000Z
2016-05-13T19:40:45.000Z
pyleus/configuration.py
WenbinTan/pyleus
8ab87e2d18b8b6a7e0471ceefdbb3ff23a576cce
[ "Apache-2.0" ]
62
2015-01-19T07:42:24.000Z
2021-06-05T21:02:09.000Z
"""Configuration defaults and loading functions. Pyleus will look for configuration files in the following file paths in order of increasing precedence. The latter configuration overrides the previous one. #. /etc/pyleus.conf #. ~/.config/pyleus.conf #. ~/.pyleus.conf You can always specify a configuration file when...
28.694444
79
0.717086
0
0
0
0
0
0
0
0
2,353
0.569458
a76b01dad5f2ae8289af31fef183a815e3bdd1f2
1,318
py
Python
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
1
2021-05-14T18:27:13.000Z
2021-05-14T18:27:13.000Z
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
sdrobert/pydrobert-param
d9f68bbcebfcc5ca909c639b03b959526a8b1631
[ "Apache-2.0" ]
null
null
null
from shutil import rmtree from tempfile import mkdtemp import pytest import param import pydrobert.param.serialization as serial param.parameterized.warnings_as_exceptions = True @pytest.fixture(params=["ruamel_yaml", "pyyaml"]) def yaml_loader(request): if request.param == "ruamel_yaml": try: ...
24.867925
56
0.677542
0
0
1,023
0.776176
1,127
0.855083
0
0
110
0.08346
a76b06cca3e635c2f5710089e70486f5a0bbb87e
1,942
py
Python
tests/test_npaths.py
mtymchenko/npaths
5019694784afee9f60ab0b5f0f0ef3051e113077
[ "MIT" ]
null
null
null
tests/test_npaths.py
mtymchenko/npaths
5019694784afee9f60ab0b5f0f0ef3051e113077
[ "MIT" ]
null
null
null
tests/test_npaths.py
mtymchenko/npaths
5019694784afee9f60ab0b5f0f0ef3051e113077
[ "MIT" ]
null
null
null
import unittest import numpy as np import matplotlib.pyplot as plt from npaths import NPathNode, Filter, Circulator __all__ = [ 'TestNPathNode', 'TestFilter', 'TestCirculator' ] GHz = 1e9 ohm = 1 pF = 1e-12 freqs = np.linspace(0.001, 6, 500)*GHz class TestNPathNode(unittest.TestCase): def test_s...
21.577778
56
0.549949
1,621
0.834706
0
0
0
0
0
0
53
0.027291
a76bc9e0503e467514bbda7a08ff3433e4b780d7
2,896
py
Python
python/o80_pam/o80_ball.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
null
null
null
python/o80_pam/o80_ball.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
2
2021-02-17T12:55:44.000Z
2021-05-27T14:10:57.000Z
python/o80_pam/o80_ball.py
intelligent-soft-robots/o80_pam
3491dcdace61f58e0cf31149184593da3cd2f017
[ "BSD-3-Clause" ]
null
null
null
import o80 import o80_pam import context class _Data: def __init__(self, observation): ball_states = observation.get_observed_states() self.ball_position = [None] * 3 self.ball_velocity = [None] * 3 for dim in range(3): self.ball_position[dim] = ball_states.get(2 * dim)...
31.139785
88
0.632597
2,729
0.942334
0
0
0
0
0
0
419
0.144682
a76c133ddf548f99aff8129ee6e9cbb2e7608901
5,374
py
Python
pymic/transform/threshold.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/transform/threshold.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/transform/threshold.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division import torch import json import math import random import numpy as np from scipy import ndimage from pymic.transform.abstract_transform import AbstractTransform from pymic.util.image_process import * class ChannelWiseThreshold(AbstractTransform)...
48.854545
106
0.619092
5,097
0.948456
0
0
0
0
0
0
1,808
0.336435
a76da74714c837b30e9c8d8f4fbec4b1ea99f85f
211
py
Python
exerc18/18.py
WilliamSampaio/ExerciciosPython
4317d242d2944b91b5d455da8a4ac3a33e154385
[ "MIT" ]
null
null
null
exerc18/18.py
WilliamSampaio/ExerciciosPython
4317d242d2944b91b5d455da8a4ac3a33e154385
[ "MIT" ]
null
null
null
exerc18/18.py
WilliamSampaio/ExerciciosPython
4317d242d2944b91b5d455da8a4ac3a33e154385
[ "MIT" ]
null
null
null
import os numeros = [0,0] numeros[0] = float(input('Digite o numero 1: ')) numeros[1] = float(input('Digite o numero 2: ')) print(f'o maior valor entre os dois é: {max(numeros)}') os.system('pause')
21.1
56
0.630332
0
0
0
0
0
0
0
0
98
0.462264
a76e729d78669a3e706e9fdd618185c47c67bee8
7,958
py
Python
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
DictionaryOfNewZealandEnglish/headword/citation/views.py
eResearchSandpit/DictionaryOfNewZealandEnglish
cf3cec34aafc7a9a8bd0413883f5eeb314d46a48
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Citations from flask import (Blueprint, request, render_template, flash, url_for, redirect, session) from flask.ext.login import login_required, current_user import logging, sys, re from sqlalchemy.exc import IntegrityError, InvalidRequestError from DictionaryOfNewZealandE...
35.846847
86
0.518975
0
0
0
0
3,883
0.487937
0
0
1,037
0.130309
a76eab46ba07f0fb8885169ad3e849032ee2d76c
81
py
Python
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
21
2022-02-16T10:18:24.000Z
2022-03-31T23:40:06.000Z
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
9
2022-03-01T06:40:59.000Z
2022-03-26T08:12:31.000Z
tests/conf.py
xncbf/django-dynamodb-cache
be6d1b4b8e92d581041043bcd694f2a9f00ee386
[ "MIT" ]
null
null
null
from random import random TABLE_NAME = f"test-django-dynamodb-cache-{random()}"
20.25
53
0.765432
0
0
0
0
0
0
0
0
40
0.493827
a76f70dafa18b95735a41dd028a3dcb5cbf10b66
1,863
py
Python
dockerfiles/greeting/0.2/database.py
scherbertlemon/docker-training
f94c79b461f78a4d9242a3e838524efb70a2792e
[ "MIT" ]
1
2021-08-06T17:00:53.000Z
2021-08-06T17:00:53.000Z
dockerfiles/greeting/0.2/database.py
scherbertlemon/docker-training
f94c79b461f78a4d9242a3e838524efb70a2792e
[ "MIT" ]
null
null
null
dockerfiles/greeting/0.2/database.py
scherbertlemon/docker-training
f94c79b461f78a4d9242a3e838524efb70a2792e
[ "MIT" ]
null
null
null
import psycopg2 as pg import os """ Database (Postgres) module connecting to the database for the simple greeting app. """ # The hostname where the database is running can be determined via environment PGHOST = os.getenv("PG_HOST") if os.getenv("PG_HOST") else "localhost" def get_pgconn(): """ Connects to t...
23
78
0.616747
0
0
0
0
0
0
0
0
1,368
0.7343
a76faf50eeea6f4eeb893d3b2fcef43aec0e7eaf
3,277
py
Python
generator/constant_aug.py
zhou3968322/pytorch-CycleGAN-and-pix2pix
30730fddbc6797c5e421cd49c9fef369011d484d
[ "BSD-3-Clause" ]
null
null
null
generator/constant_aug.py
zhou3968322/pytorch-CycleGAN-and-pix2pix
30730fddbc6797c5e421cd49c9fef369011d484d
[ "BSD-3-Clause" ]
null
null
null
generator/constant_aug.py
zhou3968322/pytorch-CycleGAN-and-pix2pix
30730fddbc6797c5e421cd49c9fef369011d484d
[ "BSD-3-Clause" ]
null
null
null
# 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 # -*- coding:utf-8 -*- # email:[email protected] # create: 2020/11/25 from imgaug imp...
30.915094
90
0.53494
0
0
0
0
0
0
0
0
1,188
0.362527
a77112792896e19b96e12810cacf0861b725bf41
3,873
py
Python
ooobuild/lo/packages/x_data_sink_encr_support.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/packages/x_data_sink_encr_support.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/packages/x_data_sink_encr_support.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
39.520408
178
0.694036
2,883
0.744384
0
0
2,337
0.603408
0
0
3,120
0.805577
a77229f1a130b744660ffd1757e86e6d6dd38d54
1,074
py
Python
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q197_choose_and_swap/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
class Solution: def chooseandswap (self, A): opt = 'a' fir = A[0] arr = [0]*26 for s in A : arr[ord(s)-97] += 1 i = 0 while i < len(A) : if opt > 'z' : break while opt < fir : if o...
23.347826
46
0.286778
903
0.840782
0
0
0
0
0
0
18
0.01676
a7730b1c8e64cf80eb7189889ed0d119ac2a5fc8
10,625
py
Python
assignment4/assignment4.py
umamibeef/UBC-EECE-560-Coursework
4c89fb03a4dacf778e31eeb978423bfdaa95b591
[ "MIT" ]
null
null
null
assignment4/assignment4.py
umamibeef/UBC-EECE-560-Coursework
4c89fb03a4dacf778e31eeb978423bfdaa95b591
[ "MIT" ]
null
null
null
assignment4/assignment4.py
umamibeef/UBC-EECE-560-Coursework
4c89fb03a4dacf778e31eeb978423bfdaa95b591
[ "MIT" ]
null
null
null
import argparse import csv import matplotlib import matplotlib.ticker as tck import matplotlib.pyplot as plt import numpy as np # Matplotlib export settings matplotlib.use('pgf') import matplotlib.pyplot as plt matplotlib.rcParams.update({ 'pgf.texsystem': 'pdflatex', 'font.size': 10, 'font.family': 'ser...
48.076923
155
0.660706
0
0
0
0
0
0
0
0
3,781
0.355859
a774dc8ec0c70281d59955e540db50979da5c0cf
4,744
py
Python
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
src/python/pants/scm/subsystems/changed.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.base.buil...
41.982301
103
0.706788
4,107
0.865725
0
0
1,675
0.353078
0
0
2,161
0.455523
a775681f9ac02e296e8b3818c15064c985162dc4
1,825
py
Python
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
1
2021-06-26T15:32:35.000Z
2021-06-26T15:32:35.000Z
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
null
null
null
SOLID/LSP/GoodLSPCode.py
maumneto/DesignPatternCourse
eb55a3d4e6a3261265dc98fcc6ec48d7b8e6b7a8
[ "MIT" ]
null
null
null
class AccountManager(object): def __init__(self, balance = 0): self.balance = balance def getBalance(self): return self.balance def withdraw(self, value): if self.balance >= value: self.balance = self.balance - value print('Successful Withdrawal.') ...
26.449275
65
0.629041
1,462
0.801096
0
0
0
0
0
0
145
0.079452
a7758434e025289995bc94bace734e2f383e3e76
818
py
Python
test/test_global_customer_api.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
test/test_global_customer_api.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
test/test_global_customer_api.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
""" eZmax API Definition (Full) This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501 The version of the OpenAPI document: 1.1.7 Contact: [email protected] Generated by: https://openapi-generator.tech """ import unittest import eZmaxApi from eZmaxApi.a...
22.108108
97
0.689487
384
0.469438
0
0
0
0
0
0
447
0.546455
a7762ca16d51e6d7fb512c7980d15ee79dbeff30
3,930
py
Python
reconstruction_model.py
JungahYang/Deep3DFaceReconstruction
041b89a781f90ba459f3294c4e568b5c1a3cf7da
[ "MIT" ]
1,424
2019-05-07T05:03:12.000Z
2022-03-31T08:52:29.000Z
reconstruction_model.py
zepengF/Deep3DFaceReconstruction
5b131a3e67597da67409486e20db50007f48427d
[ "MIT" ]
194
2019-05-08T21:11:23.000Z
2022-03-30T02:58:25.000Z
reconstruction_model.py
zepengF/Deep3DFaceReconstruction
5b131a3e67597da67409486e20db50007f48427d
[ "MIT" ]
359
2019-05-10T11:05:41.000Z
2022-03-28T21:57:42.000Z
import tensorflow as tf import face_decoder import networks import losses from utils import * ############################################################################################### # model for single image face reconstruction ##############################################################################...
45.697674
142
0.711705
3,590
0.913486
0
0
0
0
0
0
800
0.203562
a7779af144a3ba68deaf47c8047f304427889fe5
2,002
py
Python
organizational_area/admin.py
mspasiano/uniTicket
1e8e4c2274293e751deea5b8b1fb4116136c5641
[ "Apache-2.0" ]
null
null
null
organizational_area/admin.py
mspasiano/uniTicket
1e8e4c2274293e751deea5b8b1fb4116136c5641
[ "Apache-2.0" ]
null
null
null
organizational_area/admin.py
mspasiano/uniTicket
1e8e4c2274293e751deea5b8b1fb4116136c5641
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * from .admin_inlines import * class AbstractAdmin(admin.ModelAdmin): list_display = ('name', 'description') class Media: js = ('js/textarea-autosize.js',) css = {'all': ('css/textarea-small.css',),} @admin.register(OrganizationalStructur...
29.014493
68
0.700799
1,114
0.556444
0
0
1,103
0.550949
0
0
805
0.402098
a777a11d9cdd73ba24751d88b5b9e8b62e919781
2,509
py
Python
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
1
2017-10-25T01:42:14.000Z
2017-10-25T01:42:14.000Z
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
null
null
null
tests/test_symgroup.py
efrembernuz/symeess
d74868bbb8463e0420fcc28e3554fbfa8e6de22f
[ "MIT" ]
null
null
null
import unittest from cosymlib import file_io from numpy import testing from cosymlib.molecule.geometry import Geometry import os data_dir = os.path.join(os.path.dirname(__file__), 'data') class TestSymgroupFchk(unittest.TestCase): def setUp(self): self._structure = file_io.read_generic_structure_file(d...
44.017544
96
0.595058
2,313
0.921881
0
0
0
0
0
0
306
0.121961
a777d3b6992912736d9d3c1557062ac6df7a8a29
5,651
py
Python
mouth_detecting.py
nuocheng/Face-detection
84375b0c1bacaf572fb04aa6e05751469fe5f9c8
[ "MIT" ]
null
null
null
mouth_detecting.py
nuocheng/Face-detection
84375b0c1bacaf572fb04aa6e05751469fe5f9c8
[ "MIT" ]
null
null
null
mouth_detecting.py
nuocheng/Face-detection
84375b0c1bacaf572fb04aa6e05751469fe5f9c8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import the necessary packages from scipy.spatial import distance as dist from imutils.video import FileVideoStream from imutils.video import VideoStream from imutils import face_utils import numpy as np # 数据处理的库 numpy import argparse import imutils import time import dlib import cv2 def ey...
32.854651
117
0.603787
0
0
0
0
0
0
0
0
2,837
0.40465
a7780199003eb4084f3a08db621a30c4ac94b9d2
2,894
py
Python
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
1
2022-03-26T22:50:26.000Z
2022-03-26T22:50:26.000Z
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
null
null
null
Scripts/Ros/Identifica_cor.py
pcliquet/robotic_resumo
3d1d8705820cae39d5be956836a94c7884ab490d
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding:utf-8 -*- import rospy import numpy as np import tf import math import cv2 import time from geometry_msgs.msg import Twist, Vector3, Pose from nav_msgs.msg import Odometry from sensor_msgs.msg import Image, CompressedImage from cv_bridge import CvBridge, CvBridgeError import smach...
33.651163
129
0.664824
0
0
0
0
0
0
0
0
582
0.200759
a77866394277674aa9998582e0c75620917bdb48
2,041
py
Python
integration_tests/test_test_oracle_tax.py
weblucas/mseg-semantic
ec3d179003bb26dd0f1336853b719319721757a4
[ "MIT" ]
391
2020-06-05T17:30:44.000Z
2022-03-31T12:01:30.000Z
integration_tests/test_test_oracle_tax.py
weblucas/mseg-semantic
ec3d179003bb26dd0f1336853b719319721757a4
[ "MIT" ]
27
2020-06-06T15:08:37.000Z
2022-02-28T07:57:57.000Z
integration_tests/test_test_oracle_tax.py
weblucas/mseg-semantic
ec3d179003bb26dd0f1336853b719319721757a4
[ "MIT" ]
57
2020-06-09T06:05:30.000Z
2022-03-28T15:49:36.000Z
#!/usr/bin/python3 from pathlib import Path from types import SimpleNamespace from mseg_semantic.scripts.collect_results import parse_result_file from mseg_semantic.tool.test_oracle_tax import test_oracle_taxonomy_model REPO_ROOT_ = Path(__file__).resolve().parent.parent # Replace this variables with your own path...
28.347222
96
0.708476
0
0
0
0
0
0
0
0
1,071
0.524743
a778a8a2d428dbcafebc55dfd31568980b3b8abe
375
py
Python
app/env/lib/python3.7/site-packages/twilio/http/response.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
30
2018-06-12T12:00:53.000Z
2021-05-02T01:27:16.000Z
app/env/lib/python3.7/site-packages/twilio/http/response.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
11
2019-12-26T17:21:03.000Z
2022-03-21T22:17:07.000Z
bot/lib/python3.7/site-packages/twilio/http/response.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
4
2019-03-28T18:20:48.000Z
2019-11-18T18:52:04.000Z
class Response(object): """ """ def __init__(self, status_code, text): self.content = text self.cached = False self.status_code = status_code self.ok = self.status_code < 400 @property def text(self): return self.content def __repr__(self): retu...
22.058824
66
0.592
374
0.997333
0
0
57
0.152
0
0
24
0.064
a7799a223cdf2e189549e42fb31de6f6391c2873
1,911
py
Python
sports_manager/models/gymnasium.py
hbuyse/dj-sports-manager
7e32cc41347b968b4ede9ea6846de14d9504c3f9
[ "MIT" ]
null
null
null
sports_manager/models/gymnasium.py
hbuyse/dj-sports-manager
7e32cc41347b968b4ede9ea6846de14d9504c3f9
[ "MIT" ]
null
null
null
sports_manager/models/gymnasium.py
hbuyse/dj-sports-manager
7e32cc41347b968b4ede9ea6846de14d9504c3f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Gymnasium implementation.""" # Django from django.core.validators import RegexValidator from django.db import models from django.utils.text import slugify from django.utils.translation import ugettext_lazy as _ # noqa class Gymnasium(models.Model): """Gymnasium model for the website."...
36.75
103
0.588697
1,662
0.869702
0
0
0
0
0
0
671
0.351125
a779d1a47d9473c22bbee36fab9477af4aad4943
228
py
Python
01-logica-de-programacao-e-algoritmos/Aula 04/1/exercicio01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
01-logica-de-programacao-e-algoritmos/Aula 04/1/exercicio01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
01-logica-de-programacao-e-algoritmos/Aula 04/1/exercicio01.py
rafaelbarretomg/Uninter
1f84b0103263177122663e991db3a8aeb106a959
[ "MIT" ]
null
null
null
# Exercicio 01 Tuplas x = int(input('Digite o primeiro numero: ')) y = int(input('Digite o segundo numero: ')) cont = 1 soma = x while cont < y: soma = soma + x cont = cont + 1 print('O resultado eh: {}' .format(soma))
20.727273
44
0.618421
0
0
0
0
0
0
0
0
96
0.421053
a77a0a8078a541187f7e349449f50c15dd027ebe
832
py
Python
docs/OOPS/Accessing_pvt_var2.py
munyumunyu/Python-for-beginners
335d001d4b8f13af71f660beed0b7f5fe313aa3b
[ "MIT" ]
158
2018-10-03T23:36:48.000Z
2022-03-25T00:16:00.000Z
docs/OOPS/Accessing_pvt_var2.py
munyumunyu/Python-for-beginners
335d001d4b8f13af71f660beed0b7f5fe313aa3b
[ "MIT" ]
10
2018-10-11T03:52:28.000Z
2019-12-04T02:51:28.000Z
docs/OOPS/Accessing_pvt_var2.py
munyumunyu/Python-for-beginners
335d001d4b8f13af71f660beed0b7f5fe313aa3b
[ "MIT" ]
40
2018-10-03T10:47:28.000Z
2022-02-22T19:55:46.000Z
''' To have a error free way of accessing and updating private variables, we create specific methods for this. Those methods which are meant to set a value to a private variable are called setter methods and methods meant to access private variable values are called getter methods. The below code is an example of g...
32
107
0.71274
385
0.46274
0
0
0
0
0
0
356
0.427885
a77b4550c67262bf40db6267243d9f55a2869fd2
21,013
py
Python
src/runmanager/runinstance.py
scherma/antfarm
ad4d1d564eb79bdc7e00780b97ca10594c75cd5c
[ "MIT" ]
6
2018-08-26T10:15:29.000Z
2022-03-03T21:12:37.000Z
src/runmanager/runinstance.py
scherma/antfarm
ad4d1d564eb79bdc7e00780b97ca10594c75cd5c
[ "MIT" ]
10
2018-03-09T18:18:28.000Z
2021-05-06T21:37:53.000Z
src/runmanager/runinstance.py
scherma/antfarm
ad4d1d564eb79bdc7e00780b97ca10594c75cd5c
[ "MIT" ]
3
2018-11-29T07:47:30.000Z
2020-05-24T09:58:57.000Z
#!/usr/bin/env python3 # coding: utf-8 # MIT License © https://github.com/scherma # contact http_error_418 @ unsafehex.com import logging, os, configparser, libvirt, json, arrow, pyvnc, shutil, time, victimfiles, glob, websockify, multiprocessing, signal import tempfile, evtx_dates, db_calls, psycopg2, psycopg2.extras...
42.279678
158
0.555942
19,804
0.942419
0
0
1,304
0.062054
0
0
4,080
0.194156
a77c6d836bc31836353a31c25d2a780968623e8a
4,104
py
Python
test-framework/test-suites/integration/tests/list/test_list_repo.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
test-framework/test-suites/integration/tests/list/test_list_repo.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
test-framework/test-suites/integration/tests/list/test_list_repo.py
sammeidinger/stack
a8085dce179dbe903f65f136f4b63bcc076cc057
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
import json class TestListRepo: def test_invalid(self, host): result = host.run('stack list repo test') assert result.rc == 255 assert result.stderr.startswith('error - ') def test_args(self, host, add_repo): # Add a second repo so we can make sure it is skipped add_repo('test2', 'test2url') # Run list...
33.096774
144
0.690058
4,090
0.996589
0
0
0
0
0
0
1,696
0.413255
a780f3f7149ef35270e3ab77e079fdeb31c39092
769
py
Python
LeetCode/0044_Wildcard_Matching.py
scott-au/PythonAlgorithms
fcd5662a247440bd16a7d0f9b5e50259f5d1c063
[ "MIT" ]
null
null
null
LeetCode/0044_Wildcard_Matching.py
scott-au/PythonAlgorithms
fcd5662a247440bd16a7d0f9b5e50259f5d1c063
[ "MIT" ]
null
null
null
LeetCode/0044_Wildcard_Matching.py
scott-au/PythonAlgorithms
fcd5662a247440bd16a7d0f9b5e50259f5d1c063
[ "MIT" ]
null
null
null
class Solution: def isMatch(self, s: str, p: str) -> bool: # this is a dynamic programming solution fot this matrix = [[False for x in range(len(p) + 1)] for x in range(len(s) + 1)] matrix[0][0] = True for i in range(1, len(matrix[0])): if p[i - 1] == "*": ...
38.45
80
0.421326
768
0.9987
0
0
0
0
0
0
58
0.075423
a78199b06e3d85a0cae2dc6b22fe2403a2e45cd5
405
py
Python
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
Python/luhnchecksum.py
JaredLGillespie/OpenKattis
71d26883cb5b8a4a1d63a072587de5575d7c29af
[ "MIT" ]
null
null
null
# https://open.kattis.com/problems/luhnchecksum for _ in range(int(input())): count = 0 for i, d in enumerate(reversed(input())): if i % 2 == 0: count += int(d) continue x = 2 * int(d) if x < 10: count += x else: x = str(x) ...
25.3125
48
0.449383
0
0
0
0
0
0
0
0
59
0.145679
a7822d26e1d72928c623eabd7ce7c6e586e1f9ee
2,531
py
Python
dart_board/plotting.py
GSavathrakis/dart_board
9430d97675d69e381b701499587a02fd71b02990
[ "MIT" ]
8
2017-12-04T22:32:25.000Z
2021-10-01T11:45:09.000Z
dart_board/plotting.py
GSavathrakis/dart_board
9430d97675d69e381b701499587a02fd71b02990
[ "MIT" ]
2
2018-03-14T00:10:43.000Z
2021-05-02T18:51:11.000Z
dart_board/plotting.py
GSavathrakis/dart_board
9430d97675d69e381b701499587a02fd71b02990
[ "MIT" ]
2
2018-07-17T23:00:01.000Z
2021-08-25T15:46:38.000Z
import matplotlib.pyplot as plt import numpy as np def plot_chains(chain, fileout=None, tracers=0, labels=None, delay=0, ymax=200000, thin=100, num_xticks=7, truths=None): if chain.ndim < 3: print("You must include a multiple chains") return n_chains, length, n_var = chain.shape print(n...
30.130952
120
0.621889
0
0
0
0
0
0
0
0
446
0.176215
a78349abf743773098268654aaf64c037f2be3f7
2,063
py
Python
challenge/eval.py
CodeCrawl/deep_learning
3f9c208bba5ee17b4b68be74dc10e43839b4f6d0
[ "Apache-2.0" ]
8
2018-11-03T16:32:35.000Z
2020-05-18T23:03:17.000Z
challenge/eval.py
CodeCrawl/deep_learning
3f9c208bba5ee17b4b68be74dc10e43839b4f6d0
[ "Apache-2.0" ]
null
null
null
challenge/eval.py
CodeCrawl/deep_learning
3f9c208bba5ee17b4b68be74dc10e43839b4f6d0
[ "Apache-2.0" ]
7
2018-11-07T14:39:20.000Z
2020-04-19T23:54:20.000Z
## ## Evaluation Script ## import numpy as np import time from sample_model import Model from data_loader import data_loader from generator import Generator def evaluate(label_indices = {'brick': 0, 'ball': 1, 'cylinder': 2}, channel_means = np.array([147.12697, 160.21092, 167.70029]), data...
26.792208
86
0.600582
0
0
0
0
0
0
0
0
246
0.119244
a78364d0cdf1ba12f5219bbb941cde9ada297c73
7,793
py
Python
PaddleRec/tdm/tdm_demo/infer_network.py
danleifeng/models
b87761f8100a545e0015046dd55d886ce90c190e
[ "Apache-2.0" ]
2
2020-03-12T13:35:02.000Z
2020-03-12T14:54:23.000Z
PaddleRec/tdm/tdm_demo/infer_network.py
danleifeng/models
b87761f8100a545e0015046dd55d886ce90c190e
[ "Apache-2.0" ]
1
2020-07-02T03:05:00.000Z
2020-07-02T03:05:00.000Z
PaddleRec/tdm/tdm_demo/infer_network.py
danleifeng/models
b87761f8100a545e0015046dd55d886ce90c190e
[ "Apache-2.0" ]
1
2020-09-09T16:53:01.000Z
2020-09-09T16:53:01.000Z
# -*- coding=utf-8 -*- """ # Copyright (c) 2020 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...
39.760204
80
0.597203
7,617
0.899185
0
0
0
0
0
0
2,282
0.26939
a7855fa0e107181fe9f7c866727366717fbbb9d3
727
py
Python
fixtures/requests.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
fixtures/requests.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
fixtures/requests.py
AzatAza/december-api-tests
dd120fd0c479b035dbe84ccd1fb1dd687d84af5d
[ "Apache-2.0" ]
null
null
null
import requests from requests import Response class Client: @staticmethod def request(method: str, url: str, **kwargs) -> Response: """ Request method method: method for the new Request object: GET, OPTIONS, HEAD, POST, PUT, PATCH, or DELETE. # noqa url – URL for the new Reques...
42.764706
119
0.645117
687
0.934694
0
0
669
0.910204
0
0
530
0.721088
a7857bc199ab6450358c23073cebf9f0bd31bb0d
352
py
Python
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
MLH-Fellowship/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
1
2021-09-17T06:11:02.000Z
2021-09-17T06:11:02.000Z
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
soma2000-lang/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
5
2021-02-03T05:29:41.000Z
2021-02-08T01:14:11.000Z
rules_default/castervoice/lib/ctrl/mgr/grammar_container/base_grammar_container.py
soma2000-lang/LarynxCode
840fee18c689a357052825607c27fc8e3e56571c
[ "MIT" ]
4
2021-02-03T05:05:00.000Z
2021-07-14T06:21:10.000Z
from castervoice.lib.ctrl.mgr.errors.base_class_error import DontUseBaseClassError class BaseGrammarContainer(object): def set_non_ccr(self, rcn, grammar): raise DontUseBaseClassError(self) def set_ccr(self, ccr_grammars): raise DontUseBaseClassError(self) def wipe_ccr(self): ra...
25.142857
82
0.75
266
0.755682
0
0
0
0
0
0
0
0
a7871a31d1f892b28ff5af9f08dffdc9caf09213
262
py
Python
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
2
2018-12-05T01:03:10.000Z
2019-03-16T04:27:03.000Z
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
null
null
null
main/urls.py
homata/snow_removing
c02585b8ceab3da107b932d6066c8b8344af1ff7
[ "Apache-2.0" ]
1
2018-12-04T14:18:08.000Z
2018-12-04T14:18:08.000Z
from django.urls import include, path from . import views from django.views.generic.base import RedirectView # アプリケーションの名前空間 # https://docs.djangoproject.com/ja/2.0/intro/tutorial03/ app_name = 'main' urlpatterns = [ path('', views.index, name='index'), ]
21.833333
57
0.736641
0
0
0
0
0
0
0
0
113
0.392361
a7882585c7ab1245006e29c8a68efd228a0cc9dc
1,114
py
Python
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
4
2017-07-04T15:18:59.000Z
2017-07-08T10:48:37.000Z
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
16
2017-07-04T15:36:41.000Z
2017-10-18T07:47:45.000Z
server/server/urls.py
oSoc17/lopeningent_backend
3e1c149038c3773f66dfbbc2f15ebd0692ecb4cd
[ "MIT" ]
null
null
null
"""server URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
37.133333
79
0.701975
0
0
0
0
0
0
0
0
752
0.675045
a7884b84cf2835ce8244b051ecf8f0adaa14e7d4
9,507
py
Python
app/backend/knowledge_base_approach/python-client/swagger_client/api/default_api.py
e-lubrini/fake-news-detector
f2464e4cac73d9203e7483ac0aa5cd47ddfba811
[ "MIT" ]
null
null
null
app/backend/knowledge_base_approach/python-client/swagger_client/api/default_api.py
e-lubrini/fake-news-detector
f2464e4cac73d9203e7483ac0aa5cd47ddfba811
[ "MIT" ]
1
2021-11-24T12:23:49.000Z
2021-11-24T12:23:49.000Z
app/backend/knowledge_base_approach/python-client/swagger_client/api/default_api.py
e-lubrini/fake-news-detector
f2464e4cac73d9203e7483ac0aa5cd47ddfba811
[ "MIT" ]
1
2021-11-24T18:07:44.000Z
2021-11-24T18:07:44.000Z
# coding: utf-8 """ FRED API FRED is a tool for automatically producing RDF/OWL ontologies and linked data from natural language sentences. The method is based on Combinatory Categorial Grammar, Discourse Representation Theory, Linguistic Frames, and Ontology Design Patterns. Results are enriched with NER and...
54.637931
305
0.664458
8,882
0.934259
0
0
0
0
0
0
6,303
0.662985
a788aafcac15ec56bc56e7dbc0349b85a1880056
1,496
py
Python
geesedb/interpreter/metadata.py
informagi/GeeseDB
b502830cafbcba8676e7e779d13d5bc14ba842f9
[ "MIT" ]
12
2021-07-05T12:33:20.000Z
2021-10-11T20:44:12.000Z
geesedb/interpreter/metadata.py
informagi/GeeseDB
b502830cafbcba8676e7e779d13d5bc14ba842f9
[ "MIT" ]
7
2021-07-28T20:40:36.000Z
2021-10-12T12:31:51.000Z
geesedb/interpreter/metadata.py
informagi/GeeseDB
b502830cafbcba8676e7e779d13d5bc14ba842f9
[ "MIT" ]
null
null
null
import json from ..connection import get_connection class Metadata: def __init__(self, database): self.connection = get_connection(database).connection # first list is default if nothing is specified (should be extended) # list is ordered as [edge_name, node1_id, edge_node1_id, edge_node2_id, n...
34.790698
90
0.584225
1,440
0.962567
0
0
0
0
0
0
816
0.545455
a78ab7709a2fb033bbbef0c592de69b2eb89f7f4
2,381
py
Python
content_feeders/in.py
Giapa/ContentAggregator
978c552406a770791cff435d41eb2bf135b5454d
[ "MIT" ]
null
null
null
content_feeders/in.py
Giapa/ContentAggregator
978c552406a770791cff435d41eb2bf135b5454d
[ "MIT" ]
2
2020-04-15T09:16:50.000Z
2020-04-15T09:22:06.000Z
content_feeders/in.py
IEEEdiots/ContentAggregator
978c552406a770791cff435d41eb2bf135b5454d
[ "MIT" ]
1
2021-03-25T17:58:16.000Z
2021-03-25T17:58:16.000Z
import requests from bs4 import BeautifulSoup def getSummary(link): #Get page response response = requests.get(link) #Parse the pgae soup = BeautifulSoup(response.content,'html.parser') #Find first paragraph summary_p = soup.find('p') #Get the first text summary = summary_p.text[:40] + ...
34.014286
216
0.554389
0
0
0
0
0
0
0
0
890
0.373793
a78b53e7326a1d9b30856a88ddc123ec056f3a2a
18,573
py
Python
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
resources/lib/database_tv.py
bradyemerson/plugin.video.showtimeanytime
65e7f130c14c8ef963cb3669638b8cf14860ec82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os.path from datetime import date, datetime from sqlite3 import dbapi2 as sqlite from bs4 import BeautifulSoup import simplejson as json import xbmcvfs import xbmcgui import common import connection import database_common as db_common def create(): c = _datab...
33.769091
127
0.586658
0
0
0
0
0
0
0
0
8,009
0.431217
a78c1c68d2605e5b65a1772b489da024f926a771
16,450
py
Python
apps/configuration/editions/base.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
3
2019-02-24T14:24:43.000Z
2019-10-24T18:51:32.000Z
apps/configuration/editions/base.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
17
2017-03-14T10:55:56.000Z
2022-03-11T23:20:19.000Z
apps/configuration/editions/base.py
sotkonstantinidis/testcircle
448aa2148fbc2c969e60f0b33ce112d4740a8861
[ "Apache-2.0" ]
2
2016-02-01T06:32:40.000Z
2019-09-06T04:33:50.000Z
import copy from configuration.configuration import QuestionnaireConfiguration from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db.models import F from django.template.loader import render_to_string from configuration.models import Configuration, Key, Value, Translati...
35.376344
101
0.599392
16,090
0.978116
109
0.006626
1,186
0.072097
0
0
5,109
0.310578
a78ce58146e32ab5bc583a0b5ea144d7df99f985
10,152
py
Python
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
1
2021-12-07T08:02:30.000Z
2021-12-07T08:02:30.000Z
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
EyePatterns/main_test_all_clusters.py
Sale1996/Pattern-detection-of-eye-tracking-scanpaths
15c832f26dce98bb95445f9f39f454f99bbb6029
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import distance from matplotlib import style from clustering_algorithms.affinity_propagation import AffinityPropagation from clustering_algorithms.custom_k_means import KMeans from clustering_algorithms.custom_mean_shift import MeanShift from clustering_algorithms.custom_mean_shift_strin...
42.476987
123
0.775611
0
0
0
0
0
0
0
0
2,551
0.251281
a78d7f529a85265c767d731a1463e302ccbc27fe
2,381
py
Python
src/onevision/cv/imgproc/color/integer.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/cv/imgproc/color/integer.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/cv/imgproc/color/integer.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- """Conversion between single-channel integer value to 3-channels color image. Mostly used for semantic segmentation. """ from __future__ import annotations import numpy as np import torch from multipledispatch import dispatch from torch import Tensor from onevision.cv....
25.602151
77
0.640067
0
0
0
0
667
0.280134
0
0
760
0.319194
a78db64f92c9f41c5d84dd1c53250b84b8159383
5,932
py
Python
doepy/problem_instance.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
1
2020-04-23T13:43:35.000Z
2020-04-23T13:43:35.000Z
doepy/problem_instance.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
null
null
null
doepy/problem_instance.py
scwolof/doepy
acb2cad95428de2c14b28563cff1aa30679e1f39
[ "MIT" ]
1
2021-06-13T14:38:32.000Z
2021-06-13T14:38:32.000Z
""" MIT License Copyright (c) 2019 Simon Olofsson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
34.289017
78
0.658968
4,831
0.814396
0
0
0
0
0
0
1,854
0.312542
a78f4a33fda334438866cc5eacb65a1aca2c29e8
1,831
py
Python
snuba/datasets/dataset_schemas.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/datasets/dataset_schemas.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
snuba/datasets/dataset_schemas.py
Appva/snuba
988a4312fc9c107bc735fb2295e269b01ef2dea4
[ "Apache-2.0" ]
null
null
null
from typing import Optional, List, Sequence, Union from snuba.datasets.schemas import Schema from snuba.datasets.schemas.tables import TableSchema, WritableTableSchema class DatasetSchemas(object): """ A collection of schemas associated with a dataset, providing access to schemas and DDL functions """ ...
33.290909
100
0.677226
1,659
0.906062
0
0
0
0
0
0
112
0.061169
a790c9288954c501a2b40dde1e0f624366ddda8c
3,039
py
Python
Benchmarking/benchmark_alphabet_increase.py
icezyclon/AALpy
3c2f05fdbbcdc99b47ba6b918540239568fca17f
[ "MIT" ]
61
2021-04-01T10:38:52.000Z
2022-03-28T13:44:23.000Z
Benchmarking/benchmark_alphabet_increase.py
icezyclon/AALpy
3c2f05fdbbcdc99b47ba6b918540239568fca17f
[ "MIT" ]
16
2021-04-03T20:14:08.000Z
2022-02-16T10:21:48.000Z
Benchmarking/benchmark_alphabet_increase.py
haubitzer/AALpy
e5b51742d886d5c5c72ab3e9c20eb349c56e2469
[ "MIT" ]
9
2021-04-05T13:43:17.000Z
2022-03-09T14:06:17.000Z
from statistics import mean import csv from aalpy.SULs import DfaSUL, MealySUL, MooreSUL from aalpy.learning_algs import run_Lstar from aalpy.oracles import RandomWalkEqOracle from aalpy.utils import generate_random_dfa, generate_random_mealy_machine, generate_random_moore_machine num_states = 1000 alph_size = 5 rep...
35.337209
115
0.699901
0
0
0
0
0
0
0
0
449
0.147746
a7910f32dd12a019dc980eaf9b89d7426fb179b4
2,505
py
Python
makehuman-master/makehuman/plugins/9_export_obj/mh2obj.py
Radiian-Arts-Main/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
1
2022-03-12T03:52:55.000Z
2022-03-12T03:52:55.000Z
makehuman-master/makehuman/plugins/9_export_obj/mh2obj.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
null
null
null
makehuman-master/makehuman/plugins/9_export_obj/mh2obj.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
3
2020-05-10T16:11:23.000Z
2021-05-30T02:11:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ **Project Name:** MakeHuman **Product Home Page:** http://www.makehumancommunity.org/ **Github Code Home Page:** https://github.com/makehumancommunity/ **Authors:** Thomas Larsson, Jonas Hauquier **Copyright(c):** MakeHuman Team 2001-2019 *...
32.960526
99
0.686228
0
0
0
0
0
0
0
0
1,539
0.614371
a79274aaddcc40eb1292cf7717dedc453646ab72
3,245
py
Python
util/plot_model.py
libccy/inv.cu
bab31a704b24888a99e07148b60266ff703f0968
[ "MIT" ]
null
null
null
util/plot_model.py
libccy/inv.cu
bab31a704b24888a99e07148b60266ff703f0968
[ "MIT" ]
null
null
null
util/plot_model.py
libccy/inv.cu
bab31a704b24888a99e07148b60266ff703f0968
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from os.path import exists import numpy as np import pylab import scipy.interpolate def read_fortran(filename): """ Reads Fortran style binary data and returns a numpy array. """ with open(filename, 'rb') as f: # read size of record f.seek(0) n = np.fromfile(f, dtype='int32...
24.216418
73
0.659476
0
0
0
0
0
0
0
0
1,218
0.375347
a7955298b73d5f2579d3f326020afc0190964952
6,150
py
Python
python/plugins/db_manager/db_plugins/oracle/data_model.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/db_manager/db_plugins/oracle/data_model.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
python/plugins/db_manager/db_plugins/oracle/data_model.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """ /*************************************************************************** Name : DB Manager Description : Database manager plugin for QGIS (Oracle) Date : Aug 27, 2014 copyright : (C) 2014 by Médéric RIBREUX email : meder...
33.064516
77
0.532195
4,541
0.738134
0
0
0
0
0
0
1,662
0.270156
a795b31c14f03e20f3936fc4c94e68f3ce593493
1,711
py
Python
Opencv1/prayog4.py
priyanshgupta1998/Image_Processing
d1848838ff1acd6dfcf551b99380a8bbf9c879fa
[ "MIT" ]
null
null
null
Opencv1/prayog4.py
priyanshgupta1998/Image_Processing
d1848838ff1acd6dfcf551b99380a8bbf9c879fa
[ "MIT" ]
null
null
null
Opencv1/prayog4.py
priyanshgupta1998/Image_Processing
d1848838ff1acd6dfcf551b99380a8bbf9c879fa
[ "MIT" ]
null
null
null
# with the TRACKBAR gui component # we can perform some action my moving cursor import cv2 import numpy as np def funk(): # create one funciton # Now we are not adding any action in it . # just pass pass def main(): img1 = np.zeros((512,512,3) , np.uint8) # create a imgae of size 512 x512 ...
39.790698
157
0.64173
0
0
0
0
0
0
0
0
889
0.519579
a795b8548eef5888745b44763ff2a163b2d8f0d7
9,814
py
Python
qiushaoyi/study_practices/qiushaoyi_study_path/L2_Module.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
2
2018-03-29T08:26:17.000Z
2019-06-17T10:56:19.000Z
qiushaoyi/study_practices/qiushaoyi_study_path/L2_Module.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
1
2022-03-22T20:26:08.000Z
2022-03-22T20:26:08.000Z
qiushaoyi/study_practices/qiushaoyi_study_path/L2_Module.py
qsyPython/Python_play_now
278b6d5d30082f8f93b26902c854737c4919405a
[ "MIT" ]
1
2019-02-18T10:44:20.000Z
2019-02-18T10:44:20.000Z
import sys from PIL import Image from enum import Enum, unique # 模块: cd 文件夹路径 再ls ,读取文件! 若是上级界面,路径: ./ im = Image.open('test.png') print(im.format, im.size, im.mode) # 面向过程:函数化!!! # 面向对象(Object Oriented Programming,简称OOP):对象化(包含数据和函数)!!!高度封装 std1 = {'name': 'Machileg', 'score': 89} std2 = {'name': 'mahfljg', 'score'...
23.99511
135
0.598431
7,047
0.631678
0
0
392
0.035138
0
0
3,859
0.345913
a795e8692fbeff0ef48524f2158106ba51c6886a
1,404
py
Python
2019/day-03/3.py
Valokoodari/advent-of-code
c664987f739e0b07ddad34bad87d56768556a5a5
[ "MIT" ]
2
2021-12-27T18:59:11.000Z
2022-01-10T02:31:36.000Z
2019/day-03/3.py
Valokoodari/advent-of-code-2019
c664987f739e0b07ddad34bad87d56768556a5a5
[ "MIT" ]
null
null
null
2019/day-03/3.py
Valokoodari/advent-of-code-2019
c664987f739e0b07ddad34bad87d56768556a5a5
[ "MIT" ]
2
2021-12-23T17:29:10.000Z
2021-12-24T03:21:49.000Z
inputFile = "3-input" outputFile = "3-output" dir = {'L': [-1,0],'R': [1,0],'U': [0,1],'D': [0,-1]} def readFile(): file = open(inputFile, "r") A,B = file.readlines() A,B = [line.split(",") for line in [A,B]] file.close() return A,B def writeFile(a, b): file = open(outputFile, "w+") fil...
24.206897
63
0.491453
0
0
0
0
0
0
0
0
107
0.076211
a795f6ac4554f8ba46a00dda59b825a3e846ebb5
942
py
Python
notebook/3_tst_3dep.py
ACWI-SSWD/nldi_el_serv
35276014728662b1a9bdbbbf4790c562c1df760c
[ "CC0-1.0" ]
null
null
null
notebook/3_tst_3dep.py
ACWI-SSWD/nldi_el_serv
35276014728662b1a9bdbbbf4790c562c1df760c
[ "CC0-1.0" ]
1
2021-03-04T18:50:19.000Z
2021-03-04T18:50:19.000Z
notebook/3_tst_3dep.py
ACWI-SSWD/nldi_el_serv
35276014728662b1a9bdbbbf4790c562c1df760c
[ "CC0-1.0" ]
null
null
null
from nldi_el_serv.XSGen import XSGen from nldi_el_serv.dem_query import query_dems_shape import py3dep from pynhd import NLDI gagebasin = NLDI().get_basins("06721000").to_crs('epsg:3857') gageloc = NLDI().getfeature_byid("nwissite", "USGS-06721000").to_crs('epsg:3857') cid = gageloc.comid.values.astype(str) print(cid...
33.642857
91
0.740977
0
0
0
0
0
0
0
0
202
0.214437
a7970ccf14ddf7d03195daa316d4ddd0d08e404f
3,437
py
Python
Python/Product/Pyvot/Pyvot/setup.py
mikiec84/PTVS
6cbeadd70a4438d6e6ea4d22a465d678eacf5eb2
[ "Apache-2.0" ]
3
2015-04-09T03:57:26.000Z
2016-07-25T10:00:34.000Z
Python/Product/Pyvot/Pyvot/setup.py
anstkosh/PTVS
1854ab3d6397e66765697bb63d898aec16d0406e
[ "Apache-2.0" ]
2
2019-06-05T18:13:41.000Z
2019-06-05T20:13:16.000Z
Python/Product/Pyvot/Pyvot/setup.py
RaymonGulati1/PTVS
ee1d09f2a94be4e21016f7579205bb65ec82c616
[ "Apache-2.0" ]
2
2018-03-02T19:55:14.000Z
2019-02-14T22:37:28.000Z
# PyVot # Copyright(c) Microsoft Corporation # 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 # # THIS CODE IS PROVIDED ON AN ...
35.802083
118
0.719814
229
0.066628
0
0
0
0
0
0
1,984
0.577248
a797c1cadcd8bbf1b052c2b8f77c7e0d396cdcfb
271
py
Python
src/ralph/api/__init__.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/api/__init__.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/api/__init__.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
from ralph.api.serializers import RalphAPISerializer from ralph.api.viewsets import RalphAPIViewSet, RalphReadOnlyAPIViewSet from ralph.api.routers import router __all__ = [ 'RalphAPISerializer', 'RalphAPIViewSet', 'RalphReadOnlyAPIViewSet', 'router', ]
24.636364
71
0.778598
0
0
0
0
0
0
0
0
70
0.258303
a799e70dc24ceb42c8e876b81ace1c8f5d0f6ceb
727
py
Python
demo_odoo_tutorial_wizard/models/models.py
digitalsatori/odoo-demo-addons-tutorial
8eb56156ac55f317f90bca089886c392556759c2
[ "MIT" ]
57
2020-06-22T05:28:11.000Z
2022-03-25T08:15:08.000Z
demo_odoo_tutorial_wizard/models/models.py
digitalsatori/odoo-demo-addons-tutorial
8eb56156ac55f317f90bca089886c392556759c2
[ "MIT" ]
2
2020-11-20T07:11:27.000Z
2022-03-30T00:20:29.000Z
demo_odoo_tutorial_wizard/models/models.py
digitalsatori/odoo-demo-addons-tutorial
8eb56156ac55f317f90bca089886c392556759c2
[ "MIT" ]
29
2020-07-04T15:24:01.000Z
2022-03-28T01:29:03.000Z
from odoo import models, fields, api from odoo.exceptions import ValidationError class DemoOdooWizardTutorial(models.Model): _name = 'demo.odoo.wizard.tutorial' _description = 'Demo Odoo Wizard Tutorial' name = fields.Char('Description', required=True) partner_id = fields.Many2one('res.partner', strin...
34.619048
72
0.696011
645
0.887208
0
0
383
0.526823
0
0
175
0.240715
a79daf8941b0f06f1e88f279de06585e5430d9d8
659
py
Python
eaa_donations/donations/models/partner_charity.py
andrewbird2/eaa_donations
40a2cb2431130b330130f101c89bd3f8c503d2e2
[ "MIT" ]
null
null
null
eaa_donations/donations/models/partner_charity.py
andrewbird2/eaa_donations
40a2cb2431130b330130f101c89bd3f8c503d2e2
[ "MIT" ]
13
2020-06-05T19:27:58.000Z
2022-02-26T13:40:54.000Z
eaa_donations/donations/models/partner_charity.py
andrewbird2/eaa_donations
40a2cb2431130b330130f101c89bd3f8c503d2e2
[ "MIT" ]
null
null
null
from django.db import models class PartnerCharity(models.Model): slug_id = models.CharField(max_length=30, unique=True) name = models.TextField(unique=True, verbose_name='Name (human readable)') email = models.EmailField(help_text='Used to cc the charity on receipts') xero_account_name = models.TextFi...
36.611111
101
0.732929
627
0.951442
0
0
0
0
0
0
127
0.192716
a7a100722ec7bb48d5749ae19f7101fc66740935
2,931
py
Python
python_data_utils/spark/ml/lightgbm.py
surajiyer/python-data-utils
d6e9bf81204a01545a3edb165c5724eb24f37c18
[ "MIT" ]
4
2019-01-06T00:09:21.000Z
2022-01-28T06:03:13.000Z
python_data_utils/spark/ml/lightgbm.py
surajiyer/python-data-utils
d6e9bf81204a01545a3edb165c5724eb24f37c18
[ "MIT" ]
null
null
null
python_data_utils/spark/ml/lightgbm.py
surajiyer/python-data-utils
d6e9bf81204a01545a3edb165c5724eb24f37c18
[ "MIT" ]
null
null
null
__all__ = ['LightGBMRegressorModel'] from mmlspark.lightgbm.LightGBMRegressor import LightGBMRegressor, LightGBMRegressionModel from mmlspark.train import ComputeModelStatistics from pyspark.ml.evaluation import RegressionEvaluator from pyspark.sql import DataFrame import pyspark.sql.functions as F from python_data_u...
37.101266
90
0.643466
2,380
0.81201
0
0
1,397
0.476629
0
0
429
0.146366
a7a176d1745c365cc7c57002a3194eb70a8c838f
80
py
Python
UDTherapy/__init__.py
JonSn0w/Urban-Dictionary-Therapy
8257cd3883bcef31207c2b089197ee9b0788727f
[ "MIT" ]
3
2017-05-08T11:59:51.000Z
2017-06-20T22:36:07.000Z
UDTherapy/__init__.py
JonSn0w/Urban-Dictionary-Therapy
8257cd3883bcef31207c2b089197ee9b0788727f
[ "MIT" ]
null
null
null
UDTherapy/__init__.py
JonSn0w/Urban-Dictionary-Therapy
8257cd3883bcef31207c2b089197ee9b0788727f
[ "MIT" ]
null
null
null
name = 'Urban Dictionary Therapy' __all__ = ['UDTherapy', 'helper']
16
33
0.6
0
0
0
0
0
0
0
0
45
0.5625
a7a1b1b2f4da0731134b12b8f90d117d800a2c6f
2,453
py
Python
torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py
alchemy315/NoPFS
f3901e963e2301e8a6f1c7aac0511d0cf9a1889d
[ "BSD-3-Clause" ]
null
null
null
torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py
alchemy315/NoPFS
f3901e963e2301e8a6f1c7aac0511d0cf9a1889d
[ "BSD-3-Clause" ]
null
null
null
torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py
alchemy315/NoPFS
f3901e963e2301e8a6f1c7aac0511d0cf9a1889d
[ "BSD-3-Clause" ]
null
null
null
import argparse import os import sys sys.path.append(os.environ['CI_SITE_CONFIG']) import ci_site_config import run import common parser = argparse.ArgumentParser() parser.add_argument("--prov", help="core provider", choices=["psm2", "verbs", \ "tcp", "udp", "sockets", "shm"]) parser.add_argument...
35.042857
81
0.653078
0
0
0
0
0
0
0
0
640
0.260905
a7a23de4cab3d9668dde589a3d12beefa58de55c
664
py
Python
interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0075_sort_colors.py
mrinalini-m/data_structures_and_algorithms
f9bebcca8002064e26ba5b46e47b8abedac39c3e
[ "MIT" ]
2
2020-12-18T21:42:05.000Z
2020-12-21T06:07:33.000Z
interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0075_sort_colors.py
mrinalini-m/data_structures_and_algorithms
f9bebcca8002064e26ba5b46e47b8abedac39c3e
[ "MIT" ]
null
null
null
interview_kickstart/01_sorting_algorithms/class_discussed_problems/python/0075_sort_colors.py
mrinalini-m/data_structures_and_algorithms
f9bebcca8002064e26ba5b46e47b8abedac39c3e
[ "MIT" ]
2
2020-07-04T20:30:19.000Z
2021-08-31T08:32:36.000Z
from typing import List def swap(arr, i, j): temp = arr[i] arr[i] = arr[j] arr[j] = temp class Solution: def sortColors(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ low = 0 high = len(nums) - 1 i = 0 ...
18.971429
61
0.414157
482
0.725904
0
0
0
0
0
0
77
0.115964
a7a370eb2ff4da9ac60e7150eb94a68c2fab78e2
14,452
py
Python
bnpy/data/GroupXData.py
raphael-group/bnpy
b11dc6f5689b06fc967bab6dffe7e01551d84667
[ "BSD-3-Clause" ]
184
2016-12-13T21:05:48.000Z
2022-02-28T11:47:23.000Z
bnpy/data/GroupXData.py
raphael-group/bnpy
b11dc6f5689b06fc967bab6dffe7e01551d84667
[ "BSD-3-Clause" ]
37
2016-12-18T14:07:53.000Z
2022-03-13T10:58:14.000Z
bnpy/data/GroupXData.py
raphael-group/bnpy
b11dc6f5689b06fc967bab6dffe7e01551d84667
[ "BSD-3-Clause" ]
50
2017-01-25T19:44:34.000Z
2022-03-15T10:22:01.000Z
''' Classes ----- GroupXData Data object for holding a dense matrix X of real 64-bit floats, organized contiguously based on provided group structure. ''' import numpy as np from collections import namedtuple from bnpy.data.XData import XData from bnpy.util import as1D, as2D, as3D, toCArray from bnpy.util impo...
34.657074
77
0.588846
12,063
0.834694
0
0
1,534
0.106144
0
0
5,320
0.368115
a7a3c07297bdc5a9d9dc9e8e2723b1d3e587876e
915
py
Python
sghymnal/users/models.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/users/models.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/users/models.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import BooleanField, CharField from django.urls import reverse from django.utils.translation import ugettext_lazy as _ class User(AbstractUser): # First Name and Last Name do not cover name patterns # around the globe. name = CharF...
39.782609
74
0.748634
719
0.785792
0
0
0
0
0
0
216
0.236066
a7a3c324c55d54b727b474911571c79dbd56bbdd
3,285
py
Python
GNetLMM/pycore/mtSet/linalg/linalg_matrix.py
PMBio/GNetLMM
103d6433ff6d4a13b5787c116032fda268dc4302
[ "Apache-2.0" ]
4
2016-02-25T18:40:36.000Z
2019-05-06T06:15:47.000Z
GNetLMM/pycore/mtSet/linalg/linalg_matrix.py
PMBio/GNetLMM
103d6433ff6d4a13b5787c116032fda268dc4302
[ "Apache-2.0" ]
6
2016-03-29T02:55:17.000Z
2017-11-27T19:30:04.000Z
GNetLMM/pycore/mtSet/linalg/linalg_matrix.py
PMBio/GNetLMM
103d6433ff6d4a13b5787c116032fda268dc4302
[ "Apache-2.0" ]
2
2017-05-09T05:23:50.000Z
2019-07-27T13:19:22.000Z
"""Matrix linear algebra routines needed for GP models""" import scipy as SP import scipy.linalg as linalg import logging def solve_chol(A,B): """ Solve cholesky decomposition:: return A\(A'\B) """ # X = linalg.solve(A,linalg.solve(A.transpose(),B)) # much faster version X = ...
26.92623
150
0.565297
0
0
0
0
0
0
0
0
1,744
0.530898
a7a51a41fbb112ee2ecd860311e6db4a6211d1fb
12,504
py
Python
WebDev/Task 3/we-poll/flaskapp/main.py
vigneshd332/delta-inductions-2021-master
70d4e7ecd92d69a2521df72ca99ac0ef2f135a23
[ "MIT" ]
null
null
null
WebDev/Task 3/we-poll/flaskapp/main.py
vigneshd332/delta-inductions-2021-master
70d4e7ecd92d69a2521df72ca99ac0ef2f135a23
[ "MIT" ]
null
null
null
WebDev/Task 3/we-poll/flaskapp/main.py
vigneshd332/delta-inductions-2021-master
70d4e7ecd92d69a2521df72ca99ac0ef2f135a23
[ "MIT" ]
null
null
null
import ast from flask import Flask, request from flaskext.mysql import MySQL from flask_cors import CORS, cross_origin app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' mysql=MySQL() app.config['MYSQL_DATABASE_USER'] = 'admin' app.config['MYSQL_DATABASE_PASSWORD'] = 'noobmaster69' app...
37.437126
193
0.610125
0
0
0
0
11,996
0.959373
0
0
3,680
0.294306
a7a53397912424502a2174602b255501283824ca
3,514
py
Python
src/models/participants/participants.py
jfblg/Tracktime-UZE
f43666ac62d6e6450d0fb7082b5e68bae360547f
[ "MIT" ]
null
null
null
src/models/participants/participants.py
jfblg/Tracktime-UZE
f43666ac62d6e6450d0fb7082b5e68bae360547f
[ "MIT" ]
null
null
null
src/models/participants/participants.py
jfblg/Tracktime-UZE
f43666ac62d6e6450d0fb7082b5e68bae360547f
[ "MIT" ]
null
null
null
from wtforms import Form, BooleanField, IntegerField, StringField, PasswordField, validators from wtforms.fields.html5 import EmailField from src.common.database import db from sqlalchemy import exc class RunnerRegistrationForm(Form): first_name = StringField('First name', [ validators.Length(min=2, max=...
31.945455
100
0.615822
3,308
0.941377
0
0
1,239
0.35259
0
0
526
0.149687
a7a5cb2262b40e9f0b4ed01f3aebd41690c8929f
901
py
Python
demo.py
ruixuantan/FourParts
d28f7fa87830406a08e618bdfcb25d5d87e3e2a1
[ "MIT" ]
null
null
null
demo.py
ruixuantan/FourParts
d28f7fa87830406a08e618bdfcb25d5d87e3e2a1
[ "MIT" ]
6
2020-10-09T04:25:07.000Z
2021-04-20T20:29:03.000Z
demo.py
ruixuantan/FourParts
d28f7fa87830406a08e618bdfcb25d5d87e3e2a1
[ "MIT" ]
null
null
null
import fourparts as fp import pandas as pd file_name = 'chorale_F' df = fp.midi_to_df('samples/' + file_name + '.mid', save=True) chords = fp.PreProcessor(4).get_progression(df) chord_progression = fp.ChordProgression(chords) # gets pitch class sets pitch_class_sets = chord_progression.get_pitch_class_sets() pd.Dat...
30.033333
74
0.789123
0
0
0
0
0
0
0
0
229
0.254162
a7a5eea8dc1da0b751835f89feabfe81cc8149c8
14,677
py
Python
jenkins_status.py
tektronix/obsidian
d7ee7cd1a8511ecea8d3b475c2b308bcd81c7706
[ "Apache-2.0" ]
2
2019-05-03T19:45:22.000Z
2019-08-01T18:33:49.000Z
jenkins_status.py
tektronix/obsidian
d7ee7cd1a8511ecea8d3b475c2b308bcd81c7706
[ "Apache-2.0" ]
5
2019-09-05T15:09:24.000Z
2019-10-02T20:36:35.000Z
jenkins_status.py
tektronix/obsidian
d7ee7cd1a8511ecea8d3b475c2b308bcd81c7706
[ "Apache-2.0" ]
1
2019-05-13T20:13:00.000Z
2019-05-13T20:13:00.000Z
#!/usr/bin/env python3 # Display a Jenkins build job status and progress # Re-use animation functions from https://github.com/jgarff/rpi_ws281x/blob/master/python/examples/strandtest.py import argparse import random import sys import datetime import time from rpi_ws281x import Adafruit_NeoPixel, Color from requests ...
36.239506
119
0.644614
0
0
0
0
0
0
0
0
3,413
0.232541
a7a6463865702f264ac1badc4373232d010a238b
3,649
py
Python
RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/MyTcMutation.py
dgumenyuk/Environment_generation
092fbecdc208f84aa58f2ccd3522262984e79cda
[ "MIT" ]
null
null
null
RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/MyTcMutation.py
dgumenyuk/Environment_generation
092fbecdc208f84aa58f2ccd3522262984e79cda
[ "MIT" ]
null
null
null
RQ1_RQ2/Thermostat_case_study/EVALUATION/Pymoo_GA/MyTcMutation.py
dgumenyuk/Environment_generation
092fbecdc208f84aa58f2ccd3522262984e79cda
[ "MIT" ]
null
null
null
import numpy as np from pymoo.model.mutation import Mutation import copy import config as cf import random as rm class MyTcMutation(Mutation): def __init__(self): super().__init__() def _do(self, problem, X, **kwargs): # print("X mutate", X.shape) # for each individual for i i...
34.424528
87
0.417923
3,533
0.96821
0
0
0
0
0
0
599
0.164155
a7a7a93a99b79c8510b21680dab63b937c097a0a
6,609
py
Python
yufeng_code/models.py
BrandonThaiTran/stressed_emotion
72a24ae66a41a9cdf811145ada5f4d5ecbe3c680
[ "MIT" ]
null
null
null
yufeng_code/models.py
BrandonThaiTran/stressed_emotion
72a24ae66a41a9cdf811145ada5f4d5ecbe3c680
[ "MIT" ]
null
null
null
yufeng_code/models.py
BrandonThaiTran/stressed_emotion
72a24ae66a41a9cdf811145ada5f4d5ecbe3c680
[ "MIT" ]
null
null
null
""" Defines models """ import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Function from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence from torch.nn.utils.rnn import pad_packed_sequence def init_weights(m): if type(m) == nn.Linear or ...
35.342246
80
0.55606
6,148
0.930247
0
0
0
0
0
0
22
0.003329
a7a883b149b66dd30bd8e6cfd41ec11cd9ae06f6
1,007
py
Python
intercom/api_operations/find.py
orikalinski/python-intercom
7acd881ac9fa042e88a31f540040be7027edafa1
[ "MIT" ]
null
null
null
intercom/api_operations/find.py
orikalinski/python-intercom
7acd881ac9fa042e88a31f540040be7027edafa1
[ "MIT" ]
null
null
null
intercom/api_operations/find.py
orikalinski/python-intercom
7acd881ac9fa042e88a31f540040be7027edafa1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Operation to find an instance of a particular resource.""" from intercom import HttpError from intercom import utils class Find(object): """A mixin that provides `find` functionality.""" def find(self, **params): """Find the instance of the resource based on the supplied p...
34.724138
84
0.606753
859
0.853029
0
0
0
0
0
0
316
0.313803
a7aa730f8abab95fb0a5ea5e1812ce4926111dc2
4,743
py
Python
Python/maximum-number-of-occurrences-of-a-substring.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/maximum-number-of-occurrences-of-a-substring.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/maximum-number-of-occurrences-of-a-substring.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(n) # Space: O(n) # 1297 weekly contest 168 12/21/2019 # Given a string s, return the maximum number of ocurrences of any substring under the following rules: # # The number of unique characters in the substring must be less than or equal to maxLetters. # The substring size must be between minSize and maxSi...
35.395522
103
0.527093
3,907
0.82374
0
0
0
0
0
0
1,243
0.26207
a7ab53160a52a5d1c5533255c3c66a5f638a75da
2,899
py
Python
source/protocol/image_0203_protocol.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/protocol/image_0203_protocol.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
source/protocol/image_0203_protocol.py
chopin1993/protocolmaster-20210731
e23e235ee00b940a4161c606415574d2a52c701c
[ "Apache-2.0" ]
null
null
null
# encoding:utf-8 from .protocol import Protocol from .protocol import find_head from .codec import BinaryEncoder from tools.converter import hexstr2bytes, str2hexstr from .data_container import * import time import struct from protocol.data_container import DataStruct IMG0203_HEAD = bytes([0x54,0x17,0xfe,0x02]) IMG0203...
30.840426
80
0.600552
2,487
0.857882
0
0
1,331
0.459124
0
0
191
0.065885
a7ac0fd2c72d5a1ba2a439615b6e2a8a3fe255b0
936
py
Python
ucscsdk/methodmeta/ConfigUCEstimateImpactMeta.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
9
2016-12-22T08:39:25.000Z
2019-09-10T15:36:19.000Z
ucscsdk/methodmeta/ConfigUCEstimateImpactMeta.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
10
2017-01-31T06:59:56.000Z
2021-11-09T09:14:37.000Z
ucscsdk/methodmeta/ConfigUCEstimateImpactMeta.py
parag-may4/ucscsdk
2ea762fa070330e3a4e2c21b46b157469555405b
[ "Apache-2.0" ]
13
2016-11-14T07:42:58.000Z
2022-02-10T17:32:05.000Z
"""This module contains the meta information of ConfigUCEstimateImpact ExternalMethod.""" from ..ucsccoremeta import MethodMeta, MethodPropertyMeta method_meta = MethodMeta("ConfigUCEstimateImpact", "configUCEstimateImpact", "Version142b") prop_meta = { "cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string...
44.571429
146
0.746795
0
0
0
0
0
0
0
0
607
0.648504
a7ad127304af82024c33b51ab7d7e16625068796
2,315
py
Python
src/midiutil/midiosc.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
7
2015-01-05T06:32:49.000Z
2020-10-30T19:29:07.000Z
src/midiutil/midiosc.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
null
null
null
src/midiutil/midiosc.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
4
2016-03-09T22:29:26.000Z
2021-04-07T13:52:28.000Z
""" This module provides an interface to MIDI things for OSC """ import sys import time import traceback import thread import threading import copy import string import re from threading import Thread,Lock from math import sqrt from ctypes import * from time import sleep from traceback import format_exc from array im...
21.238532
59
0.72959
1,868
0.806911
0
0
0
0
0
0
307
0.132613
a7ae12f206db8056cd85668443dc8c96311de3a2
7,128
py
Python
argentum-api/api/tests/test_guest_view.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
1
2019-10-07T09:47:08.000Z
2019-10-07T09:47:08.000Z
argentum-api/api/tests/test_guest_view.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
null
null
null
argentum-api/api/tests/test_guest_view.py
devium/argentum
2bbb0f663fe9be78d106b1afa409b094da449519
[ "MIT" ]
null
null
null
import copy import logging from api.models import Transaction, BonusTransaction, Order, Tag, OrderItem from api.models.guest import Guest from api.models.label import Label from api.tests.data.guests import TestGuests from api.tests.data.statuses import TestStatuses from api.tests.data.users import TestUsers from api....
40.271186
104
0.658951
6,715
0.942059
0
0
0
0
0
0
1,068
0.149832
a7ae40689370a8b6c40572fb34aab6f86b6f10fd
5,106
py
Python
nonebot/adapters/qqguild/message.py
nonebot/adapter-qqguild
a3e4d353bfdaafb296743bc0f15ed5d643c64d85
[ "MIT" ]
39
2021-12-23T14:26:41.000Z
2022-03-22T14:11:19.000Z
nonebot/adapters/qqguild/message.py
nonebot/adapter-qqguild
a3e4d353bfdaafb296743bc0f15ed5d643c64d85
[ "MIT" ]
4
2022-01-22T17:59:50.000Z
2022-03-22T12:40:10.000Z
nonebot/adapters/qqguild/message.py
nonebot/adapter-qqguild
a3e4d353bfdaafb296743bc0f15ed5d643c64d85
[ "MIT" ]
2
2022-01-16T02:38:51.000Z
2022-03-01T15:48:36.000Z
import re from typing import Any, Type, Tuple, Union, Iterable from nonebot.typing import overrides from nonebot.adapters import Message as BaseMessage from nonebot.adapters import MessageSegment as BaseMessageSegment from .utils import escape, unescape from .api import Message as GuildMessage from .api import Messa...
29.859649
87
0.607521
4,736
0.927536
905
0.177242
4,034
0.790051
0
0
696
0.13631
a7ae54fa73c46e74acbf26edef75a93f9daec057
2,689
py
Python
creme/metrics/__init__.py
Raul9595/creme
39cec7ac27ccd40ff0a7bdd6bceaf7ce25c1a8da
[ "BSD-3-Clause" ]
1
2020-07-27T03:06:46.000Z
2020-07-27T03:06:46.000Z
creme/metrics/__init__.py
2torus/creme
bcc5e2a0155663a1f0ba779c68f23456695bcb54
[ "BSD-3-Clause" ]
1
2022-02-10T06:24:42.000Z
2022-02-10T06:24:42.000Z
creme/metrics/__init__.py
igorol/creme
60977c4accfdca08cfd76a162095ff738ef87281
[ "BSD-3-Clause" ]
1
2021-04-16T08:27:14.000Z
2021-04-16T08:27:14.000Z
""" A set of metrics used in machine learning that can be computed in a streaming fashion, without any loss in precision. """ from .accuracy import Accuracy from .accuracy import RollingAccuracy from .confusion import ConfusionMatrix from .confusion import RollingConfusionMatrix from .cross_entropy import CrossEntropy ...
25.130841
98
0.748605
0
0
0
0
0
0
0
0
780
0.290071
a7aefa18f5080501a0e0759b55fb0c060403255f
628
py
Python
cd/checks/is_player_connected.py
Axelware/CD-bot
8f923c09c3c8cfcff48813c6dd11ac50c410af72
[ "MIT" ]
2
2021-12-10T00:36:59.000Z
2021-12-11T09:11:46.000Z
cd/checks/is_player_connected.py
Axelware/CD-bot
8f923c09c3c8cfcff48813c6dd11ac50c410af72
[ "MIT" ]
2
2021-12-10T01:53:10.000Z
2021-12-10T09:06:01.000Z
cd/checks/is_player_connected.py
Axelware/CD-bot
8f923c09c3c8cfcff48813c6dd11ac50c410af72
[ "MIT" ]
1
2021-12-10T00:37:07.000Z
2021-12-10T00:37:07.000Z
# Future from __future__ import annotations # Standard Library from collections.abc import Callable from typing import Literal, TypeVar # Packages from discord.ext import commands # Local from cd import custom, exceptions __all__ = ( "is_player_connected", ) T = TypeVar("T") def is_player_connected() -> Ca...
19.030303
95
0.719745
0
0
0
0
0
0
248
0.394904
109
0.173567
a7af30cf8c221d4921a6b97b3773efaa600307b2
986
py
Python
src/test/base.py
vincent-lg/levantine
21d5296eec2161d9fae404bbfd9d538ac7970f2c
[ "BSD-3-Clause" ]
null
null
null
src/test/base.py
vincent-lg/levantine
21d5296eec2161d9fae404bbfd9d538ac7970f2c
[ "BSD-3-Clause" ]
null
null
null
src/test/base.py
vincent-lg/levantine
21d5296eec2161d9fae404bbfd9d538ac7970f2c
[ "BSD-3-Clause" ]
null
null
null
"""Base test for TalisMUD tests. It creates an in-memory database for each test, so they run in independent environments. """ import unittest from pony.orm import db_session from data.base import db from data.properties import LazyPropertyDescriptor # Bind to a temporary database db.bind(provider="sqlite", filena...
25.947368
74
0.662272
609
0.617647
0
0
0
0
0
0
310
0.314402
a7b03e4ffb4bbb414e62639fa7c3f4af65273269
4,074
py
Python
setup.py
zkbt/henrietta
653d798b241ad5591b704967a0413a2457a4e734
[ "MIT" ]
null
null
null
setup.py
zkbt/henrietta
653d798b241ad5591b704967a0413a2457a4e734
[ "MIT" ]
12
2018-09-12T03:56:04.000Z
2019-02-15T04:12:53.000Z
setup.py
zkbt/henrietta
653d798b241ad5591b704967a0413a2457a4e734
[ "MIT" ]
null
null
null
''' This setup.py file sets up our package to be installable on any computer, so that folks can `import henrietta` from within any directory. Thanks to this file, you can... ...tell python to look for `henrietta` in the current directory (which you can continue to edit), by typing *one* of the following commands: `p...
37.376147
109
0.650957
0
0
0
0
0
0
0
0
3,015
0.740059
a7b07918e04c601018fdac4669f2078472d113b2
18,739
py
Python
zedenv/plugins/systemdboot.py
slicer69/zedenv
415397b48fdc8ec137cc8f99d2d9a70e8c8981f1
[ "BSD-3-Clause" ]
null
null
null
zedenv/plugins/systemdboot.py
slicer69/zedenv
415397b48fdc8ec137cc8f99d2d9a70e8c8981f1
[ "BSD-3-Clause" ]
null
null
null
zedenv/plugins/systemdboot.py
slicer69/zedenv
415397b48fdc8ec137cc8f99d2d9a70e8c8981f1
[ "BSD-3-Clause" ]
null
null
null
import shutil import os import re import tempfile import click import zedenv.lib.be import zedenv.plugins.configuration as plugin_config import zedenv.lib.system from zedenv.lib.logger import ZELogger class SystemdBoot: systems_allowed = ["linux"] bootloader = "systemdboot" def __init__(self, zedenv_d...
40.560606
99
0.509365
18,533
0.989007
0
0
0
0
0
0
5,319
0.283847
a7b14f4594c0e55bb15609c8994038940d71c37f
1,158
py
Python
dockerfile/web/mailman-web/main.py
TommyLike/kubernetes-mailman
abd50e2798f2c4417e71302ff64b8a52d0d5878a
[ "MIT" ]
null
null
null
dockerfile/web/mailman-web/main.py
TommyLike/kubernetes-mailman
abd50e2798f2c4417e71302ff64b8a52d0d5878a
[ "MIT" ]
null
null
null
dockerfile/web/mailman-web/main.py
TommyLike/kubernetes-mailman
abd50e2798f2c4417e71302ff64b8a52d0d5878a
[ "MIT" ]
null
null
null
import os import socket import ipaddress DEBUG = True EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # NOTE: this is the MTA host, we need to update it. EMAIL_HOST = 'mailman-exim4-0.mail-suit-service.default.svc.cluster.local' EMAIL_PORT = 25 mailman_ip_address = socket.gethostbyname( os.environ....
37.354839
74
0.692573
0
0
0
0
0
0
0
0
640
0.552677
a7b26907d2d76169184d6413917d51a6f4b07b22
16,381
py
Python
mask_functions.py
jhh37/wearmask3d
67c9beba323a34d0d207d7b6897f97cd59145e63
[ "MIT" ]
6
2021-09-25T04:59:16.000Z
2022-03-02T15:39:13.000Z
mask_functions.py
jhh37/wearmask3d
67c9beba323a34d0d207d7b6897f97cd59145e63
[ "MIT" ]
null
null
null
mask_functions.py
jhh37/wearmask3d
67c9beba323a34d0d207d7b6897f97cd59145e63
[ "MIT" ]
1
2021-09-26T02:35:44.000Z
2021-09-26T02:35:44.000Z
# WearMask3D # Copyright 2021 Hanjo Kim and Minsoo Kim. All rights reserved. # http://github.com/jhh37/wearmask3d # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includ...
31.807767
110
0.565777
0
0
0
0
0
0
0
0
1,920
0.117209
a7b2d4bcebc84c01285d54f2bcd39c69c67e7a6d
249
py
Python
adminapp/admin.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
adminapp/admin.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
adminapp/admin.py
gabyxbinnaeah/Bus-Booking
51d2a521f890986e4e7e17775708cec3cd71d2b4
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Admin, Profile # from userapp.models import Book # from driverapp.models import Bus admin.site.register(Admin) admin.site.register(Profile) # admin.site.register(Bus) # admin.site.register(Book)
27.666667
35
0.795181
0
0
0
0
0
0
0
0
120
0.481928
a7b37c8008c4aac92350512db834814661a375e1
41,807
py
Python
zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
zstackwoodpecker/zstackwoodpecker/operations/hybrid_operations.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
''' All ldap operations for test. @author: quarkonics ''' from apibinding.api import ApiError import apibinding.inventory as inventory import apibinding.api_actions as api_actions import zstackwoodpecker.test_util as test_util import account_operations import config_operations import os import inspec...
50.73665
288
0.75107
0
0
0
0
0
0
0
0
6,124
0.146483
a7b426f2174df82614170a394fb020de8df61abf
293
py
Python
datasets_example/populate_elastic.py
aleksbobic/csx
151ac6644694ac585bf5d070bae7146e94c30aec
[ "MIT" ]
null
null
null
datasets_example/populate_elastic.py
aleksbobic/csx
151ac6644694ac585bf5d070bae7146e94c30aec
[ "MIT" ]
null
null
null
datasets_example/populate_elastic.py
aleksbobic/csx
151ac6644694ac585bf5d070bae7146e94c30aec
[ "MIT" ]
null
null
null
import requests import sys requests.put(f"http://localhost:9200/{sys.argv[1]}?pretty") headers = {"Content-Type": "application/x-ndjson"} data = open(sys.argv[2], "rb").read() requests.post( f"http://localhost:9200/{sys.argv[1]}/_bulk?pretty", headers=headers, data=data )
22.538462
84
0.665529
0
0
0
0
0
0
0
0
136
0.464164
a7b4359004682dcf25fa55ff619454c6c53df969
47
py
Python
numba/cuda/simulator/cudadrv/error.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/cuda/simulator/cudadrv/error.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/cuda/simulator/cudadrv/error.py
auderson/numba
3d67c9850ab56457f418cf40af6245fd9c337705
[ "BSD-2-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
class CudaSupportError(RuntimeError): pass
15.666667
37
0.787234
46
0.978723
0
0
0
0
0
0
0
0
a7b495865e605d6301abb8d08c5cad2ee915a172
7,369
py
Python
tests/unit/utils/test_attributes.py
pyqgis/plutil
79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d
[ "MIT" ]
null
null
null
tests/unit/utils/test_attributes.py
pyqgis/plutil
79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d
[ "MIT" ]
null
null
null
tests/unit/utils/test_attributes.py
pyqgis/plutil
79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Unit tests for Attributes. """ from __future__ import unicode_literals from __future__ import print_function import logging import os import shutil import tempfile from unittest import TestCase, SkipTest from unittest.mock import MagicMock from qgis.PyQt.QtCore import QVariant from qgis.co...
39.832432
75
0.639707
6,775
0.919392
0
0
0
0
0
0
593
0.080472
a7b4c6f5823d6451d0e2b584c552a30bc5d41136
191
py
Python
portal/template.py
SlapBass/nx-portal
ee262079db1e5230a24ebbc205e44926f11f8da9
[ "Apache-2.0" ]
5
2019-10-04T04:46:44.000Z
2019-10-09T10:02:01.000Z
portal/template.py
SlapBass/nx-portal
ee262079db1e5230a24ebbc205e44926f11f8da9
[ "Apache-2.0" ]
9
2019-10-06T07:15:09.000Z
2020-09-24T02:19:40.000Z
portal/template.py
SlapBass/nx-portal
ee262079db1e5230a24ebbc205e44926f11f8da9
[ "Apache-2.0" ]
1
2020-06-19T13:26:08.000Z
2020-06-19T13:26:08.000Z
from django.conf import settings def shared_view_contexts(request): return { 'APP_NAME': settings.APPLICATION_NAME, 'SEASONABLE_EMOJI': settings.SEASONABLE_EMOJI, }
21.222222
54
0.712042
0
0
0
0
0
0
0
0
28
0.146597
a7b57910267fcbe3aaeef29154600de509e91fa3
12,923
py
Python
app.py
Tesfa-eth/online_book_store
b3a9b24065f3952f2ea26107a72a96fe6c1988e8
[ "Apache-2.0" ]
null
null
null
app.py
Tesfa-eth/online_book_store
b3a9b24065f3952f2ea26107a72a96fe6c1988e8
[ "Apache-2.0" ]
null
null
null
app.py
Tesfa-eth/online_book_store
b3a9b24065f3952f2ea26107a72a96fe6c1988e8
[ "Apache-2.0" ]
null
null
null
from enum import unique from typing import Reversible from flask import Flask, app, render_template, url_for, redirect, request #import flask from flask.helpers import flash from flask_login.utils import login_fresh from flask_sqlalchemy import SQLAlchemy from flask_login import UserMixin, login_manager, login_user, Lo...
37.676385
137
0.686141
2,739
0.211948
0
0
7,846
0.607135
0
0
3,504
0.271144
a7b6c1b55e93ba5383e18ba855c03c57d497af3c
5,560
py
Python
aei_net.py
ilyakava/faceshifter
aa48f9eb79991bae4ee9d8c69bb3b51891a9f721
[ "BSD-3-Clause" ]
null
null
null
aei_net.py
ilyakava/faceshifter
aa48f9eb79991bae4ee9d8c69bb3b51891a9f721
[ "BSD-3-Clause" ]
null
null
null
aei_net.py
ilyakava/faceshifter
aa48f9eb79991bae4ee9d8c69bb3b51891a9f721
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn.functional as F from torch.optim import Adam from torch.utils.data import DataLoader import torchvision from torchvision import transforms from torchvision.models import resnet101 import pytorch_lightning as pl from model.AEINet import ADDGenerator, MultilevelAttributesEncoder from model...
40
140
0.660252
5,117
0.920324
0
0
0
0
0
0
273
0.049101
a7b811fd3215225ba11bbaec1274776a54d75f89
3,744
py
Python
luna/gateware/usb/usb3/link/timers.py
macdaliot/luna
97e725d0af001a6d4c4811eefb43b6c31a9b45e1
[ "BSD-3-Clause" ]
2
2020-11-04T10:54:15.000Z
2022-03-17T20:38:21.000Z
luna/gateware/usb/usb3/link/timers.py
macdaliot/luna
97e725d0af001a6d4c4811eefb43b6c31a9b45e1
[ "BSD-3-Clause" ]
4
2020-11-11T17:32:33.000Z
2020-11-30T13:08:05.000Z
luna/gateware/usb/usb3/link/timers.py
macdaliot/luna
97e725d0af001a6d4c4811eefb43b6c31a9b45e1
[ "BSD-3-Clause" ]
2
2021-06-26T06:06:52.000Z
2022-01-19T22:36:19.000Z
# # This file is part of LUNA. # # Copyright (c) 2020 Great Scott Gadgets <[email protected]> # SPDX-License-Identifier: BSD-3-Clause """ U0 link-maintenance timers. """ from nmigen import * class LinkMaintenanceTimers(Elaboratable): """ Timers which ensure link integrity is maintained in U0. These...
34.036364
97
0.6461
3,540
0.945513
0
0
0
0
0
0
1,955
0.522169
a7bac68130322804ca0f8658958c0c6e65364b14
769
py
Python
S4/S4 Library/simulation/ensemble/ensemble_interactions.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/ensemble/ensemble_interactions.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/ensemble/ensemble_interactions.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from objects.base_interactions import ProxyInteraction from sims4.utils import classproperty, flexmethod class EnsembleConstraintProxyInteraction(ProxyInteraction): INSTANCE_SUBCLASSES_ONLY = True @classproperty def proxy_name(cls): return '[Ensemble]' @classmethod def generate(cls, proxi...
33.434783
89
0.723017
662
0.860858
290
0.377113
549
0.713914
0
0
12
0.015605
a7bb2b9d40a5d41ccee76669339046f57bb5ef22
742
py
Python
setup.py
ryderdamen/phonetic-alphabet
23239a532b05c5708629011dd02a228fc11f71e7
[ "MIT" ]
3
2020-05-01T22:23:38.000Z
2021-03-30T17:47:40.000Z
setup.py
ryderdamen/phonetic-alphabet
23239a532b05c5708629011dd02a228fc11f71e7
[ "MIT" ]
null
null
null
setup.py
ryderdamen/phonetic-alphabet
23239a532b05c5708629011dd02a228fc11f71e7
[ "MIT" ]
null
null
null
import setuptools def get_readme(): with open('README.md') as f: return f.read() INSTALL_REQUIRES = [] TESTS_REQUIRE = ['pytest'] setuptools.setup( name='phonetic_alphabet', version='0.1.0', description='Convert characters and digits to phonetic alphabet equivalents.', long_description=...
27.481481
82
0.719677
0
0
0
0
0
0
0
0
280
0.377358