hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7973d04b228aa0d9c17803b93c2f7ef56750e140
3,540
py
Python
drivers/sqlite.py
leibatt/ssb-tools
f64b3b66231fbd6cc2fe706f63fe96f0fbc88f9c
[ "BSD-3-Clause" ]
null
null
null
drivers/sqlite.py
leibatt/ssb-tools
f64b3b66231fbd6cc2fe706f63fe96f0fbc88f9c
[ "BSD-3-Clause" ]
null
null
null
drivers/sqlite.py
leibatt/ssb-tools
f64b3b66231fbd6cc2fe706f63fe96f0fbc88f9c
[ "BSD-3-Clause" ]
null
null
null
import os import json import sqlite3 import datetime, time import itertools import util import queue from queue import Empty import threading from threading import Thread import logging import sqlite3 import datetime, time import itertools import util logger = logging.getLogger("ssb") class SSBDriver: def init(se...
31.891892
122
0.618079
7973d1bce929b5296c2654129bb7712c073dedcd
5,104
py
Python
model_search/data/csv_data_for_binary.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
model_search/data/csv_data_for_binary.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
model_search/data/csv_data_for_binary.py
LinqCod/model_search
d90bc39994bc2a5f5028035ac954f796eda03310
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.486486
80
0.697688
7973d21ef4926dd68753db62d8de807e0016b429
2,118
py
Python
main.py
KyleKun/chika-s-script
f1351cbe0135be4f2b7d233c66df105fdf3d4151
[ "MIT" ]
2
2020-04-24T19:22:41.000Z
2020-05-03T23:46:30.000Z
main.py
KyleKun/chika-s-script
f1351cbe0135be4f2b7d233c66df105fdf3d4151
[ "MIT" ]
null
null
null
main.py
KyleKun/chika-s-script
f1351cbe0135be4f2b7d233c66df105fdf3d4151
[ "MIT" ]
null
null
null
import os import sys import json import subprocess as sp from colorama import init from termcolor import colored from core.history import History from core.download import Download from core.add_anime import AddAnime from utils.ascii_art import MenuArt def main(): # Init Colorama init(strip=not sys.stdout.isa...
26.475
100
0.550519
7973d248dc6795daa6a1f9fa026a5db619428033
2,910
py
Python
docs/examples/rapid_capture_threading.py
TRex22/picamerax
2e7b05c92331b315533835596862a643ba55b021
[ "BSD-3-Clause" ]
17
2021-03-23T09:23:13.000Z
2022-01-27T16:23:48.000Z
docs/examples/rapid_capture_threading.py
TRex22/picamerax
2e7b05c92331b315533835596862a643ba55b021
[ "BSD-3-Clause" ]
7
2021-05-26T13:40:46.000Z
2022-03-12T00:47:49.000Z
docs/examples/rapid_capture_threading.py
TRex22/picamerax
2e7b05c92331b315533835596862a643ba55b021
[ "BSD-3-Clause" ]
6
2021-04-04T15:43:02.000Z
2021-05-18T10:34:00.000Z
import io import time import threading import queue import picamerax class ImageProcessor(threading.Thread): def __init__(self, owner): super(ImageProcessor, self).__init__() self.terminated = False self.owner = owner self.start() def run(self): # This method runs in a ...
35.487805
79
0.575945
7973d27d7fbcb198ee572eeee934708cdd20553b
13,383
py
Python
CDARTS_segmentation/tools/utils/darts_utils.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
21
2020-06-19T01:05:38.000Z
2020-08-11T02:15:03.000Z
CDARTS_segmentation/tools/utils/darts_utils.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
1
2020-07-11T17:01:07.000Z
2020-07-11T17:01:07.000Z
CDARTS_segmentation/tools/utils/darts_utils.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
1
2020-11-02T02:43:20.000Z
2020-11-02T02:43:20.000Z
import os import math import numpy as np import torch import shutil from torch.autograd import Variable import time from tqdm import tqdm from genotypes import PRIMITIVES import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') from matplotlib import pyplot as plt from pdb import set_...
38.019886
196
0.60009
7973d2efd469387f8257ebcd90a0571243375462
578
py
Python
GmailWrapper_JE/venv/Lib/site-packages/oauthlib/oauth2/rfc6749/clients/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
GmailWrapper_JE/venv/Lib/site-packages/oauthlib/oauth2/rfc6749/clients/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
GmailWrapper_JE/venv/Lib/site-packages/oauthlib/oauth2/rfc6749/clients/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
# -*- coding: utf-8 -*- """ oauthlib.oauth2.rfc6749 ~~~~~~~~~~~~~~~~~~~~~~~ This module is an implementation of various logic needed for consuming OAuth 2.0 RFC6749. """ from __future__ import absolute_import, unicode_literals from .base import Client, AUTH_HEADER, URI_QUERY, BODY from .web_application imp...
34
58
0.783737
7973d3549d5ef9c315642d438c14a1b381766289
12,123
py
Python
model.py
WAPAY/EPM
4c4426f3b6a86d74f2d4c2c8d0c82f9475103eb7
[ "Apache-2.0" ]
null
null
null
model.py
WAPAY/EPM
4c4426f3b6a86d74f2d4c2c8d0c82f9475103eb7
[ "Apache-2.0" ]
null
null
null
model.py
WAPAY/EPM
4c4426f3b6a86d74f2d4c2c8d0c82f9475103eb7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os os.environ['TF_KERAS'] = "1" import tensorflow as tf import config from bert4keras.models import build_transformer_model from module import label_smoothing, noam_scheme import logging import constant import numpy as np import law_accu_term_constraint logging.basicConfig(level=logging.I...
48.298805
159
0.653221
7973d3559a7fae29a719b43db64e6a2bbc4226c5
303
py
Python
take_photo.py
Raghav714/Facial-based-attendence
2bb14691fd6f7f08bd61588d6b6f4aeeb8b43cb0
[ "MIT" ]
4
2018-10-02T06:37:44.000Z
2018-11-16T06:35:30.000Z
take_photo.py
Raghav714/facial-based-attendence
2bb14691fd6f7f08bd61588d6b6f4aeeb8b43cb0
[ "MIT" ]
null
null
null
take_photo.py
Raghav714/facial-based-attendence
2bb14691fd6f7f08bd61588d6b6f4aeeb8b43cb0
[ "MIT" ]
null
null
null
import cv2 camera = cv2.VideoCapture(0) while True: return_value,image = camera.read() gray = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY) cv2.imshow('image',gray) if cv2.waitKey(1)& 0xFF == ord('s'): cv2.imwrite('test.jpg',gray) break camera.release() cv2.destroyAllWindows()
25.25
49
0.666667
7973d53bfe26fc658c9e284879bcd4b0e84b4482
12,788
py
Python
lib/modules/_md5.py
JJTech0130/pypyjs-pwa
1b5820212971cfab683715b21cd97e335b681546
[ "MIT" ]
195
2016-01-14T16:03:02.000Z
2021-12-29T09:15:02.000Z
lib/modules/_md5.py
JJTech0130/pypyjs-pwa
1b5820212971cfab683715b21cd97e335b681546
[ "MIT" ]
75
2016-01-14T16:03:02.000Z
2020-04-29T22:51:53.000Z
lib/modules/_md5.py
JJTech0130/pypyjs-pwa
1b5820212971cfab683715b21cd97e335b681546
[ "MIT" ]
11
2016-01-15T17:30:16.000Z
2020-07-30T03:58:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note that PyPy contains also a built-in module 'md5' which will hide # this one if compiled in. """A sample implementation of MD5 in pure Python. This is an implementation of the MD5 hash function, as specified by RFC 1321, in pure Python. It was implemented using Bruc...
32.874036
74
0.522443
7973d58f465fe9692aeefa76dfff5279ff934d23
12,786
py
Python
cnn/MixedLayer.py
aqui-tna/darts-UNIQ
293a27b104bc0f53c6093829d1184686b788fba9
[ "Apache-2.0" ]
6
2019-04-28T05:30:00.000Z
2020-01-21T08:16:13.000Z
cnn/MixedLayer.py
aqui-tna/darts-UNIQ
293a27b104bc0f53c6093829d1184686b788fba9
[ "Apache-2.0" ]
null
null
null
cnn/MixedLayer.py
aqui-tna/darts-UNIQ
293a27b104bc0f53c6093829d1184686b788fba9
[ "Apache-2.0" ]
5
2019-04-29T05:57:04.000Z
2021-04-21T00:19:11.000Z
from itertools import groupby from abc import abstractmethod from torch import cat, chunk, tensor, zeros, int32 from torch.nn import ModuleList, BatchNorm2d, Conv2d from torch.distributions.multinomial import Multinomial from torch.nn import functional as F from cnn.MixedFilter import MixedFilter from cnn.block impor...
33.915119
141
0.614578
7973d611bc505765ed8f1f075e0e18485f61d7a0
6,358
py
Python
agent/agent/process/legacy_filesystem_integration.py
woutersj/arxiv-submission-core
6077ce4e0685d67ce7010800083a898857158112
[ "MIT" ]
14
2019-05-26T22:52:17.000Z
2021-11-05T12:26:46.000Z
agent/agent/process/legacy_filesystem_integration.py
woutersj/arxiv-submission-core
6077ce4e0685d67ce7010800083a898857158112
[ "MIT" ]
30
2018-01-31T19:16:08.000Z
2018-12-08T08:41:04.000Z
agent/agent/process/legacy_filesystem_integration.py
cul-it/arxiv-submission-core
6077ce4e0685d67ce7010800083a898857158112
[ "MIT" ]
8
2019-01-10T22:01:39.000Z
2021-11-20T21:44:51.000Z
"""Deposit source content and PDF preview in the legacy filesystem.""" from typing import Optional, Callable from arxiv.users import auth, domain from arxiv.integration.api import exceptions from arxiv.submission.auth import get_system_token from arxiv.submission.services import preview, filemanager from .base import...
42.386667
77
0.636993
7973d62c454c70e30b8f26a3cc91a39486dad918
3,624
py
Python
src/nitpick/style/fetchers/__init__.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
null
null
null
src/nitpick/style/fetchers/__init__.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
null
null
null
src/nitpick/style/fetchers/__init__.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
null
null
null
"""Style fetchers with protocol support.""" from dataclasses import dataclass, field from functools import lru_cache from pathlib import Path from typing import TYPE_CHECKING, Optional, Tuple from urllib.parse import urlparse, uses_netloc, uses_relative from cachy import CacheManager, Repository from nitpick.generic ...
33.247706
118
0.67936
7973d64847a692b88c7aa84edcc1efc4cb7af9fe
4,573
py
Python
mlbench_core/controlflow/pytorch/checkpoints_evaluation.py
mlbench/mlbench-core
4fd3c7e6f1a5be69e52383ab2eb64cad257218c2
[ "Apache-2.0" ]
14
2018-11-12T17:23:32.000Z
2022-03-11T22:45:49.000Z
mlbench_core/controlflow/pytorch/checkpoints_evaluation.py
mlbench/mlbench-core
4fd3c7e6f1a5be69e52383ab2eb64cad257218c2
[ "Apache-2.0" ]
330
2018-10-09T12:15:56.000Z
2022-03-01T18:07:40.000Z
mlbench_core/controlflow/pytorch/checkpoints_evaluation.py
mlbench/mlbench-core
4fd3c7e6f1a5be69e52383ab2eb64cad257218c2
[ "Apache-2.0" ]
9
2019-02-28T19:11:58.000Z
2020-08-17T17:52:37.000Z
"""Evaluate training/validation set using models in checkpoints""" import logging import torch from mlbench_core.aggregation.pytorch.centralized import AllReduceAggregation from mlbench_core.controlflow.pytorch.helpers import iterate_dataloader from mlbench_core.utils.pytorch.distributed import global_average logger...
35.726563
101
0.59414
7973d8afdbdebd14449dabeb17dc2475b103063f
4,665
py
Python
engine.py
isaec/bioweapons-are-bad
a174588368c53cae46dd3f48dd8e0e4d8da88df6
[ "MIT" ]
null
null
null
engine.py
isaec/bioweapons-are-bad
a174588368c53cae46dd3f48dd8e0e4d8da88df6
[ "MIT" ]
null
null
null
engine.py
isaec/bioweapons-are-bad
a174588368c53cae46dd3f48dd8e0e4d8da88df6
[ "MIT" ]
null
null
null
#library imports###################################### from __future__ import annotations from typing import TYPE_CHECKING ###################################################### #tcod imports######################################### from tcod.context import Context from tcod.console import Console from tcod.map import ...
31.952055
116
0.694319
7973d9079ffcf56d7f30cf0641bf2fe14a8de5d4
3,943
py
Python
cgt_calc/parsers/__init__.py
KapJI/capital_gains_calculator
5cb42d9a958b46ded7702bc8aab8722b39e05a51
[ "MIT" ]
16
2021-02-01T00:31:59.000Z
2021-04-11T18:31:21.000Z
cgt_calc/parsers/__init__.py
KapJI/capital_gains_calculator
5cb42d9a958b46ded7702bc8aab8722b39e05a51
[ "MIT" ]
11
2021-04-05T09:57:57.000Z
2021-04-14T21:40:58.000Z
cgt_calc/parsers/__init__.py
KapJI/capital_gains_calculator
5cb42d9a958b46ded7702bc8aab8722b39e05a51
[ "MIT" ]
5
2021-02-15T23:08:38.000Z
2021-04-05T01:38:04.000Z
"""Parse input files.""" from __future__ import annotations import csv import datetime from decimal import Decimal import importlib.resources import operator from pathlib import Path from cgt_calc.const import DEFAULT_GBP_HISTORY_FILE, DEFAULT_INITIAL_PRICES_FILE from cgt_calc.exceptions import UnexpectedColumnCountE...
34.587719
84
0.690591
7973dace962c13d32796c511fdf2c59b59a6cc3c
5,234
py
Python
nuplan/planning/metrics/evaluation_metrics/base/violation_metric_base.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
128
2021-12-06T15:41:14.000Z
2022-03-29T13:16:32.000Z
nuplan/planning/metrics/evaluation_metrics/base/violation_metric_base.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
28
2021-12-11T08:11:31.000Z
2022-03-25T02:35:43.000Z
nuplan/planning/metrics/evaluation_metrics/base/violation_metric_base.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
14
2021-12-11T04:12:26.000Z
2022-03-24T06:38:30.000Z
from typing import Dict, List, Optional import numpy as np from nuplan.planning.metrics.evaluation_metrics.base.metric_base import MetricBase from nuplan.planning.metrics.metric_result import ( MetricStatistics, MetricStatisticsType, MetricViolation, Statistic, TimeSeries, ) from nuplan.planning.s...
41.212598
117
0.634314
7973db716631dc9ce5486d443c2f3544a7ae99b3
9,167
py
Python
sdk/yapily/models/core_product.py
DarrahK/yapily-sdk-python
2dcf9a403feafab7dcaf140dabe61794bd4debd3
[ "MIT" ]
null
null
null
sdk/yapily/models/core_product.py
DarrahK/yapily-sdk-python
2dcf9a403feafab7dcaf140dabe61794bd4debd3
[ "MIT" ]
null
null
null
sdk/yapily/models/core_product.py
DarrahK/yapily-sdk-python
2dcf9a403feafab7dcaf140dabe61794bd4debd3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 1.157.0 Generated by: https://openapi-generator.tech """ import pprint impor...
34.333333
222
0.63685
7973dfadeff4a7eab032d8434f6b76a7f87636f9
524
py
Python
desuprofile_integration/migrations/0005_auto_20160124_2328.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
desuprofile_integration/migrations/0005_auto_20160124_2328.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
desuprofile_integration/migrations/0005_auto_20160124_2328.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-24 21:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('desuprofile_integration', '0004_auto_20151108_1905'), ] operations = [ migrations.AlterField( model_nam...
24.952381
138
0.603053
7973e091f7d78416fe2beaea6ecf571f53471c54
22,134
py
Python
python/tvm/tools/debug/cli/tensor_format.py
PariksheetPinjari909/tvmdbg
4ddd24485c554a1422289bffd6da8587f2a806bc
[ "Apache-2.0" ]
null
null
null
python/tvm/tools/debug/cli/tensor_format.py
PariksheetPinjari909/tvmdbg
4ddd24485c554a1422289bffd6da8587f2a806bc
[ "Apache-2.0" ]
null
null
null
python/tvm/tools/debug/cli/tensor_format.py
PariksheetPinjari909/tvmdbg
4ddd24485c554a1422289bffd6da8587f2a806bc
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # pylint: disable=fixme, too-many-arguments, too-many-locals, too-many-statements, too-many-branches, no-member,consider-using-enumerate # Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in...
38.899824
136
0.634273
7973e0aaf59dbedb00b52876491c091b59124a29
989
py
Python
torch_geometric/transforms/base_transform.py
Kenneth-Schroeder/pytorch_geometric
f7ec9e964bfae1ce5fb21d9b2b30e9e717bf8e24
[ "MIT" ]
12,651
2017-10-28T15:14:24.000Z
2021-09-12T07:22:57.000Z
torch_geometric/transforms/base_transform.py
Kenneth-Schroeder/pytorch_geometric
f7ec9e964bfae1ce5fb21d9b2b30e9e717bf8e24
[ "MIT" ]
2,472
2017-10-30T23:38:47.000Z
2021-09-12T06:41:44.000Z
torch_geometric/transforms/base_transform.py
Kenneth-Schroeder/pytorch_geometric
f7ec9e964bfae1ce5fb21d9b2b30e9e717bf8e24
[ "MIT" ]
2,363
2017-12-01T13:25:05.000Z
2021-09-12T07:23:09.000Z
class BaseTransform(object): r"""An abstract base class for writing transforms. Transforms are a general way to modify and customize :class:`~torch_geometric.data.Data` objects, either by implicitly passing them as an argument to a :class:`~torch_geometric.data.Dataset`, or by applying them explici...
35.321429
78
0.683519
7973e0feb70977a393e606a674e6ded10e6d0b1e
6,752
py
Python
qa/rpc-tests/test_framework/test_framework.py
cephcoin/cephcoin
3dda3986533b2321cea2cee8ae1ae5a2b63dbfa4
[ "MIT" ]
1
2018-02-09T16:02:34.000Z
2018-02-09T16:02:34.000Z
qa/rpc-tests/test_framework/test_framework.py
cephcoin/cephcoin
3dda3986533b2321cea2cee8ae1ae5a2b63dbfa4
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/test_framework.py
cephcoin/cephcoin
3dda3986533b2321cea2cee8ae1ae5a2b63dbfa4
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 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 # Add python-bitcoinrpc to module search path: import os import sys import...
34.10101
104
0.617891
7973e2124bda6d6f664c43fb2ec2649ebd451444
15,966
py
Python
geopandas/tools/overlay.py
jdmcbr/geopandas
1cabaaa860c6d407cae710b878e98f6ea83d1ae0
[ "BSD-3-Clause" ]
null
null
null
geopandas/tools/overlay.py
jdmcbr/geopandas
1cabaaa860c6d407cae710b878e98f6ea83d1ae0
[ "BSD-3-Clause" ]
null
null
null
geopandas/tools/overlay.py
jdmcbr/geopandas
1cabaaa860c6d407cae710b878e98f6ea83d1ae0
[ "BSD-3-Clause" ]
null
null
null
import warnings from functools import reduce import numpy as np import pandas as pd from geopandas import GeoDataFrame, GeoSeries from geopandas.array import _check_crs, _crs_mismatch_warn def _ensure_geometry_column(df): """ Helper function to ensure the geometry column is called 'geometry'. If another...
40.938462
87
0.603219
7973e240943ec9a21a63cf53a56b21551494412c
214
py
Python
random_testing.py
oscarliu666/partia-flood-warning-system
51b9e35266ab9f45f5b32593b93f0c90a3ec55b0
[ "MIT" ]
null
null
null
random_testing.py
oscarliu666/partia-flood-warning-system
51b9e35266ab9f45f5b32593b93f0c90a3ec55b0
[ "MIT" ]
null
null
null
random_testing.py
oscarliu666/partia-flood-warning-system
51b9e35266ab9f45f5b32593b93f0c90a3ec55b0
[ "MIT" ]
null
null
null
import datetime as dt from datetime import datetime start_date = dt.date(2019, 2, 4) print(start_date) current_date = dt.date.today() print (current_date) time = current_date - start_date print (int(time.days))
17.833333
32
0.761682
7973e249e5ddfbbd1ceae3d1b8da26775178059f
4,019
py
Python
code/model/loss.py
jhlee900958/PhySG
8aaeaeea53595e039782ddad74491176f943be68
[ "MIT" ]
81
2021-06-21T06:22:01.000Z
2022-03-23T12:19:07.000Z
code/model/loss.py
jhlee900958/PhySG
8aaeaeea53595e039782ddad74491176f943be68
[ "MIT" ]
6
2021-07-17T08:34:25.000Z
2022-03-05T12:26:33.000Z
code/model/loss.py
jhlee900958/PhySG
8aaeaeea53595e039782ddad74491176f943be68
[ "MIT" ]
12
2021-06-23T12:08:23.000Z
2022-02-21T14:28:04.000Z
import torch from torch import nn from torch.nn import functional as F class IDRLoss(nn.Module): def __init__(self, idr_rgb_weight, sg_rgb_weight, eikonal_weight, mask_weight, alpha, r_patch=-1, normalsmooth_weight=0., loss_type='L1'): super().__init__() self.idr_rgb_weight = idr_...
44.164835
146
0.641204
7973e3c310665b124e39fa750b28309e1067cf30
497
py
Python
setup.py
jaryaman/systyle
2570eb09240eba74507f26c758d8c5c8a3da980e
[ "MIT" ]
null
null
null
setup.py
jaryaman/systyle
2570eb09240eba74507f26c758d8c5c8a3da980e
[ "MIT" ]
1
2021-04-11T15:06:33.000Z
2021-04-11T16:17:53.000Z
setup.py
jaryaman/systyle
2570eb09240eba74507f26c758d8c5c8a3da980e
[ "MIT" ]
1
2020-04-25T19:08:26.000Z
2020-04-25T19:08:26.000Z
#!/usr/bin/env python3 import sys from setuptools import find_packages from setuptools import setup # *** main *** if '__main__' == __name__: setup( author='Juvid Aryaman', author_email='j.aryaman25@gmail.com', packages=find_packages(), license=open('LICENSE.txt').read(), ...
22.590909
61
0.617706
7973e3f0f7bd0a2a15cf0dd4b65e7f1afb0dd38f
2,956
py
Python
python3/ftrace/parsers/block_rq_insert.py
Gracker/SystraceAnalysis
b27217e33a260614a9fe9ff3f8c3e470efdbd9a3
[ "Apache-2.0" ]
1
2021-12-07T05:32:28.000Z
2021-12-07T05:32:28.000Z
python3/ftrace/parsers/block_rq_insert.py
Gracker/systrace-analysis
b27217e33a260614a9fe9ff3f8c3e470efdbd9a3
[ "Apache-2.0" ]
null
null
null
python3/ftrace/parsers/block_rq_insert.py
Gracker/systrace-analysis
b27217e33a260614a9fe9ff3f8c3e470efdbd9a3
[ "Apache-2.0" ]
2
2022-03-10T06:27:31.000Z
2022-03-12T15:30:50.000Z
#!/usr/bin/python # Copyright 2015 Huawei Devices USA 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 r...
30.474227
79
0.629229
7973e42512a0d7569dba382fed78e727dc7db687
462
py
Python
output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_pattern_4_xsd/nistschema_sv_iv_atomic_unsigned_int_pattern_4.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_pattern_4_xsd/nistschema_sv_iv_atomic_unsigned_int_pattern_4.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/unsigned_int/schema_instance/nistschema_sv_iv_atomic_unsigned_int_pattern_4_xsd/nistschema_sv_iv_atomic_unsigned_int_pattern_4.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field __NAMESPACE__ = "NISTSchema-SV-IV-atomic-unsignedInt-pattern-4-NS" @dataclass class NistschemaSvIvAtomicUnsignedIntPattern4: class Meta: name = "NISTSchema-SV-IV-atomic-unsignedInt-pattern-4" namespace = "NISTSchema-SV-IV-atomic-unsignedInt-pattern-4-NS" ...
24.315789
70
0.636364
7973e4658379b4e5970236cb0ae1942a52f303ee
427
py
Python
tests/runtests-fakeredis.py
jianglb-alibaba/django-redis
7c1a73d02d36a9b4c84278a95ded090968aa2ba3
[ "BSD-3-Clause" ]
null
null
null
tests/runtests-fakeredis.py
jianglb-alibaba/django-redis
7c1a73d02d36a9b4c84278a95ded090968aa2ba3
[ "BSD-3-Clause" ]
null
null
null
tests/runtests-fakeredis.py
jianglb-alibaba/django-redis
7c1a73d02d36a9b4c84278a95ded090968aa2ba3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, '..') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_fakeredis") if __name__ == "__main__": from django.core.management import execute_from_command_line args = sys.argv args.insert(1, "test") if len(args) == 2: args.inser...
22.473684
65
0.679157
7973e4af9a6cabf8728eda37ac07a670a2f63363
3,704
py
Python
airflow/providers/oracle/operators/oracle_to_oracle_transfer.py
guptakumartanuj/airflow
104bc718a42218749fd5d4c6dfa523a03cdd6f4c
[ "Apache-2.0" ]
3
2015-08-25T13:56:44.000Z
2020-03-21T10:26:58.000Z
airflow/providers/oracle/operators/oracle_to_oracle_transfer.py
guptakumartanuj/airflow
104bc718a42218749fd5d4c6dfa523a03cdd6f4c
[ "Apache-2.0" ]
4
2016-04-15T12:31:24.000Z
2020-03-03T12:56:08.000Z
airflow/providers/oracle/operators/oracle_to_oracle_transfer.py
santecapital/airflow
7f02e56c9cb8b548624d13e9c2c2b89d753f996b
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4
2020-07-17T14:02:28.000Z
2022-02-23T04:29:58.000Z
# # 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...
40.26087
86
0.684125
7973e4b212c62f1d083a45753ca6305a6aae4127
7,117
py
Python
src/r2z2.py
SuhwanSong/r2z2
af7114fead7c22ea194ac154bced29cb0d7ee10c
[ "BSD-3-Clause" ]
null
null
null
src/r2z2.py
SuhwanSong/r2z2
af7114fead7c22ea194ac154bced29cb0d7ee10c
[ "BSD-3-Clause" ]
null
null
null
src/r2z2.py
SuhwanSong/r2z2
af7114fead7c22ea194ac154bced29cb0d7ee10c
[ "BSD-3-Clause" ]
null
null
null
from config import * from driver import browser from typing import NamedTuple class State(NamedTuple): bug_type: str p_hashes: list class Cross_version(): def __init__(self, br_locs, use_port=False): self.br_list = [] if not isinstance(br_locs, list): vers = read_file(br_locs)...
27.692607
101
0.570606
7973e501179d8e83b6e589ed03003ecc72bb4f00
31,843
py
Python
nuitka/nodes/FunctionNodes.py
leojay/Nuitka
131aaca9b858279233dd60f546d0eb8e37c3828f
[ "Apache-2.0" ]
null
null
null
nuitka/nodes/FunctionNodes.py
leojay/Nuitka
131aaca9b858279233dd60f546d0eb8e37c3828f
[ "Apache-2.0" ]
null
null
null
nuitka/nodes/FunctionNodes.py
leojay/Nuitka
131aaca9b858279233dd60f546d0eb8e37c3828f
[ "Apache-2.0" ]
1
2018-12-16T23:51:18.000Z
2018-12-16T23:51:18.000Z
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
31.590278
100
0.633766
7973e844db2a1be75b4d53515311f7d2e9678ff3
629
py
Python
setup.py
d4n1elchen/TGmeetup
59b665840b468a95d4434bc9391d48cc4632f7e7
[ "MIT" ]
1
2018-03-11T14:51:46.000Z
2018-03-11T14:51:46.000Z
setup.py
d4n1elchen/TGmeetup
59b665840b468a95d4434bc9391d48cc4632f7e7
[ "MIT" ]
null
null
null
setup.py
d4n1elchen/TGmeetup
59b665840b468a95d4434bc9391d48cc4632f7e7
[ "MIT" ]
null
null
null
import setuptools from distutils.core import setup entry_points = { 'console_scripts': [ 'tgmeetup = TGmeetup.tgmeetup:main' ] } setup( name='tgmeetup', packages=['TGmeetup', 'TGmeetup.libs', 'TGmeetup.libs.RegistrationAPI'], version='0.2.1', description='A collection set of technical groups i...
28.590909
102
0.704293
7973e8643fa0e9d1fff833d74d566f296a3c02b7
2,662
py
Python
autosignin.py
wshzz001/hao4k-auto-sign-in
95cb44ef1e4699cbb34f326de09a9d6c52e8d62b
[ "MIT" ]
null
null
null
autosignin.py
wshzz001/hao4k-auto-sign-in
95cb44ef1e4699cbb34f326de09a9d6c52e8d62b
[ "MIT" ]
null
null
null
autosignin.py
wshzz001/hao4k-auto-sign-in
95cb44ef1e4699cbb34f326de09a9d6c52e8d62b
[ "MIT" ]
null
null
null
import requests import os import re username = os.environ["HAO4K_USERNAME"] password = os.environ["HAO4K_PASSWORD"] #bot_token = os.environ["TG_BOT_TOKEN"] #chat_id = os.environ["TG_CHAT_ID"] #api_url = "https://api.telegram.org/bot%s/sendMessage" % (bot_token) send_message = "Server ERROR" user_url = "https://www....
34.128205
155
0.655522
7973e93dbe2f8da46bcd80013657cd900fa36536
3,115
py
Python
tests/test_geometry.py
deisenroth/prysm
53a400ef89697041f67192e879e61ad28c451318
[ "MIT" ]
110
2017-09-28T05:24:22.000Z
2022-03-17T17:34:08.000Z
tests/test_geometry.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
82
2018-01-03T03:52:42.000Z
2022-02-02T02:30:19.000Z
tests/test_geometry.py
mjhoptics/prysm
5dea335e068d04d1006741d8eb02278181751f73
[ "MIT" ]
28
2017-12-28T02:47:55.000Z
2022-03-29T02:10:11.000Z
"""Tests for basic geometry.""" import pytest import numpy as np from prysm import geometry, coordinates @pytest.mark.parametrize('sides, samples', [ [5, 128], [10, 128], [25, 128], [5, 256], [25, 68]]) def test_regular_polygon(sides, samples): x, y = coordinates.make_xy_grid(samples, diam...
32.113402
86
0.657785
7973ea113747233bec9dd30dd443aa2647d66f8b
153
py
Python
skqulacs/circuit/__init__.py
kenjikun/scikit-qulacs
afc502f63927ab61da964698da54ec4b410c30c4
[ "MIT" ]
null
null
null
skqulacs/circuit/__init__.py
kenjikun/scikit-qulacs
afc502f63927ab61da964698da54ec4b410c30c4
[ "MIT" ]
null
null
null
skqulacs/circuit/__init__.py
kenjikun/scikit-qulacs
afc502f63927ab61da964698da54ec4b410c30c4
[ "MIT" ]
null
null
null
from .circuit import LearningCircuit from .pre_defined import create_qcl_ansatz, create_farhi_circuit, create_defqsv from .graph import show_blochsphere
38.25
79
0.875817
7973eba09ab049a61c3be48e779649904c3bd863
7,511
py
Python
kubernetes_asyncio/client/models/v1_flex_persistent_volume_source.py
weltonrodrigo/kubernetes_asyncio
b793f3e9ea43cbd0f4ff40ace1b0b677682f4042
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_flex_persistent_volume_source.py
weltonrodrigo/kubernetes_asyncio
b793f3e9ea43cbd0f4ff40ace1b0b677682f4042
[ "Apache-2.0" ]
13
2021-04-12T02:03:48.000Z
2022-03-28T02:08:46.000Z
kubernetes_asyncio/client/models/v1_flex_persistent_volume_source.py
weltonrodrigo/kubernetes_asyncio
b793f3e9ea43cbd0f4ff40ace1b0b677682f4042
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.16.14 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
32.098291
199
0.61816
7973eca1e41b43ca373b5afb0dee2d56c191e919
13,501
py
Python
InnerEye/ML/model_config_base.py
kh296/InnerEye-DeepLearning
917f8d0b30c4ecfa9198cf55b17b87f359fbbbe9
[ "MIT" ]
null
null
null
InnerEye/ML/model_config_base.py
kh296/InnerEye-DeepLearning
917f8d0b30c4ecfa9198cf55b17b87f359fbbbe9
[ "MIT" ]
null
null
null
InnerEye/ML/model_config_base.py
kh296/InnerEye-DeepLearning
917f8d0b30c4ecfa9198cf55b17b87f359fbbbe9
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
49.819188
118
0.694319
7973ed4d4d2d199c98d67f5de831c63587ed0dde
68,510
py
Python
sklearn/model_selection/_validation.py
jpauwels/scikit-learn
46969c2d1e8abf5cc5308b9a20fc89c747bce6b2
[ "BSD-3-Clause" ]
null
null
null
sklearn/model_selection/_validation.py
jpauwels/scikit-learn
46969c2d1e8abf5cc5308b9a20fc89c747bce6b2
[ "BSD-3-Clause" ]
null
null
null
sklearn/model_selection/_validation.py
jpauwels/scikit-learn
46969c2d1e8abf5cc5308b9a20fc89c747bce6b2
[ "BSD-3-Clause" ]
null
null
null
""" The :mod:`sklearn.model_selection._validation` module includes classes and functions to validate the model. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux <gael.varoquaux@normalesup.org> # Olivier Grisel <olivier.grisel@ensta.org> # Raghav RV <rvraghav93@gma...
40.229008
118
0.636389
7973ef46d79a37016c43096d7e08d8cabb7211ef
5,723
py
Python
survey/features/page_objects/investigators.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
5
2016-08-25T12:48:54.000Z
2018-08-16T22:49:43.000Z
survey/features/page_objects/investigators.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
2
2016-08-11T06:43:56.000Z
2016-12-08T09:11:36.000Z
survey/features/page_objects/investigators.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
7
2016-09-16T11:03:44.000Z
2020-10-28T22:01:20.000Z
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from survey.features.page_objects.base import PageObject from survey.investigator_configs import COUNTRY_PHONE_CODE from rapidsms.contrib.locations.models import Location from lettuce.django import django_url from survey.models import EnumerationArea class NewInvestigatorPa...
38.409396
87
0.682509
7973f01369a2d41fc8cca94aaee2420ca9290e6e
12,347
py
Python
src/evaluation/eval.py
AljazBozic/TransformerFusion
fe64be2e57a064403d6e0bf170ce42afcab1ab9f
[ "MIT" ]
69
2022-02-21T11:09:30.000Z
2022-03-31T04:17:03.000Z
src/evaluation/eval.py
chenhao-fire/TransformerFusion
fe64be2e57a064403d6e0bf170ce42afcab1ab9f
[ "MIT" ]
1
2022-02-21T15:06:29.000Z
2022-02-21T15:35:09.000Z
src/evaluation/eval.py
chenhao-fire/TransformerFusion
fe64be2e57a064403d6e0bf170ce42afcab1ab9f
[ "MIT" ]
5
2022-02-28T04:16:51.000Z
2022-03-31T10:26:32.000Z
import sys, os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import time import argparse import torch import numpy as np from tqdm import tqdm import open3d as o3d from nnutils.chamfer_distance import ChamferDistance def visualize_occlusion_mask(occlusion_mask, world2grid): ...
38.464174
166
0.603304
7973f1088e04d5b39ee31a0b11098e1cbc0b5b89
3,420
py
Python
templates/kraken_push.py
genomicsITER/NanoRTax
c466dbc1371f597a976d004bc0fb8d4251fe4b8f
[ "MIT" ]
1
2021-08-12T15:22:41.000Z
2021-08-12T15:22:41.000Z
templates/kraken_push.py
genomicsITER/NanoRTax
c466dbc1371f597a976d004bc0fb8d4251fe4b8f
[ "MIT" ]
null
null
null
templates/kraken_push.py
genomicsITER/NanoRTax
c466dbc1371f597a976d004bc0fb8d4251fe4b8f
[ "MIT" ]
2
2021-08-04T13:15:08.000Z
2022-03-16T16:36:58.000Z
#!/usr/bin/env python3 import datetime import re import pandas as pd import skbio df = pd.read_csv("$report", delimiter="\t", names=['seq_id', 'tax_id', 'kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species']) tax_table = df['class'].value_counts() tax_table_class = pd.DataFrame(list(zip(tax_table.index...
56.065574
140
0.727485
7973f16a0021b8c4cc8ece4202416cf4a40e3447
485
py
Python
app/core/migrations/0002_alter_user_avatar.py
LeanidHreska/artistify-backend
4b3b4c5072dc9c676d2e98fe4c569b66c32bff0b
[ "MIT" ]
null
null
null
app/core/migrations/0002_alter_user_avatar.py
LeanidHreska/artistify-backend
4b3b4c5072dc9c676d2e98fe4c569b66c32bff0b
[ "MIT" ]
null
null
null
app/core/migrations/0002_alter_user_avatar.py
LeanidHreska/artistify-backend
4b3b4c5072dc9c676d2e98fe4c569b66c32bff0b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-10 15:32 from django.db import migrations, models import storages.backends.s3boto3 class Migration(migrations.Migration): dependencies = [ ("core", "0001_initial"), ] operations = [ migrations.AlterField( model_name="user"...
24.25
114
0.606186
7973f1a83b263f2947fff5ae8efb12acf8c3ae49
2,643
py
Python
bot/plugins/tools/plugins/calc/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
1
2022-01-17T00:51:15.000Z
2022-01-17T00:51:15.000Z
bot/plugins/tools/plugins/calc/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
bot/plugins/tools/plugins/calc/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
import nonebot from nonebot.rule import to_me from nonebot.plugin import on_command from nonebot.adapters.cqhttp import Bot, MessageEvent, Message import subprocess import re import os # from wcwidth import wcswidth import userlib from userlib.plugin import PluginInfo export = nonebot.export() export.info = Plugin...
27.53125
74
0.546727
7973f1d808eef15b778a2ccec4216c95834ac0f7
5,027
py
Python
Graph_TimeSeries_Forecasting/spektral_gcn.py
MugiPham/MEDIUM_NoteBook
799b146469c99d8a94ab8684beb78271eec73cfb
[ "MIT" ]
1
2022-03-02T14:31:08.000Z
2022-03-02T14:31:08.000Z
Graph_TimeSeries_Forecasting/spektral_gcn.py
ruishuQU/MEDIUM_NoteBook
799b146469c99d8a94ab8684beb78271eec73cfb
[ "MIT" ]
null
null
null
Graph_TimeSeries_Forecasting/spektral_gcn.py
ruishuQU/MEDIUM_NoteBook
799b146469c99d8a94ab8684beb78271eec73cfb
[ "MIT" ]
null
null
null
from tensorflow.keras import activations, initializers, regularizers, constraints from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer from spektral_utilities import filter_dot, dot, localpooling_filter class GraphConv(Layer): r""" A graph convolutional layer (GCN) as presented...
42.601695
82
0.619057
7973f228dc677191783614c4b6ded2d99720f032
9,779
py
Python
test/CPPDEFINES/append.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
test/CPPDEFINES/append.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2020-05-19T02:59:19.000Z
2020-05-21T09:05:19.000Z
test/CPPDEFINES/append.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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, ...
40.745833
119
0.650169
7973f2617e4a3c22d7fb1d3ce8b3f58b90ae4ec3
2,354
py
Python
stock/tests/test_serializers.py
FooQoo/api-stock
b5d4fcc9240aef82e828629813f20b2683863873
[ "BSD-3-Clause" ]
1
2021-07-07T13:31:33.000Z
2021-07-07T13:31:33.000Z
stock/tests/test_serializers.py
FooQoo/api-stock
b5d4fcc9240aef82e828629813f20b2683863873
[ "BSD-3-Clause" ]
4
2019-07-06T23:10:02.000Z
2019-07-14T15:52:29.000Z
stock/tests/test_serializers.py
FooQoo/api-stock
b5d4fcc9240aef82e828629813f20b2683863873
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from stock.serializers import ArticleSerializer, TagSerializer, TweetTaskSerializer from stock.models import Tag class TagSerializerTest(TestCase): fixtures = ['db_init.json'] def setUp(self): self.tag_serializer = TagSerializer() def test_create(self): v...
35.666667
94
0.648258
7973f268325a132ff00690a00f4c7f822e5b11dc
2,255
py
Python
src/python/WMCore/WMSpec/Steps/Diagnostics/AlcaHarvest.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMCore/WMSpec/Steps/Diagnostics/AlcaHarvest.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMCore/WMSpec/Steps/Diagnostics/AlcaHarvest.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ _AlcaHarvest_ Diagnostic implementation for a AlcaHarvest job """ import os from WMCore.WMSpec.Steps.Diagnostic import Diagnostic, DiagnosticHandler class Exit60319(DiagnosticHandler): def __call__(self, errCode, executor, **args): msg = "Failed to copy AlcaHarvest condition...
31.319444
106
0.633259
7973f26f98b8b245de3569580ca57e11736be7e9
11,408
py
Python
Lib/tabnanny.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
52,316
2015-01-01T15:56:25.000Z
2022-03-31T23:19:01.000Z
Lib/tabnanny.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
25,286
2015-03-03T23:18:02.000Z
2022-03-31T23:17:27.000Z
Lib/tabnanny.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
31,623
2015-01-01T13:29:37.000Z
2022-03-31T19:55:06.000Z
#! /usr/bin/env python3 """The Tab Nanny despises ambiguous indentation. She knows no mercy. tabnanny -- Detection of ambiguous indentation For the time being this module is intended to be called as a script. However it is possible to import it into an IDE and use the function check() described below. Warning: The...
34.155689
81
0.564341
7973f3a3a8c8a54e49d33b45b854ef6d111bfee3
2,760
py
Python
generate.py
nmonath/awd-lstm-lm
060650f5f8f7f9cff61faa8713ed5aca9679870b
[ "BSD-3-Clause" ]
1,951
2017-08-21T21:43:29.000Z
2022-03-25T09:49:14.000Z
generate.py
nmonath/awd-lstm-lm
060650f5f8f7f9cff61faa8713ed5aca9679870b
[ "BSD-3-Clause" ]
118
2017-08-24T08:22:29.000Z
2020-10-26T09:01:43.000Z
generate.py
nmonath/awd-lstm-lm
060650f5f8f7f9cff61faa8713ed5aca9679870b
[ "BSD-3-Clause" ]
557
2017-08-21T21:55:44.000Z
2022-03-16T18:47:51.000Z
############################################################################### # Language Modeling on Penn Tree Bank # # This file generates new sentences sampled from the language model # ############################################################################### import argparse import torch from torch.autograd...
34.936709
88
0.612681
7973f3d02036b0a372e067602a71e10b0c54b8bd
1,641
py
Python
carla09/agent/agent.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
1
2021-03-01T19:43:12.000Z
2021-03-01T19:43:12.000Z
carla09/agent/agent.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
carla09/agent/agent.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
import sys import math from enum import Enum import carla class AgentState(Enum): """ AGENT_STATE represents the possible states of a roaming agent """ NAVIGATING = 1 BLOCKED_BY_VEHICLE = 2 BLOCKED_RED_LIGHT = 3 class Agent: """Base class to define agents in CARLA""" def __init__(...
26.047619
126
0.639244
7973f41623aa24a57aa6485414ab60f718b9f992
365
py
Python
APA/APA.py
OscarFM014/IntroCS
335b9eb9bd900240c813e137b4290cc7bf32283d
[ "MIT" ]
null
null
null
APA/APA.py
OscarFM014/IntroCS
335b9eb9bd900240c813e137b4290cc7bf32283d
[ "MIT" ]
null
null
null
APA/APA.py
OscarFM014/IntroCS
335b9eb9bd900240c813e137b4290cc7bf32283d
[ "MIT" ]
null
null
null
''' Created on 28/07/2017 @author: Oscar ''' def hello(a,b,c,d,e,f): apa= a+"."+"("+b+")"+"."+c+"." +d+","+"de "+ e+ " Sitio web: "+f return apa ah= raw_input("AUTOR:" ) AGE=raw_input("AÑO DEL ARTÍCULO:" ) TITULO=raw_input("TITULO:" ) FECHA=raw_input("FECHA DE RECUPERACIÓN:" ) ASOCIATION=raw_input("ASOCIACI...
16.590909
68
0.60274
7973f4e4aee4d8f24782fa85ccdb930ebdfcb4b3
53,774
py
Python
titus/titus/datatype.py
tyarkoni/hadrian
b671814165abe5bcc54cb120c1163aa0dddabe3d
[ "Apache-2.0" ]
null
null
null
titus/titus/datatype.py
tyarkoni/hadrian
b671814165abe5bcc54cb120c1163aa0dddabe3d
[ "Apache-2.0" ]
null
null
null
titus/titus/datatype.py
tyarkoni/hadrian
b671814165abe5bcc54cb120c1163aa0dddabe3d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2014 Open Data ("Open Data" refers to # one or more of the following companies: Open Data Partners LLC, # Open Data Research LLC, or Open Data Capital LLC.) # # This file is part of Hadrian. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
38.327869
197
0.592238
7973f5110880afc7304a83eb6bc51eab6eb0d501
657
py
Python
madlibs/utils.py
utahnlp/madlibs
6a41051ea79599971e76b31023fcdb2b7f067eab
[ "MIT" ]
null
null
null
madlibs/utils.py
utahnlp/madlibs
6a41051ea79599971e76b31023fcdb2b7f067eab
[ "MIT" ]
null
null
null
madlibs/utils.py
utahnlp/madlibs
6a41051ea79599971e76b31023fcdb2b7f067eab
[ "MIT" ]
null
null
null
import json from typing import Any, Dict from madlibs.madlibs import MadLibs def read_fillers(fillers_file: str) -> Dict[Any, Any]: with open(fillers_file, "r") as f: data = json.load(f) return data def read_templates(templates_file: str) -> Dict[str, Dict[str, str]]: with open(templates_file,...
22.655172
79
0.675799
7973f557abc03773570b0e40d8cd18cff8c3dabe
8,646
py
Python
tests/test_activation_workflow.py
fronbasal/django-registration
bb1067bbb05e56c7e1f8b7aef834833b03acc3c4
[ "BSD-3-Clause" ]
null
null
null
tests/test_activation_workflow.py
fronbasal/django-registration
bb1067bbb05e56c7e1f8b7aef834833b03acc3c4
[ "BSD-3-Clause" ]
null
null
null
tests/test_activation_workflow.py
fronbasal/django-registration
bb1067bbb05e56c7e1f8b7aef834833b03acc3c4
[ "BSD-3-Clause" ]
null
null
null
""" Tests for the signed-token activation registration workflow. """ import datetime import time from django.conf import settings from django.core import signing from django.http import HttpRequest from django.test import modify_settings, override_settings from django.urls import reverse from django_registration im...
34.862903
87
0.597386
7973f6778df5a88d41d68154d3c4ee9ce46fe38b
4,314
py
Python
tests/st/pynative/test_pynative_heterogeneous.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
1
2022-03-05T02:59:21.000Z
2022-03-05T02:59:21.000Z
tests/st/pynative/test_pynative_heterogeneous.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
tests/st/pynative/test_pynative_heterogeneous.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.577982
84
0.69147
7973f6c2cdcdb184d8c261222eef04935ee08822
4,980
py
Python
almalinux/settings.py
bennyvasquez/almalinux.org
816eeab935e039a1a738068a4d46527ca6a9c140
[ "MIT" ]
18
2021-05-06T14:28:12.000Z
2022-03-26T11:41:34.000Z
almalinux/settings.py
bennyvasquez/almalinux.org
816eeab935e039a1a738068a4d46527ca6a9c140
[ "MIT" ]
31
2021-05-07T07:36:19.000Z
2022-03-16T21:41:11.000Z
almalinux/settings.py
bennyvasquez/almalinux.org
816eeab935e039a1a738068a4d46527ca6a9c140
[ "MIT" ]
8
2021-07-05T15:05:13.000Z
2022-03-09T23:30:09.000Z
""" Django settings for almalinux project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ # TODO: .e...
26.631016
107
0.667871
7973f7bbceadc50b0a8af94435aedf8e557eb0a5
10,535
py
Python
flask_security/cli.py
ademaro/flask-security
431786a202e2661f00e0e6f345f74c62d5ebbca9
[ "MIT" ]
317
2020-04-30T16:29:58.000Z
2022-03-31T07:19:09.000Z
flask_security/cli.py
ademaro/flask-security
431786a202e2661f00e0e6f345f74c62d5ebbca9
[ "MIT" ]
216
2020-04-30T16:49:01.000Z
2022-03-31T19:02:37.000Z
flask_security/cli.py
ademaro/flask-security
431786a202e2661f00e0e6f345f74c62d5ebbca9
[ "MIT" ]
82
2020-04-30T16:22:36.000Z
2022-03-27T16:52:40.000Z
""" flask_security.cli ~~~~~~~~~~~~~~~~~~ Command Line Interface for managing accounts and roles. :copyright: (c) 2016 by CERN. :copyright: (c) 2019-2021 by J. Christopher Wagner :license: MIT, see LICENSE for more details. """ import functools import click from flask import current_app fro...
29.928977
88
0.669862
7973f9899f2f73eef454abb320ddcc964dfe8870
11,318
py
Python
sdk/python/pulumi_azure_nextgen/network/v20190901/express_route_port.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20190901/express_route_port.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20190901/express_route_port.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
44.038911
1,408
0.660364
7973fa753522336ff81181e8c92b25f6ddbd9688
9,243
py
Python
SentEval/senteval/sick.py
leotmc/simcse
e0b62fcef5dadeeef55aef3b640ab219860c201b
[ "MIT" ]
1,842
2021-04-18T11:39:14.000Z
2022-03-31T18:35:06.000Z
SentEval/senteval/sick.py
leotmc/simcse
e0b62fcef5dadeeef55aef3b640ab219860c201b
[ "MIT" ]
145
2021-04-19T14:00:24.000Z
2022-03-28T19:13:08.000Z
SentEval/senteval/sick.py
leotmc/simcse
e0b62fcef5dadeeef55aef3b640ab219860c201b
[ "MIT" ]
288
2021-04-19T03:13:17.000Z
2022-03-31T12:14:56.000Z
# Copyright (c) 2017-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. # ''' SICK Relatedness and Entailment ''' from __future__ import absolute_import, division, unicode_literals import os import io...
42.59447
80
0.524397
7973fb28b262a57b8feb677fdba5d930207a10e7
6,885
py
Python
nova/api/openstack/placement/exception.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
2
2021-10-11T04:56:25.000Z
2022-02-16T08:49:29.000Z
nova/api/openstack/placement/exception.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
132
2017-03-27T11:31:52.000Z
2022-03-30T08:45:02.000Z
nova/api/openstack/placement/exception.py
lixiaoy1/nova
357b8b38e88300948bb2e07d1bbaabd1e9d7b60e
[ "Apache-2.0" ]
8
2017-03-27T07:50:38.000Z
2020-02-14T16:55:56.000Z
# 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, software # d...
33.100962
79
0.697168
7973fb7bac103f58dbd4885f85350ed9b52993d9
9,215
py
Python
pytorch_lightning_project_template/src/utils.py
gmum/toolk
936684590b06dedbc561cdbfe8927de9d19c37d6
[ "MIT" ]
31
2018-08-15T11:31:23.000Z
2022-02-20T11:04:56.000Z
pytorch_lightning_project_template/src/utils.py
gmum/toolk
936684590b06dedbc561cdbfe8927de9d19c37d6
[ "MIT" ]
5
2019-06-12T02:57:22.000Z
2021-02-26T07:46:34.000Z
pytorch_lightning_project_template/src/utils.py
gmum/toolk
936684590b06dedbc561cdbfe8927de9d19c37d6
[ "MIT" ]
10
2019-06-05T22:49:57.000Z
2021-09-06T01:26:55.000Z
""" Minor utilities """ import sys from functools import reduce import traceback import logging import argparse import optparse import datetime import sys import pprint import types import time import copy import subprocess import glob from collections import OrderedDict import os import signal import atexit import j...
30.922819
120
0.634835
7973fb9f2809d0f56a9ff6d93b3dd66032a4ed4c
7,044
py
Python
tests/test_content_type.py
srhinos/flapison
ffd475cee6becfc5f3fe5ba58d5f9b4d2d85cdd2
[ "MIT" ]
2
2020-05-20T09:24:54.000Z
2021-04-21T02:56:33.000Z
tests/test_content_type.py
srhinos/flapison
ffd475cee6becfc5f3fe5ba58d5f9b4d2d85cdd2
[ "MIT" ]
null
null
null
tests/test_content_type.py
srhinos/flapison
ffd475cee6becfc5f3fe5ba58d5f9b4d2d85cdd2
[ "MIT" ]
null
null
null
""" Tests relating to content types, which are independent from the data layer """ from csv import DictWriter, DictReader from io import StringIO from flask import make_response, Blueprint, Flask, request from werkzeug.test import EnvironBuilder import json import pytest from flapison import Api, ResourceDetail @py...
28.176
88
0.608177
7973fc92881edfb963a476753c63c87a84f377a3
1,124
py
Python
posts/kbpic/src/8_Starfield/demos/color.py
AloneGu/backup_machine_learning_study
df44b937976423889900f87536fa9b1fee07b026
[ "MIT" ]
301
2015-01-25T21:34:20.000Z
2022-03-27T03:06:19.000Z
posts/kbpic/src/8_Starfield/demos/color.py
AloneGu/backup_machine_learning_study
df44b937976423889900f87536fa9b1fee07b026
[ "MIT" ]
5
2020-05-30T17:12:38.000Z
2022-02-26T08:18:32.000Z
posts/kbpic/src/8_Starfield/demos/color.py
AloneGu/backup_machine_learning_study
df44b937976423889900f87536fa9b1fee07b026
[ "MIT" ]
216
2015-02-04T08:49:46.000Z
2021-12-09T12:16:57.000Z
from kivy.app import App from kivy.base import EventLoop from kivy.config import Config from kivy.graphics import Mesh from kivy.graphics.instructions import RenderContext from kivy.uix.widget import Widget class GlslDemo(Widget): def __init__(self, **kwargs): Widget.__init__(self, **kwargs) self....
26.139535
63
0.564947
7973fccda43d7fd3462eb21aefbe48eb3f6db6a7
1,062
py
Python
codility/caterpillar/catterpillar.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
codility/caterpillar/catterpillar.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
codility/caterpillar/catterpillar.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# Each position of the caterpillar will represent a dierent contiguous subsequence in which # the total of the elements is not greater than s. Let’s initially set the caterpillar on the first # element. Next we will perform the following steps: # • if we can, we move the right end (front) forward and increase the size ...
50.571429
99
0.691149
7973fd0af8f22410bb7c13f221d870b096583f87
2,745
py
Python
samples/client/petstore/python/swagger_client/models/enum_class.py
deerghayu/swagger-codegen
1e33403e381be1db91b1427d3f70f7476cb4da67
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/swagger_client/models/enum_class.py
deerghayu/swagger-codegen
1e33403e381be1db91b1427d3f70f7476cb4da67
[ "Apache-2.0" ]
2
2021-10-05T14:41:26.000Z
2022-03-28T16:07:30.000Z
samples/client/petstore/python/swagger_client/models/enum_class.py
deerghayu/swagger-codegen
1e33403e381be1db91b1427d3f70f7476cb4da67
[ "Apache-2.0" ]
5
2020-04-01T02:37:35.000Z
2021-04-07T08:04:07.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
27.727273
77
0.555191
7973fd691421dcd7e093c321caf018e2b60929c4
2,714
py
Python
Python/venv/lib/python3.7/site-packages/notebook/files/handlers.py
HenriqueBuzin/TCC
5fb9db42e97e28131bff97da3252a9ee33b3684e
[ "Unlicense" ]
69
2019-02-18T12:07:35.000Z
2022-03-12T10:38:32.000Z
Python/venv/lib/python3.7/site-packages/notebook/files/handlers.py
HenriqueBuzin/TCC
5fb9db42e97e28131bff97da3252a9ee33b3684e
[ "Unlicense" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
Python/venv/lib/python3.7/site-packages/notebook/files/handlers.py
HenriqueBuzin/TCC
5fb9db42e97e28131bff97da3252a9ee33b3684e
[ "Unlicense" ]
28
2019-03-22T01:07:13.000Z
2022-02-21T16:38:27.000Z
"""Serve files directly from the ContentsManager.""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import mimetypes import json try: #PY3 from base64 import decodebytes except ImportError: #PY2 from base64 import decodestring as decodebytes from tornad...
31.55814
80
0.60759
7973ffb75f68e7bf0f5541d2b909d7845c0b5424
1,322
py
Python
tutorial/examples/faqs/last_clicked_button.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
1
2021-04-11T03:08:43.000Z
2021-04-11T03:08:43.000Z
tutorial/examples/faqs/last_clicked_button.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
3
2021-03-31T19:16:27.000Z
2021-12-13T20:27:16.000Z
tutorial/examples/faqs/last_clicked_button.py
blozano824/dash-docs
f2b5a9dcbf60603aa0d0caabcfa31dccc6face7d
[ "MIT" ]
1
2022-03-18T09:41:34.000Z
2022-03-18T09:41:34.000Z
import json import dash import dash_html_components as html from dash.dependencies import Input, Output app = dash.Dash(__name__) app.layout = html.Div([ html.Button('Button 1', id='btn-1'), html.Button('Button 2', id='btn-2'), html.Button('Button 3', id='btn-3'), html.Div(id='container') ]) @app.c...
25.423077
61
0.524206
7973ffd84b5c6f7e1c1a524636317096df5f86f3
4,437
py
Python
sdk/python/pulumi_azure_nextgen/machinelearningservices/get_linked_service.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/machinelearningservices/get_linked_service.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/machinelearningservices/get_linked_service.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
32.625
148
0.636015
797400601d3ac81fbd7a54759bc839e5dec79945
3,084
py
Python
dual_crispr/run_counting.py
ucsd-ccbb/mali-dual-crispr-pipeline
1d40ebc0b44bf67fa741f3fa88cb15bb29e96e2c
[ "MIT" ]
5
2017-06-07T23:26:58.000Z
2021-01-12T07:06:21.000Z
dual_crispr/run_counting.py
ucsd-ccbb/mali-dual-crispr-pipeline
1d40ebc0b44bf67fa741f3fa88cb15bb29e96e2c
[ "MIT" ]
10
2017-04-07T00:00:12.000Z
2017-11-28T21:14:31.000Z
dual_crispr/run_counting.py
ucsd-ccbb/mali-dual-crispr-pipeline
1d40ebc0b44bf67fa741f3fa88cb15bb29e96e2c
[ "MIT" ]
null
null
null
# standard libraries import argparse import os import ccbb_pyutils.config_loader as ns_config import ccbb_pyutils.notebook_pipeliner as ns_pipeliner from dual_crispr import dual_crispr_pipeliner as ns_dcpipe __author__ = 'Amanda Birmingham' __maintainer__ = "Amanda Birmingham" __email__ = "abirmingham@ucsd.edu" __st...
48.1875
123
0.758106
797400fbf88a47cd814ab21b049b78ff77d8a01e
6,915
py
Python
inference/inference_benchmark/cc/Paddle/bin/py_parse_log.py
wangye707/continuous_integration
6e38924a67e17a57f3e64d9e846f0ede6e47c93f
[ "Apache-2.0" ]
14
2020-03-04T07:52:07.000Z
2022-02-14T01:39:14.000Z
inference/inference_benchmark/cc/Paddle/bin/py_parse_log.py
wangye707/continuous_integration
6e38924a67e17a57f3e64d9e846f0ede6e47c93f
[ "Apache-2.0" ]
19
2020-03-04T03:52:10.000Z
2021-12-23T07:02:07.000Z
inference/inference_benchmark/cc/Paddle/bin/py_parse_log.py
wangye707/continuous_integration
6e38924a67e17a57f3e64d9e846f0ede6e47c93f
[ "Apache-2.0" ]
26
2020-03-04T05:39:09.000Z
2022-02-14T01:43:28.000Z
import os import re import argparse import pandas as pd def parse_args(): """ parse input args """ parser = argparse.ArgumentParser() parser.add_argument("--log_path", type=str, default="./log", help="benchmark log path") parser.add_argument("--output_name", type=str, d...
44.044586
105
0.553579
7974011b53af6fa57fb8feee7be8b3c8abcb8034
1,063
py
Python
migrations/versions/1eb82ac2fee5_add_api_keys_for_users.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
2
2017-06-25T20:57:40.000Z
2017-11-27T15:13:35.000Z
migrations/versions/1eb82ac2fee5_add_api_keys_for_users.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
5
2017-06-23T12:05:57.000Z
2021-06-30T05:46:44.000Z
migrations/versions/1eb82ac2fee5_add_api_keys_for_users.py
tsao-chi/Site
e3fc4574101b8cdacb2a28e54495da5376dd5396
[ "MIT", "Artistic-2.0", "BSD-3-Clause" ]
3
2018-01-08T04:57:12.000Z
2020-01-22T08:03:56.000Z
"""Add API keys for users Revision ID: 1eb82ac2fee5 Revises: 5c7a728f2a53 Create Date: 2017-06-23 14:01:12.266428 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1eb82ac2fee5' down_revision = '5c7a728f2a53' branch_labels = None depends_on = None def upgrade(...
27.25641
80
0.670743
797401e8c43bef473845e07f49bfa1d05908f78a
1,809
py
Python
54/test_poem.py
xtakacsx/bitesofpy
91487cbf58af5eb58a0343ff2231a90c1032acb0
[ "MIT" ]
1
2020-01-10T00:05:34.000Z
2020-01-10T00:05:34.000Z
54/test_poem.py
xtakacsx/bitesofpy
91487cbf58af5eb58a0343ff2231a90c1032acb0
[ "MIT" ]
null
null
null
54/test_poem.py
xtakacsx/bitesofpy
91487cbf58af5eb58a0343ff2231a90c1032acb0
[ "MIT" ]
null
null
null
from poem import print_hanging_indents # part of William Shakespeare's play Hamlet shakespeare_unformatted = """ To be, or not to be, that is the question: Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous fortun...
34.132075
70
0.618021
797402d2d5d0fceaf034539ca44c0671ed00c7c1
178
py
Python
che.py
wuyudi/Mathematica_semi-automatic_driver
915d1fedd249250995cdd08f32f1522afb59b187
[ "MIT" ]
null
null
null
che.py
wuyudi/Mathematica_semi-automatic_driver
915d1fedd249250995cdd08f32f1522afb59b187
[ "MIT" ]
null
null
null
che.py
wuyudi/Mathematica_semi-automatic_driver
915d1fedd249250995cdd08f32f1522afb59b187
[ "MIT" ]
null
null
null
import os while True: 车牌 = input("输入车牌: ").strip() if "-" in 车牌: url = f"https://www.google.com/search?q={车牌}" os.popen(f"chrome.exe --incognito {url}")
22.25
53
0.550562
79740336d29e944de2f64bdefc4720288e986c60
21,535
py
Python
scripts/ingest_wholecell.py
vathes/DJ-NWB-Yu-Gutnisky-2016
85414f6b35da48fbb78a9a37108fb59a609079c6
[ "MIT" ]
null
null
null
scripts/ingest_wholecell.py
vathes/DJ-NWB-Yu-Gutnisky-2016
85414f6b35da48fbb78a9a37108fb59a609079c6
[ "MIT" ]
null
null
null
scripts/ingest_wholecell.py
vathes/DJ-NWB-Yu-Gutnisky-2016
85414f6b35da48fbb78a9a37108fb59a609079c6
[ "MIT" ]
3
2019-03-07T18:25:35.000Z
2019-03-29T21:03:20.000Z
import os import re import pathlib import h5py as h5 import numpy as np from decimal import Decimal from tqdm import tqdm import glob import datajoint as dj from pipeline import (reference, subject, acquisition, intracellular, behavior, stimulation, virus, utilities) path = pathlib.Path(dj.config['custom'].get('data_...
64.66967
349
0.59336
797404529c8299ae8740a34a1136595fce65df0a
182
py
Python
url_health/forms.py
denisviklov/django-url-health
0664168011fd5e85def029388fd5a92d834452be
[ "Apache-2.0" ]
1
2018-09-26T06:51:06.000Z
2018-09-26T06:51:06.000Z
url_health/forms.py
denisviklov/django-url-health
0664168011fd5e85def029388fd5a92d834452be
[ "Apache-2.0" ]
null
null
null
url_health/forms.py
denisviklov/django-url-health
0664168011fd5e85def029388fd5a92d834452be
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import LinkStore class URLForm(forms.ModelForm): class Meta: model = LinkStore fields = ('link', 'description', 'status')
20.222222
50
0.67033
7974047e11d87b3280b5a4200d2971439b31705a
1,087
py
Python
code/scripts/variance_swaps.py
pvkraju80/leo
f6ed6f4ee6eb34c47581d40d4d3fea69f42140f3
[ "CNRI-Python" ]
99
2016-11-02T14:29:41.000Z
2022-03-02T23:53:02.000Z
code/scripts/variance_swaps.py
pvkraju80/leo
f6ed6f4ee6eb34c47581d40d4d3fea69f42140f3
[ "CNRI-Python" ]
null
null
null
code/scripts/variance_swaps.py
pvkraju80/leo
f6ed6f4ee6eb34c47581d40d4d3fea69f42140f3
[ "CNRI-Python" ]
86
2016-11-05T15:39:08.000Z
2022-03-14T04:37:17.000Z
# # Module with functions for # Variance Swaps Examples # # (c) Dr. Yves J. Hilpisch # Listed Volatility and Variance Derivatives # import math import numpy as np import pandas as pd def generate_path(S0, r, sigma, T, M, seed=100000): ''' Function to simulate a geometric Brownian motion. Parameters ======...
24.155556
64
0.599816
7974051f7a84a7766dcd666ce7f08c59b5c02891
5,866
py
Python
anymail/backends/sendinblue.py
alee/django-anymail
acca6a46e17143caadb0445d7bdeb2f1eb00b71b
[ "BSD-3-Clause" ]
1
2019-10-23T06:35:56.000Z
2019-10-23T06:35:56.000Z
anymail/backends/sendinblue.py
alee/django-anymail
acca6a46e17143caadb0445d7bdeb2f1eb00b71b
[ "BSD-3-Clause" ]
null
null
null
anymail/backends/sendinblue.py
alee/django-anymail
acca6a46e17143caadb0445d7bdeb2f1eb00b71b
[ "BSD-3-Clause" ]
null
null
null
from requests.structures import CaseInsensitiveDict from .base_requests import AnymailRequestsBackend, RequestsPayload from ..exceptions import AnymailRequestsAPIError from ..message import AnymailRecipientStatus from ..utils import get_anymail_setting class EmailBackend(AnymailRequestsBackend): """ SendinBl...
34.710059
114
0.62939
797406096686ad33a919e81ffd2cf161448e169c
31
py
Python
src/ContactlessEntry.PythonFront/app_constants.py
juanroman/contactless-entry
6a23d64b0a854474886d44fabaf6432fb2d5431e
[ "MIT" ]
null
null
null
src/ContactlessEntry.PythonFront/app_constants.py
juanroman/contactless-entry
6a23d64b0a854474886d44fabaf6432fb2d5431e
[ "MIT" ]
null
null
null
src/ContactlessEntry.PythonFront/app_constants.py
juanroman/contactless-entry
6a23d64b0a854474886d44fabaf6432fb2d5431e
[ "MIT" ]
null
null
null
APP_NAME = "Contactless Entry"
15.5
30
0.774194
797406e0f925b98c04fd108721b4d5fa271c6321
14,472
py
Python
Production/raster_processing_lib.py
rcr-usfs/lamda
dac61cca68d70f049d43a8162b7f2d80f3487d9c
[ "Apache-2.0" ]
null
null
null
Production/raster_processing_lib.py
rcr-usfs/lamda
dac61cca68d70f049d43a8162b7f2d80f3487d9c
[ "Apache-2.0" ]
null
null
null
Production/raster_processing_lib.py
rcr-usfs/lamda
dac61cca68d70f049d43a8162b7f2d80f3487d9c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Ian Housman, RedCastle Resources 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 ...
36.361809
158
0.644555
797406ef1d62ffc81b5bd780fa900072e9644891
1,549
py
Python
sympy/core/tests/test_var.py
pernici/sympy
5e6e3b71da777f5b85b8ca2d16f33ed020cf8a41
[ "BSD-3-Clause" ]
1
2016-07-13T04:30:25.000Z
2016-07-13T04:30:25.000Z
sympy/core/tests/test_var.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
sympy/core/tests/test_var.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
# Tests for var are in their own file, because var pollutes global namespace. from sympy import Symbol, var, Function, FunctionClass from sympy.utilities.pytest import raises # make z1 with call-depth = 1 def make_z1(): var("z1") # make z2 with call-depth = 2 def __make_z2(): var("z2") def make_z2(): __...
20.381579
77
0.582311
797407505137557ce6928a9f812d56bd9c2afdee
664
py
Python
leads/admin.py
enemali/djcrm
64d371e6f205b65cccaa8453b529e5c6cc46f347
[ "MIT" ]
null
null
null
leads/admin.py
enemali/djcrm
64d371e6f205b65cccaa8453b529e5c6cc46f347
[ "MIT" ]
null
null
null
leads/admin.py
enemali/djcrm
64d371e6f205b65cccaa8453b529e5c6cc46f347
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import User, Lead, Agent, UserProfile, Category, FollowUp, Expense class LeadAdmin(admin.ModelAdmin): # fields = ( # 'first_name', # 'last_name', # ) list_display = ['first_name', 'last_name', 'age', 'email'] list_display_links = ['first...
24.592593
79
0.700301
7974076649901e7b48cf7e6f5d2d9554d3ed93f4
820
py
Python
TestingScripts/calculate_P_hat_from_256RGB.py
griffincalme/MicroDeconvolution
447af89e4db9a9874a475cba4e58b6d9dee502c3
[ "Apache-2.0" ]
2
2019-05-21T08:51:15.000Z
2021-06-24T05:11:05.000Z
TestingScripts/calculate_P_hat_from_256RGB.py
griffincalme/MicroDeconvolution
447af89e4db9a9874a475cba4e58b6d9dee502c3
[ "Apache-2.0" ]
1
2021-12-21T13:28:39.000Z
2021-12-21T15:04:31.000Z
TestingScripts/calculate_P_hat_from_256RGB.py
griffincalme/MicroDeconvolution
447af89e4db9a9874a475cba4e58b6d9dee502c3
[ "Apache-2.0" ]
1
2022-01-25T03:05:46.000Z
2022-01-25T03:05:46.000Z
import math red = 236 green = 32 blue = 80 print('Original 8 bit channel RGB values:') print(red) print(green) print(blue) print('------------\n') print('Decimal RGB:') print(red/255) print(green/255) print(blue/255) print('------------\n') def OD_from_Ic(rgb_255): rgb_dec = rgb_255 / 255 OD = -1 * math.l...
16.4
61
0.671951
797407a1b8dddfd96cd0630464f53a1cd9ab86db
10,018
py
Python
preprocessy/feature_selection/_selectKBest.py
RiyaGupta99/preprocessy
1cccf56e96f95394e939ea9aa2751857c071af75
[ "MIT" ]
null
null
null
preprocessy/feature_selection/_selectKBest.py
RiyaGupta99/preprocessy
1cccf56e96f95394e939ea9aa2751857c071af75
[ "MIT" ]
null
null
null
preprocessy/feature_selection/_selectKBest.py
RiyaGupta99/preprocessy
1cccf56e96f95394e939ea9aa2751857c071af75
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.feature_selection import f_classif from sklearn.feature_selection import f_regression class SelectKBest: """Class for finding K highest scoring features among the set of all features. Takes a feature and finds its correlation with the target label using a sc...
38.383142
137
0.597824
797407c2f06c8016e50c1d709bbc0f2be8fde78c
26,432
py
Python
pi/lambda/gg-pi-recycle/greengrasssdk/stream_manager/streammanagerclient.py
varunrao/aws-smart-recycle
c78c015792febd46595b60ab7d8e8f918bd867da
[ "Apache-2.0" ]
64
2018-12-05T19:45:15.000Z
2022-01-03T10:48:23.000Z
pi/lambda/gg-pi-recycle/greengrasssdk/stream_manager/streammanagerclient.py
varunrao/aws-smart-recycle
c78c015792febd46595b60ab7d8e8f918bd867da
[ "Apache-2.0" ]
13
2019-03-06T12:23:35.000Z
2021-09-10T04:45:45.000Z
pi/lambda/gg-pi-recycle/greengrasssdk/stream_manager/streammanagerclient.py
varunrao/aws-smart-recycle
c78c015792febd46595b60ab7d8e8f918bd867da
[ "Apache-2.0" ]
44
2019-05-09T05:45:34.000Z
2021-11-01T08:45:59.000Z
import asyncio import logging import os from threading import Thread from typing import List, Optional import cbor2 from .data import ( AppendMessageRequest, AppendMessageResponse, ConnectRequest, ConnectResponse, CreateMessageStreamRequest, CreateMessageStreamResponse, DeleteMessageStream...
48.145719
120
0.674296
797407ef30a7460c5888ff67bf68fdb849383af0
58,247
py
Python
great_expectations/dataset/sparkdf_dataset.py
hammadzz/great_expectations
020c605000d9472e88a9da7b6baa2fae28fd02c7
[ "Apache-2.0" ]
null
null
null
great_expectations/dataset/sparkdf_dataset.py
hammadzz/great_expectations
020c605000d9472e88a9da7b6baa2fae28fd02c7
[ "Apache-2.0" ]
null
null
null
great_expectations/dataset/sparkdf_dataset.py
hammadzz/great_expectations
020c605000d9472e88a9da7b6baa2fae28fd02c7
[ "Apache-2.0" ]
null
null
null
import copy import inspect import json import logging from collections import OrderedDict from datetime import datetime from functools import reduce, wraps from typing import List import jsonschema import numpy as np import pandas as pd from dateutil.parser import parse from great_expectations.data_asset import DataA...
40.170345
232
0.600529
7974085d16e34bd40b8990018f9ee2d026230bba
2,816
py
Python
reports/migrations/0003_symptomreportsymptomitem.py
gedankenstuecke/quantified-flu
202939f43a5ce7cfd31646b2f123c8b6b4fa8549
[ "MIT" ]
17
2020-03-24T18:51:08.000Z
2022-03-18T21:39:43.000Z
reports/migrations/0003_symptomreportsymptomitem.py
OpenHumans/quantified-flu
3ee9bdefbd567299b27bb22f0bf35d64f7764b3a
[ "MIT" ]
39
2020-03-25T09:17:52.000Z
2020-07-23T08:06:42.000Z
reports/migrations/0003_symptomreportsymptomitem.py
gedankenstuecke/quantified-flu
202939f43a5ce7cfd31646b2f123c8b6b4fa8549
[ "MIT" ]
3
2020-03-25T12:18:23.000Z
2020-05-16T11:03:07.000Z
# Generated by Django 2.2.11 on 2020-04-09 21:11 from django.db import migrations, models import django.db.models.deletion def create_through_relations(apps, schema_editor): Symptom = apps.get_model("reports", "Symptom") SymptomReport = apps.get_model("reports", "SymptomReport") SymptomReportSymptomItem ...
34.341463
88
0.493253
7974088e1353c7aa9b61da01ff9a8dd31e899faa
554
py
Python
usaco/december-2017/bronze/problem-1/problem-1.py
Yash-Singh1/competitive-programming
3b9d278ed8138ab614e2a3d748627db8f4a2cdbd
[ "MIT" ]
1
2021-04-25T21:58:57.000Z
2021-04-25T21:58:57.000Z
usaco/december-2017/bronze/problem-1/problem-1.py
Yash-Singh1/competitive-programming
3b9d278ed8138ab614e2a3d748627db8f4a2cdbd
[ "MIT" ]
null
null
null
usaco/december-2017/bronze/problem-1/problem-1.py
Yash-Singh1/competitive-programming
3b9d278ed8138ab614e2a3d748627db8f4a2cdbd
[ "MIT" ]
null
null
null
import sys def main(): b1x1, b1y1, b1x2, b1y2 = map(int, sys.stdin.readline().split()) b2x1, b2y1, b2x2, b2y2 = map(int, sys.stdin.readline().split()) tx1, ty1, tx2, ty2 = map(int, sys.stdin.readline().split()) print( (((b1x2 - b1x1) * (b1y2 - b1y1)) - ( (max(min(b1x2, tx2) - max(b1x1, tx1),...
26.380952
65
0.501805
79740951dddf8d9263c61a7d5b9d23899fc60259
4,193
py
Python
deepspeech2/model.py
okehkim/End-to-End-Speech-Recognition-Models
7b4695bbc778e4d2c92470b56e2479c8d81d0079
[ "Apache-2.0" ]
null
null
null
deepspeech2/model.py
okehkim/End-to-End-Speech-Recognition-Models
7b4695bbc778e4d2c92470b56e2479c8d81d0079
[ "Apache-2.0" ]
null
null
null
deepspeech2/model.py
okehkim/End-to-End-Speech-Recognition-Models
7b4695bbc778e4d2c92470b56e2479c8d81d0079
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Soohwan Kim @ https://github.com/sooftware/ # This source code is licensed under the Apache 2.0 License license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from t...
41.93
120
0.615788
79740978d970820c6806ae449255de95bd3ba61a
6,384
py
Python
warps/tools/generate_src_filters.py
boourns/eurorack
1914e3c4c0a1b43b79fa18abdf28f16f0158d5c5
[ "MIT" ]
35
2019-01-08T14:08:52.000Z
2022-02-28T10:13:43.000Z
warps/tools/generate_src_filters.py
peterall/eurorack
58b9125a8c10ff8d496dfe8a12fb8c35a374d96e
[ "MIT" ]
3
2018-11-15T19:33:12.000Z
2020-12-23T15:48:46.000Z
warps/tools/generate_src_filters.py
boourns/eurorack-renaissance
1914e3c4c0a1b43b79fa18abdf28f16f0158d5c5
[ "MIT" ]
8
2019-04-30T17:14:04.000Z
2021-08-03T19:56:36.000Z
#!/usr/bin/python2.5 # # Copyright 2014 Olivier Gillet. # # Author: Olivier Gillet (pichenettes@mutable-instruments.net) # # 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,...
32.907216
80
0.644424
79740a367f956771f69961d09525aa4ae818d7cd
9,587
py
Python
core/base.py
ivanmaslyuk/Skooter
591769baed3214707cbeb7cebfbd5fa2105c9910
[ "MIT" ]
null
null
null
core/base.py
ivanmaslyuk/Skooter
591769baed3214707cbeb7cebfbd5fa2105c9910
[ "MIT" ]
null
null
null
core/base.py
ivanmaslyuk/Skooter
591769baed3214707cbeb7cebfbd5fa2105c9910
[ "MIT" ]
null
null
null
import dataclasses from typing import Optional, List, Dict, Callable import skia from core.data import DataBinding, Binding CONTAINER_STACK = [] HOVER_STACK = [] @dataclasses.dataclass class Rect: x: float y: float width: float height: float def calculate_spacings( v: float = None, ...
29.228659
99
0.583186
79740bb0f572d9d22d46ca7b80d1d70599546e09
66,035
py
Python
transform.py
OMARI1988/bug_tracking
4501805557359e476f54624956371e42e85f6a39
[ "MIT" ]
1
2016-09-19T05:48:02.000Z
2016-09-19T05:48:02.000Z
transform.py
OMARI1988/bug_tracking
4501805557359e476f54624956371e42e85f6a39
[ "MIT" ]
null
null
null
transform.py
OMARI1988/bug_tracking
4501805557359e476f54624956371e42e85f6a39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # transformations.py # Copyright (c) 2006-2015, Christoph Gohlke # Copyright (c) 2006-2015, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
34.393229
79
0.587794
79740bf54c6c45d7aa486e2c75b5276acb3a360b
406
py
Python
ebarber/migrations/0011_area_slug.py
LoukasPap/university_assignment-django
c0ccdcb5f12e536037b211c564eab049847175bb
[ "MIT" ]
2
2020-08-02T21:23:43.000Z
2020-08-05T22:14:57.000Z
ebarber/migrations/0011_area_slug.py
LoukasPap/university_assignment-django
c0ccdcb5f12e536037b211c564eab049847175bb
[ "MIT" ]
null
null
null
ebarber/migrations/0011_area_slug.py
LoukasPap/university_assignment-django
c0ccdcb5f12e536037b211c564eab049847175bb
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-31 16:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ebarber', '0010_auto_20200304_0156'), ] operations = [ migrations.AddField( model_name='area', name='slug', ...
21.368421
76
0.603448
79740cf47e54e06a221473b3e4b4106a813a05e6
3,219
py
Python
src/knn_script.py
DSCI-310/DSCI-310-Group-7
f244e9005be3a4b73e77fed82c97d22ae2b0a971
[ "MIT" ]
1
2022-03-11T19:08:42.000Z
2022-03-11T19:08:42.000Z
src/knn_script.py
DSCI-310/DSCI-310-Group-7
f244e9005be3a4b73e77fed82c97d22ae2b0a971
[ "MIT" ]
16
2022-03-08T17:35:07.000Z
2022-03-29T02:34:39.000Z
src/knn_script.py
DSCI-310/DSCI-310-Group-7
f244e9005be3a4b73e77fed82c97d22ae2b0a971
[ "MIT" ]
1
2022-03-11T00:00:36.000Z
2022-03-11T00:00:36.000Z
""" Takes the clean data location get the data from their do the model evaluation and train it using the best k for KNN and export the reports and results of KNN model to the export location Usage: src/knn_script.py data_loc export_loc Options: data_loc The location of the cleaned data that the model will use to ...
36.168539
108
0.747437
79740d148fd85e5f2853a552a985161c087c6ce9
1,923
py
Python
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/hufu/apis/QueryApisRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/hufu/apis/QueryApisRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
python_code/vnev/Lib/site-packages/jdcloud_sdk/services/hufu/apis/QueryApisRequest.py
Ureimu/weather-robot
7634195af388538a566ccea9f8a8534c5fb0f4b6
[ "MIT" ]
null
null
null
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
27.471429
82
0.659906
79740da2b636507436204258375b7f14f5128d44
842
py
Python
pyoutline/outline/modules/__init__.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
334
2019-01-23T13:48:08.000Z
2019-06-10T06:58:49.000Z
pyoutline/outline/modules/__init__.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
564
2019-06-11T15:31:48.000Z
2022-03-31T19:53:03.000Z
pyoutline/outline/modules/__init__.py
mb0rt/OpenCue
7cce111306ccfa6c94f12806c8668866f2ee70ad
[ "Apache-2.0" ]
155
2019-06-13T11:42:00.000Z
2022-03-16T18:31:24.000Z
# Copyright Contributors to the OpenCue Project # # 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...
40.095238
94
0.76247
79740dc26aa05cd25ff6abfa619bf38b4e438e6e
990
py
Python
lintcode/office-creamer.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:49.000Z
2021-01-08T06:57:49.000Z
lintcode/office-creamer.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
null
null
null
lintcode/office-creamer.py
jianershi/algorithm
c3c38723b9c5f1cc745550d89e228f92fd4abfb2
[ "MIT" ]
1
2021-01-08T06:57:52.000Z
2021-01-08T06:57:52.000Z
class Solution: def max_amount_to_order(self, onHand, supplier, demand): supplier.sort() left = 0 right = len(supplier) while left + 1 < right: mid = (left + right) // 2 if self.is_valid(onHand, supplier, demand, mid): left = mid ...
26.756757
65
0.529293
79740deeaed96e1b0fc72be5b78d35c09705d7ca
14,815
py
Python
hpccm/building_blocks/intel_psxe_runtime.py
robertmaynard/hpc-container-maker
fdf20b9881eb41f92b7d73c85b20f5f75ddfe262
[ "Apache-2.0" ]
340
2018-03-26T00:11:21.000Z
2022-03-21T03:04:27.000Z
hpccm/building_blocks/intel_psxe_runtime.py
robertmaynard/hpc-container-maker
fdf20b9881eb41f92b7d73c85b20f5f75ddfe262
[ "Apache-2.0" ]
103
2018-03-24T04:34:24.000Z
2022-03-31T18:49:57.000Z
hpccm/building_blocks/intel_psxe_runtime.py
robertmaynard/hpc-container-maker
fdf20b9881eb41f92b7d73c85b20f5f75ddfe262
[ "Apache-2.0" ]
75
2018-05-10T15:42:11.000Z
2022-03-28T16:51:14.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
42.207977
165
0.613635
79740e1c29f03bf368b0638e2835820d59bda8c0
2,434
py
Python
tests/benchmark.py
mscam/lightning
7094df327a85e4db7666add4c5c9e7662bbcffa5
[ "MIT" ]
null
null
null
tests/benchmark.py
mscam/lightning
7094df327a85e4db7666add4c5c9e7662bbcffa5
[ "MIT" ]
null
null
null
tests/benchmark.py
mscam/lightning
7094df327a85e4db7666add4c5c9e7662bbcffa5
[ "MIT" ]
null
null
null
from concurrent.futures import ThreadPoolExecutor from lightning import LightningRpc from test_lightningd import NodeFactory import logging import pytest import random import utils from concurrent import futures from time import time from tqdm import tqdm num_workers = 480 num_payments = 10000 @pytest.fixture def ...
27.659091
123
0.673377
79740e7ae98d32a387d3184537bfbe6ef750e41e
247
py
Python
1134.py
Valarr/Uri
807de771b14b0e60d44b23835ad9ee7423c83471
[ "MIT" ]
null
null
null
1134.py
Valarr/Uri
807de771b14b0e60d44b23835ad9ee7423c83471
[ "MIT" ]
null
null
null
1134.py
Valarr/Uri
807de771b14b0e60d44b23835ad9ee7423c83471
[ "MIT" ]
null
null
null
c,g,d=0,0,0 k=1 while(k>0): a = int(input()) if(a==1): c+=1 elif(a==2): g+=1 elif(a==3): d+=1 elif(a==4): break print("MUITO OBRIGADO") print("Alcool:",c) print("Gasolina:",g) print("Diesel:",d)
14.529412
23
0.45749
79740ed0c103e841b6e280af920f8be65e3d1d0d
9,893
py
Python
charmhelpers/contrib/openstack/audits/openstack_security_guide.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
19
2016-04-17T04:00:53.000Z
2020-05-06T14:18:16.000Z
charmhelpers/contrib/openstack/audits/openstack_security_guide.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
313
2017-09-15T13:22:58.000Z
2022-02-25T17:55:01.000Z
charmhelpers/contrib/openstack/audits/openstack_security_guide.py
AurelienLourot/charm-helpers
b5725ac546372e7d4004d15095f79cdd5e7da687
[ "Apache-2.0" ]
136
2017-09-19T13:37:33.000Z
2022-03-29T11:08:00.000Z
# Copyright 2019 Canonical Limited. # # 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 writi...
36.505535
96
0.625998