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
2102781ea6cdfb4f74d7c1aa11fb89369bf7b24a
15,907
py
Python
dmreader/visualize.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
1
2021-07-28T05:46:33.000Z
2021-07-28T05:46:33.000Z
dmreader/visualize.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
null
null
null
dmreader/visualize.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Author: Joshua Stuckner # Date: 2017/06/21 import time import os import math import sys import numpy as np import matplotlib.pyplot as plt from matplotlib import animation import tkinter as tk from PIL import Image, ImageTk from matplotlib.colors import Normalize from skimage...
33.418067
95
0.552147
210279c667690863181c58ff45281fdcf46e252b
1,151
py
Python
two1/commands/faucet.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
1
2016-09-10T18:14:33.000Z
2016-09-10T18:14:33.000Z
two1/commands/faucet.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
two1/commands/faucet.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
1
2020-11-04T05:01:17.000Z
2020-11-04T05:01:17.000Z
"""Request bitcoin from the 21 faucet.""" import logging import click from two1.commands.mine import start_cpu_mining from two1.commands.util import decorators from two1.commands.util.uxstring import ux from two1.commands.util.exceptions import MiningDisabledError logger = logging.getLogger(__name__) def _faucet(u...
26.159091
72
0.721981
2102bf0a8ed680ccdbce3ad95be7a3228dbfe6d4
776
py
Python
tasty_alpha/conftest.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2020-10-19T08:07:26.000Z
2020-10-19T08:07:26.000Z
tasty_alpha/conftest.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
null
null
null
tasty_alpha/conftest.py
jzajpt/tasty_alpha
2f4969bc5b29a4d4ea19d8e11cc37ecbcff782c3
[ "MIT" ]
1
2022-02-13T07:58:03.000Z
2022-02-13T07:58:03.000Z
import pytest from aiopubsub import Hub, Publisher from tasty_alpha.asset import Asset from tasty_alpha.market import Market, Markets from tasty_alpha.order import Order, OrderSide, OrderType from tasty_alpha.position import Position @pytest.fixture(scope="module") def hub() -> Hub: return Hub() @pytest.fixture(s...
26.758621
80
0.742268
2102f731b4b12b89696956e70427df9673ed21c6
3,539
py
Python
instructors/need-rework/13_games/teddy_solute.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/need-rework/13_games/teddy_solute.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/need-rework/13_games/teddy_solute.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
import random def create_code(): """create_code() -> str, returns the 4 colors""" code='' #initialize our code object to an empty string in order to fill it with the # string values which will represent each color value colorList = ['r','y','b','g','o','p'] #these represent the colors: red, ...
45.961039
83
0.629274
2102fd71ebadd598938322ce9557018b011099fd
26,947
py
Python
armi/nuclearDataIO/cccc/nhflux.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
armi/nuclearDataIO/cccc/nhflux.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
armi/nuclearDataIO/cccc/nhflux.py
albeanth/armi
3755ffd2fcd1f7b6c557ef3e3f36126706a84c70
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
41.520801
101
0.61903
21031ab1014c410097816cdec01b2b3b72d46cd4
856
py
Python
suspicious_urls_ips/feeds/360gameover.py
asafben/Suspicious_URLs_and_IPs_List
d6ef745ae7a935d9b945efd6ed48bc19cfb1208c
[ "MIT" ]
null
null
null
suspicious_urls_ips/feeds/360gameover.py
asafben/Suspicious_URLs_and_IPs_List
d6ef745ae7a935d9b945efd6ed48bc19cfb1208c
[ "MIT" ]
null
null
null
suspicious_urls_ips/feeds/360gameover.py
asafben/Suspicious_URLs_and_IPs_List
d6ef745ae7a935d9b945efd6ed48bc19cfb1208c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) See the file 'LICENSE' for copying permission """ import re from antivirus.lists_based_engine.update import retrieve_content from antivirus.lists_based_engine.settings import DOMAIN_TYPE from antivirus.lists...
27.612903
92
0.73715
21031d93ca396f7844049512ed20dc7ed88ac49d
645
py
Python
rlkit/torch/vae/dataset/sawyer3d_data_murtaza.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/torch/vae/dataset/sawyer3d_data_murtaza.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/vae/dataset/sawyer3d_data_murtaza.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import os.path as osp import numpy as np from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv import time import cv2 def get_data(N = 10000, test_p = 0.9): dir = '/home/mdalal/catkin_ws/src/sawyer_control/src/sawyer_control/images_data_torque_control_reset_100/' images = [] for i in range(N):...
29.318182
110
0.689922
21033654def44ab463ced10f5a34a2d489ff780f
84,490
py
Python
infra/tools/dockerbuild/wheels.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
infra/tools/dockerbuild/wheels.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
infra/tools/dockerbuild/wheels.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 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. """Manages the generation and uploading of Python wheel CIPD packages. == A Note on Universality == Our wheel generation uses CIPD package naming to represe...
35.831213
90
0.453166
21034e1bc88ab9c236491dd88518dde072804bd8
10,070
py
Python
rally/plugins/openstack/scenarios/manila/utils.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
rally/plugins/openstack/scenarios/manila/utils.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
rally/plugins/openstack/scenarios/manila/utils.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2015 Mirantis 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...
40.441767
78
0.653227
210370e0c13c244e1b108197b00de6789a0a1a81
17,692
py
Python
server_automation/tests/test_exporter_tool_jira.py
MapColonies/automation-server-test
209d98420aeb7da258d18cd15511c8b5f602d0c4
[ "MIT" ]
1
2021-01-05T09:42:52.000Z
2021-01-05T09:42:52.000Z
server_automation/tests/test_exporter_tool_jira.py
MapColonies/automation-server-test
209d98420aeb7da258d18cd15511c8b5f602d0c4
[ "MIT" ]
null
null
null
server_automation/tests/test_exporter_tool_jira.py
MapColonies/automation-server-test
209d98420aeb7da258d18cd15511c8b5f602d0c4
[ "MIT" ]
1
2021-01-28T07:57:05.000Z
2021-01-28T07:57:05.000Z
# pylint: disable=line-too-long, invalid-name, broad-except, unused-argument """ This module responsible of testing export tools - server side:""" import json import logging import pytest from server_automation.tests import request_sampels from server_automation.functions import executors as exc from server_automation....
45.953247
122
0.670246
21037a39d4586b07afc17d79a81dfe9cf562437e
2,247
py
Python
cerebrate/processor/generator/high_tech_unit_tag_generator.py
frugs/cerebrate
980bbf2cb99add4aaf115f5b11d61bae2f325fe7
[ "MIT" ]
1
2020-01-28T16:21:08.000Z
2020-01-28T16:21:08.000Z
cerebrate/processor/generator/high_tech_unit_tag_generator.py
frugs/cerebrate
980bbf2cb99add4aaf115f5b11d61bae2f325fe7
[ "MIT" ]
null
null
null
cerebrate/processor/generator/high_tech_unit_tag_generator.py
frugs/cerebrate
980bbf2cb99add4aaf115f5b11d61bae2f325fe7
[ "MIT" ]
null
null
null
from typing import List, Optional, Set, Callable import sc2reader.objects from cerebrate.core import Replay from cerebrate.processor.extractor import ReplayDataExtractor from cerebrate.util import flatten from .tag_generator import TagGenerator HIGH_TECH_UNITS = { "Battlecruiser": "battlecruiser", "Raven": "...
29.96
78
0.58389
2103a5af5c6e9eb244d1ef8e27feedb02d80922d
4,851
py
Python
portal/context_processors.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/context_processors.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
portal/context_processors.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pycountry from django_mobile import get_flavour from django.conf import settings from django.contrib.sites.models import Site from django.contrib.contenttypes.models import ContentType from core.models import Publication, Category, Article def urls(request): url_dict = {} for...
36.75
113
0.658627
2103f6568e522bfd05eeb162cc77f370c376280b
4,044
py
Python
niftynet/engine/windows_aggregator_identity.py
dkurt/NiftyNet
8e543c1765bf657922cc2ea1c366e6dcaa00de51
[ "Apache-2.0" ]
2
2019-06-19T12:34:49.000Z
2019-06-19T12:36:22.000Z
niftynet/engine/windows_aggregator_identity.py
tomvars/NiftyNet
3a4d54544c0886751bacfdbddb42eb90fe0d5b54
[ "Apache-2.0" ]
null
null
null
niftynet/engine/windows_aggregator_identity.py
tomvars/NiftyNet
3a4d54544c0886751bacfdbddb42eb90fe0d5b54
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ windows aggregator saves each item in a batch output as an image. """ from __future__ import absolute_import, print_function, division import os import niftynet.io.misc_io as misc_io from niftynet.engine.windows_aggregator_base import ImageWindowsAggregator class WindowAsImageAggregator(...
41.690722
76
0.592483
21040b39debe7f6b7928a7dbb27c8586ccc84fd5
1,773
py
Python
src/Solution140.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution140.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
src/Solution140.py
ArkiWang/LeetcodePy
6b4af8da843910823f7f53989bbda4ec8e6dad15
[ "MIT" ]
null
null
null
class Solution: res_list = [] def find_all(self, s: str, p:str) -> {}: low = 0 res = set() while low < len(s): low = s.find(p, low) if low == -1: return res res.add(low) low += 1 return res def generator(self, i...
30.050847
157
0.489002
21040f0c67934329471ed477fec3dde3dd29b99f
1,242
py
Python
AlgorithmsPractice/python/83_easy_Remove Duplicates from Sorted List.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/python/83_easy_Remove Duplicates from Sorted List.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/python/83_easy_Remove Duplicates from Sorted List.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
""" Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Input: 1->1->2 Output: 1->2 Example 2: Input: 1->1->2->3->3 Output: 1->2->3 """ # 2018-6-27 # Remove Duplicates from Sorted List # Definition for singly-linked list. class ListNode(object): def __init__(se...
19.714286
90
0.529791
210442d878aba403666dc3d5262fa7ebf611b5a8
1,661
py
Python
main.py
j178/auto-snatch-course
b1b5f88aac67997c50c4f135d0bf922b47127e0b
[ "WTFPL" ]
1
2017-11-12T09:19:04.000Z
2017-11-12T09:19:04.000Z
main.py
j178/auto-snatch-course
b1b5f88aac67997c50c4f135d0bf922b47127e0b
[ "WTFPL" ]
null
null
null
main.py
j178/auto-snatch-course
b1b5f88aac67997c50c4f135d0bf922b47127e0b
[ "WTFPL" ]
null
null
null
# Author: John Jiang # Date : 2016/7/6 import os import sys from src import User from src.util import Watcher def main(): if len(sys.argv) >= 3: id = sys.argv[1] pw = sys.argv[2] else: id = os.getenv('XK_ID') pw = os.getenv('XK_PW') user = User(id, pw)...
23.394366
62
0.503311
2104437408df89fb46fdb7769bf80c65df85dc44
56,274
py
Python
Lib/test/test_re.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
164
2015-01-04T07:04:07.000Z
2022-01-06T03:18:56.000Z
Lib/test/test_re.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
3
2015-08-27T07:35:26.000Z
2016-04-07T16:35:39.000Z
Lib/test/test_re.py
bendmorris/static-python
2e0f8c4d7ed5b359dc7d8a75b6fb37e6b6c5c473
[ "PSF-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
from test.support import verbose, run_unittest, gc_collect, bigmemtest, _2G, \ cpython_only import io import re from re import Scanner import sre_constants import sys import string import traceback from weakref import proxy # Misc tests from Tim Peters' re.doc # WARNING: Don't change details in these tests if...
46.973289
86
0.511675
21045d709d31375ca8638badfedf5b0eab827576
3,728
py
Python
toydata/figure_scripts/Fig5_propagator_illustration.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
11
2015-08-24T05:20:56.000Z
2021-08-13T13:58:31.000Z
toydata/figure_scripts/Fig5_propagator_illustration.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2015-08-24T04:43:25.000Z
2021-07-06T00:33:44.000Z
toydata/figure_scripts/Fig5_propagator_illustration.py
iosonofabio/FitnessInference
3de97a9301733ac9e47ebc78f4e76f7530ccb538
[ "MIT" ]
3
2019-08-30T18:52:49.000Z
2021-06-15T06:47:04.000Z
import sys sys.path.append('../../prediction_src/') import solve_survival import numpy as np import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt mpl.rcParams['legend.fontsize'] = 10 file_formats = ['.svg','.pdf'] # set matplotlib plotting parameters params = {'backend': 'p...
32.417391
100
0.651556
21045f78c7d62c2225f764ad9caba5a2b4e8232b
1,289
py
Python
applications/shop/fields.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/shop/fields.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/shop/fields.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
discount = ( "code", "amount", "is_percent", "date_end", ) service = ( "name", "key", "price", "tax", "number", ) item = ( "name", "key", "price", "tax", "number", ) offer = ( "service", "name", "named_id", "frequency", "duration", "is_c...
13.020202
28
0.485648
2104659746e59c5201e1ec684baaf0edcb23a63f
10,564
py
Python
reproducibility_project/spe_subproject/src/engines/mcccs/analysis.py
dyukovsm/reproducibility_study
3c3ca5d13a650fe523553525ce04b7592fb8091f
[ "MIT" ]
null
null
null
reproducibility_project/spe_subproject/src/engines/mcccs/analysis.py
dyukovsm/reproducibility_study
3c3ca5d13a650fe523553525ce04b7592fb8091f
[ "MIT" ]
null
null
null
reproducibility_project/spe_subproject/src/engines/mcccs/analysis.py
dyukovsm/reproducibility_study
3c3ca5d13a650fe523553525ce04b7592fb8091f
[ "MIT" ]
null
null
null
"""Script for analysing the results from the 16 different seeds from the 11 systems.""" # It also parses the gsd format trajectory stored in each output analysis folder (obtained by executing conv_traj.py before this script) to get the RDFs.""" import os import shutil from glob import glob import matplotlib.pyplot as ...
32.109422
300
0.512685
2104e893ca0f0b603d42816941bd46692371ae1a
13,469
py
Python
pex/commands/command.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/commands/command.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/commands/command.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, print_function import functools import json import logging import os import subprocess import sys import tempfile from argparse import ArgumentDefa...
32.691748
99
0.596258
2104fac75d7df08fd921a94165a27e455517bdec
1,159
py
Python
chanjo/cli/sambamba.py
biocyberman/chanjo
962eedf26dcfc0ad8ea66d4c56b455192934c68e
[ "MIT" ]
null
null
null
chanjo/cli/sambamba.py
biocyberman/chanjo
962eedf26dcfc0ad8ea66d4c56b455192934c68e
[ "MIT" ]
null
null
null
chanjo/cli/sambamba.py
biocyberman/chanjo
962eedf26dcfc0ad8ea66d4c56b455192934c68e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import click from chanjo.sambamba import run_sambamba LOG = logging.getLogger(__name__) @click.command() @click.option('-r', '--regions', type=click.Path(exists=True), required=True, help='Path to a bed file with exon coordinates') @click.option('-t', '--cov-thr...
37.387097
81
0.654875
210501f4255c154fa9f5bcc8916702bb1258abd5
5,510
py
Python
code_doc/models/artifacts.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/models/artifacts.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
code_doc/models/artifacts.py
coordt/code_doc
c2fac64ac3ad61952a2d9f036727166741f9aff9
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.core.urlresolvers import reverse from django.conf import settings from django.utils.translation import ugettext_lazy as _ import os import logging import urllib from .projects import Project, ProjectSeries from .revisions import Revision logger = logging.getLogger(__name__) ...
30.441989
101
0.655354
21051414d0d9bbd367460be329137c6f73308926
5,717
py
Python
scripts/nn/mnist/train.py
carlzhangweiwen/gazelle_mpc
45818ccf6375100a8fe2680f44f37d713380aa5c
[ "MIT" ]
null
null
null
scripts/nn/mnist/train.py
carlzhangweiwen/gazelle_mpc
45818ccf6375100a8fe2680f44f37d713380aa5c
[ "MIT" ]
null
null
null
scripts/nn/mnist/train.py
carlzhangweiwen/gazelle_mpc
45818ccf6375100a8fe2680f44f37d713380aa5c
[ "MIT" ]
null
null
null
import argparse import os import time from utee import misc import torch import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import dataset import model parser = argparse.ArgumentParser(description='PyTorch MNIST Example') parser.add_argument('--model_name', default='mnist...
43.310606
125
0.634773
21054265aaca342f5350bc5f9845a18dcd541c24
43
py
Python
data_transformation/database/__init__.py
TiFu/runepicker-helper
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
[ "MIT" ]
null
null
null
data_transformation/database/__init__.py
TiFu/runepicker-helper
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
[ "MIT" ]
1
2018-01-01T03:56:01.000Z
2018-01-01T03:56:01.000Z
ml/database/__init__.py
TiFu/runepicker-helper
dcbd7bcce06a80ed5c800b3aaca26d53e4cace8f
[ "MIT" ]
null
null
null
from .database import connect, createRecord
43
43
0.860465
2105469aabbc7ce62dae50bd402b99107aa5db58
69,368
py
Python
zprocess/process_tree.py
chrisjbillington/zprocess
89b464c3a2d10cb3282bea625670f807430adf03
[ "BSD-2-Clause" ]
2
2020-02-02T10:58:56.000Z
2022-03-08T16:52:38.000Z
zprocess/process_tree.py
chrisjbillington/zprocess
89b464c3a2d10cb3282bea625670f807430adf03
[ "BSD-2-Clause" ]
6
2019-08-23T17:36:45.000Z
2021-12-26T00:47:58.000Z
zprocess/process_tree.py
chrisjbillington/zprocess
89b464c3a2d10cb3282bea625670f807430adf03
[ "BSD-2-Clause" ]
1
2019-08-31T14:24:21.000Z
2019-08-31T14:24:21.000Z
from __future__ import division, unicode_literals, print_function, absolute_import import sys PY2 = sys.version_info.major == 2 import os import threading import time import signal import weakref import json import ctypes import atexit from ctypes.util import find_library import logging from binascii import hexlify i...
43.931602
89
0.620214
21057828e2eda43be147b989fe2f50884a2d94f8
13,876
py
Python
.venv/Lib/site-packages/rich/layout.py
jefferdo/gpt-3-client
7acbc5f518fe3fcb55d0bdcbf93fc87b103b1148
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/rich/layout.py
jefferdo/gpt-3-client
7acbc5f518fe3fcb55d0bdcbf93fc87b103b1148
[ "MIT" ]
76
2020-07-31T05:33:39.000Z
2022-03-28T05:04:17.000Z
rich/layout.py
shyovn/rich
a05a5a1c2f95f25db70ac3657e99f0bab652e2cd
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from itertools import islice from operator import itemgetter from threading import RLock from typing import ( TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union, ) from ._ratio import ratio_resolve from .align import...
31.464853
123
0.592462
210584f1385a8a8ec1c07342aed1c14718a865cf
326
py
Python
gdmtl/datasets/data_typing.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/data_typing.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
null
null
null
gdmtl/datasets/data_typing.py
binshengliu/gdmtl
fb8bfe0e87bbd6d8535cc8449012fb4119430d4c
[ "MIT" ]
1
2022-02-26T00:49:03.000Z
2022-02-26T00:49:03.000Z
from typing import TYPE_CHECKING, Dict import torch from torch.utils.data import DataLoader, Dataset # https://github.com/python/mypy/issues/5264 if TYPE_CHECKING: DataLoaderT = DataLoader[Dict[str, torch.Tensor]] DatasetT = Dataset[Dict[str, torch.Tensor]] else: DataLoaderT = DataLoader DatasetT = Da...
25.076923
53
0.754601
2105bf195071338bc85a5653b389f11307d8ee0c
30,081
py
Python
easyforms/advancedfields.py
stevelittlefish/easyforms
7944b83ec94a29ca55777d16536e13cbf8f6996f
[ "Apache-2.0" ]
5
2017-04-27T09:08:33.000Z
2020-08-25T21:54:56.000Z
easyforms/advancedfields.py
stevelittlefish/easyforms
7944b83ec94a29ca55777d16536e13cbf8f6996f
[ "Apache-2.0" ]
8
2021-01-15T15:42:44.000Z
2022-01-13T00:41:20.000Z
easyforms/advancedfields.py
stevelittlefish/easyforms
7944b83ec94a29ca55777d16536e13cbf8f6996f
[ "Apache-2.0" ]
null
null
null
""" Contains the definitions for the more exotic types of form inputs, such as date pickers and gender selection inputs """ import logging import datetime import re import io from collections import OrderedDict from flask import request, url_for from littlefish import timetool from littlefish import htmlutil import r...
36.594891
190
0.609621
21062174d6eaf252036a8eca0a6a886e3c5c026c
4,831
py
Python
Thesis Janne/Data preparation.py
janne1994/CapsNet-Keras
0522f4250f63cafeb55d8e6948a9f65d274f2e0d
[ "MIT" ]
null
null
null
Thesis Janne/Data preparation.py
janne1994/CapsNet-Keras
0522f4250f63cafeb55d8e6948a9f65d274f2e0d
[ "MIT" ]
null
null
null
Thesis Janne/Data preparation.py
janne1994/CapsNet-Keras
0522f4250f63cafeb55d8e6948a9f65d274f2e0d
[ "MIT" ]
null
null
null
import numpy as np from skimage import io, color import h5py import matplotlib.pyplot as plt import glob import imutils from sklearn.model_selection import train_test_split import os import cv2 direc = (os.getcwd()+ "\\xyz\\") def get_files(folder): images = [] for file in os.listdir(folder): img = ...
31.37013
106
0.653488
210656016b7a0d777ec371634e25c2202b6c1cfb
1,965
py
Python
sprox/sa/support.py
TurboGears/sprox
98bd4808d7fa8debe1cc5511db745cf55cb7d67a
[ "MIT" ]
3
2015-07-03T16:31:22.000Z
2018-04-19T04:26:02.000Z
sprox/sa/support.py
TurboGears/sprox
98bd4808d7fa8debe1cc5511db745cf55cb7d67a
[ "MIT" ]
8
2015-02-23T23:01:50.000Z
2021-07-06T14:10:26.000Z
sprox/sa/support.py
TurboGears/sprox
98bd4808d7fa8debe1cc5511db745cf55cb7d67a
[ "MIT" ]
7
2015-06-14T04:07:53.000Z
2020-04-28T13:50:50.000Z
import inspect try: from sqlalchemy.orm import PropertyLoader except ImportError: # Compatibility with SQLA0.9 from sqlalchemy.orm import RelationshipProperty as PropertyLoader try: from sqlalchemy.ext.declarative.clsregistry import _class_resolver except ImportError as e: # pragma: no cover # Co...
28.897059
126
0.683969
210658d8a6d55eeffd698ad4db436267991e8875
4,427
py
Python
nebpyclient/api/metadata.py
Nebulon/nebpyclient
8ea044096bd18aaccbfb81eca4e26ec29895a18c
[ "MIT" ]
2
2020-11-30T21:21:27.000Z
2021-09-29T21:43:37.000Z
nebpyclient/api/metadata.py
Nebulon/nebpyclient
8ea044096bd18aaccbfb81eca4e26ec29895a18c
[ "MIT" ]
1
2020-12-01T15:18:24.000Z
2020-12-01T15:18:24.000Z
nebpyclient/api/metadata.py
Nebulon/nebpyclient
8ea044096bd18aaccbfb81eca4e26ec29895a18c
[ "MIT" ]
2
2020-12-01T15:16:46.000Z
2021-09-29T21:46:40.000Z
# # Copyright 2021 Nebulon, Inc. # All Rights Reserved. # # DISCLAIMER: THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO # EVENT SHALL THE AUTHORS OR COPYRIG...
28.746753
80
0.627739
21065ee6ec129181ccfc84a76fc21578b8a4f914
4,436
py
Python
unit_tests/glhe/profiles/test_external_flow.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
2
2018-11-06T08:04:04.000Z
2020-10-09T14:52:36.000Z
unit_tests/glhe/profiles/test_external_flow.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
68
2018-03-27T01:43:22.000Z
2019-09-09T12:05:44.000Z
unit_tests/glhe/profiles/test_external_flow.py
mitchute/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
4
2018-05-24T03:02:44.000Z
2021-08-16T13:54:09.000Z
import os import tempfile import unittest from glhe.input_processor.input_processor import InputProcessor from glhe.interface.response import SimulationResponse from glhe.output_processor.output_processor import OutputProcessor from glhe.profiles.external_flow import ExternalFlow from glhe.utilities.functions import w...
41.074074
117
0.591749
21069d15a3fb7fcf7355f8c4087caf1752b56b5e
1,741
py
Python
twitoff/twitter.py
xander-bennett/TwitOff
230942382f4a0edd3276cbe4de57eb80ed982555
[ "MIT" ]
null
null
null
twitoff/twitter.py
xander-bennett/TwitOff
230942382f4a0edd3276cbe4de57eb80ed982555
[ "MIT" ]
4
2019-11-13T21:31:57.000Z
2021-06-08T21:27:05.000Z
twitoff/twitter.py
xander-bennett/TwitOff
230942382f4a0edd3276cbe4de57eb80ed982555
[ "MIT" ]
null
null
null
"""Fetch embeddings and tweets for DB""" import basilica import tweepy from decouple import config from .models import DB, Tweet, User TWITTER_AUTH = tweepy.OAuthHandler(config('TWITTER_CONSUMER_KEY'), config('TWITTER_CONSUMER_SECRET')) TWITTER_AUTH.set_access_token(config('TWITTER_ACCESS_TOKEN'), config('TWITTER_ACC...
39.568182
101
0.682366
2106b2bd6913135f0633afb8a86f03a7a7f9a3ca
29,062
py
Python
AlgorithmsPractice/algorithmsPractice-1.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/algorithmsPractice-1.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/algorithmsPractice-1.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:utf-8 # 复习记录 # 不使用程序入口方式执行,方便单个验证 class TreeNode(object): def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right # tree def getTree(): """ 10 /\ 5 12 / \ 4 7 """ rootLeft = TreeNode(5, TreeN...
23.101749
180
0.482967
2106e46cb5dd165601e3d986c11f2485ab96919f
37,054
py
Python
homeassistant/components/sonos/media_player.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
1
2019-03-24T13:30:10.000Z
2019-03-24T13:30:10.000Z
homeassistant/components/sonos/media_player.py
dagobert/home-assistant
33dcb071dab25dd93ce7bcfae70315ace5af4702
[ "Apache-2.0" ]
1
2019-02-09T15:44:11.000Z
2019-02-09T15:44:11.000Z
homeassistant/components/sonos/media_player.py
pc-coholic/home-assistant
24914aade50f7f4f813380b58292d5e91dc47f41
[ "Apache-2.0" ]
1
2020-01-09T12:36:16.000Z
2020-01-09T12:36:16.000Z
""" Support to interface with Sonos players. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.sonos/ """ import datetime import functools as ft import logging import socket import threading import urllib import requests import voluptuous as v...
33.533032
79
0.619501
2106e95eac250f62bcdbfdcea24627c8728a7127
833
py
Python
rlkit/torch/vae/biva/utils/ops.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
63
2019-10-24T10:11:44.000Z
2022-02-17T20:54:41.000Z
rlkit/torch/vae/biva/utils/ops.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
6
2020-04-30T11:47:23.000Z
2021-06-08T20:31:58.000Z
rlkit/torch/vae/biva/utils/ops.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
8
2019-11-23T22:26:59.000Z
2021-04-15T11:54:22.000Z
from time import time import torch def append_ellapsed_time(func): def wrapper(*args, **kwargs): start_time = time() diagnostics = func(*args, **kwargs) diagnostics['info']['elapsed-time'] = time() - start_time return diagnostics return wrapper @append_ellapsed_time def tra...
20.825
76
0.666267
2106ea93a4da0112fcb6bb2663b0693092636a4b
2,556
py
Python
training_utils/helpers.py
switiz/irim_fastMRI
8eeb8f0765c93ad3e8fada2cba52d7fefbe58b24
[ "MIT" ]
null
null
null
training_utils/helpers.py
switiz/irim_fastMRI
8eeb8f0765c93ad3e8fada2cba52d7fefbe58b24
[ "MIT" ]
null
null
null
training_utils/helpers.py
switiz/irim_fastMRI
8eeb8f0765c93ad3e8fada2cba52d7fefbe58b24
[ "MIT" ]
null
null
null
import torch from torch.nn import functional as F from fastMRI.data import transforms from training_utils import ssim def real_to_complex(x): return torch.stack(torch.chunk(x,2,1),-1) def complex_to_real(x): return torch.cat((x[...,0],x[...,1]),1) def mse_gradient(x, data): """ Calculates the gra...
31.555556
100
0.619718
2106f84f571cc0097b860f60cc99287435730989
679
py
Python
python/kindergarten-garden/kindergarten_garden.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
null
null
null
python/kindergarten-garden/kindergarten_garden.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
null
null
null
python/kindergarten-garden/kindergarten_garden.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
null
null
null
class Garden: def __init__(self, diagram, students="Alice, Bob, Charlie, David, Eve, Fred, Ginny, Harriet, Ileana, Joseph, Kincaid, Larry".split(", ")): self.plantsDict = {'G': "Grass", 'C': "Clover", 'R': "Radishes", 'V': "Violets"} self.rows = diagram.splitlines() self.students = sorted(st...
45.266667
142
0.602356
21070d33d7e398f2988ef6bf18b04bc64c5426c5
1,196
py
Python
leetcode/hard/1192-Critical_components.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
leetcode/hard/1192-Critical_components.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
leetcode/hard/1192-Critical_components.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" Leetcode #1192 """ from typing import List import collections class Solution: def criticalConnections(self, n: int, connections: List[List[int]]) -> List[List[int]]: graph = collections.defaultdict(list) for conn in connections: graph[conn[0]].append(conn[1]) grap...
24.916667
91
0.522575
21071853b28c82474e432cae6a039575d4794084
11,400
py
Python
gds_tools/classes.py
ljstek/gds_tools
3884ad4a0c7a953713a09231152e47cec73ad051
[ "MIT" ]
3
2020-10-31T06:47:53.000Z
2021-12-27T18:05:45.000Z
gds_tools/classes.py
ljstek/gds_tools
3884ad4a0c7a953713a09231152e47cec73ad051
[ "MIT" ]
null
null
null
gds_tools/classes.py
ljstek/gds_tools
3884ad4a0c7a953713a09231152e47cec73ad051
[ "MIT" ]
1
2020-09-23T11:09:30.000Z
2020-09-23T11:09:30.000Z
import copy import gdspy import numpy as np from operator import add, sub from recordclass import recordclass import gds_tools as gtools class GDStructure: def __init__(self, structure, endpoints, endpoint_dims, endpoint_directions = None, method = None, args = {}): """Define class to store structures in...
41.007194
210
0.497105
2107472ec7c6980119503f82549599a56180004b
58,994
py
Python
livechat/customer/web/client.py
livechat/lc-sdk-python
536483590b9600ef1bc86fe36a1f810368b85a9d
[ "Apache-2.0" ]
5
2021-03-22T19:22:05.000Z
2022-01-18T13:38:22.000Z
livechat/customer/web/client.py
livechat/lc-sdk-python
536483590b9600ef1bc86fe36a1f810368b85a9d
[ "Apache-2.0" ]
5
2021-10-05T14:44:33.000Z
2022-02-16T07:33:51.000Z
livechat/customer/web/client.py
livechat/lc-sdk-python
536483590b9600ef1bc86fe36a1f810368b85a9d
[ "Apache-2.0" ]
null
null
null
''' Customer Web client implementation. ''' # pylint: disable=W0613,R0913,W0622,C0103 from __future__ import annotations import typing from abc import ABCMeta import httpx from livechat.utils.helpers import prepare_payload from livechat.utils.httpx_logger import HttpxLogger # pylint: disable=R0903 class CustomerW...
50.03732
150
0.533647
21075fb19242b37a7de84395aa0972e541196549
1,106
py
Python
setup.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
setup.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
setup.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name= "pebm", version="1.0.12", use_scm_version={ "root": '..', "relative_to": __file__, "local_scheme": "node-and-timestamp" }, author="sheina Gendelman", author_email="sheina@campus.technion.ac.il", description="A small exampl...
25.72093
70
0.552441
21077ba243838dc38b2a4f3922e5a524fec032d7
3,231
py
Python
setup.py
dedan/jrnl
918a46a2fa9ec1de745ec9209204be1f6bab9cdc
[ "MIT" ]
1
2016-02-06T01:36:25.000Z
2016-02-06T01:36:25.000Z
setup.py
dedan/jrnl
918a46a2fa9ec1de745ec9209204be1f6bab9cdc
[ "MIT" ]
null
null
null
setup.py
dedan/jrnl
918a46a2fa9ec1de745ec9209204be1f6bab9cdc
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ jrnl is a simple journal application for your command line. Journals are stored as human readable plain text files - you can put them into a Dropbox folder for instant syncinc and you can be assured that your journal will still be readable in 2050, when all your fancy ...
36.303371
540
0.678737
21077f6f3b2b66e9f65a69b0b2725f2f23df209c
11,388
py
Python
dpp_nets/my_torch/DPP.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
1
2021-06-05T11:14:13.000Z
2021-06-05T11:14:13.000Z
dpp_nets/my_torch/DPP.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
dpp_nets/my_torch/DPP.py
mbp28/dpp_nets
86859b7612433cc6349b427b47c54986224e702a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Function from torch.autograd import StochasticFunction from torch.autograd import Variable import dpp_nets.dpp as dpp from dpp_nets.my_torch.utilities import omit_slice from dpp_nets.my_torch.utilities import orthogonalize class DPP_Numpy(Function): ""...
33.59292
122
0.509923
21079872d0e748c184610b3ca53dbe826dd8086f
414
py
Python
MeltingClock/polls/urls.py
DweebsUnited/CodeMonkey
3b27e9c189c897b06002498aea639bb44671848a
[ "BSD-3-Clause" ]
null
null
null
MeltingClock/polls/urls.py
DweebsUnited/CodeMonkey
3b27e9c189c897b06002498aea639bb44671848a
[ "BSD-3-Clause" ]
7
2016-06-03T05:41:27.000Z
2018-08-07T07:09:40.000Z
MeltingClock/polls/urls.py
DweebsUnited/CodeMonkey
3b27e9c189c897b06002498aea639bb44671848a
[ "BSD-3-Clause" ]
null
null
null
from django.urls import path from . import views app_name = 'polls' urlpatterns = [ # /polls/ path( '', views.IndexView.as_view( ), name='index' ), # /polls/{id} path( '<int:pk>/', views.DetailView.as_view( ), name='detail' ), # /polls/{id}/results path( '<int:pk>/results/', views.ResultsView.as_view( ), name='...
27.6
75
0.637681
2107a64e95974217d4fbff1d21d245117e78d624
3,040
py
Python
alipay/aop/api/domain/VehicleMessageInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/VehicleMessageInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/VehicleMessageInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.VehicleConditionInfo import VehicleConditionInfo from alipay.aop.api.domain.VehicleModuleInfo import VehicleModuleInfo class VehicleMessageInfo(object): def __init__(self): ...
38
93
0.629605
2107aa2af28e64e57bbce0025c43f4f1ec78f049
1,672
py
Python
app_ifoundadog/migrations/0001_initial.py
jeturcotte/ifoundadog
e7b9867ada1890af10cc4bbe6328af97723e87ee
[ "Apache-2.0" ]
null
null
null
app_ifoundadog/migrations/0001_initial.py
jeturcotte/ifoundadog
e7b9867ada1890af10cc4bbe6328af97723e87ee
[ "Apache-2.0" ]
null
null
null
app_ifoundadog/migrations/0001_initial.py
jeturcotte/ifoundadog
e7b9867ada1890af10cc4bbe6328af97723e87ee
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-03-20 23:59 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL)...
45.189189
160
0.62799
2107c66319b935758f09dbf9692533b72959b1c1
5,068
py
Python
v0.93/dc/utils/folders.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.93/dc/utils/folders.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v0.93/dc/utils/folders.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import os from dc.utils.commun import Commun class Folders: """Creation/manipulation of folders for this app""" cwd = os.getcwd() func = Commun() conf = func.config_info() def create_needed_dirs(self): """Create the working directories if doesn't exist""" r...
36.992701
190
0.538082
210801419481fbe71f49cd0ad46043af4061ce81
4,341
py
Python
st2client/st2client/commands/policy.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2client/st2client/commands/policy.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2client/st2client/commands/policy.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
36.175
89
0.661138
210801b800e2b8d557858a849774c3cf9da4267e
1,015
py
Python
aiomessaging/contrib/dummy/pipelines.py
aiomessaging/aiomessaging
0fe2296d5a772a9b28c3173259e7a6ace6e45624
[ "MIT" ]
4
2018-07-08T18:49:10.000Z
2018-08-16T20:17:29.000Z
aiomessaging/contrib/dummy/pipelines.py
aiomessaging/aiomessaging
0fe2296d5a772a9b28c3173259e7a6ace6e45624
[ "MIT" ]
23
2018-07-08T18:52:42.000Z
2018-10-25T16:58:50.000Z
aiomessaging/contrib/dummy/pipelines.py
aiomessaging/aiomessaging
0fe2296d5a772a9b28c3173259e7a6ace6e45624
[ "MIT" ]
null
null
null
""" pipelines for tests based on dummy components """ from aiomessaging.effects import send from aiomessaging.contrib.dummy import ( NullOutput, FailingOutput, NeverDeliveredOutput, ConsoleOutput, CheckOutput, RetryOutput, ) def simple_pipeline(message): """Simple pipeline. Send messa...
19.901961
53
0.697537
2108133275aab70958e9903afa5ac728e746fbbb
7,425
py
Python
experiments/ashvin/corl2019/offpolicy/pusher/reference4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/offpolicy/pusher/reference4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/offpolicy/pusher/reference4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment ...
37.311558
121
0.564579
2108278017ac8c5138c40bbe774e188552eb6a45
1,273
py
Python
leetcode/Minimize_Maximum_Pair_Sum_in_Array.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-05-01T21:29:17.000Z
2020-05-01T21:29:17.000Z
leetcode/Minimize_Maximum_Pair_Sum_in_Array.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
null
null
null
leetcode/Minimize_Maximum_Pair_Sum_in_Array.py
PhillipLeeHub/algorithm-and-data-structure
c0c27fee1b4fd634084da0b41395a26307d76e69
[ "MIT" ]
1
2020-06-12T23:32:14.000Z
2020-06-12T23:32:14.000Z
''' 1877. Minimize Maximum Pair Sum in Array Medium The pair sum of a pair (a,b) is equal to a + b. The maximum pair sum is the largest pair sum in a list of pairs. For example, if we have pairs (1,5), (2,3), and (4,4), the maximum pair sum would be max(1+5, 2+3, 4+4) = max(6, 5, 8) = 8. Given an array nums of even l...
27.673913
123
0.628437
2108330bbfd62c15b847983794b003d5655ff25d
9,242
py
Python
classification/train/train.py
SunAhong1993/sz-demo
bc5e301f7d235c00ce21d4ad64f2af038b27478a
[ "Apache-2.0" ]
1
2019-09-25T03:42:57.000Z
2019-09-25T03:42:57.000Z
classification/train/train.py
SunAhong1993/sz-demo
bc5e301f7d235c00ce21d4ad64f2af038b27478a
[ "Apache-2.0" ]
null
null
null
classification/train/train.py
SunAhong1993/sz-demo
bc5e301f7d235c00ce21d4ad64f2af038b27478a
[ "Apache-2.0" ]
2
2019-09-16T02:03:49.000Z
2019-09-16T12:21:47.000Z
# copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.979239
88
0.615451
21088a495a55ce651bdec461f140ea4a123e6a93
10,227
py
Python
taf/testlib/linux/maa/maa.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/linux/maa/maa.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/linux/maa/maa.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2015 - 2017, Intel Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
45.052863
109
0.599785
2108a3cb5762ea97ee71629bd2df18cabd718c71
905
py
Python
ex9.8.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex9.8.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex9.8.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
def has_palindrome ( i, start, length ): """Checks if the string representation of i has a palindrome. i: integer start: where in the string to start length: length of the palindrome to check for """ s = str(i)[start: length] return s == s[::-1] #print(has_palindrome("soos", 0, 4)) def ch...
25.138889
92
0.607735
2108cd96d39a6b463f25c9bbcc3fb358c521005d
1,536
py
Python
nexogen_sha512_checksum.py
nexogen-international/sha512-checksum
ae213d3b047b050cf071b339165676186a35c5af
[ "Unlicense" ]
null
null
null
nexogen_sha512_checksum.py
nexogen-international/sha512-checksum
ae213d3b047b050cf071b339165676186a35c5af
[ "Unlicense" ]
null
null
null
nexogen_sha512_checksum.py
nexogen-international/sha512-checksum
ae213d3b047b050cf071b339165676186a35c5af
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ NEXOGEN - Calculate SHA-512 from input stream """ # # Copyright (c) 2017 NEXOGEN # Author: Mark Farkas <mark.farkas@nexogen.hu> # # Usage: # From command prompt, type the following command without quotation marks: # Windows: "type <filename> | python nexogen_sha512_c...
25.6
74
0.664063
2109069b2eb5d30f13725dd8ac4db4e171bdcff2
18,008
py
Python
hdltools/abshdl/expr.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
2
2020-02-28T13:02:39.000Z
2021-06-30T09:15:35.000Z
hdltools/abshdl/expr.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
1
2020-03-22T17:32:45.000Z
2020-03-23T15:43:39.000Z
hdltools/abshdl/expr.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
null
null
null
"""HDL Expressions.""" from . import HDLValue from .const import HDLIntegerConstant import hdltools.abshdl.signal as signal import ast import operator as op import copy class HDLExpression(HDLValue): """An expression involving parameters.""" _ast_op_names = { ast.Sub: "-", ast.Add: "+", ...
31.482517
79
0.53082
21093db02ecb6359853a75c05b023170a01b111d
3,613
py
Python
intersight/models/compute_ip_address_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_ip_address_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_ip_address_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class ComputeIpAddressRef(object): """ NOTE: This c...
24.086667
77
0.541932
21095c499387f65078436f60d37385e33aec86f6
4,523
py
Python
opsbro/modulemanager.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/modulemanager.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/modulemanager.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import os import sys import imp import traceback from .log import logger from .module import Module class ModuleManager(object): def __init__(self): self.modules = [] self.modules_directories_to_load = [] def add_module_directory_to_load(self, dirname, pack_name, pack_level): ...
35.335938
125
0.554499
21096fb4bfa75ea4cdeae22230e383dcd60d0dab
12,287
py
Python
tests/test_arbitrary_package_attack.py
maoyangLiu/tuf
420937a96d19ae0aa6681282e57bb78f364c609b
[ "Apache-2.0", "MIT" ]
1
2021-04-30T22:25:14.000Z
2021-04-30T22:25:14.000Z
tests/test_arbitrary_package_attack.py
sashka3076/tuf
52207862008cc54db8a43e1543a653be0d0333f7
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_arbitrary_package_attack.py
sashka3076/tuf
52207862008cc54db8a43e1543a653be0d0333f7
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2012 - 2017, New York University and the TUF contributors # SPDX-License-Identifier: MIT OR Apache-2.0 """ <Program Name> test_arbitrary_package_attack.py <Author> Konstantin Andrianov. <Started> February 22, 2012. March 21, 2014. Refactored to use the 'unittest' modul...
41.510135
89
0.737283
21097672a3083577ab1ced59d2d2a36ae0cfc6aa
2,425
py
Python
models/binary_control.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
models/binary_control.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
models/binary_control.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch from torch import nn from torch.nn import init import torch.nn.functional as F class BinaryController(nn.Module): """Randomizer according to Courbaraux et al, BinaryConnect. """ def binari...
27.556818
81
0.689072
21097e1835419989e4dd4470282a32cfc2fe47ea
45,062
py
Python
mmdet/models/anchor_heads/aggmask_head.py
advdfacd/AggMask
5aaa6cb45e01249b351445fcd3844eb7f80c2c20
[ "Apache-2.0" ]
31
2020-10-07T01:28:30.000Z
2021-01-11T17:12:38.000Z
mmdet/models/anchor_heads/aggmask_head.py
advdfacd/AggMask
5aaa6cb45e01249b351445fcd3844eb7f80c2c20
[ "Apache-2.0" ]
null
null
null
mmdet/models/anchor_heads/aggmask_head.py
advdfacd/AggMask
5aaa6cb45e01249b351445fcd3844eb7f80c2c20
[ "Apache-2.0" ]
2
2020-06-24T12:36:30.000Z
2020-10-21T14:00:35.000Z
import mmcv import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import normal_init from mmdet.ops import DeformConv, roi_align from mmdet.core import multi_apply, bbox2roi, matrix_nms from ..builder import build_loss from ..registry import HEADS from ..utils import bias_init_with_prob, Conv...
45.425403
209
0.583685
2109bf583a7cc931c0fd4312f59b6f01265ebd1a
1,746
py
Python
fabfile/doc.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
fabfile/doc.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
fabfile/doc.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from fabric.api import task, local import sys import os from build import cursor_on from cloudmesh_base.util import banner browser = "firefox" if sys.platform == 'darwin': browser = "open" debug = True @task def view(): """view the documentation in a browser""" local("{browser} docs/build/html/inde...
25.304348
108
0.585911
2109dcfc87d7776cc8364f7afe6772ff58e9aa6f
55
py
Python
poker_ver4/Dealer/__init__.py
ashidagithub/HJDS201909L6
277668eb32ba22f3dfe7d311a1f9b7b886f6c6fa
[ "Apache-2.0" ]
null
null
null
poker_ver4/Dealer/__init__.py
ashidagithub/HJDS201909L6
277668eb32ba22f3dfe7d311a1f9b7b886f6c6fa
[ "Apache-2.0" ]
null
null
null
poker_ver4/Dealer/__init__.py
ashidagithub/HJDS201909L6
277668eb32ba22f3dfe7d311a1f9b7b886f6c6fa
[ "Apache-2.0" ]
null
null
null
__all__ = ["deal_to_a_player","deal_to_multi_players"]
27.5
54
0.8
2109ddcd358b814ece6800aa2ba9a800fb0b2400
856
py
Python
python/sort_list_by_multiple_keys.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
python/sort_list_by_multiple_keys.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
python/sort_list_by_multiple_keys.py
julianespinel/trainning
23e07c954e5bf03f1cd117e388eed7da4a3e8f63
[ "MIT" ]
null
null
null
class reversor: def __init__(self, value): self.value = value def __eq__(self, other): return self.value == other.value def __lt__(self, other): """ Inverted it to be able to sort in descending order. """ return self.value >= other.value if __name__ == '__...
31.703704
87
0.511682
210a3dfe789c82a90afa973f590a60536af02b12
868
py
Python
cuor/organizations/loaders/__init__.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
cuor/organizations/loaders/__init__.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
cuor/organizations/loaders/__init__.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 UPR. # # CuOR is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Loaders. This file contains sample loaders that can be used to deserialize input data in an application level data structu...
29.931034
79
0.796083
210a3f5c1b97a781711c61ddd48f59eab0699c23
663
py
Python
test/generate/autotest/B2_CPL_b.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
test/generate/autotest/B2_CPL_b.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
test/generate/autotest/B2_CPL_b.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
######################################################### # 2020-01-25 16:54:33 # AI # ins: CPL bit ######################################################### import random from .. import testutil as u from ..sim51util import SIMRAM from ..asmconst import * p = u.create_test() ram = SIMRAM() def init(addr, p): ...
20.090909
59
0.511312
210a78b9b6a05032d99d5d35b20e0c6e25235738
2,278
py
Python
rfml/ptradio/downsample.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
61
2019-11-19T03:53:54.000Z
2022-03-26T15:57:47.000Z
rfml/ptradio/downsample.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
2
2020-12-08T10:07:21.000Z
2021-02-24T00:29:15.000Z
rfml/ptradio/downsample.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
30
2019-12-03T13:43:22.000Z
2022-03-26T15:57:59.000Z
"""PyTorch implementation of downsampling. """ __author__ = "Bryse Flowers <brysef@vt.edu>" # PyTorch Includes import torch import torch.nn as nn # External Includes import numpy as np class Downsample(nn.Module): """PyTorch downsampling implementation. Args: offset (int, optional): Transient sampl...
38.610169
88
0.622476
210a813b6c452e66d801148c5e0e34674c42c44d
372
py
Python
Chapter01/pyshark/read_pcap.py
yangwawa0323/Learning-Python-Networking-Second-Edition
5460fe4fb6acc5d0df19bf36e52ac09e9a11eb8b
[ "MIT" ]
52
2018-12-17T19:33:06.000Z
2022-03-25T18:14:02.000Z
Chapter01/pyshark/read_pcap.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
null
null
null
Chapter01/pyshark/read_pcap.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
38
2018-12-18T09:08:43.000Z
2022-02-06T02:53:05.000Z
#!/usr/bin/env python3 import pyshark #cap = pyshark.FileCapture('http.cap', display_filter="dns") #for pkt in cap: # print(pkt) cap = pyshark.FileCapture('http.cap', keep_packets=False) def print_info_layer(packet): print("[Protocol:] "+packet.highest_layer+" [Source IP:] "+packet.ip.src+" [Destination IP:]"+pac...
24.8
109
0.733871
210aaa08e1961c35d3bd350ef4e055e33362fa0e
2,588
py
Python
data/level/level10204.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10204.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10204.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'level_index': 10204, 'move_count': '26', 'board_info': {(-1, 6): {}, (-1, 5): {'base': (4, 1)}, (-1, 4): {}, (-1, 3): {}, (-1, 2): {}, (-1, 1): {}, (-1, 0): {'fall_point': (0, -1)}, (0, 6): {'base': (6, 1)}, (0, 5): {}, (0, 4): {}, (0, 3): {}, (0, 2): {}, (...
99.538462
119
0.234544
210ae561e62f7b94a7806857aac8dc6d4703ae8c
1,975
py
Python
seymour/accounts/middleware.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
seymour/accounts/middleware.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
seymour/accounts/middleware.py
lerouxb/seymour
124a93da67b6d6757b738469673232739ff0a4dc
[ "MIT" ]
null
null
null
from django.conf import settings from django.http import HttpResponseRedirect from seymour.accounts.models import Account class AuthMiddleware(object): """ Make sure the user is logged in before he tries to access the app. """ def process_request(self, request): # lighttpd+fastcgi...
40.306122
108
0.548861
210b2719401dc8f156ab5d73d7313aaece179e44
3,187
py
Python
src/me_es/custom_gym/mujoco/humanoid_deceptive.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
6
2022-02-09T05:35:37.000Z
2022-03-12T11:54:59.000Z
src/me_es/custom_gym/mujoco/humanoid_deceptive.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
src/me_es/custom_gym/mujoco/humanoid_deceptive.py
icaros-usc/dqd-rl
83e3da62df37b45c4b8fc549c07f566797b5f685
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Uber Technologies, Inc. # # Licensed under the Uber Non-Commercial License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at the root directory of this project. # # See the License for the specific language governing permis...
34.641304
80
0.614998
210b5aa0046d804ccc17d2661c3d8cd720c7dcd5
1,666
py
Python
analysis/computation/cluster_duration_ambitus.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
analysis/computation/cluster_duration_ambitus.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
4
2019-03-18T20:11:30.000Z
2019-03-18T20:11:59.000Z
analysis/computation/cluster_duration_ambitus.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
import numpy from analysis.computation import utils def get_duration_ambitus(compositions, normalize=True, labelize=False): pairs = [(c.music_data.total_duration, c.music_data.ambitus) for c in compositions] if normalize: arr = numpy.array(pairs) for i in 0, 1: arr = utils.normaliz...
28.237288
87
0.631453
210b65e01a77af6db386419db7ba7baec4035e2f
5,248
py
Python
arjuna/tpi/guiauto/model/gns.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/tpi/guiauto/model/gns.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/tpi/guiauto/model/gns.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
from arjuna.tpi.guiauto.meta.formatter import GNSLabelFormatter from arjuna.tpi.error import * from arjuna.core.error import * from arjuna.interact.gui.auto.finder import GuiEmdFinder, GuiElementEmdFinder class GNS: ''' Gui Namespace object associated with a **Gui** or **GuiElement**. Not meant t...
37.485714
151
0.602896
210b843ed67b502a4ce7489e84dac2399bd065c6
14,557
py
Python
arduino.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
1
2017-10-06T22:13:27.000Z
2017-10-06T22:13:27.000Z
arduino.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
null
null
null
arduino.py
lperezfr/turbot-toulouse-robot-race
52043120db44cf3c901429d1990c4c96c9c2b5f6
[ "Apache-2.0" ]
null
null
null
# encoding:utf-8 # Imports pour lire le port serie (communication avec Arduino) import serial import sys import string # Permet de faire des listes en fifo from collections import deque import time import logging logger = logging.getLogger('mainLogger') class Arduino: # Constantes DELTA_T_RE...
43.324405
142
0.616198
210babc16865f3eb5af1f8e75521718ac87a463e
21,379
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/operations/_product_group_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.277328
222
0.661303
210bb56df5c8538be27977e4844f6f522cc95a0e
860
py
Python
readthedocs/donate/urls.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/donate/urls.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
readthedocs/donate/urls.py
gamearming/readthedocs
53d0094f657f549326a86b8bd0ccf924c2126941
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from .views import DonateCreateView, DonateListView, DonateSuccessView from .views import PayAdsView, PaySuccess, PromoDetailView from .views import click_proxy, view_proxy urlpatterns = [ url(r'^$', DonateListView.as_view(), name='donate'), url(r'^pay/$', PayAdsView...
47.777778
96
0.696512
210bd8b85589deaf3eae748a648a78ec60f8c0cb
13,771
py
Python
websockets/protocol.py
Ivoz/websockets
481986fd209c5d0667195390b5f1f56f2ee899a7
[ "BSD-3-Clause" ]
null
null
null
websockets/protocol.py
Ivoz/websockets
481986fd209c5d0667195390b5f1f56f2ee899a7
[ "BSD-3-Clause" ]
null
null
null
websockets/protocol.py
Ivoz/websockets
481986fd209c5d0667195390b5f1f56f2ee899a7
[ "BSD-3-Clause" ]
null
null
null
""" The :mod:`websockets.protocol` module handles WebSocket control and data frames as specified in `sections 4 to 8 of RFC 6455`_. .. _sections 4 to 8 of RFC 6455: http://tools.ietf.org/html/rfc6455#section-4 """ __all__ = ['WebSocketCommonProtocol'] import codecs import collections import logging import random imp...
35.676166
80
0.612446
210c0cb4dfcb68cf0fdf1fdacde5c89f4037392a
15,728
py
Python
tests/test_views_permissions.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
tests/test_views_permissions.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
tests/test_views_permissions.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
import unittest from kinto.core.testing import get_user_headers from .support import ( MINIMALIST_BUCKET, MINIMALIST_COLLECTION, MINIMALIST_GROUP, MINIMALIST_RECORD, BaseWebTest, ) RECORD_ID = "d5db6e57-2c10-43e2-96c8-56602ef01435" class PermissionsViewTest(BaseWebTest, unittest.TestCase): ...
41.608466
99
0.62659
210c14f08c1d71d4246c65f82fbcce482034c467
855
py
Python
testing_tool/fuzztool/tests/test_nocrash.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-03-07T03:38:09.000Z
2022-03-07T03:38:09.000Z
testing_tool/fuzztool/tests/test_nocrash.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
null
null
null
testing_tool/fuzztool/tests/test_nocrash.py
george1459/ICSE2022_158
f8bb797fc003f11485d3552f81cc7b8ba8a22b9b
[ "BSD-2-Clause" ]
1
2022-01-12T05:30:40.000Z
2022-01-12T05:30:40.000Z
""" Test the fuzzing terminates when no faults found, at a run limit. SUT: Fuzzer Area: Non-fault operation Class: Functional Type: Integration test """ import unittest try: from unittest.mock import patch except ImportError: # Python 2 backport of mock from mock import patch import pythonfuzz.f...
24.428571
88
0.669006
210c3e0558b3f5a817480527a5f625c823aa10b8
8,823
py
Python
rotkehlchen/binance.py
michaelsproul/rotkehlchen
410987682c02919dfd4f4b025836c5c191782b35
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/binance.py
michaelsproul/rotkehlchen
410987682c02919dfd4f4b025836c5c191782b35
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/binance.py
michaelsproul/rotkehlchen
410987682c02919dfd4f4b025836c5c191782b35
[ "BSD-3-Clause" ]
null
null
null
import time import hmac import hashlib from urllib.parse import urlencode from typing import Any, Dict, NamedTuple, Tuple, Optional, Union, List, cast from rotkehlchen.exchange import Exchange from rotkehlchen.order_formatting import Trade from rotkehlchen.utils import rlk_jsonloads, cache_response_timewise from rotke...
33.044944
135
0.588235
210c782aa75ac010086fc60246813ce6384f1934
2,901
py
Python
scripts/gradient_interactive/potential_fields.py
RuslanAgishev/adaptive_swarm
3c69f7dde02859a12bc7ae949d3754f8c74cb39b
[ "MIT" ]
34
2019-12-15T13:04:31.000Z
2022-03-30T02:21:13.000Z
scripts/gradient_interactive/potential_fields.py
RuslanAgishev/adaptive_swarm
3c69f7dde02859a12bc7ae949d3754f8c74cb39b
[ "MIT" ]
2
2020-04-07T08:44:51.000Z
2020-10-27T15:11:40.000Z
scripts/gradient_interactive/potential_fields.py
RuslanAgishev/adaptive_swarm
3c69f7dde02859a12bc7ae949d3754f8c74cb39b
[ "MIT" ]
10
2019-02-22T09:59:44.000Z
2021-12-29T16:11:18.000Z
#!/usr/bin/env python import numpy as np from numpy.linalg import norm from scipy.ndimage.morphology import distance_transform_edt as bwdist def meters2grid(pose_m, nrows=500, ncols=500): # [0, 0](m) -> [250, 250] # [1, 0](m) -> [250+100, 250] # [0,-1](m) -> [250, 250-100] pose_on_grid = np.array(pos...
39.739726
145
0.625302
210c7ac48858f7a165beddf70644ba25fe8c768c
15,451
py
Python
examples/psexec.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
examples/psexec.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
examples/psexec.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
4
2015-02-25T20:08:18.000Z
2021-07-06T12:31:29.000Z
#!/usr/bin/python # Copyright (c) 2003-2012 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id$ # # PSEXEC like functionality example using RemComSvc (https://github.com/kavi...
36.269953
192
0.582163
210cb933064bf11647b22fd70adc343503096927
1,348
py
Python
main/control/feedback.py
ssxenon01/music-app
fcc562713a048f3a2d222756ce6fd9ed83386ff6
[ "MIT" ]
null
null
null
main/control/feedback.py
ssxenon01/music-app
fcc562713a048f3a2d222756ce6fd9ed83386ff6
[ "MIT" ]
null
null
null
main/control/feedback.py
ssxenon01/music-app
fcc562713a048f3a2d222756ce6fd9ed83386ff6
[ "MIT" ]
null
null
null
# coding: utf-8 from flask.ext import wtf import flask import wtforms import auth import config import task import util from main import app class FeedbackForm(wtf.Form): message = wtforms.TextAreaField( u'Зурвас', [wtforms.validators.required()], filters=[util.strip_filter], ) email = ...
27.510204
80
0.65727
210cbb1b805ffa62a589e329173a5ccd146db717
6,992
py
Python
xlcalculator/ast_nodes.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
null
null
null
xlcalculator/ast_nodes.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
null
null
null
xlcalculator/ast_nodes.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
null
null
null
import inspect from xlcalculator.xlfunctions import ( xl, xlerrors, math, operator, text, func_xltypes ) from . import utils PREFIX_OP_TO_FUNC = { '-': operator.OP_NEG, } POSTFIX_OP_TO_FUNC = { '%': operator.OP_PERCENT, } INFIX_OP_TO_FUNC = { "*": operator.OP_MUL, "/": opera...
27.636364
79
0.55635
210cd9375c5f9a85d65faf31e4f52c9c14fcd357
1,772
py
Python
Aula18/exercicios/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula18/exercicios/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula18/exercicios/exercicio2.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Aula 18 - 03-12-2019 # Exercicio para lista dentro de lista # Dada a seguinte lista, resolva os seguintes questões: lista = [ ['frutas','verduras','legumes'], ['mamão','abacaxi','laranja','uva','pera','maçã','vergamota'], ['alface crespa', 'alface lisa','rucula','almerão','repolho','sa...
43.219512
123
0.696953
210ce6bc0cef6d83e1926ae644ed6d1f75a58506
423
py
Python
ecmd-core/pyapi/init/__init__.py
ozbenh/eCMD
f3ab818e3578ee09dfdb8a653d64065727c6741b
[ "Apache-2.0" ]
null
null
null
ecmd-core/pyapi/init/__init__.py
ozbenh/eCMD
f3ab818e3578ee09dfdb8a653d64065727c6741b
[ "Apache-2.0" ]
null
null
null
ecmd-core/pyapi/init/__init__.py
ozbenh/eCMD
f3ab818e3578ee09dfdb8a653d64065727c6741b
[ "Apache-2.0" ]
null
null
null
# import the right SWIG module depending on Python version from sys import version_info from sys import path as sys_path from os import path as os_path if version_info[0] >= 3: sys_path.insert(0, os_path.join(os_path.dirname(__file__), "python3")) from .python3 import * else: sys_path.insert(0, os_path.join...
35.25
74
0.754137
210d0197293d7dd5a43e705cef122481985fb857
4,118
py
Python
tests/unit/states/ssh_auth_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
tests/unit/states/ssh_auth_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
tests/unit/states/ssh_auth_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import skipIf, TestCase from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) fro...
35.808696
79
0.546867
210d315f0dc1b28a14c8219d5cf3b465d4ca27ea
32,123
py
Python
geowombat/backends/xarray_.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
38
2020-01-13T22:45:18.000Z
2022-03-31T05:44:35.000Z
geowombat/backends/xarray_.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
41
2020-01-27T00:57:58.000Z
2022-03-10T19:52:20.000Z
geowombat/backends/xarray_.py
jgrss/geowombat
e691102a3dcce13b272810b43bc9586681ae6934
[ "MIT" ]
4
2020-01-14T19:27:38.000Z
2021-08-23T03:08:37.000Z
import os from pathlib import Path import logging import contextlib from ..handler import add_handler from ..core.windows import get_window_offsets from ..core.util import parse_filename_dates from ..config import config from .rasterio_ import get_ref_image_meta, warp, warp_images, get_file_bounds, window_to_...
39.414724
148
0.498677
210d4a7fe8275501ac0afc30fdb3b56ba3d91b89
105
py
Python
src/DLTrainer/__init__.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
src/DLTrainer/__init__.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
src/DLTrainer/__init__.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
""" DLTrainer Created to easily get started running deep learning experiments. """ __version__ = "0.1.1"
17.5
64
0.742857
210d552972b38a1019f9e93549adb127579c0a93
289
py
Python
openstack-dashboard/openstack_dashboard/dashboards/project/paas/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/paas/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/paas/views.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
import json import logging from django.http import HttpResponse from horizon.views import APIView from horizon import exceptions class IndexView(APIView): template_name = 'project/paas/index.html' def get_data(self, request, context, *args, **kwargs): return context
19.266667
58
0.750865
210d5542112286bdaff4d571eba2b775a0d3f932
5,084
py
Python
src/gluonts/shell/__main__.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
2
2019-09-05T05:39:03.000Z
2020-11-08T17:07:04.000Z
src/gluonts/shell/__main__.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
src/gluonts/shell/__main__.py
lovvge/gluon-ts
284376138f41968bec0a4cb05b274c8ee259493a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
31
79
0.680566
210d5912aafef6a85dac86d8f4aa8e6d651f3557
214
py
Python
cpp/ABC/abc185/c/main.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
cpp/ABC/abc185/c/main.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
cpp/ABC/abc185/c/main.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline def main(): L = int(input()) ans = 1 for i in range(1, 11 + 1): ans *= (L - i) ans //= i print(ans) if __name__ == "__main__": main()
11.888889
30
0.485981
210d597e492b7d21504b3d6d7c6f1f71051b27fb
39,408
py
Python
bert/models/bert/modeling_slice.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
50
2020-02-02T09:24:44.000Z
2022-03-01T03:22:19.000Z
bert/models/bert/modeling_slice.py
fanshiqing/DAPPLE
b2d2ceda90f6033b316f672ec05f45123234f130
[ "BSD-3-Clause" ]
1
2020-02-04T03:50:02.000Z
2020-02-04T04:41:37.000Z
bert/models/bert/modeling_slice.py
AlibabaPAI/DAPPLE
fd75dcfbc6c73a7624b9fd9d8c3334e5d04bcd20
[ "BSD-3-Clause" ]
9
2020-02-02T09:23:31.000Z
2021-09-22T07:24:34.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
39.017822
99
0.681511
210d75fe4983a0ae6e1ccff4c1e1e7212ba1ee68
12,855
py
Python
tests/integration/modules/system.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/system.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/system.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import import datetime import logging import os import signal import subprocess # Import Salt Testing libs from salttesting import skipIf from salttesting.helpers import ( destructiveTest, ensure_in_syspath ) from salt.ext.six.moves ...
37.26087
88
0.593855
210d775dacc2af37c0ec8b59f921a19e62931a1f
542
py
Python
drforest/tests/test_drforest.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
2
2021-09-22T12:15:43.000Z
2022-01-04T12:59:50.000Z
drforest/tests/test_drforest.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
drforest/tests/test_drforest.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
import numpy as np import pytest from drforest import datasets from drforest.ensemble import DimensionReductionForestRegressor def test_drforest_smoke(): X, y = datasets.make_simulation1() forest = DimensionReductionForestRegressor( n_estimators=100, random_state=42, n_jobs=-1).fit(X, y) y_pred...
27.1
67
0.638376
210d9157d16d863551713277e47e9798347aee4f
27,192
py
Python
tests/sals/automated_chatflows/test_vdc_dashboard.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
tests/sals/automated_chatflows/test_vdc_dashboard.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
tests/sals/automated_chatflows/test_vdc_dashboard.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
import gevent import pytest from jumpscale.clients.explorer.models import K8s from jumpscale.loader import j from jumpscale.sals.vdc.size import VDC_SIZE from solutions_automation.vdc import deployer from tests.sals.vdc.vdc_base import VDCBase from tests.sals.automated_chatflows.chatflows_base import ChatflowsBase from...
41.325228
198
0.638423
210dbf35bf484757a6ec9ea181dc5ab0128a0c88
2,540
py
Python
src/olympia/landfill/management/commands/generate_ui_test_addons.py
hiikezoe/addons-server
1574d92fae097796b40b54579e3c7eeb876d6e32
[ "BSD-3-Clause" ]
null
null
null
src/olympia/landfill/management/commands/generate_ui_test_addons.py
hiikezoe/addons-server
1574d92fae097796b40b54579e3c7eeb876d6e32
[ "BSD-3-Clause" ]
null
null
null
src/olympia/landfill/management/commands/generate_ui_test_addons.py
hiikezoe/addons-server
1574d92fae097796b40b54579e3c7eeb876d6e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.cache import cache from django.core.management import call_command from django.core.management.base import BaseCommand from django.utils import translation from django.test.utils import override_settings from olympia.landfill.serializers import GenerateAddonsSerializer # Fea...
29.882353
78
0.67874
210df2b5a2b1340561e04b4d43ed3b5576a220eb
1,471
py
Python
taxamo/models/unconfirmTransactionOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
4
2016-03-14T03:59:08.000Z
2020-06-21T07:58:38.000Z
taxamo/models/unconfirmTransactionOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
2
2016-03-07T13:41:23.000Z
2017-07-11T13:39:44.000Z
taxamo/models/unconfirmTransactionOut.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
8
2016-01-13T14:32:19.000Z
2021-08-16T11:14:06.000Z
#!/usr/bin/env python """ Copyright 2014-2021 by Taxamo 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...
38.710526
141
0.704963