hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
7ed12725c01586b7ea78bc6761c9cf27421819fb
1,818
py
Python
apistar/commands/new.py
sirex/apistar
0ab0ac394983230bfacad2035d9436e88988cfc4
[ "BSD-3-Clause" ]
1
2017-12-27T09:05:23.000Z
2017-12-27T09:05:23.000Z
apistarlearn/commands/new.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
apistarlearn/commands/new.py
1067511899/tornado-learn
497cc8f7816f15e2eab834a758f192d50704fe05
[ "Apache-2.0" ]
null
null
null
import os import shutil import apistar from apistar import exceptions from apistar.interfaces import Console APISTAR_PACKAGE_DIR = os.path.dirname(apistar.__file__) LAYOUTS_DIR = os.path.join(APISTAR_PACKAGE_DIR, 'layouts') LAYOUT_CHOICES = os.listdir(LAYOUTS_DIR) IGNORED_DIRECTORIES = ['__pycache__'] def new(conso...
35.647059
84
0.674917
5d0a70259f1a6faf9564710ae7a1fa73c238836f
2,286
gyp
Python
3rdParty/V8/gypfiles/parser-shell.gyp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
3rdParty/V8/gypfiles/parser-shell.gyp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
3rdParty/V8/gypfiles/parser-shell.gyp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
# Copyright 2013 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
36.870968
72
0.663167
2c45a95d7d738221f0615ccd5e62e7e2cdd4c599
3,910
py
Python
modelserver/modelserver/guidance/guidance.py
terrykwon/captivate
c7e4714a0eaced62509153849ee89981a58e8e26
[ "MIT" ]
3
2022-01-21T05:44:40.000Z
2022-02-26T16:15:23.000Z
modelserver/modelserver/guidance/guidance.py
terrykwon/captivate
c7e4714a0eaced62509153849ee89981a58e8e26
[ "MIT" ]
null
null
null
modelserver/modelserver/guidance/guidance.py
terrykwon/captivate
c7e4714a0eaced62509153849ee89981a58e8e26
[ "MIT" ]
1
2022-03-14T14:40:56.000Z
2022-03-14T14:40:56.000Z
import pandas as pd import numpy as np from collections import defaultdict import time toy_num = 12 class Toy: def __init__(self, toy_name): self.toy_name = toy_name self.weight = 1/toy_num self.phrases = [] def add_phrase(self, phrase): self.phrases.append(phrase) ...
25.555556
98
0.561637
99446bbe83270a710cc30f7bfdb8bd5390f9e97d
13,793
py
Python
msticpy/common/pkg_config.py
2xyo/msticpy
17f6a25ea82d85632e0c52a60e20626e9621d3b0
[ "MIT" ]
1
2021-07-29T16:04:08.000Z
2021-07-29T16:04:08.000Z
msticpy/common/pkg_config.py
QPC-database/msticpy
54c6d74e0bb25528dd0347edb40c693dd7b1eac7
[ "MIT" ]
3
2021-05-15T02:16:39.000Z
2022-01-19T13:13:25.000Z
msticpy/common/pkg_config.py
QPC-database/msticpy
54c6d74e0bb25528dd0347edb40c693dd7b1eac7
[ "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. # -------------------------------------------------------------------------- """ Packag...
32.00232
88
0.650837
2d61b74408c225599964e7b26da8dfe8eb04671d
29,566
py
Python
testing/test_assertrewrite.py
meawoppl/pytest
3676da594c76243cbb2271a59213d3b2ded2f729
[ "MIT" ]
null
null
null
testing/test_assertrewrite.py
meawoppl/pytest
3676da594c76243cbb2271a59213d3b2ded2f729
[ "MIT" ]
null
null
null
testing/test_assertrewrite.py
meawoppl/pytest
3676da594c76243cbb2271a59213d3b2ded2f729
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import glob import os import py_compile import stat import sys import zipfile import py import pytest import _pytest._code from _pytest.assertion import util from _pytest.assertion.rewrite import rewrite_asserts, PYTEST_TAG, AssertionRewritingHook from ...
30.324103
89
0.545593
4fbf5bfc23a09f532417eafac673b20e948d4f5c
737
py
Python
models/transport.py
3lpsy/FactionAPI
e3659c4a1a1cbdefcf6c3a240ee6db1475e3b022
[ "BSD-3-Clause" ]
1
2019-06-07T16:21:51.000Z
2019-06-07T16:21:51.000Z
models/transport.py
3lpsy/FactionAPI
e3659c4a1a1cbdefcf6c3a240ee6db1475e3b022
[ "BSD-3-Clause" ]
null
null
null
models/transport.py
3lpsy/FactionAPI
e3659c4a1a1cbdefcf6c3a240ee6db1475e3b022
[ "BSD-3-Clause" ]
null
null
null
from backend.database import db class Transport(db.Model): __tablename__ = "Transport" Id = db.Column(db.Integer, primary_key=True) Name = db.Column(db.String) TransportType = db.Column(db.String) Guid = db.Column(db.String) Created = db.Column(db.DateTime) LastCheckin = db.Column(db.DateTi...
33.5
80
0.683853
1382d43500ad690e826c3b76582069e724fa1424
187
py
Python
vmupdate/__init__.py
CorwinTanner/vmupdate
3cd231abb6d00b1fce6850b621b505d30ed14125
[ "MIT" ]
null
null
null
vmupdate/__init__.py
CorwinTanner/vmupdate
3cd231abb6d00b1fce6850b621b505d30ed14125
[ "MIT" ]
null
null
null
vmupdate/__init__.py
CorwinTanner/vmupdate
3cd231abb6d00b1fce6850b621b505d30ed14125
[ "MIT" ]
null
null
null
""" vmupdate is a command line utility used to keep your virtual machines up to date. """ from os import path __version__ = '0.3.0' BASE_DIR = path.dirname(path.dirname(__file__))
18.7
85
0.716578
410ade7d563f74f3bade775abf3569f93d6d7975
11,036
py
Python
localstack/services/awslambda/lambda_utils.py
roguesupport/localstack
087abb05fcb360297431ad8e5790c8014e0a80d7
[ "Apache-2.0" ]
1
2022-03-17T07:22:23.000Z
2022-03-17T07:22:23.000Z
localstack/services/awslambda/lambda_utils.py
roguesupport/localstack
087abb05fcb360297431ad8e5790c8014e0a80d7
[ "Apache-2.0" ]
null
null
null
localstack/services/awslambda/lambda_utils.py
roguesupport/localstack
087abb05fcb360297431ad8e5790c8014e0a80d7
[ "Apache-2.0" ]
null
null
null
import base64 import logging import os import re import time from collections import defaultdict from functools import lru_cache from io import BytesIO from typing import Any, Dict, List, Union from flask import Response from localstack import config from localstack.utils import bootstrap from localstack.utils.aws im...
36.909699
112
0.708499
975a1e8765eb2c2aff035c56438f5df6adc38b35
4,621
py
Python
lib/experiment.py
Racter42/gxabm
04b77f3abb9caa69e527f84c3d85fa8e3d931e27
[ "MIT" ]
1
2021-11-23T21:44:09.000Z
2021-11-23T21:44:09.000Z
lib/experiment.py
Racter42/gxabm
04b77f3abb9caa69e527f84c3d85fa8e3d931e27
[ "MIT" ]
18
2021-07-28T22:32:30.000Z
2021-12-09T19:43:36.000Z
lib/experiment.py
Racter42/gxabm
04b77f3abb9caa69e527f84c3d85fa8e3d931e27
[ "MIT" ]
2
2021-08-04T21:24:14.000Z
2021-11-23T17:57:40.000Z
import os import yaml import json import lib import helm from common import load_profiles, set_active_profile import benchmark INVOCATIONS_DIR = "invocations" METRICS_DIR = "metrics" def run(args: list): """ Runs a single benchmark defined by *args[0]* :param args: a list that contains a single element...
35.007576
175
0.590565
4cbdf7a0ef242165701dd3369f8033de29ca014d
10,320
py
Python
src/transformers/commands/add_new_model.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
31
2022-02-02T13:13:41.000Z
2022-03-29T08:37:20.000Z
src/transformers/commands/add_new_model.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
2
2022-01-06T05:40:05.000Z
2022-01-06T15:12:29.000Z
src/transformers/commands/add_new_model.py
liminghao1630/transformers
207594be81b8e5a8589c8b11c3b236924555d806
[ "Apache-2.0" ]
3
2022-01-06T04:44:13.000Z
2022-02-18T23:35:21.000Z
# Copyright 2020 The HuggingFace Team. 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 applicabl...
41.445783
119
0.620252
f0ffded880c12a07812b9a6b2bf183c2595ceebe
814
py
Python
2020/8.py
quickthom/aoc
34703f57ae8dbbd56748401d999fcb96d0b47bfe
[ "MIT" ]
null
null
null
2020/8.py
quickthom/aoc
34703f57ae8dbbd56748401d999fcb96d0b47bfe
[ "MIT" ]
null
null
null
2020/8.py
quickthom/aoc
34703f57ae8dbbd56748401d999fcb96d0b47bfe
[ "MIT" ]
null
null
null
from handy import read lines = read(8) #lines = [ "nop +0", "acc +1", "jmp +4", "acc +3", "jmp -3", "acc -99", "acc +1", "jmp -4", "acc +6", ] def execute(lines): pgmc = 0 pgmc_hist = set() acc = 0 while pgmc < len(lines) and pgmc not in pgmc_hist: pgmc_hist.add(pgmc) cmd, arg = lines[...
26.258065
103
0.545455
c1b560d0957d12a948864ab5820fa8c7afb7dab6
3,043
py
Python
modules/image/object_detection/faster_rcnn_resnet50_fpn_venus/roi_extractor.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
modules/image/object_detection/faster_rcnn_resnet50_fpn_venus/roi_extractor.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
modules/image/object_detection/faster_rcnn_resnet50_fpn_venus/roi_extractor.py
dwuping/PaddleHub
9a3b23295947e22149cc85c17cb4cf23c03f9e06
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# coding=utf-8 import paddle.fluid as fluid __all__ = ['FPNRoIAlign'] class FPNRoIAlign(object): """ RoI align pooling for FPN feature maps Args: sampling_ratio (int): number of sampling points min_level (int): lowest level of FPN layer max_level (int): highest level of FPN layer ...
39.519481
115
0.618797
f707533305b80bf36cdd6ae41ab2b2aee1f24d73
216
py
Python
Domains/Python/04 - Sets/Introduction to Sets/solution.py
abhinavgunwant/hackerrank-solutions
e016366cb6a9fac562a754d2b230fef907080733
[ "MIT" ]
1
2019-06-09T00:04:56.000Z
2019-06-09T00:04:56.000Z
Domains/Python/04 - Sets/Introduction to Sets/solution.py
abhinavgunwant/hackerrank-solutions
e016366cb6a9fac562a754d2b230fef907080733
[ "MIT" ]
19
2019-06-09T14:45:52.000Z
2019-06-17T18:52:53.000Z
Domains/Python/04 - Sets/Introduction to Sets/solution.py
abhinavgunwant/hackerrank-solutions
e016366cb6a9fac562a754d2b230fef907080733
[ "MIT" ]
null
null
null
def average(array): array = list(set(array)) return sum(array)/len(array) if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) result = average(arr) print(result)
24
41
0.606481
af736a64bd65956495f5ecc432d100c063f28b48
7,232
py
Python
eli5/base.py
abael/eli5
e2f2acfeac5f7a13f13b314e486069660287d7b0
[ "MIT" ]
null
null
null
eli5/base.py
abael/eli5
e2f2acfeac5f7a13f13b314e486069660287d7b0
[ "MIT" ]
null
null
null
eli5/base.py
abael/eli5
e2f2acfeac5f7a13f13b314e486069660287d7b0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Any, List, Tuple, Union from .base_utils import attrs from .formatters.features import FormattedFeatureName # @attrs decorator used in this file calls @attr.s(slots=True), # creating attr.ib entries based on the signature of __init__. @attrs class Explanation(object): ...
33.637209
77
0.590846
b80524e0c415be27a9e1492fe64e475b3a0deea2
100
py
Python
python/pytest_example/eric_math.py
holycrap872/til
97f6b041dad03a2edffb804dc4db090b65b9154f
[ "MIT" ]
8
2015-10-07T02:47:58.000Z
2018-12-25T16:01:08.000Z
python/pytest_example/eric_math.py
holycrap872/til
97f6b041dad03a2edffb804dc4db090b65b9154f
[ "MIT" ]
null
null
null
python/pytest_example/eric_math.py
holycrap872/til
97f6b041dad03a2edffb804dc4db090b65b9154f
[ "MIT" ]
1
2016-08-25T17:45:40.000Z
2016-08-25T17:45:40.000Z
def double(x): return 2 * x def square(x): return x ** 2 def add(x, y): return x + y
10
17
0.52
c5badc5ce5b62e1dcbd29fe34295f4048d487c1d
9,573
py
Python
docs/conf.py
nparslow/taskbuster
6bdafde2d3d724bdaa720eec490fbaa42016b5f1
[ "MIT" ]
null
null
null
docs/conf.py
nparslow/taskbuster
6bdafde2d3d724bdaa720eec490fbaa42016b5f1
[ "MIT" ]
null
null
null
docs/conf.py
nparslow/taskbuster
6bdafde2d3d724bdaa720eec490fbaa42016b5f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # TaskBuster documentation build configuration file, created by # sphinx-quickstart on Fri Apr 1 14:33:26 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
32.672355
99
0.718897
3aa3a454fb206fa664b89212c7a8c4d060d54609
354
py
Python
feder/parcels/types.py
dzemeuksis/feder
32ef7793af6256d4ecada61505c7baf334b34419
[ "MIT" ]
16
2015-08-11T17:20:26.000Z
2022-02-11T20:15:41.000Z
feder/parcels/types.py
dzemeuksis/feder
32ef7793af6256d4ecada61505c7baf334b34419
[ "MIT" ]
534
2015-08-04T00:10:54.000Z
2022-03-17T10:44:47.000Z
feder/parcels/types.py
dzemeuksis/feder
32ef7793af6256d4ecada61505c7baf334b34419
[ "MIT" ]
10
2017-08-30T13:34:32.000Z
2022-02-18T13:00:35.000Z
from feder.parcels.models import IncomingParcelPost, OutgoingParcelPost from feder.records.registry import record_type_registry from feder.records.types import CommonRecordType record_type_registry.registry(IncomingParcelPost, CommonRecordType(IncomingParcelPost)) record_type_registry.registry(OutgoingParcelPost, Comm...
50.571429
87
0.89548
83b4d86aa8a83e956120cdb4b5f6c8df14df9e74
3,187
py
Python
uuv_assistants/scripts/unpause_simulation.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_assistants/scripts/unpause_simulation.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
uuv_assistants/scripts/unpause_simulation.py
jpliquid/testActions2
6f314fa1430f654e5943e47ac278101b9c24f938
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 The Plankton Authors. # All rights reserved. # # This source code is derived from UUV Simulator # (https://github.com/uuvsimulator/uuv_simulator) # Copyright (c) 2016-2019 The UUV Simulator Authors # licensed under the Apache license, Version 2.0 # cf. 3rd-party-licenses.txt ...
36.215909
127
0.670223
6e80aaa71221d455dfde800170aadd00d5f1f888
5,208
py
Python
docs/conf.py
tannewt/Adafruit_CircuitPython_IL91874
fd926ee5b8530a5a9b1666143b27103f2338e9c7
[ "MIT" ]
null
null
null
docs/conf.py
tannewt/Adafruit_CircuitPython_IL91874
fd926ee5b8530a5a9b1666143b27103f2338e9c7
[ "MIT" ]
null
null
null
docs/conf.py
tannewt/Adafruit_CircuitPython_IL91874
fd926ee5b8530a5a9b1666143b27103f2338e9c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath('..')) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extens...
32.347826
146
0.685676
d7e32523bc14e9d6fd4603dca78742f00d710693
14,098
py
Python
anuga/culvert_flows/tests/test_culvert_routines_box_10pct.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
136
2015-05-07T05:47:43.000Z
2022-02-16T03:07:40.000Z
anuga/culvert_flows/tests/test_culvert_routines_box_10pct.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
184
2015-05-03T09:27:54.000Z
2021-12-20T04:22:48.000Z
anuga/culvert_flows/tests/test_culvert_routines_box_10pct.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
70
2015-03-18T07:35:22.000Z
2021-11-01T07:07:29.000Z
#!/usr/bin/env python from __future__ import division from past.utils import old_div import unittest import os.path import sys from anuga.utilities.system_tools import get_pathname_from_package from anuga.culvert_flows.culvert_routines import boyd_generalised_culvert_model import numpy as num class Test_culvert_ro...
40.863768
178
0.465101
d989e3e4bbaa3fde55e2e102f448f05f50afb953
1,184
py
Python
src/lpa/xrd/code.py
DunstanBecht/lpa-xrd
62c3820ce348da3b375f30fd4e9e5552760da42e
[ "CC0-1.0" ]
null
null
null
src/lpa/xrd/code.py
DunstanBecht/lpa-xrd
62c3820ce348da3b375f30fd4e9e5552760da42e
[ "CC0-1.0" ]
null
null
null
src/lpa/xrd/code.py
DunstanBecht/lpa-xrd
62c3820ce348da3b375f30fd4e9e5552760da42e
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ Module to manage the simulation program code. """ from . import * from . import __version__ import pkg_resources replace = ( ("!VERSION", __version__), ) @beartype def copy( cop: str, pst: str, ) -> None: """ Clone recursively a file or a directory. ...
21.527273
75
0.581926
2308d9e31108bc5e1754d596641ca188f8db430e
2,470
py
Python
mpf/tests/test_ModesConfigValidation.py
haggispinball/mpf_fathom_fast
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
[ "MIT" ]
163
2015-01-25T02:19:50.000Z
2022-03-26T12:00:28.000Z
mpf/tests/test_ModesConfigValidation.py
haggispinball/mpf_fathom_fast
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
[ "MIT" ]
1,086
2015-03-23T19:53:17.000Z
2022-03-24T20:46:11.000Z
mpf/tests/test_ModesConfigValidation.py
haggispinball/mpf_fathom_fast
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
[ "MIT" ]
148
2015-01-28T02:31:39.000Z
2022-03-22T13:54:01.000Z
from mpf.tests.MpfTestCase import MpfTestCase from mpf._version import log_url class TestModesConfigValidation(MpfTestCase): def get_config_file(self): return self.config def get_machine_path(self): return 'tests/machine_files/mode_tests/' def setUp(self): self.save_and_prepare_...
37.424242
119
0.664777
b54ecd7614ff3d802547e62d28519477afef1e27
604
py
Python
wagtail/contrib/styleguide/wagtail_hooks.py
wlcrs/wagtail
8afbc6c3eccef9eb0f09ed56c54cd36779451882
[ "BSD-3-Clause" ]
3
2019-05-14T13:43:08.000Z
2021-11-09T11:27:18.000Z
wagtail/contrib/styleguide/wagtail_hooks.py
denza/wagtail
3939397850f2c73d3f960cea5cc9c2cfae2d005d
[ "BSD-3-Clause" ]
163
2019-06-14T20:45:06.000Z
2022-03-23T01:41:07.000Z
wagtail/contrib/styleguide/wagtail_hooks.py
denza/wagtail
3939397850f2c73d3f960cea5cc9c2cfae2d005d
[ "BSD-3-Clause" ]
1
2020-04-10T03:21:10.000Z
2020-04-10T03:21:10.000Z
from django.conf.urls import url from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from wagtail.admin.menu import MenuItem from wagtail.core import hooks from . import views @hooks.register('register_admin_urls') def register_admin_urls(): return [ url(r'^styleguide...
23.230769
69
0.720199
549be53da1b8abb6ec25c515fac8a6f669ffc07f
5,657
py
Python
Pornhub_img.py
Guwudao/PH-image-download
3ae880b22f65c62003f5d2fb8df334f2cc1c15b9
[ "MIT" ]
1
2020-08-12T06:18:40.000Z
2020-08-12T06:18:40.000Z
Pornhub_img.py
Guwudao/PH-image-download
3ae880b22f65c62003f5d2fb8df334f2cc1c15b9
[ "MIT" ]
null
null
null
Pornhub_img.py
Guwudao/PH-image-download
3ae880b22f65c62003f5d2fb8df334f2cc1c15b9
[ "MIT" ]
null
null
null
import requests import threading import os from bs4 import BeautifulSoup from concurrent.futures import ThreadPoolExecutor import urllib.parse headers = { "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" } proxy = { "https...
32.325714
140
0.608096
8d420f8257412591ce7ce69791f04bb9f8bea571
2,404
py
Python
streamlit/src/pages/user_activities.py
likweitan/final_year_project
a86059cad92efe4edd85364d21b4ee6a56234b30
[ "MIT" ]
null
null
null
streamlit/src/pages/user_activities.py
likweitan/final_year_project
a86059cad92efe4edd85364d21b4ee6a56234b30
[ "MIT" ]
null
null
null
streamlit/src/pages/user_activities.py
likweitan/final_year_project
a86059cad92efe4edd85364d21b4ee6a56234b30
[ "MIT" ]
1
2021-07-10T15:54:54.000Z
2021-07-10T15:54:54.000Z
from altair.vegalite.v4.schema.core import Scale import streamlit as st import altair as alt import plotly.express as px import pandas as pd import numpy as np def load(data): st.title('🎲 User Statistics') st.sidebar.header('User') user = st.sidebar.selectbox('Please select an user', ['Student A','Stude...
38.774194
224
0.682196
b7c0aae8db360935204dceaf5e93ac8511de6738
1,141
py
Python
Hopfield-Network/hopfield.py
Andrey-2310/DPSI
4444b66d9d77f891464b218e72befc7be1d21584
[ "MIT" ]
null
null
null
Hopfield-Network/hopfield.py
Andrey-2310/DPSI
4444b66d9d77f891464b218e72befc7be1d21584
[ "MIT" ]
null
null
null
Hopfield-Network/hopfield.py
Andrey-2310/DPSI
4444b66d9d77f891464b218e72befc7be1d21584
[ "MIT" ]
null
null
null
import numpy as np weights = np.zeros((100, 100)).astype(int) def write_weights_to_file(weights): with open('weights', 'w') as f: for item in weights: f.write("%s\n" % item) def teach_network(img_array): calculate_weights(img_array) delete_self_feedback() write_weights_to_file(w...
24.804348
74
0.64943
1bd2a63a32c9389334e1d651c7c3f03b18b80519
5,742
py
Python
src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
1
2021-03-15T21:45:56.000Z
2021-03-15T21:45:56.000Z
src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
null
null
null
src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
null
null
null
r""" Finite Dimensional Nilpotent Lie Algebras With Basis AUTHORS: - Eero Hakavuori (2018-08-16): initial version """ # **************************************************************************** # Copyright (C) 2018 Eero Hakavuori <eero.hakavuori@gmail.com> # # This program is free software: you can redistri...
35.226994
101
0.522814
f2306889ef2d76dd34d5cc51ae4bcb419b831118
1,132
py
Python
cmd/play.py
codymlewis/QuantumChess
13d582204e295cb7255e897336a8266592604923
[ "MIT" ]
null
null
null
cmd/play.py
codymlewis/QuantumChess
13d582204e295cb7255e897336a8266592604923
[ "MIT" ]
null
null
null
cmd/play.py
codymlewis/QuantumChess
13d582204e295cb7255e897336a8266592604923
[ "MIT" ]
null
null
null
# Author: Cody Lewis # Date: 12-APR-2018 # Description: The main game flow of the quantum chess game import re import board if __name__ == "__main__": b = board.Board() i = 0 col = 'B' pattern = '[Yy]e?s?' sp = False while(True): winVal = b.win() if(winVal == 'W'): pr...
28.3
74
0.463781
3951f7178425b420daced0b8cd2047f2548324cd
797
py
Python
api/serializers.py
kzambrow/cs347
bcb711545a9f3dfcb298b8a20cf5106d13701cc1
[ "MIT" ]
null
null
null
api/serializers.py
kzambrow/cs347
bcb711545a9f3dfcb298b8a20cf5106d13701cc1
[ "MIT" ]
null
null
null
api/serializers.py
kzambrow/cs347
bcb711545a9f3dfcb298b8a20cf5106d13701cc1
[ "MIT" ]
null
null
null
from .models import DataFile, SmartHomeDevice from dashboard.models import CustomUser, UserProfile from rest_framework import serializers class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfile exclude = ('user',) class UserSerializer(serializers.HyperlinkedModelS...
31.88
72
0.736512
627eb85e584c592bbfccacae880ce07f9b0bd5ea
7,447
py
Python
deebot_t8/auth_client.py
nickw444/deebot-t8
dac3d9fbb0e9f2aec60ec2e489a823458e8f9c15
[ "MIT" ]
1
2022-02-26T18:56:16.000Z
2022-02-26T18:56:16.000Z
deebot_t8/auth_client.py
nickw444/deebot-t8
dac3d9fbb0e9f2aec60ec2e489a823458e8f9c15
[ "MIT" ]
8
2021-07-05T11:55:12.000Z
2021-07-05T11:56:45.000Z
deebot_t8/auth_client.py
nickw444/deebot-t8
dac3d9fbb0e9f2aec60ec2e489a823458e8f9c15
[ "MIT" ]
null
null
null
from __future__ import annotations import logging import threading import time from typing import Dict, Any, Callable import requests from .credentials import Credentials from .exceptions import InvalidCredentialsException, ApiErrorException from .md5 import md5_hex from .portal_client import PortalClient from .urls...
32.662281
87
0.559017
2667fc0f7b80baab6b1abc7b6e4e3a9a1bd7c6c0
1,481
py
Python
unishare/__init__.py
davidn1998/uni-share
1c174485180c62ea818b3413e9214a1bc0889c6f
[ "MIT" ]
null
null
null
unishare/__init__.py
davidn1998/uni-share
1c174485180c62ea818b3413e9214a1bc0889c6f
[ "MIT" ]
1
2020-10-27T22:30:46.000Z
2020-10-27T22:30:46.000Z
unishare/__init__.py
davidn1998/uni-share
1c174485180c62ea818b3413e9214a1bc0889c6f
[ "MIT" ]
null
null
null
from flask import Flask from unishare.database import db import os def create_app(testing=False): # Create the app app = Flask(__name__, instance_relative_config=True) # Load the default config file app.config.from_object('config') # Overide default configuration if testing == False: ...
29.62
84
0.653612
bf91cbd901e297b542c72a4fd93ae442b037e123
2,007
py
Python
ingestion/src/metadata/ingestion/api/stage.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
864
2021-08-13T23:48:45.000Z
2022-03-31T18:36:30.000Z
ingestion/src/metadata/ingestion/api/stage.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
2,701
2021-08-14T06:05:12.000Z
2022-03-31T23:48:32.000Z
ingestion/src/metadata/ingestion/api/stage.py
troyel/OpenMetadata
4577f12bfde471afd8655ce4ee949fcca3d7fd95
[ "Apache-2.0" ]
144
2021-08-16T20:44:08.000Z
2022-03-29T14:12:30.000Z
# Copyright 2021 Collate # 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...
31.359375
80
0.702541
1b471ce711071e5f70b2da2d3e7770ebc4b0b013
40,429
py
Python
tests/blockchain/test_blockchain_transactions.py
navroudsari/chia-blockchain
fceb39f783392a32f43b562de1e85e810e913005
[ "Apache-2.0" ]
11,902
2019-12-05T00:14:29.000Z
2022-03-31T23:25:37.000Z
tests/blockchain/test_blockchain_transactions.py
navroudsari/chia-blockchain
fceb39f783392a32f43b562de1e85e810e913005
[ "Apache-2.0" ]
5,246
2019-12-05T04:00:03.000Z
2022-03-31T21:33:30.000Z
tests/blockchain/test_blockchain_transactions.py
Devh4ox4d/silishitcoin
4372d06aa4a54220f2bde29c8081410503679a82
[ "Apache-2.0" ]
2,149
2019-12-05T11:12:53.000Z
2022-03-31T06:08:34.000Z
import asyncio import logging import pytest from clvm.casts import int_to_bytes from chia.consensus.blockchain import ReceiveBlockResult from chia.protocols import full_node_protocol from chia.types.announcement import Announcement from chia.types.condition_opcodes import ConditionOpcode from chia.types.condition_wit...
39.753196
115
0.678919
a5fbf6931255b7bfc35abfbf7c9d082d5c1a047c
4,755
py
Python
imblearn/under_sampling/prototype_selection/tests/test_instance_hardness_threshold.py
seabay/UnbalancedDataset
b15b868019343052d4b57bf748d658367166c8b3
[ "MIT" ]
1
2018-07-11T06:47:11.000Z
2018-07-11T06:47:11.000Z
imblearn/under_sampling/prototype_selection/tests/test_instance_hardness_threshold.py
seabay/UnbalancedDataset
b15b868019343052d4b57bf748d658367166c8b3
[ "MIT" ]
null
null
null
imblearn/under_sampling/prototype_selection/tests/test_instance_hardness_threshold.py
seabay/UnbalancedDataset
b15b868019343052d4b57bf748d658367166c8b3
[ "MIT" ]
null
null
null
"""Test the module .""" # Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # Christos Aridas # License: MIT from __future__ import print_function import numpy as np from pytest import raises from sklearn.utils.testing import assert_array_equal from sklearn.ensemble import GradientBoostingClassifier fro...
40.991379
78
0.642061
64a694c83c308f4a1b9eb36edac4a3bce98e83b9
7,792
py
Python
DQM/BeamMonitor/test/Alca_BeamMonitor_file.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
1
2021-01-25T16:39:35.000Z
2021-01-25T16:39:35.000Z
DQM/BeamMonitor/test/Alca_BeamMonitor_file.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
28
2019-08-15T15:21:11.000Z
2021-12-29T14:13:18.000Z
DQM/BeamMonitor/test/Alca_BeamMonitor_file.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
1
2020-08-18T10:29:49.000Z
2020-08-18T10:29:49.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("DQM") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( #"file:/eos/cms/store/data/Run2018D/JetHT/RAW-RECO/JetHTJetPlusHOFilter-12Nov2019_UL2018_rsb-v1/120000/07CBA04E-BEA0-AE4B-A9F1-3C6DF122B40E.root", #"...
82.021053
214
0.643352
c98b0748dd34dcb22e512ab58b6937a1c1125c9f
11,037
py
Python
UserCode/trentc/AcousticAnalysisSlope.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
4
2018-08-27T18:02:34.000Z
2020-06-09T21:19:04.000Z
UserCode/trentc/AcousticAnalysisSlope.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
null
null
null
UserCode/trentc/AcousticAnalysisSlope.py
RunzZhang/SBCcode
e75b8e751cec5fb2c28950edef0c82f005caedcb
[ "MIT" ]
4
2019-06-20T21:36:26.000Z
2020-11-10T17:23:14.000Z
#Author: Trent Cwiok import pdb import numpy as np import math import SBCcode as sbc from matplotlib import pyplot as plt from scipy import signal as sig def main(event_dict, low_tau=5e-4, high_tau=5e-3, window_width_ms=10, offset_from_t0_ms=2, bin_edges=np.array((500, 10000), dtype=np.float64), show_figures...
47.779221
212
0.747305
68ae3e772e663412dddd5ebbb13fceb4e1750e2a
8,719
py
Python
utilities/autoware_camera_lidar_calibrator/nodes/cameracalibrator.py
alanjclark/autoware.ai
ba97edbbffb6f22e78912bf96400a59ef6a13daf
[ "Apache-2.0" ]
2
2020-11-13T11:11:16.000Z
2022-03-09T20:24:54.000Z
utilities/autoware_camera_lidar_calibrator/nodes/cameracalibrator.py
alanjclark/autoware.ai
ba97edbbffb6f22e78912bf96400a59ef6a13daf
[ "Apache-2.0" ]
40
2019-06-24T16:56:15.000Z
2022-02-28T13:41:58.000Z
utilities/autoware_camera_lidar_calibrator/nodes/cameracalibrator.py
alanjclark/autoware.ai
ba97edbbffb6f22e78912bf96400a59ef6a13daf
[ "Apache-2.0" ]
8
2019-08-20T18:54:00.000Z
2022-02-09T13:54:41.000Z
#!/usr/bin/python3 # # Copyright 2015-2019 Autoware 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 applic...
44.258883
143
0.667393
ac425cb78d9ca3ff1da3f63606e0d7fc2e31a43e
256
py
Python
source/test_filter.py
alex-turantsev/Misoi_kontr1
874a04b609eb7cfd5b7717ec4b7dd2321362855f
[ "MIT" ]
null
null
null
source/test_filter.py
alex-turantsev/Misoi_kontr1
874a04b609eb7cfd5b7717ec4b7dd2321362855f
[ "MIT" ]
null
null
null
source/test_filter.py
alex-turantsev/Misoi_kontr1
874a04b609eb7cfd5b7717ec4b7dd2321362855f
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: iso-8859-1 -*- from PIL import ImageTk, Image from operator_filter import operator_filter image_path = '/Users/alex/Projects/images.jpeg' img = Image.open(image_path) filt = operator_filter() filt.apply_filter(image=img)
21.333333
47
0.753906
374977122ed3012ed6fc11f5ad952107f8ffb561
5,119
py
Python
test/functional/wallet-accounts.py
farsider350/AUTX-Core
6d00d1e027a5a6dffb3b0815a155e4515ced007b
[ "MIT" ]
null
null
null
test/functional/wallet-accounts.py
farsider350/AUTX-Core
6d00d1e027a5a6dffb3b0815a155e4515ced007b
[ "MIT" ]
null
null
null
test/functional/wallet-accounts.py
farsider350/AUTX-Core
6d00d1e027a5a6dffb3b0815a155e4515ced007b
[ "MIT" ]
1
2021-01-03T02:35:54.000Z
2021-01-03T02:35:54.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test account RPCs. RPCs tested are: - getaccountaddress - getaddressesbyaccount - listaddressgr...
37.639706
78
0.622387
e398e9da1cb1fad29425dc4770d94d951187d450
7,287
py
Python
python/pyarrow/serialization.py
jbapple-cloudera/arrow
e4f27131cf0b70fc1d166fda0db25362e1b187d1
[ "Apache-2.0" ]
3
2018-11-19T13:38:21.000Z
2019-08-28T14:56:37.000Z
python/pyarrow/serialization.py
jbapple-cloudera/arrow
e4f27131cf0b70fc1d166fda0db25362e1b187d1
[ "Apache-2.0" ]
null
null
null
python/pyarrow/serialization.py
jbapple-cloudera/arrow
e4f27131cf0b70fc1d166fda0db25362e1b187d1
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.426606
79
0.678743
2833e7fa3fec7ba8cee5bc45c32b791d378f3bc4
11,508
py
Python
configurations/je_os_fixedaggr_relloc_filtered.py
ShuaiW/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
182
2016-03-15T01:51:29.000Z
2021-04-21T09:49:05.000Z
configurations/je_os_fixedaggr_relloc_filtered.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
1
2018-06-22T16:46:12.000Z
2018-06-22T21:08:09.000Z
configurations/je_os_fixedaggr_relloc_filtered.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
61
2016-03-15T00:58:28.000Z
2020-03-06T22:00:41.000Z
"""Single slice vgg with normalised scale. """ import functools import lasagne as nn import numpy as np import theano import theano.tensor as T import data_loader import deep_learning_layers import image_transform import layers import preprocess import postprocess import objectives import theano_printer import update...
44.261538
181
0.734359
5e9b120f14eeeb06dbec8778bfa8628498b0c451
6,220
py
Python
tests/python/gpu/test_kvstore_gpu.py
noob0/incubator-mxnet
5a8b873343495c2d54a6c005d006b58be3978cb6
[ "Apache-2.0" ]
28
2018-02-02T05:00:16.000Z
2022-01-02T18:27:39.000Z
tests/python/gpu/test_kvstore_gpu.py
noob0/incubator-mxnet
5a8b873343495c2d54a6c005d006b58be3978cb6
[ "Apache-2.0" ]
27
2017-07-04T17:45:51.000Z
2019-09-12T06:56:27.000Z
tests/python/gpu/test_kvstore_gpu.py
noob0/incubator-mxnet
5a8b873343495c2d54a6c005d006b58be3978cb6
[ "Apache-2.0" ]
7
2015-11-20T18:09:30.000Z
2017-11-24T16:52:25.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 u...
41.192053
107
0.637781
edc212c1cfa362ba4419a47aa787fb8635f04d45
10,165
py
Python
trainer.py
stefanosantaris/DMTKG
f5cba46b055e7c7aa3048ace0d24fce1a5300313
[ "Apache-2.0" ]
1
2020-11-13T19:07:28.000Z
2020-11-13T19:07:28.000Z
trainer.py
stefanosantaris/DMTKG
f5cba46b055e7c7aa3048ace0d24fce1a5300313
[ "Apache-2.0" ]
5
2020-07-27T10:41:47.000Z
2022-02-10T01:40:29.000Z
trainer.py
stefanosantaris/DMTKG
f5cba46b055e7c7aa3048ace0d24fce1a5300313
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from utils.dataset.GraphLoader import GraphLoader from utils.utils import sparse_to_tuple import scipy.sparse as sps import numpy as np import random import time class Trainer(): def __init__(self, exp_params): super(Trainer, self).__init__() self.graph_loader = GraphLoade...
46.415525
154
0.605509
d0ed864e9bec6eb7da7982919bac786ce3b6ece9
781
py
Python
factory/dataset_factory.py
LZX-0201/L3-Net-
fdb8398e7ff87a0a148f82f320cab391c2c1ff8d
[ "MIT" ]
7
2021-11-19T13:16:25.000Z
2022-02-11T03:24:30.000Z
factory/dataset_factory.py
LZX-0201/L3-Net-
fdb8398e7ff87a0a148f82f320cab391c2c1ff8d
[ "MIT" ]
null
null
null
factory/dataset_factory.py
LZX-0201/L3-Net-
fdb8398e7ff87a0a148f82f320cab391c2c1ff8d
[ "MIT" ]
1
2022-01-02T08:32:13.000Z
2022-01-02T08:32:13.000Z
from dataset import * class DatasetFactory: singleton_dataset = None def __init__(self): pass @staticmethod def get_dataset(data_config): class_name = data_config['dataset_class'] all_classes = DatasetBase.__subclasses__() for cls in all_classes: if cls.__n...
31.24
83
0.663252
99d34052319eb0b9f7d7a9f8b0e04c6e8623cae8
7,676
py
Python
src/demo/fast_abs_rl-master/decoding.py
nilax97/nlp_project
b366060728342fc177a24a2ba8db2d97e860b959
[ "MIT" ]
8
2020-04-04T06:15:43.000Z
2021-11-17T11:19:48.000Z
src/demo/fast_abs_rl-master/decoding.py
nilax97/nlp_project
b366060728342fc177a24a2ba8db2d97e860b959
[ "MIT" ]
3
2021-06-08T21:05:01.000Z
2022-03-12T00:19:12.000Z
src/demo/fast_abs_rl-master/decoding.py
nilax97/nlp_project
b366060728342fc177a24a2ba8db2d97e860b959
[ "MIT" ]
null
null
null
""" decoding utilities""" import json import re import os from os.path import join import pickle as pkl from itertools import starmap from cytoolz import curry import torch from utils import PAD, UNK, START, END from model.copy_summ import CopySumm from model.extract import ExtractSumm, PtrExtractSumm from model.rl ...
37.812808
75
0.607217
685d7709366660be79d98f26d27411b98b337119
1,642
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/virtual_network_rule_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/virtual_network_rule_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/models/virtual_network_rule_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "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 ...
38.186047
148
0.646163
145ff7cd59bf75144b6b899ecb7383e46371273c
133
py
Python
GeneticSimPython/GeneticSimPython/Genetic/constants.py
Scimson/GeneticSim
7175e0ead69185bcf3221a91b5bac40b4cc42495
[ "Apache-2.0" ]
null
null
null
GeneticSimPython/GeneticSimPython/Genetic/constants.py
Scimson/GeneticSim
7175e0ead69185bcf3221a91b5bac40b4cc42495
[ "Apache-2.0" ]
null
null
null
GeneticSimPython/GeneticSimPython/Genetic/constants.py
Scimson/GeneticSim
7175e0ead69185bcf3221a91b5bac40b4cc42495
[ "Apache-2.0" ]
null
null
null
INITIAL_GENE_VALUE_LIMIT = 1 MUTATION_PROBABILITY = 0.3 MUTATION_SIZE = 0.2 GENERATION_SIZE = 8 VERBOSE = False DECIMAL_PRECISION = 3
22.166667
28
0.81203
c3a5468296dd87b66588816b6535751cd40807c6
23,881
py
Python
test/functional/test_runner.py
purplefox81/bitcoin-testnet-for-fun
c3fa891b93e02901ce6b4ee1b10e8a3cfa9c151e
[ "MIT" ]
20
2019-04-03T06:30:39.000Z
2019-11-07T08:57:50.000Z
test/functional/test_runner.py
purplefox81/bitcoin-testnet-for-fun
c3fa891b93e02901ce6b4ee1b10e8a3cfa9c151e
[ "MIT" ]
null
null
null
test/functional/test_runner.py
purplefox81/bitcoin-testnet-for-fun
c3fa891b93e02901ce6b4ee1b10e8a3cfa9c151e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
39.085106
195
0.634102
b79b99c01655b3acb52a59fe5a1e033a5054d447
615
py
Python
todo_app/forms.py
edarakchiev/todo_project
d546c959b999d2dff3a366087c05ff691e95bb6b
[ "MIT" ]
null
null
null
todo_app/forms.py
edarakchiev/todo_project
d546c959b999d2dff3a366087c05ff691e95bb6b
[ "MIT" ]
null
null
null
todo_app/forms.py
edarakchiev/todo_project
d546c959b999d2dff3a366087c05ff691e95bb6b
[ "MIT" ]
null
null
null
from django import forms class CreateTodoForm(forms.Form): text = forms.CharField( max_length=30, ) description = forms.CharField( widget=forms.Textarea( attrs={ 'rows': 3, 'cols': 40, } ), ) is_done = forms.BooleanFie...
21.206897
56
0.547967
8814531d79cb690c3b678aa71b09d097f5dea4cf
1,575
py
Python
shops/fashionnova.py
ikp4success/shopasource
9a9ed5c58a8b37b6ff169b45f7fdfcb44809fd88
[ "Apache-2.0" ]
3
2019-12-04T07:08:55.000Z
2020-12-08T01:38:46.000Z
shops/fashionnova.py
ikp4success/shopasource
9a9ed5c58a8b37b6ff169b45f7fdfcb44809fd88
[ "Apache-2.0" ]
null
null
null
shops/fashionnova.py
ikp4success/shopasource
9a9ed5c58a8b37b6ff169b45f7fdfcb44809fd88
[ "Apache-2.0" ]
null
null
null
from shops.shop_base import ShopBase class Fashionnova(ShopBase): name = "FASHIONNOVA" def start_requests(self): # uuid_v = uuid.uuid4() uuid_v = "8fb37bd6-aef1-4d7c-be3f-88bafef01308" shop_url = self.shop_url.format(keyword=self._search_keyword, uuid=uuid_v) yield self.get_re...
32.8125
82
0.556825
b7f22b13b32ec40d0e5f338babf26b31f20d2417
4,056
py
Python
kb++.py
happymonkey1/kbl
b254bde2d809829bde9cd1f906169bbddfcb28c5
[ "MIT" ]
1
2021-10-12T02:08:13.000Z
2021-10-12T02:08:13.000Z
kb++.py
happymonkey1/kbl
b254bde2d809829bde9cd1f906169bbddfcb28c5
[ "MIT" ]
null
null
null
kb++.py
happymonkey1/kbl
b254bde2d809829bde9cd1f906169bbddfcb28c5
[ "MIT" ]
null
null
null
import sys LANG_NAME = "kb++" COUNTER = 0 def iota(reset = False) -> int: global COUNTER if reset: COUNTER = 0 i = COUNTER COUNTER += 1 return i ''' Define Operations ''' OP_ASSIGN = iota(True) OP_ADD = iota() OP_PRINT = iota() COUNT_OPS = iota() ''' Define Types ''' TYPE_i32 = iota(T...
27.972414
92
0.586292
a338a86c55af8de5a2ba8c4e62b5a4ea7fd7c2fd
3,934
py
Python
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/encoded_task_run_request.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
45.744186
88
0.663447
0900224a01ccfb7e9e2455901e528d4e255d2ad3
21,511
py
Python
darts/models/forecasting/rnn_model.py
bruecks2/darts
4cf51f7cfffdc53049bdca6f9eb54eaf5810eaa5
[ "Apache-2.0" ]
null
null
null
darts/models/forecasting/rnn_model.py
bruecks2/darts
4cf51f7cfffdc53049bdca6f9eb54eaf5810eaa5
[ "Apache-2.0" ]
null
null
null
darts/models/forecasting/rnn_model.py
bruecks2/darts
4cf51f7cfffdc53049bdca6f9eb54eaf5810eaa5
[ "Apache-2.0" ]
1
2022-02-15T11:06:29.000Z
2022-02-15T11:06:29.000Z
""" Recurrent Neural Networks ------------------------- """ from typing import Optional, Sequence, Tuple, Union import torch import torch.nn as nn from darts.logging import get_logger, raise_if_not from darts.models.forecasting.pl_forecasting_module import PLDualCovariatesModule from darts.models.forecasting.torch_f...
45.865672
119
0.625494
7f3916cecad2996a44ed47cf29d75d8c6125d9b6
2,353
py
Python
fylesdk/apis/reports.py
Shwetabhk/fyle-sdk-py
7a321820a90afeb6ac9617eb04b5ba939ddbc688
[ "MIT" ]
null
null
null
fylesdk/apis/reports.py
Shwetabhk/fyle-sdk-py
7a321820a90afeb6ac9617eb04b5ba939ddbc688
[ "MIT" ]
null
null
null
fylesdk/apis/reports.py
Shwetabhk/fyle-sdk-py
7a321820a90afeb6ac9617eb04b5ba939ddbc688
[ "MIT" ]
null
null
null
from .api_base import ApiBase class Reports(ApiBase): """Class for Reports APIs.""" GET_REPORTS = '/api/tpa/v1/reports' GET_REPORTS_COUNT = '/api/tpa/v1/reports/count' def get(self, updated_at=None, settled_at=None, reimbursed_at=None, approved_at=None, state=None, offset=None, limit=None, exported...
49.020833
142
0.640884
e7d51a27941888335ddd5a81789a7aebddbfbfe8
6,456
py
Python
glance/tests/functional/db/test_migrations.py
dchavoll/stx-glance
1ec64167057e3368f27a1a81aca294b771e79c5e
[ "Apache-2.0" ]
null
null
null
glance/tests/functional/db/test_migrations.py
dchavoll/stx-glance
1ec64167057e3368f27a1a81aca294b771e79c5e
[ "Apache-2.0" ]
5
2018-09-18T15:51:40.000Z
2019-01-08T16:38:44.000Z
glance/tests/functional/db/test_migrations.py
dchavoll/stx-glance
1ec64167057e3368f27a1a81aca294b771e79c5e
[ "Apache-2.0" ]
6
2018-09-06T14:50:23.000Z
2018-11-27T21:32:51.000Z
# Copyright 2016 Rackspace # Copyright 2016 Intel 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/LICE...
37.103448
79
0.636462
57fa9b4f2df1644ab17fea6014dbe1d2c39311fd
1,431
py
Python
note3/linear_regression.py
yeyupiaoling/LearnPaddle2
7c53fa82cd6449c6583de79622edc612ec73064d
[ "Apache-2.0" ]
163
2019-01-30T04:34:01.000Z
2021-12-10T12:19:03.000Z
note3/linear_regression.py
stonebb/LearnPaddle2
c3b6a9f5897e684b6de544cb12c959f7771a6c3c
[ "Apache-2.0" ]
3
2019-07-15T07:14:17.000Z
2022-03-24T01:14:06.000Z
note3/linear_regression.py
stonebb/LearnPaddle2
c3b6a9f5897e684b6de544cb12c959f7771a6c3c
[ "Apache-2.0" ]
83
2018-10-31T02:44:09.000Z
2022-03-25T13:40:54.000Z
import paddle.fluid as fluid import numpy as np # 定义一个简单的线性网络 x = fluid.layers.data(name='x', shape=[1], dtype='float32') hidden = fluid.layers.fc(input=x, size=100, act='relu') net = fluid.layers.fc(input=hidden, size=1, act=None) # 获取预测程序 infer_program = fluid.default_main_program().clone(for_test=True) # 定义损失函数 y...
30.446809
73
0.659679
16b94b4557973d763a04842cafb36ecd943b9e40
3,108
py
Python
TM1py/Services/ElementService.py
lotsaram/TM1py
71a2fd1e30211e497bb2644f0d11376abd2c29a7
[ "MIT" ]
null
null
null
TM1py/Services/ElementService.py
lotsaram/TM1py
71a2fd1e30211e497bb2644f0d11376abd2c29a7
[ "MIT" ]
null
null
null
TM1py/Services/ElementService.py
lotsaram/TM1py
71a2fd1e30211e497bb2644f0d11376abd2c29a7
[ "MIT" ]
1
2022-01-17T10:02:44.000Z
2022-01-17T10:02:44.000Z
# -*- coding: utf-8 -*- import json from TM1py.Objects.ElementAttribute import ElementAttribute from TM1py.Services.ObjectService import ObjectService class ElementService(ObjectService): """ Service to handle Object Updates for TM1 Dimension (resp. Hierarchy) Elements """ def __init__(self, rest):...
42
119
0.630952
c97babb55880854648f00e7f636146acdcc5cdd7
31,143
py
Python
gen/tools/jnc_plugin/generators/java_method.py
xotonic/netconfessor
cf825e6c94db6dff77db7c236a2c4412c6f533ce
[ "Apache-2.0" ]
2
2019-03-15T05:08:57.000Z
2020-09-08T08:13:07.000Z
gen/tools/jnc_plugin/generators/java_method.py
xotonic/netconfessor
cf825e6c94db6dff77db7c236a2c4412c6f533ce
[ "Apache-2.0" ]
null
null
null
gen/tools/jnc_plugin/generators/java_method.py
xotonic/netconfessor
cf825e6c94db6dff77db7c236a2c4412c6f533ce
[ "Apache-2.0" ]
null
null
null
import os import re from .. import util, context from ..java_value import JavaValue from ..method import JavaMethod from ..ordered_set import OrderedSet class MethodGenerator(object): """A generator for JavaMethod objects""" def __init__(self, stmt, ctx): """Sets the attributes of the method genera...
45.664223
114
0.568218
97b8de7b0b9b2435af45d70e232e8e137cbcbf47
1,289
py
Python
S202-mongo-crud/db/database.py
GuilhermeMarcondesPixel/labS202
671dd8ba88e25fdfc70eae517b305367ea8c0a50
[ "MIT" ]
null
null
null
S202-mongo-crud/db/database.py
GuilhermeMarcondesPixel/labS202
671dd8ba88e25fdfc70eae517b305367ea8c0a50
[ "MIT" ]
null
null
null
S202-mongo-crud/db/database.py
GuilhermeMarcondesPixel/labS202
671dd8ba88e25fdfc70eae517b305367ea8c0a50
[ "MIT" ]
null
null
null
import pymongo class Database: def __init__(self, database, collection, dataset=None): connectionString = "mongodb://localhost:27017/?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false" self.clusterConnection = pymongo.MongoClient( connectionString, ...
33.051282
136
0.605896
c0e69480886dfb96a16903c170a1062298287263
5,755
py
Python
server/app/outputs/dmxfixtures/gobo.py
BasementCat/audio-reactive-led-strip
acbfd3709ecf3f970c604045bb62da0b47661330
[ "MIT" ]
1
2020-05-14T06:27:34.000Z
2020-05-14T06:27:34.000Z
server/app/outputs/dmxfixtures/gobo.py
BasementCat/audio-reactive-led-strip
acbfd3709ecf3f970c604045bb62da0b47661330
[ "MIT" ]
null
null
null
server/app/outputs/dmxfixtures/gobo.py
BasementCat/audio-reactive-led-strip
acbfd3709ecf3f970c604045bb62da0b47661330
[ "MIT" ]
null
null
null
import random from app.effects import Effect from app.lib.misc import map_to_range from . import BasicDMX from .movinghead import MovingHeadMixin class GoboMixin: INVERT = ['speed', 'strobe'] CLEAR_EFFECTS_ON_NEW_STATE = ['pan', 'tilt', 'speed', 'dim'] RESET_ON_NEW_STATE = ['speed', 'dim'] def _get...
27.274882
90
0.45404
1d30b7ed836531f3ae4ab21ecca843cff8f9edac
5,523
py
Python
configs/representation/archive/rnd_moco/rnd-moco_r18_rnd_video_2x8x1_50e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/archive/rnd_moco/rnd-moco_r18_rnd_video_2x8x1_50e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/archive/rnd_moco/rnd-moco_r18_rnd_video_2x8x1_50e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings temperature = 0.01 with_norm = True query_dim = 128 model = dict( type='RNDMoCoTracker', queue_dim=query_dim, img_queue_size=256 * 48, patch_queue_size=256 * 144, backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(3, ), stri...
30.346154
78
0.626833
86fa28aef5eee3258dec4af4a85c12300ec31810
9,003
py
Python
src/mechaclient.py
diraven/pipsqueak3
5b6ea19dbc22944beaccf41e5f2589bf31fa8bb5
[ "BSD-3-Clause" ]
null
null
null
src/mechaclient.py
diraven/pipsqueak3
5b6ea19dbc22944beaccf41e5f2589bf31fa8bb5
[ "BSD-3-Clause" ]
null
null
null
src/mechaclient.py
diraven/pipsqueak3
5b6ea19dbc22944beaccf41e5f2589bf31fa8bb5
[ "BSD-3-Clause" ]
null
null
null
""" mechaclient.py - Pydle Client component for mechasqueak3 Copyright (c) 2018 The Fuel Rat Mischief, All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE.md This module is built on top of the Pydle system. """ import functools from typing import Optional from loguru import logger from uuid...
29.910299
99
0.632789
1ee340ba9d8036fb68a02e137f776b96ac607bb1
14,586
py
Python
test/integration/test_auth.py
ubragg/endpoints-management-python
119c1f1d9a79217194beb0685a5fd11008695c19
[ "Apache-2.0" ]
null
null
null
test/integration/test_auth.py
ubragg/endpoints-management-python
119c1f1d9a79217194beb0685a5fd11008695c19
[ "Apache-2.0" ]
null
null
null
test/integration/test_auth.py
ubragg/endpoints-management-python
119c1f1d9a79217194beb0685a5fd11008695c19
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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 required by applicable law or agree...
48.782609
90
0.595503
0ea0591ca1cf44e1097cc1c75d2be384875f82e6
2,203
py
Python
database/migrations/0046_auto_20210128_1632.py
ORC-RIS/beiwe-backend
af2c43f79350bf0fc1ce8efafab1ac9c40008c40
[ "BSD-3-Clause" ]
1
2022-03-12T16:25:50.000Z
2022-03-12T16:25:50.000Z
database/migrations/0046_auto_20210128_1632.py
ORC-RIS/beiwe-backend
af2c43f79350bf0fc1ce8efafab1ac9c40008c40
[ "BSD-3-Clause" ]
null
null
null
database/migrations/0046_auto_20210128_1632.py
ORC-RIS/beiwe-backend
af2c43f79350bf0fc1ce8efafab1ac9c40008c40
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.14 on 2021-01-28 16:32 import datetime import django.core.validators from django.db import migrations, models # due to complex timezone bugs we are simply deleting all absolute schedules from the system # in this migration. There were no live deployments other than onnela lab's staging de...
33.378788
116
0.62778
e97cf2ac95834eeb6ee61bd6e0c7d0dbabb63916
1,271
py
Python
ffeatools/FFEA_initialise/Surface_tools/scale_netgen_surf.py
zzalscv2/FFEA
da8a09dadb1b3978a3d230dc79d9b163d7889242
[ "Apache-2.0" ]
null
null
null
ffeatools/FFEA_initialise/Surface_tools/scale_netgen_surf.py
zzalscv2/FFEA
da8a09dadb1b3978a3d230dc79d9b163d7889242
[ "Apache-2.0" ]
null
null
null
ffeatools/FFEA_initialise/Surface_tools/scale_netgen_surf.py
zzalscv2/FFEA
da8a09dadb1b3978a3d230dc79d9b163d7889242
[ "Apache-2.0" ]
1
2021-04-03T16:08:21.000Z
2021-04-03T16:08:21.000Z
# # This file is part of the FFEA simulation package # # Copyright (c) by the Theory and Development FFEA teams, # as they appear in the README.md file. # # FFEA is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software ...
30.261905
84
0.734854
e23e61d59187713e4edbf49c19e7236cc0bb6827
5,500
py
Python
test/functional/disconnect_ban.py
xraymemory/manna
b2f118bdce9b6a128ef171798ab3fac483517afa
[ "MIT" ]
null
null
null
test/functional/disconnect_ban.py
xraymemory/manna
b2f118bdce9b6a128ef171798ab3fac483517afa
[ "MIT" ]
null
null
null
test/functional/disconnect_ban.py
xraymemory/manna
b2f118bdce9b6a128ef171798ab3fac483517afa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The manna Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test node disconnect and ban behavior""" import time from test_framework.mininode import wait_until from...
50.458716
153
0.659455
c2742cc2a0e91afa9e8ad2a374a6dc121aa1bd9c
12,322
py
Python
python/mojo_bindings/messaging.py
ttyangf/mojo
ca344f878ae23db0289644d78d58aa4b77108e08
[ "BSD-3-Clause" ]
1
2020-04-28T14:35:10.000Z
2020-04-28T14:35:10.000Z
mojo/public/python/mojo_bindings/messaging.py
TribeMedia/sky_engine
4a3894ed246327931b198a7d64652bd0b615b036
[ "BSD-3-Clause" ]
null
null
null
mojo/public/python/mojo_bindings/messaging.py
TribeMedia/sky_engine
4a3894ed246327931b198a7d64652bd0b615b036
[ "BSD-3-Clause" ]
1
2020-04-28T14:35:11.000Z
2020-04-28T14:35:11.000Z
# Copyright 2014 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. """Utility classes to handle sending and receiving messages.""" import struct import sys import weakref import mojo_bindings.serialization as serializatio...
30.053659
80
0.718065
8dc48238e9aac2702fd911fafa3ecca3e2a8e037
8,195
py
Python
solum/tests/api/controllers/v1/test_component.py
devdattakulkarni/test-solum
4e9ddb82d217116aa2c30a6f2581080cbdfae325
[ "Apache-2.0" ]
null
null
null
solum/tests/api/controllers/v1/test_component.py
devdattakulkarni/test-solum
4e9ddb82d217116aa2c30a6f2581080cbdfae325
[ "Apache-2.0" ]
null
null
null
solum/tests/api/controllers/v1/test_component.py
devdattakulkarni/test-solum
4e9ddb82d217116aa2c30a6f2581080cbdfae325
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 - Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
43.823529
79
0.656498
1db6a5a40a64d6fde1da962e1074aefaec9f11ba
3,385
py
Python
zksync_sdk/zksync_provider/transaction.py
zksync-sdk/zksync-python
740020b6c6b83548cf6cd2ec1b4af94316a74667
[ "MIT" ]
22
2021-03-05T07:01:05.000Z
2022-03-26T19:15:19.000Z
zksync_sdk/zksync_provider/transaction.py
zksync-sdk/zksync-python
740020b6c6b83548cf6cd2ec1b4af94316a74667
[ "MIT" ]
23
2021-03-01T06:09:26.000Z
2022-02-17T21:54:44.000Z
zksync_sdk/zksync_provider/transaction.py
zksync-sdk/zksync-python
740020b6c6b83548cf6cd2ec1b4af94316a74667
[ "MIT" ]
10
2021-03-08T13:43:49.000Z
2021-08-23T16:18:14.000Z
import asyncio from dataclasses import dataclass from enum import Enum, auto from typing import Optional class TransactionStatus(Enum): FAILED = auto() COMMITTED = auto() VERIFIED = auto() @dataclass class TransactionResult: status: TransactionStatus fail_reason: str class Transaction: @c...
41.280488
109
0.625702
154a28603b83ee5bcf04b9a808ee3e5536a8c835
750
py
Python
tellapart/aurproxy/config/__init__.py
thinker0/aurproxy
7387bb3ac7decd9d0034f9ca6b4dfea4384ce59d
[ "Apache-2.0" ]
73
2015-04-30T23:41:56.000Z
2021-04-16T07:11:47.000Z
tellapart/aurproxy/config/__init__.py
aurora-scheduler/aurproxy
73a1e7086cc4dd171456f50724246a9261febaf8
[ "Apache-2.0" ]
42
2015-05-21T00:02:42.000Z
2018-01-20T20:20:13.000Z
tellapart/aurproxy/config/__init__.py
amperity/aurproxy
985ab0d32211a5ff1e4f47ceb524b13287e90ffe
[ "Apache-2.0" ]
18
2015-05-01T12:48:20.000Z
2019-09-06T10:04:38.000Z
# Copyright 2015 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.090909
74
0.770667
0710976281c1832a4634717044455bb8987c195c
11,420
py
Python
urban_env/envs/multilane_env.py
pinakigupta/BehaviorRL
ab67d155197c46f3e8551af9763e490b781e8eeb
[ "MIT" ]
6
2020-03-09T01:06:37.000Z
2020-09-16T04:51:24.000Z
urban_env/envs/multilane_env.py
pinakigupta/BehaviorRL
ab67d155197c46f3e8551af9763e490b781e8eeb
[ "MIT" ]
null
null
null
urban_env/envs/multilane_env.py
pinakigupta/BehaviorRL
ab67d155197c46f3e8551af9763e490b781e8eeb
[ "MIT" ]
null
null
null
###################################################################### # Deep Reinforcement Learning for Autonomous Driving # Created/Modified on: February 5, 2019 # Author: Pinaki Gupta ####################################################################### from __futu...
40.640569
126
0.521804
4a1e321d24f9266ba328c1020e565d9f0c014761
5,446
py
Python
model.py
Adversarial-dropout-rnn/adversarial_dropout_lm
e08ff9aa51765fff6cfac4c2576e58bee3fcd173
[ "BSD-3-Clause" ]
null
null
null
model.py
Adversarial-dropout-rnn/adversarial_dropout_lm
e08ff9aa51765fff6cfac4c2576e58bee3fcd173
[ "BSD-3-Clause" ]
null
null
null
model.py
Adversarial-dropout-rnn/adversarial_dropout_lm
e08ff9aa51765fff6cfac4c2576e58bee3fcd173
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable from embed_regularize import embedded_dropout_mask from locked_dropout import LockedDropoutMask from weight_drop import WeightDropMask from pytorch_LSTM import LSTM, LSTMCell, BNLSTMCell class RNNModel(nn.Module): """Container modu...
46.547009
219
0.598972
3763b249834ab0c5ca6a25a5045ffb48844645d4
30,579
py
Python
sympy/integrals/tests/test_transforms.py
smichr/sympy
eda86926d98ab6cb7ec73e3cb8ea78ac15bddea3
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/integrals/tests/test_transforms.py
smichr/sympy
eda86926d98ab6cb7ec73e3cb8ea78ac15bddea3
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/integrals/tests/test_transforms.py
smichr/sympy
eda86926d98ab6cb7ec73e3cb8ea78ac15bddea3
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
from sympy.integrals.transforms import (mellin_transform, inverse_mellin_transform, laplace_transform, inverse_laplace_transform, fourier_transform, inverse_fourier_transform, sine_transform, inverse_sine_transform, cosine_transform, inverse_cosine_transform, hankel_transform, inverse_hankel_transfo...
43.008439
151
0.502731
9517e7cb1aa8210accd6ce0912b1a10e68082f09
5,973
py
Python
descarteslabs/scenes/tests/test_search.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
null
null
null
descarteslabs/scenes/tests/test_search.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
null
null
null
descarteslabs/scenes/tests/test_search.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
null
null
null
import unittest import datetime from descarteslabs.scenes import geocontext, search from shapely.geometry import shape import mock from .mock_data import _metadata_search, _metadata_get_bands_by_product class TestScenesSearch(unittest.TestCase): geom = { "coordinates": ( ( (-...
36.644172
85
0.584966
c84e1cde75281900b2c21b9af02a09b745f5213e
4,053
py
Python
tensorflow/python/data/util/traverse_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/util/traverse_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/data/util/traverse_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
36.845455
81
0.705403
f3c2fbcd5ce1eee3395175c89c6e1eebaf2f0bf9
5,902
py
Python
se_leg_ra/views/ra.py
SUNET/se-leg-ra
ac30e700dda4fceb7a9205b4b2790478cf3ba5b4
[ "BSD-3-Clause" ]
null
null
null
se_leg_ra/views/ra.py
SUNET/se-leg-ra
ac30e700dda4fceb7a9205b4b2790478cf3ba5b4
[ "BSD-3-Clause" ]
null
null
null
se_leg_ra/views/ra.py
SUNET/se-leg-ra
ac30e700dda4fceb7a9205b4b2790478cf3ba5b4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, current_app, render_template, url_for, request, redirect from se_leg_ra.forms import DriversLicenseForm, IdCardForm, PassportForm, NationalIDCardForm from se_leg_ra.decorators import require_eppn from se_leg_ra.db import IdCardProofing, DriversLicenseProofing, Passp...
40.986111
119
0.64978
a5f0070566eeb785dedc80951a37eb250b078c5c
664
py
Python
mlld_functions.py
mdastro/My_Package
80fb7ac90c93da4b41bf90197afa13e1f0b434c7
[ "MIT" ]
null
null
null
mlld_functions.py
mdastro/My_Package
80fb7ac90c93da4b41bf90197afa13e1f0b434c7
[ "MIT" ]
null
null
null
mlld_functions.py
mdastro/My_Package
80fb7ac90c93da4b41bf90197afa13e1f0b434c7
[ "MIT" ]
null
null
null
import numpy as np """ :param MLLD_functions: this class has several functions that are usually used by myself. """ class MLLD_functions: def standardization(self, variable): """ :param variable: the array with the variables you wish to standardize :return: standardized array """ ...
30.181818
88
0.64759
c2d65692448ede7e78f2d7c1060268ea6571e8a5
5,282
py
Python
lxmert/lxmert/src/lxrt/entry.py
Fostereee/Transformer-MM-Explainability
6dc4925b83a38e39069369da599b11d548128eb5
[ "MIT" ]
322
2021-03-29T20:42:57.000Z
2022-03-28T12:26:47.000Z
lxmert/lxmert/src/lxrt/entry.py
Fostereee/Transformer-MM-Explainability
6dc4925b83a38e39069369da599b11d548128eb5
[ "MIT" ]
14
2021-04-23T23:45:58.000Z
2022-03-15T02:46:01.000Z
lxmert/lxmert/src/lxrt/entry.py
Fostereee/Transformer-MM-Explainability
6dc4925b83a38e39069369da599b11d548128eb5
[ "MIT" ]
51
2021-04-05T15:44:52.000Z
2022-03-25T02:28:49.000Z
# coding=utf-8 # Copyright 2019 project LXRT. # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, 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 ...
33.643312
100
0.641045
6039f96200932bf5edb2f26b76b7b1427e3e1b2c
622
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_sips/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_sips/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/payment_sips/__manifest__.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # Copyright 2015 Eezee-It { 'name': 'Worldline SIPS', 'version': '1.0', 'author': 'Eezee-It', 'category': 'Accounting', 'description': """ Worldline SIPS Payment Acquirer for online payments Works...
25.916667
74
0.651125
5d3fcc181ce6af49a1e4650805a2e828daea1ee4
12,611
py
Python
tests/components/fritzbox/test_config_flow.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
1
2021-04-28T09:51:08.000Z
2021-04-28T09:51:08.000Z
tests/components/fritzbox/test_config_flow.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
tests/components/fritzbox/test_config_flow.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Tests for AVM Fritz!Box config flow.""" from unittest import mock from unittest.mock import Mock, patch from pyfritzhome import LoginError import pytest from requests.exceptions import HTTPError from homeassistant.components.fritzbox.const import DOMAIN from homeassistant.components.ssdp import ( ATTR_SSDP_LOC...
37.20059
88
0.702403
ac538702fd5b3d2de4d9c2e05771300632288fcb
2,041
py
Python
Lib/json/tests/test_speedups.py
djaldave/laevad-python-2.7.18
df9aac191d554295db45d638e528880a9ab9a3ec
[ "bzip2-1.0.6" ]
null
null
null
Lib/json/tests/test_speedups.py
djaldave/laevad-python-2.7.18
df9aac191d554295db45d638e528880a9ab9a3ec
[ "bzip2-1.0.6" ]
null
null
null
Lib/json/tests/test_speedups.py
djaldave/laevad-python-2.7.18
df9aac191d554295db45d638e528880a9ab9a3ec
[ "bzip2-1.0.6" ]
null
null
null
from json.tests import CTest class BadBool: def __nonzero__(self): 1/0 class TestSpeedups(CTest): def test_scanstring(self): self.assertEqual(self.json.decoder.scanstring.__module__, "_json") self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring) ...
39.25
92
0.660461
ad40eb4e07101e6a4f711f4277f8b504dbe88b80
7,036
py
Python
projector.py
nessessence/stylegan2-pytorch
8b17ffd1f05cbbc7966bebe3330914d5ebcac188
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
null
null
null
projector.py
nessessence/stylegan2-pytorch
8b17ffd1f05cbbc7966bebe3330914d5ebcac188
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
null
null
null
projector.py
nessessence/stylegan2-pytorch
8b17ffd1f05cbbc7966bebe3330914d5ebcac188
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
null
null
null
import argparse import math import os import torch from torch import optim from torch.nn import functional as F from torchvision import transforms from PIL import Image from tqdm import tqdm import lpips from model import Generator def noise_regularize(noises): loss = 0 for noise in noise...
28.257028
91
0.561967
714e330087927c6cb2f5157f597385fcfd93148e
1,103
py
Python
rplugin/python3/denite/source/gtags_context.py
deramchmzz/denite-gtags
21cbdb90c39b6b6c4908167561394cc2fabafdb0
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/gtags_context.py
deramchmzz/denite-gtags
21cbdb90c39b6b6c4908167561394cc2fabafdb0
[ "MIT" ]
null
null
null
rplugin/python3/denite/source/gtags_context.py
deramchmzz/denite-gtags
21cbdb90c39b6b6c4908167561394cc2fabafdb0
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(1, os.path.dirname(__file__)) from denite_gtags import TagsBase # pylint: disable=locally-disabled, wrong-import-position from denite import util class Source(TagsBase): def __init__(self, vim): super().__init__(vim) self.name = 'gtags_context' self....
29.810811
92
0.56845
02ffe31e6ae2431402cfdd5c5f854e29c6810455
449,937
py
Python
python3/lib/python3.6/site-packages/tensorflow/python/ops/gen_data_flow_ops.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
3
2020-10-12T15:47:01.000Z
2022-01-14T19:51:26.000Z
python3/lib/python3.6/site-packages/tensorflow/python/ops/gen_data_flow_ops.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
null
null
null
python3/lib/python3.6/site-packages/tensorflow/python/ops/gen_data_flow_ops.py
TruongThuyLiem/keras2tensorflow
726f2370160701081cb43fbd8b56154c10d7ad63
[ "MIT" ]
2
2020-08-03T13:02:06.000Z
2020-11-04T03:15:44.000Z
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: data_flow_ops.cc """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context fro...
37.883051
26,160
0.687783
23561396a0461fc9edd5e1c1241adac191d652f5
5,287
py
Python
hrf/trf_g.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
2
2021-09-18T14:21:24.000Z
2021-12-20T03:39:13.000Z
hrf/trf_g.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
null
null
null
hrf/trf_g.py
thu-spmi/semi-EBM
393e3ea3566dd60c48872a5c573a335e8e802707
[ "Apache-2.0" ]
1
2021-09-12T07:02:23.000Z
2021-09-12T07:02:23.000Z
from base import * from lm import * from . import * from .trf import DefaultOps from trf.nce import noise class Config(trf.Config): def __init__(self, data): super().__init__(data) del self.__dict__['pi_0'] average_len = np.sum(np.arange(self.max_len+1) * self.pi_true) ...
37.764286
117
0.607906
5ba06710b1351dee9c32b5747102f2543aa9cf87
76
py
Python
loggz/__init__.py
crist0phe/python-loggz
664c79e725161c9c7f6ab9792282256d1e2973af
[ "MIT" ]
null
null
null
loggz/__init__.py
crist0phe/python-loggz
664c79e725161c9c7f6ab9792282256d1e2973af
[ "MIT" ]
null
null
null
loggz/__init__.py
crist0phe/python-loggz
664c79e725161c9c7f6ab9792282256d1e2973af
[ "MIT" ]
null
null
null
import handlers GzipRotatingFileHandler = handlers.GzipRotatingFileHandler
19
58
0.894737
a2a3846a3cb0b4885f5f40658f7f244fa8362d14
1,609
py
Python
test/test_inline_response_200_13.py
scubawhere/scubawhere-api-python-client
9f8578e251492c7667f785df7b7c9d66e71f5c8e
[ "Apache-2.0" ]
null
null
null
test/test_inline_response_200_13.py
scubawhere/scubawhere-api-python-client
9f8578e251492c7667f785df7b7c9d66e71f5c8e
[ "Apache-2.0" ]
null
null
null
test/test_inline_response_200_13.py
scubawhere/scubawhere-api-python-client
9f8578e251492c7667f785df7b7c9d66e71f5c8e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Scubawhere API Documentation This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API OpenAPI spec version: 1.0.0 ...
29.796296
227
0.735861
a902a30a373ba7485ef94f78c666bfe52f4cfbb1
664
py
Python
main.py
MohammadEbrahimy/mlp
b915373095f50928982ec279a10db322dbe2741f
[ "MIT" ]
null
null
null
main.py
MohammadEbrahimy/mlp
b915373095f50928982ec279a10db322dbe2741f
[ "MIT" ]
null
null
null
main.py
MohammadEbrahimy/mlp
b915373095f50928982ec279a10db322dbe2741f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import NeuralNetwork as NN # Importing tratin and test data train = pd.read_csv("dataset/nba_logreg.csv", header=None) test = pd.read_csv("dataset/test.csv", header=None) train = train.dropna() test = test.dropna() # Split the train and test data x_train = train.values[1:, 1:2...
22.896552
58
0.731928
162fe87431cde8337b5ca6386e6faa0f20d8479a
2,631
py
Python
config/settings/local.py
abrar78/deploy-cookie-cutter
226be50016a96eb2604f6e25d5ea7540e594186b
[ "MIT" ]
null
null
null
config/settings/local.py
abrar78/deploy-cookie-cutter
226be50016a96eb2604f6e25d5ea7540e594186b
[ "MIT" ]
null
null
null
config/settings/local.py
abrar78/deploy-cookie-cutter
226be50016a96eb2604f6e25d5ea7540e594186b
[ "MIT" ]
null
null
null
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY...
40.476923
97
0.581148
9b39dbd39b09969cd356c8b7faf1226694226b70
15,705
py
Python
test/test_subtitles.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
test/test_subtitles.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-08T13:44:12.000Z
2022-03-30T01:27:23.000Z
test/test_subtitles.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
#!/usr/bin/env python3 from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from test.helper import FakeYDL, md5, is_download_test from yt_dlp.extractor import ( YoutubeIE, Dailym...
37.843373
137
0.677619
aa59c205a6a3710c0e7778c0c85ca22b051a3f7e
2,708
py
Python
tests/pyvoronoi_performance.py
Voxel8/pyvoronoi
8ba7957141a3f39a90b48127bf971be76275faba
[ "BSL-1.0", "MIT" ]
15
2015-11-21T19:03:19.000Z
2021-11-30T06:55:23.000Z
tests/pyvoronoi_performance.py
Voxel8/pyvoronoi
8ba7957141a3f39a90b48127bf971be76275faba
[ "BSL-1.0", "MIT" ]
13
2016-01-31T17:01:39.000Z
2022-02-19T13:33:21.000Z
tests/pyvoronoi_performance.py
Voxel8/pyvoronoi
8ba7957141a3f39a90b48127bf971be76275faba
[ "BSL-1.0", "MIT" ]
9
2015-10-22T03:24:14.000Z
2022-01-09T17:11:03.000Z
""" This script is here to let user test the complexity of the problem that can be solved on their machine given their hardware constraints and their software configuration. Can be used to measure possible performance enhancements in the future as well. """ from __future__ import division import time, logging import p...
36.106667
120
0.639217
3f2371e3c7204918c1aafb9022fa0214fd7e60c7
308
py
Python
napari/layers/image/experimental/__init__.py
harripj/napari
7a284b1efeb14b1f812f0d98c608f70f0dd66ad2
[ "BSD-3-Clause" ]
null
null
null
napari/layers/image/experimental/__init__.py
harripj/napari
7a284b1efeb14b1f812f0d98c608f70f0dd66ad2
[ "BSD-3-Clause" ]
null
null
null
napari/layers/image/experimental/__init__.py
harripj/napari
7a284b1efeb14b1f812f0d98c608f70f0dd66ad2
[ "BSD-3-Clause" ]
null
null
null
"""layers.image.experimental """ from .octree_intersection import OctreeIntersection from .octree_level import OctreeLevel from .octree_tile_builder import create_multi_scale_from_image from .octree_util import ImageConfig, OctreeChunk, TestImageSettings # from .octree_image import OctreeImage # circular
34.222222
68
0.850649
41f5f959188191e4c47d2c710867ed1694d41903
70,285
py
Python
src/transformers/models/bart/modeling_tf_bart.py
syskn/transformers
fafbd2574cb12b987099f69b3821814042d8f4ce
[ "Apache-2.0" ]
39
2021-04-30T06:06:30.000Z
2022-03-12T11:56:06.000Z
src/transformers/models/bart/modeling_tf_bart.py
syskn/transformers
fafbd2574cb12b987099f69b3821814042d8f4ce
[ "Apache-2.0" ]
4
2021-04-05T19:56:47.000Z
2022-01-18T17:12:28.000Z
src/transformers/models/bart/modeling_tf_bart.py
syskn/transformers
fafbd2574cb12b987099f69b3821814042d8f4ce
[ "Apache-2.0" ]
30
2021-04-30T07:11:22.000Z
2022-03-15T19:34:58.000Z
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. 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/...
46.639018
236
0.657992
ed931e1769f353296b9c3df61f997c5d42fc8db4
7,422
py
Python
deepdoctection/extern/tp/tpfrcnn/modeling/model_box.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
deepdoctection/extern/tp/tpfrcnn/modeling/model_box.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
deepdoctection/extern/tp/tpfrcnn/modeling/model_box.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: model_box.py # Copyright (c) Tensorpack Contributors # Licensed under the Apache License, Version 2.0 (the "License") """ This file is modified from https://github.com/tensorpack/tensorpack/blob/master/examples/FasterRCNN/modeling/model_box.py """ from collections import namedtuple im...
34.202765
114
0.634196
3075459d16a2d367e78f332f074290c2a1933d29
512
py
Python
domain/src/gateway/client_gateway.py
python-jacksonsr45/web_services
6e37d4f00e9e59a35f06f05ce955ba53242ed9ee
[ "MIT" ]
null
null
null
domain/src/gateway/client_gateway.py
python-jacksonsr45/web_services
6e37d4f00e9e59a35f06f05ce955ba53242ed9ee
[ "MIT" ]
null
null
null
domain/src/gateway/client_gateway.py
python-jacksonsr45/web_services
6e37d4f00e9e59a35f06f05ce955ba53242ed9ee
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from ..request import ClientRequest class ClientInterface(ABC): @classmethod @abstractmethod def insert_client(cls, request: ClientRequest): raise Exception("Method not implemented") @classmethod @abstractmethod def update_client(cls, request: Clien...
25.6
51
0.722656
100eac1fe5bf134fe922de1cda775ffac6c33a74
123
py
Python
test/test_quaero.py
Cynnexis/Quaero
39c78fd560e72eaf9af1bb8b98d9dcd250b8a5f1
[ "MIT" ]
null
null
null
test/test_quaero.py
Cynnexis/Quaero
39c78fd560e72eaf9af1bb8b98d9dcd250b8a5f1
[ "MIT" ]
null
null
null
test/test_quaero.py
Cynnexis/Quaero
39c78fd560e72eaf9af1bb8b98d9dcd250b8a5f1
[ "MIT" ]
null
null
null
from unittest import TestCase from qr import Quaero class TestQuaero(TestCase): def test_search(self): self.fail()
12.3
29
0.756098
0cbf1677d082a7664d7a7c63f0f95cfcf2cbc2ba
1,438
py
Python
infra/base-images/base-msan-builder/wrapper_utils.py
rbehjati/oss-fuzz
a31e58fb5c9984915fdc79610660b326df20b937
[ "Apache-2.0" ]
17
2019-05-20T18:29:33.000Z
2021-10-10T08:20:01.000Z
infra/base-images/base-msan-builder/wrapper_utils.py
rbehjati/oss-fuzz
a31e58fb5c9984915fdc79610660b326df20b937
[ "Apache-2.0" ]
10
2020-08-06T11:48:16.000Z
2021-06-28T10:17:12.000Z
infra/base-images/base-msan-builder/wrapper_utils.py
rbehjati/oss-fuzz
a31e58fb5c9984915fdc79610660b326df20b937
[ "Apache-2.0" ]
2
2019-09-27T17:18:27.000Z
2019-09-27T17:18:54.000Z
#!/usr/bin/env python # Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.958333
80
0.700278
e3e6aa71f774b5f066cc8e9504bcb538b38db9d9
142
py
Python
7_adapter&facade/adapter/mallard_duck.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
7_adapter&facade/adapter/mallard_duck.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
7_adapter&facade/adapter/mallard_duck.py
hypersport/Head-First-Design-Patterns-Python
0c8b831ae89ebbbef8b203b96508deb7e3063590
[ "MIT" ]
null
null
null
from duck import Duck class MallardDuck(Duck): def quack(self): print('Quack') def fly(self): print('I am flying')
14.2
28
0.591549
52c138fc758d0138a994169299d8535139d165b7
760
py
Python
acmicpc/python/14418.py
hyeongyun0916/Algorithm
75f77b2500bb08f24706a8be26497aeeebd2da4f
[ "MIT" ]
1
2018-12-21T01:33:05.000Z
2018-12-21T01:33:05.000Z
acmicpc/python/14418.py
hyeongyun0916/Algorithm
75f77b2500bb08f24706a8be26497aeeebd2da4f
[ "MIT" ]
null
null
null
acmicpc/python/14418.py
hyeongyun0916/Algorithm
75f77b2500bb08f24706a8be26497aeeebd2da4f
[ "MIT" ]
null
null
null
first = list(map(int,input().split())) second = list(map(int,input().split())) third = list(map(int,input().split())) first.sort(reverse=True) second.sort(reverse=True) third.sort(reverse=True) sortedArr = [first, second, third] # print(sortedArr) sortedArr.sort(reverse=True) # print(sortedArr) a,b,c,d,e,f = sorte...
12.881356
114
0.569737
9b37c07fbaeb590e3047c867d019d5c7c6ef93b5
1,552
py
Python
dojo/unittests/tools/test_safety_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
1,772
2018-01-22T23:32:15.000Z
2022-03-31T14:49:33.000Z
dojo/unittests/tools/test_safety_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
3,461
2018-01-20T19:12:28.000Z
2022-03-31T17:14:39.000Z
dojo/unittests/tools/test_safety_parser.py
axelpavageau/django-DefectDojo
00b425742b783ada0f432241c2812ac1257feb73
[ "BSD-3-Clause" ]
1,173
2018-01-23T07:10:23.000Z
2022-03-31T14:40:43.000Z
from django.test import TestCase from dojo.models import Test from dojo.tools.safety.parser import SafetyParser class TestSafetyParser(TestCase): def test_example_report(self): testfile = open("dojo/unittests/scans/safety/example_report.json") parser = SafetyParser() findings = parser.get...
37.853659
74
0.670747