hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
08c0ef50dd8427aa78db90b4cd6f52aa748246b4
482,249
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_04_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
41.688192
229
0.661658
08c0f34450eaa0af4daf10e152f606ac85fa33a6
1,015
py
Python
src/forecastga/models/base.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
30
2021-01-02T16:14:55.000Z
2022-02-11T23:17:18.000Z
src/forecastga/models/base.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
2
2021-01-11T16:56:23.000Z
2021-02-04T00:37:56.000Z
src/forecastga/models/base.py
richardfergie/ForecastGA
ce4ddc778d0be68f504e1bfc300be6b2fe870cb7
[ "MIT" ]
8
2021-01-10T19:04:22.000Z
2021-11-14T18:47:22.000Z
#! /usr/bin/env python # coding: utf-8 # """ForecastGA: Base Model""" class BaseModel: """Base Model class of ForecastGA""" def __init__(self, config): if config.in_sample is None: raise ValueError( "The config class must be initialized with \ ...
26.025641
80
0.588177
08c11f9dc93da6248c18345b87d46a544e8382ab
9,079
py
Python
appengine/findit/model/test/wf_swarming_task_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/model/test/wf_swarming_task_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/findit/model/test/wf_swarming_task_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from libs.test_results.classified_test_results import ClassifiedTestResults from model.wf_swarming_task import _ClassifiedTestResult from mo...
32.894928
80
0.498733
08c1210ad6bd0284b9de38c10f5af3147647ede1
739
py
Python
backend/crm/urls.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/crm/urls.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
backend/crm/urls.py
StichtingIAPC/swipe
d1ea35a40813d2d5e9cf9edde33148c0a825efc4
[ "BSD-3-Clause-Clear" ]
null
null
null
""" CRM URL Configuration """ from django.conf.urls import url from crm import views urlpatterns = [ url(r'^customers/(?P<pk>\d+)$', views.CustomerView.as_view()), url(r'^customers/name/$', views.CustomerByNameView.as_view()), url(r'^customers/$', views.CustomerListView.as_view()), url(r'^persons/(?P...
36.95
88
0.687415
08c121f119cfc6c9dfaabc9e1d6f3770d081c8ae
962
py
Python
tests/combiner_dict_test.py
ecix/pytinyirrdbcache
eca57af48ecddfbd3cf55af6fdd1a3dfa6d65670
[ "BSD-3-Clause" ]
1
2017-02-24T08:37:51.000Z
2017-02-24T08:37:51.000Z
tests/combiner_dict_test.py
ecix/pytinyirrdbcache
eca57af48ecddfbd3cf55af6fdd1a3dfa6d65670
[ "BSD-3-Clause" ]
null
null
null
tests/combiner_dict_test.py
ecix/pytinyirrdbcache
eca57af48ecddfbd3cf55af6fdd1a3dfa6d65670
[ "BSD-3-Clause" ]
1
2019-09-19T11:34:56.000Z
2019-09-19T11:34:56.000Z
import pytest from whoiscache.state import CombinerDict def _make_combiner_dict(): sources = [{'A': 10}, {'A': 2, 'B': 3}] combined = CombinerDict(iter(sources), reducer=lambda x, y: x*y+1) return (sources, combined) def test_constructor(): sources, combined = _make_com...
24.666667
55
0.612266
08c13d67802ddeb9833dfb7a10291165e3ffefd7
14,909
py
Python
gui.py
Abhi95S/Black-Hole
1433caefceb30d32ebe4963c20773a71c84c4adf
[ "MIT" ]
null
null
null
gui.py
Abhi95S/Black-Hole
1433caefceb30d32ebe4963c20773a71c84c4adf
[ "MIT" ]
null
null
null
gui.py
Abhi95S/Black-Hole
1433caefceb30d32ebe4963c20773a71c84c4adf
[ "MIT" ]
null
null
null
import Tkinter from Tkinter import * import tkMessageBox import subprocess from subprocess import call import sys import csv from collections import deque from threading import Thread #from threading import Timer import test_rpca_ec import os from os.path import abspath import Queue import time import PIL from PIL impo...
39.970509
287
0.630626
08c1655d7f5d4cc416f901dc26b1a5bb5658070f
742
py
Python
test/lmp/infer/_top_p/test_gen.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/infer/_top_p/test_gen.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/infer/_top_p/test_gen.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test top-p generation with dummy model. Test target: - :py:meth:`lmp.infer.TopPInfer.gen`. """ from collections import Counter from lmp.infer import TopPInfer from lmp.model import BaseModel from lmp.tknzr import BaseTknzr def test_gen( gen_max_non_sp_tk_model: BaseModel, max_non_sp_tk: str, max_seq_len: ...
23.935484
82
0.734501
08c1659a63be0f068eae72cfc2b110872c8721fb
7,065
py
Python
tests/python/pants_test/backend/graph_info/tasks/test_dependees.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/graph_info/tasks/test_dependees.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/graph_info/tasks/test_dependees.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from textwrap import...
27.924901
96
0.638641
08c17b48846cb5d4b482b7dfcf5b01b708663e1b
4,822
py
Python
python/infra/CheckSchemas.py
AvciRecep/chaste_2019
1d46cdac647820d5c5030f8a9ea3a1019f6651c1
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-04-05T12:11:54.000Z
2020-04-05T12:11:54.000Z
python/infra/CheckSchemas.py
AvciRecep/chaste_2019
1d46cdac647820d5c5030f8a9ea3a1019f6651c1
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/infra/CheckSchemas.py
AvciRecep/chaste_2019
1d46cdac647820d5c5030f8a9ea3a1019f6651c1
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-04-05T14:26:13.000Z
2021-03-09T08:18:17.000Z
#!/usr/bin/env python """Copyright (c) 2005-2019, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in s...
41.568966
211
0.700747
08c185ef0c1e53277db236bcb92ce2b9046912f6
12,002
py
Python
jumpscale/sals/vdc/s3_auto_topup.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/sals/vdc/s3_auto_topup.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/sals/vdc/s3_auto_topup.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from collections import defaultdict import random import re from urllib.parse import urljoin import gevent from jumpscale.data import serializers from jumpscale.loader import j from jumpscale.tools import http from jumpscale.clients.explorer.models import DiskType, WorkloadType, ZDBMode from jumpscale.sals.reservatio...
39.35082
132
0.645892
08c18b1f466334a7b8610f072dad83ed9fc72f77
13,085
py
Python
selfdrive/controls/lib/lateral_planner.py
oricalworks/openpilot-1
aec0baa6f36a614c90ce2a757339d63b5354c4d6
[ "MIT" ]
36
2020-06-30T19:25:30.000Z
2022-01-11T21:36:28.000Z
selfdrive/controls/lib/lateral_planner.py
oricalworks/openpilot-1
aec0baa6f36a614c90ce2a757339d63b5354c4d6
[ "MIT" ]
6
2020-06-27T20:06:02.000Z
2021-02-21T14:28:42.000Z
selfdrive/controls/lib/lateral_planner.py
oricalworks/openpilot-1
aec0baa6f36a614c90ce2a757339d63b5354c4d6
[ "MIT" ]
91
2020-07-02T16:30:11.000Z
2021-09-07T19:12:30.000Z
import os import math import numpy as np from common.realtime import sec_since_boot, DT_MDL from common.numpy_fast import interp, clip from selfdrive.swaglog import cloudlog from selfdrive.controls.lib.lateral_mpc import libmpc_py from selfdrive.controls.lib.drive_helpers import MPC_COST_LAT, MPC_N, CAR_ROTATION_RADIUS...
45.12069
133
0.716087
08c1dbe0917d9a79179baf363e2ac71af37e83ae
2,626
py
Python
benchmarks/inference_benchmarks.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
1
2021-04-30T19:49:01.000Z
2021-04-30T19:49:01.000Z
benchmarks/inference_benchmarks.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
null
null
null
benchmarks/inference_benchmarks.py
notaJiminLee/pycoral
d04eabadb69b57899c429d808633969444985ff2
[ "Apache-2.0" ]
1
2021-06-03T21:24:40.000Z
2021-06-03T21:24:40.000Z
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
34.552632
80
0.716679
08c2019387a69043f7bd8892f153fd8773befc30
1,147
py
Python
projects/TridentNet/tridentnet/trident_rpn.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/TridentNet/tridentnet/trident_rpn.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
projects/TridentNet/tridentnet/trident_rpn.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import torch from detectron.modeling import PROPOSAL_GENERATOR_REGISTRY from detectron.modeling.proposal_generator.rpn import RPN from detectron.structures import ImageList @PROPOSAL_GENERATOR_REGISTRY.register() class TridentRPN(RPN): """ Trident RPN subnet...
34.757576
90
0.708806
08c20332f871e9ede951a270b196db1c110e1279
190
py
Python
crowdsorter/models/redirect.py
jacebrowning/crowdsorter
1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb
[ "MIT" ]
2
2020-05-09T23:46:23.000Z
2021-03-23T18:40:26.000Z
crowdsorter/models/redirect.py
jacebrowning/crowdsorter
1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb
[ "MIT" ]
1
2020-10-18T17:15:49.000Z
2020-11-11T18:25:05.000Z
crowdsorter/models/redirect.py
jacebrowning/crowdsorter
1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb
[ "MIT" ]
1
2021-03-23T18:41:16.000Z
2021-03-23T18:41:16.000Z
from ..extensions import db class Redirect(db.Document): """Represents a page redirect.""" start_slug = db.StringField(primary_key=True) end_slug = db.StringField(null=False)
21.111111
49
0.715789
08c207495c7ca980f5174279b1604a3e2c6b5b94
3,220
py
Python
src/beefore/checks/javacheckstyle.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
null
null
null
src/beefore/checks/javacheckstyle.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
null
null
null
src/beefore/checks/javacheckstyle.py
jacebrowning/beefore
76a43cfa3fb83cfa3b3301277636f1beca35aee7
[ "BSD-3-Clause" ]
null
null
null
########################################################################### # Check if any of the Python files touched by the commit have # code style problems. ########################################################################### import re import subprocess from beefore import diff __name__ = 'Java CheckStyle...
32.857143
93
0.495652
08c228e67640bc5725ef5b89f6763d77edd5af8c
1,784
py
Python
fil_finder/_astropy_init.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
28
2015-07-10T15:47:22.000Z
2022-01-25T10:18:33.000Z
fil_finder/_astropy_init.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
50
2015-05-07T21:20:08.000Z
2022-02-23T02:06:56.000Z
fil_finder/_astropy_init.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
14
2015-07-13T10:26:44.000Z
2021-11-25T08:23:21.000Z
# Licensed under a MIT license - see LICENSE.rst __all__ = ['__version__'] # this indicates whether or not we are in the package's setup.py try: _ASTROPY_SETUP_ except NameError: import builtins builtins._ASTROPY_SETUP_ = False try: from .version import version as __version__ except ImportError: ...
33.660377
74
0.633969
08c250763d22ed8e599bd838865b75dc9b39d7a4
16,336
py
Python
app/dblp_parser.py
TobiasKoopmann/airankings
e489ddd42e88b878d617e2c3da6d097997b5cd77
[ "Apache-2.0" ]
null
null
null
app/dblp_parser.py
TobiasKoopmann/airankings
e489ddd42e88b878d617e2c3da6d097997b5cd77
[ "Apache-2.0" ]
null
null
null
app/dblp_parser.py
TobiasKoopmann/airankings
e489ddd42e88b878d617e2c3da6d097997b5cd77
[ "Apache-2.0" ]
null
null
null
from lxml import etree from datetime import datetime from tqdm import tqdm import csv import json import re # all of the element types in dblp all_elements = {"article", "inproceedings", "proceedings", "book", "incollection", "phdthesis", "mastersthesis", "www"} # all of the feature types in dblp all_features = {"addr...
43.562667
159
0.623408
08c25f518ccd355314d17a40b708f3b9006107b0
11,401
py
Python
nagioscheck.py
peterpramb/pynagioscheck
63220f30fb62335a57cbf029946e6a801c81e6f1
[ "BSD-2-Clause" ]
null
null
null
nagioscheck.py
peterpramb/pynagioscheck
63220f30fb62335a57cbf029946e6a801c81e6f1
[ "BSD-2-Clause" ]
null
null
null
nagioscheck.py
peterpramb/pynagioscheck
63220f30fb62335a57cbf029946e6a801c81e6f1
[ "BSD-2-Clause" ]
1
2022-02-14T08:28:10.000Z
2022-02-14T08:28:10.000Z
#!/usr/bin/env python # # pylint: disable=R0912,R0913,R1717,W0402 """Pynagioscheck: A Python framework for Nagios plugin developers.""" from __future__ import print_function import datetime import gc import optparse import re import signal import sys import traceback __version__ = '0.2.0' class Status(Exception):...
31.935574
78
0.564424
08c29600bfc38e6b5d0dd8a6669c7236d86a1b90
1,560
py
Python
django_codemod/visitors/__init__.py
cvanderkolk/django-codemod
9d03ebbf98285e408bacf7553c886fbf4960b720
[ "MIT" ]
null
null
null
django_codemod/visitors/__init__.py
cvanderkolk/django-codemod
9d03ebbf98285e408bacf7553c886fbf4960b720
[ "MIT" ]
null
null
null
django_codemod/visitors/__init__.py
cvanderkolk/django-codemod
9d03ebbf98285e408bacf7553c886fbf4960b720
[ "MIT" ]
null
null
null
from .admin import InlineHasAddPermissionsTransformer from .decorators import AvailableAttrsTransformer, ContextDecoratorTransformer from .encoding import ( ForceTextTransformer, SmartTextTransformer, UnicodeCompatibleTransformer, ) from .html import UnescapeEntitiesTransformer from .http import ( HttpU...
29.433962
78
0.789744
08c2bcc82d0b2934889a6249f548e7d03edc3ba6
4,334
py
Python
integration-tests/test/test_genesis_ceremony.py
guilhermehas/rchain
3fd2a1924e828de18204ac100bff60a6090621e1
[ "Apache-2.0" ]
null
null
null
integration-tests/test/test_genesis_ceremony.py
guilhermehas/rchain
3fd2a1924e828de18204ac100bff60a6090621e1
[ "Apache-2.0" ]
null
null
null
integration-tests/test/test_genesis_ceremony.py
guilhermehas/rchain
3fd2a1924e828de18204ac100bff60a6090621e1
[ "Apache-2.0" ]
null
null
null
from random import Random from rchain.crypto import PrivateKey from docker.client import DockerClient from .conftest import ( testing_context, ) from .common import ( CommandLineOptions, ) from .rnode import ( started_peer, started_bootstrap_with_network, ) from .wait import ( wait_for_block_appro...
47.108696
226
0.749654
08c2d3e3ea9ba873be2d07935bff6de45dbf1806
8,854
py
Python
tests/utils.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
38
2017-04-25T12:24:56.000Z
2021-01-12T17:01:43.000Z
tests/utils.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
4
2017-08-04T22:39:15.000Z
2017-08-07T17:36:21.000Z
tests/utils.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
14
2017-07-31T21:25:29.000Z
2022-02-06T08:09:07.000Z
# Copyright 2016 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """Common utilities for the tests """ import time import unittest import random random.seed() import sys import traceback import pdb from thingflow.base import IterableAsOutputThing, InputThing, FatalError,\ SensorEvent, F...
36.436214
102
0.619946
08c2e6c07c81dd75aa80adb3fe758abd1f80e839
3,997
py
Python
nmgr/console.py
mesalu/Viv2.NodeManager
9c616e7c42cb5d543030c00f5e99b6aa9439d108
[ "MIT" ]
null
null
null
nmgr/console.py
mesalu/Viv2.NodeManager
9c616e7c42cb5d543030c00f5e99b6aa9439d108
[ "MIT" ]
null
null
null
nmgr/console.py
mesalu/Viv2.NodeManager
9c616e7c42cb5d543030c00f5e99b6aa9439d108
[ "MIT" ]
null
null
null
""" This module porvides entry points for differing modes of operation """ import sys import time import traceback from . import serial from . import state from .orm import database def config_entry(*args, **kwargs): """ `nmgr-config` entry """ pass def main(*args, **kwargs): """' `nmgr` ent...
36.669725
105
0.596447
08c2fdd0042d2582f61ececb2c22468714f50265
2,842
py
Python
tests/test_cli/test_freeze.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_cli/test_freeze.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_cli/test_freeze.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021 Valory AG # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
33.833333
148
0.633357
08c32e3b41425461978f4b91c101294e1c2498ab
712
py
Python
chapter14-it-generator/sentence_iter.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:02.000Z
2019-11-23T05:57:02.000Z
chapter14-it-generator/sentence_iter.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
null
null
null
chapter14-it-generator/sentence_iter.py
cgDeepLearn/fluentpython
ff89ad5a7da59c71f57b6392c9f5d5c6178e0475
[ "MIT" ]
1
2019-11-23T05:57:43.000Z
2019-11-23T05:57:43.000Z
# -*- coding: utf-8 -*- """ 使用迭代器模式实现Sentence类 """ import re import reprlib RE_WORD = re.compile('\w+') class Sentence: def __init__(self, text): self.text = text self.words = RE_WORD.findall(text) def __repr__(self): return 'Sentence(%s)' % reprlib.repr(self.text) def __iter...
16.952381
55
0.58427
08c3374267fad84b595bf4e2c8f71e15eb77d178
27,660
py
Python
HW3/dbsys-hw3/Query/Optimizer.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW3/dbsys-hw3/Query/Optimizer.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW3/dbsys-hw3/Query/Optimizer.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
import itertools from collections import deque from Query.Plan import Plan from Query.Operators.Join import Join from Query.Operators.Project import Project from Query.Operators.Select import Select from Utils.ExpressionInfo import ExpressionInfo from Catalog.Schema import DBSchema from DBFileSystemGC import DBFileSy...
42.685185
105
0.617824
08c349aec3fdcc062b2ac26dd56ec8b7b4f62ef1
5,585
py
Python
mlutils/inspector.py
DSciLab/mlutils
352af36f2b34218b6551254f641427b7bbdd0f31
[ "MIT" ]
null
null
null
mlutils/inspector.py
DSciLab/mlutils
352af36f2b34218b6551254f641427b7bbdd0f31
[ "MIT" ]
null
null
null
mlutils/inspector.py
DSciLab/mlutils
352af36f2b34218b6551254f641427b7bbdd0f31
[ "MIT" ]
null
null
null
import cv2 import numpy as np import torch class ModuleNode(object): def __init__(self, name) -> None: super().__init__() self.name = name self.children = {} def remove_child(self, name): del self.children[name] @property def empty(self): return self.islea...
29.394737
77
0.514414
08c38a30673972ff1f973db866656594e491d09f
901
py
Python
setup.py
broaddeep/gdparser
22e049dca48573beee8d1cc73b0de2cd2618bb48
[ "Apache-2.0" ]
1
2022-01-30T12:29:28.000Z
2022-01-30T12:29:28.000Z
setup.py
broaddeep/gdparser
22e049dca48573beee8d1cc73b0de2cd2618bb48
[ "Apache-2.0" ]
null
null
null
setup.py
broaddeep/gdparser
22e049dca48573beee8d1cc73b0de2cd2618bb48
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup with open("README.md", "r") as fh: long_description = fh.read() package_name = 'gdparser' version = '0.0.2' description = "Google Docstring Parser" url = "https://github.com/broaddeep/gdparser.git" setup( name=package_name, version=version, author="br...
27.30303
63
0.657048
08c38d9f3a338f8946c082c6ca4e5563caef4b18
5,407
py
Python
sdk/keyvault/azure-security-keyvault/tests/preparer.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/keyvault/azure-security-keyvault/tests/preparer.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/keyvault/azure-security-keyvault/tests/preparer.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE.txt in the project root for # license information. # ------------------------------------------------------------------------- try: fr...
40.350746
101
0.665619
08c39f95ba7d09d231b0f142155fb5f62c0af950
1,226
py
Python
leetcode/1-easy/6-dprog/2-buysell/buy_sell.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/1-easy/6-dprog/2-buysell/buy_sell.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/1-easy/6-dprog/2-buysell/buy_sell.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
# https://leetcode.com/explore/interview/card/top-interview-questions-easy/97/dynamic-programming/572/ # https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/ # Best Time to Buy and Sell Stock # # Say you have an array for which the ith element is the price of a # given stock on day i. # # If you ...
29.190476
102
0.599511
08c3a2164468451aeb8035b9fa1ee24ef9c8d74f
11,002
py
Python
keystone/token/persistence/backends/sql.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/token/persistence/backends/sql.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/token/persistence/backends/sql.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # # 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...
38.739437
79
0.633885
08c3cf8c9bccc245ce8e6c2c3f2ae63446a38f1a
3,820
py
Python
papers/none2021_predicting_transition_using_reservoir_computing/programs/time_integrate_moehlis.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_predicting_transition_using_reservoir_computing/programs/time_integrate_moehlis.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_predicting_transition_using_reservoir_computing/programs/time_integrate_moehlis.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import json import argparse import concurrent.futures import pickle from functools import partial import numpy as np from misc import upload_paths_from_config, generate_random_perturbation upload_paths_from_config() from reducedmodels.transition_to_turbulence import MoehlisFaisstEckha...
42.921348
111
0.658377
08c40f8f3b096c0c841ad1cca08446aaf0be59ca
2,774
py
Python
benchmark/b_bit_minhash_benchmark.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
1,771
2015-04-07T18:06:02.000Z
2022-03-31T17:45:24.000Z
benchmark/b_bit_minhash_benchmark.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
159
2015-08-15T09:47:58.000Z
2022-03-22T12:55:21.000Z
benchmark/b_bit_minhash_benchmark.py
yrik/datasketch
82d9639bc0011932a952bbae1d4b5bd5ac03c7c8
[ "MIT" ]
278
2015-04-08T13:50:27.000Z
2022-03-02T13:00:33.000Z
''' Benchmarking the performance and accuracy of b-bi MinHash. ''' import time, logging, random logging.basicConfig(level=logging.INFO) import pyhash import numpy as np from datasketch.minhash import MinHash from datasketch.b_bit_minhash import bBitMinHash from similarity_benchmark import _get_exact, _gen_data,\ ...
35.564103
75
0.608868
08c45ed581dfbc7ab5da9c7903c7a98e43a54536
2,073
py
Python
api/v1/hub_conf.py
punitvanjani/test1
6fc746542c49d21bbffbf3d3a4cc2f76920eb554
[ "MIT" ]
null
null
null
api/v1/hub_conf.py
punitvanjani/test1
6fc746542c49d21bbffbf3d3a4cc2f76920eb554
[ "MIT" ]
null
null
null
api/v1/hub_conf.py
punitvanjani/test1
6fc746542c49d21bbffbf3d3a4cc2f76920eb554
[ "MIT" ]
null
null
null
from flask import request, jsonify from ..models import db, Hub, hub_schema, HubSchema from . import api from ..auth import auth from ..decorators import hub_active, admin_role_required from ..errors import no_records @api.route('/hub/', methods=['GET']) def get_hub(): hub = Hub.query.first() if hub == None: ...
35.135593
84
0.666184
08c48a3f7b1d5adafb0d573f249880dd191748fa
7,312
py
Python
tests/anybase32_samples.py
alanblevins/anybase32
5ec7b6c88c778789ff4d12f5b6afd0594d4e1d6a
[ "MIT" ]
4
2017-07-26T02:25:41.000Z
2021-10-06T17:55:25.000Z
tests/anybase32_samples.py
alanblevins/anybase32
5ec7b6c88c778789ff4d12f5b6afd0594d4e1d6a
[ "MIT" ]
3
2018-07-13T21:17:40.000Z
2019-02-11T07:30:57.000Z
tests/anybase32_samples.py
alanblevins/anybase32
5ec7b6c88c778789ff4d12f5b6afd0594d4e1d6a
[ "MIT" ]
null
null
null
CROCKFORD_MODIFIED = ( b"ahm6a81a59rqaub3dcn2m832e9qqevh0ctqqg83aenpq0wt0dxv6awh0ehm6a818dhgqmy994" b"1j6ytt1" ) CROCKFORD = ( b"AHM6A81A59RQATB3DCN2M832E9QQEVH0CSQQG83AENPQ0WS0DXV6AWH0EHM6A818DHGQMY994" b"1J6YSS1" ) ZBASE32 = ( b"ktwgkebkfjazk4mdpcinwednqjzzq5tyc3zzoedkqiszyh3yp75gkhtyqtwgkebeptozw...
62.495726
80
0.887992
08c4b77bac1b9216d1662dddc7365cbb81abd47b
8,410
py
Python
treedetection/processing.py
adrian-kuhn/tree-detection
eb7d9444d2dbb7c1c5801bff3f457d1a754cbb9d
[ "MIT" ]
8
2020-03-10T10:22:02.000Z
2022-02-14T19:17:44.000Z
treedetection/processing.py
adrian-kuhn/tree-detection
eb7d9444d2dbb7c1c5801bff3f457d1a754cbb9d
[ "MIT" ]
null
null
null
treedetection/processing.py
adrian-kuhn/tree-detection
eb7d9444d2dbb7c1c5801bff3f457d1a754cbb9d
[ "MIT" ]
2
2020-03-08T18:02:05.000Z
2021-10-12T01:38:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import arcpy import os import logging import logging.config import logging.handlers from multiprocessing import Pool import datetime import itertools from . import settings, tiles, exporter, assignments log = logging.getLogger() class Controller: def __init__(self)...
47.514124
158
0.656718
08c5162e09a73008ad632eac6a75924df95519bf
7,818
py
Python
sleap/gui/dialogs/delete.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/dialogs/delete.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/gui/dialogs/delete.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Dialog for deleting various subsets of instances in dataset. """ from sleap import LabeledFrame, Instance from sleap.gui.dialogs import formbuilder from PySide2 import QtCore, QtWidgets from typing import List, Text, Tuple class DeleteDialog(QtWidgets.QDialog): """ Dialog for deleting various subsets o...
32.17284
81
0.610003
08c520b3816ceb4b5a9c6a017dfdb4942cf0d50e
156
py
Python
homeassistant/generated/zeroconf.py
alryaz/home-assistant
fdf1fa48e385c8270fef8e89ceef50ba339b5fa7
[ "Apache-2.0" ]
1
2019-12-06T23:19:51.000Z
2019-12-06T23:19:51.000Z
homeassistant/generated/zeroconf.py
alryaz/home-assistant
fdf1fa48e385c8270fef8e89ceef50ba339b5fa7
[ "Apache-2.0" ]
null
null
null
homeassistant/generated/zeroconf.py
alryaz/home-assistant
fdf1fa48e385c8270fef8e89ceef50ba339b5fa7
[ "Apache-2.0" ]
null
null
null
"""Automatically generated by hassfest. To update, run python3 -m hassfest """ SERVICE_TYPES = { "_axis-video._tcp.local.": [ "axis" ] }
13
39
0.608974
08c525b20fbc9caa3ba8f979c269e513df966ca6
973
py
Python
python/phonenumbers/shortdata/region_AW.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/shortdata/region_AW.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/shortdata/region_AW.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. AW metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AW = PhoneMetadata(id='AW', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2}', possible_number_pattern='\...
74.846154
122
0.79445
08c543285cca0012f77bb711d2473ea8b01e3203
2,061
py
Python
htc_client/game.py
hacktheclassroom/htc-client
c30200947fdbd07bf7dc443b5d6f5e3792f17ed8
[ "MIT" ]
null
null
null
htc_client/game.py
hacktheclassroom/htc-client
c30200947fdbd07bf7dc443b5d6f5e3792f17ed8
[ "MIT" ]
null
null
null
htc_client/game.py
hacktheclassroom/htc-client
c30200947fdbd07bf7dc443b5d6f5e3792f17ed8
[ "MIT" ]
null
null
null
"""htc_client.game""" import sys import importlib import pygame from pygame.locals import * from common import Background def run_game(player, surface, font, clock): """HTC primary game loop, returns a minigame.""" # build a minigame list of Rects x, y = 50, 120 minigames = {} mg = importlib.i...
27.48
84
0.520621
08c555656d717a923bc6172570fd363184ba5aea
1,269
py
Python
test/test_pivot_list_response_registry_repo_response.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_pivot_list_response_registry_repo_response.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_pivot_list_response_registry_repo_response.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
31.725
265
0.762805
08c59ee0cb3f838e55ddb86dfb96f326eb4898ff
1,614
py
Python
discord/mixins.py
CuzImSyntax/dis.py
2f56d546f2594e1dbb6955c8b13b3a884a04eca6
[ "MIT" ]
1
2021-09-11T13:39:44.000Z
2021-09-11T13:39:44.000Z
discord/mixins.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
discord/mixins.py
CuzImSyntax/discordIO
47cd508ed48004aa61a41a5b196d3ff003456219
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz 2021-present CuzImSyntax 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 u...
33.625
75
0.740397
08c5a309706ffd3c41fa4714920338511bc12c80
417
py
Python
api/controller/manager.py
NYPL-Simplified/dictionary-api
282c1a7d0501786e97c6cf921dbdffa4da3ff598
[ "Apache-2.0" ]
1
2020-10-05T12:23:10.000Z
2020-10-05T12:23:10.000Z
api/controller/manager.py
NYPL-Simplified/dictionary-api
282c1a7d0501786e97c6cf921dbdffa4da3ff598
[ "Apache-2.0" ]
4
2020-01-22T20:36:30.000Z
2020-03-12T17:07:58.000Z
api/controller/manager.py
NYPL-Simplified/dictionary-api
282c1a7d0501786e97c6cf921dbdffa4da3ff598
[ "Apache-2.0" ]
null
null
null
from nose.tools import set_trace import flask import logging from api.elastic_search import ExternalSearchIndex from .dictionary import Dictionary from api.app import app def setup_controllers(manager): url = app.config["ELASTIC_SEARCH_URL"] manager.dictionary_controller = Dictionary(ExternalSearchIndex, url) cla...
27.8
70
0.808153
08c5a4adeda02560e43dee4367248a88f0d568e4
13,462
py
Python
ext/opentelemetry-ext-jaeger/tests/test_jaeger_exporter.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-jaeger/tests/test_jaeger_exporter.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
ext/opentelemetry-ext-jaeger/tests/test_jaeger_exporter.py
ThePumpingLemma/opentelemetry-python
9ed98eb9320b9064e43c3b43ee7c4990eec3657a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, OpenCensus Authors # Copyright 2019, OpenTelemetry 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 requ...
37.603352
79
0.560318
08c5a697770e30fff7eb2ec1f654f7f4e0dcb923
5,291
py
Python
Skimage_numpy/source/skimage/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
2
2017-03-30T11:22:11.000Z
2019-03-03T05:18:01.000Z
Skimage_numpy/source/skimage/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Skimage_numpy/source/skimage/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
"""Image Processing SciKit (Toolbox for SciPy) ``scikit-image`` (a.k.a. ``skimage``) is a collection of algorithms for image processing and computer vision. The main package of ``skimage`` only provides a few utilities for converting between image data types; for most features, you need to import one of the following...
31.682635
79
0.696088
08c5ac14560a43e790af3aa8a2d440835f187293
4,055
py
Python
research/slim/metrics/__init__.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
2
2021-12-01T12:24:57.000Z
2021-12-08T14:10:46.000Z
research/slim/metrics/__init__.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
1
2020-11-17T09:35:24.000Z
2020-11-17T09:35:24.000Z
research/slim/metrics/__init__.py
jianzhnie/models
123ceb62baca18f4befc22b21af3439463b34220
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # 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 compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
50.6875
80
0.866584
08c5aeb875677eb00a3d9b9961abb75bb72de2c4
223
py
Python
idiot/checks/apache.py
snare/idiot
840a8e0de30724bca8298ae1318906d3f273f3d9
[ "MIT" ]
145
2016-03-16T10:37:06.000Z
2021-08-02T16:51:01.000Z
idiot/checks/apache.py
snare/idiot
840a8e0de30724bca8298ae1318906d3f273f3d9
[ "MIT" ]
5
2016-03-27T11:27:51.000Z
2018-07-03T08:00:47.000Z
idiot/checks/apache.py
snare/idiot
840a8e0de30724bca8298ae1318906d3f273f3d9
[ "MIT" ]
16
2016-03-17T06:08:38.000Z
2020-12-18T18:21:08.000Z
""" Example check for Idiot. """ import idiot from idiot import ProcessCheck class ApacheCheck(ProcessCheck): name = "Apache" process_names = ["httpd"] if __name__ == "__main__": print(ApacheCheck().run())
13.9375
32
0.67713
08c5ba55283679d5a889e5edd03528b5e27fe68f
334
py
Python
(1)Text/string_template_missing.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(1)Text/string_template_missing.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(1)Text/string_template_missing.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Using string as safe substitute import string values = { 'var': 'foo' } t=string.Template("$var is here but $missing is not provided") try: print('substitute(): ', t.substitute(values)) except KeyError as err: print('ERROR: ', str(err)) print('safe_substitute() : ',t.safe_substi...
19.647059
62
0.676647
08c5ca97387e77f507b80405a2afd1f4ccc3324a
643
py
Python
modernize/fixes/fix_map.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
220
2015-03-25T11:06:13.000Z
2020-08-19T13:33:57.000Z
modernize/fixes/fix_map.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
113
2015-01-03T18:05:27.000Z
2020-08-18T21:42:23.000Z
modernize/fixes/fix_map.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
39
2015-01-18T10:08:52.000Z
2020-07-12T18:44:40.000Z
# Copyright 2008 Armin Ronacher. # Licensed to PSF under a Contributor Agreement. from __future__ import generator_stop from fissix import fixer_util from fissix.fixes import fix_map from .. import utils class FixMap(fix_map.FixMap): skip_on = "six.moves.map" def transform(self, node, results): r...
27.956522
79
0.695179
08c5d8e313321939fc62571af10836a9585112b5
1,193
py
Python
notification/__init__.py
callmed/sensor-board
ab6af1afda9227a229132635c1d4e9d36efdaf1e
[ "Apache-2.0" ]
null
null
null
notification/__init__.py
callmed/sensor-board
ab6af1afda9227a229132635c1d4e9d36efdaf1e
[ "Apache-2.0" ]
null
null
null
notification/__init__.py
callmed/sensor-board
ab6af1afda9227a229132635c1d4e9d36efdaf1e
[ "Apache-2.0" ]
null
null
null
# # Author: Daniel P # Contact: daniel.plev@gmail.com """A package for Journald notifications. These message type is only available on Linux system. """ import logging from sys import stdout, exit from platform import system logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging...
28.404762
77
0.700754
08c60f94b199472c613103497a8b554167ebb22c
4,100
py
Python
datalad/tests/test_witless_runner.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
1
2021-06-11T19:54:19.000Z
2021-06-11T19:54:19.000Z
datalad/tests/test_witless_runner.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
21
2015-03-12T11:48:18.000Z
2020-08-31T09:28:05.000Z
datalad/tests/test_witless_runner.py
christinerogers/datalad
8b91f3767b45371e213aa7ade146a290a13c00f2
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil; coding: utf-8 -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license ...
27.333333
107
0.621707
08c624f55d2310d46bb44d73c3947ff0bf8c79d4
10,173
py
Python
ogscm/cli.py
ufz/ogs-container-maker
97a8e9ecd574ca35d65e2a1e58b187892631ac7f
[ "BSD-3-Clause" ]
4
2019-03-27T08:47:58.000Z
2020-02-05T13:11:13.000Z
ogscm/cli.py
ufz/ogs-container-maker
97a8e9ecd574ca35d65e2a1e58b187892631ac7f
[ "BSD-3-Clause" ]
2
2019-03-22T08:39:28.000Z
2022-02-28T10:38:35.000Z
ogscm/cli.py
ufz/ogs-container-maker
97a8e9ecd574ca35d65e2a1e58b187892631ac7f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import archspec.cpu import argparse import os import traceback import sys import hpccm from hpccm.building_blocks import ( packages, pip, ) from hpccm.primitives import baseimage, comment, raw, shell from ogscm.version import __version__ from ogscm.app import builder from ogscm.app.depl...
30.186944
172
0.597562
08c63bce82a9263984517f8b156ed503bd2d85a0
1,212
py
Python
djangoDemo/mysite/mysite/urls.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
djangoDemo/mysite/mysite/urls.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
djangoDemo/mysite/mysite/urls.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
39.096774
89
0.69802
08c6477232df8cf4bff2da21ed8fffe7f30978dd
3,084
py
Python
pacman-contest/myTeam.py
yangxvlin/Pacman-contest-capture-the-flag
69e269496497d64e96fce6d65b960e109d84c660
[ "MIT" ]
1
2022-03-23T06:19:34.000Z
2022-03-23T06:19:34.000Z
pacman-contest/myTeam.py
yangxvlin/Pacman-contest-capture-the-flag
69e269496497d64e96fce6d65b960e109d84c660
[ "MIT" ]
null
null
null
pacman-contest/myTeam.py
yangxvlin/Pacman-contest-capture-the-flag
69e269496497d64e96fce6d65b960e109d84c660
[ "MIT" ]
null
null
null
# myTeam.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # A...
33.16129
80
0.715305
08c66bf1824e910285dae332c202920c863b8362
2,639
py
Python
helios/management/commands/load_voter_files.py
OriginalMy/originalmy-haal-helios
3402ae08bafc5ea957aaac3daa6eb633aaa655e9
[ "Apache-2.0" ]
3
2020-09-30T06:07:44.000Z
2021-07-12T19:54:43.000Z
helios/management/commands/load_voter_files.py
OriginalMy/originalmy-haal-helios
3402ae08bafc5ea957aaac3daa6eb633aaa655e9
[ "Apache-2.0" ]
null
null
null
helios/management/commands/load_voter_files.py
OriginalMy/originalmy-haal-helios
3402ae08bafc5ea957aaac3daa6eb633aaa655e9
[ "Apache-2.0" ]
null
null
null
""" parse and set up voters from uploaded voter files DEPRECATED Ben Adida ben@adida.net 2010-05-22 """ import datetime import csv import uuid from django.core.management.base import BaseCommand from helios import utils as helios_utils from helios.models import User, Voter, VoterFile ## ## UTF8 craziness for CSV...
27.778947
117
0.643426
08c66fba3aef24c45f77733cc6115bcf72459e7c
3,978
py
Python
tests/unit/models/test_vocab_build.py
tilaboy/easy_word2vec
197f976e5941c3d413dbfa07f7ea5de2f28b1a6f
[ "MIT" ]
null
null
null
tests/unit/models/test_vocab_build.py
tilaboy/easy_word2vec
197f976e5941c3d413dbfa07f7ea5de2f28b1a6f
[ "MIT" ]
null
null
null
tests/unit/models/test_vocab_build.py
tilaboy/easy_word2vec
197f976e5941c3d413dbfa07f7ea5de2f28b1a6f
[ "MIT" ]
null
null
null
from unittest import TestCase import os import tempfile import pickle import shutil from easy_word2vec.models.vocab_builder import VocabBuilder class TestCaseVocabBuilder(TestCase): @classmethod def setUpClass(self): self.corpus = [ ['foo', 'bar', 'foo', 'abc', 'def'], ['new', ...
42.774194
81
0.643288
08c693a49ad9f776684155a7c2f26843f0a00070
3,694
py
Python
fineract/objects/org.py
mobidevke/py-fineract
712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd
[ "Apache-2.0" ]
7
2019-03-11T16:17:33.000Z
2020-10-22T21:57:51.000Z
fineract/objects/org.py
mobidevke/py-fineract
712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd
[ "Apache-2.0" ]
3
2019-11-05T20:22:16.000Z
2019-12-11T17:09:04.000Z
fineract/objects/org.py
mobidevke/py-fineract
712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd
[ "Apache-2.0" ]
2
2020-11-19T16:00:36.000Z
2021-11-19T09:36:13.000Z
from fineract.objects.currency import Currency from fineract.objects.fineract_object import FineractObject from fineract.objects.types import ChargeTimeType, ChargeAppliesTo, ChargeCalculationType, ChargePaymentMode class Office(FineractObject): """ This class represent an Office """ def _init_attrib...
36.574257
117
0.647266
08c6a05a8648f4460ce489bc361972b3c10fcc0b
18,849
py
Python
tests/test_ini.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
251
2019-08-06T08:50:01.000Z
2022-03-26T13:49:19.000Z
tests/test_ini.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
429
2019-06-07T09:12:52.000Z
2022-03-31T23:29:26.000Z
tests/test_ini.py
camresp/nitpick
c922dcde1c1e650234343e03bb872cac6500e7b1
[ "MIT" ]
18
2019-08-12T14:16:28.000Z
2022-03-15T13:54:26.000Z
"""Test INI files.""" from configparser import ParsingError from unittest import mock from configupdater import ConfigUpdater from nitpick.constants import EDITOR_CONFIG, PYLINTRC, SETUP_CFG, TOX_INI from nitpick.plugins.ini import IniPlugin, Violations from nitpick.violations import Fuss, SharedViolations from tests...
27.597365
124
0.544803
08c6a5235b40f032ba73a74135260d33852324c1
1,884
py
Python
api/api/autocomplete_ws.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
5
2020-07-30T02:35:20.000Z
2020-12-24T01:26:47.000Z
api/api/autocomplete_ws.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
6
2021-03-04T10:30:11.000Z
2022-03-16T16:47:47.000Z
api/api/autocomplete_ws.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
2
2020-12-08T10:05:02.000Z
2022-03-10T09:41:19.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng import os import sys import json import time import numpy as np import cherrypy import uuid as uuider sys.path.append(os.path.join(os.path.dirname(__file__), '../../utils/')) from utils import AddPath A...
26.535211
114
0.599788
08c6b3cab7bcbb43abd3c341a833fbf6b0cec498
2,264
py
Python
lib/train_gender_classifier.py
AhmadHakroosh/MSGP
aa4aff4c4040eb87b14bb2ed5e70c92a0387cd6a
[ "Apache-2.0" ]
1
2018-12-28T17:35:47.000Z
2018-12-28T17:35:47.000Z
lib/train_gender_classifier.py
AhmadHakroosh/MSGP
aa4aff4c4040eb87b14bb2ed5e70c92a0387cd6a
[ "Apache-2.0" ]
null
null
null
lib/train_gender_classifier.py
AhmadHakroosh/MSGP
aa4aff4c4040eb87b14bb2ed5e70c92a0387cd6a
[ "Apache-2.0" ]
null
null
null
import get_reddit_data import get_imdb_data from gensim.models import Word2Vec from nltk.tokenize import word_tokenize import nltk import pickle '''Train Model on the mean of its Word2Vec Vector ''' reddit_data = get_reddit_data.RedditData() imdb_data = get_imdb_data.IMDBData() model = Word2Vec.load("gender_word2ve...
19.350427
67
0.60159
08c6c4e410fad5226627e6b6cea01c4a66a98d0f
2,154
py
Python
venv/Lib/site-packages/pyrogram/raw/types/msgs_ack.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/msgs_ack.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/msgs_ack.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.217391
103
0.618384
08c6de668f2aac877bba0563272c12a0582f6d9d
1,877
py
Python
fbchat/_poll.py
adbenitez/fbchat
8052b818de5de9682f6d64405579ad640cd657ee
[ "BSD-3-Clause" ]
1
2020-08-06T00:51:25.000Z
2020-08-06T00:51:25.000Z
fbchat/_poll.py
adbenitez/fbchat
8052b818de5de9682f6d64405579ad640cd657ee
[ "BSD-3-Clause" ]
null
null
null
fbchat/_poll.py
adbenitez/fbchat
8052b818de5de9682f6d64405579ad640cd657ee
[ "BSD-3-Clause" ]
null
null
null
import attr @attr.s(cmp=False) class Poll: """Represents a poll.""" #: Title of the poll title = attr.ib() #: List of :class:`PollOption`, can be fetched with :func:`fbchat.Client.fetchPollOptions` options = attr.ib() #: Options count options_count = attr.ib(None) #: ID of the poll ...
28.876923
94
0.546084
08c6f913e1f3301b1bb09353006f2fe4f6933ffb
11,407
py
Python
services/traction/acapy_client/model/taa_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/taa_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/taa_result.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
40.885305
124
0.560708
08c727f439c1866c27174704ba3831e38bed4101
410
py
Python
accounts/models.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
null
null
null
accounts/models.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
104
2021-06-01T08:10:38.000Z
2021-09-07T11:30:19.000Z
accounts/models.py
DatalogiForAlle/MarketSim
7b501f585cea2d19ca5b3f927065003480954298
[ "MIT" ]
1
2022-02-24T14:04:03.000Z
2022-02-24T14:04:03.000Z
from django.contrib.auth.models import AbstractUser from django.db import models class CustomUser(AbstractUser): """ The user model we use for host accounts. It is considered best practice to make it an extension of the default user model, as we might want to customize it later on (by adding fields an...
31.538462
88
0.707317
08c72e9703e934f67243949bb9ba9251b93aab01
4,006
py
Python
preprocessing.py
DeadCodeProductions/dead
a8e65abd76bf4a10268317bbf7a168c03c84e5f8
[ "Apache-2.0" ]
20
2022-02-25T10:49:53.000Z
2022-03-17T09:17:27.000Z
preprocessing.py
DeadCodeProductions/dead
a8e65abd76bf4a10268317bbf7a168c03c84e5f8
[ "Apache-2.0" ]
3
2022-02-28T20:00:32.000Z
2022-03-28T12:52:35.000Z
preprocessing.py
DeadCodeProductions/dead
a8e65abd76bf4a10268317bbf7a168c03c84e5f8
[ "Apache-2.0" ]
null
null
null
import os import re import shutil import tempfile from pathlib import Path from typing import Generator, Iterable, Optional import builder import utils """ Functions to preprocess code for creduce. See creduce --help to see what it wants. """ class PreprocessError(Exception): pass def find_marker_decl_range(l...
29.895522
129
0.607589
08c73fb2d3ab2681862cdebae0f579432874ba19
2,435
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/tinylora_simpletest_si7021.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/tinylora_simpletest_si7021.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/tinylora_simpletest_si7021.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """Using TinyLoRa with a Si7021 Sensor. """ import time import busio import digitalio import board import adafruit_si7021 from adafruit_tinylora.adafruit_tinylora import TTN, TinyLoRa # Board LED led = digitalio.DigitalInOut...
21.741071
62
0.629158
08c75c13c519a9f95b2b5423dbf26f719f47be07
748
py
Python
bin/rstpep2html.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
bin/rstpep2html.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
bin/rstpep2html.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
#!/Users/ervinpepic/Documents/Development/WebApps/DjangoApps/Kodecta_media_catalog/bin/python3.8 # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, prod...
28.769231
96
0.743316
08c77b24998f308a05a099c606fdf8dc2cb83f2d
3,541
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_08_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.851351
125
0.696696
08c78ffa36d6be25f89e522a37eadcc9cebfc292
4,761
py
Python
src/typed_graphs/graph_functions.py
pkch/typed_graphs
5f7bc17967002edf54df3347552d58bb54f54e6f
[ "MIT" ]
3
2017-04-02T00:51:34.000Z
2017-04-20T16:56:10.000Z
src/typed_graphs/graph_functions.py
pkch/typed_graphs
5f7bc17967002edf54df3347552d58bb54f54e6f
[ "MIT" ]
null
null
null
src/typed_graphs/graph_functions.py
pkch/typed_graphs
5f7bc17967002edf54df3347552d58bb54f54e6f
[ "MIT" ]
null
null
null
# module: graph_functions.py from typing import ( TypeVar, Generic, List, Set, Dict, Callable, DefaultDict, Iterable, Any, Type ) from collections import defaultdict from io import StringIO import re import pytest # type: ignore from igraph import IGraph, IGraphMutable, INode, INodeMutable, InvalidOperation G...
29.943396
99
0.635791
08c7afb19648fc568447289459235204402de2a1
1,240
py
Python
tests/unit/test_tag.py
gautamk/python-intercom
154814eff8835ac15392ba186e1ffe256b8ff821
[ "MIT" ]
1
2015-11-06T00:01:31.000Z
2015-11-06T00:01:31.000Z
tests/unit/test_tag.py
gautamk/python-intercom
154814eff8835ac15392ba186e1ffe256b8ff821
[ "MIT" ]
null
null
null
tests/unit/test_tag.py
gautamk/python-intercom
154814eff8835ac15392ba186e1ffe256b8ff821
[ "MIT" ]
null
null
null
# coding=utf-8 # # Copyright 2012 keyes.ie # # License: http://jkeyes.mit-license.org/ # from intercom.tag import Tag from nose.tools import eq_ from nose.tools import raises @raises(AttributeError) def test_writeonly_emails(): tag = Tag() tag.emails def test_write_emails(): tag = Tag() tag.emails ...
16.315789
43
0.657258
08c7bdff526fbd7f741067044b2834f104a9757c
3,464
py
Python
gnocchi/opts.py
ISCAS-VDI/gnocchi-base
c5ed96a6fb8d925702f410c1382eb36bd991443b
[ "Apache-2.0" ]
null
null
null
gnocchi/opts.py
ISCAS-VDI/gnocchi-base
c5ed96a6fb8d925702f410c1382eb36bd991443b
[ "Apache-2.0" ]
null
null
null
gnocchi/opts.py
ISCAS-VDI/gnocchi-base
c5ed96a6fb8d925702f410c1382eb36bd991443b
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # 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, so...
39.363636
76
0.523672
08c7c0c1acf5ea71ddcd7d0dc44aab1303e498b6
9,351
py
Python
docker/canary/start_container.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
docker/canary/start_container.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
docker/canary/start_container.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python3 ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
38.167347
80
0.558978
08c7dd5c29d470f343187a03c9abea9697cd93bd
2,141
py
Python
ml/perks/genPerkStyleConfigs.py
TiFu/runepicker-helper
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
[ "MIT" ]
null
null
null
ml/perks/genPerkStyleConfigs.py
TiFu/runepicker-helper
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
[ "MIT" ]
1
2018-01-01T03:56:01.000Z
2018-01-01T03:56:01.000Z
ml/perks/genPerkStyleConfigs.py
TiFu/runepicker-helper
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
[ "MIT" ]
null
null
null
import json config = { "layers": [ { "type": "Dense", "activation": "tanh", "neuronCount": 200 }, { "type": "Dense", "activation": "tanh", "neuronCount": 50 }, { "type": "Dense", ...
26.7625
84
0.560953
08c7e54494d8ee2311a7f7d7bacca1438291678e
2,888
py
Python
dawdle/abstract.py
dlowe-net/dawdlerpg
32c50f50c9409397d03470bdad28970e0deeedf1
[ "Apache-2.0" ]
1
2021-08-24T16:56:38.000Z
2021-08-24T16:56:38.000Z
dawdle/abstract.py
dlowe-net/dawdlerpg
32c50f50c9409397d03470bdad28970e0deeedf1
[ "Apache-2.0" ]
2
2021-08-24T16:52:52.000Z
2021-08-30T19:39:17.000Z
dawdle/abstract.py
dlowe-net/dawdlerpg
32c50f50c9409397d03470bdad28970e0deeedf1
[ "Apache-2.0" ]
1
2021-08-30T19:15:17.000Z
2021-08-30T19:15:17.000Z
import datetime from abc import abstractmethod, ABC from typing import Iterable, Optional, Set class AbstractClient(ABC): class User(ABC): nick: str userhost: str modes: Set[str] joined: float pass @abstractmethod def chanmsg(self, text: str) -> None: pa...
19.646259
77
0.619114
08c7eec16bbac42d47b4d6f92cb97a3f7bb2b523
4,334
py
Python
test/test_v1_extra_wechatpay_lite.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
test/test_v1_extra_wechatpay_lite.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
test/test_v1_extra_wechatpay_lite.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Justap API 欢迎阅读 Justap Api 文档 Justap 是为移动端应用和PC端应用打造的下一代聚合支付SAAS服务平台,通过一个 SDK 即可快速的支持各种形式的应用,并且一次接口完成多个不同支付渠道的接入。平台除了支持服务商子商户模式,同时还对商家自有商户(即自己前往微信、支付宝等机构开户)提供了完整的支持。 感谢您的支持,我们将不断探索,为您提供更优质的服务!如需技术支持可前往商户中心提交工单,支持工程师会尽快与您取得联系! # 文档说明 采用 REST 风格设计。所有接口请求地址都是可预期的以及面向资源的。使用规范的 HTTP 响应代码来表示请...
105.707317
3,404
0.769728
08c7f4e747170ef1ff02d074ccfb082f0fdf2160
1,645
py
Python
leetcode/2-medium/8-math/5-sqrt/sqrt.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/2-medium/8-math/5-sqrt/sqrt.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
leetcode/2-medium/8-math/5-sqrt/sqrt.py
ai7/study
be490336dc70ade62a8ff8d7866af7ac52bef4c1
[ "MIT" ]
null
null
null
# https://leetcode.com/explore/interview/card/top-interview-questions-medium/113/math/819/ # Sqrt(x) # # Implement int sqrt(int x). Since the return type is an integer, the # decimal digits are truncated and only the integer part of the result # is returned. import unittest class Solution: # Note: do binary se...
24.924242
90
0.546505
08c86fa756bac3ca49d3c487265d0f3e14bd8715
15,122
py
Python
hooks/charmhelpers/contrib/openstack/neutron.py
projectcalico/charm-neutron-api
ddaf4f2f2f0484d929a5e3a2615ac823249dcf93
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
hooks/charmhelpers/contrib/openstack/neutron.py
projectcalico/charm-neutron-api
ddaf4f2f2f0484d929a5e3a2615ac823249dcf93
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-16T16:44:58.000Z
2022-03-16T16:44:58.000Z
hooks/charmhelpers/contrib/openstack/neutron.py
isabella232/charm-neutron-api
ddaf4f2f2f0484d929a5e3a2615ac823249dcf93
[ "ECL-2.0", "Apache-2.0" ]
2
2017-11-02T13:20:15.000Z
2022-03-16T16:08:38.000Z
# Copyright 2014-2015 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 ...
38.874036
105
0.543976
08c874f88c7ce09aa47badce1143ad21172d4b45
4,417
py
Python
src/python/pants/backend/docgen/tasks/generate_pants_reference.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/docgen/tasks/generate_pants_reference.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/backend/docgen/tasks/generate_pants_reference.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from dataclasses import asdict from pants.base.mustache import MustacheRenderer from pants.goal.goal import Goal from pants.help.build_dictionary_info_extracter import BuildDict...
40.522936
94
0.732171
08c887e2125466951df96a37e6538d3a458e3556
648
py
Python
client/workflows/examples/custom-modules/models/nets.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
624
2020-01-18T21:10:12.000Z
2022-03-23T12:11:06.000Z
client/workflows/examples/custom-modules/models/nets.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/workflows/examples/custom-modules/models/nets.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
118
2019-04-12T16:01:21.000Z
2022-03-05T16:29:41.000Z
import torch import torch.nn as nn import torch.nn.functional as func from utils import preprocess # ../utils/preprocess.py class FullyConnected(nn.Module): def __init__(self, num_features, hidden_size, dropout): super(FullyConnected, self).__init__() self.flatten = preprocess.Flatten() ...
29.454545
59
0.641975
08c8ac373de5a4b3d480871ca19c31de01d98721
358
py
Python
trajectron_plus_plus/model/mgcvae/encoding/__init__.py
rozzong/trajectron-plus-plus
68b03e469ae300f3960e24a4463c361ef311425d
[ "MIT" ]
null
null
null
trajectron_plus_plus/model/mgcvae/encoding/__init__.py
rozzong/trajectron-plus-plus
68b03e469ae300f3960e24a4463c361ef311425d
[ "MIT" ]
null
null
null
trajectron_plus_plus/model/mgcvae/encoding/__init__.py
rozzong/trajectron-plus-plus
68b03e469ae300f3960e24a4463c361ef311425d
[ "MIT" ]
null
null
null
from ._encoding import MultimodalGenerativeCVAEEncoder from .edge_influence_encoding import ( ReducingEdgeInfluenceEncoder, BiRNNEdgeInfluenceEncoder, AttentionEdgeInfluenceEncoder ) from .edge_state_encoding import ReducingEdgeStateEncoder from .map_encoding import CNNMapEncoder from .node_encoding import ...
35.8
64
0.868715
08c8b9e921a79e4f9163f4f69295e900ecfc53d5
8,209
py
Python
access_control/models/site_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
null
null
null
access_control/models/site_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
90
2018-01-23T10:30:01.000Z
2019-01-31T10:53:42.000Z
access_control/models/site_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
1
2021-08-17T14:16:23.000Z
2021-08-17T14:16:23.000Z
# coding: utf-8 """ Access Control API # The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro...
29.850909
449
0.604459
08c8df833006fce0598cfce533af0895c78b767d
187
py
Python
algorithms/gcd.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/gcd.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
algorithms/gcd.py
vadymshturkhal/algorithms
7eb6b3b0b8d389fdbbcc9ff48712d398f04c343d
[ "MIT" ]
null
null
null
def gcd(first: int, second: int): if second == 0: return first return gcd(second, first % second) if __name__ == '__main__': a = 18 b = 15 print(gcd(a, b))
15.583333
38
0.550802
08c92b057cf15f62b62304fb9f802b972f645cb2
9,447
py
Python
src/unwetter/dwd.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
1
2020-06-27T09:59:09.000Z
2020-06-27T09:59:09.000Z
src/unwetter/dwd.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
null
null
null
src/unwetter/dwd.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
null
null
null
#!/user/bin/env python3.6 from io import BytesIO from datetime import datetime, timedelta from os.path import splitext import re from zipfile import ZipFile import iso8601 import requests import xmltodict import pytz from . import regions, db, config from .data.districts import DISTRICTS API_URL = 'https://opendat...
29.157407
111
0.593839
08c9515235e34acc70a2474c87397c1662904be2
682
py
Python
pyplan/pyplan/dashboardstyle/service.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
17
2019-12-04T19:22:19.000Z
2021-07-28T11:17:05.000Z
pyplan/pyplan/dashboardstyle/service.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
9
2019-12-13T15:34:43.000Z
2022-02-10T11:43:00.000Z
pyplan/pyplan/dashboardstyle/service.py
jorgedouglas71/pyplan-ide
5ad0e4a2592b5f2716ff680018f717c65de140f5
[ "MIT" ]
5
2019-12-04T15:57:06.000Z
2021-08-20T19:59:26.000Z
from rest_framework import exceptions from pyplan.pyplan.common.baseService import BaseService from .models import DashboardStyle class DashboardStyleService(BaseService): def getByStyleType(self, style_type): """Get By Style Type""" if style_type and isinstance(style_type, int): retur...
40.117647
120
0.743402
08c9560de9ad9561483948d8f815403e84fcae12
5,184
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.932203
146
0.667631
08c9742c51a5e1d8e6bbbba2d2df3db54b8d5397
5,438
py
Python
rootthebox.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
1
2015-05-01T14:45:30.000Z
2015-05-01T14:45:30.000Z
rootthebox.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
null
null
null
rootthebox.py
tunelko/RootTheBox
e9cb98b7837a39f6ed4f98435c5f2a7b5731d5e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Copyright 2012 Root the Box Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
32.369048
99
0.643803
08c97980169f8890bb68e1103f5b5ed589828d83
3,855
py
Python
rbac/common/role/reject_member.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/common/role/reject_member.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/common/role/reject_member.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
35.045455
83
0.65214
08c987f6fd6818f2f5289fab71072e3b5f57d0a1
5,711
py
Python
Bryan/misc.py
rolando-archive/theusual-kaggle-seeclickfix-ensemble
6879d4e5686443a3ad7d7b91062c51d7241e9125
[ "BSD-3-Clause" ]
16
2015-01-02T09:09:41.000Z
2019-12-11T14:11:44.000Z
Bryan/misc.py
rolando-archive/theusual-kaggle-seeclickfix-ensemble
6879d4e5686443a3ad7d7b91062c51d7241e9125
[ "BSD-3-Clause" ]
1
2019-12-11T14:20:07.000Z
2019-12-11T14:20:07.000Z
Bryan/misc.py
rolando-archive/theusual-kaggle-seeclickfix-ensemble
6879d4e5686443a3ad7d7b91062c51d7241e9125
[ "BSD-3-Clause" ]
15
2015-01-02T09:10:43.000Z
2019-12-11T14:11:51.000Z
""" ================================================================================================= Misc code snippets used in the ipython console throughout the project for development and exploration, but NOT directly referenced in the final program execution. ===================================================...
61.408602
177
0.587463
08c99459711f707d466556e48da145a5625b5417
8,942
py
Python
tests/test_util.py
xjiro/python-valve
d092690ffda9999ded3aa6739d26feaefbabb996
[ "MIT" ]
136
2017-09-21T13:12:05.000Z
2022-03-17T21:02:01.000Z
tests/test_util.py
fizek/python-valve
963086a385b771a9d58a757814a5cea8111c1c8b
[ "MIT" ]
47
2017-09-17T11:03:03.000Z
2022-02-26T15:26:51.000Z
tests/test_util.py
fizek/python-valve
963086a385b771a9d58a757814a5cea8111c1c8b
[ "MIT" ]
62
2017-10-01T20:13:03.000Z
2022-02-09T21:44:18.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Oliver Ainsworth from __future__ import (absolute_import, unicode_literals, print_function, division) import pytest import six from valve.source import util class TestPlatform(object): @pytest.mark.parametrize("identifier", [76, 108, 10...
33.743396
69
0.592597
08c9a35d47b0c65db0b2e736d42d987f89babcc7
6,185
py
Python
submit_scripts/fuse_gridded/generate_param_maps_3choices.py
BrisClimate/flood-cascade
660c29275a87785153d0f107ed23104fcbcbddee
[ "MIT" ]
null
null
null
submit_scripts/fuse_gridded/generate_param_maps_3choices.py
BrisClimate/flood-cascade
660c29275a87785153d0f107ed23104fcbcbddee
[ "MIT" ]
null
null
null
submit_scripts/fuse_gridded/generate_param_maps_3choices.py
BrisClimate/flood-cascade
660c29275a87785153d0f107ed23104fcbcbddee
[ "MIT" ]
3
2020-11-08T16:01:47.000Z
2021-01-13T17:13:32.000Z
# Script to produce maps of FUSE parameter sets, based on parameter transfer / regionalisation # Peter Uhe # June 2019 # import numpy as np import pickle,glob,os,sys from netCDF4 import Dataset # Import libraries for plotting: import matplotlib.pyplot as plt import matplotlib.cm import cartopy.crs as ccrs import carto...
37.944785
139
0.685368
08c9a43d4f025c57721beb059d9d55eeb5460b85
2,596
py
Python
multicurrency/som.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/som.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/som.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Som currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class Som(Currency): ...
33.714286
77
0.599769
08c9cf2d18da6cc4ba67039da1ef52a53c0cc38c
9,864
py
Python
aerosandbox/aerodynamics/aero_3D/avl.py
opme/AeroSandbox
309ae275387fca0bcf0a36a105ba761584318f35
[ "MIT" ]
null
null
null
aerosandbox/aerodynamics/aero_3D/avl.py
opme/AeroSandbox
309ae275387fca0bcf0a36a105ba761584318f35
[ "MIT" ]
null
null
null
aerosandbox/aerodynamics/aero_3D/avl.py
opme/AeroSandbox
309ae275387fca0bcf0a36a105ba761584318f35
[ "MIT" ]
null
null
null
from aerosandbox.common import ExplicitAnalysis import aerosandbox.numpy as np import subprocess from pathlib import Path from aerosandbox.geometry import Airplane from aerosandbox.performance import OperatingPoint from typing import Union, List, Dict import tempfile import warnings class AVL(ExplicitAnalysis): "...
30.825
124
0.483982
08ca03f34b5921039f4f8184f889a56b6250462b
1,141
py
Python
backend/moonstream/api.py
peersky/moonstock
9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c
[ "Apache-2.0" ]
2
2021-08-03T16:11:07.000Z
2021-12-13T08:32:06.000Z
backend/moonstream/api.py
peersky/moonstock
9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c
[ "Apache-2.0" ]
null
null
null
backend/moonstream/api.py
peersky/moonstock
9b1a61f8ad67bfcaf6f461cad49bcc9a71cc968c
[ "Apache-2.0" ]
null
null
null
""" The Moonstream HTTP API """ import logging from fastapi import FastAPI, Form from fastapi.middleware.cors import CORSMiddleware from . import data from .routes.subscriptions import app as subscriptions_api from .routes.users import app as users_api from .routes.txinfo import app as txinfo_api from .routes.streams...
24.804348
59
0.773883
08ca1fd4e756fb9e4fda3dd4abe7d139fc748d1f
1,255
py
Python
tests/common/test_op/ascend/sub_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/sub_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/sub_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-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 agre...
29.186047
74
0.723506
08ca20b666a0102d560632f83f17709f8e868b34
7,624
py
Python
rlkit/torch/sac/sac_gher.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
rlkit/torch/sac/sac_gher.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
rlkit/torch/sac/sac_gher.py
YashBit/generalized-hindsight
2ba2e1ba0caa20b71d01c8ad70fbc7f47d61bd6c
[ "MIT" ]
null
null
null
from collections import OrderedDict import numpy as np import torch import torch.optim as optim from torch import nn as nn import rlkit.torch.pytorch_util as ptu from rlkit.core.eval_util import create_stats_ordered_dict from rlkit.torch.torch_rl_algorithm import TorchTrainer class SACTrainer(TorchTrainer): def...
32.581197
113
0.577518
08ca47df4e28bb187a0b0a47c32c19cef7c69eff
1,823
py
Python
src/python/pants/process/lock.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/process/lock.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/process/lock.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import errno import logging import os import sys import psutil from fasteners import InterProcessLock from pants.util.dirutil import safe_delete logger = logging.getLogger(__name__) ...
28.046154
152
0.682392
08ca8fa60150b735c7a3f2d938abd436c86d504c
18,440
py
Python
configs/config-phraseQEbRNN.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
configs/config-phraseQEbRNN.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
configs/config-phraseQEbRNN.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
def load_parameters(): """ Loads the defined hyperparameters :return parameters: Dictionary of loaded parameters """ # Input data params TASK_NAME = 'de_en.smt3b' # Task name DATASET_NAME = TASK_NAME # Dataset name SRC_LAN = 'src' ...
64.929577
175
0.570445
08ca9f6ac4e7522406dc149b728fc3617cee6a6f
3,866
py
Python
Tools/Scripts/webkitpy/style/patchreader.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/style/patchreader.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/style/patchreader.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. All rights reserved. # Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) # Copyright (C) 2010 ProFUSION embedded systems # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # ...
43.931818
94
0.699948
08cab695e0031b61b01f8bdbabee45b6835cf5b2
6,995
py
Python
admin/yum-validator/yumvalidator/repo_db.py
sdodson/openshift-extras
884b6db9b33e12d0d798a1767d4dc40cc78b6e8f
[ "Apache-2.0" ]
null
null
null
admin/yum-validator/yumvalidator/repo_db.py
sdodson/openshift-extras
884b6db9b33e12d0d798a1767d4dc40cc78b6e8f
[ "Apache-2.0" ]
null
null
null
admin/yum-validator/yumvalidator/repo_db.py
sdodson/openshift-extras
884b6db9b33e12d0d798a1767d4dc40cc78b6e8f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt """This provides a quick 'n dirty database for yum-validator tools (e.g. oo-admin-yum-validator). Here "blessed" repositories can be defined along with useful metadata, defined in the RepoTuple namedtuple object. These repository definitions can be queried through the RepoDB object. """ from co...
36.243523
80
0.539528
08cab7aae5cfe37738188b8b527f9e4c715ab7bc
641
py
Python
beers/migrations/0019_auto_20190328_2028.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
beers/migrations/0019_auto_20190328_2028.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
beers/migrations/0019_auto_20190328_2028.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
# Generated by Django 2.1.7 on 2019-03-28 20:28 import django.contrib.postgres.fields.citext from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("beers", "0018_prepare_for_case_insensitive_beers"), ] operations = [ migrations.AlterField( ...
25.64
81
0.624025
08cac58dcfa9c49202290468d741ac0d40af7539
2,634
py
Python
statsmodels/formula/formulatools.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/formula/formulatools.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/formula/formulatools.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
from statsmodels.compat.python import iterkeys import statsmodels.tools.data as data_util from patsy import dmatrices # if users want to pass in a different formula framework, they can # add their handler here. how to do it interactively? # this is a mutable object, so editing it should show up in the below formula_h...
33.341772
76
0.687168