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
ffbdef4387a9f51d58d0ceede13d8e7d6a991de3
681
py
Python
mayiutils/template/data_explore.py
mayi140611/mayiutils_n1
22a1178fc5d86df53fa9769145c64ef4aa8ffeff
[ "Apache-2.0" ]
null
null
null
mayiutils/template/data_explore.py
mayi140611/mayiutils_n1
22a1178fc5d86df53fa9769145c64ef4aa8ffeff
[ "Apache-2.0" ]
null
null
null
mayiutils/template/data_explore.py
mayi140611/mayiutils_n1
22a1178fc5d86df53fa9769145c64ef4aa8ffeff
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # encoding: utf-8 """ @author: Ian @file: data_explore.py @time: 2019-09-02 11:54 """ import numpy as np import sys sys.path.append('/Users/luoyonggui/PycharmProjects/mayiutils_n1/mayiutils/data_prepare') from date_prepare import describe import pandas as pd pd.set_option('display.max_rows', 100) pd....
18.916667
88
0.737151
ffbdf1d588a246b07ddacdd7c29cfa5bfad76f25
1,376
py
Python
examples/opencv_stream/receiver.py
Rubilmax/python-p2p
ff12cd65a745cfb3828a4a692289a39e850e9114
[ "MIT" ]
2
2020-07-02T13:22:53.000Z
2020-10-17T17:00:58.000Z
examples/opencv_stream/receiver.py
Rubilmax/python-p2p
ff12cd65a745cfb3828a4a692289a39e850e9114
[ "MIT" ]
1
2020-06-26T00:09:40.000Z
2020-06-26T07:08:12.000Z
examples/opencv_stream/receiver.py
Rubilmax/python-p2p
ff12cd65a745cfb3828a4a692289a39e850e9114
[ "MIT" ]
null
null
null
import sys import os # allow the example to be run without installing the package, from this repository's root directory sys.path.append(os.path.abspath(os.path.join('.'))) """ OpenCV Stream receiver example This example is made to be run from one python shell, connecting this receiver to a sender broadcasting a stre...
32
114
0.695494
ffbe4a9c5e5b392a9b7c672fec7115ce60cf8a14
16,294
py
Python
lymph/utils.py
lfranceschetti/lymph
d7fc8c0709316fb1b055487f6c3c2165d889974a
[ "MIT" ]
null
null
null
lymph/utils.py
lfranceschetti/lymph
d7fc8c0709316fb1b055487f6c3c2165d889974a
[ "MIT" ]
null
null
null
lymph/utils.py
lfranceschetti/lymph
d7fc8c0709316fb1b055487f6c3c2165d889974a
[ "MIT" ]
null
null
null
from __future__ import annotations import json import warnings from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union import emcee import h5py import numpy as np import pandas as pd from scipy.special import factorial as fact import lymph def lyprox_to_lymph( data: pd.DataFrame, ...
33.05071
91
0.605008
ffbeacba711c6e046207653f6a1820b531af869e
4,105
py
Python
src/fortrace/botnet/net/proto/cncmessage_pb2.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/botnet/net/proto/cncmessage_pb2.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/botnet/net/proto/cncmessage_pb2.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: cncmessage.proto from __future__ import absolute_import from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection # @@protoc_insertion_point(imports) ...
34.208333
428
0.774421
ffbec916fb638b5ff50a21b61158211d773f4367
1,179
py
Python
setup.py
foliant-docs/foliantcontrib.docus
7a81581d93a1e1b4827ee0ee458c0454a6ad093f
[ "MIT" ]
null
null
null
setup.py
foliant-docs/foliantcontrib.docus
7a81581d93a1e1b4827ee0ee458c0454a6ad093f
[ "MIT" ]
null
null
null
setup.py
foliant-docs/foliantcontrib.docus
7a81581d93a1e1b4827ee0ee458c0454a6ad093f
[ "MIT" ]
null
null
null
from setuptools import setup SHORT_DESCRIPTION = 'Docusaurus backend for Foliant documentation generator.' try: with open('README.md', encoding='utf8') as readme: LONG_DESCRIPTION = readme.read() except FileNotFoundError: LONG_DESCRIPTION = SHORT_DESCRIPTION setup( name='foliantcontrib.docus',...
28.756098
77
0.661578
ffbecd38d6c7bcb2cf59e2ce5ae7f86003dad68d
748
py
Python
ote_sdk/ote_sdk/configuration/elements/__init__.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
775
2019-03-01T02:13:33.000Z
2020-09-07T22:49:15.000Z
ote_sdk/ote_sdk/configuration/elements/__init__.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
229
2019-02-28T21:37:08.000Z
2020-09-07T15:11:49.000Z
ote_sdk/ote_sdk/configuration/elements/__init__.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
290
2019-02-28T20:32:11.000Z
2020-09-07T05:51:41.000Z
# Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # """ This module contains all elements needed to construct a OTE configuration object """ from .configurable_enum import ConfigurableEnum from .parameter_group import ParameterGroup, add_parameter_group from .primitive_parameters imp...
21.371429
80
0.739305
ffbed8fdba792c759b79303561590b09a9232c47
25,890
py
Python
sxs/zenodo/__init__.py
dongzesun/sxs
74ac9576032ddc232ff48510ba20f0a9e7116861
[ "MIT" ]
8
2019-12-08T20:56:59.000Z
2021-11-01T09:01:39.000Z
sxs/zenodo/__init__.py
duetosymmetry/sxs
1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5
[ "MIT" ]
33
2019-12-06T17:40:00.000Z
2022-03-28T16:53:02.000Z
sxs/zenodo/__init__.py
duetosymmetry/sxs
1617bf9d1eb06b1aa063db2b310d4e7c3d02e5e5
[ "MIT" ]
10
2019-12-04T17:37:55.000Z
2022-03-14T07:22:43.000Z
"""Interface to Zenodo or similar Invenio-backed repositories """ from .api import Login, Deposit, Records from . import catalog, simannex, surrogatemodeling # See https://github.com/moble/nb-marine-science for other examples using the Zenodo API # The other python API interface I found is here: https://github.com/...
51.065089
150
0.651564
ffbf0a963f3f5f3a30576f8947018fee7f79c2d6
3,025
py
Python
autotools/builder/baseitem.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
1
2016-01-08T10:54:02.000Z
2016-01-08T10:54:02.000Z
autotools/builder/baseitem.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
autotools/builder/baseitem.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class BaseItem(object): """ BaseItem class""" def __init__(self, *arg, **kw): self.append(*arg, **kw) def __len__(self): return len(self.__dict__.keys()) def __repr__(self): return "BaseItem " + str(self.__dict__) + " at 0x%x" % id...
37.345679
84
0.440992
ffbf3a31b17755fe90458226fececbc4215d5ac3
2,484
py
Python
celery/backends/cache.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
2
2017-05-24T13:03:30.000Z
2017-09-04T08:24:19.000Z
celery/backends/cache.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
celery/backends/cache.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta from carrot.utils import partition from celery import conf from celery.backends.base import KeyValueStoreBackend from celery.exceptions import ImproperlyConfigured from celery.utils import timeutils from celery.datastructures import LocalCache def get_best_memcache(*args, **kwargs): ...
31.846154
77
0.624799
ffbf5fe345bd44baff710765620db0572b83acf8
19,175
py
Python
qnarre/prep/convert/rag.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/rag.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/rag.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 applicable l...
39.132653
116
0.630404
ffbf68eeeb08db43ee4df51b6d53690fd5607de4
8,329
py
Python
ooni/settings.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/settings.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
ooni/settings.py
irl/ooni-probe
c21861c28ca6bd667715872d099006fab87222fd
[ "BSD-2-Clause" ]
null
null
null
import os import yaml import getpass from ConfigParser import SafeConfigParser from twisted.internet import defer, reactor from twisted.internet.endpoints import TCP4ClientEndpoint from os.path import abspath, expanduser from ooni.utils.net import ConnectAndCloseProtocol, connectProtocol from ooni import geoip from ...
36.69163
94
0.588546
ffbf7fb701b50a37a12df173bf9d28b9d0028762
67
py
Python
forager_knn/src/forager_knn/mappers/__init__.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
4
2021-09-21T01:58:21.000Z
2022-03-02T21:28:32.000Z
forager_knn/src/forager_knn/mappers/__init__.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
2
2021-10-19T19:39:52.000Z
2021-11-18T23:53:26.000Z
mihir_run/src/knn/mappers/__init__.py
jeremyephron/forager
6db1590686e0e34b2e42ff5deb70f62fcee73d7d
[ "MIT" ]
null
null
null
from .base import Mapper from .mappers import MultiprocesingMapper
22.333333
41
0.850746
ffbf9a6946f47e9321a939bb01af0804c8f750cc
3,257
py
Python
nicos_virt_mlz/panda/setups/slits.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_virt_mlz/panda/setups/slits.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_virt_mlz/panda/setups/slits.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'IPC slits after mono shielding' group = 'optional' includes = ['system'] devices = dict( ss1_l_mot = device('nicos.devices.generic.VirtualMotor', lowlevel = True, unit = 'mm', abslimits = (-25, 20), curvalue = -20, ), ss1_r_mot = device('nicos.devices.generic...
26.056
60
0.510593
ffbfa1849ec58c09eda67bee06a9e0b07225e1e9
12,180
py
Python
output_processing_functions.py
maxnyf/AERMOD_Framework
d050d427da9f7a37864bfd55da13869d57485854
[ "MIT" ]
7
2019-07-11T22:33:38.000Z
2022-02-21T05:51:45.000Z
output_processing_functions.py
maxnyf/AERMOD_Framework
d050d427da9f7a37864bfd55da13869d57485854
[ "MIT" ]
1
2019-07-17T18:09:58.000Z
2019-07-17T18:09:58.000Z
output_processing_functions.py
maxnyf/AERMOD_Framework
d050d427da9f7a37864bfd55da13869d57485854
[ "MIT" ]
2
2020-02-16T13:52:07.000Z
2022-01-19T05:48:22.000Z
from openpyxl import Workbook from openpyxl.utils.cell import get_column_letter from openpyxl.styles import PatternFill, Color from math import ceil __author__ = 'Max' # This function takes the hour, day and year data from an aermod line # example input: # *** CONCURRENT 1-HR AVERAGE CONCENTRATION VALUES ENDING WI...
48.142292
117
0.672824
ffbfb439f018bcd8c2f8fdf5147436c5ee157ae2
14,016
py
Python
JHDBot/cogs/moderation.py
xnomas/JHDBot
f0f82c9fc338abb7dd917077552e16ee3ed2e598
[ "MIT" ]
20
2020-07-19T20:55:38.000Z
2022-01-13T15:28:01.000Z
JHDBot/cogs/moderation.py
xnomas/JHDBot
f0f82c9fc338abb7dd917077552e16ee3ed2e598
[ "MIT" ]
38
2020-07-20T23:01:46.000Z
2022-01-23T15:17:59.000Z
JHDBot/cogs/moderation.py
xnomas/JHDBot
f0f82c9fc338abb7dd917077552e16ee3ed2e598
[ "MIT" ]
13
2020-07-19T22:57:55.000Z
2022-01-13T13:58:34.000Z
#!/usr/bin/env python3 import asyncio import csv import random import discord from discord.ext import commands class ModeratorCog(commands.Cog): def __init__(self, bot): self.bot = bot # Clear Message Command.. @commands.command( name="clear", help="Deletes messages", usage="[number of me...
40.045714
180
0.528253
ffbfcf8e7ff8ee053f0707ecd6e23b9fce26e56e
729
py
Python
Source/BusPiratePy/interface/BPI2c.py
ASoftTech/Py.BusPiratePy3
279f932504d687145bb03208d8bb32c7b9493334
[ "MIT" ]
null
null
null
Source/BusPiratePy/interface/BPI2c.py
ASoftTech/Py.BusPiratePy3
279f932504d687145bb03208d8bb32c7b9493334
[ "MIT" ]
null
null
null
Source/BusPiratePy/interface/BPI2c.py
ASoftTech/Py.BusPiratePy3
279f932504d687145bb03208d8bb32c7b9493334
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from enum import Enum from .BPBase import BPBase from BusPiratePy.util.Logger import Logger from BusPiratePy.BPConnection import BPConnection, BPMode class BPI2c(BPBase): """Represents a I2c interface for the Bus Pirate""" def __init__(self, conn: BPConnection): """Cla...
28.038462
65
0.641975
ffbfe5bb8ef3782491aca9280fb302e497bb9a8f
26,179
py
Python
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/keras/quantsim_config/quantsim_config.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/keras/quantsim_config/quantsim_config.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/keras/quantsim_config/quantsim_config.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
54.8826
120
0.67726
ffbff7e87eba61efe48c400bdc8afb27dd40ad8b
480
py
Python
astwro/utils/tests/fits_list_test.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
6
2017-06-15T20:34:51.000Z
2020-04-15T14:21:43.000Z
astwro/utils/tests/fits_list_test.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
18
2017-08-15T20:53:55.000Z
2020-10-05T23:40:34.000Z
astwro/utils/tests/fits_list_test.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
2
2017-11-06T15:33:53.000Z
2020-10-02T21:06:05.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function __metaclass__ = type from astwro.utils import make_fits_table from astwro.sampledata import sampledata_dir def test_fits_list(): t = make_fits_table(directory=sampledata_dir(), fields=['FILTER', 'EXPTIME', 'OBJECT'], stats=True) ...
34.285714
138
0.75
ffc0460ef630412202265cebe8ca0a2210e8feb3
1,333
py
Python
networks/RNN_test/test.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2021-05-23T13:43:11.000Z
2021-05-23T13:43:11.000Z
networks/RNN_test/test.py
artemk1337/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2020-02-14T02:12:11.000Z
2020-02-14T02:12:11.000Z
networks/RNN_test/test.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
null
null
null
number = 6 target1 = str('{0}{1}.{1}'.format(number, (number) % 6 + 1)) target2 = str('{1}{0}.{1}'.format(number, (number - 2) % 6 + 1)) print('en\nconf t') print( f"int f0/0\n\ ip address 172.16.{number}.2 255.255.255.0\n\ no shutdown\n\ int s2/0\n\ ip address 172.16.{target1.split('.')[0]}.{number} 255.255.255.0\n\...
28.361702
162
0.55814
ffc058b561c7918ad4c53e2394daddf1460ffd9a
11,914
py
Python
jyzond/nyzoclient.py
EggPool/Jyzon
7dac21f355a5416318d12e70fe183d099946a16c
[ "MIT" ]
4
2019-11-22T16:37:58.000Z
2020-11-08T12:28:14.000Z
jyzond/nyzoclient.py
EggPool/Jyzon
7dac21f355a5416318d12e70fe183d099946a16c
[ "MIT" ]
null
null
null
jyzond/nyzoclient.py
EggPool/Jyzon
7dac21f355a5416318d12e70fe183d099946a16c
[ "MIT" ]
null
null
null
# coding=utf-8 """ A basic Nyzo client for the Json-RPC gateway @EggPool """ import re, sys, os from threading import Thread, Lock, Event from time import time, sleep # from distutils.version import LooseVersion from logging import getLogger from asyncttlcache import Asyncttlcache from pexpect import spawn, EOF, TIM...
39.062295
136
0.551032
ffc07773eacc2ff70f2ad46fe20a3c25050a1cd9
11,540
py
Python
nova/tests/unit/objects/test_migrate_data.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/objects/test_migrate_data.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_migrate_data.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright 2015 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 a...
37.467532
78
0.609099
ffc07a211785dddb66f4a2e867e2050fb3b315c9
1,598
py
Python
fuzzers/007-timing/tile_annotate.py
nelsobe/litghost
557d047316f7cd7ddfabc17f54ff5b1a47b564d2
[ "0BSD" ]
1
2020-10-31T19:32:41.000Z
2020-10-31T19:32:41.000Z
fuzzers/007-timing/tile_annotate.py
nelsobe/prjxray
557d047316f7cd7ddfabc17f54ff5b1a47b564d2
[ "0BSD" ]
null
null
null
fuzzers/007-timing/tile_annotate.py
nelsobe/prjxray
557d047316f7cd7ddfabc17f54ff5b1a47b564d2
[ "0BSD" ]
1
2021-03-08T21:02:02.000Z
2021-03-08T21:02:02.000Z
#!/usr/bin/env python3 import timfuz from timfuz import loadc_Ads_bs, Ads2bounds import sys import os import time import json def run(fns_in, fnout, tile_json_fn, verbose=False): # modified in place tilej = json.load(open(tile_json_fn, 'r')) for fnin in fns_in: Ads, bs = loadc_Ads_bs([fnin], ic...
25.774194
76
0.593242
ffc0dd2784e8a8e9171bee5319caddd9197ba319
568
py
Python
tracker/utils.py
ktolstikhin/faceid
084ae1781a768fd1b56bfa7cd140aa5d8957f1b6
[ "MIT" ]
null
null
null
tracker/utils.py
ktolstikhin/faceid
084ae1781a768fd1b56bfa7cd140aa5d8957f1b6
[ "MIT" ]
null
null
null
tracker/utils.py
ktolstikhin/faceid
084ae1781a768fd1b56bfa7cd140aa5d8957f1b6
[ "MIT" ]
null
null
null
def box_center(bbox): xmin, ymin, xmax, ymax = bbox x = xmin + (xmax - xmin) / 2 y = ymin + (ymax - ymin) / 2 return int(x), int(y) def overlap(c1min, c1max, c2min, c2max): return c1max >= c2min and c2max >= c1min def box_in_roi(bbox, roi): x1min, y1min, x1max, y1max = bbox x2min, y2min...
21.037037
52
0.59507
ffc0df99ae15dc452f859b8721ebfd89ec07fe31
1,307
py
Python
great_expectations/expectations/metrics/multicolumn_map_metrics/multicolumn_sum_equal.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-06-25T17:47:32.000Z
2021-06-25T17:47:32.000Z
great_expectations/expectations/metrics/multicolumn_map_metrics/multicolumn_sum_equal.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
great_expectations/expectations/metrics/multicolumn_map_metrics/multicolumn_sum_equal.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
from great_expectations.execution_engine import ( PandasExecutionEngine, SqlAlchemyExecutionEngine, ) from great_expectations.expectations.metrics.import_manager import sa from great_expectations.expectations.metrics.map_metric_provider import ( MulticolumnMapMetricProvider, multicolumn_condition_partia...
36.305556
119
0.729916
ffc11c99ee57d5dbfe5c1ebbb7a7da931ec3d361
30,691
py
Python
Utilities/hda-analyzer_hda_guilib.py
redeltaglio/rasberry-remote-stash
8375d99a74c6670fc0153173f4a230be33046fc2
[ "CC0-1.0" ]
1
2022-03-29T03:03:42.000Z
2022-03-29T03:03:42.000Z
Utilities/hda-analyzer_hda_guilib.py
redeltaglio/rasberry-remote-stash
8375d99a74c6670fc0153173f4a230be33046fc2
[ "CC0-1.0" ]
null
null
null
Utilities/hda-analyzer_hda_guilib.py
redeltaglio/rasberry-remote-stash
8375d99a74c6670fc0153173f4a230be33046fc2
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2008-2012 by Jaroslav Kysela <perex@perex.cz> # # This program 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 Foundation; either version 2 of the License, or # (at your opt...
34.915813
99
0.632759
ffc13d7fa780fb9bd8a6f5cf5fc6942e17fa9372
3,196
py
Python
jumpscale/servers/gedis_http/__init__.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
jumpscale/servers/gedis_http/__init__.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
jumpscale/servers/gedis_http/__init__.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
import json from jumpscale.core.base import Base, fields from jumpscale.loader import j from gevent.pool import Pool from bottle import Bottle, abort, request, response from jumpscale.servers.gedis.server import GedisErrorTypes from gevent.pywsgi import WSGIServer from jumpscale.core.base import StoredFactory class G...
35.120879
117
0.632353
ffc1603c9429ecdbe320cf2b0623073d30ebcc2f
4,789
py
Python
examples/lookupsid.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
examples/lookupsid.py
kanzure/impacket
88c7536ca24bc8f47718764f76cc38cdc8cf1879
[ "Apache-1.1" ]
null
null
null
examples/lookupsid.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) 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$ # # DCE/RPC lookup sid brute forcer example # # Author: # Alberto Solino # # Refer...
33.256944
155
0.623512
ffc16d480798159a858a5f7157a4d0f0702645b5
1,655
py
Python
statsd/tests/test_statsd.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
statsd/tests/test_statsd.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
statsd/tests/test_statsd.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import pytest from datadog_checks.dev import docker_run, get_docker_hostname from datadog_checks.statsd.statsd import StatsCheck, SERVICE_CHECK_NAME_HEALTH, SERVICE_CHECK_NAME CHECK_NAME = 'statsd' ...
27.583333
114
0.716616
ffc183b0e36a9edadf7f4e071d9e64ce889c21fa
1,358
py
Python
thread2vec/preprocessing/social_media/anonymized.py
georgiosrizos/thread2vec
9f7e281eed487e1a50266c09ab6e848c87f61117
[ "Apache-2.0" ]
null
null
null
thread2vec/preprocessing/social_media/anonymized.py
georgiosrizos/thread2vec
9f7e281eed487e1a50266c09ab6e848c87f61117
[ "Apache-2.0" ]
null
null
null
thread2vec/preprocessing/social_media/anonymized.py
georgiosrizos/thread2vec
9f7e281eed487e1a50266c09ab6e848c87f61117
[ "Apache-2.0" ]
null
null
null
__author__ = "Georgios Rizos (georgerizos@iti.gr)" import json def document_generator(file_path): with open(file_path, "r") as fp: while True: try: file_row = next(fp) except StopIteration: break except OSError: ...
21.555556
57
0.594256
ffc19275a5cd2bc1f5558e45f1ef07417570b7eb
976
py
Python
sdks/python/test/test_BugTrackerIssuesResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_BugTrackerIssuesResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_BugTrackerIssuesResult.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
24.4
103
0.733607
ffc196bfb080c52e3e5e89142cef169e603ad94b
53,983
py
Python
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_endpoints_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_endpoints_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_endpoints_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.105585
389
0.671434
ffc1a2b02de044c3ebbcb997b0fc847534461e1f
13,653
py
Python
src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/_params.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "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. # --------------------------------------------------------------------...
73.8
278
0.732
ffc1d8bce8379e1e44abb48fabff4b467526f07b
11,748
py
Python
selfdrive/monitoring/driver_monitor.py
lispain/081ATOM_NIRO
b50a79ab2080b5e359329420a958803e9e20b598
[ "MIT" ]
null
null
null
selfdrive/monitoring/driver_monitor.py
lispain/081ATOM_NIRO
b50a79ab2080b5e359329420a958803e9e20b598
[ "MIT" ]
null
null
null
selfdrive/monitoring/driver_monitor.py
lispain/081ATOM_NIRO
b50a79ab2080b5e359329420a958803e9e20b598
[ "MIT" ]
null
null
null
from common.numpy_fast import interp from math import atan2, sqrt from common.realtime import DT_DMON from common.filter_simple import FirstOrderFilter from common.stat_live import RunningStatFilter from cereal import car EventName = car.CarEvent.EventName # **********************************************************...
44
186
0.731359
ffc1dc814d66e595a01f04518ac2f4a3765995e2
313
py
Python
fromconfig/utils/__init__.py
guillaumegenthial/fromconfig
1feecb9d9a3d67f9ed94a3fe17905e6226b954c7
[ "Apache-2.0" ]
null
null
null
fromconfig/utils/__init__.py
guillaumegenthial/fromconfig
1feecb9d9a3d67f9ed94a3fe17905e6226b954c7
[ "Apache-2.0" ]
null
null
null
fromconfig/utils/__init__.py
guillaumegenthial/fromconfig
1feecb9d9a3d67f9ed94a3fe17905e6226b954c7
[ "Apache-2.0" ]
1
2021-05-25T20:11:51.000Z
2021-05-25T20:11:51.000Z
# pylint: disable=unused-import,missing-docstring from fromconfig.utils.types import is_mapping, is_pure_iterable from fromconfig.utils.libimport import from_import_string, to_import_string, try_import from fromconfig.utils.strenum import StrEnum from fromconfig.utils.nest import flatten, merge_dict, depth_map
44.714286
87
0.859425
ffc1f770bb4cff2f2b1c6d306725caef80da372d
61,478
py
Python
renpy/python.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
renpy/python.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
renpy/python.py
swaggyp-14/renpy-7.4.4-sdk
43a26d67d35fd345c40550f367a1ab0c389ab9dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2004-2021 Tom Rothamel <pytom@bishoujo.us> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy, modify, m...
26.442151
125
0.590097
ffc21858791b9d922e4fc93d0ffa31439d51538e
23,479
py
Python
src/containerapp-compose/azext_containerapp_compose/vendored_sdks/azext_containerapp/_params.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
null
null
null
src/containerapp-compose/azext_containerapp_compose/vendored_sdks/azext_containerapp/_params.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/containerapp/azext_containerapp/_params.py
smurawski/azure-cli-extensions
7ac32934bf3a1ec4b100bf7fa2ca5cbd09b5dc03
[ "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. # --------------------------------------------------------------------...
91.003876
363
0.71647
ffc22509158753258af7c51da92a47b28c8233a4
993
py
Python
PyInstaller/hooks/hook-PySide2.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-PySide2.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-PySide2.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2022, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
43.173913
96
0.640483
ffc231cf39c80049d92fc7b4f38f5da81f6edc07
22,594
py
Python
deepchem/models/tensorgraph/tensor_graph.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
3
2017-10-07T13:48:48.000Z
2021-06-13T09:09:03.000Z
deepchem/models/tensorgraph/tensor_graph.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
1
2017-08-29T22:08:24.000Z
2017-08-29T22:08:24.000Z
deepchem/models/tensorgraph/tensor_graph.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
5
2017-03-19T01:48:13.000Z
2019-02-22T01:12:03.000Z
import pickle import threading import time import networkx as nx import numpy as np import os import six import tensorflow as tf from tensorflow.python.framework.errors_impl import OutOfRangeError from deepchem.data import NumpyDataset from deepchem.metrics import to_one_hot, from_one_hot from deepchem.models.models ...
33.522255
86
0.642781
ffc2451b3580d0b1f3f946be823881c147e36278
804
py
Python
python/image_moderation_batch_aksk_demo.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
48
2018-03-13T06:21:46.000Z
2021-06-23T02:32:14.000Z
python/image_moderation_batch_aksk_demo.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
29
2019-03-27T08:52:38.000Z
2021-12-14T21:15:11.000Z
python/image_moderation_batch_aksk_demo.py
huaweicloudsdk/ais-sdk
623dd366dc3b26ef2eb949a8284f5b0a55e5b0e6
[ "Apache-2.0" ]
38
2018-03-22T01:06:51.000Z
2020-12-30T12:42:42.000Z
# -*- coding:utf-8 -*- from ais_sdk.image_moderation_batch import image_content_batch_aksk from ais_sdk.utils import init_global_env if __name__ == '__main__': # Services currently support North China-Beijing 1 (cn-north-1), Asia Pacific-Hong Kong (ap-southeast-1) init_global_env('cn-north-1') # # acc...
38.285714
121
0.699005
ffc260269c76d1c013af4b9bb72aecf6f47746d4
3,772
py
Python
thond/module_numpy_2.py
thond-tsdv/pyexample
33fbb1786e840f55b5e1415fad9c705d979beff5
[ "BSD-2-Clause" ]
1
2021-06-10T15:08:33.000Z
2021-06-10T15:08:33.000Z
thond/module_numpy_2.py
thond-tsdv/pyexample
33fbb1786e840f55b5e1415fad9c705d979beff5
[ "BSD-2-Clause" ]
null
null
null
thond/module_numpy_2.py
thond-tsdv/pyexample
33fbb1786e840f55b5e1415fad9c705d979beff5
[ "BSD-2-Clause" ]
5
2021-01-15T11:07:41.000Z
2022-02-17T21:24:59.000Z
"""Test numpy AoS v SoA for H layout""" #todo: Clean this up - very quickly knocked up. import numpy as np import time def numpy_SoA_v_AoS(L=10000): """ Compare reading and writing from/to numpy dataset using Array of Structures v Strucure of Arrays """ libE_fields = [('sim_id',int), ('given...
23.428571
98
0.556204
ffc275bb3a30a208c886669482083ca4b4d42635
988
py
Python
mmdet/models/detectors/__init__.py
sijin-dm/conditional-lane-detection
8e438fdd695c4b917002086df2e2aa19e25667a8
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/__init__.py
sijin-dm/conditional-lane-detection
8e438fdd695c4b917002086df2e2aa19e25667a8
[ "Apache-2.0" ]
null
null
null
mmdet/models/detectors/__init__.py
sijin-dm/conditional-lane-detection
8e438fdd695c4b917002086df2e2aa19e25667a8
[ "Apache-2.0" ]
null
null
null
from .atss import ATSS from .base import BaseDetector from .cascade_rcnn import CascadeRCNN from .fast_rcnn import FastRCNN from .faster_rcnn import FasterRCNN from .fcos import FCOS from .fovea import FOVEA from .fsaf import FSAF from .grid_rcnn import GridRCNN from .htc import HybridTaskCascade from .mask_rcnn import...
34.068966
77
0.798583
ffc27ea37ace1c33924f3abb98c422a46498ce31
4,786
bzl
Python
clif_deps.bzl
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif_deps.bzl
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif_deps.bzl
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
"""Load dependencies needed to compile CLIF as a 3rd-party consumer.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") LLVM_COMMIT = "1f21de535d37997c41b9b1ecb2f7ca0e472e9f77" # 2021-01-15 LLVM_BAZEL_TAG = "llvm-project-%s" % (LLVM_COMMIT,) LLVM_BAZEL_SHA256 = "f2fd051574fdddae8f8fff81f986d1165...
45.150943
141
0.652319
ffc28e6a592dd2f7beba1a06104e77d62bdb5a8e
1,506
py
Python
test.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
test.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
test.py
heixialeeLeon/segment_piwise
4eaeeb4aa36298c1140c9fb8a6adef7a3bcfb03f
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch from PIL import Image from argparse import ArgumentParser from torch.optim import SGD, Adam from torch.autograd import Variable from torch.utils.data import DataLoader from torchvision.transforms import Compose, CenterCrop, Normalize from torchvision.transforms import ToTensor, ToPILIm...
27.888889
67
0.760956
ffc29f62e5216c97e191657163e315be05c11cd3
2,293
py
Python
tests/test_downloader.py
Eddievin/videohash
c116c10619b7c92c6bffe0a1763ec4167c9cee13
[ "MIT" ]
null
null
null
tests/test_downloader.py
Eddievin/videohash
c116c10619b7c92c6bffe0a1763ec4167c9cee13
[ "MIT" ]
null
null
null
tests/test_downloader.py
Eddievin/videohash
c116c10619b7c92c6bffe0a1763ec4167c9cee13
[ "MIT" ]
null
null
null
import pytest import os from shutil import which from videohash.downloader import Download from videohash.exceptions import ( DownloadFailed, YouTubeDLNotFound, DownloadOutPutDirDoesNotExits, ) from videohash.utils import ( create_and_return_temporary_directory, get_list_of_all_files_in_dir, ) def...
38.216667
84
0.703009
ffc2baeab62dc9a411383c8cdf276a43abe613ec
393
py
Python
tests/etsin/etsin.py
jarve/FAIRDATAtest
7dd32a37a88b240996fcb67210c6e2f71a1091e0
[ "MIT" ]
null
null
null
tests/etsin/etsin.py
jarve/FAIRDATAtest
7dd32a37a88b240996fcb67210c6e2f71a1091e0
[ "MIT" ]
null
null
null
tests/etsin/etsin.py
jarve/FAIRDATAtest
7dd32a37a88b240996fcb67210c6e2f71a1091e0
[ "MIT" ]
null
null
null
import requests from config import conf_vars try: etsin_host = conf_vars['ETSIN']['HOST'] etsin_dataset_url = 'https://%s/es/metax/dataset/' % etsin_host except Exception as e: print('Note: Etsin not configured') def view_dataset(urn): ''' View a dataset in Etsin. ''' r = requests.get(e...
20.684211
67
0.6743
ffc2df4f004b499a7429b331f8aa1203c901c516
1,632
py
Python
st2common/tests/unit/test_time_jinja_filters.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_time_jinja_filters.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/tests/unit/test_time_jinja_filters.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# 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...
49.454545
93
0.757966
ffc2ec080c5d4cbb18321067923832479f465d11
42,876
py
Python
trac/web/tests/session.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/web/tests/session.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/web/tests/session.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
39.884651
81
0.603951
ffc30712f266b2d678509f4111b722d860d1c00f
5,686
py
Python
tempest/api/image/base.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/image/base.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/image/base.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # 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 t...
33.05814
79
0.661801
ffc32bbcfc4a1607810734d79ffd8b67e9e75338
1,800
py
Python
data/to_tsv.py
AIBrainOrganization/DialoGPT
d7826657ebf629800ad116195521d68bde58bbd0
[ "MIT" ]
null
null
null
data/to_tsv.py
AIBrainOrganization/DialoGPT
d7826657ebf629800ad116195521d68bde58bbd0
[ "MIT" ]
null
null
null
data/to_tsv.py
AIBrainOrganization/DialoGPT
d7826657ebf629800ad116195521d68bde58bbd0
[ "MIT" ]
null
null
null
from openpyxl import load_workbook from tqdm import tqdm import pandas as pd import argparse import sys sys.path.append('/home/calee/git/dcinside') from filter import Comment from filter import filter_rows from filter import add_tags from clean import clean_str def create_rows(xlsxes): train = [] valid = [] ...
22.222222
67
0.591111
ffc330efc8fd962156fe28dc7b19f96690f3a049
3,039
py
Python
src/pindo/code.py
Clivern/Palm
e1974eb14bfc89c207e43e80b3acbc36e7a55e03
[ "MIT" ]
5
2021-12-14T00:05:20.000Z
2022-02-16T00:56:31.000Z
src/pindo/code.py
Clivern/Palm
e1974eb14bfc89c207e43e80b3acbc36e7a55e03
[ "MIT" ]
2
2022-03-08T18:32:08.000Z
2022-03-10T08:39:03.000Z
src/pindo/code.py
Clivern/Palm
e1974eb14bfc89c207e43e80b3acbc36e7a55e03
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 Clivern # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
24.707317
80
0.584732
ffc3326e428225017728f16c259bf2db23d6c031
907
py
Python
rhucrl_experiments/rarl_setting/launch_rarl.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl_experiments/rarl_setting/launch_rarl.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl_experiments/rarl_setting/launch_rarl.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Python Script Template.""" import os from lsf_runner import init_runner, make_commands # import time runner = init_runner("RARL", num_threads=1) cwd = os.path.dirname(os.path.realpath(__file__)) script = "train_rarl.py" # MODEL-BASED + Hallucination + weak/strong commands = make_commands( f"{cwd}/{script}"...
23.868421
51
0.573319
ffc343eb799be70daf98be7988ef27d6247e0405
5,023
py
Python
chapter13/01_MountainCar.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
1
2022-03-01T11:48:55.000Z
2022-03-01T11:48:55.000Z
chapter13/01_MountainCar.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
chapter13/01_MountainCar.py
cemkaraoguz/reinforcement-learning-an-introduction-second-edition
735bfa6b66ffb52b7cf03966164e7bc1755942de
[ "MIT" ]
null
null
null
''' 01_MountainCar.py : Application of Actor-Critic methods to Mountain Car problem Cem Karaoguz, 2020 MIT License ''' import numpy as np import pylab as pl from mpl_toolkits.mplot3d import Axes3D from IRL.environments.Cars import MountainCar from IRL.agents.PolicyGradient import OneStepActorCritic, ActorCriticWithEl...
37.766917
146
0.711129
ffc3725dbe3cd02c302e7839201bdfe16f3d364d
2,000
py
Python
tests/design_patterns/oop/test_throne_inheritance.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
tests/design_patterns/oop/test_throne_inheritance.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
tests/design_patterns/oop/test_throne_inheritance.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
import unittest from design_patterns.oop.throne_inheritance import ThroneInheritance class ThroneInheritanceTestCase(unittest.TestCase): def test_order_with_one_child(self): t = ThroneInheritance("king") t.birth("king", "andy") self.assertEqual(["king", "andy"], t.get_inheritance_order())...
35.087719
115
0.5945
ffc377bdd9dccf5240f5858db122b0241c53a155
18,012
py
Python
pw_tokenizer/py/pw_tokenizer/detokenize.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
43
2020-03-20T21:07:13.000Z
2021-11-23T17:34:02.000Z
pw_tokenizer/py/pw_tokenizer/detokenize.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
2
2020-03-21T04:58:09.000Z
2021-04-09T10:29:05.000Z
pw_tokenizer/py/pw_tokenizer/detokenize.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
12
2020-03-21T01:02:26.000Z
2022-01-04T01:35:14.000Z
#!/usr/bin/env python3 # Copyright 2020 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.759184
80
0.615923
ffc3865ba879f807e03ae8b141c4c06d316f58f7
78,114
py
Python
mmaction/datasets/pipelines/loading.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/datasets/pipelines/loading.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/datasets/pipelines/loading.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy as cp import io import os import os.path as osp import shutil import warnings import mmcv import numpy as np import torch from mmcv.fileio import FileClient from torch.nn.modules.utils import _pair from ...utils import get_random_string, get_shm_dir, get_thr...
36.65603
90
0.593044
ffc3914438940e4134595019e36d6295f925fe56
1,332
py
Python
leetcode/medium/1457-Pseudo-palin-in-BT.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
leetcode/medium/1457-Pseudo-palin-in-BT.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
leetcode/medium/1457-Pseudo-palin-in-BT.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" Leetcode #1457 """ import collections from typing import List # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def pseudoPalindromicPaths (self, root: Tre...
20.8125
77
0.540541
ffc3cac3e583f71c86a1e7085b3bcb1d21680710
9,073
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.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 ...
32.288256
148
0.612366
ffc3ce601a242cee1ffbb6b62ba0458a8f4a8295
5,458
py
Python
acore/utils/pytorch_functions.py
zhao-david/ACORE-LFI
91de88b77f0be110e42ed91bbb7a50b7ca83319a
[ "MIT" ]
null
null
null
acore/utils/pytorch_functions.py
zhao-david/ACORE-LFI
91de88b77f0be110e42ed91bbb7a50b7ca83319a
[ "MIT" ]
null
null
null
acore/utils/pytorch_functions.py
zhao-david/ACORE-LFI
91de88b77f0be110e42ed91bbb7a50b7ca83319a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np from itertools import chain # Quantile regression code taken from https://colab.research.google.com/drive/1nXOlrmVHqCHiixqiMF6H8LSciz583_W2 class q_model(nn.Module): def __init__(self, quantiles, neur_shapes, ...
34.544304
111
0.563943
ffc3d61cd8993a0cc150bb9613651450ae2ff86a
736
py
Python
cosmotech_api/__init__.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
cosmotech_api/__init__.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
cosmotech_api/__init__.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
# flake8: noqa """ Cosmo Tech Plaform API Cosmo Tech Platform API # noqa: E501 The version of the OpenAPI document: 0.0.11-SNAPSHOT Contact: platform@cosmotech.com Generated by: https://openapi-generator.tech """ __version__ = "1.0.0" # import ApiClient from cosmotech_api.api_client import Ap...
25.37931
56
0.809783
ffc3dbb5521b05b570d6dd332a26ecbaf55e6e55
15,296
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/_network_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/_network_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/_network_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
29.643411
112
0.692338
ffc3e860f2f60a8289b74979ce4879861e4a7d75
870
py
Python
blog/migrations/0012_auto_20151217_1910.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
1
2015-09-16T17:14:36.000Z
2015-09-16T17:14:36.000Z
blog/migrations/0012_auto_20151217_1910.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
blog/migrations/0012_auto_20151217_1910.py
FarmCodeGary/InspirationForge
2b78e9c388608ac19ed0ecb114ce5e0cc1f33213
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0011_auto_20151217_1753'), ] operations = [ migrations.RenameField( model_name='article', ol...
24.857143
44
0.567816
ffc42ec2e7c2a903c0bc40e272a7e58647ce0aea
1,115
py
Python
cover.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
cover.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
cover.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
""" Extract all sentences from all paragraphs from all pages """ from glob import glob from os.path import join from collections import defaultdict from utils import summaries_dir, load_json, save_json threshold_words = 10 def extract_sentences(max_processed=-1): files = glob(join(summaries_dir, '*.json'))...
26.547619
82
0.66278
ffc4680681dc2689a28e7031f29eb82a8a1cc526
16,933
py
Python
skorch/helper.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
2,748
2019-03-19T11:43:01.000Z
2022-03-31T13:55:28.000Z
skorch/helper.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
392
2019-03-19T11:17:04.000Z
2022-03-29T21:36:53.000Z
skorch/helper.py
TheAutumnOfRice/skorch
6d778fc38d797644c847a9c87dd23299eea63087
[ "BSD-3-Clause" ]
197
2019-03-27T09:18:25.000Z
2022-03-27T00:15:23.000Z
"""Helper functions and classes for users. They should not be used in skorch directly. """ from collections import Sequence from functools import partial import numpy as np from sklearn.base import BaseEstimator from sklearn.base import TransformerMixin import torch from skorch.cli import parse_args # pylint: disa...
33.136986
85
0.595819
ffc475adaf9848abd7ed7b499373ef886048a72a
1,630
py
Python
More/E09_Contexts/E00_FitRectByContext.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-06-20T22:01:23.000Z
2021-08-06T04:39:50.000Z
More/E09_Contexts/E00_FitRectByContext.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
5
2020-05-17T09:32:27.000Z
2021-03-15T19:45:52.000Z
More/E09_Contexts/E00_FitRectByContext.py
freder/PageBotExamples
eb4ced53a673b9376e8357afa9ea0795b022b13c
[ "Ruby", "MIT" ]
2
2021-02-25T19:07:45.000Z
2022-01-09T21:14:06.000Z
# ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 Thom Janssen <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting DrawBot, www.drawbot.com # Supporting Flat, xxyxyz.or...
29.636364
85
0.647239
ffc47bf1d967c628b359650d9af02abaa8be8c35
1,353
py
Python
python/pyxir/contrib/target/DPUCADF8H.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2020-06-17T22:41:13.000Z
2022-03-22T16:28:22.000Z
python/pyxir/contrib/target/DPUCADF8H.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2021-03-16T06:26:44.000Z
2022-03-18T11:28:33.000Z
python/pyxir/contrib/target/DPUCADF8H.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
19
2020-07-30T10:03:02.000Z
2021-06-29T01:18:16.000Z
# Copyright 2020 Xilinx 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 writing, ...
37.583333
76
0.752402
ffc491fa7e4beb514b7e66720fab3b4361387c93
32,497
py
Python
cinderclient/client.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/client.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/client.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
# Copyright (c) 2011 OpenStack Foundation # Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 Piston Cloud Computing, 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...
38.142019
79
0.582885
ffc493d91b4c5bc528eebe4f8d679cdb384930d0
1,149
py
Python
tests/testTables.py
ttm/gmaneLegacy
df9e0926c93358abdb632f7f9ce891330959c835
[ "Unlicense" ]
1
2019-04-25T16:31:12.000Z
2019-04-25T16:31:12.000Z
tests/testTables.py
ttm/gmaneLegacy
df9e0926c93358abdb632f7f9ce891330959c835
[ "Unlicense" ]
null
null
null
tests/testTables.py
ttm/gmaneLegacy
df9e0926c93358abdb632f7f9ce891330959c835
[ "Unlicense" ]
null
null
null
import gmaneLegacy as g, os ENV=os.environ["PATH"] import importlib #from IPython.lib.deepreload import reload as dreload importlib.reload(g.tableHelpers) dreload(g,exclude="pytz") os.environ["PATH"]=ENV labels=("l1","label2") data=[[1,5,7],[3.4,3,7.8]] tstring=g.makeTables(labels,data) print(tstring) row_labels=list...
30.236842
139
0.741514
ffc49d23a149291b11252070452b26914ef42ab6
2,609
py
Python
rideshare/rideshare_profile/migrations/0001_initial.py
RideQuest/ridequest
a2f51d99109f9767c5d2abe7f6fb3f160e5212da
[ "MIT" ]
null
null
null
rideshare/rideshare_profile/migrations/0001_initial.py
RideQuest/ridequest
a2f51d99109f9767c5d2abe7f6fb3f160e5212da
[ "MIT" ]
12
2016-04-30T02:36:13.000Z
2016-04-30T02:39:45.000Z
rideshare/rideshare_profile/migrations/0001_initial.py
RideQuest/ridequest
a2f51d99109f9767c5d2abe7f6fb3f160e5212da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-05-03 18:44 from __future__ import unicode_literals from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion import phonenumber_field.modelfields class Migration(mi...
59.295455
879
0.617861
ffc4c119219f539e3b704f0b91eba4ef45806764
8,419
py
Python
toontown/battle/DistributedBattleBldg.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/battle/DistributedBattleBldg.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/battle/DistributedBattleBldg.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random from direct.actor import Actor from direct.directnotify import DirectNotifyGlobal from direct.fsm import State from direct.interval.IntervalGlobal import * from panda3d.core import * from otp.avatar import Emote from toontown.battle.BattleBase import * from toontown.battle import DistributedBattleBase fro...
39.712264
123
0.658511
ffc4cb39bccc1aea442745a37d436e973ee78376
796
py
Python
staging_service/JGIMetadata.py
jsfillman/staging_service
eeb82e9eb6dc9ed893572ed9205590bec7bb9f06
[ "MIT" ]
null
null
null
staging_service/JGIMetadata.py
jsfillman/staging_service
eeb82e9eb6dc9ed893572ed9205590bec7bb9f06
[ "MIT" ]
null
null
null
staging_service/JGIMetadata.py
jsfillman/staging_service
eeb82e9eb6dc9ed893572ed9205590bec7bb9f06
[ "MIT" ]
null
null
null
from .utils import Path from json import JSONDecoder import aiofiles import os from aiohttp import web decoder = JSONDecoder() async def read_metadata_for(path: Path): if os.path.exists(path.jgi_metadata) and os.path.isfile(path.jgi_metadata): async with aiofiles.open(path.jgi_metadata, mode="r") as json...
29.481481
81
0.683417
ffc4d2f408e33ddb1c852bda6b8c0e02a810cc6d
5,372
py
Python
neutron/plugins/ml2/models.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/models.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/models.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # 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 ...
41.007634
79
0.64799
ffc4e15e811601ff5e0898b8d57f5b137bc2e91c
2,929
py
Python
models/action_execution/NN2.py
KaixiangLin/magnet
500bdb1e8bd3d711a055f8dd14e8d1329d8f2c98
[ "Apache-2.0" ]
86
2018-07-27T08:16:21.000Z
2022-03-23T07:32:23.000Z
models/action_execution/NN2.py
tegg89/magnn
740160aa1ae367d22eeffcd04268adac52ab9108
[ "Apache-2.0" ]
4
2019-03-28T06:35:51.000Z
2021-03-10T15:30:25.000Z
models/action_execution/NN2.py
tegg89/magnn
740160aa1ae367d22eeffcd04268adac52ab9108
[ "Apache-2.0" ]
23
2018-09-26T23:18:01.000Z
2022-02-11T06:35:16.000Z
from models.graph_construction.transformer import * def model_NN2(features, labels, mode): # Implement 2 seperate preprocessing of state and graph and combine them together # implementation of NN with 3 inputs: https://stackoverflow.com/questions/40318457/how-to-build-a-multiple-input-graph-with-tensor-flow ...
40.680556
139
0.675657
ffc5063755bc2cea8dc006f24d8991126624d415
4,813
py
Python
cpp/setup.py
cair/rl
4768b89113d83139937b1ae08c5cc0a2f2c0d738
[ "Unlicense" ]
1
2021-07-26T20:48:25.000Z
2021-07-26T20:48:25.000Z
cpp/setup.py
cair/rl
4768b89113d83139937b1ae08c5cc0a2f2c0d738
[ "Unlicense" ]
1
2021-09-01T21:42:57.000Z
2021-09-01T21:46:44.000Z
cpp/setup.py
cair/rl
4768b89113d83139937b1ae08c5cc0a2f2c0d738
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import os import pathlib import sys import subprocess from setuptools import setup, Extension from setuptools.command.build_ext import build_ext # Convert distutils Windows platform specifiers to CMake -A arguments PLAT_TO_CMAKE = { "win32": "Win32", "win-amd64": "x64", "win-arm32...
39.130081
101
0.632246
ffc51a168c52d742d9e11885b974b62d7c0850a8
99
py
Python
office365/sharepoint/fields/related_field.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/fields/related_field.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/fields/related_field.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.sharepoint.base_entity import BaseEntity class RelatedField(BaseEntity): pass
16.5
55
0.818182
ffc52e5ac11854521851d59eb034c7551e708289
5,376
py
Python
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.956522
133
0.660528
ffc541744b48c741542448aa2af6d5f7d2e710fc
5,032
py
Python
experiments/ashvin/rfeatures/sawyer/door2/bc_v3_varied1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/rfeatures/sawyer/door2/bc_v3_varied1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/rfeatures/sawyer/door2/bc_v3_varied1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import gym import rlkit.torch.pytorch_util as ptu from rlkit.data_management.obs_dict_replay_buffer import ObsDictRelabelingBuffer from rlkit.exploration_strategies.base import \ PolicyWrappedWithExplorationStrategy from rlkit.exploration_strategies.gaussian_and_epislon import \ GaussianAndEpislonStrategy from...
37.552239
217
0.67349
ffc54eb362230307fcfeb1ea826f5105a57aae78
6,024
py
Python
tests/manage/z_cluster/nodes/test_az_failure.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_az_failure.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_az_failure.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import logging import random import pytest from ocs_ci.framework.pytest_customization.marks import aws_platform_required from ocs_ci.framework.testlib import ManageTest, tier4, tier4b from ocs_ci.ocs.exceptions import CommandFailed from ocs_ci.helpers import sanity_helpers logger = logging.getLogger(__name__) @tie...
34.033898
89
0.653718
ffc56d0802a5d7ae50dc361b7f48c3436c3f1c82
1,166
py
Python
python/08_Chapter/cgi-bin/athletemodel.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
python/08_Chapter/cgi-bin/athletemodel.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
python/08_Chapter/cgi-bin/athletemodel.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
import pickle from athletelist import AthleteList def get_coach_data(filename): try: with open(filename) as f: data = f.readline() templ = data.strip().split(',') return(AthleteList(templ.pop(0), templ.pop(0), templ)) except IOError as ioerr: print('File error (get...
27.761905
65
0.634648
ffc5721c774cb6fecc666203ea5b6fbc88470731
918
py
Python
deeppavlov/models/__init__.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-05-22T08:34:33.000Z
2019-05-22T08:34:33.000Z
deeppavlov/models/__init__.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
null
null
null
deeppavlov/models/__init__.py
ineersa/DeepPavlov
8200bf9a0f0b378baad4ee0eb75b59453f516004
[ "Apache-2.0" ]
1
2019-03-17T13:47:44.000Z
2019-03-17T13:47:44.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.307692
74
0.748366
ffc579b3292c6af973912e18b607720e233dcdab
4,102
py
Python
deeplearn/classifier.py
notallheroeswearcapes/ML_Ex3
420b815d6e86558e8272b51fcac8153ace06f534
[ "MIT" ]
null
null
null
deeplearn/classifier.py
notallheroeswearcapes/ML_Ex3
420b815d6e86558e8272b51fcac8153ace06f534
[ "MIT" ]
null
null
null
deeplearn/classifier.py
notallheroeswearcapes/ML_Ex3
420b815d6e86558e8272b51fcac8153ace06f534
[ "MIT" ]
null
null
null
import click from sklearn import neighbors, metrics, neural_network, ensemble from deeplearn import io, evaluator from timeit import default_timer class Classifier: KNN_PARAMS = { 'n_neighbors': 3, 'weights': 'distance' } MLP_PARAMS = { 'activation': 'relu', 'solver': 'adam...
40.215686
116
0.612872
ffc5a118a5ff8eb405ce784369b6d702baf37552
317
py
Python
plastering/inferencers/scrabble/iteration.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
29
2018-09-19T01:16:27.000Z
2022-03-29T14:35:36.000Z
plastering/inferencers/scrabble/iteration.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-04-12T18:37:36.000Z
2022-02-10T00:27:55.000Z
plastering/inferencers/scrabble/iteration.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
14
2019-03-05T23:44:11.000Z
2022-03-18T07:29:31.000Z
from copy import deepcopy import pdb from common import * from hcc import StructuredClassifierChain from mongo_models import store_model, get_model, get_tags_mapping, \ get_crf_results, store_result, get_entity_results from char2ir import crf_test, learn_crf_model from ir2tagsets import *
28.818182
74
0.782334
ffc5c101a8e3167b5ec24815b3b52ddaffa6c813
21,797
py
Python
electrum/gui/qt/network_dialog.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
2
2019-07-17T23:09:42.000Z
2019-10-25T05:44:04.000Z
electrum/gui/qt/network_dialog.py
akshaynexus/qtum-electrum
9fdda51bbc7e541b6f5743f16313d0b8b6123b48
[ "MIT" ]
1
2021-06-02T00:37:16.000Z
2021-06-02T00:37:16.000Z
electrum/gui/qt/network_dialog.py
tachacoin/tachacoin-electrum
d5f3bbfc4c84ec1289e1e74e4d9f29af07527caa
[ "MIT" ]
3
2019-08-10T15:14:29.000Z
2021-05-26T20:02:02.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including witho...
39.273874
146
0.632243
ffc5c7cbd0b84668948d62c729a3040c082b7536
406
py
Python
data/__init__.py
rafikg/Colorize_grayscale_image
36368038efd241ed38865f30941dfda3b58cee94
[ "MIT" ]
3
2020-02-21T07:29:32.000Z
2022-03-01T03:21:55.000Z
data/__init__.py
rafikg/Colorize_grayscale_image
36368038efd241ed38865f30941dfda3b58cee94
[ "MIT" ]
null
null
null
data/__init__.py
rafikg/Colorize_grayscale_image
36368038efd241ed38865f30941dfda3b58cee94
[ "MIT" ]
1
2020-03-11T07:38:29.000Z
2020-03-11T07:38:29.000Z
from .transforms import rgb_to_gray, gray_to_rgb, get_gray_and_ab, \ get_l_channel, normalize_ab, normalize_rgb, normalize_l from .augmenters import crop_or_pad_image, flip, normalize from .dataset import ColorizeDataset __all__ = [crop_or_pad_image, flip, rgb_to_gray, gray_to_rgb, get_gray_a...
40.6
68
0.76601
ffc5cf70013754e26f0280f3fb1cde57d9644e2f
946
py
Python
2_Add-Two-Numbers.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
2_Add-Two-Numbers.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
2_Add-Two-Numbers.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def addTwoNumbers(self, l1, l2): """ :type l1: ListNode :type l2: ListNode :rtype: ListNode """ if l1...
23.65
40
0.437632
ffc6132fd74abffbbf676fe8b38ec0e86fa22853
504
py
Python
Test29_tf/apis/truncated_normal.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test29_tf/apis/truncated_normal.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test29_tf/apis/truncated_normal.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
''' tf.truncated_normal truncated_normal( shape, mean=0.0, stddev=1.0, dtype=tf.float32, seed=None, name=None ) 产生截断正态分布随机数,取值范围为 [ mean - 2 * stddev, mean + 2 * stddev ]。 参数列表: 参数名 必选 类型 说明 shape 是 1 维整形张量或 array 输出张量的维度 mean 否 0 维张量或数值 均值 stddev 否 0 维张量或数值 标准差 dtype 否 dtype 输出类型...
20.16
60
0.664683
ffc61b3c6c0a6e64218e5817caabc7e4626dbc65
2,862
py
Python
pcg_random/python.py
o11c/pcg-python
686140ef81decb18da7012eabb584029209e0b81
[ "Apache-2.0", "MIT" ]
1
2020-08-12T19:05:02.000Z
2020-08-12T19:05:02.000Z
pcg_random/python.py
heemayl/pcg-python
686140ef81decb18da7012eabb584029209e0b81
[ "Apache-2.0", "MIT" ]
null
null
null
pcg_random/python.py
heemayl/pcg-python
686140ef81decb18da7012eabb584029209e0b81
[ "Apache-2.0", "MIT" ]
null
null
null
# PCG Random Number Generation for C++ (ported to Python) # # Copyright 2017 Ben Longbons <brlongbons@gmail.com> # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # # Licensed under the Apache License, Version 2.0 (provided in # LICENSE-APACHE.txt and at http://www.apache.org/licenses/LICENSE-2.0) # or under the MIT lic...
35.775
75
0.653739
ffc65c4de53e11cb1415867a46839796fbc20625
45
py
Python
ratings/routes/__init__.py
Platzi-Master-C8/gethired-jobplacement-ratings-backend
afa5ae3a749f9fcab863832d7db0928711a3f4e0
[ "MIT" ]
1
2021-12-12T07:22:16.000Z
2021-12-12T07:22:16.000Z
ratings/routes/__init__.py
Platzi-Master-C8/gethired-jobplacement-ratings-backend
afa5ae3a749f9fcab863832d7db0928711a3f4e0
[ "MIT" ]
57
2021-12-21T17:56:48.000Z
2022-03-06T21:17:39.000Z
ratings/routes/__init__.py
Platzi-Master-C8/gethired-jobplacement-ratings-backend
afa5ae3a749f9fcab863832d7db0928711a3f4e0
[ "MIT" ]
5
2021-12-04T21:09:51.000Z
2022-01-29T16:14:02.000Z
from .example import example as example_root
22.5
44
0.844444
ffc6bef1294be8b7df5a1c7b72421dbc72889842
1,331
py
Python
e2e_tests/yatai_server/test_postgres_local_fs.py
ritza-co/BentoML
b040add0071720501f0535dc1c725767ceb92a7e
[ "Apache-2.0" ]
2
2019-04-24T07:36:20.000Z
2021-07-28T04:47:32.000Z
e2e_tests/yatai_server/test_postgres_local_fs.py
ritza-co/BentoML
b040add0071720501f0535dc1c725767ceb92a7e
[ "Apache-2.0" ]
2
2020-08-13T05:55:02.000Z
2020-08-27T23:58:39.000Z
e2e_tests/yatai_server/test_postgres_local_fs.py
ritza-co/BentoML
b040add0071720501f0535dc1c725767ceb92a7e
[ "Apache-2.0" ]
2
2021-01-06T14:09:21.000Z
2021-03-31T16:04:31.000Z
import logging from bentoml.yatai.proto.repository_pb2 import BentoUri from e2e_tests.sample_bento_service import SampleBentoService from e2e_tests.cli_operations import delete_bento from e2e_tests.yatai_server.utils import ( get_bento_service_info, execute_bentoml_run_command, local_yatai_server, ) logge...
35.972973
81
0.729527
ffc6eff300fd0bc87e2ecf706d01b7b260efd958
27,487
py
Python
tests/config_pool_responses.py
Zuora-TechOps/python-stingray
f0ee214609f7ce534d52083641cc7a074b1206ac
[ "Apache-2.0" ]
null
null
null
tests/config_pool_responses.py
Zuora-TechOps/python-stingray
f0ee214609f7ce534d52083641cc7a074b1206ac
[ "Apache-2.0" ]
null
null
null
tests/config_pool_responses.py
Zuora-TechOps/python-stingray
f0ee214609f7ce534d52083641cc7a074b1206ac
[ "Apache-2.0" ]
1
2019-05-28T20:16:59.000Z
2019-05-28T20:16:59.000Z
list_pools = { 'children': [ { 'name': 'Pool1', 'href': '/api/tm/5.2/config/active/pools/Pool1' }, { 'name': 'Pool2', 'href': '/api/tm/5.2/config/active/pools/Pool2' }, { 'name': 'Pool3', 'href': '/api/tm...
27.82085
59
0.401062
ffc6f1fbe7445a1437db3389148d6a6278c03675
1,401
py
Python
demos/mouse_functions_managed.py
talwai/jygsaw
70847c797ff1fb3034bf9d6f95fa6dce1b9056f7
[ "WTFPL" ]
2
2017-11-21T03:04:47.000Z
2020-03-10T11:05:15.000Z
demos/mouse_functions_managed.py
talwai/jygsaw
70847c797ff1fb3034bf9d6f95fa6dce1b9056f7
[ "WTFPL" ]
null
null
null
demos/mouse_functions_managed.py
talwai/jygsaw
70847c797ff1fb3034bf9d6f95fa6dce1b9056f7
[ "WTFPL" ]
null
null
null
# mouse_functions_managed.py # # Jygsaw demo - Has a box that can be dragged by the mouse. # # Attribution: inspired by the mousefunction demo in Processing # from http://processingjs.org/learning/basic/mousefunctions/ # written by Casey Reas and Ben Fry from jygsaw.graphics import * BOX_SIZE = 75 over_box = False lo...
18.932432
63
0.62955
ffc714368c4f4374b8c01105e9cfd3e15ba9b5df
20,481
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_web_site_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_web_site_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/models/_web_site_management_client_enums.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 ...
30.297337
152
0.713784
ffc7677299a189ea2690f1b147bda9f359912b5f
1,766
py
Python
backtracking/minimax.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
backtracking/minimax.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
backtracking/minimax.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''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, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
33.320755
83
0.694224
ffc778626119fac0b79b2b7917ab36ec5482c1d1
1,853
py
Python
buffer.py
longfeili1997/DQN
2e02220f554cccc116163db6223814c0dae87e85
[ "Apache-2.0" ]
null
null
null
buffer.py
longfeili1997/DQN
2e02220f554cccc116163db6223814c0dae87e85
[ "Apache-2.0" ]
null
null
null
buffer.py
longfeili1997/DQN
2e02220f554cccc116163db6223814c0dae87e85
[ "Apache-2.0" ]
null
null
null
import random import numpy as np import torch from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler, WeightedRandomSampler class RolloutStorage(object): def __init__(self, config): self.obs = torch.zeros([config.max_buff, *config.state_shape], dtype=torch.uint8) self.next_obs = to...
50.081081
111
0.689153
ffc779bc10eefc64e38b80943a77d221d87eb873
96
py
Python
bookr/filter_demo/apps.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/filter_demo/apps.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/filter_demo/apps.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
from django.apps import AppConfig class FilterDemoConfig(AppConfig): name = 'filter_demo'
16
34
0.770833
ffc78a91f69c21d3cc03d5488a374d7834f4a758
310
py
Python
vision_transformer/timm/models/layers/trace_utils.py
sarasarto/RUA-Read-Understand-and-Act
18ebd921574f74eb1f0e8712cd00939015bf95f0
[ "MIT" ]
1
2022-03-02T14:13:15.000Z
2022-03-02T14:13:15.000Z
vision_transformer/timm/models/layers/trace_utils.py
GiuseppeCartella/RUA-Read-Understand-and-Act
18ebd921574f74eb1f0e8712cd00939015bf95f0
[ "MIT" ]
null
null
null
vision_transformer/timm/models/layers/trace_utils.py
GiuseppeCartella/RUA-Read-Understand-and-Act
18ebd921574f74eb1f0e8712cd00939015bf95f0
[ "MIT" ]
null
null
null
try: from torch import _assert except ImportError: def _assert(condition, message): assert condition, message def _float_to_int(x): """ Symbolic tracing helper to substitute for inbuilt `int`. Hint: Inbuilt `int` can't accept an argument of type `Proxy` """ return int(x)
22.142857
64
0.670968
ffc7a838383c518bba84eb268297a0d8ace12ebe
10,601
py
Python
ujutils/common.py
uujei/ujutils
1153b0ec2b7eb3f41edc190dd4fb5400417c62de
[ "MIT" ]
null
null
null
ujutils/common.py
uujei/ujutils
1153b0ec2b7eb3f41edc190dd4fb5400417c62de
[ "MIT" ]
null
null
null
ujutils/common.py
uujei/ujutils
1153b0ec2b7eb3f41edc190dd4fb5400417c62de
[ "MIT" ]
null
null
null
import os from collections import Counter from typing import Union import numpy as np import pandas as pd from natsort import natsorted from pandas.core.arrays.categorical import Categorical from rich.console import Console from rich.filesize import decimal from .directory import Directory from .misc import _gen_orde...
30.031161
79
0.511839
ffc7eff7a78a11a83d3bfe6ea7b5c60186707665
5,120
py
Python
ocs_ci/ocs/resources/bucket_policy.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/bucket_policy.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/ocs/resources/bucket_policy.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
import datetime import logging import boto3 from ocs_ci.ocs import constants from ocs_ci.ocs.bucket_utils import retrieve_verification_mode logger = logging.getLogger(__name__) class HttpResponseParser(object): """ A simple class for parsing HTTP responses """ def __init__(self, http_response): ...
31.604938
102
0.597656
ffc7f3620b28dd0c5a83d37280bd40e560384995
7,548
py
Python
alipay/aop/api/domain/AlipayPcreditHuabeiPcreditmerchantProductorderTransferModel.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/AlipayPcreditHuabeiPcreditmerchantProductorderTransferModel.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/AlipayPcreditHuabeiPcreditmerchantProductorderTransferModel.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 * class AlipayPcreditHuabeiPcreditmerchantProductorderTransferModel(object): def __init__(self): self._active_datetime = None self._extending_info = None self._from_app = None ...
34.153846
89
0.621357
ffc83a698c9a7cc1328c8480281a62bfee27fc80
2,449
py
Python
navycut/contrib/admin/__init__.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
4
2021-09-22T09:23:04.000Z
2022-03-05T05:58:46.000Z
navycut/contrib/admin/__init__.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
21
2021-09-27T03:19:21.000Z
2022-03-31T03:20:59.000Z
navycut/contrib/admin/__init__.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
null
null
null
from flask_admin import Admin from .site.views import * from .site.forms import * from navycut.orm import sql from inspect import getfile from navycut.utils.tools import snake_to_camel_case from navycut.contrib.auth.models import (User, Group, UsersCusto...
34.013889
94
0.585545
ffc841f234ff0d741071c2f2ec907b5d1c196112
2,755
py
Python
jina/types/ndarray/sparse/__init__.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
15,179
2020-04-28T10:23:56.000Z
2022-03-31T14:35:25.000Z
jina/types/ndarray/sparse/__init__.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
3,912
2020-04-28T13:01:29.000Z
2022-03-31T14:36:46.000Z
jina/types/ndarray/sparse/__init__.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
1,955
2020-04-28T10:50:49.000Z
2022-03-31T12:28:34.000Z
from typing import List, TypeVar, Union, Dict from .. import BaseNdArray from ..dense.numpy import DenseNdArray from ....proto import jina_pb2 AnySparseNdArray = TypeVar('AnySparseNdArray') if False: import numpy as np __all__ = ['BaseSparseNdArray'] class BaseSparseNdArray(BaseNdArray): """ The base ...
30.611111
93
0.630127