hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acfd2f045de63c5a11c77cbd50e261fbd949e363
4,014
py
Python
tests/test_01_util.py
sklemer1/oidcendpoint
bc2cd9222bd05aec7b7ba5c7c7f593c2143357f3
[ "Apache-2.0" ]
null
null
null
tests/test_01_util.py
sklemer1/oidcendpoint
bc2cd9222bd05aec7b7ba5c7c7f593c2143357f3
[ "Apache-2.0" ]
null
null
null
tests/test_01_util.py
sklemer1/oidcendpoint
bc2cd9222bd05aec7b7ba5c7c7f593c2143357f3
[ "Apache-2.0" ]
null
null
null
import pytest from cryptojwt.exception import UnknownAlgorithm from oidcmsg.oidc import RegistrationResponse from oidcendpoint.oidc.authorization import Authorization from oidcendpoint.oidc.provider_config import ProviderConfiguration from oidcendpoint.oidc.registration import Registration from oidcendpoint.oidc.tok...
34.904348
76
0.599651
acfd2ffca5a54db81604890618ebe567981e87b5
3,107
py
Python
kunquat/tracker/ui/errordialog.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
13
2016-09-01T21:52:49.000Z
2022-03-24T06:07:20.000Z
kunquat/tracker/ui/errordialog.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
290
2015-03-14T10:59:25.000Z
2022-03-20T08:32:17.000Z
kunquat/tracker/ui/errordialog.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
7
2015-03-19T13:28:11.000Z
2019-09-03T16:21:16.000Z
# -*- coding: utf-8 -*- # # Author: Tomi Jylhä-Ollila, Finland 2014-2018 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related or neighboring rights to Kunquat. # import...
27.254386
99
0.667525
acfd31c60a9e1fb9ffffb828179a7cd86e87c7ba
516
py
Python
Immutability test.py
KhalidFilali/Bytecoin
d3b6d4b75658d394a3741a9cc509054021012eb8
[ "MIT" ]
null
null
null
Immutability test.py
KhalidFilali/Bytecoin
d3b6d4b75658d394a3741a9cc509054021012eb8
[ "MIT" ]
null
null
null
Immutability test.py
KhalidFilali/Bytecoin
d3b6d4b75658d394a3741a9cc509054021012eb8
[ "MIT" ]
null
null
null
#blockchain hack from blockchain import Blockchain new_transactions = [{'amount': '30', 'sender':'alice', 'receiver':'bob'}, {'amount': '55', 'sender':'bob', 'receiver':'alice'}] #new blockchain my_blockchain = Blockchain() #adding block my_blockchain.add_block(new_transactions) #display...
24.571429
74
0.713178
acfd31e075433d3dd3938d3a04ccbdbb0e90be41
2,495
py
Python
em/views_transaction.py
thejeshpr/EM
a580905c831c6073748e75c176dfe1a2c112e7c2
[ "MIT" ]
1
2021-11-04T18:05:26.000Z
2021-11-04T18:05:26.000Z
em/views_transaction.py
thejeshpr/em
a580905c831c6073748e75c176dfe1a2c112e7c2
[ "MIT" ]
null
null
null
em/views_transaction.py
thejeshpr/em
a580905c831c6073748e75c176dfe1a2c112e7c2
[ "MIT" ]
null
null
null
# import datetime from calendar import monthrange from datetime import date, timedelta, datetime from dateutil import relativedelta from django.db.models import Sum, Count from django.shortcuts import get_object_or_404, render from django.views import generic from django.urls import reverse_lazy from django.utils imp...
37.80303
115
0.68497
acfd3306f8775ff95270dde819730e0918614ab6
1,670
py
Python
assets/code_box/pg_level2_kakao.py
happyOBO/happyOBO.github.io
96e60a67b9b84c26f01312f8ca5ade35803c521f
[ "MIT" ]
2
2020-10-24T03:25:30.000Z
2021-08-01T05:18:18.000Z
assets/code_box/pg_level2_kakao.py
happyOBO/happyOBO.github.io
96e60a67b9b84c26f01312f8ca5ade35803c521f
[ "MIT" ]
2
2020-12-05T14:31:19.000Z
2020-12-06T05:09:43.000Z
assets/code_box/pg_level2_kakao.py
happyOBO/happyOBO.github.io
96e60a67b9b84c26f01312f8ca5ade35803c521f
[ "MIT" ]
4
2020-08-26T10:02:11.000Z
2020-10-22T05:55:18.000Z
def check(i,j,board): pre = board[i][j] for x in range(2): for y in range(2): if(pre != board[i+x][j+y] or board[i+x][j+y] == "X"): return False return True def solution(m, n, board): is_excute = True board_list = [] answer = 0 for i in range(m): ...
23.194444
65
0.404192
acfd341f1ca7db6490e5e306ac186833637c6fb0
9,135
py
Python
qtutils/measurements/param_viewer/param_viewer_GUI_main.py
albe-jj/qtutils
c515baa6a4ef61de70b883d8bc9feda5c4d259b3
[ "BSD-2-Clause" ]
null
null
null
qtutils/measurements/param_viewer/param_viewer_GUI_main.py
albe-jj/qtutils
c515baa6a4ef61de70b883d8bc9feda5c4d259b3
[ "BSD-2-Clause" ]
null
null
null
qtutils/measurements/param_viewer/param_viewer_GUI_main.py
albe-jj/qtutils
c515baa6a4ef61de70b883d8bc9feda5c4d259b3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from typing import Optional from core_tools.GUI.param_viewer.param_viewer_GUI_window import Ui_MainWindow from PyQt5 import QtCore, QtGui, QtWidgets from functools import partial import qcodes as qc from qcodes import Station import numpy as np from dataclasses import dataclass @dataclass class...
35.823529
119
0.644554
acfd348d64f141c6db191691c7779bd4e0ee9e3a
2,585
py
Python
test/vpp_gre_interface.py
fazega/vpp
9dba7816f6c3b5e4c879f839bb4bc61dcdbde757
[ "Apache-2.0" ]
1
2019-06-04T16:51:10.000Z
2019-06-04T16:51:10.000Z
test/vpp_gre_interface.py
Semihalf/marvell-vpp
fb5148b4dffaea52fffa2ec3acbad6899377c08b
[ "Apache-2.0" ]
null
null
null
test/vpp_gre_interface.py
Semihalf/marvell-vpp
fb5148b4dffaea52fffa2ec3acbad6899377c08b
[ "Apache-2.0" ]
1
2022-03-07T06:44:26.000Z
2022-03-07T06:44:26.000Z
from vpp_interface import VppInterface import socket class VppGreInterface(VppInterface): """ VPP GRE interface """ def __init__(self, test, src_ip, dst_ip, outer_fib_id=0, is_teb=0): """ Create VPP GRE interface """ self._sw_if_index = 0 super(VppGreInterface, self).__init__...
35.902778
76
0.54352
acfd34b8744fc7cb2bae5682307344f50448cc5f
8,862
py
Python
stock-forecasting-v3/agent.py
huseinzol05/Tensorflow-JS-Projects
d9df5ee615b953701d22710bd66c8a17a5760fa6
[ "Apache-2.0" ]
20
2018-06-19T09:06:12.000Z
2021-08-12T10:40:18.000Z
stock-forecasting-v3/agent.py
huseinzol05/Tensorflow-JS-Projects
d9df5ee615b953701d22710bd66c8a17a5760fa6
[ "Apache-2.0" ]
null
null
null
stock-forecasting-v3/agent.py
huseinzol05/Tensorflow-JS-Projects
d9df5ee615b953701d22710bd66c8a17a5760fa6
[ "Apache-2.0" ]
9
2018-06-19T06:33:48.000Z
2020-10-15T17:44:25.000Z
import numpy as np import json from flask import Flask, request from flask_cors import CORS app = Flask(__name__) CORS(app) def detect_outliers(close, date, threshold, **kwargs): signal = np.abs((np.array(close) - np.mean(close)) / np.std(close)) threshold = (np.max(signal)-np.min(signal)) * threshold x, ...
39.039648
114
0.565109
acfd34d9911b6d07369302e54708a2a657a675d3
173
py
Python
aat/tests/core/order_book/test_collector.py
mthomascarcamo/aat
fd86f513ccf79625516d2236be655498b24ec742
[ "Apache-2.0" ]
305
2020-02-24T02:25:43.000Z
2022-03-26T22:53:43.000Z
aat/tests/core/order_book/test_collector.py
mthomascarcamo/aat
fd86f513ccf79625516d2236be655498b24ec742
[ "Apache-2.0" ]
79
2020-02-20T21:00:58.000Z
2022-03-27T14:06:26.000Z
aat/tests/core/order_book/test_collector.py
mthomascarcamo/aat
fd86f513ccf79625516d2236be655498b24ec742
[ "Apache-2.0" ]
71
2020-05-10T11:52:25.000Z
2022-03-29T07:51:48.000Z
from aat.core.order_book.collector import _Collector class TestCollector: def test_collector(self): c = _Collector(lambda *args: print(args)) assert c
21.625
52
0.705202
acfd3600d2d7ed786b46254160853b5a0a408a51
959
py
Python
examples/wandb_demo.py
Jie-Yuan/MeUtils
2bb191b0d35b809af037c0f65b37570b8828bea3
[ "Apache-2.0" ]
3
2020-12-03T07:30:02.000Z
2021-02-07T13:37:33.000Z
examples/wandb_demo.py
Jie-Yuan/MeUtils
2bb191b0d35b809af037c0f65b37570b8828bea3
[ "Apache-2.0" ]
null
null
null
examples/wandb_demo.py
Jie-Yuan/MeUtils
2bb191b0d35b809af037c0f65b37570b8828bea3
[ "Apache-2.0" ]
1
2021-02-07T13:37:38.000Z
2021-02-07T13:37:38.000Z
import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn.utils import shuffle from numpy.random.mtrand import permutation from sklearn.datasets import load_iris import wandb # initialize wandb run wandb.init() # load data iris = load_iris...
28.205882
130
0.769552
acfd367063d89262f2f288b68d7cd8a02ae3a014
990
py
Python
server/client.py
nishio/jscc
9a1fa813fc71a9eacbe6b3a7b94e7ff69cc98728
[ "MIT" ]
1
2021-03-09T04:29:29.000Z
2021-03-09T04:29:29.000Z
server/client.py
nishio/jscc
9a1fa813fc71a9eacbe6b3a7b94e7ff69cc98728
[ "MIT" ]
null
null
null
server/client.py
nishio/jscc
9a1fa813fc71a9eacbe6b3a7b94e7ff69cc98728
[ "MIT" ]
null
null
null
import re import json from datetime import datetime import urllib2 import urllib data = {"error": None, "warning": None} messages = [] for line in open("lint.log"): if line.startswith("Line"): # sample: Line 58, E:0002: Missing space after "," messages.append(line.split(":", 2)[1]) data["lint"] = ...
29.117647
96
0.615152
acfd367466e342376216925e5dac42e1891cf064
9,403
py
Python
src/som_vis.py
FabianTraxler/SOM_Neighbourhood_Graphs
11d85c2dbb5220ec0fc63dc76d08cb7c89e19710
[ "Apache-2.0" ]
null
null
null
src/som_vis.py
FabianTraxler/SOM_Neighbourhood_Graphs
11d85c2dbb5220ec0fc63dc76d08cb7c89e19710
[ "Apache-2.0" ]
null
null
null
src/som_vis.py
FabianTraxler/SOM_Neighbourhood_Graphs
11d85c2dbb5220ec0fc63dc76d08cb7c89e19710
[ "Apache-2.0" ]
null
null
null
# %% """ This module contains copies of the classes SOMToolBox_Parse and SomViz provided by the lecturers. """ import pandas as pd import numpy as np import gzip from scipy.spatial import distance_matrix, distance from ipywidgets import Layout, HBox, Box, widgets, interact import plotly.graph_objects as go class SOM...
38.695473
117
0.57354
acfd372e7daec2e07d7408953d59a6d85004aece
1,074
py
Python
test/test_messageproto.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
test/test_messageproto.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
test/test_messageproto.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.307692
85
0.75419
acfd37b34744d15dc77a310cae58c303b6917813
104,859
py
Python
petrarch/petrarch.py
openeventdata/petrarch
7b36d67e8e2005cdb0c7c9577bba016721407c06
[ "MIT" ]
40
2015-02-23T13:21:24.000Z
2021-04-20T06:38:25.000Z
petrarch/petrarch.py
openeventdata/petrarch
7b36d67e8e2005cdb0c7c9577bba016721407c06
[ "MIT" ]
19
2015-01-12T20:56:49.000Z
2016-06-12T23:47:40.000Z
petrarch/petrarch.py
openeventdata/petrarch
7b36d67e8e2005cdb0c7c9577bba016721407c06
[ "MIT" ]
29
2015-03-07T18:02:40.000Z
2021-01-25T03:04:41.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals import os import sys import glob import time import types import logging import argparse import xml.etree.ElementTree as ET # petrarch.py ## # Automated event data coder ## # SYSTEM REQUIREMENTS # This program has b...
36.08362
136
0.509179
acfd38bd8a67e599f912cc3eea35e499cd0fac0f
743
py
Python
keilib/__init__.py
shimadamacy/keilog
7ee6388dd79a30e6d4c6d2f81d113ae2dbf47bdd
[ "MIT" ]
8
2019-12-21T07:01:45.000Z
2021-11-12T07:10:10.000Z
keilib/__init__.py
shimadamacy/keilog
7ee6388dd79a30e6d4c6d2f81d113ae2dbf47bdd
[ "MIT" ]
null
null
null
keilib/__init__.py
shimadamacy/keilog
7ee6388dd79a30e6d4c6d2f81d113ae2dbf47bdd
[ "MIT" ]
1
2021-05-05T03:05:17.000Z
2021-05-05T03:05:17.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- '''Bルート、シリアル通信、各種センサーからのデータを取得し、整理して保存するライブラリ 機能と特徴: * シリアルポートからのデータ読み込み - 不正データの除外 - 重複データの除外 - 外れ値の除外 * スマートメーターから電力情報の取得 - RL7023 Stick-D/DSS への対応 * ファイルへの保存 - タイムスタンプを付加する - 10分平均を計算し、別ファイルとして保存 - 日...
18.575
51
0.572005
acfd390cb3d892aa4979e34fd57fb3c897d56d6c
1,508
py
Python
scripts/rabbitmq-test.py
james-portman/openstack-ansible
882d98c94b6e429dec9d66d26722ed457e3b18b9
[ "Apache-2.0" ]
null
null
null
scripts/rabbitmq-test.py
james-portman/openstack-ansible
882d98c94b6e429dec9d66d26722ed457e3b18b9
[ "Apache-2.0" ]
null
null
null
scripts/rabbitmq-test.py
james-portman/openstack-ansible
882d98c94b6e429dec9d66d26722ed457e3b18b9
[ "Apache-2.0" ]
1
2018-05-21T18:41:51.000Z
2018-05-21T18:41:51.000Z
#!/usr/bin/env python # # Copyright 2017, Rackspace US, 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 applicab...
31.416667
75
0.714854
acfd39d57d107a717e27a65ce2c29cf069a75e63
280
py
Python
fdk_client/platform/models/Sections.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/Sections.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/Sections.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class Sections(BaseSchema): # Theme swagger.json attributes = fields.Str(required=False)
15.555556
43
0.725
acfd3a91544aecfca78cb55124c9cd585c87789b
32,713
py
Python
Server/src/virtualenv/Lib/encodings/cp775.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
Server/src/virtualenv/Lib/encodings/cp775.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
Server/src/virtualenv/Lib/encodings/cp775.py
ppyordanov/HCI_4_Future_Cities
4dc7dc59acccf30357bde66524c2d64c29908de8
[ "MIT" ]
null
null
null
""" Python Character Mapping Codec cp775 generated from 'VENDORS/MICSFT/PC/CP775.TXT' with gencodec.py. """ # " import codecs # ## Codec APIs class Codec(codecs.Codec): def encode(self, input, errors='strict'): return codecs.charmap_encode(input, errors, encoding_map) def decode(self, input, error...
46.533428
103
0.6432
acfd3b285f20528bfe49272c743391809cc86626
3,035
py
Python
setup.py
eugene-yang/priorsgd
7213cd1a215b28191c59461f8f103799594ab8c6
[ "MIT" ]
1
2020-08-27T08:28:33.000Z
2020-08-27T08:28:33.000Z
setup.py
eugene-yang/priorsgd
7213cd1a215b28191c59461f8f103799594ab8c6
[ "MIT" ]
null
null
null
setup.py
eugene-yang/priorsgd
7213cd1a215b28191c59461f8f103799594ab8c6
[ "MIT" ]
null
null
null
## setup script for compiling the modified version of SGDClassifier import os from os.path import join import setuptools from setuptools import setup import numpy from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info # from sklearn._build_utils.get_blas_info def get_b...
34.885057
79
0.556507
acfd3bab425516b1b6132b6c49763253ed014b6e
2,008
py
Python
chapter04/disparity.py
ankona/Learning-OpenCV-4-Computer-Vision-with-Python-Third-Edition
caa9326e310253fba1aab624b46ea899ce16a21f
[ "BSD-3-Clause" ]
286
2019-06-29T11:47:40.000Z
2022-03-29T08:41:28.000Z
chapter04/disparity.py
chihhao428/Learning-OpenCV-4-Computer-Vision-with-Python-Third-Edition
ee29cfefb4f21ba5acf6222aa69ef1c05c8fc05d
[ "BSD-3-Clause" ]
8
2020-10-01T17:48:04.000Z
2022-03-26T04:27:06.000Z
chapter04/disparity.py
chihhao428/Learning-OpenCV-4-Computer-Vision-with-Python-Third-Edition
ee29cfefb4f21ba5acf6222aa69ef1c05c8fc05d
[ "BSD-3-Clause" ]
153
2019-07-01T02:53:02.000Z
2022-03-28T08:43:44.000Z
import numpy as np import cv2 minDisparity = 16 numDisparities = 192 - minDisparity blockSize = 5 uniquenessRatio = 1 speckleWindowSize = 3 speckleRange = 3 disp12MaxDiff = 200 P1 = 600 P2 = 2400 stereo = cv2.StereoSGBM_create( minDisparity = minDisparity, numDisparities = numDisparities, blockSize = blo...
28.28169
69
0.685757
acfd3bc3cf3141908ad2a74d803569cbd560d973
557
py
Python
env/lib/python3.8/site-packages/plotly/validators/scattergeo/_mode.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/scattergeo/_mode.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/scattergeo/_mode.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="mode", parent_name="scattergeo", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ed...
37.133333
79
0.617594
acfd3c74369c970b84f3f5f69ef2ed406ae1c419
11,709
py
Python
melati/full_node/coin_store.py
a96009467/melati-blockchain
28b8cd1590ee8fa860554c66d639a1fefc0d3c41
[ "Apache-2.0" ]
12
2021-07-13T15:39:57.000Z
2022-02-09T04:32:12.000Z
melati/full_node/coin_store.py
a96009467/melati-blockchain
28b8cd1590ee8fa860554c66d639a1fefc0d3c41
[ "Apache-2.0" ]
1
2021-07-16T12:41:41.000Z
2021-07-16T12:42:48.000Z
melati/full_node/coin_store.py
a96009467/melati-blockchain
28b8cd1590ee8fa860554c66d639a1fefc0d3c41
[ "Apache-2.0" ]
3
2021-07-13T05:35:30.000Z
2021-08-06T13:11:14.000Z
from typing import List, Optional import aiosqlite from melati.types.blockchain_format.coin import Coin from melati.types.blockchain_format.sized_bytes import bytes32 from melati.types.coin_record import CoinRecord from melati.types.full_block import FullBlock from melati.util.db_wrapper import DBWrapper from melati....
39.962457
118
0.606542
acfd3cc64f3396b88dd3524e696399aaa7d7d446
3,027
py
Python
examples/ParaView/ContourGeometry/DynamicLocalRemoteRendering/app.py
gomberg5264/py-web-vue
eb7efc9e19ed5f7033478afac7bfa1a93b417cdf
[ "BSD-3-Clause" ]
null
null
null
examples/ParaView/ContourGeometry/DynamicLocalRemoteRendering/app.py
gomberg5264/py-web-vue
eb7efc9e19ed5f7033478afac7bfa1a93b417cdf
[ "BSD-3-Clause" ]
null
null
null
examples/ParaView/ContourGeometry/DynamicLocalRemoteRendering/app.py
gomberg5264/py-web-vue
eb7efc9e19ed5f7033478afac7bfa1a93b417cdf
[ "BSD-3-Clause" ]
null
null
null
import sys # ----------------------------------------------------------------------------- # Virtual Environment handling # ----------------------------------------------------------------------------- if "--virtual-env" in sys.argv: virtualEnvPath = sys.argv[sys.argv.index("--virtual-env") + 1] virtualEnv = ...
32.548387
113
0.516022
acfd3d0595650bbcdcd04e9b7f78c2cb0ed0e6c1
194
py
Python
examples/sweeper.py
keakon/delayed
1b7a90a7c579e77e8ac0d9e77c839334ae20944a
[ "MIT" ]
4
2019-06-03T10:33:01.000Z
2021-03-02T09:32:08.000Z
examples/sweeper.py
keakon/delayed
1b7a90a7c579e77e8ac0d9e77c839334ae20944a
[ "MIT" ]
null
null
null
examples/sweeper.py
keakon/delayed
1b7a90a7c579e77e8ac0d9e77c839334ae20944a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from delayed.logger import setup_logger from delayed.sweeper import Sweeper from .client import queue setup_logger() sweeper = Sweeper(queues=[queue]) sweeper.run()
14.923077
39
0.742268
acfd3d1b1edb0105be104695097d835fce73af10
10,094
py
Python
mpsim/server.py
LaudateCorpus1/ZFM
c92db4637010c304fe7df5057813f591a3577322
[ "Apache-2.0" ]
null
null
null
mpsim/server.py
LaudateCorpus1/ZFM
c92db4637010c304fe7df5057813f591a3577322
[ "Apache-2.0" ]
null
null
null
mpsim/server.py
LaudateCorpus1/ZFM
c92db4637010c304fe7df5057813f591a3577322
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # (C) Copyright 2020 Hewlett Packard Enterprise Development LP. # Licensed under the Apache v2.0 license. # import re import os import sys import json import glob import copy import importlib from log import Log from threading import Thread from http.server import HTTPServer from http.server ...
32.56129
120
0.464632
acfd3e86ce1faea68ce968ac03212f45a581a707
1,443
py
Python
Lista_2/exercicio_9.py
carlosjrbk/Logica-de-Programa--o---IFPE
2201f56c5a5641dc33895c2e575983be51d87a86
[ "MIT" ]
null
null
null
Lista_2/exercicio_9.py
carlosjrbk/Logica-de-Programa--o---IFPE
2201f56c5a5641dc33895c2e575983be51d87a86
[ "MIT" ]
null
null
null
Lista_2/exercicio_9.py
carlosjrbk/Logica-de-Programa--o---IFPE
2201f56c5a5641dc33895c2e575983be51d87a86
[ "MIT" ]
null
null
null
print('='*60) print('CATEGORIA-------- CODIGIO ---------------MARGEM DE LUCRO') print() print('HORTIFRUTI-----------1----------------------------80%---') print('LATICINIOS-----------2----------------------------80%---') print('CARNES---------------3---------------------------100%---') print('PEIXES---------------4-----...
34.357143
65
0.458073
acfd3ed52010c095baf5dc8dfa19d04de7bd467b
15
py
Python
examples/01-regular-print.py
indradhanush/autopalette
66c0b5b50c2c4c8ebc92e031c3a942ca831fd7d4
[ "BSD-2-Clause" ]
11
2018-06-01T20:20:59.000Z
2020-09-23T01:13:06.000Z
examples/01-regular-print.py
indradhanush/autopalette
66c0b5b50c2c4c8ebc92e031c3a942ca831fd7d4
[ "BSD-2-Clause" ]
3
2018-06-01T19:09:16.000Z
2018-06-04T01:47:18.000Z
examples/01-regular-print.py
indradhanush/autopalette
66c0b5b50c2c4c8ebc92e031c3a942ca831fd7d4
[ "BSD-2-Clause" ]
1
2018-06-02T10:35:41.000Z
2018-06-02T10:35:41.000Z
print("Tring!")
15
15
0.666667
acfd3f31deca0921058bdd196eff1f0fc0ab82a2
2,010
py
Python
sdk/core/azure-core-tracing-opentelemetry/samples/sample_storage.py
mohamedshabanofficial/azure-sdk-for-python
81c585f310cd2ec23d2ad145173958914a075a58
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/core/azure-core-tracing-opentelemetry/samples/sample_storage.py
mohamedshabanofficial/azure-sdk-for-python
81c585f310cd2ec23d2ad145173958914a075a58
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/core/azure-core-tracing-opentelemetry/samples/sample_storage.py
mohamedshabanofficial/azure-sdk-for-python
81c585f310cd2ec23d2ad145173958914a075a58
[ "MIT" ]
1
2021-12-18T20:01:22.000Z
2021-12-18T20:01:22.000Z
""" Examples to show usage of the azure-core-tracing-opentelemetry with the storage SDK. This example traces calls for creating a container in storage and exports it using the ConsoleSpanExporter. An alternative path to export using AzureMonitor is also mentioned in the sample. Please take a look at the commented cod...
38.653846
108
0.825373
acfd3f9e433bb8966833b5962cd90d85c15698f5
45,856
py
Python
Science_Project.py
herleraja/Holo.lab
e3a4568b4a4f0a6b110ce48f516f29a400934859
[ "Apache-2.0" ]
null
null
null
Science_Project.py
herleraja/Holo.lab
e3a4568b4a4f0a6b110ce48f516f29a400934859
[ "Apache-2.0" ]
null
null
null
Science_Project.py
herleraja/Holo.lab
e3a4568b4a4f0a6b110ce48f516f29a400934859
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\NUCER\Google Drive\HiWi\Science_Project\Science_Project.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object...
66.170274
339
0.744766
acfd408ca5ad8f06f35dbc8662278490715b954f
610
py
Python
ckan/migration/versions/003_add_user_object.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
12
2015-08-28T16:59:07.000Z
2020-03-08T01:39:30.000Z
ckan/migration/versions/003_add_user_object.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
13
2019-05-02T21:01:28.000Z
2020-10-20T23:34:48.000Z
ckan/migration/versions/003_add_user_object.py
florianm/ckan
1cfd98d591ac70b4eb81048bcd227b6c1354b1bf
[ "Apache-2.0" ]
10
2015-05-08T04:33:20.000Z
2020-03-03T15:17:58.000Z
from sqlalchemy import * from migrate import * import uuid def make_uuid(): return unicode(uuid.uuid4()) def upgrade(migrate_engine): metadata = MetaData() user_table = Table('user', metadata, Column('id', UnicodeText, primary_key=True, default=make_uuid), Column('name', UnicodeT...
23.461538
75
0.670492
acfd40ae1eed55fab37f9ac9298e113482d1cb0b
12,332
py
Python
alipay/aop/api/domain/AlipayCommerceMedicalInstcardCreateandpayModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayCommerceMedicalInstcardCreateandpayModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayCommerceMedicalInstcardCreateandpayModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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 AlipayCommerceMedicalInstcardCreateandpayModel(object): def __init__(self): self._bill_no = None self._body = None self._buyer_id = None self._extend_params = None...
33.239892
91
0.599578
acfd4282cef5115c403dd8583f91de2b2dc0fe1b
2,836
py
Python
rllib/agents/marwil/tests/test_bc.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
3
2021-06-24T17:00:18.000Z
2021-09-20T15:49:11.000Z
rllib/agents/marwil/tests/test_bc.py
jamesliu/ray
11ab412db1fa3603a3006e8ed414e80dd1f11c0c
[ "Apache-2.0" ]
227
2021-10-01T08:00:01.000Z
2021-12-28T16:47:26.000Z
rllib/agents/marwil/tests/test_bc.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
1
2020-12-03T20:36:00.000Z
2020-12-03T20:36:00.000Z
import os from pathlib import Path import unittest import ray import ray.rllib.agents.marwil as marwil from ray.rllib.utils.framework import try_import_tf from ray.rllib.utils.test_utils import check_compute_single_action, \ check_train_results, framework_iterator tf1, tf, tfv = try_import_tf() class TestBC(uni...
34.168675
77
0.594499
acfd42de33079998fe37798b4eb77119ea659f90
4,819
py
Python
napari_mosquito_bb_annotations/_reader.py
czbiohub/napari-mosquito-species-bb-annotations
f05740cb37396bb59c3763a043884b61e1537723
[ "BSD-3-Clause" ]
null
null
null
napari_mosquito_bb_annotations/_reader.py
czbiohub/napari-mosquito-species-bb-annotations
f05740cb37396bb59c3763a043884b61e1537723
[ "BSD-3-Clause" ]
9
2021-06-21T23:54:03.000Z
2021-08-03T17:42:39.000Z
napari_mosquito_bb_annotations/_reader.py
czbiohub/napari-mosquito-species-bb-annotations
f05740cb37396bb59c3763a043884b61e1537723
[ "BSD-3-Clause" ]
null
null
null
""" This module is an example of a barebones numpy reader plugin for napari. It implements the ``napari_get_reader`` hook specification, (to create a reader plugin) but your plugin may choose to implement any of the hook specifications offered by napari. see: https://napari.org/docs/plugins/hook_specifications.html R...
35.696296
86
0.650965
acfd4575968fc8c7fc310c4820d98558cb6bd3b6
80
py
Python
myproject/__init__.py
kolypto/py-_project-template
7f03690e4588e8cf9fb2bdb2eb326aa455fa945d
[ "MIT" ]
null
null
null
myproject/__init__.py
kolypto/py-_project-template
7f03690e4588e8cf9fb2bdb2eb326aa455fa945d
[ "MIT" ]
null
null
null
myproject/__init__.py
kolypto/py-_project-template
7f03690e4588e8cf9fb2bdb2eb326aa455fa945d
[ "MIT" ]
null
null
null
__version__ = __import__('pkg_resources').get_distribution('myproject').version
40
79
0.825
acfd46f860d9a779ab81af8fe376f03ab3dc5e73
1,463
py
Python
testing/main.py
ajbradberry96/SeniorDesignAntiNN
c88cbdf699e68102cb705d8a7000616922cb73ee
[ "MIT" ]
null
null
null
testing/main.py
ajbradberry96/SeniorDesignAntiNN
c88cbdf699e68102cb705d8a7000616922cb73ee
[ "MIT" ]
12
2019-12-16T21:30:53.000Z
2022-03-11T23:40:28.000Z
testing/main.py
ajbradberry96/SeniorDesignAntiNN
c88cbdf699e68102cb705d8a7000616922cb73ee
[ "MIT" ]
null
null
null
import tensorflow as tf from testing import forward_model from testing import plot_results from testing import adv_example from testing import image_processing from testing import detect_adversarial import sys from urllib.request import urlretrieve import PIL tf.logging.set_verbosity(tf.logging.ERROR) sess = tf.Int...
20.041096
84
0.773069
acfd47c5b2090f9e252703ba5f8435653dad6868
650
py
Python
esmvaltool/utils/nclcodestyle/tokenize.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
148
2017-02-07T13:16:03.000Z
2022-03-26T02:21:56.000Z
esmvaltool/utils/nclcodestyle/tokenize.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
2,026
2017-02-03T12:57:13.000Z
2022-03-31T15:11:51.000Z
esmvaltool/utils/nclcodestyle/tokenize.py
yifatdzigan/ESMValTool
83320b0e0b24ddde965599961bb80428e180a731
[ "Apache-2.0" ]
113
2017-01-27T13:10:19.000Z
2022-02-03T13:42:11.000Z
"""Custom tokenize module that is both Python 2 and 3 compatible. The following commands were used to generate the code: sed "s/'#/';/g" lib/python2.7/tokenize.py > tokenize2.py_ sed "s/'#/';/g" lib/python3.6/tokenize.py > tokenize3.py_ Changes to the original tokenize.py for Python 2: add r"->" to Operator at line...
30.952381
65
0.7
acfd48874c62552de1b3f4b76b53b6d44c4d4074
662
py
Python
python/manage.py
horitaku1124/ml-advisor
93902280589aefe0833898cc20b4a770900e8a61
[ "MIT" ]
null
null
null
python/manage.py
horitaku1124/ml-advisor
93902280589aefe0833898cc20b4a770900e8a61
[ "MIT" ]
1
2022-03-28T14:12:45.000Z
2022-03-28T14:12:45.000Z
python/manage.py
horitaku1124/ml-advisor
93902280589aefe0833898cc20b4a770900e8a61
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testPj.settings') try: from django.core.management import execute_from_command_line except Impor...
28.782609
73
0.678248
acfd48cd2a3216269540c9104b00e328df1cd054
507
py
Python
appConf/serializers/notificationSerializer.py
salah-walid/Ecommerce-Shopping-App
c828701b03dab74c72538943f7aac5192fa20be6
[ "MIT" ]
1
2021-12-12T12:53:14.000Z
2021-12-12T12:53:14.000Z
appConf/serializers/notificationSerializer.py
JetLightStudio/Ecommerce-Shopping-App
c828701b03dab74c72538943f7aac5192fa20be6
[ "MIT" ]
null
null
null
appConf/serializers/notificationSerializer.py
JetLightStudio/Ecommerce-Shopping-App
c828701b03dab74c72538943f7aac5192fa20be6
[ "MIT" ]
1
2021-06-08T10:22:08.000Z
2021-06-08T10:22:08.000Z
from rest_framework import serializers from appConf.models.notification import notification from appConf.serializers.userSerializer import userSimplifiedSerialiser class notificationSerializer(serializers.ModelSerializer): isRead = serializers.SerializerMethodField("is_read") class Meta: model = noti...
33.8
71
0.741617
acfd4a450e61351b0fa191c44da5674e20be328b
51
py
Python
test_main.py
mengzhidu/python-nose-2016-10
42199e3e71c15c68f9e534268afff6a848607f1b
[ "MIT" ]
null
null
null
test_main.py
mengzhidu/python-nose-2016-10
42199e3e71c15c68f9e534268afff6a848607f1b
[ "MIT" ]
null
null
null
test_main.py
mengzhidu/python-nose-2016-10
42199e3e71c15c68f9e534268afff6a848607f1b
[ "MIT" ]
null
null
null
#!/usr/local/python def test(): assert 3 == 3
10.2
19
0.568627
acfd4b5c1a5178c5845a7329f86bbdb4830e87f9
12,260
py
Python
bin/iterate_davis2011kinase.py
samgoldman97/kinase-cpi-reanalysis
e45e055280b51abee95e2d15da91577a913328f2
[ "MIT" ]
19
2020-09-28T06:05:17.000Z
2022-03-24T22:27:19.000Z
bin/iterate_davis2011kinase.py
samgoldman97/kinase-cpi-reanalysis
e45e055280b51abee95e2d15da91577a913328f2
[ "MIT" ]
3
2020-11-24T15:52:17.000Z
2022-02-09T23:53:47.000Z
bin/iterate_davis2011kinase.py
brianhie/uncertainty
2a9dd1966632abefa94ecf4c5cf33020cca9d903
[ "MIT" ]
7
2020-08-31T01:46:57.000Z
2022-02-26T00:58:59.000Z
from utils import tprint, plt import numpy as np from scipy.stats import rankdata import sys from gaussian_process import SparseGPRegressor from hybrid import HybridMLPEnsembleGP from process_davis2011kinase import process, visualize_heatmap from train_davis2011kinase import train def acquisition_rank(y_pred, var_pr...
32.010444
86
0.598777
acfd4b79d963b39a99d3995286f57077761d28c9
13,693
py
Python
dojo/unittests/test_duplication_loops.py
brunoduruzup/django-DefectDojo
cd598b44f1c44ca2a05fdf95f99c0d526509f656
[ "BSD-3-Clause" ]
1
2021-06-22T21:15:50.000Z
2021-06-22T21:15:50.000Z
dojo/unittests/test_duplication_loops.py
brunoduruzup/django-DefectDojo
cd598b44f1c44ca2a05fdf95f99c0d526509f656
[ "BSD-3-Clause" ]
47
2021-09-15T12:19:19.000Z
2022-03-31T12:20:02.000Z
dojo/unittests/test_duplication_loops.py
Hijerboa/django-DefectDojo
3aea3bc3406f860c0842b0bf8800efe2c86bf81b
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from dojo.utils import set_duplicate from dojo.management.commands.fix_loop_duplicates import fix_loop_duplicates from dojo.models import Finding import logging deduplicationLogger = logging.getLogger("dojo.specific-loggers.deduplication") class TestDuplication(TestCase): fixtures...
44.170968
148
0.688527
acfd4c1e2833e28fc9a0f3f8eb93b74cfce8242a
5,520
py
Python
contrib/seeds/makeseeds.py
klymacks/kinsure
3c9598ef615371c43f7c730ed705c9296b4532f6
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
klymacks/kinsure
3c9598ef615371c43f7c730ed705c9296b4532f6
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
klymacks/kinsure
3c9598ef615371c43f7c730ed705c9296b4532f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 615801 #...
32.093023
186
0.567391
acfd4c1efa2962bf46d543b666a7e2eb990af382
5,357
py
Python
dailyfresh/settings.py
LinkanDawang/FreshMallDemo
5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb
[ "Apache-2.0" ]
null
null
null
dailyfresh/settings.py
LinkanDawang/FreshMallDemo
5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb
[ "Apache-2.0" ]
5
2020-06-05T18:27:41.000Z
2022-01-13T00:48:03.000Z
dailyfresh/settings.py
LinkanDawang/FreshMallDemo
5b8e2d2e8e137f609e8ac1e29ea013bb3ef34edb
[ "Apache-2.0" ]
null
null
null
""" Django settings for dailyfresh project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build p...
27.055556
80
0.699272
acfd4c22c528956da4a22b9045cd3bb0cbc9b6a6
464
py
Python
api/app/utils/database/redis_db.py
lucasfusinato/fusi-short
d178c3e08b3f349179d530c35e84ab504c99ff44
[ "MIT" ]
7
2022-02-04T23:12:19.000Z
2022-03-15T13:04:41.000Z
api/app/utils/database/redis_db.py
lucasfusinato/fusi-short
d178c3e08b3f349179d530c35e84ab504c99ff44
[ "MIT" ]
null
null
null
api/app/utils/database/redis_db.py
lucasfusinato/fusi-short
d178c3e08b3f349179d530c35e84ab504c99ff44
[ "MIT" ]
null
null
null
from typing import Union class RedisDb(object): def __init__(self, host: str, port: str): import redis self.__db = redis.Redis(host=host, port=port) def is_short_url_exists(self, alias: str) -> bool: return self.__db.exists(alias) def set_short_url(self, alias: str, link: str) -> ...
29
65
0.650862
acfd4cc5f8c775cc11777ab5e7252a382e2ce138
17,962
py
Python
src/rotest/management/base_resource.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
26
2017-06-11T18:21:17.000Z
2021-02-21T20:36:30.000Z
src/rotest/management/base_resource.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
143
2017-06-29T11:18:35.000Z
2021-06-10T17:23:46.000Z
src/rotest/management/base_resource.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
11
2017-06-12T09:16:14.000Z
2021-07-11T23:20:59.000Z
"""Define resources model classes. Defines the basic attributes & interface of any resource type class, responsible for the resource static & dynamic information. """ # pylint: disable=too-many-instance-attributes,no-self-use,broad-except # pylint: disable=protected-access,unused-argument,ungrouped-imports from __futu...
37.188406
79
0.610845
acfd4df7947abe71941a316481d4ca8f29b81359
9,587
py
Python
PreviousVerions/noclassbackup.py
cjbcodedump/2084game-finished
238c8f7bbaca971cbd2435dbb349852ce61df3d0
[ "MIT" ]
null
null
null
PreviousVerions/noclassbackup.py
cjbcodedump/2084game-finished
238c8f7bbaca971cbd2435dbb349852ce61df3d0
[ "MIT" ]
null
null
null
PreviousVerions/noclassbackup.py
cjbcodedump/2084game-finished
238c8f7bbaca971cbd2435dbb349852ce61df3d0
[ "MIT" ]
null
null
null
# Welcome to 2084 ver 0.0.0.4 # Created by Cameron Burton, with help from the Pygame and Python community! # importing modules import pygame from pygame.locals import * import sys import time import pyganim # used for animations # initialises pygame, was told this was necessary pygame.init() pygame.joystick.init() p...
37.893281
163
0.515385
acfd4fe3d90f7021f65d80166f445fc474c89a27
1,457
py
Python
input_data.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
input_data.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
input_data.py
tonib/tokens-rnn-tensorflow
9da815d3f9f4d215dd4d7041e5638eeb3ac51a0a
[ "MIT" ]
null
null
null
from enum import Enum import os from typing import List class InputData: """ The train data: A text file """ #def __init__(self, data_file_path : str , token_mode : TokenMode , sequence_length : int ): def __init__(self, args : object ): # Input file file path = os.path.join( args.data_di...
32.377778
105
0.615649
acfd508a8551cdbe0829e9eb746e82aead9dc021
4,886
py
Python
libs/utils.py
kyrus/PyMyo
0c5c63813b176484083cc50dc0d072264bf7a9ef
[ "BSD-3-Clause" ]
6
2015-03-23T19:03:02.000Z
2017-10-09T14:42:07.000Z
libs/utils.py
kyrus/PyMyo
0c5c63813b176484083cc50dc0d072264bf7a9ef
[ "BSD-3-Clause" ]
null
null
null
libs/utils.py
kyrus/PyMyo
0c5c63813b176484083cc50dc0d072264bf7a9ef
[ "BSD-3-Clause" ]
null
null
null
############################################################################### ## File : utils.py ## Description: general purpose library utilities ## : ## Created_On : Tue Sep 25 17:36:21 2012 ## Created_By : Rich Smith (rich@kyr.us) ## Modified_On: Sun Apr 14 19:44:54 2013 ## Modified_By: R...
35.405797
103
0.535612
acfd509fa9ff3d6ee27c454427aa80449c013b08
1,597
py
Python
var/spack/repos/builtin/packages/r-xde/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-xde/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-xde/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RXde(RPackage): """XDE: a Bayesian hierarchical model for cross-study analysis of d...
44.361111
73
0.687539
acfd50ca6ce7339823e2f6cddc15a624e0466a6b
2,388
py
Python
archives/correlation_analysis_celllevel/scf_configs/configs/config_mop_10x_cells_v3_snatac_gene_ka30_knn50_201120.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
archives/correlation_analysis_celllevel/scf_configs/configs/config_mop_10x_cells_v3_snatac_gene_ka30_knn50_201120.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
null
null
null
archives/correlation_analysis_celllevel/scf_configs/configs/config_mop_10x_cells_v3_snatac_gene_ka30_knn50_201120.py
mukamel-lab/SingleCellFusion_EnhancerPaper
acbfa5184667ca57c333c04c310b0712a0e8e15e
[ "MIT" ]
1
2021-11-15T19:03:03.000Z
2021-11-15T19:03:03.000Z
#!/usr/bin/env python3 """An example configuration file """ import sys import os # Assuming the cell order in the metadata tables are the same as those in the gene level matrices # The output knn matrices follow such order as well ka_smooth = 30 knn = 50 date = 201120 # # Configs name = 'mop_10x_cells_v3_snat...
25.956522
97
0.691792
acfd50d12a0bbdd189c3b7cc43202bad77020731
353
py
Python
experiments/issue469/raw_memory_parser.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
experiments/issue469/raw_memory_parser.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
null
null
null
experiments/issue469/raw_memory_parser.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
#! /usr/bin/env python from lab.parser import Parser class RawMemoryParser(Parser): def __init__(self): Parser.__init__(self) self.add_pattern('raw_memory', r'Peak memory: (.+) KB', type=int, required=False) if __name__ == '__main__': parser = RawMemoryParser() print 'Running RawMemoryPa...
22.0625
89
0.679887
acfd519bbd767841df8fc0d7cc578e28777f4aea
1,264
py
Python
source/python/neuropod/backends/torchscript/test/custom_ops/setup.py
Moti-H/neuropod
6f3e5862230cecf8b0d0b463eb145f187a398e64
[ "Apache-2.0" ]
null
null
null
source/python/neuropod/backends/torchscript/test/custom_ops/setup.py
Moti-H/neuropod
6f3e5862230cecf8b0d0b463eb145f187a398e64
[ "Apache-2.0" ]
null
null
null
source/python/neuropod/backends/torchscript/test/custom_ops/setup.py
Moti-H/neuropod
6f3e5862230cecf8b0d0b463eb145f187a398e64
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 The Neuropod 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 agreed to...
40.774194
98
0.778481
acfd52367b38f8f25d22dc648a05ea95888f8b0b
314
py
Python
deprecated/ProcessDatasetCreator.py
Insert-Generic-Name-Here/ReCOn
116d1185b47affd77de82194ae7c8293b5ce22b2
[ "Apache-2.0" ]
null
null
null
deprecated/ProcessDatasetCreator.py
Insert-Generic-Name-Here/ReCOn
116d1185b47affd77de82194ae7c8293b5ce22b2
[ "Apache-2.0" ]
null
null
null
deprecated/ProcessDatasetCreator.py
Insert-Generic-Name-Here/ReCOn
116d1185b47affd77de82194ae7c8293b5ce22b2
[ "Apache-2.0" ]
null
null
null
import os import datetime import lib.monitor.ProcessMonitor as monitor from time import gmtime, strftime, sleep procMonitor = monitor.ProcessMonitor(data_path=os.path.join('.', 'data'), logData=True, interval=5) while (True): print(strftime("%Y-%m-%d %H:%M:%S", gmtime()), end='\r', flush=True) sleep(1)
28.545455
99
0.707006
acfd52a34ccdf1c8fb9baffbf0bb28067f6b99bf
16,050
py
Python
atom/proton/python/proton_api/models/retirement_calculator_expenses_request.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/proton/python/proton_api/models/retirement_calculator_expenses_request.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/proton/python/proton_api/models/retirement_calculator_expenses_request.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.7.18 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Reti...
37.587822
304
0.669844
acfd541ef124b85139be400b84cbb771a8f1e706
2,344
py
Python
tools/nntool/importer/onnx/handlers/backend/gather.py
bot-motion/gap_sdk
bd117a8a4b5384b2b889f72effbfed4f7f938a88
[ "Apache-2.0" ]
null
null
null
tools/nntool/importer/onnx/handlers/backend/gather.py
bot-motion/gap_sdk
bd117a8a4b5384b2b889f72effbfed4f7f938a88
[ "Apache-2.0" ]
null
null
null
tools/nntool/importer/onnx/handlers/backend/gather.py
bot-motion/gap_sdk
bd117a8a4b5384b2b889f72effbfed4f7f938a88
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
38.42623
98
0.695392
acfd54f18d936b38496ccd6b2bfd2d89681e4525
1,947
py
Python
utils/gen-numerics.py
scwagner/irc
2792362d9447e612789d360fe8be915cb457b33a
[ "MIT" ]
109
2017-01-15T23:08:56.000Z
2022-03-22T10:05:41.000Z
utils/gen-numerics.py
scwagner/irc
2792362d9447e612789d360fe8be915cb457b33a
[ "MIT" ]
34
2017-01-10T01:07:45.000Z
2021-12-04T19:06:06.000Z
utils/gen-numerics.py
scwagner/irc
2792362d9447e612789d360fe8be915cb457b33a
[ "MIT" ]
16
2017-08-05T16:05:58.000Z
2022-03-02T19:34:06.000Z
import yaml data = yaml.safe_load(open('./numerics.yml', 'r')) vals = data['values'] used = set() print('//nolint') print('package irc') print() print('const (') def print_item(idx, item, ircv3=False, obsolete=None, tablevel=1, **kwargs): if idx in used: return origin = item.get('origin', '') ...
22.639535
76
0.62301
acfd55151c534fa9458d8f28033b10e315725b5c
633
py
Python
tryalgo/merge_ordered_lists.py
fuez/tryalgo
b21862be294b681640706f983692956219d7b216
[ "MIT" ]
351
2015-10-25T18:45:58.000Z
2022-03-26T02:06:51.000Z
tryalgo/merge_ordered_lists.py
fuez/tryalgo
b21862be294b681640706f983692956219d7b216
[ "MIT" ]
39
2016-02-04T07:01:57.000Z
2021-01-26T02:53:54.000Z
tryalgo/merge_ordered_lists.py
fuez/tryalgo
b21862be294b681640706f983692956219d7b216
[ "MIT" ]
119
2015-11-18T12:13:01.000Z
2022-03-21T04:18:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Merge two ordered lists jill-jênn vie et christoph dürr - 2014-2019 """ # snip{ def merge(x, y): """Merge two ordered lists :param x: :param y: x, y are nondecreasing ordered lists :returns: union of x and y in order :complexity: linear """ ...
21.1
73
0.475513
acfd5522b6c56539cd9a0027df6370f3a611a8e9
1,438
py
Python
Current/clean.py
CharlesCarley/HackComputer
2f29ec7929ef08f295b5be5810f324acc99604e0
[ "MIT" ]
null
null
null
Current/clean.py
CharlesCarley/HackComputer
2f29ec7929ef08f295b5be5810f324acc99604e0
[ "MIT" ]
null
null
null
Current/clean.py
CharlesCarley/HackComputer
2f29ec7929ef08f295b5be5810f324acc99604e0
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # # Copyright (c) Charles Carley. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use of this software. # # Permission is...
37.842105
80
0.63491
acfd55ebeb44bf38521312af1396cb86eb3563db
704
py
Python
src/python/grpcio_status/grpc_version.py
hanjingo/grpc
42b083322f6cf45fc00c801a6e16a013f3edfc99
[ "Apache-2.0" ]
null
null
null
src/python/grpcio_status/grpc_version.py
hanjingo/grpc
42b083322f6cf45fc00c801a6e16a013f3edfc99
[ "Apache-2.0" ]
4
2022-02-27T18:59:37.000Z
2022-02-27T18:59:53.000Z
src/python/grpcio_status/grpc_version.py
hanjingo/grpc
42b083322f6cf45fc00c801a6e16a013f3edfc99
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The gRPC 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 agreed to in writ...
39.111111
97
0.762784
acfd5621bb5b24905809c062abc65567ff981f47
9,406
py
Python
arelle/ViewWinTests.py
hamscher/Arelle
64c1beddcc7163e571011faf07a03d8ffe18bb78
[ "Apache-2.0" ]
1
2020-12-29T09:20:24.000Z
2020-12-29T09:20:24.000Z
arelle/ViewWinTests.py
hamscher/Arelle
64c1beddcc7163e571011faf07a03d8ffe18bb78
[ "Apache-2.0" ]
3
2021-01-07T23:36:40.000Z
2021-12-13T20:43:27.000Z
arelle/ViewWinTests.py
hamscher/Arelle
64c1beddcc7163e571011faf07a03d8ffe18bb78
[ "Apache-2.0" ]
null
null
null
''' Created on Oct 17, 2010 @author: Mark V Systems Limited (c) Copyright 2010 Mark V Systems Limited, All rights reserved. ''' from tkinter import * try: from tkinter.ttk import * except ImportError: from ttk import * import os from arelle import (ViewWinTree, ModelDocument, XmlUtil) def viewTests(modelXbrl,...
53.748571
147
0.625558
acfd56362621b6412d9d5935a2b52af362feaf35
1,856
py
Python
anthill/discovery/server.py
anthill-services/anthill-discovery
f61242bd6f853045696aae24a498a615979b3969
[ "MIT" ]
null
null
null
anthill/discovery/server.py
anthill-services/anthill-discovery
f61242bd6f853045696aae24a498a615979b3969
[ "MIT" ]
null
null
null
anthill/discovery/server.py
anthill-services/anthill-discovery
f61242bd6f853045696aae24a498a615979b3969
[ "MIT" ]
1
2017-12-13T07:46:03.000Z
2017-12-13T07:46:03.000Z
from anthill.common import handler, server, access, sign, discover from . model.discovery import DiscoveryModel, ServiceNotFound from . import handler as h from . import admin from . import options as _opts class DiscoveryServer(server.Server): def __init__(self): super(DiscoveryServer, self).__init__()...
28.121212
72
0.608297
acfd56e71c1dd024c3d034dbeea701ab069ebb36
353
py
Python
content/tampers/space2comment.py
magnologan/WhatWaf
fc16b5225302a6329ffd4cb78e0ecf1d42cf8acd
[ "MIT" ]
2
2018-02-13T13:58:18.000Z
2021-05-26T09:55:09.000Z
content/tampers/space2comment.py
magnologan/WhatWaf
fc16b5225302a6329ffd4cb78e0ecf1d42cf8acd
[ "MIT" ]
null
null
null
content/tampers/space2comment.py
magnologan/WhatWaf
fc16b5225302a6329ffd4cb78e0ecf1d42cf8acd
[ "MIT" ]
1
2022-02-09T06:23:40.000Z
2022-02-09T06:23:40.000Z
__example_payload__ = '484029") AS xDKy WHERE 5427=5427 UNION ALL SELECT NULL,NULL' __type__ = "changing the payload spaces into a comment" def tamper(payload, **kwargs): payload = str(payload) retval = "" for char in payload: if char == " ": retval += "/**/" else: ...
25.214286
83
0.592068
acfd57b02238a71e8fe62feb47b4ae7998dc5a95
228
py
Python
src/cfeapi/restconf/pagination.py
ricardoBento/Django-Angular-Ionic
fea23986deb613603a150d11787b609971c7152f
[ "MIT" ]
277
2017-12-10T19:47:15.000Z
2022-03-27T06:27:57.000Z
src/cfeapi/restconf/pagination.py
avanish981/REST-API
b5e4afe61ae1f21cb4928bf1f15be546d9252a5d
[ "MIT" ]
8
2020-02-12T03:21:26.000Z
2022-01-13T01:51:42.000Z
src/cfeapi/restconf/pagination.py
hmtanbir/django-angular-ionic
2984ce6bdf7a54290671095e60d3bd7bb39b14a8
[ "MIT" ]
160
2017-12-10T19:19:17.000Z
2022-03-27T06:27:58.000Z
from rest_framework import pagination class CFEAPIPagination(pagination.LimitOffsetPagination): #PageNumberPagination): #page_size = 20 default_limit = 10 max_limit = 20 #limit_query_param = 'lim'
22.8
81
0.714912
acfd586408bea5eb469b791f673ccca17bb1be6e
2,264
py
Python
segmenter/score-segments.py
trane293/nlp-project
1db71a5cf2572b4a80245a3a545d43cb0e778a84
[ "MIT" ]
null
null
null
segmenter/score-segments.py
trane293/nlp-project
1db71a5cf2572b4a80245a3a545d43cb0e778a84
[ "MIT" ]
null
null
null
segmenter/score-segments.py
trane293/nlp-project
1db71a5cf2572b4a80245a3a545d43cb0e778a84
[ "MIT" ]
1
2021-01-27T01:20:00.000Z
2021-01-27T01:20:00.000Z
from __future__ import division import optparse, sys, codecs from collections import defaultdict optparser = optparse.OptionParser() optparser.add_option("-t", "--testfile", dest="testfile", default=None, help="Output from your segmenter program") optparser.add_option("-r", "--referencefile", dest="referencefile", def...
33.791045
124
0.639576
acfd58dff174aeb36474e49bb5b9cd5e6cb0f0d1
4,045
py
Python
tests/functional/test_install_extras.py
alexandrul/pip
c52b6bf44829dd89c2fa400a0e3496f3754e2305
[ "MIT" ]
1
2019-12-20T05:27:25.000Z
2019-12-20T05:27:25.000Z
tests/functional/test_install_extras.py
alexandrul/pip
c52b6bf44829dd89c2fa400a0e3496f3754e2305
[ "MIT" ]
7
2019-12-27T07:56:50.000Z
2022-01-25T03:41:39.000Z
tests/functional/test_install_extras.py
gudonglaile/pip-gui
ac9c49c54b7a882d8091959ba14eec37612a3845
[ "MIT" ]
1
2020-02-14T16:53:19.000Z
2020-02-14T16:53:19.000Z
import textwrap from os.path import join import pytest @pytest.mark.network def test_simple_extras_install_from_pypi(script): """ Test installing a package from PyPI using extras dependency Paste[openid]. """ result = script.pip( 'install', 'Paste[openid]==1.7.5.1', expect_stderr=True, ) ...
31.356589
79
0.658838
acfd59a00c98c72a130aa8fad4743b61e3f06f5d
1,497
py
Python
Lib/site-packages/tensorflow_core/_api/v2/compat/v1/autograph/__init__.py
caiyongji/py36-tf2.0rc
c5b4b364ba14214534228570e58ef96b1a8bb6dc
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_core/_api/v2/compat/v1/autograph/__init__.py
caiyongji/py36-tf2.0rc
c5b4b364ba14214534228570e58ef96b1a8bb6dc
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_core/_api/v2/compat/v1/autograph/__init__.py
caiyongji/py36-tf2.0rc
c5b4b364ba14214534228570e58ef96b1a8bb6dc
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Conversion of plain Python into TensorFlow graph code. NOTE: In TensorFlow 2.0, AutoGraph is automatically applied when using `tf.function`. This module contains lower-level APIs for adv...
41.583333
89
0.811623
acfd59b53bf5e878c918a042670c34c09bdb23aa
6,558
py
Python
salt/utils/oset.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2020-03-31T22:51:16.000Z
2020-03-31T22:51:16.000Z
salt/utils/oset.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
null
null
null
salt/utils/oset.py
yuriks/salt
d2a5bd8adddb98ec1718d79384aa13b4f37e8028
[ "Apache-2.0", "MIT" ]
1
2021-09-30T07:00:01.000Z
2021-09-30T07:00:01.000Z
# -*- coding: utf-8 -*- ''' Available at repository https://github.com/LuminosoInsight/ordered-set salt.utils.oset ~~~~~~~~~~~~~~~~ An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up. Based on a recipe originally posted to ActiveState Recipe...
31.990244
95
0.598963
acfd59b99b5dc327fe8424a9362a0a6a65f94dbb
1,197
py
Python
tests/test_action.py
guionardo/py-housekeeping
3aaedc001b7ddb0b5a3397f99bd6bf4e8958f69c
[ "MIT" ]
null
null
null
tests/test_action.py
guionardo/py-housekeeping
3aaedc001b7ddb0b5a3397f99bd6bf4e8958f69c
[ "MIT" ]
null
null
null
tests/test_action.py
guionardo/py-housekeeping
3aaedc001b7ddb0b5a3397f99bd6bf4e8958f69c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import unittest from src.action import Action from utils import remove_dir class TestAction(unittest.TestCase): TEST_PATH = './test_path' @classmethod def setUpClass(cls): remove_dir(cls.TEST_PATH) @classmethod def tearDownClass(cls): remove_d...
27.204545
54
0.597327
acfd59efac9f089d3976f79eddaf1307a803342e
12,674
py
Python
tofu/data/_inversions_checks.py
ToFuProject/tofu
e341d466d934fcce74dfd40a4556509e7439045d
[ "MIT" ]
56
2017-07-09T10:29:45.000Z
2022-03-31T02:44:50.000Z
tofu/data/_inversions_checks.py
ToFuProject/tofu
e341d466d934fcce74dfd40a4556509e7439045d
[ "MIT" ]
522
2017-07-02T21:06:07.000Z
2022-03-02T08:07:57.000Z
tofu/data/_inversions_checks.py
ToFuProject/tofu
e341d466d934fcce74dfd40a4556509e7439045d
[ "MIT" ]
9
2017-07-02T20:38:53.000Z
2021-12-04T00:12:30.000Z
# -*- coding: utf-8 -*- # Built-in # Common import numpy as np import scipy.sparse as scpsp # specific from . import _generic_check _LALGO = [ 'inv_linear_augTikho_sparse', 'inv_linear_augTikho_dense', 'inv_linear_augTikho_chol_dense', 'inv_linear_augTikho_chol_sparse', 'inv_linear_augTikho_...
26.570231
79
0.516254
acfd5a42c4f7072a3db2ae9096ccc53f891c8c76
10,753
py
Python
ansible_collection/Juniper/junos/plugins/modules/juniper_junos_srx_cluster.py
isometry/ansible-junos-stdlib
63345737c43057b425593bb57d7b8a0eaaf766c1
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ansible_collection/Juniper/junos/plugins/modules/juniper_junos_srx_cluster.py
isometry/ansible-junos-stdlib
63345737c43057b425593bb57d7b8a0eaaf766c1
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ansible_collection/Juniper/junos/plugins/modules/juniper_junos_srx_cluster.py
isometry/ansible-junos-stdlib
63345737c43057b425593bb57d7b8a0eaaf766c1
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 1999-2018, Juniper Networks Inc. # 2014, Patrik Bok # 2015, Rick Sherman # # All rights reserved. # # License: Apache 2.0 # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided t...
36.450847
96
0.63015
acfd5b488c4c1b59de364befcf2f7fae854b2d58
12,463
py
Python
venv/lib/python2.7/site-packages/ansible/modules/network/onyx/onyx_linkagg.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
ansible/ansible/modules/network/onyx/onyx_linkagg.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
ansible/ansible/modules/network/onyx/onyx_linkagg.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # # Copyright: 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
35.107042
92
0.603546
acfd5b7aff87e60ce7e431d6470bd1fb0cd7f47f
1,926
py
Python
kolibri/core/notifications/migrations/0005_learnerprogressnotification_assignment_collections.py
alexMet/kolibri
394f94e6e3145089e965aa1b70bfdb5056d38bad
[ "MIT" ]
1
2020-10-22T05:54:52.000Z
2020-10-22T05:54:52.000Z
kolibri/core/notifications/migrations/0005_learnerprogressnotification_assignment_collections.py
alexMet/kolibri
394f94e6e3145089e965aa1b70bfdb5056d38bad
[ "MIT" ]
2
2021-09-24T11:36:21.000Z
2021-09-29T16:09:25.000Z
kolibri/core/notifications/migrations/0005_learnerprogressnotification_assignment_collections.py
alexMet/kolibri
394f94e6e3145089e965aa1b70bfdb5056d38bad
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-07-23 16:06 from __future__ import unicode_literals from django.db import migrations from django.db.utils import OperationalError import kolibri.core.fields def migrate_collection_ids(apps, schema_editor): try: LearnerProgressNotification = a...
35.018182
80
0.654206
acfd5b839b0e723d9b4305e55ba3aec03b054023
6,005
py
Python
streaming/python/runtime/graph.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
streaming/python/runtime/graph.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
streaming/python/runtime/graph.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import enum import logging import ray import ray.streaming.generated.remote_call_pb2 as remote_call_pb import ray.streaming.operator as operator import ray.streaming.partition as partition from ray._raylet import ActorID from ray.actor import ActorHandle from ray.streaming.config import Config from ray.streaming.gener...
38.49359
79
0.706744
acfd5becf0c3b8df9b2630d54e5e4c3f87ad90d3
2,352
py
Python
bigml/tests/test_29_script.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
137
2015-01-12T06:04:10.000Z
2022-03-06T21:00:04.000Z
bigml/tests/test_29_script.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
78
2015-01-13T18:28:51.000Z
2022-03-04T19:18:28.000Z
bigml/tests/test_29_script.py
axellos162/python-4
569f6655871ea60b41e9442396433567b9daaea7
[ "Apache-2.0" ]
144
2015-01-16T06:13:33.000Z
2022-03-29T17:53:16.000Z
# -*- coding: utf-8 -*- # # Copyright 2015-2021 BigML # # 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 ...
38.557377
101
0.609269
acfd5c3ad0dfa55875d6729c3315a39ccf870395
449
py
Python
members/migrations/0008_auto_20181001_1031.py
Venus9023/django_for_beginer
c12edb9d347f444f9817d0c6e13716284476820c
[ "BSD-3-Clause" ]
1,440
2015-01-05T13:06:12.000Z
2022-03-30T23:09:24.000Z
members/migrations/0008_auto_20181001_1031.py
Venus9023/django_for_beginer
c12edb9d347f444f9817d0c6e13716284476820c
[ "BSD-3-Clause" ]
711
2015-01-01T19:42:33.000Z
2022-03-29T08:36:29.000Z
members/migrations/0008_auto_20181001_1031.py
Venus9023/django_for_beginer
c12edb9d347f444f9817d0c6e13716284476820c
[ "BSD-3-Clause" ]
887
2015-01-01T03:17:20.000Z
2022-03-23T09:15:26.000Z
# Generated by Django 2.1.2 on 2018-10-01 10:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('members', '0007_auto_20170216_0837'), ] operations = [ migrations.RemoveField( model_name='individualmember', name='bio', ...
20.409091
47
0.576837
acfd5c91641d7e023f388899a7271f3202c799e3
1,193
py
Python
tf_quant_finance/experimental/pricing_platform/framework/rate_instruments/forward_rate_agreement/__init__.py
slowy07/tf-quant-finance
0976f720fb58a2d7bfd863640c12a2425cd2f94f
[ "Apache-2.0" ]
3,138
2019-07-24T21:43:17.000Z
2022-03-30T12:11:09.000Z
tf_quant_finance/experimental/pricing_platform/framework/rate_instruments/forward_rate_agreement/__init__.py
Aarif1430/tf-quant-finance
9372eb1ddf2b48cb1a3d4283bc67a10647ddc7a6
[ "Apache-2.0" ]
63
2019-09-07T19:16:03.000Z
2022-03-29T19:29:40.000Z
tf_quant_finance/experimental/pricing_platform/framework/rate_instruments/forward_rate_agreement/__init__.py
Aarif1430/tf-quant-finance
9372eb1ddf2b48cb1a3d4283bc67a10647ddc7a6
[ "Apache-2.0" ]
423
2019-07-26T21:28:05.000Z
2022-03-26T13:07:44.000Z
# Lint as: python3 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
42.607143
163
0.814753
acfd5d6394fdecb06a90d9ab5a8b77b2b7549814
980
py
Python
Sidekick_4.5/xgrid_sequences_from_file.py
hallba/Sidekick
2208ee913e6e2c181d0c27bec85495d3595d980c
[ "Apache-2.0" ]
null
null
null
Sidekick_4.5/xgrid_sequences_from_file.py
hallba/Sidekick
2208ee913e6e2c181d0c27bec85495d3595d980c
[ "Apache-2.0" ]
3
2015-02-24T23:04:51.000Z
2015-02-24T23:07:15.000Z
Sidekick_4.5/xgrid_sequences_from_file.py
hallba/Sidekick
2208ee913e6e2c181d0c27bec85495d3595d980c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys,os import HAConf from xgrid_tools import * starting_point = os.getcwd() input_file = sys.argv[1] job_list =[] for line in open(input_file,'r'): mutant = line[:-1] print mutant try: os.mkdir(mutant) except: continue ...
25.789474
105
0.578571
acfd5d8732c164f981fe9c2ba1655d0bb822421e
2,718
py
Python
contracts/validator_registration.v.py
atcswap/atc_chain
b5df207605578f1009afb439a5c76ce80800155f
[ "MIT" ]
217
2018-06-15T16:35:59.000Z
2022-01-23T21:21:13.000Z
contracts/validator_registration.v.py
KenMan79/beacon_chain
fa126de4aff583a9b6dab074ef7d553148f13530
[ "MIT" ]
111
2018-06-17T03:14:12.000Z
2021-01-12T04:29:26.000Z
contracts/validator_registration.v.py
KenMan79/beacon_chain
fa126de4aff583a9b6dab074ef7d553148f13530
[ "MIT" ]
60
2018-06-16T02:55:16.000Z
2022-03-28T18:42:10.000Z
MIN_DEPOSIT: constant(uint256) = 1 # ETH MAX_DEPOSIT: constant(uint256) = 32 # ETH GWEI_PER_ETH: constant(uint256) = 1000000000 # 10**9 CHAIN_START_FULL_DEPOSIT_THRESHOLD: constant(uint256) = 16384 # 2**14 DEPOSIT_CONTRACT_TREE_DEPTH: constant(uint256) = 32 TWO_TO_POWER_OF_TREE_DEPTH: constant(uint256) = 4294967296...
46.862069
155
0.740986
acfd5dc9954bfded9b0a280121fba2b1f04d0d9a
31,241
py
Python
webalchemy/tornado/template.py
PythonJS/webalchemy
c245685daceb69b9fcc95704e7682e428bf80d16
[ "MIT" ]
1
2015-02-09T17:54:29.000Z
2015-02-09T17:54:29.000Z
webalchemy/tornado/template.py
PythonJS/webalchemy
c245685daceb69b9fcc95704e7682e428bf80d16
[ "MIT" ]
null
null
null
webalchemy/tornado/template.py
PythonJS/webalchemy
c245685daceb69b9fcc95704e7682e428bf80d16
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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...
36.033449
98
0.593771
acfd60132911c2b2e86fa8462e546648eb314d27
249
py
Python
topCoder/srms/200s/srm262/div2/div_to_zero.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
topCoder/srms/200s/srm262/div2/div_to_zero.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
topCoder/srms/200s/srm262/div2/div_to_zero.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
class DivToZero: def lastTwo(self, num, factor): b = str(num)[:-2] for i in xrange(100): s = str(i) if i < 10: s = "0" + s if int(b + s) % factor == 0: return s
24.9
40
0.37751
acfd6218fdf794d06d011b67b8ba356b355efe78
1,887
py
Python
src/fixedincome/yield_curve.py
shreysrins/fixedincome
26c21b991a9e2a8f1cd9916517aa9e5502487efa
[ "MIT" ]
2
2022-02-10T06:16:29.000Z
2022-02-16T17:12:33.000Z
src/fixedincome/yield_curve.py
shreysrins/FixedIncome
26c21b991a9e2a8f1cd9916517aa9e5502487efa
[ "MIT" ]
3
2022-02-11T00:50:09.000Z
2022-02-17T18:43:38.000Z
src/fixedincome/yield_curve.py
shreysrins/fixedincome
26c21b991a9e2a8f1cd9916517aa9e5502487efa
[ "MIT" ]
2
2022-03-28T15:19:30.000Z
2022-03-29T00:23:14.000Z
""" Fixed income analytics for the yield curve Implements various functions useful for yield curve analytics. """ import numpy as np def bootstrap(cash_flows : np.ndarray, prices : np.ndarray) -> np.ndarray: """ Calculates the spot yield curve from a series of bonds. Parameters ---------- ...
28.164179
174
0.648649
acfd62f124a22cb5a04f7a226934b5e1325ad450
5,043
py
Python
tests/unittest/test_crypto.py
Kjwon15/torpy
db185f7a251b0c5a89ef96d27fe8b2374b6d3e8d
[ "Apache-2.0" ]
230
2019-07-18T14:22:28.000Z
2022-03-28T10:12:37.000Z
tests/unittest/test_crypto.py
Kjwon15/torpy
db185f7a251b0c5a89ef96d27fe8b2374b6d3e8d
[ "Apache-2.0" ]
37
2019-07-26T16:20:12.000Z
2022-03-03T23:24:04.000Z
tests/unittest/test_crypto.py
Kjwon15/torpy
db185f7a251b0c5a89ef96d27fe8b2374b6d3e8d
[ "Apache-2.0" ]
49
2019-08-08T11:48:20.000Z
2022-03-11T21:07:06.000Z
# Copyright 2019 James Brown # # 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, ...
60.035714
538
0.723181
acfd62f64604313e778367c9856e8c30840ab45f
9,377
py
Python
clang-tidy-diff.py
asarium/clang-tidy-action-images
3d1d66a54bce8251da01f2b02d9bdac2f7023fa7
[ "MIT" ]
null
null
null
clang-tidy-diff.py
asarium/clang-tidy-action-images
3d1d66a54bce8251da01f2b02d9bdac2f7023fa7
[ "MIT" ]
null
null
null
clang-tidy-diff.py
asarium/clang-tidy-action-images
3d1d66a54bce8251da01f2b02d9bdac2f7023fa7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # #===- clang-tidy-diff.py - ClangTidy Diff Checker ------------*- python -*--===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # #===--------...
34.347985
80
0.618001
acfd632239d0ef73ce9527b427909b205192c5b5
18,210
py
Python
src/setup_phase.py
sporreking/Evaluation-of-Synthetic-Face-Generation-Approaches
480608524751c8f48445404ad92708133472cd0e
[ "MIT" ]
1
2022-03-10T13:40:05.000Z
2022-03-10T13:40:05.000Z
src/setup_phase.py
sporreking/Evaluation-of-Synthetic-Face-Generation-Approaches
480608524751c8f48445404ad92708133472cd0e
[ "MIT" ]
55
2022-03-09T13:59:11.000Z
2022-03-31T14:58:47.000Z
src/setup_phase.py
sporreking/Evaluation-of-Synthetic-Face-Generation-Approaches
480608524751c8f48445404ad92708133472cd0e
[ "MIT" ]
null
null
null
from src.controller.ControllerRegistry import ControllerRegistry from src.metric.SampleMetricRegistry import SampleMetricRegistry from src.metric.SampleMetricManager import SampleMetricManager from src.metric.CompoundMetricManager import CompoundMetricManager from src.core.Setupable import Setupable import src.util.P...
35.636008
102
0.529819
acfd632728c3bdea09a1f0365e6472a4c6766224
9,855
py
Python
detectron2/layers/batch_norm.py
PedroUria/detectron2
53d838d1528c3511838a1a3b35c642291e0df495
[ "Apache-2.0" ]
780
2021-03-01T08:04:08.000Z
2022-03-30T04:29:17.000Z
detectron2/layers/batch_norm.py
PedroUria/detectron2
53d838d1528c3511838a1a3b35c642291e0df495
[ "Apache-2.0" ]
89
2021-03-05T01:22:18.000Z
2022-03-30T19:28:33.000Z
detectron2/layers/batch_norm.py
PedroUria/detectron2
53d838d1528c3511838a1a3b35c642291e0df495
[ "Apache-2.0" ]
119
2021-03-04T07:30:41.000Z
2022-03-31T11:32:22.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import torch import torch.distributed as dist from torch import nn from torch.autograd.function import Function from torch.nn import functional as F from detectron2.utils import comm, env from .wrappers import BatchNorm2d class Fr...
40.892116
99
0.627499
acfd6351fbdf0ede7c174dc5c8e0f19eab08e969
4,667
py
Python
pypureclient/flasharray/FA_2_4/models/volume_post.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_4/models/volume_post.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_4/models/volume_post.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
33.57554
443
0.569531
acfd64261f06881b29195e26f115e410e30aac82
546
py
Python
django_tea_do/tea_do/migrations/0002_alter_teado_body_alter_teado_title.py
utkueray/TeaDo
b568d5fd50855270037cc44d0731eeacdb36ade3
[ "Apache-2.0" ]
null
null
null
django_tea_do/tea_do/migrations/0002_alter_teado_body_alter_teado_title.py
utkueray/TeaDo
b568d5fd50855270037cc44d0731eeacdb36ade3
[ "Apache-2.0" ]
null
null
null
django_tea_do/tea_do/migrations/0002_alter_teado_body_alter_teado_title.py
utkueray/TeaDo
b568d5fd50855270037cc44d0731eeacdb36ade3
[ "Apache-2.0" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-17 15:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tea_do', '0001_initial'), ] operations = [ migrations.AlterField( model_name='teado', name='body', field...
22.75
62
0.567766
acfd644bb511ac832affc37dc6da6057ce23f2ca
1,338
py
Python
Trie_build_data.py
utkarsh23/RadixTrees
20cd5d56441cda7294407e64b38d1057e96584e0
[ "MIT" ]
null
null
null
Trie_build_data.py
utkarsh23/RadixTrees
20cd5d56441cda7294407e64b38d1057e96584e0
[ "MIT" ]
null
null
null
Trie_build_data.py
utkarsh23/RadixTrees
20cd5d56441cda7294407e64b38d1057e96584e0
[ "MIT" ]
2
2017-11-30T13:36:42.000Z
2018-04-15T12:37:57.000Z
import time from Trie import * def main(): word_lists = ['words_44k.txt', 'words_109k.txt', 'words_178k.txt', 'words_263k.list', 'words_370k.txt'] # insert print("Insertion:\n") insert_times = [] counter = 1 for file in word_lists: print("Processing file " + str(counter)) f_read = open('word_list/' + file) ...
28.468085
166
0.713004
acfd6487a4c87104d11da229f01c06f297cd24d8
150
py
Python
cases/__init__.py
mavahedinia/s1d-csp-sa
1b04e06b277baff198c653e3827c1b1bed4a485e
[ "MIT" ]
null
null
null
cases/__init__.py
mavahedinia/s1d-csp-sa
1b04e06b277baff198c653e3827c1b1bed4a485e
[ "MIT" ]
null
null
null
cases/__init__.py
mavahedinia/s1d-csp-sa
1b04e06b277baff198c653e3827c1b1bed4a485e
[ "MIT" ]
null
null
null
from .base import * from .case1 import case_1 from .case2 import case_2 from .case3 import case_3 from .case4 import case_4 from .case5 import case_5
21.428571
25
0.793333
acfd65834a218be6b680fcb1227dd1b4dec89e4a
14,401
py
Python
tests/unit/test_curve.py
dibir-magomedsaygitov/bezier
a3c408d11133aa1b97fb6dd673888cf56f03178e
[ "Apache-2.0" ]
null
null
null
tests/unit/test_curve.py
dibir-magomedsaygitov/bezier
a3c408d11133aa1b97fb6dd673888cf56f03178e
[ "Apache-2.0" ]
null
null
null
tests/unit/test_curve.py
dibir-magomedsaygitov/bezier
a3c408d11133aa1b97fb6dd673888cf56f03178e
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.816712
79
0.600583
acfd65d56920e148b456e6aa4e0d03bc2f417ac1
2,657
py
Python
Local_Cell_Density_Project/Unit_Test_Density/Unit_Test.py
The-Kristina/CellComp
29ec7690e0d9adb1a6214937ca41fd1dadce18c6
[ "CNRI-Python", "RSA-MD", "Xnet", "Net-SNMP", "X11" ]
7
2019-05-13T10:07:44.000Z
2022-03-01T16:20:48.000Z
Local_Cell_Density_Project/Unit_Test_Density/Unit_Test.py
The-Kristina/CellComp
29ec7690e0d9adb1a6214937ca41fd1dadce18c6
[ "CNRI-Python", "RSA-MD", "Xnet", "Net-SNMP", "X11" ]
null
null
null
Local_Cell_Density_Project/Unit_Test_Density/Unit_Test.py
The-Kristina/CellComp
29ec7690e0d9adb1a6214937ca41fd1dadce18c6
[ "CNRI-Python", "RSA-MD", "Xnet", "Net-SNMP", "X11" ]
3
2020-04-23T18:13:20.000Z
2020-11-11T18:46:48.000Z
# TODO: Calculate the densities of the cells present in frame #552-554 # of slice movie (pos0, '17_07_24', 'MDCK_90WT_10Sc_NoComp') manually import numpy as np import scipy.spatial as sp import matplotlib.pyplot as plt from SegClass_HDF_Output_Files.HDF_Format_New.HDF5_Data_Functions import GetXandYcoordsPerFrameSLOW...
29.197802
123
0.662778
acfd66941a9a87f6047c6f7c9f49e095ee544ed7
955
py
Python
tests/unit/test_delivery_method_setup.py
elin1231/htmap
b9c43ec1d86e90730210c3317409b75595061d91
[ "Apache-2.0" ]
null
null
null
tests/unit/test_delivery_method_setup.py
elin1231/htmap
b9c43ec1d86e90730210c3317409b75595061d91
[ "Apache-2.0" ]
null
null
null
tests/unit/test_delivery_method_setup.py
elin1231/htmap
b9c43ec1d86e90730210c3317409b75595061d91
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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...
35.37037
74
0.78534
acfd66bcb61445a129eca8caa9567e7932f733e3
3,777
py
Python
iaso/api/source_versions.py
BLSQ/iaso
95c8087c0182bdd576598eb8cd39c440e58e15d7
[ "MIT" ]
29
2020-12-26T07:22:19.000Z
2022-03-07T13:40:09.000Z
iaso/api/source_versions.py
BLSQ/iaso
95c8087c0182bdd576598eb8cd39c440e58e15d7
[ "MIT" ]
150
2020-11-09T15:03:27.000Z
2022-03-07T15:36:07.000Z
iaso/api/source_versions.py
BLSQ/iaso
95c8087c0182bdd576598eb8cd39c440e58e15d7
[ "MIT" ]
4
2020-11-09T10:38:13.000Z
2021-10-04T09:42:47.000Z
from django.http import HttpResponse from rest_framework.decorators import action from rest_framework.response import Response from iaso.models import SourceVersion from .common import ModelViewSet from iaso.models import DataSource from rest_framework import serializers, permissions from .source_versions_serializers...
35.632075
113
0.693407
acfd673d9aba996399d24ca5a9e113c696432724
4,506
py
Python
maskrcnn_benchmark/engine/trainer.py
lichuanqi/MPSR
3e4ecdbeb02faf1857ada74858b38187213d676e
[ "MIT" ]
120
2020-07-21T02:10:01.000Z
2022-03-25T12:51:52.000Z
maskrcnn_benchmark/engine/trainer.py
zhangfx123/MPSR
3e4ecdbeb02faf1857ada74858b38187213d676e
[ "MIT" ]
28
2020-07-21T09:42:05.000Z
2021-04-18T01:07:27.000Z
maskrcnn_benchmark/engine/trainer.py
zhangfx123/MPSR
3e4ecdbeb02faf1857ada74858b38187213d676e
[ "MIT" ]
18
2020-08-01T12:21:21.000Z
2022-03-25T07:19:24.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import datetime import logging import time import torch import torch.distributed as dist from maskrcnn_benchmark.utils.comm import get_world_size from maskrcnn_benchmark.utils.metric_logger import MetricLogger from apex import amp def reduce_lo...
34.396947
79
0.611851
acfd68d6b1a0e2b4d263b187621260b730d11ae2
2,660
py
Python
janus/tests/test_repair.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
janus/tests/test_repair.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
janus/tests/test_repair.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import numpy as np import sklearn.linear_model import sklearn.datasets import tqdm from janus.pipeline import pipeline_to_tree as pt from janus.repair.repairer import PipelineRepairer from janus.repair.rule_sampler import get_rule_sampler from janus.repair.tree_enumerator import g...
31.294118
78
0.673684
acfd6ae6bf0fea2c7e9eb762cdc5fd304982fe06
805
py
Python
gui.py
joelkaret/Sudoku_Solver
8243d38695ff093d4335c66e08370bcfda7874f3
[ "MIT" ]
null
null
null
gui.py
joelkaret/Sudoku_Solver
8243d38695ff093d4335c66e08370bcfda7874f3
[ "MIT" ]
null
null
null
gui.py
joelkaret/Sudoku_Solver
8243d38695ff093d4335c66e08370bcfda7874f3
[ "MIT" ]
null
null
null
# import sudokuSolver from SudokuSolverGui import Ui_MainWindow from PyQt5 import QtWidgets as qtw from PyQt5 import QtCore as qtc class Solver(qtw.QMainWindow): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.ui = Ui_MainWindow() self.ui.setupUi(self) ...
22.361111
72
0.654658
acfd6b14fee49bcbe9cefaa8bc68ee6c30d5c24a
341
py
Python
twitter/api/migrations/0004_alter_tweet_options.py
JollyBanny/sample-django
bc001fa4fd6d547bc7ef4704c4954980862a91e7
[ "MIT" ]
null
null
null
twitter/api/migrations/0004_alter_tweet_options.py
JollyBanny/sample-django
bc001fa4fd6d547bc7ef4704c4954980862a91e7
[ "MIT" ]
null
null
null
twitter/api/migrations/0004_alter_tweet_options.py
JollyBanny/sample-django
bc001fa4fd6d547bc7ef4704c4954980862a91e7
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-23 01:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0003_alter_tweet_photo'), ] operations = [ migrations.AlterModelOptions( name='tweet', options={'ordering': ['-created'...
18.944444
47
0.583578
acfd6be898b08eaffcfdc2c9c4011d4115be1d37
5,268
py
Python
builder/s3_trigger_handler.py
drilonibrahimi/ExcelLexBot
5abe780a7ab9f7e9e3ac6fd74b0c485516b516a8
[ "Apache-2.0" ]
15
2018-03-06T05:39:50.000Z
2021-09-04T05:00:12.000Z
builder/s3_trigger_handler.py
drilonibrahimi/ExcelLexBot
5abe780a7ab9f7e9e3ac6fd74b0c485516b516a8
[ "Apache-2.0" ]
3
2021-05-11T11:16:18.000Z
2021-06-17T15:49:14.000Z
builder/s3_trigger_handler.py
drilonibrahimi/ExcelLexBot
5abe780a7ab9f7e9e3ac6fd74b0c485516b516a8
[ "Apache-2.0" ]
11
2018-03-10T23:48:07.000Z
2021-09-06T07:56:40.000Z
import sys sys.path.append("/opt/") import os import zipfile from shutil import copyfile from time import sleep import boto3 from boto3.s3.transfer import S3Transfer from BotBuilder import BotBuilder s3 = boto3.client('s3') region = os.environ['AWS_REGION'] dynamodbAutoScaling = os.environ['DynamodbAutoScaling'] lib...
37.361702
88
0.66306
acfd6bf64dfd75b671ee17490ec33d57c199fc70
2,725
py
Python
DetectionOnset.py
gamaievsky/DescripteursHarmoniquesAudio
551e253058502049a91803da8b0412b5ffb1bd60
[ "MIT" ]
null
null
null
DetectionOnset.py
gamaievsky/DescripteursHarmoniquesAudio
551e253058502049a91803da8b0412b5ffb1bd60
[ "MIT" ]
null
null
null
DetectionOnset.py
gamaievsky/DescripteursHarmoniquesAudio
551e253058502049a91803da8b0412b5ffb1bd60
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt import statistics as stat from scipy import signal import math #from scipy import signal import librosa import librosa.display import params WINDOW = params.WINDOW NFFT = int(params.NFFT) STEP = int(params.STEP) ALPHA = params....
27.525253
141
0.611743
acfd6c0b4b8869d8323fbab1f08d9c48b85ec7e6
4,304
py
Python
torch/ao/quantization/fx/_lower_to_native_backend.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
1
2022-01-20T03:49:23.000Z
2022-01-20T03:49:23.000Z
torch/ao/quantization/fx/_lower_to_native_backend.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/ao/quantization/fx/_lower_to_native_backend.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
null
null
null
import torch from torch.nn.quantized.modules.utils import ReferenceableQuantizedModule from . import subgraph_rewriter_FORKED_DO_NOT_USE from .graph_module import QuantizedGraphModule from .quantized_fusion_patterns_and_replacements import get_fbgemm_patterns_and_replacements from .match_utils import is_match from .mat...
46.27957
118
0.725139