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
62426f7d6a2904ff1b37dc29b88843836f24ad9f
10,437
py
Python
src/cops_and_robots/human_tools/statement.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
3
2016-01-19T17:54:51.000Z
2019-10-21T12:09:03.000Z
src/cops_and_robots/human_tools/statement.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
null
null
null
src/cops_and_robots/human_tools/statement.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
5
2015-02-19T02:53:24.000Z
2019-03-05T20:29:12.000Z
import logging from shapely.geometry import Polygon from cops_and_robots.fusion.softmax import (binary_range_model, binary_intrinsic_space_model, range_model, intrinsic_space_model) from ...
35.62116
91
0.545751
6242804f920efb87cea5e3d63a3b0b62df9968fc
496
py
Python
2021/12/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/12/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/12/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from collections import defaultdict, deque with open("input.txt") as input_file: lines = input_file.read().splitlines() g = defaultdict(set) for line in lines: n1, n2 = line.split("-") g[n1].add(n2) g[n2].add(n1) def walk(node, path): if node == "end": yield path for next_node i...
22.545455
58
0.616935
6242896beadb79df292c72524cd8b1b0addabba9
7,056
py
Python
mass_dot_gov_datasets/scrape_mass_gov_for_data.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
3
2020-04-02T23:38:02.000Z
2020-04-08T18:57:16.000Z
mass_dot_gov_datasets/scrape_mass_gov_for_data.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
24
2020-04-03T13:58:28.000Z
2021-04-27T02:12:07.000Z
mass_dot_gov_datasets/scrape_mass_gov_for_data.py
tufts-ml/covid19-forecasting
b0e3eed6cc03a981598d8f0b7c6fe882310c710d
[ "MIT" ]
null
null
null
''' Scrape per-hospital total census and ICU census from daily reports on mass.gov Reporting at hospital level started at April 29, 2020, with new data released every day https://www.mass.gov/info-details/archive-of-covid-19-cases-in-massachusetts#april-2020- ''' import os from io import BytesIO, StringIO from zipfi...
43.555556
147
0.553146
62429be8ebfb0c2572abf3940e8e4652c9b2d5d0
10,679
py
Python
data/event_creation.py
jupadhya1/Odometry_Signal_Anomaly
37a1e549b640fcec7b21ba06e55f8744dbe4614b
[ "MIT" ]
null
null
null
data/event_creation.py
jupadhya1/Odometry_Signal_Anomaly
37a1e549b640fcec7b21ba06e55f8744dbe4614b
[ "MIT" ]
null
null
null
data/event_creation.py
jupadhya1/Odometry_Signal_Anomaly
37a1e549b640fcec7b21ba06e55f8744dbe4614b
[ "MIT" ]
null
null
null
import logging import os import tempfile import uuid import pickle from typing import List, Union from io import BytesIO, StringIO from zipfile import ZipFile import pandas as pd from tqdm import tqdm def change_axle_speed(df: pd.DataFrame, divide_by: Union[int, float]=10): """change axle spped by ...
35.956229
122
0.556887
6242ae8bdb6c97268c9330662bb25a49c084aaf7
3,188
py
Python
tests/test_window_utils.py
evandroforks/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
49
2018-04-11T01:18:02.000Z
2021-09-17T14:34:56.000Z
tests/test_window_utils.py
evandrocoan/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
115
2018-04-03T18:53:17.000Z
2021-12-07T09:36:33.000Z
tests/test_window_utils.py
evandrocoan/sublime_lib
7d013cd85dbcc10b66e8c81a07160b2dd55f3138
[ "MIT" ]
5
2018-11-26T12:07:47.000Z
2020-03-27T12:31:55.000Z
import sublime from unittest import skipIf from unittesting import DeferrableTestCase from sublime_lib import new_window, close_window class TestNewWindow(DeferrableTestCase): def tearDown(self): # We have to wait between opening and closing a window to avoid a crash. # See https://github.com/su...
32.530612
89
0.676286
6242b251d1eef46d13503a8d71f6efdd29dd8bcf
256
py
Python
model/monotonic_align/setup.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
1
2022-03-14T13:06:48.000Z
2022-03-14T13:06:48.000Z
model/monotonic_align/setup.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
null
null
null
model/monotonic_align/setup.py
sarmilaupadhyaya/MultiSpeaker-TTS-V1
4b6351f74145f254521e4946e10fa646d6ec197c
[ "MIT" ]
null
null
null
""" from https://github.com/jaywalnut310/glow-tts """ from distutils.core import setup from Cython.Build import cythonize import numpy setup( name = 'monotonic_align', ext_modules = cythonize("core.pyx"), include_dirs=[numpy.get_include()] )
21.333333
53
0.722656
6242b45b18afd719b8b2109b3b06a702b847beae
3,440
py
Python
run/run_maligan.py
jianqiaoSE/ceGan
096ec435b5d03344bf23e05d3e5e3e97cb4b0be5
[ "MIT" ]
1
2021-12-23T09:17:37.000Z
2021-12-23T09:17:37.000Z
run/run_maligan.py
jianqiaoSE/ceGan
096ec435b5d03344bf23e05d3e5e3e97cb4b0be5
[ "MIT" ]
null
null
null
run/run_maligan.py
jianqiaoSE/ceGan
096ec435b5d03344bf23e05d3e5e3e97cb4b0be5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author : William # @Project : TextGAN-william # @FileName : run_maligan.py # @Time : Created at 2019/11/29 # @Blog : http://zhiweil.ml/ # @Description : # Copyrights (C) 2018. All Rights Reserved. import sys from subprocess import call import os # Job id an...
24.225352
107
0.646802
6242ca4f66f98d86b92ebbe2e1c8099a87c785ae
26,600
py
Python
static/scripts/tools/build.sahana.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
static/scripts/tools/build.sahana.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
static/scripts/tools/build.sahana.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Run as: # python web2py.py -S eden -M -R applications/eden/static/scripts/tools/build.sahana.py # or: # python web2py.py -S eden -M -R applications/eden/static/scripts/tools/build.sahana.py -A <options> # # Options: # CSS - CSS only (=do not build JavaScript) #...
35.278515
116
0.519436
6242cf0c08a2e8d0ec03675e7b0a8c62f71e60bd
11,057
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_recoverable_managed_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_recoverable_managed_databases_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_recoverable_managed_databases_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 ...
43.703557
222
0.688975
6242e1782900d83238c61e2b5cd1416e38b5d3d5
8,659
py
Python
lib/matplotlib/tests/test_legend.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
lib/matplotlib/tests/test_legend.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/tests/test_legend.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import xrange try: # mock in python 3.3+ from unittest import mock except ImportError: import mock from nose.tools import assert_equal import numpy as np from matplotlib.t...
36.079167
84
0.623398
6242ed0618289f1fd2693ad42555f14b749a4fc2
984
py
Python
src/python/src/proteus/__init__.py
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
4
2021-11-03T21:32:55.000Z
2022-02-17T17:13:16.000Z
src/python/src/proteus/__init__.py
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
null
null
null
src/python/src/proteus/__init__.py
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
2
2022-03-05T20:01:33.000Z
2022-03-25T06:00:35.000Z
# Copyright 2021 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,...
30.75
74
0.757114
62430b6659cec1bd7f01a378492a886d7f7db7e4
1,201
py
Python
basic_pipeline.py
originalnate/data-pipelines
e1bfa1c7d2bf755a5bc69582f157259beb242032
[ "MIT" ]
31
2016-08-24T18:07:40.000Z
2021-03-24T23:34:39.000Z
basic_pipeline.py
originalnate/data-pipelines
e1bfa1c7d2bf755a5bc69582f157259beb242032
[ "MIT" ]
null
null
null
basic_pipeline.py
originalnate/data-pipelines
e1bfa1c7d2bf755a5bc69582f157259beb242032
[ "MIT" ]
22
2016-08-26T18:42:10.000Z
2019-06-21T03:30:56.000Z
import luigi import requests import pandas as pd import geocoder class DownloadTask(luigi.ExternalTask): """ Downloads Permit Data from the Portal """ def run(self): url = "https://data.cityofchicago.org/api/views/ydr8-5enu/rows.csv?accessType=DOWNLOAD" response = requests.get(url) ...
19.370968
95
0.631141
62432984c18653f5fc49bc87917f61c7b2417be8
3,006
py
Python
plugins/maps.py
rjrivero/Slackbot
80502295f6ec7dd5bbe0f9463443fbdbc8973827
[ "MIT" ]
null
null
null
plugins/maps.py
rjrivero/Slackbot
80502295f6ec7dd5bbe0f9463443fbdbc8973827
[ "MIT" ]
null
null
null
plugins/maps.py
rjrivero/Slackbot
80502295f6ec7dd5bbe0f9463443fbdbc8973827
[ "MIT" ]
null
null
null
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 from tornado.concurrent import Future from tornado.gen import coroutine from tornado.escape import url_escape, json_encode from tornado.httpclient import AsyncHTTPClient class MapCommand(object): """Analiza un comando y genera los datos adecuados para Slack"...
32.322581
106
0.605456
624348686cb35330acbac70ca025e37644f68395
1,707
py
Python
model/modules/fusion/net_utils.py
ahjeongseo/MASN---Attend-What-You-Need-Motion-Appearance-Synergistic-Networks-for-Video-Question-Answering
5ca3fc80cf37f7b6124070b1aae5bc599db8fa29
[ "MIT" ]
18
2021-06-22T01:44:59.000Z
2022-03-23T07:33:50.000Z
model/modules/fusion/net_utils.py
ahjeongseo/MASN---Attend-What-You-Need-Motion-Appearance-Synergistic-Networks-for-Video-Question-Answering
5ca3fc80cf37f7b6124070b1aae5bc599db8fa29
[ "MIT" ]
4
2021-06-26T02:39:02.000Z
2021-10-23T01:45:37.000Z
model/modules/fusion/net_utils.py
ahjeongseo/MASN---Attend-What-You-Need-Motion-Appearance-Synergistic-Networks-for-Video-Question-Answering
5ca3fc80cf37f7b6124070b1aae5bc599db8fa29
[ "MIT" ]
3
2021-07-26T11:28:19.000Z
2022-01-07T06:40:01.000Z
# -------------------------------------------------------- # This code is modified from cuiyuhao1996's repository. # Licensed under The MIT License [see LICENSE for details] # https://github.com/cuiyuhao1996/mcan-vqa # -------------------------------------------------------- import torch.nn as nn import torch ...
28.45
82
0.548916
62434e90dd0e3c2b415ec29de0b368d5c538a5d4
852
py
Python
BuildingDepot-v3.2.8/buildingdepot/DataService/app/service/forms.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
BuildingDepot-v3.2.8/buildingdepot/DataService/app/service/forms.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
BuildingDepot-v3.2.8/buildingdepot/DataService/app/service/forms.py
Entromorgan/GIoTTo
53ba7519c56d46af1e32a77aab5cf1c5cd8143fc
[ "MIT" ]
null
null
null
""" DataService.form ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Contains the definitions for all the forms that will be shown to the user in the frontend of the DataService. @copyright: (c) 2016 SynergyLabs @license: UCSD License. See License file for details. """ from flask_wtf import Form from wtforms import StringField, Select...
30.428571
92
0.733568
624366bfeb41db29287f82ac7205b4375f616949
427
py
Python
binarysearch.io/chunky_strings.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/chunky_strings.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/chunky_strings.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def solve(self, s, n): # Write your code here strings = [] c = 0 st = "" for i in range(len(s)): if c == n: strings.append(st) st = "" c = 0 st += s[...
20.333333
34
0.306792
62439b84d8e6c3a0401f6bb63ba0f2b2e8f41ff8
307
py
Python
micropython/tests/utime.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
38
2017-04-25T12:24:56.000Z
2021-01-12T17:01:43.000Z
micropython/tests/utime.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
4
2017-08-04T22:39:15.000Z
2017-08-07T17:36:21.000Z
micropython/tests/utime.py
kesking82/thingflow-python
4c00deafd1bf425ec90ef2159fc5f3ea2553ade8
[ "Apache-2.0" ]
14
2017-07-31T21:25:29.000Z
2022-02-06T08:09:07.000Z
# Copyright 2016 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """Emuation for micropython's utime module """ from time import time, sleep def ticks_ms(): return int(round(time()*1000)) def sleep_ms(ms): sleep(ms/1000) def ticks_diff(old, new): return new - old
19.1875
50
0.700326
6243c6fe1427056697b5eecc2093e67f74e2edb7
9,548
py
Python
darkhex/algorithms/policy_simplify.py
BedirT/dark-hex-tools
c4b803253e57d3c87edddde6e82740c643378dde
[ "MIT" ]
null
null
null
darkhex/algorithms/policy_simplify.py
BedirT/dark-hex-tools
c4b803253e57d3c87edddde6e82740c643378dde
[ "MIT" ]
10
2022-01-16T05:55:09.000Z
2022-03-09T20:21:21.000Z
darkhex/algorithms/policy_simplify.py
BedirT/darkhex
c4b803253e57d3c87edddde6e82740c643378dde
[ "MIT" ]
null
null
null
import math import typing from darkhex.utils.util import updated_board, convert_os_str, load_file from darkhex.utils.isomorphic import isomorphic_single import pickle from collections import Counter from darkhex.utils.cell_state import cellState import numpy as np class PolicySimplify: def __init__( self...
39.131148
93
0.57876
6243dc83ae5a376f9d683c0d7dfd44aca00f617f
60
py
Python
snowfall/nn/__init__.py
AminRezaei0x443/SnowFall
daf9c4310f6c8129a65149e563beec52f99b479f
[ "MIT" ]
1
2021-11-18T08:48:52.000Z
2021-11-18T08:48:52.000Z
snowfall/nn/__init__.py
AminRezaei0x443/SnowFall
daf9c4310f6c8129a65149e563beec52f99b479f
[ "MIT" ]
null
null
null
snowfall/nn/__init__.py
AminRezaei0x443/SnowFall
daf9c4310f6c8129a65149e563beec52f99b479f
[ "MIT" ]
2
2021-11-18T08:48:53.000Z
2022-03-30T13:03:17.000Z
from .network import Network from .module import SnowModule
20
30
0.833333
6243ea6a787ec840e45463388fb499f186cdc303
6,267
py
Python
thunderpush/tests/test_messenger.py
welingtonsampaio/thunderpush
9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1
[ "BSD-3-Clause" ]
null
null
null
thunderpush/tests/test_messenger.py
welingtonsampaio/thunderpush
9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1
[ "BSD-3-Clause" ]
null
null
null
thunderpush/tests/test_messenger.py
welingtonsampaio/thunderpush
9c3fd4bd0c9015cae6d0ad2b3f022680f7c8f4d1
[ "BSD-3-Clause" ]
null
null
null
from thunderpush.messenger import Messenger import unittest class DummyThunderSocketHandler(object): dummyid = 1 def __init__(self, *args, **kwargs): self.userid = "dummy_%d" % DummyThunderSocketHandler.dummyid self.connected = True DummyThunderSocketHandler.dummyid += 1 def sen...
35.607955
79
0.705122
62440a85323f168686b0603a96d33336aacc8969
447
py
Python
examples/steady_erosion_profile.py
cosmolab/cosmogenic
284c0b431d5143eb2247cfb0189f43402ddfdf1f
[ "BSD-2-Clause" ]
2
2015-07-21T19:32:10.000Z
2015-11-01T20:47:02.000Z
examples/steady_erosion_profile.py
zploskey/cosmogenic
284c0b431d5143eb2247cfb0189f43402ddfdf1f
[ "BSD-2-Clause" ]
1
2018-05-17T16:57:51.000Z
2018-05-17T16:57:52.000Z
examples/steady_erosion_profile.py
zploskey/cosmogenic
284c0b431d5143eb2247cfb0189f43402ddfdf1f
[ "BSD-2-Clause" ]
1
2015-08-12T18:26:23.000Z
2015-08-12T18:26:23.000Z
import numpy as np import matplotlib.pyplot as plt import cosmogenic.nuclide as nuclide import cosmogenic.sim as sim import cosmogenic.production as production nuc = nuclide.Be10Qtz() p = lambda z: production.P_tot(z, 0.0, 75.0, nuc) z = np.linspace(0, 1300, 20) eros = 2.0e-13 t_exp = 1e6 N = sim.steady_erosion(p, ...
19.434783
49
0.713647
624411d272c4b8b7b1d23003a0f68cfc832c36ef
216
py
Python
arraytool/documentation/arraytool/conformal.py
markuskreitzer/arraytool
e8d50a4a062dae4d9551daf75c808d2733b6563c
[ "CNRI-Python" ]
1
2021-07-26T14:14:58.000Z
2021-07-26T14:14:58.000Z
arraytool/documentation/arraytool/conformal.py
elec3647/arraytool
e8d50a4a062dae4d9551daf75c808d2733b6563c
[ "CNRI-Python" ]
null
null
null
arraytool/documentation/arraytool/conformal.py
elec3647/arraytool
e8d50a4a062dae4d9551daf75c808d2733b6563c
[ "CNRI-Python" ]
1
2022-03-27T01:32:47.000Z
2022-03-27T01:32:47.000Z
#! /usr/bin/env python # Author: Srinivasa Rao Zinka (srinivas . zinka [at] gmail . com) # Copyright (c) 2011 Srinivasa Rao Zinka # License: New BSD License. """ Module for CONFORMAL ARRAY ANTENNAS .... """
27
66
0.662037
624411e8f6246f3b2f8d234fd520569626f05496
1,329
py
Python
botx/clients/methods/v2/bots/token.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/v2/bots/token.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/v2/bots/token.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Method for retrieving token for bot.""" from http import HTTPStatus from typing import Dict from urllib.parse import urljoin from uuid import UUID from botx.clients.methods.base import BotXMethod, PrimitiveDataType from botx.clients.methods.errors import bot_not_found, unauthorized_bot class Token(BotXMethod[str]...
28.891304
71
0.679458
62442c4c8dde3756fe42f018c0bd187e94e20240
1,332
py
Python
deepctr/layers/__init__.py
limingdata/DeepCTR
9569a171f2d1aa400e15175c09fea49cdd7ab5b7
[ "MIT" ]
2
2019-04-10T09:39:33.000Z
2019-04-10T09:39:35.000Z
deepctr/layers/__init__.py
xy0210/DeepCTR
9569a171f2d1aa400e15175c09fea49cdd7ab5b7
[ "MIT" ]
null
null
null
deepctr/layers/__init__.py
xy0210/DeepCTR
9569a171f2d1aa400e15175c09fea49cdd7ab5b7
[ "MIT" ]
null
null
null
from .core import LocalActivationUnit,MLP,PredictionLayer from .interaction import AFMLayer,BiInteractionPooling,CIN,CrossNet,FM,InnerProductLayer,InteractingLayer,OutterProductLayer from .normalization import LayerNormalization from .activation import Dice from .sequence import SequencePoolingLayer,AttentionSequencePo...
51.230769
124
0.636637
624448594e669666968a265bdaa66a31fe1bebf7
973
py
Python
tests/integration/test_fanout.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
tests/integration/test_fanout.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
tests/integration/test_fanout.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
import uuid import diesel from diesel.util.queue import Fanout from diesel.util.event import Countdown class FanoutHarness(object): def setup(self): self.done = Countdown(10) self.fan = Fanout() self.subscriber_data = {} for x in xrange(10): diesel.fork(self.subscriber...
27.027778
62
0.622816
624455223cafb256a158059323dd9a6b1d0cd07f
8,050
py
Python
loaner/web_app/backend/api/shelf_api.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/shelf_api.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/shelf_api.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.777778
80
0.731056
62445bf4f5ef9f60ea7efb071ab7a4d877fa7125
3,233
py
Python
sdks/python/appcenter_sdk/models/AddUserAsRoleRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/AddUserAsRoleRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/AddUserAsRoleRequest.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 """ import pprint import re # noqa: F401 import six class AddUserAsRoleR...
27.168067
80
0.560779
62447531e039ee2d2bf794b3d81effc54f65f494
3,777
py
Python
collections/ansible_collections/amazon/aws/plugins/modules/aws_az_facts.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
kubernetes-the-hard-way/system/collections/ansible_collections/amazon/aws/plugins/modules/aws_az_facts.py
jkroepke/kubernetes-the-hard-way
70fd096a04addec0777744c9731a4e3fbdc40c8f
[ "Apache-2.0" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
kubernetes-the-hard-way/system/collections/ansible_collections/amazon/aws/plugins/modules/aws_az_facts.py
jkroepke/kubernetes-the-hard-way
70fd096a04addec0777744c9731a4e3fbdc40c8f
[ "Apache-2.0" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' module: aws_az_info short_description: Gather information abo...
33.723214
145
0.705057
6244b34c6bee59a056d8cdaec4299d9080f0d888
9,649
py
Python
resnet.py
RecyclEd-SDP14/RecycleNet
0930f93f35aec60e230ff59c9ab1551a54751229
[ "MIT" ]
null
null
null
resnet.py
RecyclEd-SDP14/RecycleNet
0930f93f35aec60e230ff59c9ab1551a54751229
[ "MIT" ]
1
2022-02-20T16:44:43.000Z
2022-02-20T16:44:43.000Z
resnet.py
RecyclEd-SDP14/RecycleNet
0930f93f35aec60e230ff59c9ab1551a54751229
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.utils.model_zoo as model_zoo from attention import AttentionModule from SE import SELayer __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 're...
36.003731
105
0.616644
6244bc9a2ee554a6a6c343f93c4f7ac4fbdcc5b3
1,563
py
Python
setup.py
malisal/bfdpie
7527a0e8bb8889dbbc85f758c5f2d48c4952dcdf
[ "MIT" ]
2
2016-04-18T17:20:15.000Z
2018-05-12T18:14:51.000Z
setup.py
malisal/bfdpie
7527a0e8bb8889dbbc85f758c5f2d48c4952dcdf
[ "MIT" ]
4
2018-07-27T18:06:41.000Z
2019-06-18T20:02:02.000Z
setup.py
malisal/bfdpie
7527a0e8bb8889dbbc85f758c5f2d48c4952dcdf
[ "MIT" ]
2
2018-03-07T08:48:59.000Z
2018-07-27T18:58:36.000Z
import os import distutils from setuptools import setup, Extension, Command from distutils.command import build as build_module from distutils.command.install import install BINUTILS_VERSION = "binutils-2.26" module = Extension( name = "bfdpie._bfdpie", sources = ["bfdpie.c"], # Include dir is our own binu...
23.328358
118
0.642354
6244c4b2190229653bfcb2577d185eb980448f1b
9,014
py
Python
visionfuncs/cbcalib.py
semeniuta/visionfuncs
d09c9ce4bfead258ebf106bffeae1e7e53922f3e
[ "BSD-3-Clause" ]
2
2019-09-16T13:46:24.000Z
2020-05-14T18:44:44.000Z
visionfuncs/cbcalib.py
semeniuta/visionfuncs
d09c9ce4bfead258ebf106bffeae1e7e53922f3e
[ "BSD-3-Clause" ]
null
null
null
visionfuncs/cbcalib.py
semeniuta/visionfuncs
d09c9ce4bfead258ebf106bffeae1e7e53922f3e
[ "BSD-3-Clause" ]
null
null
null
""" Vision systems calibration using a chessboard calibration object """ import cv2 import numpy as np from .geometry import rvec_to_rmat from .geometry import triangulate_points findcbc_flags = { 'default': cv2.CALIB_CB_ADAPTIVE_THRESH + cv2.CALIB_CB_NORMALIZE_IMAGE, 'at_or_fq': cv2.CALIB_CB_ADAPTIVE_THRESH ...
28.345912
107
0.690371
6244e520900b58914b847c4acb451beb252efd30
11,784
py
Python
fluid/image_classification/train.py
wojtuss/models
5d1dc2ff7d3355984c469f0906d24447b58a5ffe
[ "Apache-2.0" ]
null
null
null
fluid/image_classification/train.py
wojtuss/models
5d1dc2ff7d3355984c469f0906d24447b58a5ffe
[ "Apache-2.0" ]
null
null
null
fluid/image_classification/train.py
wojtuss/models
5d1dc2ff7d3355984c469f0906d24447b58a5ffe
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import time import sys import paddle.v2 as paddle import paddle.fluid as fluid from se_resnext import SE_ResNeXt import reader import argparse import functools from utility import add_arguments, print_arguments parser = argparse.ArgumentParser(description=__doc__) add_arg = functools.part...
38.25974
87
0.559657
624507247a12fb20a238fc57366ab879f9d658ef
455
py
Python
deepchem/__init__.py
0ut0fcontrol/deepchem
a680cc126c8b057aa4727b74a7bd175ad8457ef3
[ "MIT" ]
1
2018-07-03T07:35:17.000Z
2018-07-03T07:35:17.000Z
deepchem/__init__.py
0ut0fcontrol/deepchem
a680cc126c8b057aa4727b74a7bd175ad8457ef3
[ "MIT" ]
null
null
null
deepchem/__init__.py
0ut0fcontrol/deepchem
a680cc126c8b057aa4727b74a7bd175ad8457ef3
[ "MIT" ]
1
2021-12-10T22:37:54.000Z
2021-12-10T22:37:54.000Z
""" Imports all submodules """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __version__ = '1.3.1' import deepchem.data import deepchem.feat import deepchem.hyper import deepchem.metalearning import deepchem.metrics import deepchem.models import deepche...
19.782609
39
0.83956
624509148fa6776c050e0c0e81ab221b61db01ff
5,518
py
Python
tensorflow/contrib/tensor_forest/python/kernel_tests/sample_inputs_op_test.py
smarthi/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
2
2019-10-09T08:06:48.000Z
2021-01-07T03:16:09.000Z
tensorflow/contrib/tensor_forest/python/kernel_tests/sample_inputs_op_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
1
2017-02-06T08:12:22.000Z
2017-02-06T08:12:22.000Z
tensorflow/contrib/tensor_forest/python/kernel_tests/sample_inputs_op_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.859155
80
0.592606
62450ce1acb13a8679e0e001f22e09953640ede6
538
py
Python
examples/log-example.py
Defite/python-base
ef5eeb7098513a4016397f3f527562fe0ae50071
[ "MIT" ]
null
null
null
examples/log-example.py
Defite/python-base
ef5eeb7098513a4016397f3f527562fe0ae50071
[ "MIT" ]
null
null
null
examples/log-example.py
Defite/python-base
ef5eeb7098513a4016397f3f527562fe0ae50071
[ "MIT" ]
null
null
null
import sys import getopt import logging opts, args = getopt.getopt(sys.argv[1:], "l:", ["log="]) log_level = "INFO" for opt, arg in opts: if opt in ("-l", "--log"): log_level = getattr(logging, arg.upper()) logging.basicConfig(filename='./demo.log', level=log_level, format='%(asctime)s %(levelname)s:%(m...
24.454545
107
0.628253
624526c332b309e789d49b7b1dbdeec917c475e3
13,759
py
Python
src/rprblender/engine/image_filter.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-03-29T05:55:49.000Z
2021-03-29T05:55:49.000Z
src/rprblender/engine/image_filter.py
ralic/RadeonProRenderBlenderAddon
310c650d4230289ac5d5407cc24a13b4c7ce0a90
[ "Apache-2.0" ]
1
2021-04-03T09:39:28.000Z
2021-04-03T09:39:28.000Z
src/rprblender/engine/image_filter.py
isabella232/RadeonProRenderBlenderAddon
ff4ede164c1e1e909f182be709422bc8c8878b1c
[ "Apache-2.0" ]
null
null
null
#********************************************************************** # Copyright 2020 Advanced Micro Devices, 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.o...
43.131661
114
0.66313
62454390fa6b7ebb14ffe4427a0d44f6e09e47e7
2,929
py
Python
filterdesigner/tests/test_kaiserord.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:22:35.000Z
2021-10-17T08:50:17.000Z
filterdesigner/tests/test_kaiserord.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
filterdesigner/tests/test_kaiserord.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:23:24.000Z
2021-05-03T10:03:32.000Z
import unittest import filterdesigner.FIRDesign as FIRDesign import numpy as np class TestKaiserord(unittest.TestCase): def setUp(self): self.f1 = 0.2 self.f2 = 0.3 self.f3 = 0.4 self.f4 = 0.5 self.f5 = 0.6 self.f6 = 0.7 self.m1 = 1 sel...
48.816667
153
0.593035
62455306d93223683f7d61e5ab5305bcd8b79298
5,603
py
Python
experiments/murtaza/multiworld/reset_free/sawyer_door/offline/td3/offline_vae_bernoulli.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/murtaza/multiworld/reset_free/sawyer_door/offline/td3/offline_vae_bernoulli.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/murtaza/multiworld/reset_free/sawyer_door/offline/td3/offline_vae_bernoulli.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.torch.vae.dataset.generate_goal_dataset import generate_goal_dataset_using_policy from multiworld.envs.mujoco.cameras import sawyer_door_env_camera_v3 from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.grill.launcher import grill_her_td3_full_exp...
37.858108
143
0.569516
624588f9ee0f2c5e28e90d41989fdac2a780b131
13,549
py
Python
src/Point/scripts/rebuild_Point.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/Point/scripts/rebuild_Point.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/Point/scripts/rebuild_Point.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False Copy = False CleanAl...
38.058989
195
0.59473
624598324212395de7ee08a9bf254e53a54a5e47
13,997
py
Python
disnake/ui/select.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
290
2021-11-03T12:33:16.000Z
2022-03-31T19:30:19.000Z
disnake/ui/select.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
200
2021-11-03T10:41:41.000Z
2022-03-31T08:13:11.000Z
disnake/ui/select.py
shiftinv/disnake
2f93645d8becc9267acecbc45547457861611919
[ "MIT" ]
118
2021-11-03T18:27:09.000Z
2022-03-25T22:00:45.000Z
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development 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 limi...
37.525469
110
0.653854
6245a23ae196d35e8b649358317cd2b11de84825
5,513
py
Python
dialogflow/cloud-client/csv_to_dialogflow_accounts_with_entities.py
patelrajnath/python-docs-samples
ea32d48580f2cd2bc02fce68cde5651446f1bf46
[ "Apache-2.0" ]
null
null
null
dialogflow/cloud-client/csv_to_dialogflow_accounts_with_entities.py
patelrajnath/python-docs-samples
ea32d48580f2cd2bc02fce68cde5651446f1bf46
[ "Apache-2.0" ]
null
null
null
dialogflow/cloud-client/csv_to_dialogflow_accounts_with_entities.py
patelrajnath/python-docs-samples
ea32d48580f2cd2bc02fce68cde5651446f1bf46
[ "Apache-2.0" ]
null
null
null
import json import os import pickle import re import uuid intent_query_dict = dict() with open ("HuaweiAccount/train-accounts_with-labels", 'rb') as fp: TRAIN_DATA = pickle.load(fp) for example in TRAIN_DATA: text, intent, entities = example try: intent_query_dict[intent].append((text, entities)) ...
34.242236
103
0.521495
6245bdfcd515c74b5ae4bf15cac6779af9e33493
989
py
Python
WP3/Task3.1/notebooks/00_template_start_here.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.1/notebooks/00_template_start_here.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.1/notebooks/00_template_start_here.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
#!/usr/bin/env python # coding: utf-8 # # Notebook template # Copy this template when starting a new notebook. This template contains: # * path wrangling (to be able to import scripts, data, etc. from project root) # * matplotlib & pandas setup # * config loading # In[ ]: # standard path wrangling to be able to imp...
16.213115
79
0.718908
6245d01a6e2460bd59180aa9bfd90619f829eac3
235
py
Python
pni_customization/pni_customization/doctype/advance_contract_payment_request/test_advance_contract_payment_request.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/advance_contract_payment_request/test_advance_contract_payment_request.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/advance_contract_payment_request/test_advance_contract_payment_request.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2021, Jigar Tarpara and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestAdvanceContractPaymentRequest(unittest.TestCase): pass
21.363636
59
0.782979
6245e4e42ec282b4f19d3efb49a169ec1b4fa2db
4,273
py
Python
amplify/meta.py
paulfchristiano/alba
3359fb21e7e1e6f2346f0c6f15b9cb3625c040b0
[ "MIT" ]
29
2016-10-19T03:52:20.000Z
2021-08-11T03:00:36.000Z
amplify/meta.py
paulfchristiano/alba
3359fb21e7e1e6f2346f0c6f15b9cb3625c040b0
[ "MIT" ]
null
null
null
amplify/meta.py
paulfchristiano/alba
3359fb21e7e1e6f2346f0c6f15b9cb3625c040b0
[ "MIT" ]
3
2017-04-02T17:43:23.000Z
2021-06-16T12:05:19.000Z
from amplify.message import Message from agent import Agent, StatelessAgent class Meta(Agent): """ Meta transforms an agent that operates on messages into an agent that operates on text, by using messages to implement an algorithm operating on text. The total bandwidth of Meta() is generally unlimi...
35.608333
120
0.627428
6245e92b6ea8c63aada741148830be6eefcebfeb
4,928
py
Python
impacket/testcases/dot11/test_FrameManagementDisassociation.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameManagementDisassociation.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/testcases/dot11/test_FrameManagementDisassociation.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/env python # sorry, this is very ugly, but I'm in python 2.5 import sys sys.path.insert(0,"../..") from dot11 import Dot11, Dot11Types, Dot11ManagementFrame,Dot11ManagementDisassociation from ImpactDecoder import RadioTapDecoder from binascii import hexlify import unittest class TestDot11ManagementDisass...
41.066667
258
0.716518
6245ed9e5fcfbb61386f8b9e9888edc148d959d5
5,320
py
Python
homeassistant/components/media_source/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/media_source/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/media_source/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
"""The media_source integration.""" from datetime import timedelta from typing import Optional import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.components.http.auth import async_sign_path from homeassistant.components.media_player.const import ( ATTR_MEDIA_CONTENT_ID,...
33.88535
93
0.693609
6245f3031b2558d40ac2636d8ec1a72e5b92f3c3
9,433
py
Python
lace/serialization/bsf.py
bodylabs/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
2
2020-05-30T10:28:34.000Z
2021-02-17T13:47:23.000Z
lace/serialization/bsf.py
lace/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
11
2019-08-29T16:53:29.000Z
2021-07-01T06:24:37.000Z
lace/serialization/bsf.py
metabolize/lace
75cee6a118932cd027692d6cfe36b3726b3a4a5c
[ "BSD-2-Clause" ]
5
2017-05-09T16:18:16.000Z
2018-05-08T16:16:09.000Z
# pylint: disable=len-as-condition def load(f, existing_mesh=None): from baiji.serialization.util.openlib import ensure_file_open_and_call return ensure_file_open_and_call(f, _load, mode='rb', existing_mesh=existing_mesh) def _load(f, existing_mesh=None): from lace.mesh import Mesh parser = BSFParser(f...
41.372807
151
0.480653
624600a47861a42d73de1f9ad32d06141e3f6440
9,024
py
Python
mqtt_fuzz.py
PBearson/mqtt_fuzz
18f0ac86f71bae3a414e02cf4937b1da4b146470
[ "Apache-2.0" ]
null
null
null
mqtt_fuzz.py
PBearson/mqtt_fuzz
18f0ac86f71bae3a414e02cf4937b1da4b146470
[ "Apache-2.0" ]
null
null
null
mqtt_fuzz.py
PBearson/mqtt_fuzz
18f0ac86f71bae3a414e02cf4937b1da4b146470
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # pylint: disable=line-too-long,no-member # Copyright 2015 F-Secure 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/LICE...
44.673267
183
0.655807
624608fa2e848df6fd32a74bdfc3169ab3afe8e8
828
py
Python
pyrainer/pyrainer/commit.py
metamx/rainer
72c84dd44e8bdebfa39d93b001176d47ba7f19ed
[ "Apache-2.0" ]
9
2015-07-27T20:10:32.000Z
2020-01-21T17:29:29.000Z
pyrainer/pyrainer/commit.py
metamx/rainer
72c84dd44e8bdebfa39d93b001176d47ba7f19ed
[ "Apache-2.0" ]
5
2015-08-11T22:24:43.000Z
2021-07-19T22:57:08.000Z
pyrainer/pyrainer/commit.py
metamx/rainer
72c84dd44e8bdebfa39d93b001176d47ba7f19ed
[ "Apache-2.0" ]
1
2015-07-28T16:50:11.000Z
2015-07-28T16:50:11.000Z
from util import bytes class RainerCommit: def __init__(self, meta, value): self.meta = dict(meta) self.value = value if self.meta.get('empty', False) and value is not None: raise ValueError("A value was provided, so 'empty' should be false. But it's not.") elif self.meta.get('empty', False) !...
23
92
0.658213
624609c10652e384c0e93780a4682e42a1b6687f
2,555
py
Python
All_Digital_VTSensor/2nd_version/Verilog_65nm_RTL/Scripts/Script_TDC.py
scale-lab/PVTsensors
e0111a8b63bb7ceccbb5ea0107a89c9ed80d3bad
[ "Apache-2.0" ]
14
2019-01-18T02:16:54.000Z
2021-12-19T11:31:26.000Z
All_Digital_VTSensor/2nd_version/Verilog_65nm_RTL/Scripts/Script_TDC.py
scale-lab/PVTsensors
e0111a8b63bb7ceccbb5ea0107a89c9ed80d3bad
[ "Apache-2.0" ]
null
null
null
All_Digital_VTSensor/2nd_version/Verilog_65nm_RTL/Scripts/Script_TDC.py
scale-lab/PVTsensors
e0111a8b63bb7ceccbb5ea0107a89c9ed80d3bad
[ "Apache-2.0" ]
3
2019-01-18T15:34:58.000Z
2020-04-24T22:28:28.000Z
########################################################## ## Define variable ########################################################## num_of_stages_TDC = 48 ########################################################## ## write verilog file ########################################################## # Create a new fi...
54.361702
223
0.589041
62466dd421f1dd51f0c9d492fe6541a7c48ef647
36,981
py
Python
projectoxford/speech.py
zooba/projectoxford
a98fe7d883ff5c88337a7d165b18e5d21222ec7c
[ "MIT" ]
16
2016-02-21T22:26:34.000Z
2021-09-05T20:44:19.000Z
projectoxford/speech.py
zooba/projectoxford
a98fe7d883ff5c88337a7d165b18e5d21222ec7c
[ "MIT" ]
13
2016-01-28T22:20:14.000Z
2017-03-11T11:41:02.000Z
projectoxford/speech.py
zooba/projectoxford
a98fe7d883ff5c88337a7d165b18e5d21222ec7c
[ "MIT" ]
7
2016-05-14T07:43:10.000Z
2018-08-16T22:02:47.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation # All rights reserved. # # Distributed under the terms of the MIT License #------------------------------------------------------------------------- '''Project Oxford Speech Module This module provides acce...
55.94705
99
0.720045
62467772c7695ef73f13b6c39678f7bb392234bb
2,274
py
Python
v1/scripts/make_taxid_list.py
blobtoolkit/insdc-pipeline
be1d9b11b8d1616197aab8e38bc16c03efab933b
[ "MIT" ]
4
2019-10-10T21:24:31.000Z
2020-12-14T06:43:36.000Z
v1/scripts/make_taxid_list.py
blobtoolkit/pipeline
9b9c3b1f07a8b97ce52a063a5af56a6ca336d7d8
[ "MIT" ]
13
2021-05-20T13:31:56.000Z
2022-01-26T09:20:29.000Z
v1/scripts/make_taxid_list.py
blobtoolkit/pipeline
9b9c3b1f07a8b97ce52a063a5af56a6ca336d7d8
[ "MIT" ]
3
2019-10-09T14:39:56.000Z
2020-09-23T21:11:40.000Z
#!/usr/bin/env python3 import os import re from collections import defaultdict # set variables from snakemake params, wildcards, input and threads DBTITLE = snakemake.params.db ROOT = int(snakemake.wildcards.root) MASKS = set(snakemake.params.mask_ids + [32630, 111789, 6]) # mask synthetic constructs by default NODE...
29.921053
99
0.60774
624677b1cedbcc0a1f384412d46e539f6e13b22e
3,478
py
Python
mysql/datadog_checks/mysql/config.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
mysql/datadog_checks/mysql/config.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
mysql/datadog_checks/mysql/config.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from datadog_checks.base import ConfigurationError, is_affirmative from datadog_checks.base.log import get_check_logger from datadog_checks.base.utils.aws import rds_parse_tags_from_endpoint DEFAULT_MAX_CUSTOM_...
51.147059
115
0.682289
6246b5979b78fe9ac9d6a1561ce9962ccad79986
1,132
py
Python
plugs_payments/migrations/0001_initial.py
solocompt/plugs-payments
ef69a7e9707a325b588e2087aad21a487bcf6746
[ "MIT" ]
null
null
null
plugs_payments/migrations/0001_initial.py
solocompt/plugs-payments
ef69a7e9707a325b588e2087aad21a487bcf6746
[ "MIT" ]
null
null
null
plugs_payments/migrations/0001_initial.py
solocompt/plugs-payments
ef69a7e9707a325b588e2087aad21a487bcf6746
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-01-09 15:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MBPayme...
33.294118
114
0.573322
6246de94722602f3459b8ecf0ab558179753c2c0
693
py
Python
suspect/processing/_apodize.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
5
2017-09-26T16:05:30.000Z
2020-11-28T01:31:27.000Z
suspect/processing/_apodize.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
6
2016-08-31T22:09:33.000Z
2018-11-30T18:37:09.000Z
suspect/processing/_apodize.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
2
2016-06-09T18:10:18.000Z
2020-12-12T02:50:32.000Z
import suspect.basis import numpy def gaussian_window(t, params): """ Calculates a Gaussian window function in the time domain which will broaden peaks in the frequency domain by params["line_broadening"] Hertz. :param t: :param params: :return: """ window = suspect.basis.gaussian(t, ...
27.72
79
0.699856
62470f0254aad4895c4fa703d32d345a8e916ae4
2,794
py
Python
scripts/tofucustom.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
56
2017-07-09T10:29:45.000Z
2022-03-31T02:44:50.000Z
scripts/tofucustom.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
522
2017-07-02T21:06:07.000Z
2022-03-02T08:07:57.000Z
scripts/tofucustom.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
9
2017-07-02T20:38:53.000Z
2021-12-04T00:12:30.000Z
#!/usr/bin/env python # Built-in import sys import os from shutil import copyfile _HERE = os.path.abspath(os.path.dirname(__file__)) # import parser dict sys.path.insert(1, _HERE) from _dparser import _DPARSER _ = sys.path.pop(1) ################################################### ###############################...
25.87037
74
0.496063
6247179c84866c1face563b0b7d47e75763c1f11
37,365
py
Python
src/sage/schemes/generic/scheme.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/generic/scheme.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/generic/scheme.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
null
null
null
""" Schemes AUTHORS: - William Stein, David Kohel, Kiran Kedlaya (2008): added zeta_series - Volker Braun (2011-08-11): documenting, improving, refactoring. """ #***************************************************************************** # Copyright (C) 2011 Volker Braun <vbraun.name@gmail.com> # Cop...
30.502041
146
0.552442
6247251a07ecfd8b00ecda7a20f5858294c3bba7
13,610
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_03_01/aio/operations/_log_profiles_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_03_01/aio/operations/_log_profiles_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_03_01/aio/operations/_log_profiles_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 ...
43.06962
164
0.676047
62473e1496ebb67eb3b91c79ad6bc29c828c112e
7,153
py
Python
troveclient/tests/osc/v1/test_datastores.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
46
2015-01-14T12:26:24.000Z
2021-01-05T12:54:03.000Z
troveclient/tests/osc/v1/test_datastores.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
3
2015-05-22T19:58:11.000Z
2021-04-30T06:12:21.000Z
troveclient/tests/osc/v1/test_datastores.py
hrnciar/python-troveclient
e41d08d24325a61a213592934b508bf77ce67dac
[ "Apache-2.0" ]
34
2015-01-21T12:33:53.000Z
2021-10-13T00:29:35.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
36.309645
79
0.667692
62473e9022dc635acda73b55d54973f8b4560b2c
4,565
py
Python
demos/classical_mr_prostate_nonrigid/demo_register.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
379
2020-07-18T22:00:53.000Z
2022-03-31T05:17:29.000Z
demos/classical_mr_prostate_nonrigid/demo_register.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
646
2020-07-18T08:55:48.000Z
2022-03-29T02:24:54.000Z
demos/classical_mr_prostate_nonrigid/demo_register.py
Zhiyuan-w/DeepReg
3e372d1835fdc9468c026db3767dcf9e8d4a4b0e
[ "Apache-2.0" ]
62
2020-07-26T05:00:23.000Z
2022-02-22T21:58:19.000Z
""" A DeepReg Demo for classical nonrigid iterative pairwise registration algorithms """ import argparse import os import shutil import h5py import tensorflow as tf import deepreg.model.layer as layer import deepreg.util as util from deepreg.registry import REGISTRY # parser is used to simplify testing # please run ...
29.262821
86
0.691128
62474c793b175a954d69aeccd0323264532a4596
2,130
py
Python
msmarco-ranking/src/main/python/evaluate_passage_run.py
appotry/sample-apps
6b107ffc67fc917d66fabdeff893b5b7cb157c61
[ "Apache-2.0" ]
167
2017-09-27T08:16:26.000Z
2022-03-19T23:26:08.000Z
msmarco-ranking/src/main/python/evaluate_passage_run.py
appotry/sample-apps
6b107ffc67fc917d66fabdeff893b5b7cb157c61
[ "Apache-2.0" ]
197
2017-08-16T09:29:57.000Z
2022-03-29T07:03:28.000Z
msmarco-ranking/src/main/python/evaluate_passage_run.py
appotry/sample-apps
6b107ffc67fc917d66fabdeff893b5b7cb157c61
[ "Apache-2.0" ]
85
2017-08-21T18:28:56.000Z
2022-03-20T00:09:17.000Z
#!/usr/bin/env python3 # Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. import ir_datasets import json import numpy import requests import sys import argparse session = requests.Session() # Fetch data from vespa routine def get_result(query): request_body = { ...
30
111
0.656808
62475fdfa7a0078478a3665d74424398faf719d9
11,092
py
Python
dwave/cloud/coders.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
dwave/cloud/coders.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
dwave/cloud/coders.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 D-Wave Systems 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 wri...
33.309309
95
0.653083
624782a797946363833ce238022d907a08d48d3a
726
py
Python
template/{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/datastream/augmenter.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:39:24.000Z
2021-09-12T22:11:00.000Z
template/{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/datastream/augmenter.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:07:39.000Z
2020-10-30T10:26:24.000Z
template/{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/datastream/augmenter.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
null
null
null
from imgaug import augmenters as iaa def augment_geometric( d_scale=0.05, d_translate=0.02, d_rotate=3, d_shear_x=5, d_shear_y=1, ): return iaa.Sequential([ iaa.Sometimes(0.5, iaa.Affine( scale=(1 / (1 + d_scale), (1 + d_scale)), translate_percent=dict( ...
25.034483
70
0.568871
6247ea6a1b9329d6d5265c794bf474a7f9b3d766
11,955
py
Python
model/data_utils.py
Emrys-Hong/cross-lingual-NER
73405caa2293debea68eafda3ed410d89c83d15e
[ "Apache-2.0" ]
1
2019-03-03T02:30:09.000Z
2019-03-03T02:30:09.000Z
model/data_utils.py
Emrys-Hong/cross-lingual-NER
73405caa2293debea68eafda3ed410d89c83d15e
[ "Apache-2.0" ]
null
null
null
model/data_utils.py
Emrys-Hong/cross-lingual-NER
73405caa2293debea68eafda3ed410d89c83d15e
[ "Apache-2.0" ]
null
null
null
import numpy as np import os # shared global variables to be imported from model also UNK = "$UNK$" NUM = "$NUM$" # below is modified by Emrys NONE = "O" # special error message class MyIOError(Exception): def __init__(self, filename): # custom error message message = """ ERROR: Unable to locate...
27.673611
82
0.559598
6247f270b71ca17840f21e81e9c1970ddfaf411a
7,917
py
Python
xmap/xmap.py
jhamman/xmap
e530bca2753efaa31e276075c69dc83883861539
[ "Apache-2.0" ]
11
2017-01-11T08:53:40.000Z
2021-01-28T01:51:33.000Z
xmap/xmap.py
NicWayand/xmap
e530bca2753efaa31e276075c69dc83883861539
[ "Apache-2.0" ]
2
2017-09-14T18:53:09.000Z
2017-11-07T20:45:45.000Z
xmap/xmap.py
NicWayand/xmap
e530bca2753efaa31e276075c69dc83883861539
[ "Apache-2.0" ]
3
2017-08-23T16:05:09.000Z
2018-08-07T15:53:02.000Z
import numpy as np import xarray as xr from scipy.spatial import cKDTree from .utils import lon_lat_to_cartesian DEFAULT_QUERRY_ARGS = dict(k=1, eps=0, p=2, distance_upper_bound=np.inf) @xr.register_dataarray_accessor('xmap') class XMap(object): def __init__(self, xarray_obj): self._obj = xarray_obj ...
39.193069
79
0.539598
6247fd288bfedf89dbfc02e0aeb4e20689e7b437
19,236
py
Python
stable_baselines/deepq/dqn.py
tperol/stable-baselines
a139bb77866f094388b4f7ce096a6ad3695c9b7a
[ "MIT" ]
1
2022-03-23T11:39:35.000Z
2022-03-23T11:39:35.000Z
stable_baselines/deepq/dqn.py
tperol/stable-baselines
a139bb77866f094388b4f7ce096a6ad3695c9b7a
[ "MIT" ]
null
null
null
stable_baselines/deepq/dqn.py
tperol/stable-baselines
a139bb77866f094388b4f7ce096a6ad3695c9b7a
[ "MIT" ]
1
2019-02-20T10:29:47.000Z
2019-02-20T10:29:47.000Z
from functools import partial import tensorflow as tf import numpy as np import gym from stable_baselines import logger, deepq from stable_baselines.common import tf_util, OffPolicyRLModel, SetVerbosity, TensorboardWriter from stable_baselines.common.vec_env import VecEnv from stable_baselines.common.schedules import...
53.138122
120
0.616084
624802c03fceff570282ce176abaf3da0453309b
7,010
py
Python
src/graph_transpiler/webdnn/backend/webgl/kernels/elementwise.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgl/kernels/elementwise.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgl/kernels/elementwise.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import Type, Dict, Callable, Union, List from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.code_generator.templates.elementwise import RegisteredItem from webdnn.backend.webgl.generator import WebGLDescriptorGenerator from webdnn.backend.webgl.k...
34.875622
133
0.677889
62480b07ca3dcbc66f9c413e598dbaa9b05e4a38
10,092
py
Python
Evaluation/Reddit/RedditGraphGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
Evaluation/Reddit/RedditGraphGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
Evaluation/Reddit/RedditGraphGenerator.py
lapidshay/GenericAnomalousCommunitiesDetection
eae7b58bb427828abb9baa64d097114089b80af5
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'Shay Lapid' __email__ = 'lapidshay@gmail.com' ################################## # Imports ################################## import networkx as nx from numpy.random import choice import numpy as np from copy import deepcopy import json import pandas as pd import os ################################## ...
35.914591
124
0.733353
6248b481d5c0f6bca054f3f51e04259b9c25d655
7,407
py
Python
cc_plugin_glider/tests/test_glidercheck.py
benjwadams/cc-plugin-glider
54ea16f2212dd156cce8a356135d607537602fd0
[ "Apache-2.0" ]
null
null
null
cc_plugin_glider/tests/test_glidercheck.py
benjwadams/cc-plugin-glider
54ea16f2212dd156cce8a356135d607537602fd0
[ "Apache-2.0" ]
1
2019-01-16T16:24:07.000Z
2019-01-22T20:17:25.000Z
cc_plugin_glider/tests/test_glidercheck.py
benjwadams/cc-plugin-glider
54ea16f2212dd156cce8a356135d607537602fd0
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) import unittest from cc_plugin_glider.tests.resources import STATIC_FILES from netCDF4 import Dataset from ..glider_dac import GliderCheck try: basestring except NameError: basestring = str class TestGliderCheck(unittest.TestCase): # @s...
36.487685
105
0.642365
6248d5cd8937244bb24497a084a4115b8277fa7a
801
py
Python
applications/Rekall/modules/api/config.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
21
2018-02-16T17:43:59.000Z
2021-12-29T12:08:28.000Z
applications/Rekall/modules/api/config.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
12
2017-11-01T14:54:29.000Z
2018-02-01T22:02:12.000Z
applications/Rekall/modules/api/config.py
scudette/rekall-agent-server
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
[ "BSD-3-Clause" ]
8
2018-10-08T03:48:00.000Z
2022-03-31T12:13:01.000Z
"""Determine the server configuration.""" import os import yaml from rekall_lib import serializer class ServerConfig(serializer.SerializedObject): schema = [ dict(name="demo", type="bool", doc="If set, this installation is a demo installation.") ] _CONFIG = None def GetConfig(curren...
23.558824
69
0.615481
6248e4e6c7cb500061f1b8d77068f3bd6c065789
726
py
Python
data/tracking/methods/SiamFC/common/image_decoding.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
data/tracking/methods/SiamFC/common/image_decoding.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
data/tracking/methods/SiamFC/common/image_decoding.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
import torchvision.io.image class SiamFCImageDecodingProcessor: def __init__(self, post_processor=None): self.post_processor = post_processor def __call__(self, z_image_path, z_bbox, x_image_path, x_bbox, is_positive): z_image = torchvision.io.image.read_image(z_image_path, torchvision.io.ima...
38.210526
107
0.69146
6248ebbd07f2877bba4b8959091e87e741891f7c
2,418
py
Python
fastcentrality.py
davisv7/lndpytools
551c4478ef2c70e914556304ad1eb98782fc9be3
[ "MIT" ]
54
2021-07-02T21:50:15.000Z
2022-03-30T17:40:43.000Z
fastcentrality.py
davisv7/lndpytools
551c4478ef2c70e914556304ad1eb98782fc9be3
[ "MIT" ]
12
2021-07-07T18:45:56.000Z
2021-10-20T03:46:17.000Z
fastcentrality.py
davisv7/lndpytools
551c4478ef2c70e914556304ad1eb98782fc9be3
[ "MIT" ]
13
2021-07-02T21:54:04.000Z
2022-02-08T23:24:19.000Z
#!/usr/bin/env python3 """ Fucntions for using igraph tools on networkx graphs """ import networkx as nx import igraph def nx2ig(nxgraph): """ Convert networkx graph to igraph For centrality we only care about keys and channels igraph uses integer indexing, so a map will also be created. """ ...
24.927835
81
0.595947
6248ee8fe9b76b792d305fdc85cc4ef4f124f0d5
166,913
py
Python
languages/python/atom/element.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
null
null
null
languages/python/atom/element.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
3
2021-09-30T18:02:15.000Z
2022-02-26T12:22:50.000Z
languages/python/atom/element.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import copy import logging import logging.handlers import multiprocessing import os import threading import time import uuid from collections import defaultdict from datetime import datetime from multiprocessing import Process from os import uname from queue import Empty as QueueEmpt...
36.732614
119
0.565942
62490c45fa2c7ce83eedda83b7b72db954fd939e
1,550
py
Python
app/auth/forms.py
r4gus/Blogger
439256b9d7703182185aeadbd3010f3153db5304
[ "MIT" ]
null
null
null
app/auth/forms.py
r4gus/Blogger
439256b9d7703182185aeadbd3010f3153db5304
[ "MIT" ]
null
null
null
app/auth/forms.py
r4gus/Blogger
439256b9d7703182185aeadbd3010f3153db5304
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, PasswordField, BooleanField from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo, ValidationError from ..models import User class LoginForm(FlaskForm): email = StringField('Email', validators=[DataRequired(), Lengt...
51.666667
138
0.709032
62491038cc7cd578118db8acaa7617400a1d356d
93
py
Python
projects/wizard_of_wikipedia_ko/__init__.py
kimsan0622/anonymous_kowow
25f55add8e657b2186dfdedca3e5035b567b235e
[ "MIT" ]
2
2021-09-06T16:58:53.000Z
2022-01-14T04:17:48.000Z
projects/wizard_of_wikipedia_ko/__init__.py
kimsan0622/anonymous_kowow
25f55add8e657b2186dfdedca3e5035b567b235e
[ "MIT" ]
null
null
null
projects/wizard_of_wikipedia_ko/__init__.py
kimsan0622/anonymous_kowow
25f55add8e657b2186dfdedca3e5035b567b235e
[ "MIT" ]
1
2022-01-14T09:01:41.000Z
2022-01-14T09:01:41.000Z
import sys if sys.version_info < (3, 0): raise RuntimeError('ParlAI requires Python 3.')
23.25
51
0.709677
62491ba7efe0cc6cf739d797c9e6915d6f3be4b1
693
py
Python
python/swagger_client/api/__init__.py
alextselegidis/easyappointments-sdk
8ba969dc1221ea614b70d4d52313f20fc85df1e1
[ "CC-BY-3.0" ]
null
null
null
python/swagger_client/api/__init__.py
alextselegidis/easyappointments-sdk
8ba969dc1221ea614b70d4d52313f20fc85df1e1
[ "CC-BY-3.0" ]
null
null
null
python/swagger_client/api/__init__.py
alextselegidis/easyappointments-sdk
8ba969dc1221ea614b70d4d52313f20fc85df1e1
[ "CC-BY-3.0" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from swagger_client.api.admins_api import AdminsApi from swagger_client.api.appointments_api import AppointmentsApi from swagger_client.api.availabilities_api import AvailabilitiesApi from swagger_client.api.categories_api import Cat...
43.3125
71
0.887446
62493936426adf1b861d145f41d06eda5e1c7b84
2,439
py
Python
drop_cap.py
barudaret/kassia
990728a3fe413053ce521d0c611cc6196c544c1e
[ "MIT" ]
1
2020-04-24T07:40:05.000Z
2020-04-24T07:40:05.000Z
drop_cap.py
barudaret/kassia
990728a3fe413053ce521d0c611cc6196c544c1e
[ "MIT" ]
null
null
null
drop_cap.py
barudaret/kassia
990728a3fe413053ce521d0c611cc6196c544c1e
[ "MIT" ]
null
null
null
from reportlab.lib.geomutils import normalizeTRBL from reportlab.lib.styles import ParagraphStyle from reportlab.pdfbase import pdfmetrics from reportlab.platypus.flowables import Flowable class Dropcap(Flowable): def __init__(self, text: str = None, x_padding: int = 0, style: ParagraphStyle = ParagraphStyle('Dro...
34.842857
112
0.580976
6249516f7bee25df2e5554e8241ec0b8687c6579
10,099
py
Python
nvflare/private/fed/client/fed_client_base.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/private/fed/client/fed_client_base.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/private/fed/client/fed_client_base.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
35.812057
119
0.627191
624994b4fbef1cfd996626c731c4cc5b974d7d04
2,918
py
Python
leetcode_python/Dynamic_Programming/combination-sum-iv.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Dynamic_Programming/combination-sum-iv.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Dynamic_Programming/combination-sum-iv.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# VO # IDEA : DP # dp[x+y] = dp[x+y] + dp[x] (for all x in range(target + 1), for all y in nums) # -> dp[x] : # of ways can make sum = x from sub-nums class Solution(object): def combinationSum4(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int "...
26.288288
79
0.45682
6249cb508ec8866052482eea328befa1ba8aef34
2,306
py
Python
agsadmin/sharing_admin/content/users/UserItem.py
DavidWhittingham/agsadmin
210244529f9026695376b13699aa6abf6ecab6d8
[ "BSD-3-Clause" ]
2
2015-12-07T05:53:29.000Z
2020-09-13T18:12:15.000Z
agsadmin/sharing_admin/content/users/UserItem.py
DavidWhittingham/agsadmin
210244529f9026695376b13699aa6abf6ecab6d8
[ "BSD-3-Clause" ]
4
2015-03-09T05:59:14.000Z
2018-01-09T00:12:56.000Z
agsadmin/sharing_admin/content/users/UserItem.py
DavidWhittingham/agsadmin
210244529f9026695376b13699aa6abf6ecab6d8
[ "BSD-3-Clause" ]
5
2015-03-09T01:05:24.000Z
2019-09-09T23:01:21.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str, super, zip) from ...._utils import send_session_request from .._ItemBase import ItemBase cla...
37.803279
117
0.675195
6249d24575d0bb5db975f3c3964407f867075751
3,137
py
Python
tests/lowlevel/test_ctle.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
15
2019-05-14T10:12:23.000Z
2022-03-29T15:29:52.000Z
tests/lowlevel/test_ctle.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
19
2020-01-22T21:44:33.000Z
2021-06-05T02:10:41.000Z
tests/lowlevel/test_ctle.py
sgherbst/msdsl
e38d5ecdb88b3574bda62f22a4f91ce3e4173d12
[ "MIT" ]
5
2019-10-21T09:53:17.000Z
2021-08-10T17:32:20.000Z
import pytest import numpy as np from scipy.interpolate import interp1d from scipy.signal import lfilter from scipy.signal import cont2discrete from msdsl.interp.interp import calc_interp_w from msdsl.interp.lds import SplineLDS from msdsl.interp.ctle import calc_ctle_abcd, calc_ctle_num_den def make_cubic_func(*args...
30.754902
92
0.615875
6249d29d4c9cd6bfa94a6c1cdcf41fefe14966b4
33,509
py
Python
reo/migrations/0137_auto_20211112_0327.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
reo/migrations/0137_auto_20211112_0327.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
reo/migrations/0137_auto_20211112_0327.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.12 on 2021-11-12 03:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reo', '0136_auto_20211110_0427'), ] operations = [ migrations.RemoveField( model_name='boilermodel', name='year_one...
37.149667
80
0.596049
6249f14abc1b569ab42a31b815e9abb3863d30da
3,579
py
Python
st2common/st2common/services/access.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/services/access.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/services/access.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...
35.435644
98
0.678681
6249f9569b1ed4f052e47e7b768ed51b2f528c33
1,901
py
Python
oscar/lib/python2.7/site-packages/dns/rdtypes/ANY/AFSDB.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdtypes/ANY/AFSDB.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/rdtypes/ANY/AFSDB.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PRO...
35.203704
73
0.710153
624a17862cdc5f1936badfdf44c394a2da27a541
1,247
py
Python
trac/upgrades/db34.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db34.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db34.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2014-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...
36.676471
67
0.611868
624a1f702a83e5e3b56eab637b364ec3be39a99b
591
py
Python
tests/test_sychronous_api.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
1
2019-05-01T15:26:54.000Z
2019-05-01T15:26:54.000Z
tests/test_sychronous_api.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
null
null
null
tests/test_sychronous_api.py
mikeboers/aque
4215fd01ab2a0fd88aeac7f2d69b4c888caa7aa1
[ "BSD-3-Clause" ]
null
null
null
"""Some very basic tests of the synchonous API.""" from . import * def ex_add(a, b): return a + b def ex_square(x): return x * x class TestSync(TestCase): def test_single_generic_task(self): task = {'func': str, 'args': (123, )} res = execute(task) self.assertEqual(res, '123') ...
24.625
82
0.583756
624a3d65e2b8d65de9df3841148b9202355202de
4,474
py
Python
ssl_image_classification/libml/data_augmentations.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
4
2021-04-16T18:56:46.000Z
2021-11-18T07:14:04.000Z
ssl_image_classification/libml/data_augmentations.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
2
2022-02-05T16:55:14.000Z
2022-03-06T11:04:23.000Z
ssl_image_classification/libml/data_augmentations.py
JanMarcelKezmann/Semi-Supervised-Learning-Image-Classification
b32599d1a5f28beefb4f9a744087e1dc47bd9906
[ "MIT" ]
2
2022-02-08T12:43:49.000Z
2022-03-06T10:47:56.000Z
import numpy as np import tensorflow as tf from multiprocessing import cpu_count @tf.function def weak_augment(x, height, width, pad=4, seed=[1, 2]): """ Function that applies weak augmentation on batch of given images. Args: x: tf.Tensor, batch of images of shape [batch, height, width, ...
34.953125
148
0.640143
624a4b02ccd99a01c7354430d740deac95de0b01
2,636
py
Python
oscar/lib/python2.7/site-packages/IPython/core/magics/extension.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/magics/extension.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/core/magics/extension.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Implementation of magic functions for the extension machinery. """ from __future__ import print_function #----------------------------------------------------------------------------- # Copyright (c) 2012 The IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The fu...
38.764706
89
0.528073
624a695dd3f5ca5594656189f20bb5ecff058c26
1,611
py
Python
linux/poolboy/usefules/startvirtue.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/poolboy/usefules/startvirtue.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/poolboy/usefules/startvirtue.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import urllib.request, urllib.parse import pprint import json import sys import time from pathlib import Path #for ignoring invalid certs #https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error import ssl gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1) # Only for ...
23.691176
164
0.684047
624aa2175b55c2bfda07724b250b22a0d55d2a09
834
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/__init__.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/managedapplications/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/__init__.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.894737
114
0.646283
624abeed75e2b8d34c61043c3db6236cda23ba64
12,273
py
Python
trax/rl/simple_trainer.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/rl/simple_trainer.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/rl/simple_trainer.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax 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 applicable law or a...
35.885965
80
0.702518
624ace3092906e2ec6d088cb5becc3ba64780602
6,996
py
Python
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
42.658537
235
0.688822
624ae299d1319b2497ad22a3e7259bde8815e026
2,236
py
Python
gaffer/pidfile.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
gaffer/pidfile.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
null
null
null
gaffer/pidfile.py
mikiec84/gaffer
8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d
[ "MIT", "Unlicense" ]
1
2018-10-28T00:59:17.000Z
2018-10-28T00:59:17.000Z
# -*- coding: utf-8 - # # This file is part of gaffer. See the NOTICE for more information. import errno import os import tempfile class Pidfile(object): """ Manage a PID file. If a specific name is provided it and '"%s.oldpid" % name' will be used. Otherwise we create a temp file using os.mkstemp. ...
26.305882
74
0.478533
624ae872202ddf1989d67d4e77874ffb49193a9b
321
py
Python
croupier_plugin/tests/unit/monitorint_tests.py
ari-apc-lab/croupier
cfffa81df64898abb837da23921f7fa614033e85
[ "Apache-2.0" ]
5
2019-03-21T15:32:40.000Z
2022-02-16T09:16:06.000Z
croupier_plugin/tests/unit/monitorint_tests.py
ari-apc-lab/croupier
cfffa81df64898abb837da23921f7fa614033e85
[ "Apache-2.0" ]
25
2021-05-13T09:24:31.000Z
2022-03-03T16:20:38.000Z
croupier_plugin/tests/unit/monitorint_tests.py
ari-apc-lab/croupier
cfffa81df64898abb837da23921f7fa614033e85
[ "Apache-2.0" ]
3
2019-07-08T13:55:40.000Z
2021-05-20T13:13:22.000Z
from croupier_plugin.monitoring.monitoring import (PrometheusPublisher) monitoring_client = PrometheusPublisher() monitoring_client.delete_metrics('my_job_id') data = 'hpc_job_cput{job_name="job_name", user_id="user_id", workflow_id="workflow_id", queue="queue"}25' #monitoring_client.publish_metric("my_job_id", data...
40.125
105
0.82243
624b03858ea1be6f523f6832c5ba75d601c69f6a
40,397
py
Python
tests/plugins/test_accounts.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
tests/plugins/test_accounts.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
tests/plugins/test_accounts.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
import unittest import uuid from unittest import mock import bcrypt from pyramid.exceptions import ConfigurationError from pyramid_mailer import get_mailer from kinto.core import utils from kinto.core.events import ACTIONS, ResourceChanged from kinto.core.testing import DummyRequest, get_user_headers from kinto.plugi...
44.101528
126
0.618412
624b08186b3a4492f75300ddc8097c84ef81f57a
140
py
Python
tests/fib.py
Jongy/pycodetracer
8578be994bb2fbd83be8b2eb1dfc4dbf77f9f928
[ "MIT" ]
null
null
null
tests/fib.py
Jongy/pycodetracer
8578be994bb2fbd83be8b2eb1dfc4dbf77f9f928
[ "MIT" ]
null
null
null
tests/fib.py
Jongy/pycodetracer
8578be994bb2fbd83be8b2eb1dfc4dbf77f9f928
[ "MIT" ]
null
null
null
# naive & simple recursive fibonacci implementation def fib(n): if n < 2: return 1 return fib(n - 1) + fib(n - 2) fib(8)
14
51
0.578571
624b43115fbc5c09cf3be32df5f6b25c6703a23e
7,672
py
Python
singleshotpose/multi_obj_pose_estimation/valid_multi.py
neighthan/singleshotpose
8bba18f52a3e24c50886932180b7866c43999abf
[ "MIT" ]
null
null
null
singleshotpose/multi_obj_pose_estimation/valid_multi.py
neighthan/singleshotpose
8bba18f52a3e24c50886932180b7866c43999abf
[ "MIT" ]
null
null
null
singleshotpose/multi_obj_pose_estimation/valid_multi.py
neighthan/singleshotpose
8bba18f52a3e24c50886932180b7866c43999abf
[ "MIT" ]
null
null
null
import torch import matplotlib.pyplot as plt import scipy.misc import numpy as np import sys import time import argparse from torch.autograd import Variable from torchvision import datasets, transforms from . import dataset_multi from .darknet_multi import Darknet from . import utils_multi as utils from ..cfg import p...
37.242718
132
0.566736
624b5b159c6ebfca69de64ca24dbe1e7e4f30a11
11,251
py
Python
cogs/music.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
null
null
null
cogs/music.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
null
null
null
cogs/music.py
ImPurpl3/egg
875f8105140544897e7b81af660e3da864b4cd54
[ "MIT" ]
1
2021-12-17T01:23:31.000Z
2021-12-17T01:23:31.000Z
""" MIT License Copyright (c) 2020 ValkyriaKing711 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...
33.786787
90
0.57026
624b5d8d270da2a970323a0a054dfe92ca316054
6,051
py
Python
dash_echarts/examples/gallery/line_race.py
Covarians/dash-echarts
0d6cfc010ea7bb91a6e0d94764dc42241dbad136
[ "Apache-2.0" ]
28
2021-04-15T16:02:57.000Z
2022-03-30T07:43:50.000Z
dash_echarts/examples/gallery/line_race.py
Covarians/dash-echarts
0d6cfc010ea7bb91a6e0d94764dc42241dbad136
[ "Apache-2.0" ]
8
2021-06-23T19:49:18.000Z
2022-03-02T16:04:42.000Z
dash_echarts/examples/gallery/line_race.py
Covarians/dash-echarts
0d6cfc010ea7bb91a6e0d94764dc42241dbad136
[ "Apache-2.0" ]
8
2021-09-16T07:38:41.000Z
2022-03-09T04:59:11.000Z
import json from os import path import dash_echarts import dash_html_components as html import dash_core_components as dcc import dash_bootstrap_components as dbc basepath = path.dirname(__file__) filepath = path.abspath(path.join(basepath+'/../static', 'life-expectancy-table.json')) with open(filepath) as json_file: ...
27.38009
90
0.424558
624b8f599ec3b30d353f2362265261851c8a59e1
1,420
py
Python
alipay/aop/api/domain/DeviceProductInfo.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/DeviceProductInfo.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/DeviceProductInfo.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 DeviceProductInfo(object): def __init__(self): self._product_id = None self._product_name = None @property def product_id(self): return self._product_id @pro...
25.357143
75
0.598592