hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0aab9dbbc4006ac10614eb6e13f1101929dde5bc | 5,242 | py | Python | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 13 | 2015-02-19T17:17:10.000Z | 2021-12-22T06:48:02.000Z | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 85 | 2015-01-06T15:01:51.000Z | 2018-11-29T09:03:35.000Z | objectstoreSiteMover.py | nikmagini/pilot | 1c84fcf6f7e43b669d2357326cdbe06382ac829f | [
"Apache-2.0"
] | 22 | 2015-06-09T12:08:29.000Z | 2018-11-20T10:07:01.000Z | #!/usr/bin/env python
# Copyright European Organization for Nuclear Research (CERN)
#
# 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
#
# Authors:
... | 44.803419 | 256 | 0.702404 | 1,902 | 0.362839 | 0 | 0 | 0 | 0 | 0 | 0 | 2,622 | 0.500191 |
0aac44d185f9607658c52f2deb96d4cdd7259f28 | 5,384 | py | Python | codigos_videos/Exemplo_2.py | Miguel-mmf/Biblioteca_Dash_em-Python | 63d268f568c02bc9b6c73e1f52ade2475ffbb3c5 | [
"MIT"
] | 1 | 2022-03-17T13:55:33.000Z | 2022-03-17T13:55:33.000Z | codigos_videos/Exemplo_2.py | Miguel-mmf/Biblioteca_Dash_em-Python | 63d268f568c02bc9b6c73e1f52ade2475ffbb3c5 | [
"MIT"
] | null | null | null | codigos_videos/Exemplo_2.py | Miguel-mmf/Biblioteca_Dash_em-Python | 63d268f568c02bc9b6c73e1f52ade2475ffbb3c5 | [
"MIT"
] | 1 | 2020-12-12T21:56:06.000Z | 2020-12-12T21:56:06.000Z | # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Esse arquivo possui algumas modificações em relação ao arquivo apresentado no vídeo do YouTube
# Não deixe de assistir o vídeo e estudar pela documentação ofical D... | 32.630303 | 202 | 0.610513 | 0 | 0 | 0 | 0 | 1,793 | 0.327968 | 0 | 0 | 3,390 | 0.620084 |
0aacd880ac180e15a9b5e161088e8e7de26eb77d | 26,616 | py | Python | Lab 2/javaccflab/formatter.py | tochanenko/MetaProgramming | d37f21432483e39e135fd0dc4f8767836eea1609 | [
"MIT"
] | null | null | null | Lab 2/javaccflab/formatter.py | tochanenko/MetaProgramming | d37f21432483e39e135fd0dc4f8767836eea1609 | [
"MIT"
] | null | null | null | Lab 2/javaccflab/formatter.py | tochanenko/MetaProgramming | d37f21432483e39e135fd0dc4f8767836eea1609 | [
"MIT"
] | null | null | null | import re
import datetime
from javaccflab.lexer import parse
from javaccflab.java_token import TokenType, Token, update_token_value
class Formatter:
def __init__(self, files):
self.__files = files
self.__file = None
self.__tokens = []
self.__to_fix = dict()
def process(self):
... | 42.449761 | 184 | 0.527916 | 26,481 | 0.994928 | 0 | 0 | 1,988 | 0.074692 | 0 | 0 | 1,369 | 0.051435 |
0aad63892e2757c199be78dfebc46a66c8e7becf | 3,783 | py | Python | src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 63 | 2020-04-20T16:31:16.000Z | 2022-03-29T01:05:35.000Z | src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 5 | 2020-04-21T11:31:39.000Z | 2022-03-24T13:42:56.000Z | src/secml/adv/attacks/evasion/c_attack_evasion_pgd_exp.py | zangobot/secml | 95a293e1201c24256eb7fe2f1d2125cd5f318c8c | [
"Apache-2.0"
] | 8 | 2020-04-21T09:16:42.000Z | 2022-02-23T16:28:43.000Z | """
.. module:: CAttackEvasionPGDExp
:synopsis: Evasion attack using Projected Gradient Descent.
.. moduleauthor:: Battista Biggio <battista.biggio@unica.it>
"""
from secml.adv.attacks.evasion import CAttackEvasionPGDLS
class CAttackEvasionPGDExp(CAttackEvasionPGDLS):
"""Evasion attacks using Projected Gradi... | 36.375 | 88 | 0.649749 | 3,555 | 0.93973 | 0 | 0 | 0 | 0 | 0 | 0 | 2,822 | 0.745969 |
0aaf87f9c4ecb098ef160db1b17bb991d9edaacc | 3,172 | py | Python | mail_log_parser/data_manager.py | kinteriq/mail-log-parser | e4242387c1767db611e266d463c817aeb8a74377 | [
"MIT"
] | null | null | null | mail_log_parser/data_manager.py | kinteriq/mail-log-parser | e4242387c1767db611e266d463c817aeb8a74377 | [
"MIT"
] | null | null | null | mail_log_parser/data_manager.py | kinteriq/mail-log-parser | e4242387c1767db611e266d463c817aeb8a74377 | [
"MIT"
] | null | null | null | import sqlite3
class ManageData:
def __init__(self, queue_tracker_db, email_tracker_db, delivery_tracker_db):
self.queue_tracker_db = queue_tracker_db
self.email_tracker_db = email_tracker_db
self.delivery_tracker_db = delivery_tracker_db
def manage_queue_tracker(self, fields):
... | 38.216867 | 80 | 0.596154 | 3,148 | 0.992434 | 0 | 0 | 0 | 0 | 0 | 0 | 915 | 0.288462 |
0ab07fb42baef7b3a437132ef3d9c03a2ec1e478 | 561 | py | Python | Util/training_util.py | lychenyoko/content-aware-gan-compression | fa4193df630dd7b0e7fc52dd60669d8e1aefc39d | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | 47 | 2021-07-04T14:51:38.000Z | 2022-03-17T07:02:06.000Z | Util/training_util.py | lychenyoko/content-aware-gan-compression | fa4193df630dd7b0e7fc52dd60669d8e1aefc39d | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | 9 | 2021-04-10T08:32:08.000Z | 2022-02-21T03:14:40.000Z | Util/training_util.py | lychenyoko/content-aware-gan-compression | fa4193df630dd7b0e7fc52dd60669d8e1aefc39d | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] | 7 | 2021-07-02T08:11:55.000Z | 2022-01-12T18:06:40.000Z | import math
def g_path_regularize(fake_img, latents, mean_path_length, decay=0.01):
noise = torch.randn_like(fake_img) / math.sqrt(
fake_img.shape[2] * fake_img.shape[3]
)
grad, = autograd.grad(
outputs=(fake_img * noise).sum(), inputs=latents, create_graph=True
)
path_lengths = tor... | 33 | 83 | 0.68984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0ab1197213ef76c98f29e3e63d45d1418b5c01ea | 583 | py | Python | app/configs/development_settings.py | DIS-SIN/FlaskShell | 5f6d0cfeac8bea0b274d16a497e3a20cd00b155a | [
"CC0-1.0"
] | null | null | null | app/configs/development_settings.py | DIS-SIN/FlaskShell | 5f6d0cfeac8bea0b274d16a497e3a20cd00b155a | [
"CC0-1.0"
] | null | null | null | app/configs/development_settings.py | DIS-SIN/FlaskShell | 5f6d0cfeac8bea0b274d16a497e3a20cd00b155a | [
"CC0-1.0"
] | null | null | null | ######################################################## FLASK SETTINGS ##############################################################
#Variable used to securly sign cookies
##THIS IS SET IN DEV ENVIRONMENT FOR CONVENIENCE BUT SHOULD BE SET AS AN ENVIRONMENT VARIABLE IN PROD
SECRET_KEY = "dev"
########################... | 58.3 | 134 | 0.476844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 546 | 0.936535 |
0ab246f495c8f138c1a41820ece75a23cb6ba83c | 37,122 | py | Python | autoarray/structures/grids/two_d/grid_2d_util.py | caoxiaoyue/PyAutoArray | e10d3d6a5b8dd031f2ad277486bd539bd5858b2a | [
"MIT"
] | null | null | null | autoarray/structures/grids/two_d/grid_2d_util.py | caoxiaoyue/PyAutoArray | e10d3d6a5b8dd031f2ad277486bd539bd5858b2a | [
"MIT"
] | null | null | null | autoarray/structures/grids/two_d/grid_2d_util.py | caoxiaoyue/PyAutoArray | e10d3d6a5b8dd031f2ad277486bd539bd5858b2a | [
"MIT"
] | null | null | null | import numpy as np
from typing import Tuple, Union, Optional
from autoarray.structures.arrays.two_d import array_2d_util
from autoarray.geometry import geometry_util
from autoarray import numba_util
from autoarray.mask import mask_2d_util
@numba_util.jit()
def grid_2d_centre_from(grid_2d_slim: np.ndarray) ... | 39.787781 | 130 | 0.645574 | 0 | 0 | 0 | 0 | 26,010 | 0.700663 | 0 | 0 | 22,998 | 0.619525 |
0ab2e129e7612f7fdafee8257f8411edf7808187 | 2,689 | py | Python | Proxies/Proxies.py | crown-prince/proxies | a3342d414675dbc89cdf1b953b46ea518f451166 | [
"MIT"
] | 2 | 2018-08-28T06:34:16.000Z | 2018-12-05T01:33:33.000Z | Proxies/Proxies.py | crown-prince/proxies | a3342d414675dbc89cdf1b953b46ea518f451166 | [
"MIT"
] | null | null | null | Proxies/Proxies.py | crown-prince/proxies | a3342d414675dbc89cdf1b953b46ea518f451166 | [
"MIT"
] | 3 | 2017-11-23T03:16:49.000Z | 2019-05-05T05:23:57.000Z | # coding: utf-8
import requests, math
import gevent
from gevent.queue import Queue
from gevent import monkey; monkey.patch_all()
from pyquery import PyQuery
class Proxies():
def __init__(self):
self.domestic_gn_url = 'http://www.kuaidaili.com/free/inha/{0}/'
self.domestic_pt_url = 'http://www.kuai... | 32.39759 | 150 | 0.531424 | 2,558 | 0.902293 | 0 | 0 | 0 | 0 | 0 | 0 | 759 | 0.267725 |
0ab39451258fbf9b0748574dd450aedbe38e6382 | 21,092 | py | Python | parallelformers/policies/base/auto.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 454 | 2021-07-18T02:51:23.000Z | 2022-03-31T04:00:53.000Z | parallelformers/policies/base/auto.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 16 | 2021-07-18T10:47:21.000Z | 2022-03-22T18:49:57.000Z | parallelformers/policies/base/auto.py | Oaklight/parallelformers | 57fc36f81734c29aaf814e092ce13681d3c28ede | [
"Apache-2.0"
] | 33 | 2021-07-18T04:48:28.000Z | 2022-03-14T22:16:36.000Z | # Copyright 2021 TUNiB 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, softw... | 30.836257 | 88 | 0.585815 | 20,383 | 0.966385 | 0 | 0 | 0 | 0 | 0 | 0 | 908 | 0.043049 |
0ab472bf8d8e22693d678c504a9b881ed31f9478 | 3,042 | py | Python | main/upper_air_humidity.py | RyosukeDTomita/gcmPlot | 430f8af353daf464b5c5566f1c163d5bef63f584 | [
"MIT"
] | null | null | null | main/upper_air_humidity.py | RyosukeDTomita/gcmPlot | 430f8af353daf464b5c5566f1c163d5bef63f584 | [
"MIT"
] | null | null | null | main/upper_air_humidity.py | RyosukeDTomita/gcmPlot | 430f8af353daf464b5c5566f1c163d5bef63f584 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Name: upper_air_humidity.py
Make upper level weather chart.
Usage: python3 upper_air_humidity.py --file <ncfile>
Author: Ryosuke Tomita
Date: 2022/01/07
"""
import argparse
from ncmagics import fetchtime, japanmap, meteotool
def parse_args() -> dict:
"""parse_args.
set file path.
A... | 31.040816 | 82 | 0.575608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,074 | 0.353057 |
0ab496b4beb92ca3fe52c60cfcbb81b2b17b5de3 | 22,976 | py | Python | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 2 | 2021-04-24T08:07:45.000Z | 2021-04-24T08:07:46.000Z | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 14 | 2020-12-26T22:01:38.000Z | 2022-02-09T22:41:46.000Z | serde/src/gen/thrift/gen-py/megastruct/ttypes.py | amCharlie/hive | e1870c190188a3b706849059969c8bec2220b6d2 | [
"Apache-2.0"
] | 7 | 2021-08-16T07:49:24.000Z | 2022-03-17T09:04:34.000Z | #
# Autogenerated by Thrift Compiler (0.13.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | 43.680608 | 430 | 0.550531 | 20,615 | 0.897241 | 0 | 0 | 0 | 0 | 0 | 0 | 1,663 | 0.07238 |
0ab4aa21cfd4871d1766355bdd0923074d0f5c05 | 32,515 | py | Python | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2020-07-08T13:20:27.000Z | 2020-07-08T13:20:27.000Z | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | 6 | 2020-06-24T18:56:06.000Z | 2022-02-26T08:53:11.000Z | gpMgmt/bin/gpload_test/gpload2/TEST.py | Tylarb/gpdb | 15e1341cfbac7f70d2086a9a1d46149a82765b5e | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import unittest
import sys
import os
import string
import time
import socket
import fileinput
import platform
import re
try:
import subprocess32 as subprocess
except:
import subprocess
import pg
def get_port_from_conf():
file = os.environ.get('MASTER_DATA_DIRECTORY')+'/postgresql.con... | 42.172503 | 421 | 0.611041 | 18,587 | 0.571644 | 0 | 0 | 0 | 0 | 0 | 0 | 12,940 | 0.39797 |
0ab4e78536a96c9504186fa7b02c118e2936a403 | 1,406 | py | Python | code_week19_831_96/biao_shi_shu_zi.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | code_week19_831_96/biao_shi_shu_zi.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | code_week19_831_96/biao_shi_shu_zi.py | dylanlee101/leetcode | b059afdadb83d504e62afd1227107de0b59557af | [
"Apache-2.0"
] | null | null | null | '''
请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。例如,字符串"+100"、"5e2"、"-123"、"3.1416"、"-1E-16"、"0123"都表示数值,但"12e"、"1a3.14"、"1.2.3"、"+-5"及"12e+5.4"都不是。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/biao-shi-shu-zhi-de-zi-fu-chuan-lcof
'''
class Solution:
def isNumber(self, s: str) -> bool:
states = [
{ ' ... | 45.354839 | 129 | 0.345661 | 1,180 | 0.76524 | 0 | 0 | 0 | 0 | 0 | 0 | 729 | 0.472763 |
0ab611b64794b954266ea15a077d39ba3447ef27 | 13,211 | py | Python | teeth_overlord/tests/unit/networks/neutron.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/tests/unit/networks/neutron.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | teeth_overlord/tests/unit/networks/neutron.py | rackerlabs/teeth-overlord | d76f6a03853d964b556aa1aa0f7011b4d1a6f208 | [
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Rackspace, 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, software... | 32.221951 | 78 | 0.626448 | 8,178 | 0.61903 | 0 | 0 | 0 | 0 | 0 | 0 | 3,684 | 0.278859 |
0ab73f13b7fac0bb315926410cb3d00950f04053 | 114 | py | Python | classes/settings.py | johnyburd/glucometer | 075a48cff38e0570960fc2b8968bcb8b5ddd647f | [
"MIT"
] | 12 | 2016-11-02T09:15:32.000Z | 2021-04-08T18:42:01.000Z | classes/settings.py | johnyburd/glucometer | 075a48cff38e0570960fc2b8968bcb8b5ddd647f | [
"MIT"
] | null | null | null | classes/settings.py | johnyburd/glucometer | 075a48cff38e0570960fc2b8968bcb8b5ddd647f | [
"MIT"
] | 3 | 2018-10-18T15:59:57.000Z | 2021-01-20T21:03:48.000Z | def init():
global brightness
global calibration_mode
brightness = 500
calibration_mode = False
| 14.25 | 28 | 0.692982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0ab7ab472dc6bde156894c22490a3de97781b2d7 | 4,508 | py | Python | typeidea/blog/views.py | Phoenix-sy/typeidea | e913218872c7f4e9afc290eb42b4ca8c8e4523be | [
"MIT"
] | null | null | null | typeidea/blog/views.py | Phoenix-sy/typeidea | e913218872c7f4e9afc290eb42b4ca8c8e4523be | [
"MIT"
] | 4 | 2020-06-06T01:37:34.000Z | 2021-09-08T01:49:56.000Z | typeidea/blog/views.py | Phoenix-sy/typeidea | e913218872c7f4e9afc290eb42b4ca8c8e4523be | [
"MIT"
] | null | null | null | from datetime import date
from django.core.cache import cache
from django.db.models import Q, F
from django.shortcuts import render
from django.shortcuts import get_object_or_404
from django.views.generic import ListView, DetailView
#from silk.profiling.profiler import silk_profile
from config.models import SideBar
f... | 24.367568 | 72 | 0.717613 | 3,324 | 0.730228 | 0 | 0 | 0 | 0 | 0 | 0 | 1,174 | 0.257909 |
0ab8196f812a9bd1c5cff6d84c43cd3a82467a55 | 618 | py | Python | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | 1 | 2017-04-25T10:56:01.000Z | 2017-04-25T10:56:01.000Z | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | null | null | null | VMI/VMItest.py | thomasbarillot/DAQ | 20126655f74194757d25380680af9429ff27784e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 7 11:38:18 2016
@author: thomasbarillot
VMI control
"""
from ctypes import cdll
#slib="VMIcrtl_ext.dll"
#hlib=cdll('VMIcrtl.dll')
import VMIcrtl_ext
test=VMIcrtl_ext.VMIcrtl()
#%%
print test.GetFilename()
#%%
test.setFilename('20161115_1841.dat')
print test.GetFilen... | 12.875 | 37 | 0.699029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 195 | 0.315534 |
0ab878278314d67f6d0be9f6568f133ce9e1ee76 | 8,119 | py | Python | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-11T09:16:43.000Z | 2021-01-12T20:07:23.000Z | var/spack/repos/builtin/packages/openssl/package.py | vitodb/spack | b9ab1de4c5f7b21d9f9cb88b7251820a48e82d27 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2021-01-06T18:58:26.000Z | 2021-01-06T18:58:26.000Z | # Copyright 2013-2020 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)
import llnl.util.tty as tty
from spack import *
import spack.architecture
import os
class Openssl(Package): # Uses F... | 51.713376 | 96 | 0.711787 | 7,832 | 0.964651 | 0 | 0 | 1,369 | 0.168617 | 0 | 0 | 5,163 | 0.635916 |
0ab9be78769ca53a9456cd93a3fd3ab2a85a0c35 | 4,799 | py | Python | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | vispy/util/profiler.py | izaid/vispy | 402cf95bfef88d70c9c45bb27c532ed72944e14a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# Adapted from PyQtGraph
import sys
from . import ptime
from .. import config
class Profiler(object):
"""Simple profiler allowing directed, hierarchical measurement of ti... | 34.52518 | 79 | 0.583663 | 4,574 | 0.953115 | 0 | 0 | 0 | 0 | 0 | 0 | 1,965 | 0.40946 |
0aba3f90d5e6185589e45a9a8d8d372bccb752c2 | 764 | py | Python | tests/test_processor.py | vijithv/djangosaml2idp | 8a238063da55bf4823bdc2192168171767c4e056 | [
"Apache-2.0"
] | 1 | 2021-11-03T17:53:29.000Z | 2021-11-03T17:53:29.000Z | tests/test_processor.py | vijithv/djangosaml2idp | 8a238063da55bf4823bdc2192168171767c4e056 | [
"Apache-2.0"
] | null | null | null | tests/test_processor.py | vijithv/djangosaml2idp | 8a238063da55bf4823bdc2192168171767c4e056 | [
"Apache-2.0"
] | 1 | 2020-04-23T03:52:10.000Z | 2020-04-23T03:52:10.000Z | from django.contrib.auth import get_user_model
from djangosaml2idp.processors import BaseProcessor
User = get_user_model()
class TestBaseProcessor:
def test_extract_user_id_configure_by_user_class(self):
user = User()
user.USERNAME_FIELD = 'email'
user.email = 'test_email'
asse... | 29.384615 | 97 | 0.722513 | 637 | 0.83377 | 0 | 0 | 0 | 0 | 0 | 0 | 188 | 0.246073 |
0abaca3d1ed91ca49de4c9b160592c473142f544 | 1,840 | py | Python | com/ds/SingleLinkedList.py | sasikrishna/python-programs | 937002f37c86efc5c876b37c7b42634ca629fffc | [
"MIT"
] | null | null | null | com/ds/SingleLinkedList.py | sasikrishna/python-programs | 937002f37c86efc5c876b37c7b42634ca629fffc | [
"MIT"
] | null | null | null | com/ds/SingleLinkedList.py | sasikrishna/python-programs | 937002f37c86efc5c876b37c7b42634ca629fffc | [
"MIT"
] | null | null | null |
class Node:
def __init__(self, data):
self.data = data
self.prev = None
self.next = None
class SingleLinkedList:
def __init__(self):
self.head = None
def add(self, ele):
new_node = Node(ele)
if self.head is None:
self.head = new_node
... | 23.896104 | 56 | 0.563043 | 1,429 | 0.77663 | 0 | 0 | 0 | 0 | 0 | 0 | 107 | 0.058152 |
0abb04a5bd64547bc5fd647c86d2afb7977fd604 | 55 | py | Python | src/data_setup/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | null | null | null | src/data_setup/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | 1 | 2021-08-07T07:39:17.000Z | 2021-08-07T07:39:17.000Z | src/data_setup/__init__.py | data-stories/chart-experiment | f4d7c86c32edca8bcb474cce5f6312138acf5cc9 | [
"MIT"
] | 1 | 2021-08-06T16:27:00.000Z | 2021-08-06T16:27:00.000Z | __all__ = ["data_setup", "chart_params", "base_params"] | 55 | 55 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 39 | 0.709091 |
0abb3c732259b19c9e708a20325a84c61a393244 | 1,851 | py | Python | src/aiocomcrawl/models.py | rudaporto/aiocomcrawl | 9f76097d9f82c5790f968d26a6f1c3908084569b | [
"Apache-2.0"
] | null | null | null | src/aiocomcrawl/models.py | rudaporto/aiocomcrawl | 9f76097d9f82c5790f968d26a6f1c3908084569b | [
"Apache-2.0"
] | null | null | null | src/aiocomcrawl/models.py | rudaporto/aiocomcrawl | 9f76097d9f82c5790f968d26a6f1c3908084569b | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from typing import Any, List, Optional, Union
from pydantic import BaseModel, Field, HttpUrl, validator
from pydantic.dataclasses import dataclass
class Index(BaseModel):
id: str
name: str
time_gate: HttpUrl = Field(alias="timegate")
cdx_api: HttpUrl = Field(alias="cdx-a... | 23.730769 | 81 | 0.678012 | 1,604 | 0.866559 | 0 | 0 | 540 | 0.291734 | 0 | 0 | 319 | 0.172339 |
0abb4de3626dcbaf10f7a01c7d732b38a10d112a | 3,453 | py | Python | fs/error_tools.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/error_tools.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/error_tools.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | """Tools for managing OS errors.
"""
from __future__ import print_function
from __future__ import unicode_literals
import errno
from contextlib import contextmanager
import sys
import platform
from . import errors
from six import reraise
_WINDOWS_PLATFORM = platform.system() == 'Windows'
class _ConvertOSErrors(... | 31.390909 | 78 | 0.650449 | 2,356 | 0.682305 | 690 | 0.199826 | 706 | 0.20446 | 0 | 0 | 635 | 0.183898 |
0abbc3e1d5afde9470d734d62bcb0511ac93cadd | 5,390 | py | Python | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | 1 | 2017-08-22T14:17:10.000Z | 2017-08-22T14:17:10.000Z | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T00:47:22.000Z | 2021-03-26T00:47:22.000Z | samples/samplenetconf/demos/vr_demo3.py | gaberger/pysdn | 67442e1c259d8ca8620ada95b95977e3852463c5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2015, BROCADE COMMUNICATIONS SYSTEMS, INC
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright n... | 34.113924 | 78 | 0.62115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,667 | 0.494805 |
0abcb370c0d40bd870443ed0b022026c144555c8 | 3,829 | py | Python | python/index.py | stijnvanhulle/EscapeGame | ae3e35334d64394a0f696149bfd56c1fd7a97681 | [
"MIT"
] | 1 | 2020-08-16T02:52:06.000Z | 2020-08-16T02:52:06.000Z | python/index.py | stijnvanhulle/EscapeGame | ae3e35334d64394a0f696149bfd56c1fd7a97681 | [
"MIT"
] | 1 | 2021-10-18T18:39:08.000Z | 2021-10-18T18:39:08.000Z | python/index.py | stijnvanhulle/EscapeGame | ae3e35334d64394a0f696149bfd56c1fd7a97681 | [
"MIT"
] | null | null | null | # @Author: Stijn Van Hulle <stijnvanhulle>
# @Date: 2016-11-28T13:51:38+01:00
# @Email: me@stijnvanhulle.be
# @Last modified by: stijnvanhulle
# @Last modified time: 2016-12-20T12:51:07+01:00
# @License: stijnvanhulle.be
#!/usr/bin/env python
import time
import datetime
import math
import sys
import json
impor... | 25.357616 | 105 | 0.71298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 973 | 0.254113 |
0abcc62b08fba05c95b291d22e16bd5e45062b59 | 204 | py | Python | Codility/python/tape_equilibrium.py | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 61 | 2020-09-26T19:57:44.000Z | 2022-03-09T18:51:44.000Z | Codility/python/tape_equilibrium.py | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 88 | 2020-09-19T20:00:27.000Z | 2021-10-31T09:41:57.000Z | Codility/python/tape_equilibrium.py | ajeet1308/code_problems | 5d99839b6319295c6d81dd86775c46a536e7a1ca | [
"MIT"
] | 218 | 2020-09-20T08:18:03.000Z | 2022-01-30T23:13:16.000Z | def solution(A):
total = sum(A)
m = float('inf')
left_sum = 0
for n in A[:-1]:
left_sum += n
v = abs(total - 2*left_sum)
if v < m:
m = v
return m
| 15.692308 | 35 | 0.426471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0.02451 |
0abd370b6b3c7d06f851a685777b6e689527ccf7 | 8,184 | py | Python | peps/converters.py | idjaw/pythondotorg | 8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649 | [
"Apache-2.0"
] | null | null | null | peps/converters.py | idjaw/pythondotorg | 8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649 | [
"Apache-2.0"
] | 2 | 2022-01-13T03:57:42.000Z | 2022-03-12T01:01:40.000Z | peps/converters.py | idjaw/pythondotorg | 8e4babbc7ad15ed52b4f66fdd4ab43c2dd3bd649 | [
"Apache-2.0"
] | null | null | null | import re
import os
from bs4 import BeautifulSoup
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.files import File
from pages.models import Page, Image
PEP_TEMPLATE = 'pages/pep-page.html'
pep_url = lambda num: 'dev/peps/pep-{}/'.format(num)
def check_pat... | 29.228571 | 85 | 0.615225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,175 | 0.265762 |
0abda1cb427ed8f070a7f02e638f35191861013c | 68 | py | Python | venv/Lib/site-packages/toolz/sandbox/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 3,749 | 2015-01-01T06:53:12.000Z | 2022-03-31T13:36:10.000Z | venv/Lib/site-packages/toolz/sandbox/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 276 | 2015-01-01T15:34:41.000Z | 2022-03-17T02:16:35.000Z | venv/Lib/site-packages/toolz/sandbox/__init__.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 256 | 2015-01-18T04:29:48.000Z | 2022-03-31T00:10:13.000Z | from .core import EqualityHashKey, unzip
from .parallel import fold
| 22.666667 | 40 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0abdfc5e117d17fbbf96aa6e5e9c1b706bacee2c | 95 | py | Python | interface/app/__init__.py | caglorithm/accel | 7fe5c13ea9559565c599633bdb3318c8fbc57088 | [
"MIT"
] | 31 | 2019-12-07T01:27:19.000Z | 2021-12-19T08:12:18.000Z | interface/app/__init__.py | caglorithm/accel | 7fe5c13ea9559565c599633bdb3318c8fbc57088 | [
"MIT"
] | null | null | null | interface/app/__init__.py | caglorithm/accel | 7fe5c13ea9559565c599633bdb3318c8fbc57088 | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__, static_folder='static')
from app import routes
| 15.833333 | 45 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.084211 |
0abe087af168de7f10f0e7fc51d33adc2b129507 | 2,421 | py | Python | implementations/python3/tests/CAPDU.py | sebastien-riou/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 4 | 2020-05-13T10:13:55.000Z | 2021-10-20T04:43:07.000Z | implementations/python3/tests/CAPDU.py | TiempoSecure/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 4 | 2020-07-22T16:06:31.000Z | 2021-07-25T19:51:41.000Z | implementations/python3/tests/CAPDU.py | TiempoSecure/SATL | b95d0e784d2e8e1384381d4d5b8b448d3d1798cf | [
"Apache-2.0"
] | 2 | 2019-05-12T21:15:00.000Z | 2020-09-23T09:05:24.000Z | import os
import pysatl
from pysatl import CAPDU
if __name__ == "__main__":
def check(hexstr, expected):
capdu = CAPDU.from_hexstr(hexstr)
if capdu != expected:
raise Exception("Mismatch for input '"+hexstr+"'\nActual: "+str(capdu)+"\nExpected: "+str(expected))
def gencase(* ... | 32.28 | 114 | 0.53449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 418 | 0.172656 |
0abf250849dcb075b82b1ca50e27cc3adefcc742 | 3,993 | py | Python | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | src/mgls_bootstrapping.py | rosich/mgls | 64c924f59adba2dddf44bb70a84868173f0b7120 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from math import sin, cos, tan, atan, pi, acos, sqrt, exp, log10
import sys, os
import copy
import random
import numpy as np
import multiprocessing as mp
import ConfigParser
sys.path.append('./bin')
import mGLS, mMGLS
sys.path.append('./src')
from EnvGlobals import Globals
import mgls_io
import mgls_m... | 31.690476 | 91 | 0.672176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,094 | 0.273979 |
0abf69ab54ec15326e13cf19d070cb3b005d83d2 | 495 | py | Python | mgmt/src/constants.py | pcaruana/sombrio | 3b669fc83e0227a69b673b5555d88e15b55c397c | [
"MIT"
] | null | null | null | mgmt/src/constants.py | pcaruana/sombrio | 3b669fc83e0227a69b673b5555d88e15b55c397c | [
"MIT"
] | null | null | null | mgmt/src/constants.py | pcaruana/sombrio | 3b669fc83e0227a69b673b5555d88e15b55c397c | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
"""
constants.py - Contains all constants used by the device manager
Author:
- Pablo Caruana (pablo dot caruana at gmail dot com)
Date: 12/3/2016
"""
number_of_rows = 3 # total number rows of Index Servers
number_of_links = 5 # number of links to be ... | 38.076923 | 79 | 0.656566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 360 | 0.727273 |
0abfe16c350b956230d3407edf8eac65ac07365b | 1,015 | py | Python | XDoG/XDoG.py | STomoya/sketchify | 93c068042f02172505457cc15cb0bef673666be3 | [
"MIT"
] | null | null | null | XDoG/XDoG.py | STomoya/sketchify | 93c068042f02172505457cc15cb0bef673666be3 | [
"MIT"
] | null | null | null | XDoG/XDoG.py | STomoya/sketchify | 93c068042f02172505457cc15cb0bef673666be3 | [
"MIT"
] | null | null | null |
import cv2
import numpy as np
def DoG(image, size, sigma, k=1.6, gamma=1.):
g1 = cv2.GaussianBlur(image, (size, size), sigma)
g2 = cv2.GaussianBlur(image, (size, size), sigma*k)
return g1 - gamma * g2
def XDoG(image, size, sigma, eps, phi, k=1.6, gamma=1.):
eps /= 255
d = DoG(image, size, sigma, ... | 26.025641 | 60 | 0.613793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 240 | 0.236453 |
0ac1668c9f200fa1e8cd7c054395a35fadf64190 | 8,070 | py | Python | lm/validate.py | ericlin8545/grover | 3ac6e506f2e1a859d98cc2c3fb57ba251be31484 | [
"Apache-2.0"
] | 864 | 2019-06-18T18:53:58.000Z | 2022-03-04T22:36:52.000Z | lm/validate.py | ericlin8545/grover | 3ac6e506f2e1a859d98cc2c3fb57ba251be31484 | [
"Apache-2.0"
] | 62 | 2019-06-20T19:37:39.000Z | 2022-02-10T00:14:49.000Z | lm/validate.py | ericlin8545/grover | 3ac6e506f2e1a859d98cc2c3fb57ba251be31484 | [
"Apache-2.0"
] | 224 | 2019-06-18T18:45:56.000Z | 2022-03-29T17:46:30.000Z | # Original work Copyright 2018 The Google AI Language Team Authors.
# Modified work Copyright 2019 Rowan Zellers
#
# 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/... | 37.534884 | 108 | 0.688352 | 652 | 0.080793 | 0 | 0 | 0 | 0 | 0 | 0 | 3,003 | 0.372119 |
0ac16994f053988d4add08873e022a2c2ce12964 | 5,055 | py | Python | robo/fmin/entropy_search.py | fuhuifang/RoBo | 036bbaa0e59032577e2611d8ba304384b397c7f6 | [
"BSD-3-Clause"
] | null | null | null | robo/fmin/entropy_search.py | fuhuifang/RoBo | 036bbaa0e59032577e2611d8ba304384b397c7f6 | [
"BSD-3-Clause"
] | null | null | null | robo/fmin/entropy_search.py | fuhuifang/RoBo | 036bbaa0e59032577e2611d8ba304384b397c7f6 | [
"BSD-3-Clause"
] | null | null | null | import logging
import george
import numpy as np
from robo.priors.default_priors import DefaultPrior
from robo.models.gaussian_process import GaussianProcess
from robo.models.gaussian_process_mcmc import GaussianProcessMCMC
from robo.maximizers.random_sampling import RandomSampling
from robo.maximizers.scipy_optimizer ... | 39.492188 | 112 | 0.656775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,692 | 0.334718 |
0ac18453ebf1417fb6591ada4674116fa981b20f | 402 | py | Python | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | biserici_inlemnite/app/migrations/0096_bisericapage_datare_an.py | ck-tm/biserici-inlemnite | c9d12127b92f25d3ab2fcc7b4c386419fe308a4e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-10-29 11:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0095_bisericapage_utitle'),
]
operations = [
migrations.AddField(
model_name='bisericapage',
name='datare_an... | 21.157895 | 61 | 0.606965 | 308 | 0.766169 | 0 | 0 | 0 | 0 | 0 | 0 | 104 | 0.258706 |
0ac20eefa93e74fa6f679df0410321e3088f3827 | 664 | py | Python | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | bcgov/mds | 6c427a66a5edb4196222607291adef8fd6677038 | [
"Apache-2.0"
] | 25 | 2018-07-09T19:04:37.000Z | 2022-03-15T17:27:10.000Z | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 983 | 2018-04-25T20:08:07.000Z | 2022-03-31T21:45:20.000Z | services/core-api/app/api/mms_now_submissions/models/surface_bulk_sample_activity.py | areyeslo/mds | e8c38e593e09b78e2a57009c0d003d6c4bfa32e6 | [
"Apache-2.0"
] | 58 | 2018-05-15T22:35:50.000Z | 2021-11-29T19:40:52.000Z | from app.api.utils.models_mixins import Base
from app.extensions import db
class MMSSurfaceBulkSampleActivity(Base):
__tablename__ = "surface_bulk_sample_activity"
__table_args__ = {"schema": "mms_now_submissions"}
id = db.Column(db.Integer, primary_key=True)
messageid = db.Column(db.Integer, db.Forei... | 36.888889 | 97 | 0.724398 | 586 | 0.88253 | 0 | 0 | 0 | 0 | 0 | 0 | 137 | 0.206325 |
0ac2127dd527328224d7a0dde62602b62da1bdb4 | 678 | py | Python | lgtv_rs232/commands/remote_control/remote_control_lock.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | lgtv_rs232/commands/remote_control/remote_control_lock.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | lgtv_rs232/commands/remote_control/remote_control_lock.py | davo22/lgtv_rs232 | 40562cddf7acdf6fa95124029595e3838dd9e7b0 | [
"MIT"
] | null | null | null | from enum import Enum
class RemoteControlLock(Enum):
OFF = 0
ON = 1
def map_to_state(data: int):
return RemoteControlLock(data)
class RemoteControlLockCommands(object):
_command = "km"
def __init__(self, send_command):
self._send_command = send_command
async def get_state(self):
... | 22.6 | 81 | 0.70649 | 584 | 0.861357 | 0 | 0 | 0 | 0 | 234 | 0.345133 | 4 | 0.0059 |
0ac365363d4be305aa9c1fbf0e6475792a5ae142 | 253 | py | Python | com/bridgelabz/programs/powerof2.py | aashishogale/FunctionalPrograms-Python- | d297bdb78112ef03274a10a58efc90da27f51b14 | [
"MIT"
] | null | null | null | com/bridgelabz/programs/powerof2.py | aashishogale/FunctionalPrograms-Python- | d297bdb78112ef03274a10a58efc90da27f51b14 | [
"MIT"
] | null | null | null | com/bridgelabz/programs/powerof2.py | aashishogale/FunctionalPrograms-Python- | d297bdb78112ef03274a10a58efc90da27f51b14 | [
"MIT"
] | null | null | null | import sys
from com.bridgelabz.utility.Utility import Utility
class PowerOf2:
def start(self):
number=int(sys.argv[1])
print(number)
for i in Utility().powerof2(number):
print(i)
return
PowerOf2().start() | 23 | 50 | 0.624506 | 171 | 0.675889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0ac3dcb6f4a277998e57f0001095aaf45bef6fae | 2,256 | py | Python | app/main.py | MichaelLeeman/Job_Web_Scraper | 29205d84f1190830a77174ce8272f4f79bb3468b | [
"MIT"
] | null | null | null | app/main.py | MichaelLeeman/Job_Web_Scraper | 29205d84f1190830a77174ce8272f4f79bb3468b | [
"MIT"
] | 4 | 2020-05-25T19:54:58.000Z | 2020-05-25T19:55:03.000Z | app/main.py | MichaelLeeman/Job_Web_Scraper | 29205d84f1190830a77174ce8272f4f79bb3468b | [
"MIT"
] | 1 | 2020-07-02T13:06:52.000Z | 2020-07-02T13:06:52.000Z | # This program scraps data from job postings on the website workinstartups.com and appends it to an excel worksheet.
import os
from datetime import datetime, timedelta
from selenium import webdriver
from app import web_scraper
from app import excel
job_list, last_date = [], None
file_path = os.path.abspath("main.py")... | 47 | 116 | 0.735816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,082 | 0.47961 |
0ac3e100821a287c22e2857e9d532f5d8e059c8b | 2,723 | py | Python | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | 1 | 2021-12-23T00:36:43.000Z | 2021-12-23T00:36:43.000Z | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | null | null | null | src/trusted/validator_arm/dgen_output.py | kapkic/native_client | 51c8bc8c249d55606232ae011bdfc8b4cab3d794 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python2
#
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
"""
Some common boilerplates and helper functions for source code generation
in files dgen_test_output.py and dgen_decode_out... | 31.298851 | 76 | 0.693353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,361 | 0.499816 |
0ac3e6f75c6ad2e83d2f026142ba224b4bab8c20 | 2,507 | py | Python | src/data_loader/input_data_loader.py | ChristopherBrix/Debona | f000f3d483b2cc592233d0ba2a1a0327210562c8 | [
"BSD-2-Clause"
] | 2 | 2020-07-26T09:48:22.000Z | 2021-09-30T01:51:13.000Z | src/data_loader/input_data_loader.py | ChristopherBrix/Debona | f000f3d483b2cc592233d0ba2a1a0327210562c8 | [
"BSD-2-Clause"
] | 2 | 2022-01-13T03:56:13.000Z | 2022-03-12T01:03:29.000Z | src/data_loader/input_data_loader.py | ChristopherBrix/Debona | f000f3d483b2cc592233d0ba2a1a0327210562c8 | [
"BSD-2-Clause"
] | null | null | null |
"""
Functions for loading input data.
Author: Patrick Henriksen <patrick@henriksen.as>
"""
import os
import numpy as np
def load_img(path: str, img_nums: list, shape: tuple) -> np.array:
"""
Loads a image in the human-readable format.
Args:
path:
The path to the to the folder with... | 25.845361 | 101 | 0.603111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,207 | 0.481452 |
0ac42e49c824529d0aa71dbe888c2a691322545e | 2,527 | py | Python | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | ui_splash_screen.py | hirokiyaginuma/scriptspinner-software | 87185f237f76feeee33a2b74a4d05be088bde011 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'splash_screen.ui'
##
## Created by: Qt User Interface Compiler version 5.15.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
############... | 37.716418 | 140 | 0.646617 | 2,044 | 0.808864 | 0 | 0 | 0 | 0 | 0 | 0 | 862 | 0.341116 |
0ac44ba5690cb44ecf9e208ad61f69b8762610fd | 634 | py | Python | tools/leetcode.112.Path Sum/leetcode.112.Path Sum.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | 4 | 2015-10-10T00:30:55.000Z | 2020-07-27T19:45:54.000Z | tools/leetcode.112.Path Sum/leetcode.112.Path Sum.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | tools/leetcode.112.Path Sum/leetcode.112.Path Sum.submission10.py | tedye/leetcode | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | [
"MIT"
] | null | null | null | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @param {integer} sum
# @return {boolean}
def hasPathSum(self, root, sum):
if not root: ret... | 634 | 634 | 0.545741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 634 | 1 |
0ac4b5f3fcc2b83c0b6c655a23b542fa299d00d2 | 41,041 | py | Python | pandas/io/sql.py | danbirken/pandas | fa8a5ca1dd27c4169727070ddbdcb248002fddb4 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | pandas/io/sql.py | danbirken/pandas | fa8a5ca1dd27c4169727070ddbdcb248002fddb4 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | pandas/io/sql.py | danbirken/pandas | fa8a5ca1dd27c4169727070ddbdcb248002fddb4 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | """
Collection of query wrappers / abstractions to both facilitate data
retrieval and to reduce dependency on DB-specific API.
"""
from __future__ import print_function, division
from datetime import datetime, date, timedelta
import warnings
import traceback
import itertools
import re
import numpy as np
import pandas... | 33.806425 | 103 | 0.608002 | 19,131 | 0.466144 | 0 | 0 | 63 | 0.001535 | 0 | 0 | 17,007 | 0.41439 |
0ac4d53d399503faaa282a5d9403e61ac65e0976 | 311 | py | Python | Dataset/Leetcode/train/58/28.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/58/28.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/58/28.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, s):
"""
:type s: str
:rtype: int
"""
cnt, tail = 0, len(s) - 1
while tail >= 0 and s[tail] == ' ':
tail -= 1
while tail >= 0 and s[tail] != ' ':
cnt += 1
tail -= 1
return cnt
| 20.733333 | 43 | 0.360129 | 308 | 0.990354 | 0 | 0 | 0 | 0 | 0 | 0 | 62 | 0.199357 |
0ac61484010824f5bc86d5e3f43da1576d3d9bbb | 4,411 | py | Python | Systerm/meta.py | ZytroCode/Systerm | 688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7 | [
"MIT"
] | 1 | 2022-03-01T02:36:29.000Z | 2022-03-01T02:36:29.000Z | Systerm/meta.py | ZytroCode/Systerm | 688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7 | [
"MIT"
] | 1 | 2022-03-04T03:20:50.000Z | 2022-03-04T03:20:50.000Z | Systerm/meta.py | ZytroCode/Systerm | 688b1a9eab51ec2d2fcc8e921d57ae4ae585a1b7 | [
"MIT"
] | null | null | null | """Meta is a module contains objects that will customize the behavior of python."""
from abc import ABC
from abc import ABCMeta
from abc import abstractmethod
from typing import Any
from typing import Callable
import Systerm
# Metaclass
class Metaclass(ABCMeta):
"""A metaclass to customize the behavior of all cla... | 30.42069 | 102 | 0.608025 | 3,071 | 0.696214 | 0 | 0 | 0 | 0 | 0 | 0 | 1,349 | 0.305826 |
0ac6cf77a3b421f63bd83476f536c84c12d3066c | 11,859 | py | Python | samples/apps/txregulator/tests/txregulatorclient.py | iqsarv/CCF | 5cc33a1f0e06eb2a25dc1ebd0e2153881962b889 | [
"Apache-2.0"
] | 1 | 2020-02-03T21:57:22.000Z | 2020-02-03T21:57:22.000Z | samples/apps/txregulator/tests/txregulatorclient.py | kuychaco/CCF | e11acde3be6a7d2213fe5b406b959bb5bb64361d | [
"Apache-2.0"
] | null | null | null | samples/apps/txregulator/tests/txregulatorclient.py | kuychaco/CCF | e11acde3be6a7d2213fe5b406b959bb5bb64361d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
import infra.e2e_args
import infra.ccf
import infra.jsonrpc
import logging
from time import gmtime, strftime
import csv
import random
from loguru import logger as LOG
class AppUser:
def __init__(self, network, n... | 39.795302 | 117 | 0.474239 | 484 | 0.040813 | 0 | 0 | 0 | 0 | 0 | 0 | 2,881 | 0.242938 |
0ac72633419a62f181f2995c29a463e6cede8eca | 4,925 | py | Python | src/finmag/sim/hysteresis.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 10 | 2018-03-24T07:43:17.000Z | 2022-03-26T10:42:27.000Z | src/finmag/sim/hysteresis.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 21 | 2018-03-26T15:08:53.000Z | 2021-07-10T16:11:14.000Z | src/finmag/sim/hysteresis.py | davidcortesortuno/finmag | 9ac0268d2c0e45faf1284cee52a73525aa589e2b | [
"BSL-1.0"
] | 7 | 2018-04-09T11:50:48.000Z | 2021-06-10T09:23:25.000Z | import os
import re
import glob
import logging
import textwrap
import fileinput
import numpy as np
from finmag.energies import Zeeman
from finmag.util.helpers import norm
log = logging.getLogger(name="finmag")
def hysteresis(sim, H_ext_list, fun=None, **kwargs):
"""
Set the applied field to the first value i... | 34.929078 | 79 | 0.650355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,512 | 0.713096 |
0ac87693a78b8ba6514e5ac5aa8d9530546bb44b | 39,691 | py | Python | uiSetup.py | smokedpirate/Encryption-hash-generator | 47bf3f1f6b6b24ca3e9078fefe46b1e6409d59e5 | [
"Apache-2.0"
] | 4 | 2020-09-24T16:34:03.000Z | 2020-10-23T09:52:59.000Z | uiSetup.py | Atharv-Khatri/Password-Encryption-Generator-Timathon-Submission- | 3a3db2fa9dc27c8f604d0eb0917e8ffa717f4786 | [
"Apache-2.0"
] | 1 | 2020-08-02T08:46:06.000Z | 2020-08-02T08:46:06.000Z | uiSetup.py | Atharv-Khatri/Password-Encryption-Generator-Timathon-Submission- | 3a3db2fa9dc27c8f604d0eb0917e8ffa717f4786 | [
"Apache-2.0"
] | 1 | 2020-08-02T08:33:46.000Z | 2020-08-02T08:33:46.000Z |
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5 import QtGui, QtCore
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(577, 341)
palette = QtGui.QPalette()
brush = QtGui.QBrush(QtGui.QColor(255, 255... | 54.222678 | 105 | 0.659192 | 39,368 | 0.991862 | 0 | 0 | 0 | 0 | 0 | 0 | 3,239 | 0.081605 |
0ac88c66372990e2da39877dd262a4baa72b4bfd | 791 | py | Python | yxtx/myApp/migrations/0017_chat.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0017_chat.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | yxtx/myApp/migrations/0017_chat.py | wjh112233/yxtx | f118c2b9983ca48b099f2c328487e23f5430303f | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.2 on 2020-03-17 08:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myApp', '0016_usergroup_buyer'),
]
operations = [
migrations.CreateModel(
name='Chat',
fields=[
('id... | 30.423077 | 91 | 0.556258 | 698 | 0.882427 | 0 | 0 | 0 | 0 | 0 | 0 | 132 | 0.166877 |
0ac8bc92bddd721b23be9da9373cb90b73f83f01 | 1,200 | py | Python | core/controllers/services.py | willingc/oh-missions-oppia-beta | 3d97903a5155ec67f135b1aa2c02f3bb39eb02e7 | [
"Apache-2.0"
] | null | null | null | core/controllers/services.py | willingc/oh-missions-oppia-beta | 3d97903a5155ec67f135b1aa2c02f3bb39eb02e7 | [
"Apache-2.0"
] | 2 | 2021-06-10T23:58:39.000Z | 2021-12-13T20:51:34.000Z | core/controllers/services.py | willingc/oh-missions-oppia-beta | 3d97903a5155ec67f135b1aa2c02f3bb39eb02e7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 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 ... | 31.578947 | 77 | 0.726667 | 458 | 0.381667 | 0 | 0 | 0 | 0 | 0 | 0 | 779 | 0.649167 |
0ac98e5cdb6676a542021f48c116aa5fa733e705 | 16,208 | py | Python | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | convoy/crypto.py | hebinhuang/batch-shipyard | f87d94850380bee273eb51c5c35381952a5722b8 | [
"MIT"
] | null | null | null | # Copyright (c) Microsoft Corporation
#
# All rights reserved.
#
# MIT License
#
# 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... | 35.311547 | 79 | 0.653258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,861 | 0.423309 |
0ac9b8651f0cd02d3cb27eefe5c6577d55fc334a | 4,080 | py | Python | libs/configs/COCO/cfgs_res50_1x_coco_v3.py | lj-ecjtu/Cascade_FPN_Tensorflow-master | 40fcd2c10f057b3f015ca1380d7db102e967391f | [
"MIT"
] | 43 | 2019-04-25T08:07:49.000Z | 2021-08-24T08:33:37.000Z | libs/configs/COCO/cfgs_res50_1x_coco_v3.py | lj-ecjtu/Cascade_FPN_Tensorflow-master | 40fcd2c10f057b3f015ca1380d7db102e967391f | [
"MIT"
] | 16 | 2019-05-11T03:51:19.000Z | 2021-10-09T08:26:18.000Z | libs/configs/COCO/cfgs_res50_1x_coco_v3.py | lj-ecjtu/Cascade_FPN_Tensorflow-master | 40fcd2c10f057b3f015ca1380d7db102e967391f | [
"MIT"
] | 15 | 2019-04-29T03:26:35.000Z | 2020-05-26T05:35:39.000Z | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import os
import tensorflow as tf
'''
gluoncv backbone + multi_gpu
'''
# ------------------------------------------------
VERSION = 'Cascade_FPN_Res50_COCO_1x_20190421_v3'
NET_NAME = 'resnet50_v1d'
ADD_BOX_IN_TENSORBOARD = True
... | 31.384615 | 100 | 0.684069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,225 | 0.300245 |
0acab913205c6b28e2e38031c30bbb139185f389 | 3,055 | py | Python | python/delta/tests/test_exceptions.py | vibhaska/delta | 0e16356ff46520404e2376d048f002ca74f6dc0c | [
"Apache-2.0"
] | 1 | 2022-01-18T10:52:49.000Z | 2022-01-18T10:52:49.000Z | python/delta/tests/test_exceptions.py | vibhaska/delta | 0e16356ff46520404e2376d048f002ca74f6dc0c | [
"Apache-2.0"
] | null | null | null | python/delta/tests/test_exceptions.py | vibhaska/delta | 0e16356ff46520404e2376d048f002ca74f6dc0c | [
"Apache-2.0"
] | 1 | 2022-03-06T09:29:55.000Z | 2022-03-06T09:29:55.000Z | #
# Copyright (2020) The Delta Lake Project 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 ag... | 41.849315 | 87 | 0.734206 | 2,097 | 0.686416 | 0 | 0 | 0 | 0 | 0 | 0 | 615 | 0.201309 |
0acabac25e7f182a0cc9d197e74fb9a54f708fdd | 629 | py | Python | day10/samematrix.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day10/samematrix.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | day10/samematrix.py | nikhilsamninan/python-files | 15198459081097058a939b40b5e8ef754e578fe0 | [
"Apache-2.0"
] | null | null | null | def matrix_form():
r = int(input("Enter the no of rows"))
c = int(input("Enter the no of columns"))
matrix=[]
print("Enter the enteries")
for i in range(r):
a = []
for j in range(c):
a.append(int(input()))
matrix.append(a)
return(matrix)
def check_matrix(fi... | 22.464286 | 45 | 0.63434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 127 | 0.201908 |
0acb3e8369864a2998734321cae251dc26fd05fa | 2,884 | py | Python | extractFeatures.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-04-27T19:55:29.000Z | 2020-04-27T19:55:29.000Z | extractFeatures.py | PatrickJReed/Longboard2 | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | 1 | 2020-02-26T18:06:09.000Z | 2020-02-26T18:06:09.000Z | extractFeatures.py | PatrickJReed/Longboard | f6ca4a6e51c91296894aee2e02b86f83b38c080a | [
"MIT"
] | null | null | null | #!/home/ubuntu/miniconda2/bin/python
from __future__ import division
import sys
import glob, os, gc
import uuid
import os.path
import csv
import numpy as np
from time import time
from subprocess import (call, Popen, PIPE)
from itertools import product
import shutil
import re
import pickle
from boto3.session import Ses... | 31.692308 | 138 | 0.662968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 412 | 0.142857 |
0accac5244ae00b90c3dcaa313e0ad6674cf5f7f | 5,284 | py | Python | kepler.py | mdbernard/astrodynamics | cf98df6cd17086e3675c1f7c2fce342d5322ee51 | [
"MIT"
] | null | null | null | kepler.py | mdbernard/astrodynamics | cf98df6cd17086e3675c1f7c2fce342d5322ee51 | [
"MIT"
] | 14 | 2020-11-10T02:37:15.000Z | 2022-02-07T01:11:29.000Z | kepler.py | mdbernard/astrodynamics | cf98df6cd17086e3675c1f7c2fce342d5322ee51 | [
"MIT"
] | null | null | null | import numpy as np
from stumpff import C, S
from CelestialBody import BODIES
from numerical import newton, laguerre
from lagrange import calc_f, calc_fd, calc_g, calc_gd
def kepler_chi(chi, alpha, r0, vr0, mu, dt):
''' Kepler's Equation of the universal anomaly, modified
for use in numerical solvers. '''
... | 39.140741 | 115 | 0.645912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,439 | 0.461582 |
0acd26a6aeb9fbb21484a68cd667f26b74d856f7 | 952 | py | Python | nicos_demo/vpgaa/setups/pgai.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_demo/vpgaa/setups/pgai.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_demo/vpgaa/setups/pgai.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = 'PGAA setup with XYZOmega sample table'
group = 'basic'
sysconfig = dict(
datasinks = ['mcasink', 'chnsink', 'csvsink', 'livesink']
)
includes = [
'system',
'reactor',
'nl4b',
'pressure',
'sampletable',
'pilz',
'detector',
'collimation',
]
devices = dict(
mcasin... | 23.219512 | 73 | 0.522059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 571 | 0.59979 |
0acd83639363e1e8109b480a9d0f9a0898831b8f | 54,720 | py | Python | tests/python/relay/test_op_level2.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 3 | 2021-02-23T22:06:01.000Z | 2021-09-30T09:59:17.000Z | tests/python/relay/test_op_level2.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 4 | 2021-03-30T11:59:59.000Z | 2022-03-12T00:40:23.000Z | tests/python/relay/test_op_level2.py | ravikumarvc/incubator-tvm | 9826947ffce0ed40e9d47a0db2abb033e394279e | [
"Apache-2.0"
] | 3 | 2021-07-20T07:40:15.000Z | 2021-08-03T08:39:17.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 43.052714 | 101 | 0.564126 | 860 | 0.015716 | 0 | 0 | 0 | 0 | 0 | 0 | 7,396 | 0.135161 |
0ace54f568ea92472966bb73d6fa4f6d624bebbf | 6,859 | py | Python | official/nlp/transformer/utils/tokenizer_test.py | hjkim-haga/TF-OD-API | 22ac477ff4dfb93fe7a32c94b5f0b1e74330902b | [
"Apache-2.0"
] | 1 | 2021-05-22T12:50:50.000Z | 2021-05-22T12:50:50.000Z | official/nlp/transformer/utils/tokenizer_test.py | DemonDamon/mask-detection-based-on-tf2odapi | 192ae544169c1230c21141c033800aa1bd94e9b6 | [
"MIT"
] | null | null | null | official/nlp/transformer/utils/tokenizer_test.py | DemonDamon/mask-detection-based-on-tf2odapi | 192ae544169c1230c21141c033800aa1bd94e9b6 | [
"MIT"
] | null | null | null | # Copyright 2021 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... | 33.458537 | 81 | 0.626185 | 6,000 | 0.874763 | 0 | 0 | 0 | 0 | 0 | 0 | 1,594 | 0.232395 |
0ace832c1c225820e768849e83537e4e6af2dc78 | 76 | py | Python | api/api/form7_searching_utils/__init__.py | bcgov/court-of-appeal | ef773b1baa80d3aff1ac807ed01f59266d885955 | [
"Apache-2.0"
] | null | null | null | api/api/form7_searching_utils/__init__.py | bcgov/court-of-appeal | ef773b1baa80d3aff1ac807ed01f59266d885955 | [
"Apache-2.0"
] | 35 | 2021-02-02T19:30:11.000Z | 2022-03-29T12:40:42.000Z | api/api/form7_searching_utils/__init__.py | marzmehr/court-of-appeal | ef773b1baa80d3aff1ac807ed01f59266d885955 | [
"Apache-2.0"
] | 2 | 2021-02-03T17:26:23.000Z | 2021-02-05T13:35:26.000Z | from .form7_search import Form7Search
from .parse_form7 import Form7Parsing
| 25.333333 | 37 | 0.868421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0acf1290742f590cb6015abc57d74458d907cabb | 1,164 | py | Python | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | 1 | 2020-08-06T11:58:35.000Z | 2020-08-06T11:58:35.000Z | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | 4 | 2019-12-13T11:27:28.000Z | 2022-02-27T11:58:38.000Z | soil/build/lib/soil/openstack/snapshot.py | JackDan9/soil | ae612a4634634aace834491fbdefbc69e6167674 | [
"MIT"
] | null | null | null | # Copyright 2020 Soil, Inc.
from soil.openstack.base import DataBase
from soil.openstack.base import SourceBase
class SnapshotData(DataBase):
"""A class for openstack snapshot data"""
def __init__(self, data):
self.data = data['snapshot']
class Snapshot(SourceBase):
"""A class for openstac... | 25.304348 | 63 | 0.636598 | 1,041 | 0.89433 | 0 | 0 | 216 | 0.185567 | 0 | 0 | 143 | 0.122852 |
0acf3366802d8714bb15485c54ab7f3de9aac778 | 2,776 | py | Python | Z - Tool Box/LaZagne/Windows/lazagne/softwares/windows/ppypykatz.py | dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1 | 1dcf54522e9d20711ff1114550dc2893ed3e9ed0 | [
"MIT"
] | 1,290 | 2020-05-28T21:24:43.000Z | 2022-03-31T16:38:43.000Z | Z - Tool Box/LaZagne/Windows/lazagne/softwares/windows/ppypykatz.py | dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1 | 1dcf54522e9d20711ff1114550dc2893ed3e9ed0 | [
"MIT"
] | 1 | 2020-07-03T21:14:52.000Z | 2020-07-03T21:14:52.000Z | Z - Tool Box/LaZagne/Windows/lazagne/softwares/windows/ppypykatz.py | dfirpaul/Active-Directory-Exploitation-Cheat-Sheet-1 | 1dcf54522e9d20711ff1114550dc2893ed3e9ed0 | [
"MIT"
] | 280 | 2020-05-29T17:28:38.000Z | 2022-03-31T13:54:15.000Z | # -*- coding: utf-8 -*-
# Thanks to @skelsec for his awesome tool Pypykatz
# Checks his project here: https://github.com/skelsec/pypykatz
import codecs
import traceback
from lazagne.config.module_info import ModuleInfo
from lazagne.config.constant import constant
from pypykatz.pypykatz import pypykatz
... | 36.526316 | 106 | 0.501801 | 2,453 | 0.883646 | 0 | 0 | 0 | 0 | 0 | 0 | 769 | 0.277017 |
0acf54e8a20fd816eda3589c3b616626bb4f33fb | 14,981 | py | Python | test/test_discogs.py | mglukhovsky/beets | 889e30c056a609cf71c8c8200259520230545222 | [
"MIT"
] | null | null | null | test/test_discogs.py | mglukhovsky/beets | 889e30c056a609cf71c8c8200259520230545222 | [
"MIT"
] | null | null | null | test/test_discogs.py | mglukhovsky/beets | 889e30c056a609cf71c8c8200259520230545222 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of beets.
# Copyright 2016, Adrian Sampson.
#
# 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 t... | 41.269972 | 79 | 0.59235 | 13,914 | 0.928776 | 0 | 0 | 0 | 0 | 0 | 0 | 4,284 | 0.285962 |
0acf5c8efa495629dab15411d7c1138e6f73ca8f | 1,417 | py | Python | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | data_structures/queue/queue_on_pseudo_stack.py | hank-chou/python | a9f729fa263bce599d2774f3f6afb5a18bcc9862 | [
"MIT"
] | 18 | 2020-02-09T13:00:11.000Z | 2021-03-11T08:47:36.000Z | """Queue represented by a pseudo stack (represented by a list with pop and append)"""
class Queue:
def __init__(self):
self.stack = []
self.length = 0
def __str__(self):
printed = "<" + str(self.stack)[1:-1] + ">"
return printed
"""Enqueues {@code item}
@param item
... | 24.431034 | 85 | 0.562456 | 1,328 | 0.937191 | 0 | 0 | 0 | 0 | 0 | 0 | 496 | 0.350035 |
0ad02fbe661ef723ec6b1d7108a2d41a85831a5b | 17,018 | py | Python | darknet2ncnn.py | nihui/gen-ncnn-models | 18523f1920d9afc44ce3058087c07e09f28aa151 | [
"BSD-2-Clause"
] | 4 | 2019-12-24T15:16:18.000Z | 2021-05-14T08:12:17.000Z | darknet2ncnn.py | nihui/gen-ncnn-models | 18523f1920d9afc44ce3058087c07e09f28aa151 | [
"BSD-2-Clause"
] | null | null | null | darknet2ncnn.py | nihui/gen-ncnn-models | 18523f1920d9afc44ce3058087c07e09f28aa151 | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
# coding: utf-8
import configparser
import numpy as np
import re,sys,os
from graph import MyGraph
from collections import OrderedDict
def unique_config_sections(config_file):
"""Convert all config sections to have unique names.
Adds unique suffixes to config sections for compability wi... | 36.915401 | 117 | 0.534317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,055 | 0.178864 |
0ad05115e0ac22a4083ac999a331c7da804f1e24 | 1,058 | py | Python | music/models.py | anirudha-bs/Django_music_app | 1b80bd4299a35fb707c32307dd115074a8ecba9f | [
"Apache-2.0"
] | null | null | null | music/models.py | anirudha-bs/Django_music_app | 1b80bd4299a35fb707c32307dd115074a8ecba9f | [
"Apache-2.0"
] | null | null | null | music/models.py | anirudha-bs/Django_music_app | 1b80bd4299a35fb707c32307dd115074a8ecba9f | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import Permission, User
from django.db import models
class Album(models.Model):
user = models.ForeignKey(User, default=1,on_delete=models.CASCADE)
artist = models.CharField(max_length=250)
album_title = models.CharField(max_length=500)
genre = models.CharField(max_lengt... | 37.785714 | 74 | 0.73535 | 968 | 0.914934 | 0 | 0 | 0 | 0 | 0 | 0 | 38 | 0.035917 |
0ad16ca68b13c3255bfd62c00d84e6b8aa940002 | 3,021 | py | Python | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | finex_history.py | yihming/gdax-data | 7e562f314e9ef12eb6be2df3b97190af632c4530 | [
"MIT"
] | null | null | null | import datetime
import calendar
import requests
import pandas as pd
import json
import os.path
import time
import MySQLdb as M
from gdax_history import timestamp_to_utcstr
def connect_to_db():
config = json.load(open('dbconn.json'))["mysql"]
db = M.connect(host = config["host"],
user = conf... | 30.21 | 207 | 0.581595 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 814 | 0.269447 |
0ad19b186920402498e9734534abe48d50e505b7 | 2,154 | py | Python | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | src/producers/connector.py | cvelas31/public_transportation_streaming | 903a1a147645e1b0783555db4bfc02098f7941ae | [
"MIT"
] | null | null | null | """Configures a Kafka Connector for Postgres Station data"""
import json
import logging
import requests
from settings import Settings
logger = logging.getLogger(__name__)
KAFKA_CONNECT_URL = f"{Settings.URLs.KAFKA_CONNECT_URL}/connectors"
CONNECTOR_NAME = "stations"
def configure_connector():
"""Starts and co... | 35.311475 | 98 | 0.679201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,379 | 0.640204 |
0ad20a796d3e2e784e9676daf81a22cf86a1d3cb | 8,474 | py | Python | liuetal2019/utils.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 24 | 2020-12-07T10:22:40.000Z | 2022-03-31T09:24:13.000Z | liuetal2019/utils.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 15 | 2021-03-22T04:52:57.000Z | 2022-01-01T18:32:31.000Z | liuetal2019/utils.py | wasiahmad/GATE | 1e48504a3641f00265a271a19eb6b6449fdc33bd | [
"MIT"
] | 8 | 2021-03-04T05:09:42.000Z | 2022-01-25T12:59:19.000Z | import io
import logging
import json
import numpy
import torch
import numpy as np
from tqdm import tqdm
from clie.inputters import constant
from clie.objects import Sentence
from torch.utils.data import Dataset
from torch.utils.data.sampler import Sampler
logger = logging.getLogger(__name__)
def load_word_embeddings... | 34.587755 | 85 | 0.576941 | 1,199 | 0.141492 | 0 | 0 | 0 | 0 | 0 | 0 | 1,271 | 0.149988 |
0ad2503d07ac5b15fee30f7480f83b4ea51f1515 | 914 | py | Python | build.py | dnanexus/IndexTools | 0392b3be92ff50b401290b59e9ca6c7767fa5a96 | [
"MIT"
] | 15 | 2019-07-17T11:41:36.000Z | 2021-03-02T09:36:34.000Z | build.py | dnanexus/IndexTools | 0392b3be92ff50b401290b59e9ca6c7767fa5a96 | [
"MIT"
] | 22 | 2019-05-15T20:08:12.000Z | 2019-10-11T13:33:42.000Z | build.py | dnanexus/IndexTools | 0392b3be92ff50b401290b59e9ca6c7767fa5a96 | [
"MIT"
] | 3 | 2019-06-01T15:58:06.000Z | 2022-01-21T21:10:01.000Z | from distutils.extension import Extension
cmdclass = {}
try:
# with Cython
from Cython.Build import build_ext
cmdclass["build_ext"] = build_ext
module_src = "cgranges/python/cgranges.pyx"
except ImportError: # without Cython
module_src = "cgranges/python/cgranges.c"
def build(setup_kwargs):
... | 25.388889 | 64 | 0.504376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 307 | 0.335886 |
0ad2792c4efbba79b47edb4a13bc47fda219fd40 | 48 | py | Python | icarus/models/service/__init__.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 5 | 2021-03-20T09:22:55.000Z | 2021-12-20T17:01:33.000Z | icarus/models/service/__init__.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-12-13T07:40:46.000Z | 2021-12-20T16:59:08.000Z | icarus/models/service/__init__.py | oascigil/icarus_edge_comp | b7bb9f9b8d0f27b4b01469dcba9cfc0c4949d64b | [
"MIT"
] | 1 | 2021-11-25T05:42:20.000Z | 2021-11-25T05:42:20.000Z | # -*- coding: utf-8 -*-
from .compSpot import *
| 16 | 23 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.479167 |
0ad2916f049d06f5df6ddbf5e08b57510f7c1b78 | 17,212 | py | Python | gluoncv/data/kinetics400/classification.py | YvetteGuo/gluon-cv | 123af8cf9f15a879c16a5c7d12f01ce1471d85b6 | [
"Apache-2.0"
] | 1 | 2019-04-02T02:08:04.000Z | 2019-04-02T02:08:04.000Z | gluoncv/data/kinetics400/classification.py | YvetteGuo/gluon-cv | 123af8cf9f15a879c16a5c7d12f01ce1471d85b6 | [
"Apache-2.0"
] | 1 | 2019-06-06T08:39:12.000Z | 2019-06-06T08:39:12.000Z | gluoncv/data/kinetics400/classification.py | YvetteGuo/gluon-cv | 123af8cf9f15a879c16a5c7d12f01ce1471d85b6 | [
"Apache-2.0"
] | 1 | 2019-08-26T09:26:42.000Z | 2019-08-26T09:26:42.000Z | # pylint: disable=line-too-long,too-many-lines,missing-docstring
"""Kinetics400 action classification dataset."""
import os
import random
import numpy as np
from mxnet import nd
from mxnet.gluon.data import dataset
__all__ = ['Kinetics400']
class Kinetics400(dataset.Dataset):
"""Load the Kinetics400 action recogn... | 65.444867 | 152 | 0.625552 | 16,966 | 0.985708 | 0 | 0 | 0 | 0 | 0 | 0 | 9,364 | 0.544039 |
0ad33111935325f80d27dfada02fe97074254f24 | 2,206 | py | Python | qf_lib/containers/futures/future_contract.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 198 | 2019-08-16T15:09:23.000Z | 2022-03-30T12:44:00.000Z | qf_lib/containers/futures/future_contract.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 13 | 2021-01-07T10:15:19.000Z | 2022-03-29T13:01:47.000Z | qf_lib/containers/futures/future_contract.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 29 | 2019-08-16T15:21:28.000Z | 2022-02-23T09:53:49.000Z | # Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... | 38.701754 | 118 | 0.704442 | 1,393 | 0.629747 | 0 | 0 | 0 | 0 | 0 | 0 | 1,407 | 0.636076 |
0ad331ec8ece0975704ec9214918b2580008a6a0 | 23,842 | py | Python | watcher/api/controllers/v1/action_plan.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 64 | 2015-10-18T02:57:24.000Z | 2022-01-13T11:27:51.000Z | watcher/api/controllers/v1/action_plan.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | null | null | null | watcher/api/controllers/v1/action_plan.py | ajaytikoo/watcher | 6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159 | [
"Apache-2.0"
] | 35 | 2015-12-25T13:53:21.000Z | 2021-07-19T15:50:16.000Z | # -*- encoding: utf-8 -*-
# Copyright 2013 Red Hat, 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 re... | 39.149425 | 79 | 0.637279 | 20,202 | 0.847328 | 0 | 0 | 12,118 | 0.508263 | 0 | 0 | 6,768 | 0.283869 |
0ad4a301cbaa49708e90318cda5d0db992bcc1f1 | 354 | py | Python | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | controllers/albums.py | jeonginlee/groove_scheduler | 84e61834e940e2ff138ffeeea61fd301f3c2a244 | [
"MIT"
] | null | null | null | from flask import *
albums = Blueprint('albums', __name__, template_folder='templates')
@albums.route('/albums/edit')
def albums_edit_route():
options = {
"edit": True
}
return render_template("albums.html", **options)
@albums.route('/albums')
def albums_route():
options = {
"edit": False
}
return render_... | 19.666667 | 67 | 0.700565 | 0 | 0 | 0 | 0 | 261 | 0.737288 | 0 | 0 | 80 | 0.225989 |
0ad4ca562029351bba499bd795e4d3faca8ffc96 | 3,113 | py | Python | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 1 | 2021-07-24T17:22:50.000Z | 2021-07-24T17:22:50.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-28T03:40:31.000Z | 2022-02-28T03:40:52.000Z | Incident-Response/Tools/dfirtrack/dfirtrack_main/views/division_views.py | sn0b4ll/Incident-Playbook | cf519f58fcd4255674662b3620ea97c1091c1efb | [
"MIT"
] | 2 | 2022-02-25T08:34:51.000Z | 2022-03-16T17:29:44.000Z | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.generic import DetailView, ListView
from django.views.generic.edit import CreateView, UpdateView
from dfirtrack_main.forms import ... | 40.428571 | 85 | 0.697719 | 2,667 | 0.85673 | 0 | 0 | 0 | 0 | 0 | 0 | 476 | 0.152907 |
0ad57f93e09c3cfa475ee8a3a4f941a9c684524d | 1,613 | py | Python | run.py | shark803/Torch_serve_example_NLP | 7f7984a1668f21aced3a7a1e8ddac3c8e0ff0105 | [
"MIT"
] | 1 | 2021-11-19T07:59:58.000Z | 2021-11-19T07:59:58.000Z | run.py | shark803/Torch_serve_example_NLP | 7f7984a1668f21aced3a7a1e8ddac3c8e0ff0105 | [
"MIT"
] | null | null | null | run.py | shark803/Torch_serve_example_NLP | 7f7984a1668f21aced3a7a1e8ddac3c8e0ff0105 | [
"MIT"
] | null | null | null | # coding: UTF-8
import time
import torch
import numpy as np
from train_eval import train, init_network
from importlib import import_module
import argparse
parser = argparse.ArgumentParser(description='Chinese Text Classification')
parser.add_argument('--model', type=str, required=True, help='choose a model: TextCNN')
... | 32.918367 | 97 | 0.726596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 393 | 0.237176 |
0ad5ae1fbe9b6f2bb0a59a7bd762d3ef2ea1b7ed | 22,315 | py | Python | src/tests/cfp/views/test_cfp_user.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | src/tests/cfp/views/test_cfp_user.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | src/tests/cfp/views/test_cfp_user.py | xhub/pretalx | 33bd07ec98ddeb5b7ff35fe7e30c4d38bef57d7e | [
"Apache-2.0"
] | null | null | null | import pytest
from django.conf import settings
from django.core import mail as djmail
from django.core.files.uploadedfile import SimpleUploadedFile
from django.urls import reverse
from django_scopes import scope
from rest_framework.authtoken.models import Token
from pretalx.submission.models import SubmissionStates
... | 36.945364 | 92 | 0.6946 | 0 | 0 | 0 | 0 | 21,892 | 0.981044 | 0 | 0 | 2,949 | 0.132153 |
0ad630d29820371f228b1287947197de5ede3fb0 | 5,954 | py | Python | tests/mb_util.py | vasilydenisenko/modbus_rtu_slave | 8a531b776ab82c60b5d335f0565468f19a7801f5 | [
"MIT"
] | null | null | null | tests/mb_util.py | vasilydenisenko/modbus_rtu_slave | 8a531b776ab82c60b5d335f0565468f19a7801f5 | [
"MIT"
] | null | null | null | tests/mb_util.py | vasilydenisenko/modbus_rtu_slave | 8a531b776ab82c60b5d335f0565468f19a7801f5 | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2021 Vasily Denisenko, Sergey Kuznetsov
# 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
# t... | 25.553648 | 81 | 0.673161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,856 | 0.311723 |
0ad6db55250893c680ef209759e33e069cabdd9a | 4,292 | py | Python | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | 1 | 2017-04-26T18:51:43.000Z | 2017-04-26T18:51:43.000Z | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | modules/stackoverflow/models.py | tjsavage/polymer-dashboard | 19bc467f1206613f8eec646b6f2bc43cc319ef75 | [
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | import fix_path
import json
import datetime
from google.appengine.ext import ndb
# Taken from http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript
dthandler = lambda obj: (
obj.isoformat()
if isinstance(obj, datetime.datetime)
or isinstance(obj, datetime.date)
else Non... | 40.490566 | 98 | 0.682199 | 3,965 | 0.923812 | 0 | 0 | 631 | 0.147018 | 0 | 0 | 469 | 0.109273 |
0ad7c645c6d3067f3c0c435d4f3782feef6cf400 | 218 | py | Python | src/main/java/com/bailei/study/beautyOfCoding/cpu50.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/bailei/study/beautyOfCoding/cpu50.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | src/main/java/com/bailei/study/beautyOfCoding/cpu50.py | sonymoon/algorithm | cc2a9e0125fc64bdbf6549034bad6482d2027ea2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
import time
busyTime = 10
idleTime = busyTime
while True:
start = time.clock()
while time.clock() - start < busyTime:
pass
time.sleep(busyTime / 1000)
| 14.533333 | 42 | 0.614679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 41 | 0.188073 |
0ad85408ba998c356a370a0f1582159d01f77a69 | 8,390 | py | Python | carto/maps.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 85 | 2016-08-07T16:46:58.000Z | 2022-03-23T01:44:02.000Z | carto/maps.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 109 | 2016-08-02T18:40:04.000Z | 2021-08-23T08:08:02.000Z | carto/maps.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 29 | 2016-11-29T03:42:47.000Z | 2022-01-23T17:37:11.000Z | """
Module for working with named and anonymous maps
.. module:: carto.maps
:platform: Unix, Windows
:synopsis: Module for working with named and anonymous maps
.. moduleauthor:: Daniel Carrion <daniel@carto.com>
.. moduleauthor:: Alberto Romeu <alrocar@carto.com>
"""
try:
from urllib.parse import urljoi... | 33.293651 | 86 | 0.555662 | 7,765 | 0.925507 | 0 | 0 | 0 | 0 | 0 | 0 | 3,613 | 0.430632 |
0ad87d7268affd7dfe13527d4d842a2d43c681ac | 157 | py | Python | client_driver.py | tlagore/kv_store | e3f139eabaa14d0e001193e21baf7e5c96e0358d | [
"MIT"
] | null | null | null | client_driver.py | tlagore/kv_store | e3f139eabaa14d0e001193e21baf7e5c96e0358d | [
"MIT"
] | null | null | null | client_driver.py | tlagore/kv_store | e3f139eabaa14d0e001193e21baf7e5c96e0358d | [
"MIT"
] | null | null | null | from kv_client.kv_client import KVClient
def main():
kvSlave = KVClient(1, "127.0.0.1", 3456)
kvSlave.start()
if __name__ == "__main__":
main() | 19.625 | 44 | 0.656051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 21 | 0.133758 |
0ad8ce46348b78515a8db8b2c9bc54898f1ab6f9 | 1,208 | py | Python | pytorch-frontend/benchmarks/operator_benchmark/pt/embeddingbag_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 206 | 2020-11-28T22:56:38.000Z | 2022-03-27T02:33:04.000Z | pytorch-frontend/benchmarks/operator_benchmark/pt/embeddingbag_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 19 | 2020-12-09T23:13:14.000Z | 2022-01-24T23:24:08.000Z | pytorch-frontend/benchmarks/operator_benchmark/pt/embeddingbag_test.py | AndreasKaratzas/stonne | 2915fcc46cc94196303d81abbd1d79a56d6dd4a9 | [
"MIT"
] | 28 | 2020-11-29T15:25:12.000Z | 2022-01-20T02:16:27.000Z | import operator_benchmark as op_bench
import torch
import numpy
from . import configs
"""EmbeddingBag Operator Benchmark"""
class EmbeddingBagBenchmark(op_bench.TorchBenchmarkBase):
def init(self, embeddingbags, dim, mode, input_size, offset, sparse, include_last_offset, device):
self.embedding = torch.nn... | 38.967742 | 107 | 0.724338 | 835 | 0.691225 | 0 | 0 | 0 | 0 | 0 | 0 | 61 | 0.050497 |
0ad9fee81c50ef01672c1f7b553d66bc07bc9155 | 3,972 | py | Python | python/dgl/geometry/capi.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 9,516 | 2018-12-08T22:11:31.000Z | 2022-03-31T13:04:33.000Z | python/dgl/geometry/capi.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 2,494 | 2018-12-08T22:43:00.000Z | 2022-03-31T21:16:27.000Z | python/dgl/geometry/capi.py | lfchener/dgl | 77f4287a4118db64c46f4f413a426e1419a09d53 | [
"Apache-2.0"
] | 2,529 | 2018-12-08T22:56:14.000Z | 2022-03-31T13:07:41.000Z | """Python interfaces to DGL farthest point sampler."""
from dgl._ffi.base import DGLError
import numpy as np
from .._ffi.function import _init_api
from .. import backend as F
from .. import ndarray as nd
def _farthest_point_sampler(data, batch_size, sample_points, dist, start_idx, result):
r"""Farthest Point Samp... | 38.563107 | 95 | 0.680514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,485 | 0.625629 |
0adab04d82e555974b5ee3aecff08feca7c75415 | 6,478 | py | Python | scidb/core/data.py | oxdc/sci.db | 0a751a0e05e7ad4c83c350e32e32ea9ce5831cbb | [
"MIT"
] | null | null | null | scidb/core/data.py | oxdc/sci.db | 0a751a0e05e7ad4c83c350e32e32ea9ce5831cbb | [
"MIT"
] | null | null | null | scidb/core/data.py | oxdc/sci.db | 0a751a0e05e7ad4c83c350e32e32ea9ce5831cbb | [
"MIT"
] | null | null | null | import shutil
import hashlib
from pathlib import Path
from typing import TextIO, BinaryIO, IO, Union
from datetime import datetime
from os.path import getmtime
from .low import ObservableDict
class Data:
def __init__(self, data_name: str, parent, bucket,
protected_parent_methods: Union[None, dict... | 35.988889 | 102 | 0.599105 | 6,283 | 0.969898 | 0 | 0 | 642 | 0.099105 | 0 | 0 | 322 | 0.049707 |
0adacd25859bed18399a4d523ba68cd8adb2bc90 | 39,932 | py | Python | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 9 | 2019-12-29T01:47:37.000Z | 2021-12-21T13:47:41.000Z | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | PaulWang1905/tensorflow | ebf12d22b4801fb8dab5034cc94562bf7cc33fa0 | [
"Apache-2.0"
] | 1 | 2020-05-28T11:22:49.000Z | 2020-05-28T11:22:49.000Z | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 38.806608 | 101 | 0.698162 | 35,018 | 0.876941 | 0 | 0 | 34,178 | 0.855905 | 0 | 0 | 21,617 | 0.541345 |
0adb9e87674ba38043bf368fb738d4c5e8ba7c5c | 362 | py | Python | escola/teste_get.py | danielrosendos/djangoRestFramework | 946bb95b8dd9976d1920302ce724572ffd9f98cf | [
"MIT"
] | 2 | 2020-07-26T15:17:23.000Z | 2020-07-26T16:50:18.000Z | escola/teste_get.py | sport129/djangoRestFramework | 946bb95b8dd9976d1920302ce724572ffd9f98cf | [
"MIT"
] | 3 | 2021-03-30T14:12:18.000Z | 2021-06-04T23:44:47.000Z | escola/teste_get.py | sport129/djangoRestFramework | 946bb95b8dd9976d1920302ce724572ffd9f98cf | [
"MIT"
] | null | null | null | import requests
headers = {
'content-type': 'application/json',
'Authorization': 'Token 80ca9f249b80e7226cdc7fcaada8d7297352f0f9'
}
url_base_cursos = 'http://127.0.0.1:8000/api/v2/cursos'
url_base_avaliacoes = 'http://127.0.0.1:8000/api/v2/avaliacoes'
resultado = requests.get(url=url_base_cursos, headers=hea... | 27.846154 | 69 | 0.756906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 173 | 0.477901 |
0adc55ed2f06787ab63a1224266a2dd707ce1b10 | 6,455 | py | Python | python/avi/sdk/utils/waf_policy/vdi_waf_policy.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | null | null | null | python/avi/sdk/utils/waf_policy/vdi_waf_policy.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | null | null | null | python/avi/sdk/utils/waf_policy/vdi_waf_policy.py | aaronjwood/alb-sdk | ae4c47b2228651d3f5095e7c14f081aa4adbb732 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 VMware, Inc.
import argparse
import json
import re
import logging
import os
import sys
from avi.sdk.avi_api import ApiSession
API_VERSION = "18.2.13"
SYSTEM_WAF_POLICY_VDI='System-WAF-Policy-VDI'
logger = logging.getLogger(__name__)
def add_allowlist_rule(waf_policy_obj):
#add a allowlist rule... | 38.652695 | 219 | 0.632223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,181 | 0.337878 |
0adcde8b96a5cb82b17bdf29ba072f1b54339883 | 4,101 | py | Python | src/api/bkuser_core/tests/bkiam/test_constants.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/api/bkuser_core/tests/bkiam/test_constants.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/api/bkuser_core/tests/bkiam/test_constants.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | 1 | 2021-12-31T06:48:41.000Z | 2021-12-31T06:48:41.000Z | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic... | 39.432692 | 115 | 0.613997 | 3,197 | 0.768694 | 0 | 0 | 2,696 | 0.648233 | 0 | 0 | 1,440 | 0.346237 |
0add3254851b32ab4bc7e1c39aca7cbe53d6398b | 190 | py | Python | votesim/benchmarks/__init__.py | johnh865/election_sim | b73b7e65f1bb22abb82cbe8442fcf02b0c20894e | [
"MIT"
] | 8 | 2019-10-21T23:24:51.000Z | 2021-09-14T03:04:59.000Z | votesim/benchmarks/__init__.py | johnh865/election_sim | b73b7e65f1bb22abb82cbe8442fcf02b0c20894e | [
"MIT"
] | 2 | 2021-02-09T23:52:47.000Z | 2021-02-10T04:08:35.000Z | votesim/benchmarks/__init__.py | johnh865/election_sim | b73b7e65f1bb22abb82cbe8442fcf02b0c20894e | [
"MIT"
] | 1 | 2019-10-21T23:32:18.000Z | 2019-10-21T23:32:18.000Z | # from votesim.benchmarks.benchrunner import (
# run_benchmark,
# get_benchmarks,
# post_benchmark,
# plot_benchmark,
# )
from votesim.benchmarks import runtools, simple | 23.75 | 47 | 0.705263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 136 | 0.715789 |
0add5b092c6c665d2b618a20a05d4cd299d00402 | 1,948 | py | Python | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | src/handler.py | MrIgumnov96/ETL-CloudDeployment | 666b85a9350460fba49f82ec90f5cddc0bdd0235 | [
"Unlicense"
] | null | null | null | import boto3
import src.app as app
import csv
import psycopg2 as ps
import os
from dotenv import load_dotenv
load_dotenv()
dbname = os.environ["db"]
host = os.environ["host"]
port = os.environ["port"]
user = os.environ["user"]
password = os.environ["pass"]
connection = ps.connect(dbname=dbname,
... | 31.419355 | 185 | 0.587269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 938 | 0.48152 |
0adf4b5bea842a306db59cff9711a1e6a19b7ae0 | 3,753 | py | Python | improver_tests/precipitation_type/test_utilities.py | cpelley/improver | ebf77fe2adc85ed7aec74c26671872a2e4388ded | [
"BSD-3-Clause"
] | 77 | 2017-04-26T07:47:40.000Z | 2022-03-31T09:40:49.000Z | improver_tests/precipitation_type/test_utilities.py | cpelley/improver | ebf77fe2adc85ed7aec74c26671872a2e4388ded | [
"BSD-3-Clause"
] | 1,440 | 2017-03-29T10:04:15.000Z | 2022-03-28T10:11:29.000Z | improver_tests/precipitation_type/test_utilities.py | MoseleyS/improver | ca028e3a1c842e3ff00b188c8ea6eaedd0a07149 | [
"BSD-3-Clause"
] | 72 | 2017-03-17T16:53:45.000Z | 2022-02-16T09:41:37.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# (C) British Crown Copyright 2017-2021 Met Office.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions a... | 39.925532 | 79 | 0.742073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,290 | 0.610179 |
0ae04a483b4283bc6fdc84bd651d77ab70b6120c | 5,149 | py | Python | app/api/v1/models/items.py | bryan-munene/Store-Manager-DB | 40b24039189aea6854d7fcf33ccb648bb6642231 | [
"MIT"
] | null | null | null | app/api/v1/models/items.py | bryan-munene/Store-Manager-DB | 40b24039189aea6854d7fcf33ccb648bb6642231 | [
"MIT"
] | 4 | 2018-10-25T00:57:18.000Z | 2018-10-25T21:29:09.000Z | app/api/v1/models/items.py | bryan-munene/Store-Manager-DB | 40b24039189aea6854d7fcf33ccb648bb6642231 | [
"MIT"
] | null | null | null | from .db_conn import ModelSetup
class ItemsModel(ModelSetup):
'''Handles the data logic of the items section'''
def __init__(
self,
name=None,
price=None,
quantity=None,
category_id=None,
reorder_point=None,
auth=None):
... | 31.206061 | 112 | 0.543212 | 5,114 | 0.993203 | 0 | 0 | 0 | 0 | 0 | 0 | 1,523 | 0.295786 |
0ae122f08d00736fbd1d09356f366ff9dcd6baf8 | 4,215 | py | Python | site/src/sphinx/_extensions/api.py | linxGnu/armeria | 7f4b10e66acc377dd16929157aeb417b729ce55a | [
"Apache-2.0"
] | null | null | null | site/src/sphinx/_extensions/api.py | linxGnu/armeria | 7f4b10e66acc377dd16929157aeb417b729ce55a | [
"Apache-2.0"
] | null | null | null | site/src/sphinx/_extensions/api.py | linxGnu/armeria | 7f4b10e66acc377dd16929157aeb417b729ce55a | [
"Apache-2.0"
] | null | null | null | from docutils.parsers.rst.roles import register_canonical_role, set_classes
from docutils.parsers.rst import directives
from docutils import nodes
from sphinx.writers.html import HTMLTranslator
from sphinx.errors import ExtensionError
import os
import re
def api_role(role, rawtext, text, lineno, inliner, options={},... | 37.633929 | 103 | 0.629656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 950 | 0.225386 |
0ae19706ac78f27bbbf84e3668bc38423a4a2fcd | 739 | py | Python | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 3 | 2015-05-04T03:20:09.000Z | 2016-02-19T10:35:35.000Z | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 3 | 2015-01-02T13:18:56.000Z | 2021-02-08T20:17:14.000Z | feaas/runners/__init__.py | tsuru/varnishapi | d63a8c8c5f9c837855509fc5af59d8213c1c91d6 | [
"BSD-3-Clause"
] | 5 | 2015-01-02T13:11:45.000Z | 2016-08-26T06:14:35.000Z | # Copyright 2014 varnishapi authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import time
from feaas import storage
class Base(object):
def __init__(self, manager, interval, *locks):
self.manager = manager
self.st... | 24.633333 | 57 | 0.649526 | 536 | 0.725304 | 0 | 0 | 0 | 0 | 0 | 0 | 157 | 0.212449 |