hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d5b9541d91c7f9bd602b921667a1f278331a2340
3,610
py
Python
tests/python/big/test_glm_ipums.py
pnijhara/h2o4gpu
6257112c134136471420b68241f57190a445b67d
[ "Apache-2.0" ]
458
2017-09-20T08:32:10.000Z
2022-02-28T18:40:57.000Z
tests/python/big/test_glm_ipums.py
Jun-NIBS/h2o4gpu
9885416deb3285f5d0f33023d6c07373ac4fc0b7
[ "Apache-2.0" ]
461
2017-09-20T11:39:04.000Z
2021-11-21T15:51:42.000Z
tests/python/big/test_glm_ipums.py
Jun-NIBS/h2o4gpu
9885416deb3285f5d0f33023d6c07373ac4fc0b7
[ "Apache-2.0" ]
114
2017-09-20T12:08:07.000Z
2021-11-29T14:15:40.000Z
""" :copyright: 2017-2018 H2O.ai, Inc. :license: Apache License Version 2.0 (see LICENSE for details) """ import time import sys import os import numpy as np # import pandas as pd import logging import feather print(sys.path) from h2o4gpu.util.testing_utils import find_file, run_glm logging.basicConfig(level=loggi...
26.544118
103
0.649584
4085240380f23ed8afb45f05bf24ad6c18ebb4a2
3,194
py
Python
src/lm_core/model.py
Lawliet19189/Euller
d4b989182e3d4a4bd27707001b560e8b606396cd
[ "MIT" ]
null
null
null
src/lm_core/model.py
Lawliet19189/Euller
d4b989182e3d4a4bd27707001b560e8b606396cd
[ "MIT" ]
null
null
null
src/lm_core/model.py
Lawliet19189/Euller
d4b989182e3d4a4bd27707001b560e8b606396cd
[ "MIT" ]
null
null
null
import numpy as np import torch from transformers import GPT2LMHeadModel, GPT2Tokenizer from .utils import get_available_devices class GPTLM(): def __init__(self, model_name_or_path='gpt2'): self.start_token = "<|endoftext|>" self.tokenizer = GPT2Tokenizer.from_pretrained(model_name_or_path, bo...
38.95122
114
0.597683
3868585144f97a180c9ec1044c155ab33d2262e8
2,520
py
Python
django_mailbox/south_migrations/0009_remove_references_table.py
JBwebkrone/django-mailbox-1
40263b66703332d82c179d79f5ea0d80fc1ea388
[ "MIT" ]
225
2015-01-02T14:53:59.000Z
2022-03-04T23:07:34.000Z
django_mailbox/south_migrations/0009_remove_references_table.py
JBwebkrone/django-mailbox-1
40263b66703332d82c179d79f5ea0d80fc1ea388
[ "MIT" ]
182
2015-02-06T23:29:50.000Z
2022-01-20T21:50:39.000Z
django_mailbox/south_migrations/0009_remove_references_table.py
JBwebkrone/django-mailbox-1
40263b66703332d82c179d79f5ea0d80fc1ea388
[ "MIT" ]
138
2015-01-18T16:57:34.000Z
2022-03-24T19:33:38.000Z
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Removing M2M table for field references on 'Message' db.delete_table('django_mailbox_message_references') def backwards(self...
52.5
181
0.600794
be1f8c631148113507450b9bd0e3bf7d5d9be22c
7,675
py
Python
examples/plot_metricframe_beyond_binary_classification.py
marymlucas/fairlearn
73e6a8ff797d5f6e6b2f5932313b72ffb95331c8
[ "MIT" ]
79
2018-05-21T14:52:34.000Z
2019-04-17T13:38:45.000Z
examples/plot_metricframe_beyond_binary_classification.py
marymlucas/fairlearn
73e6a8ff797d5f6e6b2f5932313b72ffb95331c8
[ "MIT" ]
28
2019-06-09T13:17:03.000Z
2019-10-10T19:00:19.000Z
examples/plot_metricframe_beyond_binary_classification.py
marymlucas/fairlearn
73e6a8ff797d5f6e6b2f5932313b72ffb95331c8
[ "MIT" ]
10
2019-05-20T17:24:54.000Z
2019-10-10T13:24:01.000Z
# Copyright (c) Fairlearn contributors. # Licensed under the MIT License. """ ========================================= MetricFrame: Beyond Binary Classification ========================================= """ # %% # This notebook contains examples of using :class:`~fairlearn.metrics.MetricFrame` # for tasks which go b...
29.980469
90
0.70684
01ff23975bf23fdde94b274262825fbd0335b668
12,084
py
Python
modules/depth_and_motion_learning/training_utils.py
FloatingPoint64/depth_estimation
f14aa53db7b8b754450a5d0dab3fe1f90210cd5e
[ "Apache-2.0" ]
null
null
null
modules/depth_and_motion_learning/training_utils.py
FloatingPoint64/depth_estimation
f14aa53db7b8b754450a5d0dab3fe1f90210cd5e
[ "Apache-2.0" ]
5
2021-02-23T06:21:24.000Z
2021-02-23T13:57:10.000Z
modules/depth_and_motion_learning/training_utils.py
FloatingPoint64/depth_estimation
f14aa53db7b8b754450a5d0dab3fe1f90210cd5e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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...
38.240506
84
0.6857
cc86d832bb20129c8016a9f5011597104f115bfb
1,080
py
Python
app/api/v2/session.py
RushRay/view-oj-backend
ece96702de4fd5351f30d27bd70421c3b281e53d
[ "Apache-2.0" ]
null
null
null
app/api/v2/session.py
RushRay/view-oj-backend
ece96702de4fd5351f30d27bd70421c3b281e53d
[ "Apache-2.0" ]
null
null
null
app/api/v2/session.py
RushRay/view-oj-backend
ece96702de4fd5351f30d27bd70421c3b281e53d
[ "Apache-2.0" ]
null
null
null
from flask import jsonify from flask_login import current_user, login_required, login_user, logout_user from app.libs.error_code import AuthFailed, DeleteSuccess, Success from app.libs.red_print import RedPrint from app.models.user import User from app.validators.session import LoginForm api = RedPrint('session') @...
27.692308
77
0.702778
3d5d0681f0222216d379e1c1c63e1e4022eff3ea
5,889
py
Python
homeassistant/components/geonetnz_volcano/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/geonetnz_volcano/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
homeassistant/components/geonetnz_volcano/sensor.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Feed Entity Manager Sensor support for GeoNet NZ Volcano Feeds.""" import logging from typing import Optional from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_LATITUDE, ATTR_LONGITUDE, CONF_UNIT_SYSTEM_IMPERIAL, LENGTH_KILOMETERS, ) from homeassistant.core import callback from homeassist...
34.846154
87
0.671591
78039c2d3c81a0c7f37cf9b1f9b1b12081a814b9
1,147
py
Python
toolkit/augment_data_conllu.py
danielhers/hit-scir-ucca-parser
240508227c54e52ab9f1f988a1144f51bc8f25ca
[ "Apache-2.0" ]
1
2020-07-18T13:40:06.000Z
2020-07-18T13:40:06.000Z
toolkit/augment_data_conllu.py
danielhers/hit-scir-ucca-parser
240508227c54e52ab9f1f988a1144f51bc8f25ca
[ "Apache-2.0" ]
null
null
null
toolkit/augment_data_conllu.py
danielhers/hit-scir-ucca-parser
240508227c54e52ab9f1f988a1144f51bc8f25ca
[ "Apache-2.0" ]
2
2020-05-28T13:16:39.000Z
2022-02-15T01:58:03.000Z
import json import collections import argparse from conllu.parser import parse_line, DEFAULT_FIELDS parser = argparse.ArgumentParser(description='Augment Data') parser.add_argument("conll", type=str, help="Augment CoNLL file") parser.add_argument("mrp", type=str, help="Input MRP file") parser.add_argument("output", ty...
33.735294
93
0.685266
6d2d0c45f9b236a7bef4e6546e2f07881f1354bb
6,099
py
Python
src/codebots/bots/sshbot.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
5
2021-05-06T21:51:30.000Z
2022-01-10T17:53:00.000Z
src/codebots/bots/sshbot.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
10
2021-04-03T12:00:27.000Z
2021-11-04T16:27:48.000Z
src/codebots/bots/sshbot.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
null
null
null
import paramiko import os import socket from ._bot import BaseBot __all__ = [ 'sshBot' ] class sshBot(BaseBot): """sshBot to help with ssh connections to a server. Parameters ---------- hostname : str ip address of the server, by default None. username : str username on the...
33.510989
125
0.596655
7ba76ddde113297d694a9713db8e1e4be32ac8c5
338
py
Python
api/run.py
pikulak/pywdbms
1b4f4118f7956bd6ee885a3e7908ef3f61ed6890
[ "Apache-2.0" ]
2
2018-03-24T18:54:52.000Z
2020-03-18T20:33:16.000Z
api/run.py
pikulak/pywdbms
1b4f4118f7956bd6ee885a3e7908ef3f61ed6890
[ "Apache-2.0" ]
null
null
null
api/run.py
pikulak/pywdbms
1b4f4118f7956bd6ee885a3e7908ef3f61ed6890
[ "Apache-2.0" ]
1
2020-03-18T20:33:18.000Z
2020-03-18T20:33:18.000Z
#!c:/python34/python.exe import sys import os import os p = os.path.dirname(os.path.join(os.path.realpath(__file__), "../../../")) sys.path.insert(0, p) from flask import Flask from pywdbms.api.app import blueprint app = Flask(__name__) app.secret_key = 'some_secret' app.register_blueprint(blueprint) app.config['DEBUG'...
26
74
0.739645
b42f8ffe99430f4f4b5c52e261b0463b44d1c79a
7,300
py
Python
FTSensor/pybind11-master/tests/test_stl_binders.py
yanglh14/InteractiveGrasping
b5bc1866a1847e7b0c11616fd6cbe949c64a355b
[ "MIT" ]
3
2021-04-14T08:24:40.000Z
2021-11-04T04:10:19.000Z
FTSensor/pybind11-master/tests/test_stl_binders.py
yanglh14/InteractiveGrasping
b5bc1866a1847e7b0c11616fd6cbe949c64a355b
[ "MIT" ]
null
null
null
FTSensor/pybind11-master/tests/test_stl_binders.py
yanglh14/InteractiveGrasping
b5bc1866a1847e7b0c11616fd6cbe949c64a355b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import sys from pybind11_tests import stl_binders as m with pytest.suppress(ImportError): import numpy as np def test_vector_int(): v_int = m.VectorInt([0, 0]) assert len(v_int) == 2 assert bool(v_int) is True # test construction from a generat...
26.071429
99
0.518356
9dfccf7d037f7cb20b12ffacdf90aeb230d1cd6a
3,695
py
Python
dissect/protos/inet.py
AKOU0/dissect
b521153d86fe94dddc04846eb7ba3b6196917ee7
[ "Apache-2.0" ]
19
2015-07-08T18:51:40.000Z
2020-03-08T16:06:16.000Z
dissect/protos/inet.py
AKOU0/dissect
b521153d86fe94dddc04846eb7ba3b6196917ee7
[ "Apache-2.0" ]
5
2016-02-24T15:23:13.000Z
2019-11-09T11:23:47.000Z
dissect/protos/inet.py
AKOU0/dissect
b521153d86fe94dddc04846eb7ba3b6196917ee7
[ "Apache-2.0" ]
11
2015-10-22T00:32:20.000Z
2017-07-14T01:45:14.000Z
import socket from vstruct2.types import * ''' Inet Packet Structures ''' ethp = venum() ethp.ipv4 = 0x0800 ethp.ipv6 = 0x86dd ethp.vlan = 0x8100 ipproto = venum() ipproto.ICMP = 1 ipproto.TCP = 6 ipproto.UDP = 17 ipproto.IPV6 = 41 TCP_F_FIN = 0x01 TCP_F_SYN = 0x02 TCP_F_RST = 0x04 TCP_F_PUSH = 0x...
25.136054
64
0.574831
4792aab359a1b6db125e40b5f67b8a922b7ce41a
3,408
py
Python
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_matlab.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
9
2018-10-15T04:57:37.000Z
2021-12-07T07:39:35.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_matlab.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
13
2018-10-19T11:52:44.000Z
2021-09-08T00:39:30.000Z
Lib/site-packages/wx-3.0-msw/wx/tools/Editra/src/syntax/_matlab.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
3
2018-10-25T11:08:04.000Z
2021-02-23T08:28:31.000Z
############################################################################### # Name: matlab.py # # Purpose: Define Matlab and Octave syntax for highlighting and other features# # Author: Cody Precord <cprecord@editra.org> # ...
37.043478
79
0.528756
b3547ae8f1fe2b5823cf14f96f68eb9ea585614d
86,599
py
Python
psc/postgresql/driver/pq3.py
masterlee998/db_converter
ea43ede1e1e9654628eb0175ece2c35a7c542719
[ "MIT" ]
9
2020-04-21T01:58:32.000Z
2021-02-03T16:31:26.000Z
psc/postgresql/driver/pq3.py
masterlee998/db_converter
ea43ede1e1e9654628eb0175ece2c35a7c542719
[ "MIT" ]
null
null
null
psc/postgresql/driver/pq3.py
masterlee998/db_converter
ea43ede1e1e9654628eb0175ece2c35a7c542719
[ "MIT" ]
3
2021-01-25T17:36:56.000Z
2021-05-24T12:01:05.000Z
## # .driver.pq3 - interface to PostgreSQL using PQ v3.0. ## """ PG-API interface for PostgreSQL using PQ version 3.0. """ import os import weakref import socket from traceback import format_exception from itertools import repeat, chain, count from functools import partial from abc import abstractmethod from codecs imp...
28.411745
111
0.67644
337f122938a6a3278588ff974fb1f1e8f6882910
2,317
py
Python
conviz/utils/image_util.py
PhTrempe/conviz
b0d5a3a357ed013223847bcea5fa0df46e44de02
[ "MIT" ]
null
null
null
conviz/utils/image_util.py
PhTrempe/conviz
b0d5a3a357ed013223847bcea5fa0df46e44de02
[ "MIT" ]
null
null
null
conviz/utils/image_util.py
PhTrempe/conviz
b0d5a3a357ed013223847bcea5fa0df46e44de02
[ "MIT" ]
null
null
null
import numpy from scipy.misc import imsave class ImageUtil(object): """ A utility class which provides image manipulation functionality. """ @staticmethod def build_grid_image(images, grid_dim, padding): """ Builds a grid image from a list of images. :param images: The lis...
38.616667
80
0.637894
d1e5c94f42f66f851b6d2cc55a075f6740cc0153
12,338
py
Python
doubleml/tests/test_plr_no_cross_fit.py
SvenKlaassen/doubleml-for-py
b3cbdb572fce435c18ec67ca323645900fc901b5
[ "MIT" ]
103
2020-12-21T08:41:17.000Z
2022-03-29T07:49:48.000Z
doubleml/tests/test_plr_no_cross_fit.py
SvenKlaassen/doubleml-for-py
b3cbdb572fce435c18ec67ca323645900fc901b5
[ "MIT" ]
27
2020-12-23T09:25:25.000Z
2022-03-31T12:22:30.000Z
doubleml/tests/test_plr_no_cross_fit.py
SvenKlaassen/doubleml-for-py
b3cbdb572fce435c18ec67ca323645900fc901b5
[ "MIT" ]
17
2021-02-10T10:03:08.000Z
2022-03-23T15:44:57.000Z
import numpy as np import pytest import math from sklearn.base import clone from sklearn.linear_model import Lasso import doubleml as dml from ._utils import draw_smpls from ._utils_plr_manual import fit_plr, plr_dml1, fit_nuisance_plr, boot_plr, tune_nuisance_plr @pytest.fixture(scope='module', p...
36.502959
121
0.590939
3afa0c88320c74a9cf1d8668f151a94bc120c74f
1,459
py
Python
networkx/readwrite/tests/test_gpickle.py
tempcyc/networkx
cae83ba501c242567cb2454f97f851898276f06e
[ "BSD-3-Clause" ]
1
2018-08-09T14:29:43.000Z
2018-08-09T14:29:43.000Z
networkx/readwrite/tests/test_gpickle.py
tempcyc/networkx
cae83ba501c242567cb2454f97f851898276f06e
[ "BSD-3-Clause" ]
null
null
null
networkx/readwrite/tests/test_gpickle.py
tempcyc/networkx
cae83ba501c242567cb2454f97f851898276f06e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from nose.tools import assert_equal import os import tempfile import networkx as nx from networkx.testing.utils import * class TestGpickle(object): def setUp(self): G=nx.Graph(name="test") e=[('a','b'),('b','c'),('c','d'),('d','e'),('e','f'),('a','f')] G.add_edges_fr...
28.057692
71
0.507197
51ff7426ac2a9fc7ed7595ccd69fecd75a7dff52
31,566
py
Python
cvat/apps/engine/media_extractors.py
Fighting-Golion/mycvat
d53c1dd4568562c0b83b7f762fb98bec686804b4
[ "Intel", "MIT" ]
null
null
null
cvat/apps/engine/media_extractors.py
Fighting-Golion/mycvat
d53c1dd4568562c0b83b7f762fb98bec686804b4
[ "Intel", "MIT" ]
null
null
null
cvat/apps/engine/media_extractors.py
Fighting-Golion/mycvat
d53c1dd4568562c0b83b7f762fb98bec686804b4
[ "Intel", "MIT" ]
null
null
null
# Copyright (C) 2019-2020 Intel Corporation # # SPDX-License-Identifier: MIT import os import tempfile import shutil import zipfile import io import itertools import struct from abc import ABC, abstractmethod from contextlib import closing import av import numpy as np from natsort import os_sorted from pyunpack impor...
35.467416
121
0.584236
33daa1cec549dfa532aa77c616d44a62b857b552
8,694
py
Python
signal_ocean/port_expenses/port_expenses_api.py
SignalOceanSdk/SignalSDK
e21cf6026386bb46fde7582a10995cc7deff8a42
[ "Apache-2.0" ]
10
2020-09-29T06:36:45.000Z
2022-03-14T18:15:50.000Z
signal_ocean/port_expenses/port_expenses_api.py
SignalOceanSdk/SignalSDK
e21cf6026386bb46fde7582a10995cc7deff8a42
[ "Apache-2.0" ]
53
2020-10-08T10:05:00.000Z
2022-03-29T14:21:18.000Z
signal_ocean/port_expenses/port_expenses_api.py
SignalOceanSdk/SignalSDK
e21cf6026386bb46fde7582a10995cc7deff8a42
[ "Apache-2.0" ]
5
2020-09-25T07:48:04.000Z
2021-11-23T07:08:56.000Z
# noqa: D100 from datetime import datetime from typing import cast, Optional, List, Tuple from .. import Connection from .._internals import QueryString from .enums import Operation, OperationStatus, EstimationStatus,\ ItalianAnchorageDues, VesselTypeEnum from .models import PortExpenses, Port, VesselTyp...
39.69863
80
0.608121
b81daa8c37f378e2e7a28f7d2f834e832e3e70d0
36,740
py
Python
qiskit/visualization/matplotlib.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
null
null
null
qiskit/visualization/matplotlib.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
null
null
null
qiskit/visualization/matplotlib.py
chowington/qiskit-terra
a782c64c736fedd6a541bb45dbf89737a52b7c39
[ "Apache-2.0" ]
1
2019-06-13T08:07:26.000Z
2019-06-13T08:07:26.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
39.633225
95
0.445754
9dac86962a02e0d5d53ba68e8f0216ecfa6e8a30
2,808
py
Python
algo/src/deep_n_wide.py
RunanWang/somewhere
0ba93a3f5f91042b4910171dda981f6c863ee581
[ "MIT" ]
null
null
null
algo/src/deep_n_wide.py
RunanWang/somewhere
0ba93a3f5f91042b4910171dda981f6c863ee581
[ "MIT" ]
20
2019-11-20T06:47:28.000Z
2020-01-14T02:23:22.000Z
algo/src/deep_n_wide.py
RunanWang/somewhere
0ba93a3f5f91042b4910171dda981f6c863ee581
[ "MIT" ]
null
null
null
from keras.models import Model from keras.layers import Input, Dense, Lambda, multiply, concatenate from keras import backend as K from keras import regularizers import pandas as pd import utils as utils import preprocess as preprocess from keras.callbacks import TensorBoard def keras_sum_layer_output_shape(input_sha...
33.428571
77
0.662037
369e5d0b803043f7238fc6e16515e489d472e116
1,252
py
Python
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CloneFlowJobRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CloneFlowJobRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CloneFlowJobRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.777778
65
0.75639
c03eae8196ecf9a82fc0eba938e02db3f926dd85
9,222
py
Python
lib/models/ganomaly.py
strelka145/skip-ganomaly
a1f9e4b2ebd248e70822acb4591b702634574ed7
[ "MIT" ]
null
null
null
lib/models/ganomaly.py
strelka145/skip-ganomaly
a1f9e4b2ebd248e70822acb4591b702634574ed7
[ "MIT" ]
null
null
null
lib/models/ganomaly.py
strelka145/skip-ganomaly
a1f9e4b2ebd248e70822acb4591b702634574ed7
[ "MIT" ]
null
null
null
"""GANomaly """ # pylint: disable=C0301,E1101,W0622,C0103,R0902,R0915 ## from collections import OrderedDict import os import time import numpy as np from tqdm import tqdm from torch.autograd import Variable import torch.optim as optim import torch.nn as nn import torch.utils.data import torchvision.utils as vutils ...
40.270742
141
0.592171
ef2b1eaf8f09782b598ec4e3a0e093e5187277ea
3,068
py
Python
python/123.best-time-to-buy-and-sell-stock-iii.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
10
2019-09-15T00:23:57.000Z
2022-01-05T12:53:42.000Z
python/123.best-time-to-buy-and-sell-stock-iii.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
3
2021-06-30T00:39:26.000Z
2021-08-01T07:13:59.000Z
python/123.best-time-to-buy-and-sell-stock-iii.py
Zhenye-Na/leetcode
95196a45f5709ccf7b970ee5ac84a4bf8fe2301e
[ "MIT" ]
6
2020-02-08T02:55:22.000Z
2022-01-02T22:48:18.000Z
# # @lc app=leetcode id=123 lang=python3 # # [123] Best Time to Buy and Sell Stock III # # https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/description/ # # algorithms # Hard (39.74%) # Likes: 3278 # Dislikes: 85 # Total Accepted: 277.6K # Total Submissions: 695.1K # Testcase Example: '[3,3,5,0,...
24.943089
85
0.577249
1b5e6b905aea358201b73eab41d6f30aefc2889d
3,763
py
Python
src/python/pants/backend/python/tasks/python_bundle.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
94
2015-01-15T21:24:20.000Z
2022-02-16T16:55:43.000Z
src/python/pants/backend/python/tasks/python_bundle.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
5
2020-07-18T01:04:43.000Z
2021-05-10T08:40:56.000Z
src/python/pants/backend/python/tasks/python_bundle.py
StephanErb/pants
a368267b6b4cf50138ba567f582409ed31bf5db9
[ "Apache-2.0" ]
47
2015-02-25T02:20:07.000Z
2022-03-21T00:59:16.000Z
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from pants.backend.python.targets.python_app import PythonApp from pants.base....
39.610526
95
0.701834
89475bdf8060e85f6f4d5fe7ab44e94195b29b47
4,409
py
Python
adb_android/adb_android.py
abhi-r3v0/adb_android
6d8203a28b322f3bb2e7372397024da5a6807ba3
[ "BSD-3-Clause" ]
1
2018-09-29T09:08:10.000Z
2018-09-29T09:08:10.000Z
adb_android/adb_android.py
abhi-r3v0/adb_android
6d8203a28b322f3bb2e7372397024da5a6807ba3
[ "BSD-3-Clause" ]
null
null
null
adb_android/adb_android.py
abhi-r3v0/adb_android
6d8203a28b322f3bb2e7372397024da5a6807ba3
[ "BSD-3-Clause" ]
null
null
null
import tempfile from subprocess import check_output, CalledProcessError import var as v def push(src, dest): """ Push object from host to target :param src: string path to source object on host :param dest: string destination path on target :return: result of _exec_command() execution """ ...
29.198675
92
0.681334
5dc24b48a0633e417b089debd1592757c006d76a
16,908
py
Python
sdk/python/pulumi_azure/servicebus/queue.py
kenny-wealth/pulumi-azure
e57e3a81f95bf622e7429c53f0bff93e33372aa1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/servicebus/queue.py
kenny-wealth/pulumi-azure
e57e3a81f95bf622e7429c53f0bff93e33372aa1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/servicebus/queue.py
kenny-wealth/pulumi-azure
e57e3a81f95bf622e7429c53f0bff93e33372aa1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Queue(...
65.281853
546
0.71688
17ed6ef2dfa9be2c2c14ab1bcf983d6030f16686
8,596
py
Python
detect_secrets/settings.py
sfc-gh-nsfard/detect-secrets
1c325e8433d732b3ac7783686651c5b98abbfe63
[ "Apache-2.0" ]
1
2021-03-15T15:12:42.000Z
2021-03-15T15:12:42.000Z
detect_secrets/settings.py
sfc-gh-nsfard/detect-secrets
1c325e8433d732b3ac7783686651c5b98abbfe63
[ "Apache-2.0" ]
null
null
null
detect_secrets/settings.py
sfc-gh-nsfard/detect-secrets
1c325e8433d732b3ac7783686651c5b98abbfe63
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from copy import deepcopy from functools import lru_cache from importlib import import_module from typing import Any from typing import Dict from typing import Generator from typing import List from urllib.parse import urlparse from .exceptions import InvalidFile from .util.import...
32.560606
97
0.599116
22a45bf5763ff5bffb8bceaae67d679167636817
3,000
py
Python
learning_text_transformer/server.py
ianozsvald/learning_text_transformer
23fa318a7c8ed0e2dbd1fc8e68e0cb7d1f15731d
[ "MIT" ]
19
2015-08-28T14:41:16.000Z
2021-03-05T17:26:42.000Z
learning_text_transformer/server.py
ianozsvald/learning_text_transformer
23fa318a7c8ed0e2dbd1fc8e68e0cb7d1f15731d
[ "MIT" ]
null
null
null
learning_text_transformer/server.py
ianozsvald/learning_text_transformer
23fa318a7c8ed0e2dbd1fc8e68e0cb7d1f15731d
[ "MIT" ]
null
null
null
"""Flask server""" import datetime from flask import Flask, request, jsonify from flask.ext import restful from flask.ext.restful import abort from learning_text_transformer import learner3 as learner from learning_text_transformer import transforms from learning_text_transformer import config app = Flask(__name__) a...
30.927835
121
0.683667
7c3216d525221a25a7811452be35f841583a716e
4,944
py
Python
ceilometer/tests/unit/publisher/test_prometheus.py
ionutbiru/ceilometer
f8992d40a135188a9d89c86f78868d340f3a1b96
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/unit/publisher/test_prometheus.py
ionutbiru/ceilometer
f8992d40a135188a9d89c86f78868d340f3a1b96
[ "Apache-2.0" ]
null
null
null
ceilometer/tests/unit/publisher/test_prometheus.py
ionutbiru/ceilometer
f8992d40a135188a9d89c86f78868d340f3a1b96
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 IBM # # 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, softw...
33.405405
78
0.591222
74fd594901987bb15fe5301a5ad81cd1ef217c24
1,671
py
Python
mindspore/ops/_op_impl/tbe/floor_div.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
mindspore/ops/_op_impl/tbe/floor_div.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
mindspore/ops/_op_impl/tbe/floor_div.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.756098
85
0.697187
1132cde89fb2c930409b846ec1d85e8b6b30452b
4,122
py
Python
APIs/management/tests/test_addresses.py
matteyeux/MyBookingServices
ce6ec906b3a58da16e1f066b9af290fb7e8b82d3
[ "MIT" ]
null
null
null
APIs/management/tests/test_addresses.py
matteyeux/MyBookingServices
ce6ec906b3a58da16e1f066b9af290fb7e8b82d3
[ "MIT" ]
3
2022-02-26T16:50:12.000Z
2022-02-26T16:50:12.000Z
APIs/management/tests/test_addresses.py
matteyeux/MyBookingServices
ce6ec906b3a58da16e1f066b9af290fb7e8b82d3
[ "MIT" ]
null
null
null
from fastapi.testclient import TestClient from management import app client = TestClient(app.app) def test_get_addresses_01(): """ Test getting all addresses. """ response = client.get("/addresses/all/") assert response.status_code == 200 assert response.json() is not None def test_get_last_addres...
25.7625
71
0.602863
2803517b49f2db3d6a54b4838ad9c33cca6de626
21,578
py
Python
disnake/ext/commands/common_bot_base.py
tooruu/disnake
976124a779efff16a51b8a3b294ad6c9949bbb02
[ "MIT" ]
null
null
null
disnake/ext/commands/common_bot_base.py
tooruu/disnake
976124a779efff16a51b8a3b294ad6c9949bbb02
[ "MIT" ]
null
null
null
disnake/ext/commands/common_bot_base.py
tooruu/disnake
976124a779efff16a51b8a3b294ad6c9949bbb02
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development 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 limi...
33.145929
118
0.59315
c6c6d41f8fdf9585149e5144382b29e6fe94d7a9
399
py
Python
code/List/pluck.py
jumploop/30-seconds-of-python
bfcc5a35d9bd0bba67e81de5715dba21e1ba43be
[ "CC0-1.0" ]
null
null
null
code/List/pluck.py
jumploop/30-seconds-of-python
bfcc5a35d9bd0bba67e81de5715dba21e1ba43be
[ "CC0-1.0" ]
null
null
null
code/List/pluck.py
jumploop/30-seconds-of-python
bfcc5a35d9bd0bba67e81de5715dba21e1ba43be
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 功能实现:将字典列表转换为与指定键对应的值列表。 解读: 使用列表推导式和dict.get()来获取lst中每个字典的key值。 """ def pluck(lst, key): return [x.get(key) for x in lst] # Examples simpsons = [ {'name': 'lisa', 'age': 8}, {'name': 'homer', 'age': 36}, {'name': 'marge', 'age': 34}, {'name': ...
15.346154
36
0.548872
174d64b85f0c40907eb1a7f1e27a89a8af82f295
5,334
py
Python
he_j_inference/submit_single_model.py
ynswon/MURA
8a54d17302ca7b4a66a7a04f8d202fe1d61b4641
[ "MIT" ]
1
2019-02-21T15:28:56.000Z
2019-02-21T15:28:56.000Z
he_j_inference/submit_single_model.py
ynswon/MURA
8a54d17302ca7b4a66a7a04f8d202fe1d61b4641
[ "MIT" ]
null
null
null
he_j_inference/submit_single_model.py
ynswon/MURA
8a54d17302ca7b4a66a7a04f8d202fe1d61b4641
[ "MIT" ]
3
2019-01-28T09:19:15.000Z
2020-06-09T07:06:34.000Z
import os import sys from keras import backend as K import tensorflow as tf from keras_model import ModelFactory #from configparser import ConfigParser import numpy as np import pandas as pd from PIL import Image from random import shuffle #from skimage.transform import resize #os.environ["CUDA_VISIBLE_DEVICES"] = "0" ...
34.412903
93
0.698163
2a8cebd1674713dd2f4089ed395c685b0d6636ed
1,644
py
Python
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/DisableThingRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/DisableThingRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/DisableThingRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.25
71
0.761557
5227207b2c57b0972b7af903568685d83f38dd7a
10,410
py
Python
pyscf/df/df.py
crisely09/pyscf
cb92f7974bd9c87c0ef5b2b52abf5d3219b3d6b6
[ "Apache-2.0" ]
1
2020-04-07T21:12:08.000Z
2020-04-07T21:12:08.000Z
pyscf/df/df.py
crisely09/pyscf
cb92f7974bd9c87c0ef5b2b52abf5d3219b3d6b6
[ "Apache-2.0" ]
2
2019-09-16T17:58:31.000Z
2019-09-22T17:26:01.000Z
pyscf/df/df.py
crisely09/pyscf
cb92f7974bd9c87c0ef5b2b52abf5d3219b3d6b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2019 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 # # U...
39.732824
100
0.595005
bb2b8e008e68d586f1dcca6891f1b59f0973046f
8,057
py
Python
GFMM/basegfmmclassifier.py
thanhtung09t2/Hyperbox-classifier
4b4cf9dfae68902bd9a742db421cacce8daf37a4
[ "BSD-3-Clause" ]
null
null
null
GFMM/basegfmmclassifier.py
thanhtung09t2/Hyperbox-classifier
4b4cf9dfae68902bd9a742db421cacce8daf37a4
[ "BSD-3-Clause" ]
1
2018-09-05T11:39:56.000Z
2018-09-09T03:28:14.000Z
GFMM/basegfmmclassifier.py
thanhtung09t2/Hyperbox-classifier
4b4cf9dfae68902bd9a742db421cacce8daf37a4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 14 10:22:19 2018 @author: Thanh Tung Khuat Base GFMM classifier """ import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from GFMM.classification import predict from functionhelper.matrixhelper import delete_const_dims, pca_transfor...
39.495098
181
0.573166
9a92c0ee913478fa8ab8fb4f39516b350aef5bf5
308
py
Python
bbuser/debug.py
ekivemark/BlueButtonUser
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
[ "Apache-2.0" ]
1
2020-10-29T07:29:49.000Z
2020-10-29T07:29:49.000Z
bbuser/debug.py
ekivemark/BlueButtonUser
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
[ "Apache-2.0" ]
7
2020-02-11T23:03:55.000Z
2021-12-13T19:42:01.000Z
bbuser/debug.py
ekivemark/BlueButtonUser
096cf439cd0c4ccb3d16b0efebf1c34fd3fb8939
[ "Apache-2.0" ]
2
2018-10-06T21:45:51.000Z
2020-10-10T16:10:36.000Z
""" bbuser FILE: debug Created: 7/12/15 5:11 PM A callback routine for overriding Django.debug.toolbar """ __author__ = 'Mark Scrimshire:@ekivemark' from django.conf import settings def Debug_Toolbar_Display(request): # Force to True if not settings.DEBUG: return False return True
15.4
54
0.717532
554640eb19d4324a72a52b35064c6728ce2ff8c9
10,037
py
Python
scalyr_agent/tests/configuration_docker_test.py
slomo/scalyr-agent-2
8726d6c2483c9ceb19a37697f266261c31e00b0b
[ "Apache-2.0" ]
null
null
null
scalyr_agent/tests/configuration_docker_test.py
slomo/scalyr-agent-2
8726d6c2483c9ceb19a37697f266261c31e00b0b
[ "Apache-2.0" ]
null
null
null
scalyr_agent/tests/configuration_docker_test.py
slomo/scalyr-agent-2
8726d6c2483c9ceb19a37697f266261c31e00b0b
[ "Apache-2.0" ]
null
null
null
import os from mock import patch, Mock from scalyr_agent import scalyr_monitor from scalyr_agent.builtin_monitors.docker_monitor import DockerMonitor from scalyr_agent.copying_manager import CopyingManager from scalyr_agent.monitors_manager import MonitorsManager from scalyr_agent.json_lib.objects import ArrayOfString...
42.172269
124
0.609644
569baef7e63d7e7ec08b7efe5c5394ac9ac37801
3,704
py
Python
abgthe/apps/profiles/models.py
jomauricio/abgthe
70004ed1870e3ca0ae2989a2c2be5c67ca93b342
[ "BSD-3-Clause" ]
null
null
null
abgthe/apps/profiles/models.py
jomauricio/abgthe
70004ed1870e3ca0ae2989a2c2be5c67ca93b342
[ "BSD-3-Clause" ]
null
null
null
abgthe/apps/profiles/models.py
jomauricio/abgthe
70004ed1870e3ca0ae2989a2c2be5c67ca93b342
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ from model_utils.models import TimeStampedModel from model_utils import Choices from localflavor.br.br_states import STATE_CHOICES from django.core.urlresolvers import reverse fr...
37.795918
118
0.763499
e3c8a84c21c6218b21e76c14429164a517f7d756
241
py
Python
setup.py
AbdelrahmanKhaled95/BScWSD
7524f37f80dc847bff17125c677aa8f65afd9c97
[ "Unlicense" ]
null
null
null
setup.py
AbdelrahmanKhaled95/BScWSD
7524f37f80dc847bff17125c677aa8f65afd9c97
[ "Unlicense" ]
null
null
null
setup.py
AbdelrahmanKhaled95/BScWSD
7524f37f80dc847bff17125c677aa8f65afd9c97
[ "Unlicense" ]
null
null
null
from distutils.core import setup setup( name='BScWSD', version='0.1', packages=['wsd',], description='Python WSD', long_description='A collection of different Python algorithms of Word Sense Disambiguation Systems(WSD) ', )
26.777778
110
0.713693
6b136d3e954c21651c0e846ce812a7cc0037a651
18,353
py
Python
src/pypipegraph2/ppg1_compatibility.py
IMTMarburg/pypipegraph2
182f04481f0b0b6b1c05cfbe23549714af5cfbcc
[ "MIT" ]
null
null
null
src/pypipegraph2/ppg1_compatibility.py
IMTMarburg/pypipegraph2
182f04481f0b0b6b1c05cfbe23549714af5cfbcc
[ "MIT" ]
null
null
null
src/pypipegraph2/ppg1_compatibility.py
IMTMarburg/pypipegraph2
182f04481f0b0b6b1c05cfbe23549714af5cfbcc
[ "MIT" ]
null
null
null
from pathlib import Path import types import inspect import os import sys import logging import pypipegraph as ppg1 import pypipegraph.testing import pypipegraph.testing.fixtures import pypipegraph2 as ppg2 import pypipegraph2.testing import wrapt import importlib from .util import log_info, log_error, log_warning, log...
31.10678
146
0.678581
a5df32463ecbf0b903539b9efefca46ed8319d45
7,349
py
Python
acos_client/tests/unit/v30/test_bladeparam.py
dpunkturban/acos-client
cd90feeecea7fcfb833b15930e8979996f32ff1f
[ "Apache-2.0" ]
1
2021-01-05T08:14:49.000Z
2021-01-05T08:14:49.000Z
acos_client/tests/unit/v30/test_bladeparam.py
ytsai-a10/acos-client
62b8387d25717907770e9be697db74cf0401fa09
[ "Apache-2.0" ]
null
null
null
acos_client/tests/unit/v30/test_bladeparam.py
ytsai-a10/acos-client
62b8387d25717907770e9be697db74cf0401fa09
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2016, A10 Networks Inc. 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 requi...
36.929648
100
0.626072
4e95ce368fd1b148c9a2c0539026c8ed0103d28c
3,585
py
Python
complaint_search/tests/test_views_document.py
DalavanCloud/ccdb5-api
9e0c4bc6e0d33bff153c1a205c979b7ecaa847da
[ "CC0-1.0" ]
1
2019-02-25T00:49:18.000Z
2019-02-25T00:49:18.000Z
complaint_search/tests/test_views_document.py
DalavanCloud/ccdb5-api
9e0c4bc6e0d33bff153c1a205c979b7ecaa847da
[ "CC0-1.0" ]
null
null
null
complaint_search/tests/test_views_document.py
DalavanCloud/ccdb5-api
9e0c4bc6e0d33bff153c1a205c979b7ecaa847da
[ "CC0-1.0" ]
null
null
null
from django.core.urlresolvers import reverse from django.core.cache import cache from rest_framework import status from rest_framework.test import APITestCase from unittest import skip from elasticsearch import TransportError import mock from complaint_search.es_interface import document from complaint_search.throttlin...
41.686047
78
0.700976
c82f700b34d832fe92a69ee8cab5e800061e823d
744
py
Python
levelworks/levelweb/urls.py
benNthen/levelworks-site
9570bcfd4cbaa3719102d21927f709ce9e0f865c
[ "Apache-2.0" ]
null
null
null
levelworks/levelweb/urls.py
benNthen/levelworks-site
9570bcfd4cbaa3719102d21927f709ce9e0f865c
[ "Apache-2.0" ]
null
null
null
levelworks/levelweb/urls.py
benNthen/levelworks-site
9570bcfd4cbaa3719102d21927f709ce9e0f865c
[ "Apache-2.0" ]
null
null
null
"""levelworks URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
32.347826
77
0.701613
342623b254fdecc53cc5a13ad5ec75075efe2c4c
7,064
py
Python
qa/rpc-tests/test_framework/test_framework.py
WestonReed/bitcoinxt
ac5b611797cb83226b7abce53cc50d48cb2a0c16
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/test_framework.py
WestonReed/bitcoinxt
ac5b611797cb83226b7abce53cc50d48cb2a0c16
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/test_framework.py
WestonReed/bitcoinxt
ac5b611797cb83226b7abce53cc50d48cb2a0c16
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Base class for RPC testing import logging import optparse import os import sys import shutil import te...
34.125604
106
0.612401
d58ca6ffdaaa70fe93247ff6c3dc8309d5ab7c0c
2,160
py
Python
tempest/services/compute/json/services_client.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/json/services_client.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/services/compute/json/services_client.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 NEC Corporation # Copyright 2013 IBM Corp. # 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-...
33.230769
78
0.666667
20454cf901019d89d8d52d26ea022b64d5fa774f
398
py
Python
telescope_shop/telescopes/admin.py
iskrenivanov87/AstroTrader
82230577aab10260bc9b478c4974a66c1bf1adb8
[ "MIT" ]
null
null
null
telescope_shop/telescopes/admin.py
iskrenivanov87/AstroTrader
82230577aab10260bc9b478c4974a66c1bf1adb8
[ "MIT" ]
null
null
null
telescope_shop/telescopes/admin.py
iskrenivanov87/AstroTrader
82230577aab10260bc9b478c4974a66c1bf1adb8
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from telescope_shop.telescopes.models import Telescope, Comment from mptt.admin import MPTTModelAdmin @admin.register(Telescope) class TelescopeAdmin(admin.ModelAdmin): list_display = ('make', 'model', 'location', 'user',) list_filter = ('make', '...
28.428571
63
0.756281
48f5d28a6cdc2496134b3b8824ce48259b13d41f
356
py
Python
python/8kyu/loenardo_dicaprio_and_oscars.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
3
2021-06-08T01:57:13.000Z
2021-06-26T10:52:47.000Z
python/8kyu/loenardo_dicaprio_and_oscars.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
null
null
null
python/8kyu/loenardo_dicaprio_and_oscars.py
Sigmanificient/codewars
b34df4bf55460d312b7ddf121b46a707b549387a
[ "MIT" ]
2
2021-06-10T21:20:13.000Z
2021-06-30T10:13:26.000Z
"""Kata url: https://www.codewars.com/kata/56d49587df52101de70011e4.""" def leo(oscar: int) -> str: if oscar == 88: return "Leo finally won the oscar! Leo is happy" if oscar == 86: return "Not even for Wolf of wallstreet?!" if oscar < 88: return "When will you give Leo an Oscar?"...
23.733333
71
0.617978
278c02bd6802f1d4b5fef97c39a398e1bb92b272
987
py
Python
tests/models.py
wtforms/wtforms-django
d35ac883d0060cc3257fc74a3a8bc5363f86de0b
[ "BSD-3-Clause" ]
8
2016-02-17T11:12:52.000Z
2022-02-25T14:21:32.000Z
tests/models.py
wtforms/wtforms-django
d35ac883d0060cc3257fc74a3a8bc5363f86de0b
[ "BSD-3-Clause" ]
10
2015-10-26T14:17:55.000Z
2018-06-08T17:08:10.000Z
tests/models.py
wtforms/wtforms-django
d35ac883d0060cc3257fc74a3a8bc5363f86de0b
[ "BSD-3-Clause" ]
3
2015-10-27T12:42:04.000Z
2018-06-11T19:18:06.000Z
from __future__ import unicode_literals from django.db import models try: from localflavor.us.models import USStateField except ImportError: from django.contrib.localflavor.us.models import USStateField class Group(models.Model): name = models.CharField(max_length=20) def __unicode__(self): ...
28.2
65
0.716312
d8ccc4c1117519c60c9d4a3591ef41028e1a2e3c
18,925
py
Python
official/vision/beta/configs/semantic_segmentation.py
kia-ctw/models
007070820109ec57cfb048ff505be090d4e88d10
[ "Apache-2.0" ]
2
2021-08-23T13:42:23.000Z
2021-11-09T11:48:44.000Z
official/vision/beta/configs/semantic_segmentation.py
kia-ctw/models
007070820109ec57cfb048ff505be090d4e88d10
[ "Apache-2.0" ]
2
2021-03-31T22:22:34.000Z
2021-08-06T18:38:30.000Z
official/vision/beta/configs/semantic_segmentation.py
kia-ctw/models
007070820109ec57cfb048ff505be090d4e88d10
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.465447
112
0.60354
12a5168f934d2f294b24bae91f89db1b7654b325
445
py
Python
test_bot/cogs/message_commands.py
Enegg/disnake
1d48cbf4e0dfec82fdfb65d7f58396767ce7c009
[ "MIT" ]
290
2021-11-03T12:33:16.000Z
2022-03-31T19:30:19.000Z
test_bot/cogs/message_commands.py
Enegg/disnake
1d48cbf4e0dfec82fdfb65d7f58396767ce7c009
[ "MIT" ]
200
2021-11-03T10:41:41.000Z
2022-03-31T08:13:11.000Z
test_bot/cogs/message_commands.py
Enegg/disnake
1d48cbf4e0dfec82fdfb65d7f58396767ce7c009
[ "MIT" ]
118
2021-11-03T18:27:09.000Z
2022-03-25T22:00:45.000Z
import disnake from disnake.ext import commands class MessageCommands(commands.Cog): def __init__(self, bot): self.bot: commands.Bot = bot @commands.message_command(name="Reverse") async def reverse(self, inter: disnake.MessageCommandInteraction): await inter.response.send_message(inter.t...
26.176471
70
0.719101
f50b5d9b34273be730edbd756e7099724ac09856
1,223
py
Python
marklogic/models/utilities/files.py
paul-hoehne/MarkLogic_Python
3d00c3e7bb9459de879a4a08b3c7e1b3530d59f9
[ "Apache-2.0" ]
7
2015-02-24T00:09:12.000Z
2021-04-01T18:05:16.000Z
marklogic/models/utilities/files.py
paul-hoehne/MarkLogic_Python
3d00c3e7bb9459de879a4a08b3c7e1b3530d59f9
[ "Apache-2.0" ]
19
2015-02-28T15:40:58.000Z
2015-05-13T15:38:12.000Z
marklogic/models/utilities/files.py
paul-hoehne/MarkLogic_Python
3d00c3e7bb9459de879a4a08b3c7e1b3530d59f9
[ "Apache-2.0" ]
12
2015-02-27T15:25:12.000Z
2021-04-01T18:05:31.000Z
# # Copyright 2015 MarkLogic Corporation # # 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 i...
29.119048
80
0.696648
1f2aa0c6877297bf22abe04eb903d02c3018c215
2,864
py
Python
envisage/ui/single_project/editor/project_editor.py
janvonrickenbach/Envisage_wxPhoenix_py3
cf79e5b2a0c3b46898a60b5fe5a2fb580604808b
[ "BSD-3-Clause" ]
null
null
null
envisage/ui/single_project/editor/project_editor.py
janvonrickenbach/Envisage_wxPhoenix_py3
cf79e5b2a0c3b46898a60b5fe5a2fb580604808b
[ "BSD-3-Clause" ]
1
2017-05-22T21:15:22.000Z
2017-05-22T21:15:22.000Z
envisage/ui/single_project/editor/project_editor.py
janvonrickenbach/Envisage_wxPhoenix_py3
cf79e5b2a0c3b46898a60b5fe5a2fb580604808b
[ "BSD-3-Clause" ]
1
2019-10-01T07:03:58.000Z
2019-10-01T07:03:58.000Z
#----------------------------------------------------------------------------- # # Copyright (c) 2005, 2006 by Enthought, Inc. # All rights reserved. # #----------------------------------------------------------------------------- """ A base class for editors that can be tracked by single project plugin projects. ""...
30.468085
79
0.482542
8be010cc8024c555c47ba5c68655fedb684a2926
2,336
py
Python
tests/components/netatmo/test_select.py
Andrew55529/core
c440a30aff0d8f573d8aa0d949068702dd36c386
[ "Apache-2.0" ]
1
2021-07-31T21:08:49.000Z
2021-07-31T21:08:49.000Z
tests/components/netatmo/test_select.py
flexy2dd/core
1019ee22ff13e5f542e868179d791e6a0d87369a
[ "Apache-2.0" ]
70
2020-07-16T02:07:46.000Z
2022-03-31T06:01:48.000Z
tests/components/netatmo/test_select.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
1
2020-10-25T12:21:56.000Z
2020-10-25T12:21:56.000Z
"""The tests for the Netatmo climate platform.""" from unittest.mock import patch from homeassistant.components.select import DOMAIN as SELECT_DOMAIN from homeassistant.components.select.const import ATTR_OPTION, ATTR_OPTIONS from homeassistant.const import ATTR_ENTITY_ID, CONF_WEBHOOK_ID, SERVICE_SELECT_OPTION from ...
35.393939
86
0.701199
8591ae3f43971790d3ce6d9b82d5f0db16ccfa3d
3,332
py
Python
word_embedding_models/sentence_similarities.py
acoli-repo/book-gen
ef93116d2d6d4f10ef5f29c296c1f55448793a4a
[ "MIT" ]
5
2019-06-15T14:41:46.000Z
2021-06-05T19:04:07.000Z
word_embedding_models/sentence_similarities.py
acoli-repo/book-gen
ef93116d2d6d4f10ef5f29c296c1f55448793a4a
[ "MIT" ]
null
null
null
word_embedding_models/sentence_similarities.py
acoli-repo/book-gen
ef93116d2d6d4f10ef5f29c296c1f55448793a4a
[ "MIT" ]
3
2019-04-28T19:45:46.000Z
2020-10-19T08:35:47.000Z
''' Takes as input one-line separated, whitespace-tokenized lemmata(!) and uses wordvector model (trained on lemmata) to produce sentence vectors for each line by vector average over tokens. Call this script with: python sentence_similarities.py aggregated-sentences.txt > sentence-similarities.txt where senti-intro...
32.666667
107
0.681573
999f7cacb7ed5e55c9bbecbeec6ad7b006df030b
1,033
py
Python
backend/admingym/users/admin/customAdminUsers.py
ManuelRivera98/AdminGym
caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13
[ "MIT" ]
1
2020-09-14T04:23:07.000Z
2020-09-14T04:23:07.000Z
backend/admingym/users/admin/customAdminUsers.py
ManuelRivera98/AdminGym
caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13
[ "MIT" ]
null
null
null
backend/admingym/users/admin/customAdminUsers.py
ManuelRivera98/AdminGym
caf2b6f5e9a0ed9e98567a036bec9a34b44ecf13
[ "MIT" ]
null
null
null
"""User models admin""" # Django from django.contrib import admin from django.contrib.auth.admin import UserAdmin # Models from admingym.users.models import User @admin.register(User) class CustomUserAdmin(UserAdmin): """User model admin.""" list_display = ('id', 'email', 'username', 'first_name', 'last_na...
24.023256
123
0.498548
957c392902a0fc01bb5780b5f8d8cec1b14e97d7
3,624
py
Python
gym_cellular_automata/forest_fire/bulldozer/utils/svg_paths.py
BrunoGupa/gym-cellular-automata
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
[ "MIT" ]
13
2021-02-22T20:26:11.000Z
2022-02-03T02:33:33.000Z
gym_cellular_automata/forest_fire/bulldozer/utils/svg_paths.py
BrunoGupa/gym-cellular-automata
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
[ "MIT" ]
1
2021-10-18T00:50:01.000Z
2021-10-18T00:50:01.000Z
gym_cellular_automata/forest_fire/bulldozer/utils/svg_paths.py
BrunoGupa/gym-cellular-automata
6b5d96f2ccf13d1c1da9e2dc4d5273553cfbc89f
[ "MIT" ]
2
2021-03-30T23:35:09.000Z
2021-09-03T16:37:40.000Z
BULLDOZER = "m 385.10334,444.02706 -7.42197,-164.24713 c -0.19278,-3.95196 -3.47001,-7.1328 -7.42196,-7.1328 H 217.00063 c -3.56639,0 -6.65085,2.60251 -7.32557,6.07252 l -16.19338,86.84663 -50.31515,-45.39929 c -5.68696,-6.2653 -13.78365,-10.21726 -22.94062,-10.21726 h -12.62698 c 4.81946,-59.37572 0,-82.79829 -56.9659...
906
2,068
0.721578
f0bfb9647e6b7955fd724106a0b68238930edca3
1,216
py
Python
unintended_ml_bias/new_madlibber/runner.py
IlanPrice/unintended-ml-bias-analysis
0cad5dc35ea5c03470001bfe9f2214e4be686dde
[ "Apache-2.0" ]
314
2017-09-13T19:51:34.000Z
2022-03-22T20:41:43.000Z
unintended_ml_bias/new_madlibber/runner.py
IlanPrice/unintended-ml-bias-analysis
0cad5dc35ea5c03470001bfe9f2214e4be686dde
[ "Apache-2.0" ]
41
2017-09-13T21:01:30.000Z
2021-11-30T20:21:59.000Z
unintended_ml_bias/new_madlibber/runner.py
IlanPrice/unintended-ml-bias-analysis
0cad5dc35ea5c03470001bfe9f2214e4be686dde
[ "Apache-2.0" ]
105
2017-10-11T18:20:36.000Z
2022-03-24T16:19:44.000Z
import argparse import format_helper import madlibber import path_helper import word_helper def parse_args(): """Returns parsed arguments.""" parser = argparse.ArgumentParser() parser.add_argument( '-input_words', type=str, required=True, help='The input words to substitute into templat...
25.87234
78
0.695724
0d5e6c5137383420c2a7149b3f2a1c693bd09fc3
8,837
py
Python
tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/contact_form.py
DouglasSherk/gaia
ca471df16080c97d0b7c0b830fdbfab3ab065e56
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/contact_form.py
DouglasSherk/gaia
ca471df16080c97d0b7c0b830fdbfab3ab065e56
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/apps/contacts/regions/contact_form.py
DouglasSherk/gaia
ca471df16080c97d0b7c0b830fdbfab3ab065e56
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from marionette_driver import expected, By, Wait from gaiatest.apps.base import Base class ContactForm(Base): na...
39.275556
108
0.708272
6b62dae6252345752a38a3ea9471c9cdad5931a5
8,393
py
Python
pythonFiles/jedi/parser_utils.py
geecodecommunity/GeeCode
18a4441f19ad4f61e760811e4b637d08c4b7ba37
[ "MIT" ]
null
null
null
pythonFiles/jedi/parser_utils.py
geecodecommunity/GeeCode
18a4441f19ad4f61e760811e4b637d08c4b7ba37
[ "MIT" ]
6
2020-07-17T08:45:58.000Z
2022-03-25T18:44:47.000Z
pythonFiles/jedi/parser_utils.py
geecodecommunity/GeeCode
18a4441f19ad4f61e760811e4b637d08c4b7ba37
[ "MIT" ]
null
null
null
import re import textwrap from inspect import cleandoc from parso.python import tree from parso.cache import parser_cache from jedi._compatibility import literal_eval, force_unicode _EXECUTE_NODES = {'funcdef', 'classdef', 'import_from', 'import_name', 'test', 'or_test', 'and_test', 'not_...
32.157088
92
0.588943
b7d82876024b11295cfa5ac9e8fd9a63441bd9da
5,771
py
Python
wagtail/core/templatetags/wagtailcore_tags.py
samgans/wagtail
48a8af71e5333fb701476702bd784fa407567e25
[ "BSD-3-Clause" ]
2
2019-05-23T01:31:18.000Z
2020-06-27T21:19:10.000Z
wagtail/core/templatetags/wagtailcore_tags.py
samgans/wagtail
48a8af71e5333fb701476702bd784fa407567e25
[ "BSD-3-Clause" ]
6
2020-08-26T03:00:03.000Z
2020-09-24T02:59:14.000Z
wagtail/core/templatetags/wagtailcore_tags.py
samgans/wagtail
48a8af71e5333fb701476702bd784fa407567e25
[ "BSD-3-Clause" ]
1
2021-02-15T18:59:53.000Z
2021-02-15T18:59:53.000Z
from django import template from django.shortcuts import reverse from django.template.defaulttags import token_kwargs from django.template.loader import render_to_string from django.utils.encoding import force_str from wagtail import VERSION, __version__ from wagtail.core.models import Page, Site from wagtail.core.ric...
31.883978
129
0.678045
e77ab1372b81027c5baf21b5ea7a72a0d2d7573d
12,105
py
Python
model.py
rafaie/cifar-100
e61e1e4265b4d4e3f3978d8522bcb81fc4ac0fbf
[ "Apache-2.0" ]
1
2020-08-26T09:56:54.000Z
2020-08-26T09:56:54.000Z
model.py
rafaie/cifar-100
e61e1e4265b4d4e3f3978d8522bcb81fc4ac0fbf
[ "Apache-2.0" ]
null
null
null
model.py
rafaie/cifar-100
e61e1e4265b4d4e3f3978d8522bcb81fc4ac0fbf
[ "Apache-2.0" ]
1
2019-11-06T10:32:58.000Z
2019-11-06T10:32:58.000Z
""" model.py: it includes the base model and other models """ import tensorflow as tf import numpy as np import os import functools # import hooks import util tf.logging.set_verbosity(tf.logging.INFO) # if you want to see the log info class BaseConfig(object): def __init__(self, name, data_path, img_augmentatio...
41.033898
118
0.606526
735b7c35f51ac23df7dff99004bf606b88b801d1
2,389
py
Python
common/test_factors.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
common/test_factors.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
common/test_factors.py
plilja/project-euler
646d1989cf15e903ef7e3c6e487284847d522ec9
[ "Apache-2.0" ]
null
null
null
import unittest from factors import * class TestPrimeFactors(unittest.TestCase): def test_prime_factors_of_1_is_1(self): self.assertEqual(prime_factors(1), [1]) def test_prime_factors_of_prime_number_is_the_prime_number(self): self.assertEqual(prime_factors(2), [2]) self.assertEqual(...
37.328125
70
0.678108
db9b3c37a101a9357e224d219a6c5a22ad2c6827
9,159
py
Python
elroee/ReportsScreenResearcher.py
vladigr1/soft-project
9d33d4a9a894b85742474c6bdc9accf38ff396f3
[ "MIT" ]
null
null
null
elroee/ReportsScreenResearcher.py
vladigr1/soft-project
9d33d4a9a894b85742474c6bdc9accf38ff396f3
[ "MIT" ]
null
null
null
elroee/ReportsScreenResearcher.py
vladigr1/soft-project
9d33d4a9a894b85742474c6bdc9accf38ff396f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ReportsScreenResearcher.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QMainWindow,QInputDialog, QLineEdit, Q...
49.508108
108
0.70892
9e4e851139dc4380a642ddee51d302b3200c2175
4,085
py
Python
lib/surface/compute/instances/set_min_cpu_platform.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/compute/instances/set_min_cpu_platform.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/instances/set_min_cpu_platform.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Google LLC. 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 requir...
37.136364
78
0.722399
ef04626e1ecf4359d6fe160d4e99a2cbe6e820cf
1,427
py
Python
myapp/forms.py
percevalm/aumyproject
b24b38005188ce9dd41ed663cf54dad5464afef3
[ "bzip2-1.0.6" ]
null
null
null
myapp/forms.py
percevalm/aumyproject
b24b38005188ce9dd41ed663cf54dad5464afef3
[ "bzip2-1.0.6" ]
16
2020-03-24T17:30:37.000Z
2022-03-11T23:57:41.000Z
myapp/forms.py
percevalm/aumyproject
b24b38005188ce9dd41ed663cf54dad5464afef3
[ "bzip2-1.0.6" ]
null
null
null
from django import forms from .models import Intbursary from django.contrib import admin ##aded for file size limit from django.template.defaultfilters import filesizeformat from django.utils.translation import ugettext_lazy as _ from django.conf import settings class IntbursaryForm(forms.ModelForm): class Meta: mo...
44.59375
349
0.761037
03c5143c95025ac31c8c73183705e2cb5ed3a453
584
py
Python
qiskit/test/mock/backends/kolkata/__init__.py
QAMP-Spring-2022-Transpiler-Hackathon/qiskit-terra
aee0dc4d538991560f212411db92cde5f511f65b
[ "Apache-2.0" ]
1,456
2017-08-05T16:33:05.000Z
2018-06-05T04:15:35.000Z
qiskit/test/mock/backends/kolkata/__init__.py
QAMP-Spring-2022-Transpiler-Hackathon/qiskit-terra
aee0dc4d538991560f212411db92cde5f511f65b
[ "Apache-2.0" ]
365
2017-08-04T06:09:16.000Z
2018-06-05T08:33:37.000Z
qiskit/test/mock/backends/kolkata/__init__.py
QAMP-Spring-2022-Transpiler-Hackathon/qiskit-terra
aee0dc4d538991560f212411db92cde5f511f65b
[ "Apache-2.0" ]
463
2017-08-05T04:10:01.000Z
2018-06-05T06:43:21.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
34.352941
77
0.767123
b338afc1974d48bcdf1c428bd547e4b20ade2af6
9,788
py
Python
python/ccxt/bter.py
GoChartingAdmin/ccxt
56cd9caec8c570bcb3038e0e18544d25a4bd14c3
[ "MIT" ]
2
2020-03-23T07:31:05.000Z
2021-05-17T10:34:31.000Z
python/ccxt/bter.py
GoChartingAdmin/ccxt
56cd9caec8c570bcb3038e0e18544d25a4bd14c3
[ "MIT" ]
null
null
null
python/ccxt/bter.py
GoChartingAdmin/ccxt
56cd9caec8c570bcb3038e0e18544d25a4bd14c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError class bter (Exchange): def describe(self): return self.deep_extend(super(bter, self).describe(), { 'id': 'bter', 'name': 'Bter', 'countries': ['VG...
36.386617
126
0.482734
49251dcd87ed9cd037cb6072b6a08f175d1c045a
3,368
py
Python
tflib/vision/dataset/mnist.py
tonyshao5/Tensorflow-up
f8f8fce9436c40cad298f6211db2be3a18480bad
[ "MIT" ]
10
2018-05-21T12:56:23.000Z
2020-12-08T17:23:50.000Z
tflib/vision/dataset/mnist.py
tonyshao5/Tensorflow-up
f8f8fce9436c40cad298f6211db2be3a18480bad
[ "MIT" ]
null
null
null
tflib/vision/dataset/mnist.py
tonyshao5/Tensorflow-up
f8f8fce9436c40cad298f6211db2be3a18480bad
[ "MIT" ]
9
2018-07-20T00:04:35.000Z
2021-07-10T14:26:01.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import gzip import multiprocessing import os import struct import subprocess import numpy as np import tensorflow as tf from tflib.data.memory_data import MemoryData _N_CPU = multiprocessing.cpu_count() de...
32.699029
120
0.634204
9cd6406309ae44f226813f5824347ed11321d0e9
2,373
py
Python
src/pkgcore/repository/configured.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/repository/configured.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
src/pkgcore/repository/configured.py
mgorny/pkgcore
ab4a718aa1626f4edeb385383f5595a1e262b0dc
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2006-2008 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD """ wrap a repository, binding configuration to pkgs returned from the repository """ __all__ = ("tree",) from functools import partial from snakeoil.klass import GetAttrProxy, DirProxy from pkgcore.operations.repo import operations_prox...
32.067568
79
0.66161
e5ececcbf83ac62d16e79589186edac979d9211d
7,808
py
Python
client.py
Bo0gieMan-VP/PFD
3f3cc6809e275c7f11231d4c9c2766481f1b6d5b
[ "Unlicense" ]
null
null
null
client.py
Bo0gieMan-VP/PFD
3f3cc6809e275c7f11231d4c9c2766481f1b6d5b
[ "Unlicense" ]
null
null
null
client.py
Bo0gieMan-VP/PFD
3f3cc6809e275c7f11231d4c9c2766481f1b6d5b
[ "Unlicense" ]
null
null
null
import os import socket import time import keyboard from getmac import get_mac_address as gma from sys import argv is_admin = False COLOR = { 'RED' : '\033[1;91m', 'UNDERLINE_PURPLE' : '\033[4;34m', 'GREEN' : '\033[1;92m', 'YELLOW' : '\033[1;33m',...
35.652968
130
0.501921
f98a46878662e6e2c6b9b4004aa7749d6a955f7d
1,600
py
Python
lib/boost_1.66.0/tools/build/test/custom_generator.py
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
918
2016-12-22T02:53:08.000Z
2022-03-22T06:21:35.000Z
lib/boost_1.66.0/tools/build/test/custom_generator.py
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
203
2016-12-27T12:09:03.000Z
2022-03-30T20:46:55.000Z
lib/boost_1.66.0/tools/build/test/custom_generator.py
jrmie/math
2850ec262181075a5843968e805dc9ad1654e069
[ "BSD-3-Clause" ]
122
2016-12-22T17:38:09.000Z
2022-02-22T14:25:49.000Z
#!/usr/bin/python # Copyright 2003, 2004, 2005 Vladimir Prus # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) # Attempt to declare a generator for creating OBJ from RC files. That generator # should be considered together wi...
23.880597
81
0.70125
d7b75d135c47b8e7902005b957d945169f26b42f
99
py
Python
src/main.py
guo40020/xterm-parser
4b306cc59265e48aef748be6c868a1553ee1fd28
[ "MIT" ]
3
2021-10-08T02:28:34.000Z
2021-12-21T07:37:56.000Z
src/main.py
guo40020/xterm-parser
4b306cc59265e48aef748be6c868a1553ee1fd28
[ "MIT" ]
null
null
null
src/main.py
guo40020/xterm-parser
4b306cc59265e48aef748be6c868a1553ee1fd28
[ "MIT" ]
null
null
null
from src import xterm_parser if __name__ == '__main__': xterm_parser.TermEventTracker().run()
19.8
41
0.747475
e79c5deab5840f439cde00956992d4db8947c8fc
6,947
py
Python
cryptography/lab2/server/crypto/aes.py
tonykozlovsky/bsu
6ea290ec69bf4ac1a2bfc4c800065ae1c68039a3
[ "MIT" ]
113
2017-02-02T13:09:21.000Z
2022-03-14T08:54:41.000Z
cryptography/lab2/server/crypto/aes.py
tonykozlovsky/bsu
6ea290ec69bf4ac1a2bfc4c800065ae1c68039a3
[ "MIT" ]
12
2017-04-14T12:01:50.000Z
2022-03-08T22:47:22.000Z
cryptography/lab2/server/crypto/aes.py
Drapegnik/bsu
769ddac58eddd5877e40949227998575fd4dec77
[ "MIT" ]
78
2017-03-18T22:36:13.000Z
2022-02-20T14:42:34.000Z
""" Advanced Encryption Standard aka Rijndael algorithm http://en.wikipedia.org/wiki/Advanced_Encryption_Standard """ from crypto.constants import SBOX, INV_SBOX, RCON from crypto.utils import mul_by_02, mul_by_03, mul_by_09, mul_by_0b, mul_by_0d, mul_by_0e, state_to_list ROWS_NUM = 4 COLS_NUM = 4 KEY_LENGTH = ROWS_NU...
37.349462
114
0.614942
8b70dce1d1b199842c4a599b0d23d0bb7c4fa64b
3,436
py
Python
pylith/topology/Subfield.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
pylith/topology/Subfield.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
pylith/topology/Subfield.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
null
null
null
# ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://geodynamics.org). # # Copy...
32.72381
139
0.598952
b86ed33eeaa76f47f00af26fbd4d48fb7d887a9e
580
py
Python
app/models/source.py
koyoo-maxwel/news
656166c47a5dc79b9f4b8516153c90a57f808cc9
[ "MIT" ]
2
2019-01-21T09:04:16.000Z
2019-01-21T09:04:17.000Z
app/models/source.py
koyoo-maxwel/news
656166c47a5dc79b9f4b8516153c90a57f808cc9
[ "MIT" ]
null
null
null
app/models/source.py
koyoo-maxwel/news
656166c47a5dc79b9f4b8516153c90a57f808cc9
[ "MIT" ]
2
2019-02-17T11:33:28.000Z
2019-06-24T06:36:43.000Z
class Source: ''' Movie class to define Movie Objects ''' def __init__(self, id, name, description): self.id =id self.name = name self.description = description class Articles: ''' defines the articles objects ''' def __init__(self, blue, id, title, author, des...
24.166667
91
0.606897
cdb5285c2d64ccaea6fc3dca4916765e513e93f9
1,808
py
Python
tables/tests/test_garbage.py
crs4/PyTables
02d23d41f714122fd5fd4f7e1063c0b31d1a774b
[ "BSD-3-Clause" ]
1
2020-12-27T13:53:00.000Z
2020-12-27T13:53:00.000Z
tables/tests/test_garbage.py
mrgloom/PyTables
c30c6f40cd3d5996ee711d5685328085f3569cfc
[ "BSD-3-Clause" ]
null
null
null
tables/tests/test_garbage.py
mrgloom/PyTables
c30c6f40cd3d5996ee711d5685328085f3569cfc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ######################################################################## # # License: BSD # Created: 2005-09-20 # Author: Ivan Vilata i Balaguer - ivan@selidor.net # # $Id$ # ######################################################################## """Test module for detecting uncollectable gar...
25.111111
77
0.561394
869f96901c1d0bf34d7df63c82034a77158f00c6
2,373
py
Python
homeassistant/components/geo_location/__init__.py
AlbertoLopSie/home-assistant
d89e8ead61344c3e3c0420c1174e0e1077ba0410
[ "Apache-2.0" ]
1
2021-05-31T18:39:08.000Z
2021-05-31T18:39:08.000Z
homeassistant/components/geo_location/__init__.py
AlbertoLopSie/home-assistant
d89e8ead61344c3e3c0420c1174e0e1077ba0410
[ "Apache-2.0" ]
null
null
null
homeassistant/components/geo_location/__init__.py
AlbertoLopSie/home-assistant
d89e8ead61344c3e3c0420c1174e0e1077ba0410
[ "Apache-2.0" ]
2
2019-01-21T05:49:23.000Z
2019-02-19T16:30:48.000Z
"""Support for Geolocation.""" from datetime import timedelta import logging from typing import Optional from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE from homeassistant.helpers.config_validation import ( # noqa PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE, ) from homeassistant.helpers.entity import ...
27.593023
75
0.678466
2f4a158e0ad7cf5b36c514ccb0534a770685d5ba
3,259
py
Python
kitsune/messages/tests/test_templates.py
theresnotime/kitsune
0757b267b0d332264167d31ce84e342263e1c635
[ "BSD-3-Clause" ]
null
null
null
kitsune/messages/tests/test_templates.py
theresnotime/kitsune
0757b267b0d332264167d31ce84e342263e1c635
[ "BSD-3-Clause" ]
null
null
null
kitsune/messages/tests/test_templates.py
theresnotime/kitsune
0757b267b0d332264167d31ce84e342263e1c635
[ "BSD-3-Clause" ]
null
null
null
from pyquery import PyQuery as pq from kitsune.messages.models import OutboxMessage from kitsune.sumo.templatetags.jinja_helpers import urlparams from kitsune.sumo.tests import TestCase from kitsune.sumo.urlresolvers import reverse from kitsune.users.tests import UserFactory class SendMessageTestCase(TestCase): ...
39.26506
99
0.664621
9560d684a418376ae7ec1fab49e266002ec3f87f
440
py
Python
mundo 2/ex052.py
jorgeduartejr/Ex-PYTHON
266b656ad94065e77ece7cdbc9e09062c5933100
[ "MIT" ]
null
null
null
mundo 2/ex052.py
jorgeduartejr/Ex-PYTHON
266b656ad94065e77ece7cdbc9e09062c5933100
[ "MIT" ]
null
null
null
mundo 2/ex052.py
jorgeduartejr/Ex-PYTHON
266b656ad94065e77ece7cdbc9e09062c5933100
[ "MIT" ]
null
null
null
print('Condição de existência de um número primo') tot = 0 num = int(input('Digite aqui um número: ')) for c in range(1, num + 1): if num % c == 0: print('\033[33m', end='') tot += 1 else: print('\033[31m', end='') print('{} '.format(c), end='') print('\n\033[m0 O número {}, foi divi...
27.5
71
0.552273
6105d829a63d62da46917be574ff9d4347be35fe
3,523
py
Python
data/transcoder_evaluation_gfg/python/LONGEST_COMMON_SUBSTRING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/LONGEST_COMMON_SUBSTRING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/LONGEST_COMMON_SUBSTRING.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( X , Y , m , n ) : LCSuff = [ [ 0 for k in range ( n + 1 ) ] for l in range ( m + 1 ) ] result = 0 for i...
85.926829
485
0.278172
22c9ae5ea1505fe49acda641b3184e33a5110121
4,968
py
Python
test/functional/p2p_time_offset.py
INFINCOIN/INFINCOINCASH
9d58549f28752019dbc7bb4227b99bebb3fdcc49
[ "MIT" ]
1
2021-12-30T23:57:35.000Z
2021-12-30T23:57:35.000Z
test/functional/p2p_time_offset.py
INFINCOIN/INFINCOINCASH
9d58549f28752019dbc7bb4227b99bebb3fdcc49
[ "MIT" ]
null
null
null
test/functional/p2p_time_offset.py
INFINCOIN/INFINCOINCASH
9d58549f28752019dbc7bb4227b99bebb3fdcc49
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019-2020 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import time from test_framework.test_framework import infincoincashTestFramework from test_framework.util import...
41.4
103
0.605475
35bd5b9b18e9444f252b6010f7e3aad657f0687d
1,524
py
Python
nwbwidgets/test/test_image.py
alejoe91/nwb-jupyter-widgets
5703f235c5c1a1bf8b32c9af6de2a6907788ce1a
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbwidgets/test/test_image.py
alejoe91/nwb-jupyter-widgets
5703f235c5c1a1bf8b32c9af6de2a6907788ce1a
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbwidgets/test/test_image.py
alejoe91/nwb-jupyter-widgets
5703f235c5c1a1bf8b32c9af6de2a6907788ce1a
[ "BSD-3-Clause-LBNL" ]
null
null
null
import ipywidgets as widgets import matplotlib.pyplot as plt import numpy as np from nwbwidgets.image import show_rbga_image, show_grayscale_image, show_index_series, show_image_series from nwbwidgets.view import default_neurodata_vis_spec from pynwb.base import TimeSeries from pynwb.image import RGBImage, GrayscaleIma...
39.076923
104
0.73622
652e4587387b70122cf3af504bbed98f725cd810
6,028
py
Python
apps/rgb_colourspace_chromatically_adapted_primaries.py
colour-science/colour-dash
4f8713b8c324e3395849265713d3ab8f918129be
[ "BSD-3-Clause" ]
2
2018-06-06T02:29:29.000Z
2021-12-15T03:38:30.000Z
apps/rgb_colourspace_chromatically_adapted_primaries.py
colour-science/colour-dash
4f8713b8c324e3395849265713d3ab8f918129be
[ "BSD-3-Clause" ]
1
2021-06-08T20:33:00.000Z
2021-06-08T20:33:00.000Z
apps/rgb_colourspace_chromatically_adapted_primaries.py
colour-science/colour-dash
4f8713b8c324e3395849265713d3ab8f918129be
[ "BSD-3-Clause" ]
1
2018-06-19T11:19:13.000Z
2018-06-19T11:19:13.000Z
# -*- coding: utf-8 -*- """ RGB Colourspace Chromatically Adapted Primaries Application =========================================================== """ import sys import urllib.parse from dash.dependencies import Input, Output from dash_core_components import Dropdown, Link, Markdown, Slider from dash_html_components ...
31.233161
79
0.584605
63771c584faf382c1203f3f9114700120d14fcef
428
py
Python
src/test.py
szlatyka/SemilabFunStuffRoomA
a0767313ae11285b3338e96b8b5d8c3ec5a20222
[ "MIT" ]
null
null
null
src/test.py
szlatyka/SemilabFunStuffRoomA
a0767313ae11285b3338e96b8b5d8c3ec5a20222
[ "MIT" ]
null
null
null
src/test.py
szlatyka/SemilabFunStuffRoomA
a0767313ae11285b3338e96b8b5d8c3ec5a20222
[ "MIT" ]
1
2021-01-05T13:46:22.000Z
2021-01-05T13:46:22.000Z
import Api #Api.User.Create("gábor", "absc") usr = Api.User.ByName("gábor") isr2 = Api.User(1); print("#ID: " + str(isr2.name())) #Api.Group.Create("Test csopi") grp = Api.Group(1); grp.assign(usr) print(); grp.remove(usr) print("#ID: " + str(usr.group())); print("#ID: " + str(usr.group())); print(Api.Group.All(...
15.285714
34
0.635514
04e4a019d61c4ff49483883faa4f4026b83b0303
236
py
Python
py3/lambda_function/source/taskcat_lambda/lambda_function.py
tonynv/lambda_layer
a39abe217a307a6ba03c36a252d69c59416db95a
[ "Apache-2.0" ]
null
null
null
py3/lambda_function/source/taskcat_lambda/lambda_function.py
tonynv/lambda_layer
a39abe217a307a6ba03c36a252d69c59416db95a
[ "Apache-2.0" ]
null
null
null
py3/lambda_function/source/taskcat_lambda/lambda_function.py
tonynv/lambda_layer
a39abe217a307a6ba03c36a252d69c59416db95a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ taskat lambda stub """ from taskcat._cli import get_installed_version as taskcat_version def lambda_handler(event, context): """ Return taskcat version in layer """ return taskcat_version()
15.733333
65
0.707627
6c0f0336eaeb41baf7cf08f03b06ad0d2c6afbba
11,180
py
Python
electrum/gui/kivy/uix/dialogs/tx_dialog.py
Yun118/electrum
780a5404fb0b3ee7c406faf70a6e79e5df872a03
[ "MIT" ]
2
2021-06-24T15:49:31.000Z
2021-06-24T15:52:41.000Z
electrum/gui/kivy/uix/dialogs/tx_dialog.py
Yun118/electrum
780a5404fb0b3ee7c406faf70a6e79e5df872a03
[ "MIT" ]
null
null
null
electrum/gui/kivy/uix/dialogs/tx_dialog.py
Yun118/electrum
780a5404fb0b3ee7c406faf70a6e79e5df872a03
[ "MIT" ]
null
null
null
import copy from datetime import datetime from typing import NamedTuple, Callable, TYPE_CHECKING from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from kivy.clock import Clock from kivy.uix.label import Label from kivy.uix.dropdown import...
36.416938
118
0.570394
57fb811bd25d7f4f416fbc3fa415443765a2a46d
36,757
py
Python
madgraph/various/q_polynomial.py
jlrainbolt/MG5_v2_6_1
241f0c6f309342d6e8b813284467b2edd393c7d6
[ "NCSA" ]
5
2018-10-23T14:37:18.000Z
2021-11-22T20:59:02.000Z
madgraph/various/q_polynomial.py
jlrainbolt/MG5_v2_6_1
241f0c6f309342d6e8b813284467b2edd393c7d6
[ "NCSA" ]
26
2018-10-08T15:49:32.000Z
2020-05-15T13:33:36.000Z
madgraph/various/q_polynomial.py
jlrainbolt/MG5_v2_6_1
241f0c6f309342d6e8b813284467b2edd393c7d6
[ "NCSA" ]
4
2019-02-18T11:42:18.000Z
2021-11-11T20:46:08.000Z
import array import copy import math class PolynomialError(Exception): pass def get_number_of_coefs_for_rank(r): """ Returns the number of independent coefficients there is in a fully symmetric tensor of rank r """ return sum([((3+ri)*(2+ri)*(1+ri))/6 for ri in range(0,r+1)]) class Polynomial(object): ...
39.608836
99
0.543216
c735ebc57e704f5448afbf68d070a01454572f41
12,321
py
Python
homeassistant/components/apple_tv/__init__.py
ekos2001/core
6019bcf9d140458dba3b7eb39d99e9e2d4f2354a
[ "Apache-2.0" ]
1
2017-05-30T22:21:05.000Z
2017-05-30T22:21:05.000Z
homeassistant/components/apple_tv/__init__.py
ekos2001/core
6019bcf9d140458dba3b7eb39d99e9e2d4f2354a
[ "Apache-2.0" ]
51
2020-10-14T01:19:07.000Z
2022-03-31T06:02:48.000Z
homeassistant/components/apple_tv/__init__.py
foxy82/home-assistant
79ebe930e31a91967928a5642c98e58b522109b0
[ "Apache-2.0" ]
1
2021-08-16T02:53:15.000Z
2021-08-16T02:53:15.000Z
"""The Apple TV integration.""" import asyncio import logging from random import randrange from pyatv import connect, exceptions, scan from pyatv.const import Protocol from homeassistant.components.media_player import DOMAIN as MP_DOMAIN from homeassistant.components.remote import DOMAIN as REMOTE_DOMAIN from homeass...
32.253927
87
0.625355
a96eea54036e159e2a129d3d5c3ca3f59bd59c1a
8,051
py
Python
visualizer/show3d_balls.py
KaidongLi/pytorch-LatticePointClassifier
5c00bb0f808a928ea57acb8a79364d62eb955cee
[ "MIT" ]
null
null
null
visualizer/show3d_balls.py
KaidongLi/pytorch-LatticePointClassifier
5c00bb0f808a928ea57acb8a79364d62eb955cee
[ "MIT" ]
null
null
null
visualizer/show3d_balls.py
KaidongLi/pytorch-LatticePointClassifier
5c00bb0f808a928ea57acb8a79364d62eb955cee
[ "MIT" ]
1
2022-03-29T21:03:38.000Z
2022-03-29T21:03:38.000Z
import numpy as np import ctypes as ct import cv2 import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) showsz = 800 mousex, mousey = 0.5, 0.5 zoom = 1.0 changed = True def onmouse(*args): global mousex, mousey, changed y = args[1] x = args[2] mousex = x / float(showsz) mouse...
35.782222
115
0.510744
ae3174f1d33b7a3d7536ca313e3f58e194dfba21
3,005
py
Python
tests/lib/git_submodule_helpers.py
merwok-forks/pip
b99065a6363a85e206218be24be02fe592d39d64
[ "MIT" ]
1
2019-06-27T11:57:35.000Z
2019-06-27T11:57:35.000Z
tests/lib/git_submodule_helpers.py
merwok-forks/pip
b99065a6363a85e206218be24be02fe592d39d64
[ "MIT" ]
null
null
null
tests/lib/git_submodule_helpers.py
merwok-forks/pip
b99065a6363a85e206218be24be02fe592d39d64
[ "MIT" ]
null
null
null
from __future__ import absolute_import import textwrap def _create_test_package_submodule(env): env.scratch_path.join("version_pkg_submodule").mkdir() submodule_path = env.scratch_path / 'version_pkg_submodule' env.run('touch', 'testfile', cwd=submodule_path) env.run('git', 'init', cwd=submodule_path...
36.204819
71
0.581697
b6f7958b57ccdd1da7fbb06506f1f421fc48bdbc
7,358
py
Python
utils/py27/Lib/ctypes/test/test_pointers.py
xahmol/8bit-Unity
b4f3bee00e012ca1755afba550a5270dce0a1054
[ "BSD-2-Clause" ]
42
2018-12-12T01:00:59.000Z
2022-03-27T07:32:29.000Z
utils/py27/Lib/ctypes/test/test_pointers.py
xahmol/8bit-Unity
b4f3bee00e012ca1755afba550a5270dce0a1054
[ "BSD-2-Clause" ]
13
2020-11-06T13:50:45.000Z
2022-01-25T07:17:37.000Z
utils/py27/Lib/ctypes/test/test_pointers.py
xahmol/8bit-Unity
b4f3bee00e012ca1755afba550a5270dce0a1054
[ "BSD-2-Clause" ]
8
2020-11-14T04:30:26.000Z
2021-01-16T17:55:19.000Z
import unittest, sys from ctypes import * import _ctypes_test ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint, c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float] python_types = [int, int, int, int, int, long, int, long, long, long, float, float] c...
33.294118
93
0.56374
8b0c1171fb90aabb892aa298324906eb6ba7cee6
33,736
py
Python
test/functional/rpc_fundrawtransaction.py
XziimP/bitgesell
cdf1295f44e840e5603b22f2c2cdfec9572c7bcf
[ "MIT" ]
1
2020-10-13T15:59:46.000Z
2020-10-13T15:59:46.000Z
test/functional/rpc_fundrawtransaction.py
XziimP/bitgesell
cdf1295f44e840e5603b22f2c2cdfec9572c7bcf
[ "MIT" ]
2
2020-12-03T12:20:22.000Z
2021-01-27T07:26:34.000Z
test/functional/rpc_fundrawtransaction.py
XziimP/bitgesell
cdf1295f44e840e5603b22f2c2cdfec9572c7bcf
[ "MIT" ]
1
2020-11-10T21:05:32.000Z
2020-11-10T21:05:32.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framework imp...
44.447958
165
0.635226
965e9b3499c2ff518d493b6fecc004e8295d2120
7,809
py
Python
tests/scripts/thread-cert/Cert_7_1_04_BorderRouterAsRouter.py
sarah-iot/openthread
8210a02400c145eb862b65e32040ed0415ba36c2
[ "BSD-3-Clause" ]
69
2021-12-16T01:34:09.000Z
2022-03-31T08:27:39.000Z
tests/scripts/thread-cert/Cert_7_1_04_BorderRouterAsRouter.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
6
2022-01-12T18:22:08.000Z
2022-03-25T10:19:27.000Z
tests/scripts/thread-cert/Cert_7_1_04_BorderRouterAsRouter.py
xuyirio/openthread
349041bc61e899acdccefea455c3401c05e1318b
[ "BSD-3-Clause" ]
21
2021-12-20T09:05:45.000Z
2022-03-28T02:52:28.000Z
#!/usr/bin/env python3 # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
46.760479
303
0.652068
74e6f9d7e0561f34b295e7b42ddfc8e0c84a6df6
212
py
Python
perception/mil_vision/object_classification/HOG_descriptor.py
marcgabe15/mil_common
75fd308365f4b2754874add917e0a0151b39b924
[ "MIT" ]
27
2020-02-17T21:54:09.000Z
2022-03-18T17:49:23.000Z
perception/mil_vision/object_classification/HOG_descriptor.py
marcgabe15/mil_common
75fd308365f4b2754874add917e0a0151b39b924
[ "MIT" ]
325
2019-09-11T14:13:56.000Z
2022-03-31T00:38:30.000Z
perception/mil_vision/object_classification/HOG_descriptor.py
marcgabe15/mil_common
75fd308365f4b2754874add917e0a0151b39b924
[ "MIT" ]
24
2019-09-16T00:29:45.000Z
2022-03-06T10:56:38.000Z
import cv2 class HOGDescriptor(object): def __init__(self): self.hog = cv2.HOGDescriptor((8, 8), (8, 8), (4, 4), (8, 8), 9) def get_descriptor(self, img): return self.hog.compute(img)
19.272727
71
0.599057
bc93dccfa20f32fa4c9cd01f54bf93dee9710710
1,380
py
Python
medium/109_convert_sorted_linked_list_to_binary_search_tree.py
Sukhrobjon/leetcode
547c200b627c774535bc22880b16d5390183aeba
[ "MIT" ]
null
null
null
medium/109_convert_sorted_linked_list_to_binary_search_tree.py
Sukhrobjon/leetcode
547c200b627c774535bc22880b16d5390183aeba
[ "MIT" ]
null
null
null
medium/109_convert_sorted_linked_list_to_binary_search_tree.py
Sukhrobjon/leetcode
547c200b627c774535bc22880b16d5390183aeba
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class...
25.090909
76
0.539855
c41121d43088a6a41cadb457f4081bc2d2db10d6
6,862
py
Python
bin/dm_redcap_scan_completed.py
kyjimmy/datman
262ead8ee6b6357a07f9142c1203e9e607f0a3ea
[ "Apache-2.0" ]
17
2015-09-08T13:56:40.000Z
2022-01-20T19:09:33.000Z
bin/dm_redcap_scan_completed.py
kyjimmy/datman
262ead8ee6b6357a07f9142c1203e9e607f0a3ea
[ "Apache-2.0" ]
169
2015-02-23T23:11:15.000Z
2022-03-28T20:32:22.000Z
bin/dm_redcap_scan_completed.py
kyjimmy/datman
262ead8ee6b6357a07f9142c1203e9e607f0a3ea
[ "Apache-2.0" ]
21
2015-09-15T16:22:44.000Z
2021-11-05T19:03:02.000Z
#!/usr/bin/env python """ Add MR comments from the Scan Completed instrument on REDCap to the database. Usage: dm_redcap_scan_completed.py [options] <study> Arguments: <study> Name of the study to process Options: -q --quiet Less logging -v --verbose Verbose logging -d...
28.953586
78
0.645293
db07e044b95c0a836ec0465d00f0696e0cd11b48
2,082
py
Python
custom_components/hacs/__init__.py
Swampen/home-assistant-config
c9cd4027df1d460fd27d469a53804320a0d1aaa1
[ "MIT" ]
1,383
2018-06-23T20:16:57.000Z
2022-03-30T09:10:06.000Z
config/custom_components/hacs/__init__.py
jclark2019/home-assistant-config
a1354a8889e12b961fd16f4800c452b4fd0124f0
[ "MIT" ]
303
2020-10-16T18:38:06.000Z
2022-03-31T07:16:38.000Z
config/custom_components/hacs/__init__.py
jclark2019/home-assistant-config
a1354a8889e12b961fd16f4800c452b4fd0124f0
[ "MIT" ]
270
2018-12-17T05:54:10.000Z
2022-03-23T20:28:54.000Z
""" HACS gives you a powerful UI to handle downloads of all your custom needs. For more details about this integration, please refer to the documentation at https://hacs.xyz/ """ from __future__ import annotations from typing import TYPE_CHECKING, Any from homeassistant.config_entries import ConfigEntry from homeass...
30.173913
89
0.74976