hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
296fb258ac152bb5d0ab76f1dc36db9554473c79
21,477
py
Python
redis/commands/search/commands.py
jerr0328/redis-py
6a293e685d27894bc99ea4c0c7312c81f099ca45
[ "MIT" ]
null
null
null
redis/commands/search/commands.py
jerr0328/redis-py
6a293e685d27894bc99ea4c0c7312c81f099ca45
[ "MIT" ]
null
null
null
redis/commands/search/commands.py
jerr0328/redis-py
6a293e685d27894bc99ea4c0c7312c81f099ca45
[ "MIT" ]
null
null
null
import itertools import time from .document import Document from .result import Result from .query import Query from ._util import to_string from .aggregation import AggregateRequest, AggregateResult, Cursor from .suggestion import SuggestionParser NUMERIC = "NUMERIC" CREATE_CMD = "FT.CREATE" ALTER_CMD = "FT.ALTER" ...
30.550498
102
0.564883
1407a0562e93c860ba042e9b9c053d4660ceaaca
21,344
py
Python
django/db/models/lookups.py
savoirfairelinux/django
3159ad4df6ec05c3eac07b930b4af32739bec7b0
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/models/lookups.py
savoirfairelinux/django
3159ad4df6ec05c3eac07b930b4af32739bec7b0
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/models/lookups.py
savoirfairelinux/django
3159ad4df6ec05c3eac07b930b4af32739bec7b0
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import itertools import math from copy import copy from decimal import Decimal from django.core.exceptions import EmptyResultSet from django.db.models.expressions import Func, Value from django.db.models.fields import ( DateTimeField, DecimalField, Field, IntegerField, ) from django.db.models.query_utils import Re...
35.45515
109
0.665527
5c63262cc7836ee70171dcd58a567029f10f1f98
7,906
py
Python
loading/data_loading.py
ShuoZhangXJTU/CIC
337ddc85d12e37f8567eceee3bf5b1d0734b1811
[ "Apache-2.0" ]
8
2020-12-17T15:29:27.000Z
2022-03-10T09:15:54.000Z
loading/data_loading.py
ShuoZhangXJTU/CIC
337ddc85d12e37f8567eceee3bf5b1d0734b1811
[ "Apache-2.0" ]
null
null
null
loading/data_loading.py
ShuoZhangXJTU/CIC
337ddc85d12e37f8567eceee3bf5b1d0734b1811
[ "Apache-2.0" ]
null
null
null
import torch import torch.utils.data as data import torchtext from cn_process import parse_jieba from loading.imbalanced_sampler import ImbalancedDatasetSampler device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') def numerical(raw_POS, stoi): rst = [] for POS in raw_POS: ...
42.735135
124
0.606122
c1a5df82cfae16bf8a401e270b04377c484e356b
3,541
py
Python
docs/lectures/lecture14/notebook/helper.py
kehaus/2022-CS109B
59fe88ee883302ee060c5dd582cb0acbb00b4e8c
[ "MIT" ]
9
2022-01-22T21:39:58.000Z
2022-02-12T20:07:41.000Z
docs/lectures/lecture14/notebook/helper.py
kehaus/2022-CS109B
59fe88ee883302ee060c5dd582cb0acbb00b4e8c
[ "MIT" ]
null
null
null
docs/lectures/lecture14/notebook/helper.py
kehaus/2022-CS109B
59fe88ee883302ee060c5dd582cb0acbb00b4e8c
[ "MIT" ]
12
2022-01-15T14:18:51.000Z
2022-03-29T20:04:21.000Z
import os import random import numpy as np import pandas as pd import tensorflow as tf import matplotlib.pyplot as plt from tensorflow.keras import backend as K from sklearn.metrics import accuracy_score from tensorflow.keras.optimizers import SGD from tensorflow.keras.datasets import cifar10 from tensorflow.keras.util...
32.486239
118
0.737362
f4439f667d83955ab4921c4f78c1b79de7652b3a
4,375
py
Python
jcasts/users/views.py
danjac/audiotrails
1ed178babc2ccb3a032a0d7cd3be64a6e2f7bb0a
[ "MIT" ]
11
2021-04-01T23:44:10.000Z
2021-07-12T19:57:10.000Z
jcasts/users/views.py
danjac/audiotrails
1ed178babc2ccb3a032a0d7cd3be64a6e2f7bb0a
[ "MIT" ]
37
2021-04-11T16:58:09.000Z
2021-07-16T18:53:01.000Z
jcasts/users/views.py
danjac/audiotrails
1ed178babc2ccb3a032a0d7cd3be64a6e2f7bb0a
[ "MIT" ]
null
null
null
from __future__ import annotations import csv from django.conf import settings from django.contrib import messages from django.contrib.auth import logout from django.contrib.auth.decorators import login_required from django.db.models import QuerySet from django.http import HttpRequest, HttpResponse, HttpResponseRedir...
28.225806
94
0.6096
8e2e974bfa0f6b7777a636a2e8a154469bdbd6b8
1,529
py
Python
pyscf/nao/test/test_0016_dipole_coo.py
fdmalone/pyscf
021b17ac721e292b277d2b740e2ff8ab38bb6a4a
[ "Apache-2.0" ]
1
2019-07-01T12:39:45.000Z
2019-07-01T12:39:45.000Z
pyscf/nao/test/test_0016_dipole_coo.py
fdmalone/pyscf
021b17ac721e292b277d2b740e2ff8ab38bb6a4a
[ "Apache-2.0" ]
null
null
null
pyscf/nao/test/test_0016_dipole_coo.py
fdmalone/pyscf
021b17ac721e292b277d2b740e2ff8ab38bb6a4a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2018 The PySCF Developers. 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 appl...
33.23913
74
0.695226
20cb46e95a4990cbcae139dadbd01995f1317d9b
2,540
py
Python
app/api/v2/models/users_models.py
JosephNjuguna/QuestionerV2
e1ecf13ed6c310ab262cbdc219d2f7521ff4d3be
[ "MIT" ]
1
2019-01-23T07:08:55.000Z
2019-01-23T07:08:55.000Z
app/api/v2/models/users_models.py
JosephNjuguna/QuestionerV2
e1ecf13ed6c310ab262cbdc219d2f7521ff4d3be
[ "MIT" ]
6
2019-01-22T08:03:43.000Z
2019-01-23T21:41:08.000Z
app/api/v2/models/users_models.py
JosephNjuguna/QuestionerV2
e1ecf13ed6c310ab262cbdc219d2f7521ff4d3be
[ "MIT" ]
null
null
null
""" user database connection and model """ import datetime import uuid from werkzeug.security import generate_password_hash, check_password_hash # local imports from app.api.v2.models.basemodel import DatabaseConnection as connection class UserModel(connection): """This class encapsulates the functions of the u...
42.333333
237
0.653543
30f5bf9a5175f52102df9e8715ab036947ec438c
4,219
py
Python
tests/e2e/client/apiproxy_bookstore_key_restriction_test.py
qiwzhang/esp-v2
99e280faca23eddb4587ba427f4ab411242b17c9
[ "Apache-2.0" ]
1
2019-12-19T01:43:08.000Z
2019-12-19T01:43:08.000Z
tests/e2e/client/apiproxy_bookstore_key_restriction_test.py
qiwzhang/esp-v2
99e280faca23eddb4587ba427f4ab411242b17c9
[ "Apache-2.0" ]
null
null
null
tests/e2e/client/apiproxy_bookstore_key_restriction_test.py
qiwzhang/esp-v2
99e280faca23eddb4587ba427f4ab411242b17c9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 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 a...
38.009009
79
0.630244
3b939b6ec1c7d513d64bd1074b96ff67d30fb1de
2,577
py
Python
tests/test_blog.py
fossabot/WebsiteMixer-App-Base
b9aca7bf007d98a8a1027131adbcb80131234332
[ "MIT" ]
21
2015-05-19T18:08:50.000Z
2021-10-02T19:13:04.000Z
tests/test_blog.py
fossabot/WebsiteMixer-App-Base
b9aca7bf007d98a8a1027131adbcb80131234332
[ "MIT" ]
11
2015-03-21T01:17:25.000Z
2017-01-23T20:54:25.000Z
tests/test_blog.py
fossabot/WebsiteMixer-App-Base
b9aca7bf007d98a8a1027131adbcb80131234332
[ "MIT" ]
11
2016-01-07T17:06:43.000Z
2021-03-25T07:02:43.000Z
import pytest from websitemixer.db import get_db def test_index(client, auth): response = client.get('/') assert b"Log In" in response.data assert b"Register" in response.data auth.login() response = client.get('/') assert b'test title' in response.data assert b'by test on 2018-01-01' in ...
27.709677
72
0.63019
428ecfb2092a1d4aea40e22670640d2d88281267
2,473
py
Python
plots/f1_plots.py
twsleight/Environmental_PAH_Mutagenicity
c104b4a98455e0e3763966429ea1596886e8c6d3
[ "MIT" ]
1
2021-12-09T15:27:01.000Z
2021-12-09T15:27:01.000Z
plots/f1_plots.py
twsleight/Environmental_PAH_Mutagenicity
c104b4a98455e0e3763966429ea1596886e8c6d3
[ "MIT" ]
1
2020-12-08T17:25:42.000Z
2021-05-13T01:36:56.000Z
plots/f1_plots.py
twsleight/Environmental_PAH_Mutagenicity
c104b4a98455e0e3763966429ea1596886e8c6d3
[ "MIT" ]
null
null
null
#code to generate Figure S18 A-C import os import pandas as pd import numpy as np import matplotlib.pyplot as plt #0 is the larger clsuter # 2 is the unusued clsuter def moving_average(x, w): return np.convolve(x, np.ones(w), 'valid') / w parent = os.path.join(os.path.abspath(__file__), os.pardir) filename = ...
30.158537
98
0.676911
5c12bdcb1af761a6fc42092f23f3cdf00a33ea36
532
py
Python
setup.py
sandeepchamunni/address-net
ffbf1dab87d6ded0156ce8dda75c7f30d3be13b5
[ "MIT" ]
155
2019-03-22T21:53:43.000Z
2022-03-25T20:09:47.000Z
setup.py
sandeepchamunni/address-net
ffbf1dab87d6ded0156ce8dda75c7f30d3be13b5
[ "MIT" ]
15
2019-06-13T13:41:08.000Z
2021-12-22T07:00:53.000Z
setup.py
sandeepchamunni/address-net
ffbf1dab87d6ded0156ce8dda75c7f30d3be13b5
[ "MIT" ]
68
2019-03-10T06:21:14.000Z
2022-02-15T05:15:28.000Z
from setuptools import setup setup( name='address-net', version='1.0', packages=['addressnet'], url='https://github.com/jasonrig/address-net', license='MIT', author='Jason Rigby', author_email='hello@jasonrig.by', description='Splits Australian addresses into their components', extr...
24.181818
68
0.612782
c09d75ae4f5637be18fccce571c1191cd9a2a29f
841
py
Python
frappe/core/doctype/test_runner/test_runner.py
sivaranjanipalanivel/frappe
c9fc4f8b7f4aad024a3e69aa92c26eeaf05ce840
[ "MIT" ]
1
2020-08-12T23:07:02.000Z
2020-08-12T23:07:02.000Z
frappe/core/doctype/test_runner/test_runner.py
sivaranjanipalanivel/frappe
c9fc4f8b7f4aad024a3e69aa92c26eeaf05ce840
[ "MIT" ]
null
null
null
frappe/core/doctype/test_runner/test_runner.py
sivaranjanipalanivel/frappe
c9fc4f8b7f4aad024a3e69aa92c26eeaf05ce840
[ "MIT" ]
1
2018-03-22T00:27:21.000Z
2018-03-22T00:27:21.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe, os from frappe.model.document import Document class TestRunner(Document): pass @frappe.whitelist() def get_test_js(): '''Get te...
23.361111
78
0.718193
d94ac5adfc7ce55393cca005e16668daca32d292
6,260
py
Python
gpcsup/dao.py
braedon/gpcsup
a20c9fbc7d5c0191a87553b8588757b1528fe655
[ "MIT" ]
null
null
null
gpcsup/dao.py
braedon/gpcsup
a20c9fbc7d5c0191a87553b8588757b1528fe655
[ "MIT" ]
null
null
null
gpcsup/dao.py
braedon/gpcsup
a20c9fbc7d5c0191a87553b8588757b1528fe655
[ "MIT" ]
null
null
null
import rfc3339 from elasticsearch_dsl import Search SITE_SORTABLE_FIELDS = { 'id': 'domain.keyword', '-id': '-domain.keyword', } def get_now_dts(): # NOTE: rfc3339.now() doesn't give us fractional seconds. This is less precise, but using # fractional seconds complicates specifying datetime ra...
33.297872
99
0.569968
abcf57477d412adab8813560ba1d3e730a3c846c
1,236
py
Python
ReplicatedFocusingBeliefPropagation/__init__.py
DanielLenz/rFBP
fc8ae71a8ff58858f6800eeb3a3f25a56c143d18
[ "MIT" ]
7
2019-12-03T17:45:31.000Z
2021-04-21T15:46:41.000Z
ReplicatedFocusingBeliefPropagation/__init__.py
DanielLenz/rFBP
fc8ae71a8ff58858f6800eeb3a3f25a56c143d18
[ "MIT" ]
6
2020-09-28T06:57:23.000Z
2020-10-22T05:41:12.000Z
ReplicatedFocusingBeliefPropagation/__init__.py
DanielLenz/rFBP
fc8ae71a8ff58858f6800eeb3a3f25a56c143d18
[ "MIT" ]
1
2020-10-11T08:59:41.000Z
2020-10-11T08:59:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import warnings from .__version__ import __version__ from .rfbp.ReplicatedFocusingBeliefPropagation import ReplicatedFocusingBeliefPropagation from .rfbp.ReplicatedFocusingBeliefPropagation import NTH from .rfbp....
32.526316
89
0.75
5a658de230782c4aa58bd509c314f37539c46ef9
1,205
py
Python
Python Tutorial Machine Learning/Regression & Classification Models/Regression/polynomial_regression.py
PaulPan00/donkey_wrapper
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
6
2021-03-26T01:42:31.000Z
2021-04-11T16:17:42.000Z
Python Tutorial Machine Learning/Regression & Classification Models/Regression/polynomial_regression.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
null
null
null
Python Tutorial Machine Learning/Regression & Classification Models/Regression/polynomial_regression.py
packetsss/Python
a03cf0f42f65625fbce792b06c98acd153c5d6c8
[ "MIT" ]
7
2021-04-06T06:55:22.000Z
2021-05-03T11:26:38.000Z
# Polynomial Regression # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('C:\\Users\\pyjpa\\Desktop\\Programming\\Python\\Python Tutorial Machine Learning\\Classification practice\\Regression\\Data.csv') X = dataset.iloc[:, ...
35.441176
152
0.793361
f0a503380500bf6f9a0723da9c918307c114f307
19,220
py
Python
stream_alert/shared/alert.py
yutiansut/streamalert
7d198a3273781f66465420e90886a3ce53ec7559
[ "Apache-2.0" ]
7
2018-12-26T14:38:08.000Z
2022-03-09T13:21:00.000Z
stream_alert/shared/alert.py
revaniki/streamalert
7d198a3273781f66465420e90886a3ce53ec7559
[ "Apache-2.0" ]
14
2018-05-09T19:18:15.000Z
2021-06-02T02:34:09.000Z
stream_alert/shared/alert.py
revaniki/streamalert
7d198a3273781f66465420e90886a3ce53ec7559
[ "Apache-2.0" ]
1
2018-12-06T20:51:58.000Z
2018-12-06T20:51:58.000Z
""" Copyright 2017-present, Airbnb Inc. 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 in writing, sof...
44.285714
100
0.611967
56a60df0077363570476e109188bc491f1ca4c0b
125,883
py
Python
Lib/test/test_unicode.py
mystor/garter
be79188d67923ca18c97f4d3cfcfdf89d18b4057
[ "PSF-2.0" ]
null
null
null
Lib/test/test_unicode.py
mystor/garter
be79188d67923ca18c97f4d3cfcfdf89d18b4057
[ "PSF-2.0" ]
null
null
null
Lib/test/test_unicode.py
mystor/garter
be79188d67923ca18c97f4d3cfcfdf89d18b4057
[ "PSF-2.0" ]
null
null
null
""" Test script for the Unicode implementation. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" import _string import codecs import itertools import operator import struct import sys import unittest import warnings from test import support, string_tests #...
45.67598
120
0.534814
1c9e80627dcbc5d071b22d58c6b3ce82a8c89ab0
5,889
py
Python
schedule.py
shigeta-technoface/public-jsp-cam
7e8678bd59527a30bf57246176e9859574f708a6
[ "Apache-2.0" ]
null
null
null
schedule.py
shigeta-technoface/public-jsp-cam
7e8678bd59527a30bf57246176e9859574f708a6
[ "Apache-2.0" ]
null
null
null
schedule.py
shigeta-technoface/public-jsp-cam
7e8678bd59527a30bf57246176e9859574f708a6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ @title A Python DEAP implementation of Genetic Algorithms with Cluster Averaging Method for Solving Job-Shop Scheduling Problems @see https://www.jstage.jst.go.jp/article/jjsai/10/5/10_769/_article/-char/ja/ @see https://www.personal-media.co.jp/book/comp/173/ @author Shigeta Yosuke @email shigeta@t...
29.592965
128
0.677874
2928d6d992b382e11df5d10aed937216d9a4891d
1,067
py
Python
selenimm interesr.py
wladulis/python
98269b37b21c5a4d2c3f3ada88c598f95eb90f4f
[ "Apache-2.0" ]
null
null
null
selenimm interesr.py
wladulis/python
98269b37b21c5a4d2c3f3ada88c598f95eb90f4f
[ "Apache-2.0" ]
null
null
null
selenimm interesr.py
wladulis/python
98269b37b21c5a4d2c3f3ada88c598f95eb90f4f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from selenium.webdriver.firefox.webdriver import WebDriver from selenium.webdriver.common.action_chains import ActionChains import time, unittest def is_alert_present(wd): try: wd.switch_to_alert().text return True except: return False class selenimm interesr(un...
30.485714
90
0.646673
b92f6fd3ae70de7463c611738b27434b1bceabd5
3,109
py
Python
rationalizers/modules/gates.py
deep-spin/spectra-rationalization
ef2b411dd7d6b83f6582fb98dd06d4f517c0912b
[ "MIT" ]
8
2021-09-13T14:51:06.000Z
2022-03-18T13:24:05.000Z
rationalizers/modules/gates.py
deep-spin/spectra-rationalization
ef2b411dd7d6b83f6582fb98dd06d4f517c0912b
[ "MIT" ]
null
null
null
rationalizers/modules/gates.py
deep-spin/spectra-rationalization
ef2b411dd7d6b83f6582fb98dd06d4f517c0912b
[ "MIT" ]
null
null
null
"""Copied from https://github.com/bastings/interpretable_predictions""" import torch import torch.nn as nn from torch.distributions.bernoulli import Bernoulli from torch.distributions.relaxed_bernoulli import RelaxedBernoulli from torch.nn import Linear, Sequential, Softplus from rationalizers.modules.kuma import Kum...
28.522936
84
0.608556
bac7db18a178c0444cfa78d1e400f2c2ab98600d
986
py
Python
sugaroid/brain/waitwhat.py
Soul-Breaker/sugaroid
05a59eb74ad8636ba7c158ab58c9b2782849a5ac
[ "MIT" ]
null
null
null
sugaroid/brain/waitwhat.py
Soul-Breaker/sugaroid
05a59eb74ad8636ba7c158ab58c9b2782849a5ac
[ "MIT" ]
null
null
null
sugaroid/brain/waitwhat.py
Soul-Breaker/sugaroid
05a59eb74ad8636ba7c158ab58c9b2782849a5ac
[ "MIT" ]
null
null
null
from chatterbot.logic import LogicAdapter from sugaroid.brain.ooo import Emotion from sugaroid.sugaroid import SugaroidStatement class WaitWhatAdapter(LogicAdapter): """ Handles statements that ask for a re-clarification. Compare WhatWhatAdapter """ def __init__(self, chatbot, **kwargs): supe...
34
83
0.686613
e9b729da41041bbc59e942dc28508784c797d666
7,232
py
Python
venv/Lib/site-packages/gym/envs/toy_text/taxi.py
RealBrandonChen/AirSim
c43b1e821454668e5c9f7181acd8f9334b83f7c0
[ "MIT" ]
null
null
null
venv/Lib/site-packages/gym/envs/toy_text/taxi.py
RealBrandonChen/AirSim
c43b1e821454668e5c9f7181acd8f9334b83f7c0
[ "MIT" ]
null
null
null
venv/Lib/site-packages/gym/envs/toy_text/taxi.py
RealBrandonChen/AirSim
c43b1e821454668e5c9f7181acd8f9334b83f7c0
[ "MIT" ]
null
null
null
import sys from contextlib import closing from io import StringIO from gym import utils from gym.envs.toy_text import discrete import numpy as np MAP = [ "+---------+", "|R: | : :G|", "| : | : : |", "| : : : : |", "| | : | : |", "|Y| : |B: |", "+---------+", ] class TaxiEnv(discrete.Discr...
36.525253
456
0.482439
c2c13dd46a699d262d613a09feddc7cbd6846840
26,334
py
Python
btk20_src/lib/mkBeamforming.py
musiclvme/distant_speech_recognition
60f867383488ac45c2fa3a5433736fdf00dd4f1d
[ "MIT" ]
136
2018-12-06T06:35:44.000Z
2022-03-27T15:07:42.000Z
btk20_src/lib/mkBeamforming.py
musiclvme/distant_speech_recognition
60f867383488ac45c2fa3a5433736fdf00dd4f1d
[ "MIT" ]
25
2018-12-03T04:33:24.000Z
2021-07-28T22:01:37.000Z
btk20_src/lib/mkBeamforming.py
musiclvme/distant_speech_recognition
60f867383488ac45c2fa3a5433736fdf00dd4f1d
[ "MIT" ]
68
2019-01-08T06:33:30.000Z
2021-11-17T09:33:10.000Z
import sys import string import numpy from numpy import * import os.path import pickle import re from types import FloatType import getopt, sys import copy import gzip from btk.common import * from btk.stream import * from btk.feature import * from btk.matrix import * from btk.utils import * #from pygsl import * from...
39.9
156
0.57853
8920d3cfca812fab8c14ab86d91d346ec38f6bc9
5,454
py
Python
insights/parsers/tests/test_hammer_ping.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/parsers/tests/test_hammer_ping.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/parsers/tests/test_hammer_ping.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
from insights.parsers.hammer_ping import HammerPing from insights.tests import context_wrap HAMMERPING_ERR_1 = """ Error: Connection refused - connect(2) for "localhost" port 443 """ HAMMERPING_ERR_2 = """ Could not load the API description from the server - is the server down? - was 'foreman-rake apipie:cache' run...
27.685279
137
0.680051
fdca6cfa048e39daae7a6999a73a9a8971e5a6e0
337
py
Python
pythonforandroid/recipes/spine/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
2
2017-10-14T17:17:27.000Z
2019-09-19T22:50:24.000Z
pythonforandroid/recipes/spine/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
2
2018-12-18T14:30:11.000Z
2021-06-21T20:15:47.000Z
pythonforandroid/recipes/spine/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
1
2019-12-08T21:00:49.000Z
2019-12-08T21:00:49.000Z
from pythonforandroid.toolchain import CythonRecipe class SpineCython(CythonRecipe): version = '0.5.1' url = 'https://github.com/tileworks/spine-cython/archive/{version}.zip' name = 'spine' depends = ['setuptools'] site_packages_name = 'spine' call_hostpython_via_targetpython = False recipe...
22.466667
75
0.718101
5d276404a7dee4386882fe847e4964eaca1a0245
103
py
Python
regym/rl_algorithms/expert_iteration/__init__.py
Danielhp95/Regym
f0f0be0ad23bf1a3410ecd9ed9b8025947d6080a
[ "MIT" ]
6
2019-12-03T21:07:12.000Z
2021-03-25T13:09:39.000Z
regym/rl_algorithms/expert_iteration/__init__.py
Danielhp95/Generalized-RL-Self-Play-Framework
64e02e143070ca6eb8bc8f898c431f59cd229341
[ "MIT" ]
1
2019-01-29T18:43:32.000Z
2019-01-31T17:31:39.000Z
regym/rl_algorithms/expert_iteration/__init__.py
Danielhp95/Regym
f0f0be0ad23bf1a3410ecd9ed9b8025947d6080a
[ "MIT" ]
4
2019-08-01T10:29:41.000Z
2021-12-06T21:44:30.000Z
from .expert_iteration import ExpertIterationAlgorithm from .expert_iteration_loss import compute_loss
34.333333
54
0.902913
4bd624f706c5efca77e584efbe89e1a3c0aad1a9
5,200
py
Python
unconditional_generation/onmt/encoders/lm_transformer.py
shizhediao/TILGAN
6115cc191a9f3cb39abc466a5da57b7c8cce5202
[ "MIT" ]
11
2021-05-30T01:32:50.000Z
2022-03-24T08:34:27.000Z
unconditional_generation/onmt/encoders/lm_transformer.py
shizhediao/TILGAN
6115cc191a9f3cb39abc466a5da57b7c8cce5202
[ "MIT" ]
1
2021-08-01T14:19:57.000Z
2021-09-13T15:41:52.000Z
unconditional_generation/onmt/encoders/lm_transformer.py
shizhediao/TILGAN
6115cc191a9f3cb39abc466a5da57b7c8cce5202
[ "MIT" ]
2
2021-09-17T14:20:12.000Z
2022-01-18T07:53:22.000Z
""" Implementation of "Attention is All You Need" """ import torch import torch.nn as nn from onmt.encoders.encoder import EncoderBase from onmt.modules.multi_headed_attn import MultiHeadedAttention from onmt.modules.position_ffn import PositionwiseFeedForward from onmt.utils.misc import sequence_mask class Transform...
34.666667
75
0.628269
dd1330653e07886c853be32d4ac8c4c5f9fbeae9
47,231
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/crypto/entrust/ecs_certificate.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/crypto/entrust/ecs_certificate.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/crypto/entrust/ecs_certificate.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c), Entrust Datacard Corporation, 2019 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1....
49.560336
160
0.642735
0a41298d12e61f360037d73cab342554bca147db
1,629
py
Python
rllib/agents/dqn/__init__.py
ZhianLin/ray
4a6d8dc2d028b5b07a02cc69836a157cfebd8e4c
[ "Apache-2.0" ]
null
null
null
rllib/agents/dqn/__init__.py
ZhianLin/ray
4a6d8dc2d028b5b07a02cc69836a157cfebd8e4c
[ "Apache-2.0" ]
null
null
null
rllib/agents/dqn/__init__.py
ZhianLin/ray
4a6d8dc2d028b5b07a02cc69836a157cfebd8e4c
[ "Apache-2.0" ]
null
null
null
import ray.rllib.agents.dqn.apex as apex # noqa import ray.rllib.agents.dqn.simple_q as simple_q # noqa from ray.rllib.algorithms.apex_dqn.apex_dqn import ( ApexDQNConfig, ApexDQN as ApexTrainer, APEX_DEFAULT_CONFIG, ) from ray.rllib.algorithms.dqn.dqn import DQNConfig, DQN as DQNTrainer, DEFAULT_CONFIG f...
29.618182
85
0.761817
987a365e034ae0c8bda0b28ee7a4e14831432583
762
py
Python
blosm/urls.py
blosm-org/blosm-core
178adf01c1498d3b207b9fb6f832fc300122ccb6
[ "MIT" ]
1
2017-10-09T18:08:06.000Z
2017-10-09T18:08:06.000Z
blosm/urls.py
blosm-org/blosm-core
178adf01c1498d3b207b9fb6f832fc300122ccb6
[ "MIT" ]
null
null
null
blosm/urls.py
blosm-org/blosm-core
178adf01c1498d3b207b9fb6f832fc300122ccb6
[ "MIT" ]
null
null
null
"""blosm URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
34.636364
79
0.703412
70527dddf0a707ab10a34f995f86ccc07e1ae5bf
3,697
py
Python
tenant_workspace/management/commands/send_doc_ready_email.py
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
1
2020-07-16T10:58:23.000Z
2020-07-16T10:58:23.000Z
tenant_workspace/management/commands/send_doc_ready_email.py
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
13
2018-11-30T02:29:39.000Z
2022-03-11T23:35:49.000Z
tenant_workspace/management/commands/send_doc_ready_email.py
smegurus/smegurus-django
053973b5ff0b997c52bfaca8daf8e07db64a877c
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import urllib3 # Third Party Library from django.conf import settings from django.core.management.base import BaseCommand, CommandError from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from django.core.management import call_command...
37.343434
89
0.69056
879d5dc7f2f64304412b2b9c75cc7ac7ad6c3e74
851
py
Python
viscous/set_style.py
dionhaefner/viscous
6375bcc5fc00d2c29f1e49261e92d2b1ff8b25af
[ "BSD-2-Clause" ]
null
null
null
viscous/set_style.py
dionhaefner/viscous
6375bcc5fc00d2c29f1e49261e92d2b1ff8b25af
[ "BSD-2-Clause" ]
null
null
null
viscous/set_style.py
dionhaefner/viscous
6375bcc5fc00d2c29f1e49261e92d2b1ff8b25af
[ "BSD-2-Clause" ]
null
null
null
import re import os from viscous import mpl STYLE_PATH = os.path.join(os.path.dirname(__file__), "plotting/styles/") STYLE_NAME = "v{}.mplstyle" _DEFAULT_RC = None def set_style(*styles): if not hasattr(styles, '__iter__'): styles = (styles,) available_styles = [re.match(STYLE_NAME.format("(\\w+)"),...
32.730769
115
0.676851
9f2caeb0f52e4e581d33e83212b89e0b1dfcb279
3,884
py
Python
Image Analysis.indigoPlugin/Contents/Server Plugin/botocore/__init__.py
mlamoure/Indigo-Image-Analysis
75fd4c4243e5abb94a37c506bef94a4a3f110703
[ "MIT" ]
null
null
null
Image Analysis.indigoPlugin/Contents/Server Plugin/botocore/__init__.py
mlamoure/Indigo-Image-Analysis
75fd4c4243e5abb94a37c506bef94a4a3f110703
[ "MIT" ]
1
2019-06-08T13:56:38.000Z
2019-06-08T13:56:38.000Z
Image Analysis.indigoPlugin/Contents/Server Plugin/botocore/__init__.py
mlamoure/Indigo-Image-Analysis
75fd4c4243e5abb94a37c506bef94a4a3f110703
[ "MIT" ]
null
null
null
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/ # Copyright 2012-2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http...
36.990476
78
0.689753
5d7c9a10f72c31c965107e42028a56dc58a2cfea
19,329
py
Python
lime/lime_text.py
jamesmyatt/ds-lime
2884c5c21605aaa762455fd69b64ee0aa22a17c8
[ "BSD-2-Clause" ]
23
2019-05-28T10:30:28.000Z
2020-09-25T10:26:54.000Z
lime/lime_text.py
jamesmyatt/ds-lime
2884c5c21605aaa762455fd69b64ee0aa22a17c8
[ "BSD-2-Clause" ]
null
null
null
lime/lime_text.py
jamesmyatt/ds-lime
2884c5c21605aaa762455fd69b64ee0aa22a17c8
[ "BSD-2-Clause" ]
10
2019-05-28T14:46:47.000Z
2020-06-05T16:34:53.000Z
""" Functions for explaining text classifiers. """ from __future__ import unicode_literals from functools import partial import itertools import json import re import numpy as np import scipy as sp import sklearn from sklearn.utils import check_random_state from . import explanation from . import lime_base class T...
41.125532
100
0.584976
1faf973edd35e216b2e21cd04be3125aa131e416
3,908
py
Python
cc_lib/_util/__init__.py
franzmueller/client-connector-lib
529f3a0d7ae09591c1767137e6e50843a3566231
[ "Apache-2.0" ]
1
2018-12-20T13:01:11.000Z
2018-12-20T13:01:11.000Z
cc_lib/_util/__init__.py
franzmueller/client-connector-lib
529f3a0d7ae09591c1767137e6e50843a3566231
[ "Apache-2.0" ]
null
null
null
cc_lib/_util/__init__.py
franzmueller/client-connector-lib
529f3a0d7ae09591c1767137e6e50843a3566231
[ "Apache-2.0" ]
2
2020-05-06T17:09:32.000Z
2020-10-29T11:02:32.000Z
""" Copyright 2019 InfAI (CC SES) 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 in...
33.401709
133
0.654811
80932cd2b6810962aced048bd06ec56273c08fac
26,850
py
Python
adanet/core/ensemble.py
xhlulu/adanet
f91eef02ce8d64f3f38e639a57c3534bdc533b3f
[ "Apache-2.0" ]
1
2018-11-02T04:57:02.000Z
2018-11-02T04:57:02.000Z
adanet/core/ensemble.py
oz99999/adanet
69354c4e961defca790a1ce0e042251dfbe4f410
[ "Apache-2.0" ]
null
null
null
adanet/core/ensemble.py
oz99999/adanet
69354c4e961defca790a1ce0e042251dfbe4f410
[ "Apache-2.0" ]
1
2021-12-14T08:18:17.000Z
2021-12-14T08:18:17.000Z
"""An AdaNet ensemble definition in Tensorflow using a single graph. Copyright 2018 The AdaNet 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 https://www.apache....
41.371341
80
0.66797
ed0f4ec3a7090fc0978b0a1f972b186996476761
24,888
py
Python
core/graph/graph_manager.py
Flipajs/FERDA
120a9e16d7ab4877f72fadbe4484c8b91adf22c4
[ "MIT" ]
1
2021-04-23T10:00:49.000Z
2021-04-23T10:00:49.000Z
core/graph/graph_manager.py
Flipajs/FERDA
120a9e16d7ab4877f72fadbe4484c8b91adf22c4
[ "MIT" ]
null
null
null
core/graph/graph_manager.py
Flipajs/FERDA
120a9e16d7ab4877f72fadbe4484c8b91adf22c4
[ "MIT" ]
null
null
null
import graph_tool from core.log import LogCategories, ActionNames import numpy as np from core.region.fitting_logger import FittingLogger from os.path import join import jsonpickle import utils.load_jsonpickle # do not remove, this sets up jsonpickle import numbers class GraphManager(object): """ GraphManage...
32.833773
157
0.576543
92707e4cb09c76a75ab3bee79adfa1eb36f33d2f
88
py
Python
apps/auth/admin.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
2
2020-06-16T01:52:47.000Z
2021-03-24T08:34:23.000Z
apps/auth/admin.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
2
2020-02-12T03:09:54.000Z
2020-06-05T22:47:17.000Z
apps/auth/admin.py
dlooto/driver-vision
676256891971df1d5eee990be54fb31f485d0ae3
[ "MIT" ]
null
null
null
#coding=utf-8 # # Created on May 19, 2014, by Junn # from django.contrib import admin
11
34
0.704545
e237f668a5cbfd7972cf0acd699a0d3bfd5106ca
2,425
py
Python
viper.py
Thomas-Hirsch/airflow-dags
37b1e9a44dbfd508c1f6b86c712d699bfdff4ca2
[ "Apache-2.0" ]
null
null
null
viper.py
Thomas-Hirsch/airflow-dags
37b1e9a44dbfd508c1f6b86c712d699bfdff4ca2
[ "Apache-2.0" ]
null
null
null
viper.py
Thomas-Hirsch/airflow-dags
37b1e9a44dbfd508c1f6b86c712d699bfdff4ca2
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta import airflow from airflow import DAG from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator # Task arguments task_args = { "depends_on_past": False, "email_on_failure": True, # "retries": 3, # "retry_delay": timedelta(seconds=30), ...
28.869048
86
0.524948
7ed979f9cd8157716522267ead58772edbafc839
4,089
py
Python
tests/unit/core/test_domain.py
mascheck/hcloud-python
ffbfd32418c191676ce7f03a5e384bb123eb904a
[ "MIT" ]
2
2020-12-11T18:09:44.000Z
2020-12-12T05:53:22.000Z
tests/unit/core/test_domain.py
mascheck/hcloud-python
ffbfd32418c191676ce7f03a5e384bb123eb904a
[ "MIT" ]
null
null
null
tests/unit/core/test_domain.py
mascheck/hcloud-python
ffbfd32418c191676ce7f03a5e384bb123eb904a
[ "MIT" ]
null
null
null
import pytest from dateutil.parser import isoparse from hcloud.core.domain import BaseDomain, DomainIdentityMixin, Meta, Pagination, add_meta_to_result class TestMeta(object): @pytest.mark.parametrize("json_content", [None, "", {}]) def test_parse_meta_empty_json(self, json_content): result = Meta.p...
32.452381
118
0.550012
469dba80719baa6eb4c7e5c8767f37a62ba03ed7
1,340
py
Python
OpenAttack/data/__init__.py
zangy17/OpenAttack
9114a8af12680f14684d2bf1bc6a5c5e34f8932c
[ "MIT" ]
10
2021-12-01T15:35:05.000Z
2022-03-16T16:10:24.000Z
OpenAttack/data/__init__.py
zangy17/OpenAttack
9114a8af12680f14684d2bf1bc6a5c5e34f8932c
[ "MIT" ]
null
null
null
OpenAttack/data/__init__.py
zangy17/OpenAttack
9114a8af12680f14684d2bf1bc6a5c5e34f8932c
[ "MIT" ]
1
2020-09-01T11:14:42.000Z
2020-09-01T11:14:42.000Z
import pkgutil import pickle import urllib from ..exceptions import DataConfigErrorException def load_data(): def pickle_loader(path): return pickle.load(open(path, "rb")) def url_downloader(url): def DOWNLOAD(path): with urllib.request.urlopen(url) as f: open(path...
29.130435
83
0.547761
44807a707cd9fbd7d964a1d24659b3c6e159ae21
6,465
py
Python
pumps/glPdf/glPDF.py
jSebastianAR/revego
aca8c44c197e2797b4189780068390c9fb76fc16
[ "Apache-2.0" ]
1
2021-04-12T14:06:00.000Z
2021-04-12T14:06:00.000Z
pumps/glPdf/glPDF.py
jSebastianAR/revego
aca8c44c197e2797b4189780068390c9fb76fc16
[ "Apache-2.0" ]
null
null
null
pumps/glPdf/glPDF.py
jSebastianAR/revego
aca8c44c197e2797b4189780068390c9fb76fc16
[ "Apache-2.0" ]
null
null
null
from reportlab.lib.styles import ParagraphStyle as PS from reportlab.platypus import PageBreak from reportlab.platypus.paragraph import Paragraph from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate from reportlab.platypus.tableofcontents import TableOfContents from reportlab.platypus.frames i...
33.848168
206
0.630472
7d5fc60e36988e759840c6dca013996f6f383cc0
3,058
py
Python
mimesis/providers/binaryfile.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
mimesis/providers/binaryfile.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
mimesis/providers/binaryfile.py
DevAerial/mimesis
33c58ae43e2f6ebc11e5ea7ebe8ac8917b2e1c0b
[ "MIT" ]
null
null
null
"""Binary data provider.""" import typing as t from pathlib import Path from mimesis.enums import ( AudioFile, CompressedFile, DocumentFile, ImageFile, VideoFile, ) from mimesis.providers.base import BaseProvider __all__ = ["BinaryFile"] class BinaryFile(BaseProvider): """Class for generati...
29.980392
85
0.623937
f172aca853e15c56ad657e36ce46395be5fd9cd5
4,392
py
Python
Modules/main.py
szieleniewski/CUBEGEN
b3b4c160eebe53fa8bbd8a95390c3f755291586d
[ "BSD-3-Clause" ]
null
null
null
Modules/main.py
szieleniewski/CUBEGEN
b3b4c160eebe53fa8bbd8a95390c3f755291586d
[ "BSD-3-Clause" ]
null
null
null
Modules/main.py
szieleniewski/CUBEGEN
b3b4c160eebe53fa8bbd8a95390c3f755291586d
[ "BSD-3-Clause" ]
1
2019-04-10T10:11:59.000Z
2019-04-10T10:11:59.000Z
'''Main code for generating input data cubes for HSIM pipeline. Author: Simon Zieleniewski & Nicholas Zieleniewski Last updated: 06-10-16 ''' import numpy as np import astropy.io.fits as pf import time as time import wx import sys import pprint as pp #Import custom modules import header_format as hf import datacub...
38.191304
125
0.635246
e095eea207cd3578a9896a8c59e2133717a8c55f
17,810
py
Python
log_mito_bcl2/model_182.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_bcl2/model_182.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_bcl2/model_182.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
92.279793
798
0.801011
28dc5b37a3dc32a59acedd77e7fa61e3cd3cdc7c
1,155
py
Python
Orderphobic/two_intruders/analyse_from_video.py
JamesDownsLab/Experiments
e1004b5f5d5e8a71471e2b3814088c08e1d03ee3
[ "MIT" ]
null
null
null
Orderphobic/two_intruders/analyse_from_video.py
JamesDownsLab/Experiments
e1004b5f5d5e8a71471e2b3814088c08e1d03ee3
[ "MIT" ]
null
null
null
Orderphobic/two_intruders/analyse_from_video.py
JamesDownsLab/Experiments
e1004b5f5d5e8a71471e2b3814088c08e1d03ee3
[ "MIT" ]
null
null
null
from labvision import video, images from scipy import ndimage liquid_file = "/media/data/Data/Orderphobic/TwoIntruders/SpikyIntruder/Logging/080121_liquid_580/out.mp4" solid_file = "/media/data/Data/Orderphobic/TwoIntruders/SpikyIntruder/Logging/060121_solid_600_more_balls/out.mp4" liquid = video.ReadVideo(liquid_fi...
26.25
114
0.760173
bb6330baab86dc9763aebcab474c417cc97b241e
2,984
py
Python
test_src/Pages/RegPage.py
BJanos87/Vizsgaremek-conduit-app
1ffb309389b0cbe68aca56bfde50ba8b17219d03
[ "MIT" ]
null
null
null
test_src/Pages/RegPage.py
BJanos87/Vizsgaremek-conduit-app
1ffb309389b0cbe68aca56bfde50ba8b17219d03
[ "MIT" ]
null
null
null
test_src/Pages/RegPage.py
BJanos87/Vizsgaremek-conduit-app
1ffb309389b0cbe68aca56bfde50ba8b17219d03
[ "MIT" ]
null
null
null
from test_src.Pages.base_commands import BaseCommands from test_src.Data.test_data import RegPgWebElements from test_src.Data.test_data import TestData class RegPage(BaseCommands): """constructor of the page class""" def __init__(self, driver): super().__init__(driver) """Page Actions for Regist...
40.876712
129
0.754021
a24a3ca4d7875a19f53f6f8dc821baa771cdaa7f
14,575
py
Python
autofit/non_linear/mcmc/zeus.py
jonathanfrawley/PyAutoFit
818384a6eb3926b18247e16efcf0db6008193bd4
[ "MIT" ]
null
null
null
autofit/non_linear/mcmc/zeus.py
jonathanfrawley/PyAutoFit
818384a6eb3926b18247e16efcf0db6008193bd4
[ "MIT" ]
null
null
null
autofit/non_linear/mcmc/zeus.py
jonathanfrawley/PyAutoFit
818384a6eb3926b18247e16efcf0db6008193bd4
[ "MIT" ]
null
null
null
from os import path from typing import List, Optional from sqlalchemy.orm import Session import zeus import numpy as np from autoconf import conf from autofit import exc from autofit.mapper.model_mapper import ModelMapper from autofit.mapper.prior_model.abstract import AbstractPriorModel from autofit.non_l...
36.712846
141
0.616055
6e76490863187c60bd426eaa396f2bc8d5e18603
7,163
py
Python
week1/search.py
HuanfengMa/search_with_machine_learning_course
a257d030069f02b3c3f41d20cbf12bc5aa1bb601
[ "Apache-2.0" ]
null
null
null
week1/search.py
HuanfengMa/search_with_machine_learning_course
a257d030069f02b3c3f41d20cbf12bc5aa1bb601
[ "Apache-2.0" ]
null
null
null
week1/search.py
HuanfengMa/search_with_machine_learning_course
a257d030069f02b3c3f41d20cbf12bc5aa1bb601
[ "Apache-2.0" ]
null
null
null
# # The main search hooks for the Search Flask application. # from flask import ( Blueprint, redirect, render_template, request, url_for ) from week1.opensearch import get_opensearch bp = Blueprint('search', __name__, url_prefix='/search') # Process the filters requested by the user and return a tuple that is a...
41.166667
206
0.510261
c3afce966bd1e94e0ff3cb9538e2ed32ccf00ebb
1,325
py
Python
seq2seq/data_loader.py
qhjqhj00/Quick-Seq2Seq
7be98e801d6eb3975860dbe6e4380d575d87dc7c
[ "Apache-2.0" ]
3
2019-08-28T16:32:02.000Z
2019-10-25T14:17:32.000Z
seq2seq/data_loader.py
qhjqhj00/Quick-Seq2Seq
7be98e801d6eb3975860dbe6e4380d575d87dc7c
[ "Apache-2.0" ]
null
null
null
seq2seq/data_loader.py
qhjqhj00/Quick-Seq2Seq
7be98e801d6eb3975860dbe6e4380d575d87dc7c
[ "Apache-2.0" ]
null
null
null
from seq2seq.data import SentenceSrc, Sentence, Seq2seqCorpus from typing import List import random from tqdm import tqdm def read_seq2seq_data(path): data = [] lines = [line.strip().split('\t') for line in open(path, encoding="utf-8")] src_tokenizer = None trg_tokenizer = None for line in tqdm(li...
34.868421
79
0.681509
51ae6850396d4d4874f37748bc91ce131122ae91
905
py
Python
staticfiles/__init__.py
zhimoe/mdict-py
7d2c64c35c8892ebca3e515a19c536cd860168af
[ "MIT" ]
6
2021-04-17T03:05:56.000Z
2022-02-22T16:35:16.000Z
staticfiles/__init__.py
zhimoe/mdict-py
7d2c64c35c8892ebca3e515a19c536cd860168af
[ "MIT" ]
null
null
null
staticfiles/__init__.py
zhimoe/mdict-py
7d2c64c35c8892ebca3e515a19c536cd860168af
[ "MIT" ]
2
2020-12-13T11:03:59.000Z
2021-12-16T06:46:27.000Z
import os from starlette.datastructures import Headers from starlette.responses import ( FileResponse, Response, ) from starlette.staticfiles import StaticFiles, NotModifiedResponse from starlette.types import Scope class CachedStaticFiles(StaticFiles): """ 重写静态文件服务 """ def file_response( ...
25.857143
86
0.654144
680786d7f8b252207cb1a7c27222463108a7a647
480
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractWhiteNightSite.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractWhiteNightSite.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractWhiteNightSite.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractWhiteNightSite(item): """ """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or 'preview' in item['title'].lower(): return None if 'What Came to Mind During My Third Time in Another World Was to for Now, Get Naked.' in item['tags']: return buildRelease...
43.636364
166
0.729167
718ce47633760d94f38c524145e41f4126e743b6
1,814
py
Python
tests/unit/test_attributeconventions.py
EricZLou/predictionserver
5f9d4a6711f9941f3c221ef1dccf57418dd17306
[ "MIT" ]
null
null
null
tests/unit/test_attributeconventions.py
EricZLou/predictionserver
5f9d4a6711f9941f3c221ef1dccf57418dd17306
[ "MIT" ]
null
null
null
tests/unit/test_attributeconventions.py
EricZLou/predictionserver
5f9d4a6711f9941f3c221ef1dccf57418dd17306
[ "MIT" ]
null
null
null
from predictionserver.futureconventions.attributeconventions import AttributeConventions, \ ATTRIBUTE_GRANULARITY_EXPLANATIONS, AttributeGranularity from predictionserver.futureconventions.typeconventions import Genus import pytest def test_granularity_inference(): ac = AttributeConventions() assert ac.at...
54.969697
135
0.830209
ea4fde06ede58745943b5e9a8817cc2168202fdd
6,072
py
Python
lib/python2.7/site-packages/openopt/solvers/CoinOr/ipopt_oo.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
5
2017-01-23T16:23:43.000Z
2022-01-20T16:14:06.000Z
lib/python2.7/site-packages/openopt/solvers/CoinOr/ipopt_oo.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
1
2015-04-24T06:46:25.000Z
2015-04-24T06:46:25.000Z
lib/python2.7/site-packages/openopt/solvers/CoinOr/ipopt_oo.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
8
2016-05-30T13:35:17.000Z
2021-06-15T22:24:29.000Z
from numpy import * import re from openopt.kernel.baseSolver import baseSolver from openopt.kernel.nonOptMisc import Vstack, Find, isspmatrix #import os try: import pyipopt pyipoptInstalled = True except: pyipoptInstalled = False class ipopt(baseSolver): __name__ = 'ipopt' __license__ = "CPL" ...
35.302326
217
0.488801
e711ef7efca70cad747642cd44cab10b94e9e975
1,785
py
Python
hotswap/openpy.py
frmdstryr/enaml-hotswap
a32e188db691d2437d52408aa8bac7d9951f48ea
[ "MIT" ]
237
2017-09-15T19:31:45.000Z
2022-03-17T04:22:20.000Z
hotswap/openpy.py
frmdstryr/enaml-hotswap
a32e188db691d2437d52408aa8bac7d9951f48ea
[ "MIT" ]
74
2017-09-06T20:16:41.000Z
2022-03-05T13:34:35.000Z
hotswap/openpy.py
frmdstryr/enaml-hotswap
a32e188db691d2437d52408aa8bac7d9951f48ea
[ "MIT" ]
22
2017-09-15T19:32:11.000Z
2022-03-17T18:33:39.000Z
import os import sys _PYCACHE = '__pycache__' _OPT = 'opt-' SOURCE_SUFFIXES = ['.py'] # _setup() adds .pyw as needed. # Code for going between .py files and cached .pyc files ---------------------- def source_from_cache(path): """Given the path to a .pyc. file, return the path to its .py file. The .pyc fil...
44.625
79
0.633613
042183cdf32419100228afdfaa32db00b62fb443
622
py
Python
var/spack/repos/builtin/packages/py-diskcache/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-diskcache/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-diskcache/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class PyDiskcache(PythonPackage): """Disk Cache -- Disk and file backed persistent cache.""" homepage = "http://...
36.588235
95
0.729904
85616fac07b2c18126be6c3872afe60e2f1b8e74
5,094
py
Python
tests/test_keybind.py
dnnr/herbstluftwm
3bed77ed53c11d0f07d591feb0ef29bb4e741b51
[ "BSD-2-Clause-FreeBSD" ]
1
2018-12-02T16:51:04.000Z
2018-12-02T16:51:04.000Z
tests/test_keybind.py
dnnr/herbstluftwm
3bed77ed53c11d0f07d591feb0ef29bb4e741b51
[ "BSD-2-Clause-FreeBSD" ]
8
2019-03-03T21:12:40.000Z
2019-05-05T13:30:19.000Z
tests/test_keybind.py
dnnr/herbstluftwm
3bed77ed53c11d0f07d591feb0ef29bb4e741b51
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import pytest import subprocess @pytest.mark.parametrize('sep', ['-', '+']) def test_list_keybinds(hlwm, sep): # single key, 1-word command: hlwm.call(f'keybind x quit') # 2 modifiers, 3-word command: hlwm.call(f'keybind Mod1{sep}Shift{sep}a resize left +5') keybinds = hlwm.call('list_keybinds') ...
30.872727
96
0.670004
fb01cbd01eee5fc8daecb271616a0d5bd771a242
26,408
py
Python
calour/plotting.py
pennyneve/calour
f255fa822d82bdbffa604e14126603c48b0daff4
[ "BSD-3-Clause" ]
null
null
null
calour/plotting.py
pennyneve/calour
f255fa822d82bdbffa604e14126603c48b0daff4
[ "BSD-3-Clause" ]
null
null
null
calour/plotting.py
pennyneve/calour
f255fa822d82bdbffa604e14126603c48b0daff4
[ "BSD-3-Clause" ]
null
null
null
''' other plotting functions (:mod:`calour.plotting`) ================================================= .. currentmodule:: calour.plotting Functions ^^^^^^^^^ .. autosummary:: :toctree: generated plot_hist plot_enrichment plot_diff_abundance_enrichment plot_stacked_bar plot_core_features plot_ab...
38.272464
167
0.637648
47c6c62936fb51f9c5b0f93ca90ff8fd407ef25f
993
py
Python
mlfromscratch/examples/decision_tree_classifier.py
Krishna00111/Machine-Learning-from-Scratch
5d6f5b1a2096acbb57a060385e471123b77b9a68
[ "MIT" ]
null
null
null
mlfromscratch/examples/decision_tree_classifier.py
Krishna00111/Machine-Learning-from-Scratch
5d6f5b1a2096acbb57a060385e471123b77b9a68
[ "MIT" ]
null
null
null
mlfromscratch/examples/decision_tree_classifier.py
Krishna00111/Machine-Learning-from-Scratch
5d6f5b1a2096acbb57a060385e471123b77b9a68
[ "MIT" ]
null
null
null
from __future__ import division, print_function import numpy as np from sklearn import datasets import matplotlib.pyplot as plt import sys import os # Import helper functions from mlfromscratch.utils import train_test_split, standardize, accuracy_score from mlfromscratch.utils import mean_squared_error, calcu...
26.131579
78
0.70292
8bc80e93b9280f55cb7d4b7cbe1aadcab29596c7
18,485
py
Python
dingtalk/python/alibabacloud_dingtalk/app_market_1_0/models.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
15
2020-08-27T04:10:26.000Z
2022-03-07T06:25:42.000Z
dingtalk/python/alibabacloud_dingtalk/app_market_1_0/models.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
1
2020-09-27T01:30:46.000Z
2021-12-29T09:15:34.000Z
dingtalk/python/alibabacloud_dingtalk/app_market_1_0/models.py
yndu13/dingtalk-sdk
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
[ "Apache-2.0" ]
5
2020-08-27T04:07:44.000Z
2021-12-03T02:55:20.000Z
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from Tea.model import TeaModel from typing import Dict class CreateAppGoodsServiceConversationHeaders(TeaModel): def __init__( self, common_headers: Dict[str, str] = None, x_acs_dingtalk_access_token: str = None,...
30.204248
84
0.583933
a9a21b9916a17e6ad5de1778785daddf6d884cd4
1,770
py
Python
setup.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
null
null
null
setup.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
null
null
null
setup.py
oursky/forgot_password
9afde8b9d39a2837676628f12c9b6f2c45da592a
[ "Apache-2.0" ]
null
null
null
import sys from os import path from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand README = path.abspath(path.join(path.dirname(__file__), 'README.md')) classifiers = [ 'License :: OSI Approved :: Apache Software License', 'Intended Audience :: Developers', ...
29.016393
69
0.60113
ce429d6983647f0abfa064f26faadc50f77af482
3,451
py
Python
algorithms_datastructures/dynamic_programming/questions/coin_changing/maximum_coin_change.py
vaishnavprachi98/technical-interviews
7e61aaf08774d67090f022bd288394ffce7c437d
[ "MIT" ]
65
2017-11-17T09:08:36.000Z
2021-12-25T03:20:06.000Z
algorithms_datastructures/dynamic_programming/questions/coin_changing/maximum_coin_change.py
vaishnavprachi98/technical-interviews
7e61aaf08774d67090f022bd288394ffce7c437d
[ "MIT" ]
null
null
null
algorithms_datastructures/dynamic_programming/questions/coin_changing/maximum_coin_change.py
vaishnavprachi98/technical-interviews
7e61aaf08774d67090f022bd288394ffce7c437d
[ "MIT" ]
14
2018-03-08T03:06:26.000Z
2021-09-14T13:50:53.000Z
""" @author: David Lei @since: 11/08/2017 @modified: Given a value and denomination of coins, what it the maximum number of unique ways to make up the value. Validate results with: https://prismoskills.appspot.com/lessons/Dynamic_Programming/Chapter_03_-_Max_ways_in_which_coins_can_make_a_sum.jsp Also can submit o...
21.434783
139
0.491452
3ef243c4e969c0d0a0a4d4461466871394752cfd
59,309
py
Python
telepot/__init__.py
doylecnn/telepot
5870f3f12cdd0cd74c511d174632851123ceaced
[ "MIT" ]
2
2021-01-08T20:27:30.000Z
2021-03-27T11:52:46.000Z
telepot/__init__.py
doylecnn/telepot
5870f3f12cdd0cd74c511d174632851123ceaced
[ "MIT" ]
null
null
null
telepot/__init__.py
doylecnn/telepot
5870f3f12cdd0cd74c511d174632851123ceaced
[ "MIT" ]
1
2021-03-27T11:37:46.000Z
2021-03-27T11:37:46.000Z
import sys import io import time import json import threading import traceback import collections import bisect try: import Queue as queue except ImportError: import queue # Patch urllib3 for sending unicode filename from . import hack from . import exception __version_info__ = (12, 7) __version__ = '.'.jo...
38.891148
131
0.565968
8369d9f34f22f193e28e8581886bca3235595cd6
11,892
py
Python
p2p/discv5/handshake.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
p2p/discv5/handshake.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
p2p/discv5/handshake.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
null
null
null
from typing import ( Optional, Type, ) import secrets from eth_utils import ( encode_hex, ValidationError, ) from eth_keys.datatypes import PublicKey from p2p.exceptions import ( DecryptionError, HandshakeFailure, ) from p2p.discv5.abc import HandshakeParticipantAPI from p2p.enr import ENR f...
35.287834
100
0.627901
3be0b7cb8270b5260c3429acada7bd159b7d9c9c
13,232
py
Python
chia/rpc/rpc_server.py
ogmor/chia-blockchain
e43278d20016c29c83528785eaab9dad7e94a7af
[ "Apache-2.0" ]
2
2021-08-15T01:20:03.000Z
2022-01-16T22:57:58.000Z
chia/rpc/rpc_server.py
ogmor/chia-blockchain
e43278d20016c29c83528785eaab9dad7e94a7af
[ "Apache-2.0" ]
28
2021-07-13T21:07:14.000Z
2022-03-29T21:10:38.000Z
chia/rpc/rpc_server.py
ogmor/chia-blockchain
e43278d20016c29c83528785eaab9dad7e94a7af
[ "Apache-2.0" ]
2
2021-05-18T15:33:58.000Z
2021-05-28T21:15:09.000Z
import asyncio import json import logging import traceback from pathlib import Path from typing import Any, Callable, Dict, List, Optional import aiohttp from chia.server.outbound_message import NodeType from chia.server.server import ssl_context_for_server from chia.types.peer_info import PeerInfo from chia.util.byt...
38.577259
118
0.576481
efa1287ddccb7ba3ec4560ccfaa3057bf01d0a8d
11,885
py
Python
piechartgrid.py
smartens83/piechartgrid
71a8a7ffebb4cbaa460d3fc456f79219801e2da4
[ "MIT" ]
1
2018-11-03T23:00:40.000Z
2018-11-03T23:00:40.000Z
piechartgrid.py
smartens83/piechartgrid
71a8a7ffebb4cbaa460d3fc456f79219801e2da4
[ "MIT" ]
null
null
null
piechartgrid.py
smartens83/piechartgrid
71a8a7ffebb4cbaa460d3fc456f79219801e2da4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys print('python: {}'.format(sys.version)) import numpy as np print('numpy: {}'.format(np.__version__)) import matplotlib print('matplotlib: {}'.format(matplotlib.__version__)) import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import pandas as pd print('pandas: {}'....
34.751462
151
0.687085
3cb7e0ba684a1739ebe8e42f0557a54b11ca59e4
6,910
py
Python
test/legacy_writer.py
pvanhauw/meshio
39b00269127a14f737c64844eab2a5f2718b8eac
[ "MIT" ]
1
2018-07-03T14:46:12.000Z
2018-07-03T14:46:12.000Z
test/legacy_writer.py
pvanhauw/meshio
39b00269127a14f737c64844eab2a5f2718b8eac
[ "MIT" ]
null
null
null
test/legacy_writer.py
pvanhauw/meshio
39b00269127a14f737c64844eab2a5f2718b8eac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import logging import numpy # https://www.vtk.org/doc/nightly/html/vtkCellType_8h_source.html vtk_to_meshio_type = { 0: "empty", 1: "vertex", # 2: 'poly_vertex', 3: "line", # 4: 'poly_line', 5: "triangle", # 6: 'triangle_strip', # 7: 'polygon', # 8: 'pixel'...
30.043478
83
0.621274
b6b24c1aab1cf2100a33ae30349c9b346693f214
328
py
Python
movie_rating/movies/urls.py
AnwarRezk/Graduation-Project-part-1
4ebfd3390e4a827744ea2dc15c61f6922841601d
[ "MIT" ]
null
null
null
movie_rating/movies/urls.py
AnwarRezk/Graduation-Project-part-1
4ebfd3390e4a827744ea2dc15c61f6922841601d
[ "MIT" ]
null
null
null
movie_rating/movies/urls.py
AnwarRezk/Graduation-Project-part-1
4ebfd3390e4a827744ea2dc15c61f6922841601d
[ "MIT" ]
1
2021-03-26T10:50:21.000Z
2021-03-26T10:50:21.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('movie/<int:pk>/', views.movie_details, name='movie-details'), path('search/', views.SearchView.as_view(), name='search'), path('search/results/', views.SearchResultsView.as_view(), name='search_res...
36.444444
85
0.685976
94337d221e69c4ecbd89853c5756f789eb30ca89
401
py
Python
apiai/requests/__init__.py
BohdanTkachenko/api-ai-python
e86812a3194e745162b097a7890632815ff860f2
[ "Apache-2.0" ]
null
null
null
apiai/requests/__init__.py
BohdanTkachenko/api-ai-python
e86812a3194e745162b097a7890632815ff860f2
[ "Apache-2.0" ]
null
null
null
apiai/requests/__init__.py
BohdanTkachenko/api-ai-python
e86812a3194e745162b097a7890632815ff860f2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .request import Request from .query import QueryRequest from .query import TextRequest from .query import VoiceRequest from .user_entities import UserEntitiesRequest """ apiai ~~~~~~~~~~~~~~~~ This module provides a ApiAI classes to manage requests. """ __all__ = [ 'Request', 'Q...
17.434783
56
0.688279
42d5036f94e31d9a7e8400c2575cb68b8c5a5549
4,627
py
Python
scripts/mango/relations/base.py
robertjoosten/maya-orm
9c5db622d5bbba63246ff1d3f0a22bd3f7140f6c
[ "MIT" ]
11
2020-11-14T14:37:49.000Z
2022-03-25T03:28:23.000Z
scripts/mango/relations/base.py
robertjoosten/maya-orm
9c5db622d5bbba63246ff1d3f0a22bd3f7140f6c
[ "MIT" ]
null
null
null
scripts/mango/relations/base.py
robertjoosten/maya-orm
9c5db622d5bbba63246ff1d3f0a22bd3f7140f6c
[ "MIT" ]
null
null
null
from mango import managers from mango.relations.constants import CASCADE from mango.utils import naming __all__ = [ "Relation", ] class Relation(object): """ The relationship class is the base descriptor that can be subclassed and used in the models. The descriptors have the possibility to link to o...
31.47619
81
0.559542
9f99d6261f7f845b81106a22602776aff62d52bb
1,282
py
Python
PYTHON/python-datastructures/algorithms/algorithms/dp/num_decodings.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
PYTHON/python-datastructures/algorithms/algorithms/dp/num_decodings.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
PYTHON/python-datastructures/algorithms/algorithms/dp/num_decodings.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
""" A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits, determine the total number of ways to decode it. For example, Given encoded message "12", it could be decoded as "AB" (1 2) or "L" (12). The n...
24.188679
80
0.51014
4289229d39733733ae56c3d178a621831c1b9054
3,835
py
Python
pygecko/library/js.py
DFEC-R2D2/r2d2
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
[ "MIT" ]
3
2017-08-02T04:46:17.000Z
2020-03-30T12:11:13.000Z
pygecko/library/js.py
DFEC-R2D2/r2d2
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
[ "MIT" ]
null
null
null
pygecko/library/js.py
DFEC-R2D2/r2d2
9b64233865ebfe9f0ca3f1b400b55cc8d6494adf
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from math import sqrt from collections import namedtuple try: import sdl2 except ImportError: print('You must install SLD2 library') print('pip install PySDL2') exit() class Trigger(object): x = 0 y = 0 def __init__(self, x, y): """ tr...
20.61828
109
0.648501
ee3f0524a96ea8a27017c93e5fe8ba0044c27a0d
5,750
py
Python
vk/groups.py
JarosLucky/py-vkontakte
896039437e7940f959ba2def548e3a3c84b8cc68
[ "MIT" ]
25
2017-03-15T20:06:44.000Z
2022-03-30T11:18:28.000Z
vk/groups.py
JarosLucky/py-vkontakte
896039437e7940f959ba2def548e3a3c84b8cc68
[ "MIT" ]
25
2017-03-16T12:19:58.000Z
2022-02-06T07:47:58.000Z
vk/groups.py
JarosLucky/py-vkontakte
896039437e7940f959ba2def548e3a3c84b8cc68
[ "MIT" ]
7
2018-06-25T20:12:40.000Z
2022-02-06T07:44:42.000Z
from .base import VKBase from .messages import Message from .photos import Photo from .users import User from .wall import Wall from .error import VKError class Group(VKBase): """ https://vk.com/dev/objects/group """ GROUP_FIELDS = ("id", "name", "screen_name", "is_closed", "deactivated", "type", "has...
40.780142
158
0.667304
b5d20cd2d199da5465fadfa36c7ff94c0bda75f4
711
py
Python
djAidESILV/products/migrations/0002_auto_20200522_1921.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/products/migrations/0002_auto_20200522_1921.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/products/migrations/0002_auto_20200522_1921.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-22 19:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AddField( model_name='product', name='baby_product', ...
29.625
186
0.590717
24cdaacfca5b62399aa46bd7e718c23d7816d7d8
4,180
py
Python
IMLearn/learners/classifiers/gaussian_naive_bayes.py
talBrau/IML.HUJI
a6f9b30b7d2f1b1a6b354b3e0f668e7ca4c5d20f
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/gaussian_naive_bayes.py
talBrau/IML.HUJI
a6f9b30b7d2f1b1a6b354b3e0f668e7ca4c5d20f
[ "MIT" ]
null
null
null
IMLearn/learners/classifiers/gaussian_naive_bayes.py
talBrau/IML.HUJI
a6f9b30b7d2f1b1a6b354b3e0f668e7ca4c5d20f
[ "MIT" ]
null
null
null
from typing import NoReturn from ...base import BaseEstimator import numpy as np class GaussianNaiveBayes(BaseEstimator): """ Gaussian Naive-Bayes classifier """ def __init__(self): """ Instantiate a Gaussian Naive Bayes classifier Attributes ---------- self.c...
32.913386
106
0.571053
2d1c3765e31fe6a711ca646699e8367e0436a84d
212
py
Python
rlbot/messages/flat/RespawnTimeOption.py
danielbairamian/RL-RL
4fc4ac14bd10088e83e7a15c3319370f74d0a756
[ "MIT" ]
3
2020-04-30T14:33:10.000Z
2021-10-11T00:12:35.000Z
rlbot/messages/flat/RespawnTimeOption.py
danielbairamian/RL-RL
4fc4ac14bd10088e83e7a15c3319370f74d0a756
[ "MIT" ]
null
null
null
rlbot/messages/flat/RespawnTimeOption.py
danielbairamian/RL-RL
4fc4ac14bd10088e83e7a15c3319370f74d0a756
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: flat class RespawnTimeOption(object): Three_Seconds = 0 Two_Seconds = 1 One_Seconds = 2 Disable_Goal_Reset = 3
19.272727
68
0.731132
cbd120f3f88fbb454b05609d2805ab9d18fc11b4
2,335
py
Python
tools/dev/license-headers.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
2
2020-01-20T19:46:28.000Z
2020-08-19T14:20:27.000Z
tools/dev/license-headers.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
79
2019-03-20T12:27:06.000Z
2019-08-14T14:07:04.000Z
tools/dev/license-headers.py
anastasiia-zolochevska/cloud-custodian
f25315a01bec808c16ab0e2d433d6151cf5769e4
[ "Apache-2.0" ]
3
2017-09-21T13:36:46.000Z
2021-09-20T16:38:29.000Z
# Copyright 2016-2018 Capital One Services, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
29.1875
74
0.66424
7394d152830fec7d37799d6b5e2e7a3cdd257eb7
3,722
py
Python
monopolymath/monopolyroller.py
tmcclintock/MonopolyMath
6ea072689475195faa0ac862e0559cf5f05b0190
[ "MIT" ]
null
null
null
monopolymath/monopolyroller.py
tmcclintock/MonopolyMath
6ea072689475195faa0ac862e0559cf5f05b0190
[ "MIT" ]
null
null
null
monopolymath/monopolyroller.py
tmcclintock/MonopolyMath
6ea072689475195faa0ac862e0559cf5f05b0190
[ "MIT" ]
null
null
null
""" The rules for moving a monopoly player via rolling. This allows for simulating the roll and action matrices. """ import numpy.random as rand class MonopolyRollMover(object): """ An object for moving monopoly players via rolling. Args: diceroller (:obj: DiceRoller): object for rolling dice ...
33.531532
71
0.501075
52b70df627cac2f3e2b4f315a3f5fdfe79dc4e92
1,308
py
Python
utils/stop_conditions.py
pmikolajczyk41/Discriminative-vs-Generative-classifiers
55757da28248539d79e041c56a6db10ed4b54f3c
[ "MIT" ]
null
null
null
utils/stop_conditions.py
pmikolajczyk41/Discriminative-vs-Generative-classifiers
55757da28248539d79e041c56a6db10ed4b54f3c
[ "MIT" ]
null
null
null
utils/stop_conditions.py
pmikolajczyk41/Discriminative-vs-Generative-classifiers
55757da28248539d79e041c56a6db10ed4b54f3c
[ "MIT" ]
null
null
null
import sys from itertools import cycle from operator import sub from typing import Optional, Tuple from utils.algebra import Vector class StopConditions: def __init__(self, gradient_eps: Optional[float], error_eps: Optional[float], iterations: Optional[int]): self._gradient_eps = gradient_eps or -1. ...
35.351351
115
0.680428
b59003a1c8fa2a1c0bf5b3fef1e2816afcae8e24
2,317
py
Python
pp/components/version_stamp.py
smartalecH/gdsfactory
66dfbf740704f1a6155f4812a1d9483ccf5c116c
[ "MIT" ]
16
2020-02-03T07:05:31.000Z
2021-12-29T18:40:09.000Z
pp/components/version_stamp.py
smartalecH/gdsfactory
66dfbf740704f1a6155f4812a1d9483ccf5c116c
[ "MIT" ]
2
2020-01-31T20:01:40.000Z
2020-09-26T17:50:55.000Z
pp/components/version_stamp.py
smartalecH/gdsfactory
66dfbf740704f1a6155f4812a1d9483ccf5c116c
[ "MIT" ]
7
2020-02-09T23:16:18.000Z
2020-10-30T03:12:04.000Z
import datetime import platform import pp from pp.layers import LAYER from pp.components.text import text as Text def Pixel(size=1.0, layer=LAYER.WG): c = pp.Component() a = size / 2 c.add_polygon([(a, a), (a, -a), (-a, -a), (-a, a)], layer) return c @pp.autoname def qrcode(data, psize=1, layer=LAYE...
23.17
80
0.554165
dd36ffc927856eec46791f85f225c9f8bfacee80
3,678
py
Python
util/camera.py
joov/movidius
dce7f5b23056c70c3c8a2d56d6b2aef65fb78ea7
[ "MIT" ]
null
null
null
util/camera.py
joov/movidius
dce7f5b23056c70c3c8a2d56d6b2aef65fb78ea7
[ "MIT" ]
null
null
null
util/camera.py
joov/movidius
dce7f5b23056c70c3c8a2d56d6b2aef65fb78ea7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Chen-Ting Chuang # # 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, di...
33.436364
80
0.675367
c646c396545f324ff7e79466666536068178303a
1,265
py
Python
nox/src/utilities/findtrailingcommas.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/utilities/findtrailingcommas.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/utilities/findtrailingcommas.py
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
#!/usr/bin/env python import os, re trail_newline_re = re.compile('(.*,\s*[\}\]])', re.M) slash_comment = re.compile('//.*$', re.M) comment = re.compile('/\*.*?\*/', re.S) regexps = re.compile(r'(?<!\\)/.*?(?<!\\)/', re.M) string1 = re.compile(r"(?<!\\)'.*?(?<!\\)'", re.M) string2 = re.compile(r'(?<!\\)".*?(?<!\\)"',...
28.111111
54
0.480632
87b0879f819953ede3dcfab12793dc62e9b04d20
1,357
py
Python
bot/experience.py
issuemeaname/proxymon
859846bc14fe8180c0cc3a096762e803f1071d10
[ "MIT" ]
2
2021-01-13T22:28:45.000Z
2021-05-14T11:55:23.000Z
bot/experience.py
issuemeaname/proxymon
859846bc14fe8180c0cc3a096762e803f1071d10
[ "MIT" ]
null
null
null
bot/experience.py
issuemeaname/proxymon
859846bc14fe8180c0cc3a096762e803f1071d10
[ "MIT" ]
null
null
null
from enum import Enum from math import floor class Equation(object): def default(level): return Equation.medium_fast(level) def erratic(level): if level <= 50: return level**3 * (100-level) / 50 elif level <= 68: return level**3 * (150-level) / 100 elif...
22.616667
57
0.575534
1bc952161bbc8a492c919ba0838e8646c61b1256
161
py
Python
file_changed_command_runner/__init__.py
AtakamaLLC/plugin-runcmd-on-file-change
58ae97a2c5f84284f6351a635f75825a7df44abc
[ "BSD-3-Clause" ]
null
null
null
file_changed_command_runner/__init__.py
AtakamaLLC/plugin-runcmd-on-file-change
58ae97a2c5f84284f6351a635f75825a7df44abc
[ "BSD-3-Clause" ]
null
null
null
file_changed_command_runner/__init__.py
AtakamaLLC/plugin-runcmd-on-file-change
58ae97a2c5f84284f6351a635f75825a7df44abc
[ "BSD-3-Clause" ]
null
null
null
"""Atakama plugin: runs a command every time a file is modified""" from .plugin import FileChangedCommandRunner __version__ = "1.0.0" ATAKAMA_SDK_VERSION = 1
20.125
66
0.763975
f255d34e4901824f46657cc46c0665c4f452af8b
3,243
py
Python
analysis/url_analysis.py
hpthreatresearch/subcrawl
37a50118a4d2e1003fdcacca339ca45d59d0c673
[ "MIT" ]
85
2021-08-04T20:01:44.000Z
2022-03-26T14:31:35.000Z
analysis/url_analysis.py
hpthreatresearch/subcrawl
37a50118a4d2e1003fdcacca339ca45d59d0c673
[ "MIT" ]
5
2022-03-10T15:50:26.000Z
2022-03-25T21:06:31.000Z
analysis/url_analysis.py
hpthreatresearch/subcrawl
37a50118a4d2e1003fdcacca339ca45d59d0c673
[ "MIT" ]
18
2021-08-13T01:35:26.000Z
2022-03-23T16:06:49.000Z
# © Copyright 2021 HP Development Company, L.P. from pymisp import ExpandedPyMISP, MISPEvent, MISPAttribute, MISPObject from requests.packages.urllib3.exceptions import InsecureRequestWarning import requests, logging import matplotlib.pyplot as plt requests.packages.urllib3.disable_warnings(InsecureRequestWarnin...
36.438202
98
0.649707
d70e0c23e850fd4f6c67dec8909dfb3099de6007
2,058
py
Python
game_state.py
KangLLL/GameDecisionMaking
cc03ad2dd41b2a329c0f7a2b20f0995236dc144a
[ "MIT" ]
null
null
null
game_state.py
KangLLL/GameDecisionMaking
cc03ad2dd41b2a329c0f7a2b20f0995236dc144a
[ "MIT" ]
null
null
null
game_state.py
KangLLL/GameDecisionMaking
cc03ad2dd41b2a329c0f7a2b20f0995236dc144a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys sys.path.append("..") sys.path.append("game") import numpy as np import wrapped_flappy_bird as env import random import time import cv2 class GameState(object): def __init__(self, action_size, rand_seed=0, is_show_score=False, frame_size=84): self.rand_seed = rand_seed ...
27.078947
99
0.623421
2bbd882f762017ff07d66daf144ec17da4d374bd
2,167
py
Python
adamax.py
harshraj11584/Paper-Implementation-Overview-Gradient-Descent-Optimization-Sebastian-Ruder
d94f9a9d3ffb3839f34a92db48230d0a4b7bac3b
[ "MIT" ]
20
2019-07-15T08:59:07.000Z
2021-12-15T15:49:41.000Z
adamax.py
harshraj11584/Paper-Implementation-Overview-Gradient-Descent-Optimization-Algorithms
d94f9a9d3ffb3839f34a92db48230d0a4b7bac3b
[ "MIT" ]
1
2019-03-29T06:55:02.000Z
2019-03-29T06:55:02.000Z
adamax.py
harshraj11584/Paper-Implementation-Overview-Gradient-Descent-Optimization-Algorithms
d94f9a9d3ffb3839f34a92db48230d0a4b7bac3b
[ "MIT" ]
7
2019-12-25T13:19:55.000Z
2022-01-12T08:24:35.000Z
import numpy as np import scipy as sc from sympy import * import sys sys.displayhook = pprint init_printing() print('\n\nInitial Setup Complete') def adamax(c_f, f): print "f(x) = ",c_f f_dash = diff(c_f,x) print "df(x)/dx = " , f_dash a = float(input("Enter initial approximation: ")) x0=a err = float(inp...
23.554348
70
0.641901
e1d28f51bbbadef4f974d5268f300c72008c924d
4,399
py
Python
topsim/core/instrument.py
top-sim/topsim
90cb3cff2612ced3d51f94fe852dc814dcca7730
[ "MIT" ]
2
2022-03-30T01:19:20.000Z
2022-03-30T02:53:51.000Z
topsim/core/instrument.py
firewood1996/topsim
90cb3cff2612ced3d51f94fe852dc814dcca7730
[ "MIT" ]
15
2020-10-21T08:35:12.000Z
2022-01-20T07:55:24.000Z
topsim/core/instrument.py
firewood1996/topsim
90cb3cff2612ced3d51f94fe852dc814dcca7730
[ "MIT" ]
1
2021-11-02T14:21:05.000Z
2021-11-02T14:21:05.000Z
# Copyright (C) 28/1/21 RW Bunney # 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 option) any later version. # This program is distributed in the...
29.722973
83
0.625597
cc56105a3310c63a621d8a530b846cbc116f34e9
1,232
py
Python
flask_appconfig/docker.py
edpaget/flask-appconfig
5264719ac9229339070b219a4358a3203ffd05b0
[ "MIT" ]
61
2015-01-28T21:19:11.000Z
2020-12-28T10:12:28.000Z
flask_appconfig/docker.py
edpaget/flask-appconfig
5264719ac9229339070b219a4358a3203ffd05b0
[ "MIT" ]
3
2016-01-25T00:09:55.000Z
2017-09-25T11:36:19.000Z
flask_appconfig/docker.py
edpaget/flask-appconfig
5264719ac9229339070b219a4358a3203ffd05b0
[ "MIT" ]
14
2015-07-22T12:58:06.000Z
2021-03-24T02:06:30.000Z
#!/usr/bin/env python import os from six.moves.urllib_parse import urlparse def from_docker_envvars(config): # linked postgres database (link name 'pg' or 'postgres') if 'PG_PORT' in os.environ: pg_url = urlparse(os.environ['PG_PORT']) if not pg_url.scheme == 'tcp': raise ValueEr...
31.589744
77
0.613636
4c6709406783ab527c826ffdde2750591748fb19
1,533
py
Python
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
36.5
76
0.598174
94f8dc43ce9ab1e5f76b88c5614e4a45c79bf759
10,927
py
Python
openmdao/approximation_schemes/finite_difference.py
bollwyvl/OpenMDAO
4d7a31b2bb39674e2be0d6a13cbe22de3f5353af
[ "Apache-2.0" ]
null
null
null
openmdao/approximation_schemes/finite_difference.py
bollwyvl/OpenMDAO
4d7a31b2bb39674e2be0d6a13cbe22de3f5353af
[ "Apache-2.0" ]
null
null
null
openmdao/approximation_schemes/finite_difference.py
bollwyvl/OpenMDAO
4d7a31b2bb39674e2be0d6a13cbe22de3f5353af
[ "Apache-2.0" ]
null
null
null
"""Finite difference derivative approximations.""" from __future__ import division, print_function from collections import namedtuple, defaultdict from six import iteritems from six.moves import range, zip import numpy as np from openmdao.approximation_schemes.approximation_scheme import ApproximationScheme, \ _...
33.829721
100
0.588725
e98380188c266697b63df0ca091da5df936c210e
3,255
py
Python
maintain_frontend/view_modify_land_charge/update_location_confirmation.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
maintain_frontend/view_modify_land_charge/update_location_confirmation.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
maintain_frontend/view_modify_land_charge/update_location_confirmation.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from flask import g, redirect, url_for, render_template, current_app, request from maintain_frontend.constants.permissions import Permissions from maintain_frontend.decorators import requires_permission from maintain_frontend.view_modify_land_charge.validation.location_confirmation_validator import \ LocationConfir...
43.986486
106
0.751767
8306bebeca3e866b51f089f8040ce89132d13601
7,933
py
Python
applications/admin/controllers/debug.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
1,573
2015-01-01T07:19:06.000Z
2022-03-30T09:06:06.000Z
applications/admin/controllers/debug.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
1,691
2015-01-03T11:03:23.000Z
2022-03-30T07:27:28.000Z
applications/admin/controllers/debug.py
jessicadelrio/HandyHouse
058e8981da850790c84f990fd2a3bbcf9aa695cc
[ "BSD-3-Clause" ]
895
2015-01-03T19:56:15.000Z
2022-03-18T18:30:57.000Z
import os import sys import gluon.dal import gluon.html import gluon.validators import code from gluon.debug import communicate, web_debugger, dbg_debugger from gluon._compat import thread from gluon.fileutils import open_file import pydoc if DEMO_MODE or MULTI_USER_MODE: session.flash = T('disabled in demo mode'...
33.331933
79
0.577839
133d602269d331902f017b3def4f0a57340b9e31
519
py
Python
demo/spawning/cpi-master.py
SX-Aurora/mpi4py-ve
aa6b1f97933196f8a485d5d808e89d5a29b58b1c
[ "BSD-2-Clause" ]
null
null
null
demo/spawning/cpi-master.py
SX-Aurora/mpi4py-ve
aa6b1f97933196f8a485d5d808e89d5a29b58b1c
[ "BSD-2-Clause" ]
null
null
null
demo/spawning/cpi-master.py
SX-Aurora/mpi4py-ve
aa6b1f97933196f8a485d5d808e89d5a29b58b1c
[ "BSD-2-Clause" ]
null
null
null
from mpi4pyve import MPI from array import array from math import pi as PI from sys import argv cmd = './cpi-worker-py.exe' if len(argv) > 1: cmd = argv[1] print("%s -> %s" % (argv[0], cmd)) worker = MPI.COMM_SELF.Spawn(cmd, None, 5) n = array('i', [100]) worker.Bcast([n,MPI.INT], root=MPI.ROOT) pi = array('d', [0...
21.625
51
0.608863
35e8ea0f7ef6135626e70192922a4d69a9a3c045
18,883
py
Python
tests/components/wled/test_light.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
tests/components/wled/test_light.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
tests/components/wled/test_light.py
SmarthomeNinja/core
f4b8a95205ea7d4126fc5e704da532cd8eed937e
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Tests for the WLED light platform.""" import json from wled import Device as WLEDDevice, WLEDConnectionError from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_EFFECT, ATTR_HS_COLOR, ATTR_RGB_COLOR, ATTR_TRANSITION, ATTR_WHITE_VALUE, DOMAIN as LIGHT_...
34.458029
85
0.646507
36d273f2f1a055106494e5e4d4ba73461ac82193
6,789
py
Python
test/component_builders_publish_test.py
hstavinvestsro/swtoolkit
6765fd5707554591b6b5ac2151c7f03f3670347f
[ "BSD-3-Clause" ]
1
2016-03-03T22:39:18.000Z
2016-03-03T22:39:18.000Z
test/component_builders_publish_test.py
hstavinvestsro/swtoolkit
6765fd5707554591b6b5ac2151c7f03f3670347f
[ "BSD-3-Clause" ]
null
null
null
test/component_builders_publish_test.py
hstavinvestsro/swtoolkit
6765fd5707554591b6b5ac2151c7f03f3670347f
[ "BSD-3-Clause" ]
1
2020-02-29T04:46:21.000Z
2020-02-29T04:46:21.000Z
#!/usr/bin/python2.4 # Copyright 2009, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
31.576744
79
0.68994
a1d9a81088672276fe522c6fdd1ff8f12c313b43
19,826
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1
2021-09-16T02:33:52.000Z
2021-09-16T02:33:52.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2
2021-08-24T15:32:30.000Z
2021-08-24T23:21:34.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/_protection_containers_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1
2016-04-19T22:15:47.000Z
2016-04-19T22:15:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.832512
244
0.67008
bfe64c5e754e5355bbcef729d3afbc754a3ac905
103
py
Python
ex049.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
ex049.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
ex049.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
n = int(input('Digite um número: ')) for c in range(1, 11): print('{} x {} = {}'.format(n, c, n*c))
34.333333
43
0.514563
1ac7c3d38b0bfb7f9535ee2b8526c4d5704f71de
1,002
py
Python
feline/contrib/sites/migrations/0003_set_site_domain_and_name.py
Jeanluis019/feline
f802f7a57490b9425b32d88fa10d9cd7234e3a1f
[ "MIT" ]
6
2021-10-13T01:05:27.000Z
2021-11-10T03:15:15.000Z
feline/contrib/sites/migrations/0003_set_site_domain_and_name.py
Jeanluis019/feline
f802f7a57490b9425b32d88fa10d9cd7234e3a1f
[ "MIT" ]
1
2022-03-30T21:26:16.000Z
2022-03-30T21:26:16.000Z
feline/contrib/sites/migrations/0003_set_site_domain_and_name.py
Jeanluis019/feline
f802f7a57490b9425b32d88fa10d9cd7234e3a1f
[ "MIT" ]
1
2021-11-10T13:32:21.000Z
2021-11-10T13:32:21.000Z
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ from django.conf import settings from django.db import migrations def update_site_forward(apps, schema_editor): """Set site d...
28.628571
129
0.684631
db6e285660b1f6fac17b617514110de7e7a71f14
1,721
py
Python
bandnames/bandnames/wsgi.py
pyepye/bandnames
6c1af25e427ddc9d5bcbdca017d39813c34030bd
[ "MIT" ]
null
null
null
bandnames/bandnames/wsgi.py
pyepye/bandnames
6c1af25e427ddc9d5bcbdca017d39813c34030bd
[ "MIT" ]
null
null
null
bandnames/bandnames/wsgi.py
pyepye/bandnames
6c1af25e427ddc9d5bcbdca017d39813c34030bd
[ "MIT" ]
null
null
null
""" WSGI config for bandnames project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`...
40.97619
88
0.801278