hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795ea7680462ae532fb3dafd4eb29b0eb656c6fa
45,727
py
Python
src/borg/testsuite/helpers.py
axapaxa/borg
18f0729ed83bfa2c9b29023dadae6503035991d6
[ "BSD-3-Clause" ]
null
null
null
src/borg/testsuite/helpers.py
axapaxa/borg
18f0729ed83bfa2c9b29023dadae6503035991d6
[ "BSD-3-Clause" ]
null
null
null
src/borg/testsuite/helpers.py
axapaxa/borg
18f0729ed83bfa2c9b29023dadae6503035991d6
[ "BSD-3-Clause" ]
null
null
null
import hashlib import os import shutil import sys from argparse import ArgumentTypeError from datetime import datetime, timezone, timedelta from io import StringIO, BytesIO from time import sleep import pytest from .. import platform from ..constants import MAX_DATA_SIZE from ..helpers import Location from ..helpers ...
43.46673
142
0.624117
795ea7b50fdd0124ea2af6e07989f2dda5c6343d
14,126
py
Python
venv/lib/python3.7/site-packages/superlance/memmon.py
sayr777/safe_city
0411db8e80710395de57e9f272c1e324b838baa5
[ "MIT" ]
1
2022-02-26T21:51:15.000Z
2022-02-26T21:51:15.000Z
venv/lib/python3.7/site-packages/superlance/memmon.py
sayr777/safe_city
0411db8e80710395de57e9f272c1e324b838baa5
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/superlance/memmon.py
sayr777/safe_city
0411db8e80710395de57e9f272c1e324b838baa5
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################## # # Copyright (c) 2007 Agendaless Consulting and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the BSD-like license at # http://www.repoze.org/LICENSE.txt. A copy of the license...
33.473934
143
0.545731
795ea86a42823b195daa4093bf7a22b1113352fb
238
py
Python
create_short_name.py
Agreste/MobUrbRoteiro
9acadfc6b794991757cb3b7e59993c1c87679840
[ "BSD-3-Clause" ]
null
null
null
create_short_name.py
Agreste/MobUrbRoteiro
9acadfc6b794991757cb3b7e59993c1c87679840
[ "BSD-3-Clause" ]
9
2016-05-10T20:02:12.000Z
2016-07-21T15:00:15.000Z
create_short_name.py
Agreste/MobUrbRoteiro
9acadfc6b794991757cb3b7e59993c1c87679840
[ "BSD-3-Clause" ]
null
null
null
import string from application import * vs = db.session.query(models.Video).all() def mk_short(s): return s[:2] + ''.join([c for c in s if c in string.digits]) for v in vs: v.short_name = mk_short(v.name) db.session.commit()
17
64
0.668067
795ea95e9ce9858e441d6c6d5f8d94b6376bdf28
1,121
py
Python
setup.py
buxx/synergine2
843988df5e653a413eca8c486ee93f5e9e884f37
[ "MIT" ]
1
2021-02-26T15:36:04.000Z
2021-02-26T15:36:04.000Z
setup.py
buxx/synergine2
843988df5e653a413eca8c486ee93f5e9e884f37
[ "MIT" ]
182
2017-03-06T10:20:19.000Z
2021-06-10T14:12:36.000Z
setup.py
buxx/synergine2
843988df5e653a413eca8c486ee93f5e9e884f37
[ "MIT" ]
1
2018-01-01T15:38:24.000Z
2018-01-01T15:38:24.000Z
# coding: utf-8 import sys from setuptools import setup from setuptools import find_packages install_requires = [ 'PyYAML', 'redis', 'psutil', ] xyz_require = [ 'dijkstar', 'tmx', 'numpy', ] cocos2d_require = [ 'cocos2d', 'Pillow', ] + xyz_require tests_require = [ 'pytest', 'fr...
20.759259
63
0.61463
795ea9e5d1836f5a455f367566c6f6afeee5f0ce
1,685
py
Python
csrv/model/cards/runner/card01039.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
null
null
null
csrv/model/cards/runner/card01039.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
null
null
null
csrv/model/cards/runner/card01039.py
mrroach/CentralServer
e377c65d8f3adf5a2d3273acd4f459be697aea56
[ "Apache-2.0" ]
1
2020-09-20T11:26:20.000Z
2020-09-20T11:26:20.000Z
from csrv.model import actions from csrv.model import timing_phases from csrv.model.cards import card_info from csrv.model.cards import hardware class FetchAndInstallOther(actions.InstallHardware): DESCRIPTION = ('Fetch and install another copy of Card01039.' ' Shuffle your stack.') def resolve(...
27.622951
79
0.705045
795eaa6c763868fc95ad107c6c420e430cf8dc86
4,185
py
Python
C++GP18/scores/scores.py
dhanak/competitive-coding
9e28298f8c646f169b7389d0ef20f99c5ef68f00
[ "MIT" ]
null
null
null
C++GP18/scores/scores.py
dhanak/competitive-coding
9e28298f8c646f169b7389d0ef20f99c5ef68f00
[ "MIT" ]
null
null
null
C++GP18/scores/scores.py
dhanak/competitive-coding
9e28298f8c646f169b7389d0ef20f99c5ef68f00
[ "MIT" ]
null
null
null
import codecs from datetime import datetime import logging import requests from requests.auth import HTTPBasicAuth from selenium import webdriver access_token = 'a3818a61f8617c0b0163cde8d09cb4d60da53e59e99802a422a7e6eaa16a2906' logging.basicConfig(filename='scores.log', level=logging.INFO, format='[%(asctime)...
43.59375
156
0.594265
795eaafc4b4fedd35cd5b8999bf42e8647f643e1
316
py
Python
games/serializers.py
eitan12345om/Roble-Soccer
dc76002a3725fbf49a342f8b007336b72aab2da5
[ "MIT" ]
null
null
null
games/serializers.py
eitan12345om/Roble-Soccer
dc76002a3725fbf49a342f8b007336b72aab2da5
[ "MIT" ]
27
2019-12-17T03:16:56.000Z
2021-09-22T18:05:42.000Z
games/serializers.py
eitan12345om/Roble-Soccer
dc76002a3725fbf49a342f8b007336b72aab2da5
[ "MIT" ]
null
null
null
from rest_framework import serializers from games.models import Game, Player class GameSerializer(serializers.ModelSerializer): class Meta: model = Game fields = '__all__' class PlayerSerializer(serializers.ModelSerializer): class Meta: model = Player fields = '__all__'
19.75
52
0.702532
795eab6fc644f716f1ee128dd7446f4ebd2c8c87
455
py
Python
examples/request_example.py
phanak-sap/requre
4dd80af12006941a77959907d136e290493238ce
[ "MIT" ]
null
null
null
examples/request_example.py
phanak-sap/requre
4dd80af12006941a77959907d136e290493238ce
[ "MIT" ]
null
null
null
examples/request_example.py
phanak-sap/requre
4dd80af12006941a77959907d136e290493238ce
[ "MIT" ]
null
null
null
import os from requre.storage import PersistentObjectStorage from requre.helpers.requests_response import RequestResponseHandling import requests requests.Session.send = RequestResponseHandling.decorator_plain(requests.Session.send) PersistentObjectStorage().storage_file = "github.yaml" import github g = github.Git...
28.4375
86
0.808791
795ead1730337d5dcca8fc14b37705a45dc93d51
3,482
py
Python
memnet/addressing.py
skyoung/MemDTC
0d9d3faf625a766367964c98dc5dee41ec744b68
[ "MIT" ]
11
2019-07-12T10:03:01.000Z
2021-12-14T12:35:12.000Z
memnet/addressing.py
skyoung/MemDTC
0d9d3faf625a766367964c98dc5dee41ec744b68
[ "MIT" ]
1
2020-11-17T07:50:21.000Z
2020-11-17T07:50:21.000Z
memnet/addressing.py
skyoung/MemDTC
0d9d3faf625a766367964c98dc5dee41ec744b68
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------ # Tensorflow implementation of # "Visual Tracking via Dynamic Memory Networks", TPAMI, 2019 # Licensed under The MIT License [see LICENSE for details] # Written by Tianyu Yang (tianyu-yang.com) # ------------------------------------------------------...
39.568182
112
0.716829
795ead210b7b027b4273906392bfb124b90e208b
959
py
Python
UMLRT2Kiltera_MM/Properties/from_MPS/HSS1_then_ConnectedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/Properties/from_MPS/HSS1_then_ConnectedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/Properties/from_MPS/HSS1_then_ConnectedLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS import uuid class HSS1_then_ConnectedLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HSS1_then_ConnectedLHS """ # Flag this instance as compiled now self.is_compiled = True s...
24.589744
100
0.73097
795eadba5d56fdf53a44c962ec12bd1f7e5efef1
2,479
py
Python
aliyun-python-sdk-cloudesl/aliyunsdkcloudesl/request/v20200201/UpdateEslDeviceLightRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-cloudesl/aliyunsdkcloudesl/request/v20200201/UpdateEslDeviceLightRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-cloudesl/aliyunsdkcloudesl/request/v20200201/UpdateEslDeviceLightRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
33.5
89
0.760791
795eae548cdb0137856b46ab8e43a4361098c9c8
20,831
py
Python
PaddleNLP/pretrain_language_models/XLNet/run_classifier.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleNLP/pretrain_language_models/XLNet/run_classifier.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
1
2019-11-18T03:03:37.000Z
2019-11-18T03:03:37.000Z
PaddleNLP/pretrain_language_models/XLNet/run_classifier.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
3
2021-09-28T15:33:45.000Z
2021-09-29T01:44:32.000Z
# Copyright (c) 2019 PaddlePaddle 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 app...
44.991361
134
0.603764
795eae5ade06b408ed3aee5ccae8da3ee309a57d
4,996
py
Python
apps/gallery/views.py
F483/bikesurf.org
c85680f7443920a4dbf95e24f58e0a095c3da42f
[ "MIT" ]
6
2015-08-11T19:48:12.000Z
2019-06-26T20:02:05.000Z
apps/gallery/views.py
F483/bikesurf.org
c85680f7443920a4dbf95e24f58e0a095c3da42f
[ "MIT" ]
27
2015-02-15T22:21:20.000Z
2017-12-06T20:27:35.000Z
apps/gallery/views.py
F483/bikesurf.org
c85680f7443920a4dbf95e24f58e0a095c3da42f
[ "MIT" ]
3
2015-08-10T18:11:59.000Z
2017-11-28T20:59:40.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com> # License: MIT (see LICENSE.TXT file) from django.utils.translation import ugettext as _ from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.views.decorators.ht...
35.942446
80
0.673539
795eafb87c43a6a58dee72465a8473478c26d9aa
2,312
py
Python
gym_42ai/bomberman/Environment.py
42-AI/TCP-Unity-Client
b4dcce1776d0f0b1c7a85584e03e4e7d603532db
[ "MIT" ]
null
null
null
gym_42ai/bomberman/Environment.py
42-AI/TCP-Unity-Client
b4dcce1776d0f0b1c7a85584e03e4e7d603532db
[ "MIT" ]
null
null
null
gym_42ai/bomberman/Environment.py
42-AI/TCP-Unity-Client
b4dcce1776d0f0b1c7a85584e03e4e7d603532db
[ "MIT" ]
null
null
null
from bomberman.Client import Client from bomberman.defines import t_action from bomberman import defines from bomberman.states.State import State class Environnement: def __init__(self, player_num: int = -1): ''' player_num is the number of the player we want to be (1 or 2) put -1 for any availab...
24.336842
152
0.653547
795eafdcbeb03bd46aabcab52b39e0bf90d29ee7
437
py
Python
tests/test_coreir/test_temporary_values.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
tests/test_coreir/test_temporary_values.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
tests/test_coreir/test_temporary_values.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
import magma as m from magma.testing import check_files_equal def test_temporary_named_value(): class Main(m.Circuit): io = m.IO(I=m.In(m.Bit), O=m.Out(m.Bit)) x = m.Bit(name="x") m.wire(io.I, x) m.wire(x, io.O) m.compile("build/test_temporary_named_value", Main) check_fi...
27.3125
69
0.640732
795eb02fc6835fa4aa2f6a1abe6691126d9e4c02
2,634
py
Python
tests/vlogdump2mif.py
dark-flames/RISCV-CPU
6a90bd13505060bcdc006b00ac4d84e9dabb9309
[ "MIT" ]
3
2020-11-12T07:28:25.000Z
2021-08-06T16:03:08.000Z
tests/vlogdump2mif.py
dark-flames/RISCV-CPU
6a90bd13505060bcdc006b00ac4d84e9dabb9309
[ "MIT" ]
null
null
null
tests/vlogdump2mif.py
dark-flames/RISCV-CPU
6a90bd13505060bcdc006b00ac4d84e9dabb9309
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import sys import argparse version = "Ver. 1.0"; # # Argument Parser # ap = argparse.ArgumentParser(description='verilog $readmemb file by objdump to Verilog $readmemh file') ap.add_argument('in_file', nargs='+', help='verilog $readmemb file') ap.add_argument('-s', '--split', action...
23.72973
113
0.550873
795eb1b4856d49b8081cef7ed32f7a8f7d4b2901
4,485
py
Python
Simulation/ModuroModel/Spa/SpaBpaPcdiInUa.py
informatik-mannheim/Moduro-CC3D
7e67ebbb92f8d18f1774501557db0cfae6f746f1
[ "Apache-2.0" ]
null
null
null
Simulation/ModuroModel/Spa/SpaBpaPcdiInUa.py
informatik-mannheim/Moduro-CC3D
7e67ebbb92f8d18f1774501557db0cfae6f746f1
[ "Apache-2.0" ]
29
2016-02-02T12:20:43.000Z
2017-12-28T14:41:53.000Z
Simulation/ModuroModel/Spa/SpaBpaPcdiInUa.py
informatik-mannheim/Moduro-CC3D
7e67ebbb92f8d18f1774501557db0cfae6f746f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 the original author or 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...
43.970588
109
0.738462
795eb1be3b82f36bf44656c450c67c8659546913
115,736
py
Python
tests/test_preprints.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
tests/test_preprints.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
tests/test_preprints.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from nose.tools import * # noqa: F403 import jwe import jwt import mock import furl import time import urlparse import datetime from django.utils import timezone import pytest import pytz import itsdangerous from django.contrib.auth.models import Group from django.core.exceptions import Valida...
42.691258
218
0.666802
795eb1e6ebbfb08ed233a8de9b75dc494ec46c4c
26,707
py
Python
vio/vio/swagger/urls.py
onap/multicloud-openstack-vmware
53fd67e55f54c66b29e0eb5ab792e80d16ffff20
[ "Apache-2.0", "CC-BY-4.0" ]
1
2021-10-15T16:47:11.000Z
2021-10-15T16:47:11.000Z
vio/vio/swagger/urls.py
onap/multicloud-openstack-vmware
53fd67e55f54c66b29e0eb5ab792e80d16ffff20
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-02-11T22:14:45.000Z
2020-02-11T22:14:45.000Z
vio/vio/swagger/urls.py
onap/multicloud-openstack-vmware
53fd67e55f54c66b29e0eb5ab792e80d16ffff20
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# Copyright (c) 2017-2018 VMware, 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...
49.457407
79
0.636874
795eb43531e5ea5f030c29d552d90fe3d67b70a4
99
py
Python
home/views.py
arronlacey/markup
811845f577c6410d6ba17fc19b0167484e57582d
[ "MIT" ]
115
2020-09-05T21:21:50.000Z
2022-03-28T18:04:52.000Z
home/views.py
arronlacey/markup
811845f577c6410d6ba17fc19b0167484e57582d
[ "MIT" ]
18
2019-04-24T11:55:37.000Z
2022-03-30T20:21:07.000Z
home/views.py
arronlacey/markup
811845f577c6410d6ba17fc19b0167484e57582d
[ "MIT" ]
23
2020-10-13T09:41:57.000Z
2022-03-28T14:05:28.000Z
from django.shortcuts import render def home(request): return render(request, 'home.html', {})
24.75
43
0.727273
795eb4bf223fe7014df5a7c2fecd9f779432397a
1,110
py
Python
numatuned/zone.py
dionbosschieter/numatuned
ec784672ec59274e4bb4c227935439d6c0b31155
[ "MIT" ]
null
null
null
numatuned/zone.py
dionbosschieter/numatuned
ec784672ec59274e4bb4c227935439d6c0b31155
[ "MIT" ]
null
null
null
numatuned/zone.py
dionbosschieter/numatuned
ec784672ec59274e4bb4c227935439d6c0b31155
[ "MIT" ]
null
null
null
from .read import read class Zone: """Zone value object""" number = 0 def __init__(self, zone_number): self.number = int(zone_number) def get_node_kernel_path(self): return "/sys/devices/system/node/node{}".format(self.number) def get_zone_key(self): return "N{}".format(s...
27.073171
68
0.597297
795eb51e51d9ddc466afa2702c4534d6a34248d6
8,094
py
Python
fairseq/custom/abex4/criterions/kld_loss.py
fxnnxc/text_summarization
b8c8a5f491bc44622203602941c1514b2e006fe3
[ "Apache-2.0" ]
5
2020-10-14T02:30:44.000Z
2021-05-06T12:48:28.000Z
fairseq/custom/abex4/criterions/kld_loss.py
fxnnxc/text_summarization
b8c8a5f491bc44622203602941c1514b2e006fe3
[ "Apache-2.0" ]
2
2020-12-19T05:59:31.000Z
2020-12-22T11:05:31.000Z
fairseq/custom/abex4/criterions/kld_loss.py
fxnnxc/text_summarization
b8c8a5f491bc44622203602941c1514b2e006fe3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn from fairseq import metrics, utils from fairseq.criterions import FairseqCriterion, register_c...
40.268657
105
0.578453
795eb52560b431b1a4e6da651e6db59817007ecc
3,554
py
Python
modelvshuman/models/pytorch/pycontrast/pycontrast_resnet50.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
158
2021-06-04T15:19:58.000Z
2022-03-30T00:31:28.000Z
modelvshuman/models/pytorch/pycontrast/pycontrast_resnet50.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
7
2021-07-20T03:57:34.000Z
2022-02-01T11:00:47.000Z
modelvshuman/models/pytorch/pycontrast/pycontrast_resnet50.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
14
2021-06-16T13:33:11.000Z
2022-03-29T15:04:09.000Z
from collections import OrderedDict import torch import torch.nn as nn CLASSIFIER_WEIGHTS = { "InsDis": "https://github.com/bethgelab/model-vs-human/releases/download/v0.2/InsDis_classifier.pth", "CMC": "https://github.com/bethgelab/model-vs-human/releases/download/v0.2/CMC_classifier.pth", "MoCo": "https...
27.984252
107
0.633652
795eb55a094aba1ca4cc21662f4aaabfb694dd47
1,234
py
Python
tests/test_config.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
tests/test_config.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
tests/test_config.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import project.deco as deco from project.config import Config class TestConfig(object): @pytest.fixture(scope='module') def config(self): return Config("tests/config/project.cfg", "tests/config/project.spc") def test_get(self, config): assert config....
29.380952
80
0.549433
795eb5df2021f44e76854d8713514ab68edd1042
4,417
py
Python
alsek/core/concurrency.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
1
2021-08-16T02:38:40.000Z
2021-08-16T02:38:40.000Z
alsek/core/concurrency.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
alsek/core/concurrency.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
""" Concurrency """ from __future__ import annotations from socket import gethostname from types import TracebackType from typing import Optional, Type, cast from alsek._utils.printing import auto_repr from alsek.storage.backends import Backend class Lock: """Distributed mutual exclusion (MUTEX) lock. ...
27.955696
88
0.56192
795eb5f5c55d6503c9cecccabf953da0d6adaf8a
824
py
Python
err/try04.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
err/try04.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
err/try04.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """try except else and finally | Alta3 Research""" # python standard library import uuid # generate a UUID based on the host id, sequence number, and current time # simulating a ticketed job number ticket = uuid.uuid1() try: # try to do this print('Type the name of the configuration file to lo...
32.96
73
0.686893
795eb67c1a18e85ecb39aa5eecd3fea3b9566f26
7,517
py
Python
setup.py
coffeshop-ai/mmocr
fa888303c33707780262f22b0456fe6893189f82
[ "Apache-2.0" ]
5
2021-12-28T09:48:11.000Z
2021-12-31T08:18:03.000Z
setup.py
coffeshop-ai/mmocr
fa888303c33707780262f22b0456fe6893189f82
[ "Apache-2.0" ]
null
null
null
setup.py
coffeshop-ai/mmocr
fa888303c33707780262f22b0456fe6893189f82
[ "Apache-2.0" ]
1
2021-09-08T02:30:25.000Z
2021-09-08T02:30:25.000Z
import os import os.path as osp import shutil import sys import warnings from setuptools import find_packages, setup def readme(): with open('README.md', encoding='utf-8') as f: content = f.read() return content version_file = 'mmocr/version.py' is_windows = sys.platform == 'win32' def add_mim_ext...
37.029557
125
0.554477
795eb6ef3bc11b84ad378ca454339e2bcd50703d
20,879
py
Python
example/model-parallel-lstm/lstm.py
axbaretto/mxnet
5f593885356ff6d14f5519fa18e79b944beb51cd
[ "Apache-2.0" ]
36
2018-02-10T07:14:27.000Z
2021-09-03T09:11:59.000Z
example/model-parallel-lstm/lstm.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
3
2017-07-10T21:49:18.000Z
2017-07-12T22:40:06.000Z
example/model-parallel-lstm/lstm.py
yanghaojin/BMXNet
102f8d0ed59529bbd162c37bf07ae58ad6c4caa1
[ "Apache-2.0" ]
15
2017-09-20T15:24:53.000Z
2018-01-11T11:14:03.000Z
# pylint:skip-file import sys sys.path.insert(0, "../../python") import mxnet as mx import numpy as np from collections import namedtuple import time import math LSTMState = namedtuple("LSTMState", ["c", "h"]) LSTMParam = namedtuple("LSTMParam", ["i2h_weight", "i2h_bias", "h2h_weigh...
41.426587
100
0.548398
795eb767d48958deae999ffe011691cd57517ba6
1,451
py
Python
Codementor.io/GarethDwyer/apps/flask-crud-app/bookmanager.py
nitin-cherian/Webapps
fbfbef6cb22fc742ee66460268afe6ff7834faa1
[ "MIT" ]
1
2017-11-22T08:56:06.000Z
2017-11-22T08:56:06.000Z
Codementor.io/GarethDwyer/apps/flask-crud-app/bookmanager.py
nitin-cherian/Webapps
fbfbef6cb22fc742ee66460268afe6ff7834faa1
[ "MIT" ]
null
null
null
Codementor.io/GarethDwyer/apps/flask-crud-app/bookmanager.py
nitin-cherian/Webapps
fbfbef6cb22fc742ee66460268afe6ff7834faa1
[ "MIT" ]
null
null
null
# bookmanager.py import os from flask import Flask, render_template, request, redirect from flask_sqlalchemy import SQLAlchemy project_dir = os.path.dirname(os.path.abspath(__file__)) database_file = "sqlite:///{}".format(os.path.join(project_dir, "bookdatabase.db")) app = Flask(__name__) app.config['SQLALCHEMY_DATAB...
25.017241
83
0.665748
795eb791c7e9fa3c8e860b822f8653ee76664127
4,503
py
Python
tools/scripts/coco/coco_caption_eval.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
tools/scripts/coco/coco_caption_eval.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
tools/scripts/coco/coco_caption_eval.py
kmarathe10/mmf
93cd2a7f333ad14e88fa6c2453a0f54b64b36210
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # The following script requires Java 1.8.0 and pycocotools installed. # The pycocoevalcap can be installed with pip as # pip install git+https://github.com/flauted/coco-caption.git@python23 # Original pycocoevalcap code is at https://github.com/tylin/coco-caption # bu...
34.638462
83
0.562958
795eb7b9d49306e75ca792f57e7cf7788ed66b10
7,476
py
Python
parser/team25/code/lexicosql.py
Lenin201/tytus
cace7587b0274ceb26327b583201493bd1048b96
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team25/code/lexicosql.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team25/code/lexicosql.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
# LEXICO palabrasReservadas = { 'insert':'INSERT', 'varchar':'VARCHAR', 'columns':'COLUMNS', 'column':'COLUMN', 'natural':'NATURAL', 'outer':'OUTER', 'bytea':'BYTEA', 'sign':'SIGN', 'rename':'RENAME', 'asc':'ASC', 'desc':'DESC', 'add':'ADD', 'current'...
21.238636
96
0.528491
795eb9902b11be311b3f872c6426a08b721d8c62
146,503
py
Python
scipy/signal/signaltools.py
maxi-marufo/my-scipy
be6c2597fcee86419592ac512319301c7ddfc118
[ "BSD-3-Clause" ]
1
2020-07-22T17:29:25.000Z
2020-07-22T17:29:25.000Z
scipy/signal/signaltools.py
maxi-marufo/my-scipy
be6c2597fcee86419592ac512319301c7ddfc118
[ "BSD-3-Clause" ]
null
null
null
scipy/signal/signaltools.py
maxi-marufo/my-scipy
be6c2597fcee86419592ac512319301c7ddfc118
[ "BSD-3-Clause" ]
null
null
null
# Author: Travis Oliphant # 1999 -- 2002 import operator import math import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd_shape_and_axes import numpy as np f...
34.126019
85
0.590295
795eba600d3b862451fc4c716eefa1d67cfedeed
11,975
py
Python
storage/fase2/team09/HelpMain.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
storage/fase2/team09/HelpMain.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
storage/fase2/team09/HelpMain.py
Gabriel-15/tytus
fb00718bf3fcc5211a3604fba1a551f44bdc6deb
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
# Copyright (c) 2020 TytusDb Team ''' from team16 import avlMode as avl from team17 import BMode as b from team18 import BPlusMode as bplus from CopyTable import * #from DictMode import DictMode as mdict #from team15.storage import HashMode as thash #from team14 import ISAMMode as isam from storageManager import jso...
34.312321
85
0.673987
795ebc6d53a54c255875b6767d077aacc0fdb563
10,700
py
Python
cheroot/workers/threadpool.py
mgorny/cheroot
b2c619f3e60682b9405a87cea48e8d30801b6048
[ "BSD-3-Clause" ]
156
2015-03-18T10:48:51.000Z
2022-02-25T15:16:15.000Z
cheroot/workers/threadpool.py
mgorny/cheroot
b2c619f3e60682b9405a87cea48e8d30801b6048
[ "BSD-3-Clause" ]
394
2017-01-20T07:04:55.000Z
2022-03-12T18:10:41.000Z
cheroot/workers/threadpool.py
mgorny/cheroot
b2c619f3e60682b9405a87cea48e8d30801b6048
[ "BSD-3-Clause" ]
112
2015-03-21T23:24:50.000Z
2022-03-29T09:25:18.000Z
"""A thread-based worker pool. .. spelling:: joinable """ from __future__ import absolute_import, division, print_function __metaclass__ = type import collections import threading import time import socket import warnings from six.moves import queue from jaraco.functools import pass_none __all__ = ('WorkerT...
32.326284
79
0.565701
795ebcd46aa99cd95943b5bb8516a3c2a2f1e0a4
29,765
py
Python
seahub/settings.py
samuelduann/seahub
90ce99e8aa27e3e127aedff2eb2f2ee75228b857
[ "Apache-2.0" ]
null
null
null
seahub/settings.py
samuelduann/seahub
90ce99e8aa27e3e127aedff2eb2f2ee75228b857
[ "Apache-2.0" ]
null
null
null
seahub/settings.py
samuelduann/seahub
90ce99e8aa27e3e127aedff2eb2f2ee75228b857
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012-2016 Seafile Ltd. # -*- coding: utf-8 -*- # Django settings for seahub project. import sys import os import re from seaserv import FILE_SERVER_PORT PROJECT_ROOT = os.path.join(os.path.dirname(__file__), os.pardir) DEBUG = False SERVICE_URL = 'http://127.0.0.1:8000' FILE_SERVER_ROOT = 'http://1...
30.876556
250
0.691114
795ebd4803fd0ae57059bbc8ef5c0fef33d8118c
4,596
py
Python
assets/app.py
ericvanbuhler/cli
366b6593c4adbbe9a474aa90c4291693bcdd4eb9
[ "MIT" ]
null
null
null
assets/app.py
ericvanbuhler/cli
366b6593c4adbbe9a474aa90c4291693bcdd4eb9
[ "MIT" ]
null
null
null
assets/app.py
ericvanbuhler/cli
366b6593c4adbbe9a474aa90c4291693bcdd4eb9
[ "MIT" ]
null
null
null
import cv2 import time import numpy as np import edgeIQ as edge def main(): # loop detecture while True: frame = vs.read() # Send Imge for inferencing #********************************************************* # alwaysAI API Call # Get Object Predictions and Bounding B...
35.627907
125
0.438642
795ebe17546e88384761b6ddc462c6086ce96b37
2,870
py
Python
morax/data/api.py
punidramesh/Hades
0a7c4c632d23f41a0ee16c3fd4d9a7fc49c8f848
[ "MIT" ]
null
null
null
morax/data/api.py
punidramesh/Hades
0a7c4c632d23f41a0ee16c3fd4d9a7fc49c8f848
[ "MIT" ]
null
null
null
morax/data/api.py
punidramesh/Hades
0a7c4c632d23f41a0ee16c3fd4d9a7fc49c8f848
[ "MIT" ]
1
2021-05-26T08:24:31.000Z
2021-05-26T08:24:31.000Z
import requests, os, json, random, string, sys, pathlib, yaml,click from halo import Halo from aiohttp import ClientSession tag_coins = ["XLM"] supported = ["BTC", "ETH", "LTC", "XLM", "MANA", "DOGE"] def APICall(URI): try: config = loadConfig() session = requests.Session() response = session.get(URI, head...
26.82243
69
0.660976
795ebe382159843daec348cc45d52ebf302ef29e
4,849
py
Python
scripts/predictions_and_alternatives_kilt.py
guoyi118/KnowledgeEditor
167d75149d77cd5371c9f625a371e0443098ae99
[ "MIT" ]
59
2021-04-19T04:50:04.000Z
2022-03-25T02:40:15.000Z
scripts/predictions_and_alternatives_kilt.py
guoyi118/KnowledgeEditor
167d75149d77cd5371c9f625a371e0443098ae99
[ "MIT" ]
4
2021-07-01T15:42:37.000Z
2022-01-28T13:51:55.000Z
scripts/predictions_and_alternatives_kilt.py
guoyi118/KnowledgeEditor
167d75149d77cd5371c9f625a371e0443098ae99
[ "MIT" ]
7
2021-04-28T21:52:31.000Z
2022-02-12T06:39:22.000Z
import argparse import logging import string import jsonlines from Levenshtein import distance from tqdm.auto import tqdm from src.models.bart_seq2seq_kilt import BartSeq2Seq from src.models.bert_binary_kilt import BertBinary from src.utils import batch_it, chunk_it def normalize(sent): return ( sent.lo...
25.930481
117
0.499072
795ebf1d74a2a6fe4007ce6f54a2a20c2437f469
506
py
Python
alipay/aop/api/response/AlipayCommerceOperationTimescardAuthorityDeleteResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceOperationTimescardAuthorityDeleteResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AlipayCommerceOperationTimescardAuthorityDeleteResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayCommerceOperationTimescardAuthorityDeleteResponse(AlipayResponse): def __init__(self): super(AlipayCommerceOperationTimescardAuthorityDeleteResponse, self).__init__() ...
31.625
128
0.8083
795ec14f1e96af55de50adaf1738481ffcb785b3
1,684
py
Python
rihanna_bot/rihanna_facebook.py
emylincon/chatbot
60bf7ab8bda0f4207cdd61e15d798ab1bbdad895
[ "MIT" ]
null
null
null
rihanna_bot/rihanna_facebook.py
emylincon/chatbot
60bf7ab8bda0f4207cdd61e15d798ab1bbdad895
[ "MIT" ]
6
2021-03-19T16:09:50.000Z
2022-03-12T00:55:40.000Z
rihanna_bot/rihanna_facebook.py
emylincon/chatbot
60bf7ab8bda0f4207cdd61e15d798ab1bbdad895
[ "MIT" ]
null
null
null
import config import facebook graph = facebook.GraphAPI(access_token=config.fb_access_token, version="2.12") # graph.put_object(parent_object='me', connection_name='feed', message='Hello, world from rihanna') def fb(message): try: if {"facebook", "posts"} - set(message.split()) == set(): re...
30.618182
99
0.589074
795ec15fb3fd0954d519070990e8b40f83a21905
11,261
py
Python
infra/cifuzz/fuzz_target.py
IslandCow/oss-fuzz
56955022c7d0e131c7e3082c13f56cd54e29c72f
[ "Apache-2.0" ]
null
null
null
infra/cifuzz/fuzz_target.py
IslandCow/oss-fuzz
56955022c7d0e131c7e3082c13f56cd54e29c72f
[ "Apache-2.0" ]
null
null
null
infra/cifuzz/fuzz_target.py
IslandCow/oss-fuzz
56955022c7d0e131c7e3082c13f56cd54e29c72f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.437309
80
0.689282
795ec1e44168dc53e1520d7a3fafd301a886227a
2,545
py
Python
local/lib/python3.6/site-packages/pgadmin4/regression/feature_utils/app_starter.py
sahilsdei/django_ecommerce
edc2513e41aca178d1ccae14ebaa6c7b1d709e73
[ "MIT" ]
null
null
null
local/lib/python3.6/site-packages/pgadmin4/regression/feature_utils/app_starter.py
sahilsdei/django_ecommerce
edc2513e41aca178d1ccae14ebaa6c7b1d709e73
[ "MIT" ]
null
null
null
local/lib/python3.6/site-packages/pgadmin4/regression/feature_utils/app_starter.py
sahilsdei/django_ecommerce
edc2513e41aca178d1ccae14ebaa6c7b1d709e73
[ "MIT" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2018, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import os import s...
33.486842
79
0.548527
795ec1f2eba857bc4797604561bcf85e118dd49a
1,815
py
Python
elf/elf/commands.py
GuillaumeCouchard/snake-scales
1b4c84130295dd3ba2c47b884db73dc9c68bfec5
[ "BSD-3-Clause" ]
5
2018-03-15T21:02:19.000Z
2021-07-25T11:34:22.000Z
elf/elf/commands.py
GuillaumeCouchard/snake-scales
1b4c84130295dd3ba2c47b884db73dc9c68bfec5
[ "BSD-3-Clause" ]
7
2019-05-08T09:33:27.000Z
2021-02-24T02:10:40.000Z
elf/elf/commands.py
GuillaumeCouchard/snake-scales
1b4c84130295dd3ba2c47b884db73dc9c68bfec5
[ "BSD-3-Clause" ]
8
2018-04-21T17:55:34.000Z
2021-09-02T12:54:51.000Z
from elftools.common import exceptions from elftools.elf import descriptions from elftools.elf import elffile from snake import error from snake import scale from snake.utils import markdown as md class Commands(scale.Commands): def check(self): pass @scale.command({ 'info': 'view the sectio...
38.617021
108
0.504132
795ec22af04bdd0a15b732a97522efaed7cfbeff
11,607
py
Python
src/discussion/reaction_views.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/discussion/reaction_views.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/discussion/reaction_views.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
from django.contrib.admin.options import get_content_type_for_model from rest_framework import status from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from discussion.permissions import ( CensorDiscussion as CensorDiscu...
29.163317
79
0.603084
795ec2942e08c69589e67defc0bb0ab7060c7d6e
27,327
py
Python
tests/test_downscoped.py
zevdg/google-auth-library-python
7f7d92d63ffee91859fc819416af78cef3baf574
[ "Apache-2.0" ]
1
2021-11-07T18:56:03.000Z
2021-11-07T18:56:03.000Z
tests/test_downscoped.py
menendezjaume/google-auth-library-python
b79b55407b31933c9a8fe6de01478fa00a33fa2b
[ "Apache-2.0" ]
null
null
null
tests/test_downscoped.py
menendezjaume/google-auth-library-python
b79b55407b31933c9a8fe6de01478fa00a33fa2b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.319424
114
0.684598
795ec44300b56881e5522b56f3b9f7f601de9b11
3,263
py
Python
jdcloud_sdk/services/monitor/models/Alarm.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/monitor/models/Alarm.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
null
null
null
jdcloud_sdk/services/monitor/models/Alarm.py
jdcloud-demo/jdcloud-sdk-python
fddc2af24031c597948b8b8091978ac7e01a2695
[ "Apache-2.0" ]
null
null
null
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
41.833333
441
0.673613
795ec50d65ed607d477b5cdcc8f2921a541a9c63
9,554
py
Python
sdk/python/pulumi_aws/wafv2/web_acl_association.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/wafv2/web_acl_association.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/wafv2/web_acl_association.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
48.01005
390
0.666527
795ec59eac6e0e163d9704eab5201ed51f1d73c1
409
py
Python
Django_Server/Raspberry_server_django/raspberry_server/asgi.py
ManasUniyal/Friday
6e1ff6541cca98f073e3fd07218b22da165a613b
[ "MIT" ]
1
2021-03-01T11:25:32.000Z
2021-03-01T11:25:32.000Z
Django_Server/Raspberry_server_django/raspberry_server/asgi.py
ManasUniyal/Friday
6e1ff6541cca98f073e3fd07218b22da165a613b
[ "MIT" ]
null
null
null
Django_Server/Raspberry_server_django/raspberry_server/asgi.py
ManasUniyal/Friday
6e1ff6541cca98f073e3fd07218b22da165a613b
[ "MIT" ]
null
null
null
""" ASGI config for raspberry_server project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621
795ec5beadc597ce1eac8f5e3ca6577ce4d9e896
1,260
py
Python
_colors.py
viviani-giordano/voids-profiles
815c0c411faeb99e23eded23503459739549c263
[ "MIT" ]
null
null
null
_colors.py
viviani-giordano/voids-profiles
815c0c411faeb99e23eded23503459739549c263
[ "MIT" ]
null
null
null
_colors.py
viviani-giordano/voids-profiles
815c0c411faeb99e23eded23503459739549c263
[ "MIT" ]
null
null
null
# Color Class class col: """ Class that defines some of the terminal colors useful while printing: Possible colors: -HEADER -STEP -WARNING -FAIL -IMPORTANT_FAIL -UNDERLINE -END (to restore default printing setting) """ HEADER = '...
24.705882
74
0.45873
795ec67f74efb132b047ebeab12c0544b8699257
3,420
py
Python
test/functional/wallet_keypool.py
bitcoin-money/bitcoinmoney
d208756366292fa7ab16b8f4b9f2dff9b8567bee
[ "MIT" ]
null
null
null
test/functional/wallet_keypool.py
bitcoin-money/bitcoinmoney
d208756366292fa7ab16b8f4b9f2dff9b8567bee
[ "MIT" ]
null
null
null
test/functional/wallet_keypool.py
bitcoin-money/bitcoinmoney
d208756366292fa7ab16b8f4b9f2dff9b8567bee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Money developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet keypool and interaction with wallet encryption/locking.""" from test_framework.test_f...
40.235294
119
0.661988
795ec6d6436a241459f2992e4f44335c1064d35a
18,654
py
Python
echopype/convert/parse_azfp.py
stuara/echopype
e01d57592385324b5747fb5c98d498ff50c42194
[ "Apache-2.0" ]
null
null
null
echopype/convert/parse_azfp.py
stuara/echopype
e01d57592385324b5747fb5c98d498ff50c42194
[ "Apache-2.0" ]
2
2019-02-20T16:47:51.000Z
2021-04-20T20:20:32.000Z
echopype/convert/parse_azfp.py
stuara/echopype
e01d57592385324b5747fb5c98d498ff50c42194
[ "Apache-2.0" ]
2
2019-02-20T16:41:56.000Z
2021-08-05T04:33:07.000Z
import math import os import xml.dom.minidom from collections import defaultdict from datetime import datetime as dt from struct import unpack import fsspec import numpy as np from .parse_base import ParseBase FILENAME_DATETIME_AZFP = "\\w+.01A" class ParseAZFP(ParseBase): """Class for converting data from ASL...
39.106918
99
0.484347
795ec6fdb792a5ae9e43fffe6fd6388f47d621af
12,047
py
Python
vnpy/event/engine.py
jojoquant/jnpy
c874060af4b129ae09cee9f8542517b7b2f6573b
[ "MIT" ]
null
null
null
vnpy/event/engine.py
jojoquant/jnpy
c874060af4b129ae09cee9f8542517b7b2f6573b
[ "MIT" ]
null
null
null
vnpy/event/engine.py
jojoquant/jnpy
c874060af4b129ae09cee9f8542517b7b2f6573b
[ "MIT" ]
null
null
null
""" Event-driven framework of VeighNa framework. """ from collections import defaultdict from queue import Empty, Queue from threading import Thread from time import sleep from typing import Any, Callable, List import pika from pika.adapters.blocking_connection import BlockingChannel from vnpy.trader.object import Ti...
35.536873
127
0.579563
795ec6fea5b5d5c4f796240fea52139b9d4f5799
345
py
Python
buyer/tests/test_tasks.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
buyer/tests/test_tasks.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
buyer/tests/test_tasks.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from unittest import mock from buyer.tasks import buyers_csv_upload @mock.patch('buyer.tasks.lock_acquired', mock.Mock(return_value=True)) @mock.patch('buyer.tasks.call_command') def test_buyers_csv_upload(mocked_call_command): buyers_csv_upload() mocked_call_command.assert_called_once_with( 'generat...
26.538462
70
0.791304
795eca7fd8deb8e53f3d510420f7ffc4973f2d8d
9,106
py
Python
9_classes.py
PhilMcDaniel/python-crash-course
1f5d57af87256d7d59c17005cbecd5b5b48a16fb
[ "MIT" ]
null
null
null
9_classes.py
PhilMcDaniel/python-crash-course
1f5d57af87256d7d59c17005cbecd5b5b48a16fb
[ "MIT" ]
null
null
null
9_classes.py
PhilMcDaniel/python-crash-course
1f5d57af87256d7d59c17005cbecd5b5b48a16fb
[ "MIT" ]
null
null
null
#capital for classes #function inside a class is called a method #class is set of instructions to call a specific instance class Dog: """A simple attempt to model a dog""" #__init__ is special method that python runs automatically when we create new instance of class #self is needed and must come first...
30.353333
132
0.672304
795ecb084c60a76d86b5af66b8a9c01422337c5b
47,493
py
Python
watson_developer_cloud/tone_analyzer_v3.py
aorumbayev/python-sdk
8cd3f62b0b0dfe2508738f61e0b07e843edb414f
[ "Apache-2.0" ]
null
null
null
watson_developer_cloud/tone_analyzer_v3.py
aorumbayev/python-sdk
8cd3f62b0b0dfe2508738f61e0b07e843edb414f
[ "Apache-2.0" ]
null
null
null
watson_developer_cloud/tone_analyzer_v3.py
aorumbayev/python-sdk
8cd3f62b0b0dfe2508738f61e0b07e843edb414f
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2018 IBM 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 applicabl...
43.691812
129
0.63144
795eccf62600d8f6a1831dc88661487d7abf013f
18,357
py
Python
dataactvalidator/validation_handlers/validator.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
null
null
null
dataactvalidator/validation_handlers/validator.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
null
null
null
dataactvalidator/validation_handlers/validator.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
from collections import defaultdict, namedtuple from datetime import datetime import logging from dataactcore.models.lookups import FILE_TYPE_DICT, RULE_SEVERITY_DICT from dataactcore.models.validationModels import RuleSql from dataactcore.interfaces.db import GlobalDB logger = logging.getLogger(__name__) Failure = ...
47.556995
120
0.576183
795ece2e655ea62f15944bacf4039d976d004ebf
7,915
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_resource_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_resource_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2020_10_01/models/_resource_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.378109
102
0.704106
795ece58165808a2c1656f5414a735696744263c
302
py
Python
pset_pandas_ext/101problems/p2.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
5
2019-04-08T20:05:37.000Z
2019-12-04T20:48:45.000Z
pset_pandas_ext/101problems/p2.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
8
2019-04-15T15:16:05.000Z
2022-02-12T10:33:32.000Z
pset_pandas_ext/101problems/p2.py
mottaquikarim/pydev-psets
9749e0d216ee0a5c586d0d3013ef481cc21dee27
[ "MIT" ]
2
2019-04-10T00:14:42.000Z
2020-02-26T20:35:21.000Z
""" 2. How to create a series from a list, numpy array and dict? """ """ Create a pandas series from each of the items below: a list, numpy and a dictionary """ """ Input """ """ import numpy as np mylist = list('abcedfghijklmnopqrstuvwxyz') myarr = np.arange(26) mydict = dict(zip(mylist, myarr)) """
18.875
83
0.682119
795ece79dc7d2a51e34f43606e7d6f5c85d1bfeb
1,933
py
Python
rally/plugins/__init__.py
tyzhnenko/rally
1d9c1e82f33686c80e49edd041fcd8d0253afdb1
[ "Apache-2.0" ]
263
2015-04-26T16:05:34.000Z
2022-02-28T11:17:07.000Z
rally/plugins/__init__.py
tyzhnenko/rally
1d9c1e82f33686c80e49edd041fcd8d0253afdb1
[ "Apache-2.0" ]
19
2015-04-23T11:53:10.000Z
2019-02-20T11:23:09.000Z
rally/plugins/__init__.py
tyzhnenko/rally
1d9c1e82f33686c80e49edd041fcd8d0253afdb1
[ "Apache-2.0" ]
287
2015-04-23T11:28:03.000Z
2021-09-16T13:05:53.000Z
# Copyright 2015: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
31.688525
78
0.695292
795ece89dd2bd2a81ed83b985523828b4aa31625
6,420
py
Python
lib/python/treadmill/cli/admin/ldap/cell.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
2
2017-10-31T18:48:20.000Z
2018-03-04T20:35:20.000Z
lib/python/treadmill/cli/admin/ldap/cell.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill/cli/admin/ldap/cell.py
bretttegart/treadmill
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
[ "Apache-2.0" ]
null
null
null
"""Implementation of treadmill admin ldap CLI cell plugin. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import click from ldap3.core import exceptions as ldap_exceptions from treadmill import admin ...
33.612565
75
0.56947
795ecf9a7d38d7b694ab6c508eeefa70838c1a77
5,669
py
Python
storlets-3.0.0/storlets/sbus/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
storlets-3.0.0/storlets/sbus/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
storlets-3.0.0/storlets/sbus/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2015, 2016 OpenStack Foundation. # # 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 agr...
35.879747
74
0.523196
795ed246b4b0a7cde47dd52c26f7f55069b3a127
536
py
Python
users/templatetags/template.py
AeroYoung/PyCSE
4cc73bf8d0b949c0225acd44fd32f992135a5ca1
[ "MIT" ]
null
null
null
users/templatetags/template.py
AeroYoung/PyCSE
4cc73bf8d0b949c0225acd44fd32f992135a5ca1
[ "MIT" ]
null
null
null
users/templatetags/template.py
AeroYoung/PyCSE
4cc73bf8d0b949c0225acd44fd32f992135a5ca1
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter() def label_with_for(value, arg): return value.label_tag(attrs={'for': value.id_for_label}) @register.filter() def label_with_classes(value, arg): return value.label_tag(attrs={'class': arg}) @register.filter() def widget_with_cl...
20.615385
76
0.735075
795ed2d1c718d78a5cb9ea5daa0d9cd23860507f
20,544
py
Python
flux_combined_high_binding/model_21.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_21.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_21.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.111111
798
0.804079
795ed2ed509448d5c601369fe4b97de39081517c
14,490
py
Python
dataset_06/greentea_brew_tool.py
naibaf7/caffe_neural_models
9d372c4bc599029902185e19f89e5c39f842fff7
[ "BSD-2-Clause" ]
28
2015-06-11T07:48:29.000Z
2019-06-28T01:29:09.000Z
dataset_06/greentea_brew_tool.py
naibaf7/caffe_neural_models
9d372c4bc599029902185e19f89e5c39f842fff7
[ "BSD-2-Clause" ]
2
2015-10-01T13:14:46.000Z
2016-09-28T16:25:35.000Z
dataset_06/greentea_brew_tool.py
naibaf7/caffe_neural_models
9d372c4bc599029902185e19f89e5c39f842fff7
[ "BSD-2-Clause" ]
16
2015-07-08T18:47:59.000Z
2020-03-26T13:48:48.000Z
import os, sys, inspect import h5py import numpy as np import random import math import multiprocessing from Crypto.Random.random import randint import gc import resource # Visualization import matplotlib import matplotlib.pyplot as plt from PIL import Image # from mayavi import mlab # from mayavi.core.ui.mayavi_scene...
38.743316
167
0.630642
795ed307020e037d8825387d406822daebc63249
1,950
py
Python
interface/component/config_frame/composed/custom_list_box.py
AsiganTheSunk/python-torrent-scrapper
30f27962e795840b82d47398e05664429829ff2b
[ "Apache-2.0" ]
5
2018-05-19T06:18:01.000Z
2020-01-14T23:17:30.000Z
interface/component/config_frame/composed/custom_list_box.py
AsiganTheSunk/python-torrent-scrapper
30f27962e795840b82d47398e05664429829ff2b
[ "Apache-2.0" ]
9
2018-05-24T01:02:46.000Z
2020-02-13T22:35:43.000Z
interface/component/config_frame/composed/custom_list_box.py
AsiganTheSunk/python-torrent-scrapper
30f27962e795840b82d47398e05664429829ff2b
[ "Apache-2.0" ]
null
null
null
# Import Interface Libraries from tkinter import * # Import Custom Interface Components from interface.component.config_frame.simple.vertical_list_box import SimpleVerticalListBox class CustomListBox(Frame): def __init__(self, master, row, column, cmmndClose, background='#ADD8E6'): Frame.__init__(self, m...
42.391304
167
0.689744
795ed3e8416a1ee0141cceb418486c4d620a5754
63
py
Python
src/cobra/apps/project/__init__.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
1
2015-01-27T08:56:46.000Z
2015-01-27T08:56:46.000Z
src/cobra/apps/project/__init__.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
null
null
null
src/cobra/apps/project/__init__.py
lyoniionly/django-cobra
2427e5cf74b7739115b1224da3306986b3ee345c
[ "Apache-2.0" ]
null
null
null
default_app_config = 'cobra.apps.project.config.ProjectConfig'
31.5
62
0.84127
795ed4f69632d009bde064f48da3118e9b97a1b9
4,968
py
Python
kubernetes/client/models/v1beta2_rolling_update_daemon_set.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta2_rolling_update_daemon_set.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta2_rolling_update_daemon_set.py
craigtracey/python
177564c655c0ea3f9cf38e61ca275ef6c6256aab
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
39.11811
838
0.644324
795ed5100ffd6343a6cae9185fa61672689becec
22,708
py
Python
chia/wallet/wallet.py
bolshoytoster/chia-blockchain
1086fb255601de931dc771caa7327f4df5c87ace
[ "Apache-2.0" ]
2
2022-02-03T01:22:32.000Z
2022-02-03T01:44:43.000Z
chia/wallet/wallet.py
jacobdmn/chia-blockchain
29fad42e0c42654ec123e414966b1aa29789f384
[ "Apache-2.0" ]
null
null
null
chia/wallet/wallet.py
jacobdmn/chia-blockchain
29fad42e0c42654ec123e414966b1aa29789f384
[ "Apache-2.0" ]
null
null
null
import logging import time from typing import Any, Dict, List, Optional, Set from blspy import G1Element from chia.consensus.cost_calculator import NPCResult from chia.full_node.bundle_tools import simple_solution_generator from chia.full_node.mempool_check_conditions import get_name_puzzle_conditions from chia.types...
42.604128
117
0.653514
795ed525513dd961f917c90fdc6ca3c43f91185a
12,140
py
Python
superset/cli.py
wuxuedaifu/apache-superset
9b6bd1037453cfbd48f307721e682662b08250ea
[ "MIT" ]
11
2020-04-23T02:20:49.000Z
2022-02-14T12:58:25.000Z
superset/cli.py
wuxuedaifu/apache-superset
9b6bd1037453cfbd48f307721e682662b08250ea
[ "MIT" ]
7
2020-09-04T03:30:06.000Z
2022-03-08T23:20:15.000Z
superset/cli.py
wuxuedaifu/apache-superset
9b6bd1037453cfbd48f307721e682662b08250ea
[ "MIT" ]
1
2020-06-05T09:57:31.000Z
2020-06-05T09:57:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=C,R,W from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime import logging from subprocess import Popen from sys import stdout im...
32.98913
89
0.638056
795ed52ba360c051310b00b41e9897328b85a645
1,197
py
Python
ui_kit/views.py
BastienSozeau/BS_Ui-k
7367c910762a6aa0b778637443c19f051fc64ea9
[ "MIT" ]
null
null
null
ui_kit/views.py
BastienSozeau/BS_Ui-k
7367c910762a6aa0b778637443c19f051fc64ea9
[ "MIT" ]
11
2021-02-08T20:43:38.000Z
2022-03-12T00:20:55.000Z
ui_kit/views.py
BastienSozeau/BS_Ui-kit
7367c910762a6aa0b778637443c19f051fc64ea9
[ "MIT" ]
null
null
null
from django.shortcuts import render from ui_kit.forms import CommentForm from ui_kit.models import Post, Comment def ui_kit_index(request): posts = Post.objects.all().order_by('-created_on') context = { "posts": posts, } return render(request, "ui_kit_index.html", context) def ui_kit_catego...
24.9375
59
0.60401
795ed552d2afd73ac6158dc4423ae9e8038b117f
616
py
Python
tests/entity_test.py
stencila/libdh
41b0dc826e6a6af3390877736185ed90b52459a2
[ "Apache-2.0" ]
2
2019-01-20T09:35:06.000Z
2019-03-29T20:29:59.000Z
tests/entity_test.py
stencila/libdh
41b0dc826e6a6af3390877736185ed90b52459a2
[ "Apache-2.0" ]
1
2018-03-19T22:56:07.000Z
2018-03-20T03:14:19.000Z
tests/entity_test.py
stencila/libdh
41b0dc826e6a6af3390877736185ed90b52459a2
[ "Apache-2.0" ]
1
2018-04-04T00:08:22.000Z
2018-04-04T00:08:22.000Z
from funcs.entity_recognition import entity_recognition def test_entity_recognition_array_places(): """ entity_recognition can be called with an array of strings (e.g. a column of cells containing strings) """ grams = entity_recognition(['Germany', 'France', '154', 'New Zealand']) assert grams ...
34.222222
86
0.699675
795ed5650648b5366554cf3bbd80e8cad2836c8b
2,167
py
Python
tests/test_class_oelint_spaces_linecont.py
HerrMuellerluedenscheid/oelint-adv
90ad0a9e385d863af85869f06750aa5d2440e986
[ "BSD-2-Clause" ]
22
2019-06-10T00:40:07.000Z
2022-01-18T19:59:47.000Z
tests/test_class_oelint_spaces_linecont.py
HerrMuellerluedenscheid/oelint-adv
90ad0a9e385d863af85869f06750aa5d2440e986
[ "BSD-2-Clause" ]
274
2019-03-07T06:00:27.000Z
2022-03-27T10:22:10.000Z
tests/test_class_oelint_spaces_linecont.py
HerrMuellerluedenscheid/oelint-adv
90ad0a9e385d863af85869f06750aa5d2440e986
[ "BSD-2-Clause" ]
17
2019-08-24T23:04:39.000Z
2021-11-02T19:18:19.000Z
import os import sys import pytest sys.path.insert(0, os.path.abspath(os.path.dirname(__file__))) from base import TestBaseClass class TestClassOelintSpacesLineCont(TestBaseClass): @pytest.mark.parametrize('id', ['oelint.spaces.linecont']) @pytest.mark.parametrize('occurrence', [1]) @pytest.mark.parame...
22.810526
67
0.389479
795ed609cf69a03f81e660103d2528e481e8b80c
3,931
py
Python
blockchain/miner_node/wallet.py
cosminacho/Joulon
05f46ea1dbd2ef681f442e77cde8336048684535
[ "MIT" ]
null
null
null
blockchain/miner_node/wallet.py
cosminacho/Joulon
05f46ea1dbd2ef681f442e77cde8336048684535
[ "MIT" ]
null
null
null
blockchain/miner_node/wallet.py
cosminacho/Joulon
05f46ea1dbd2ef681f442e77cde8336048684535
[ "MIT" ]
null
null
null
from Crypto.Signature import PKCS1_v1_5 from Crypto.PublicKey import RSA from Crypto.Hash import SHA256 import Crypto.Random import binascii import json class Wallet: """ Creates, loads and holds private and public keys. Manages transaction signing and verification. """ def __init__(self, node_id, private_ke...
38.539216
107
0.626558
795ed7e9edcf224886f1830ed6a3624a15b7f9ae
567
py
Python
biobb_md/test/unitests/test_gromacs/test_genion_singularity.py
EmileDeBruyn/biobb_md
88db5a66d558d49c007e57810e5421d1458d5605
[ "Apache-2.0" ]
4
2020-06-11T18:01:58.000Z
2021-12-14T10:43:42.000Z
biobb_md/test/unitests/test_gromacs/test_genion_singularity.py
EmileDeBruyn/biobb_md
88db5a66d558d49c007e57810e5421d1458d5605
[ "Apache-2.0" ]
46
2018-11-16T21:50:49.000Z
2021-11-19T12:11:09.000Z
biobb_md/test/unitests/test_gromacs/test_genion_singularity.py
EmileDeBruyn/biobb_md
88db5a66d558d49c007e57810e5421d1458d5605
[ "Apache-2.0" ]
4
2020-11-08T12:23:41.000Z
2021-12-14T10:43:54.000Z
from biobb_common.tools import test_fixtures as fx from biobb_md.gromacs.genion import genion class TestGenionSingularity: def setUp(self): fx.test_setup(self, 'genion_singularity') def tearDown(self): #pass fx.test_teardown(self) def test_genion_singularity(self): return...
31.5
89
0.714286
795ed7eec89f40b2f9b4169bd7c7e0f76f2b2deb
19,207
py
Python
elephant/spectral.py
morales-gregorio/elephant
6193e665f536f5b806f8f635c1245d9619ed234f
[ "BSD-3-Clause" ]
null
null
null
elephant/spectral.py
morales-gregorio/elephant
6193e665f536f5b806f8f635c1245d9619ed234f
[ "BSD-3-Clause" ]
2
2020-12-16T15:41:52.000Z
2021-01-12T15:48:56.000Z
elephant/spectral.py
TRuikes/elephant
70ee3c8dcd3fdc7792815ff2417b95b5be01fc0f
[ "BSD-3-Clause" ]
1
2020-12-20T17:24:32.000Z
2020-12-20T17:24:32.000Z
# -*- coding: utf-8 -*- """ Identification of spectral properties in analog signals (e.g., the power spectrum). :copyright: Copyright 2015-2016 by the Elephant team, see `doc/authors.rst`. :license: Modified BSD, see LICENSE.txt for details. """ from __future__ import division, print_function, unicode_literals impor...
41.663774
79
0.647004
795ed8e7bfa3fe67ab3a69cb692eeca9a44f7808
34,002
py
Python
sunpy/net/vso/vso.py
ndchorley/sunpy
eefc101d993884b89a58e5ab3439e624a2e616c0
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/vso/vso.py
ndchorley/sunpy
eefc101d993884b89a58e5ab3439e624a2e616c0
[ "BSD-2-Clause" ]
null
null
null
sunpy/net/vso/vso.py
ndchorley/sunpy
eefc101d993884b89a58e5ab3439e624a2e616c0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This module provides a wrapper around the VSO API. """ import os import re import cgi import socket import datetime import warnings import itertools import inspect from functools import partial from collections import defaultdict from urllib.error import URLError, HTTPError from urllib.requ...
36.998912
106
0.558202
795ed93b19188aeb968e57a27dd7c408826e7121
4,907
py
Python
rocsolver/docs/source/conf.py
leekillough/rocSOLVER
a0fa2af65be983dcec60081ed618b0642867aef0
[ "BSD-2-Clause" ]
null
null
null
rocsolver/docs/source/conf.py
leekillough/rocSOLVER
a0fa2af65be983dcec60081ed618b0642867aef0
[ "BSD-2-Clause" ]
null
null
null
rocsolver/docs/source/conf.py
leekillough/rocSOLVER
a0fa2af65be983dcec60081ed618b0642867aef0
[ "BSD-2-Clause" ]
null
null
null
import os import sys import subprocess read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' if read_the_docs_build: subprocess.call('cd ..; ./run_doxygen.sh; cd source', shell=True) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal...
30.478261
81
0.678011
795edc040e635624bc9a6c8c13afc5308c4d604e
5,384
py
Python
pylogsentiment/sentiment/pylogsentiment_method.py
studiawan/pylogsentiment
e2ce2cb44cacc9e4c3537af8fb984e6630ee531f
[ "MIT" ]
2
2021-04-17T15:25:50.000Z
2022-02-16T16:59:58.000Z
pylogsentiment/sentiment/pylogsentiment_method.py
studiawan/pylogsentiment
e2ce2cb44cacc9e4c3537af8fb984e6630ee531f
[ "MIT" ]
4
2020-09-26T01:12:59.000Z
2022-02-10T01:56:57.000Z
pylogsentiment/sentiment/pylogsentiment_method.py
studiawan/pylogsentiment
e2ce2cb44cacc9e4c3537af8fb984e6630ee531f
[ "MIT" ]
2
2021-04-12T10:40:47.000Z
2021-11-11T11:40:06.000Z
import os import numpy as np import pickle from sklearn.metrics import precision_recall_fscore_support from sklearn.metrics import accuracy_score from keras.models import Sequential, load_model from keras.layers import Embedding, SpatialDropout1D, Dense, GRU from keras.utils import to_categorical from keras.callbacks i...
44.495868
119
0.634101
795edd3da7ffbd04433620f62a927dc4b99148ae
5,722
py
Python
unit-tests/test_command_register.py
dstromberg/Commander
db521cbd1ef0367e95e120011d12bfe9ad6034f8
[ "MIT" ]
null
null
null
unit-tests/test_command_register.py
dstromberg/Commander
db521cbd1ef0367e95e120011d12bfe9ad6034f8
[ "MIT" ]
null
null
null
unit-tests/test_command_register.py
dstromberg/Commander
db521cbd1ef0367e95e120011d12bfe9ad6034f8
[ "MIT" ]
null
null
null
from unittest import TestCase, mock import pytest from data_vault import get_synced_params, VaultEnvironment, get_user_params from keepercommander.commands import register vault_env = VaultEnvironment() class TestRegister(TestCase): expected_commands = [] def setUp(self): self.communicate_mock = ...
43.679389
145
0.661482
795edeb473709f4a7075a41e91a9d6fbd19b3f19
19,394
py
Python
kms/api-client/snippets_test.py
apecr/python-docs-samples
26b581bb6ce148e13a9c7f2cd801f138b8aa8412
[ "Apache-2.0" ]
1
2020-06-04T16:50:49.000Z
2020-06-04T16:50:49.000Z
kms/api-client/snippets_test.py
apecr/python-docs-samples
26b581bb6ce148e13a9c7f2cd801f138b8aa8412
[ "Apache-2.0" ]
null
null
null
kms/api-client/snippets_test.py
apecr/python-docs-samples
26b581bb6ce148e13a9c7f2cd801f138b8aa8412
[ "Apache-2.0" ]
1
2020-05-29T20:33:18.000Z
2020-05-29T20:33:18.000Z
# Copyright 2017 Google, 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, ...
45.740566
141
0.77988
795edeccfbd6b7bd3f3478c7252f5a18d45fcc21
878
py
Python
Redmi_Note6_Pro/yuandu.py
tianjyan/AutoClick
fd7b56063868eb502544f08b14a6adcd5f8bb321
[ "MIT" ]
1
2020-04-13T05:26:16.000Z
2020-04-13T05:26:16.000Z
Redmi_Note6_Pro/yuandu.py
tianjyan/AutoClick
fd7b56063868eb502544f08b14a6adcd5f8bb321
[ "MIT" ]
null
null
null
Redmi_Note6_Pro/yuandu.py
tianjyan/AutoClick
fd7b56063868eb502544f08b14a6adcd5f8bb321
[ "MIT" ]
null
null
null
# !/usr/bin/python # -*- coding: utf-8 -*- import os import sys sys.path.append("..") import time from abcadb import ABCAdb from logger import Logger __author__ = 'Tianjie Yang' __email__ = "tianjyan@qq.com" class AutoClick(ABCAdb): def run(self): while True: self.revisit(200, 715) ...
19.511111
39
0.530752
795eded6ec1ef4bfc253bf79acefa68525e3530e
7,412
py
Python
homeassistant/components/sonos/switch.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/sonos/switch.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
70
2020-07-23T07:13:50.000Z
2022-03-31T06:01:52.000Z
homeassistant/components/sonos/switch.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
6
2018-02-04T03:48:55.000Z
2022-01-24T20:37:04.000Z
"""Entity representing a Sonos Alarm.""" from __future__ import annotations import datetime import logging from pysonos.exceptions import SoCoException, SoCoUPnPException from homeassistant.components.switch import ENTITY_ID_FORMAT, SwitchEntity from homeassistant.const import ATTR_TIME from homeassistant.core impor...
35.295238
88
0.648543
795ee032d415be475ff7f440c068d9743863812a
149
py
Python
tests/test_building/cycle_include/test_cycle_include.py
wkcn/MobulaOP
ae693a6a55824e9a0785f5b9befde6bd8ecccfd6
[ "MIT" ]
161
2018-05-07T13:30:31.000Z
2022-01-05T09:39:44.000Z
tests/test_building/cycle_include/test_cycle_include.py
wkcn/MobulaOP
ae693a6a55824e9a0785f5b9befde6bd8ecccfd6
[ "MIT" ]
88
2018-05-14T21:06:30.000Z
2020-09-27T10:48:08.000Z
tests/test_building/cycle_include/test_cycle_include.py
wkcn/MobulaOP
ae693a6a55824e9a0785f5b9befde6bd8ecccfd6
[ "MIT" ]
23
2018-07-19T12:40:00.000Z
2020-08-24T01:02:29.000Z
import os import mobula mobula.op.load('./Cycle', os.path.dirname(__file__)) def test_cycle_include(): assert mobula.func.get_answer() == 42
14.9
52
0.718121
795ee0845786915c985e203939fa0dedf07af773
1,853
py
Python
scripts/save-momentum-budget.py
jenfly/monsoon-onset
6d8651a337daa174960e716d378292452db77246
[ "MIT" ]
3
2016-10-22T07:11:46.000Z
2021-05-23T12:21:21.000Z
scripts/save-momentum-budget.py
jenfly/monsoon-onset
6d8651a337daa174960e716d378292452db77246
[ "MIT" ]
1
2022-02-23T08:28:52.000Z
2022-02-23T08:28:52.000Z
scripts/save-momentum-budget.py
jenfly/monsoon-onset
6d8651a337daa174960e716d378292452db77246
[ "MIT" ]
2
2017-05-25T02:45:53.000Z
2021-08-07T09:30:02.000Z
import sys sys.path.append('/home/jwalker/dynamics/python/atmos-tools') sys.path.append('/home/jwalker/dynamics/python/atmos-read') sys.path.append('/home/jwalker/dynamics/python/monsoon-onset') import numpy as np import xarray as xray import pandas as pd import matplotlib.pyplot as plt import collections import atmo...
31.40678
74
0.631409
795ee1a581294e4218603ccd7ceb1ca478ef05d4
3,627
py
Python
bcs-ui/backend/components/bcs/__init__.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/components/bcs/__init__.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/components/bcs/__init__.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) 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 co...
33.583333
116
0.683485
795ee2f8bef52bb933043358bb6d5b96bc2c8192
4,632
py
Python
google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py
jiulongw/google-ads-python
6f5256eb1eeb5a9a95c8cdb9b97988d3a676282e
[ "Apache-2.0" ]
1
2020-03-13T00:14:31.000Z
2020-03-13T00:14:31.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v1/proto/resources/feed_placeholder_view.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protob...
48.757895
768
0.795984
795ee40b5d42098a76c43c651afbeec3cc936bc5
636
py
Python
marketcl/items/utils.py
timbook/marketcl
41ad7b74f5d9d7958deb088481773f74c5ca2620
[ "MIT" ]
null
null
null
marketcl/items/utils.py
timbook/marketcl
41ad7b74f5d9d7958deb088481773f74c5ca2620
[ "MIT" ]
null
null
null
marketcl/items/utils.py
timbook/marketcl
41ad7b74f5d9d7958deb088481773f74c5ca2620
[ "MIT" ]
1
2021-08-06T17:27:06.000Z
2021-08-06T17:27:06.000Z
import yfinance as yf def get_one_price(sym): df = yf.download( tickers=sym, period="5d", interval="1m", progress=False ) return round(df.Close.dropna()[-1], 2) def get_many_prices(syms): if len(syms) == 1: return {syms[0]: get_one_price(syms[0])} else: ...
25.44
82
0.56761
795ee4afe35ee3a62dc6273ca96565ba374d830e
520
py
Python
acceptance_tests/features/pages/create_collection_exercise.py
ONSdigital/ras-integration-tests
ac31b8c2e79fec70e1475731edabc5acd54e8874
[ "MIT" ]
2
2017-11-03T13:10:46.000Z
2018-01-29T13:12:12.000Z
acceptance_tests/features/pages/create_collection_exercise.py
ONSdigital/rasrm-acceptance-tests
ac31b8c2e79fec70e1475731edabc5acd54e8874
[ "MIT" ]
99
2018-02-23T10:52:22.000Z
2021-02-03T11:35:54.000Z
acceptance_tests/features/pages/create_collection_exercise.py
ONSdigital/ras-integration-tests
ac31b8c2e79fec70e1475731edabc5acd54e8874
[ "MIT" ]
1
2021-04-11T07:55:47.000Z
2021-04-11T07:55:47.000Z
from acceptance_tests import browser def edit_period(period): browser.find_by_id('period').fill(period) def check_period_length(): return browser.find_by_id('period').value def edit_user_description(user_description): browser.find_by_id('user_description').fill(user_description) def click_save(): ...
20
65
0.755769
795ee532e761d1d124877b85e503c0069bc74d58
1,595
py
Python
src/azure-cli/azure/cli/command_modules/appconfig/__init__.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/appconfig/__init__.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/appconfig/__init__.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.305556
96
0.611285
795ee60b3648c5857605fa547e071a7f14d8fe34
9,907
py
Python
api/python/config/vm_pb2.py
archishou/eve
0776f6fd93c17b461c4598996ff6f937e2f42de0
[ "Apache-2.0" ]
null
null
null
api/python/config/vm_pb2.py
archishou/eve
0776f6fd93c17b461c4598996ff6f937e2f42de0
[ "Apache-2.0" ]
null
null
null
api/python/config/vm_pb2.py
archishou/eve
0776f6fd93c17b461c4598996ff6f937e2f42de0
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: config/vm.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as ...
43.451754
959
0.725346
795ee6179ea55aa33b4fe91a0f5de05252013453
887
py
Python
17. Color Trackbar/colorTrackbar.py
codePerfectPlus/ComputerVision-Essentials
cfaa9e45ddc73cf6f3a6450f64a0d03268a60392
[ "MIT" ]
15
2021-05-04T15:03:14.000Z
2022-03-20T11:57:55.000Z
17. Color Trackbar/colorTrackbar.py
codePerfectPlus/ComputerVision-Essentials
cfaa9e45ddc73cf6f3a6450f64a0d03268a60392
[ "MIT" ]
12
2020-09-24T16:57:45.000Z
2020-10-23T15:13:06.000Z
17. Color Trackbar/colorTrackbar.py
codePerfectPlus/OpenCv-tutorial
cfaa9e45ddc73cf6f3a6450f64a0d03268a60392
[ "MIT" ]
18
2020-09-21T13:01:37.000Z
2020-10-15T19:42:28.000Z
""" Color Tracker GUI """ import numpy as np import cv2 def nothing(x): pass # Create a black image, a window img = np.zeros((300, 512, 3), np.uint8) cv2.namedWindow('Color Tracker') # create trackbars for color change cv2.createTrackbar('R','image',0,255,nothing) cv2.createTrackbar('G','image',0,255,nothing) c...
22.175
47
0.636979
795ee6cc5d1aed468b3fc35d0ec0ad6053bd49e5
791
py
Python
tests/helpers.py
Pineirin/invenio-theme
e7dfdb71b9bfb87000c4adc1e27ec380f64fea2a
[ "MIT" ]
7
2015-10-21T16:10:30.000Z
2021-08-20T08:21:06.000Z
tests/helpers.py
Pineirin/invenio-theme
e7dfdb71b9bfb87000c4adc1e27ec380f64fea2a
[ "MIT" ]
141
2015-10-08T23:47:19.000Z
2022-03-30T15:24:05.000Z
tests/helpers.py
Pineirin/invenio-theme
e7dfdb71b9bfb87000c4adc1e27ec380f64fea2a
[ "MIT" ]
49
2015-10-09T06:42:03.000Z
2022-03-25T12:28:16.000Z
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2017-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Pytest helpers.""" from __future__ import absolute_import, print_function impor...
24.71875
72
0.710493
795ee85307327c3720915cefb2a9e17a23741248
1,751
py
Python
roglick/engine/file_obj.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
6
2015-05-05T21:28:35.000Z
2019-04-14T13:42:38.000Z
roglick/engine/file_obj.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
null
null
null
roglick/engine/file_obj.py
Kromey/roglick
b76202af71df0c30be0bd5f06a3428c990476e0e
[ "MIT" ]
null
null
null
import json from glob import glob from roglick.engine import random class FileObj(object): def __init__(self, conf_file, obj_key=None): self._data = {} self._load_file(conf_file, obj_key) def keys(self): return self._data.keys() def random(self, rand=None): if rand is N...
23.346667
57
0.58024
795ee915f104b909671da92266f90c7f69ebea8b
1,168
py
Python
userbot/modules/gps.py
eagleprojects/eagle
5334897d13490057aeb31b97527e9de538056844
[ "Naumen", "Condor-1.1", "MS-PL" ]
56
2021-04-13T13:22:07.000Z
2022-02-28T04:08:19.000Z
userbot/modules/gps.py
eagleprojects/eagle
5334897d13490057aeb31b97527e9de538056844
[ "Naumen", "Condor-1.1", "MS-PL" ]
85
2021-04-11T17:00:29.000Z
2022-03-31T22:16:35.000Z
userbot/modules/gps.py
eagleprojects/eagle
5334897d13490057aeb31b97527e9de538056844
[ "Naumen", "Condor-1.1", "MS-PL" ]
140
2021-04-13T00:25:11.000Z
2022-03-31T05:28:22.000Z
#credits: mrconfused from geopy.geocoders import Nominatim from telethon.tl import types from userbot.events import register from userbot import CMD_HELP @register(outgoing=True, pattern="^.gps(?: |$)(.*)") async def gps(event): if event.fwd_from: return reply_to_id = event.message if event.reply_...
25.955556
74
0.625
795eeac8e4fe37aace33f8193b9dc8ced7923d3d
1,426
py
Python
setup.py
hz-inova/run_jnb
fa2e1dbaebf2fd08c38850a98ce7e42e7ad37d4e
[ "BSD-3-Clause" ]
19
2018-02-12T16:51:58.000Z
2020-07-02T08:43:37.000Z
setup.py
hz-inova/run_jnb
fa2e1dbaebf2fd08c38850a98ce7e42e7ad37d4e
[ "BSD-3-Clause" ]
3
2018-06-20T12:00:43.000Z
2018-10-01T10:00:06.000Z
setup.py
hz-inova/run_jnb
fa2e1dbaebf2fd08c38850a98ce7e42e7ad37d4e
[ "BSD-3-Clause" ]
1
2021-11-19T04:55:01.000Z
2021-11-19T04:55:01.000Z
# -*- coding: utf-8 -*- from setuptools import setup import os,codecs,re here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): with codecs.open(os.path.join(here, *parts), 'r') as fp: return fp.read() def find_version(*file_paths): version_file = read(*file_paths) version_match = re...
34.780488
77
0.626227
795eead84a8728635701e96cb105137ebef3694e
82
py
Python
pyNucs/__init__.py
tkeller12/pyNucs
222df06e6e8e49a90ed634b3cedb8f265e5a7fbb
[ "MIT" ]
null
null
null
pyNucs/__init__.py
tkeller12/pyNucs
222df06e6e8e49a90ed634b3cedb8f265e5a7fbb
[ "MIT" ]
null
null
null
pyNucs/__init__.py
tkeller12/pyNucs
222df06e6e8e49a90ed634b3cedb8f265e5a7fbb
[ "MIT" ]
null
null
null
#from element import Element from .periodic import * from .elements_data import *
20.5
28
0.792683
795eeb4fe243a9a3ef6a1d92621514ae398ec3f9
58,214
py
Python
src/feature_extraction.py
kant/open-solution-home-credit
868da3788fc105d4acdb14da9dbc05937dff14d8
[ "MIT" ]
336
2018-06-28T21:42:12.000Z
2019-10-08T08:03:13.000Z
src/feature_extraction.py
JerryCatLeung/open-solution-home-credit
0105fcffadcfc7c743a71b1ff2ea99453b445ee8
[ "MIT" ]
105
2018-06-27T11:02:00.000Z
2019-08-19T10:35:02.000Z
src/feature_extraction.py
JerryCatLeung/open-solution-home-credit
0105fcffadcfc7c743a71b1ff2ea99453b445ee8
[ "MIT" ]
138
2018-07-03T08:16:03.000Z
2019-09-09T20:13:54.000Z
from copy import deepcopy from functools import partial import category_encoders as ce import numpy as np import pandas as pd import cmath from scipy.stats import kurtosis, iqr, skew from sklearn.externals import joblib from sklearn.linear_model import LinearRegression from steppy.base import BaseTransformer from step...
51.930419
132
0.615539
795eee617a38cf81ab84ffe2a559cd3e6526d626
203
py
Python
mythx_models/response/version.py
ConsenSys/mythx-models
e912c2fc6e7d18041310d3b9f0f95085db47ed9b
[ "MIT" ]
2
2019-08-26T13:42:28.000Z
2019-11-13T15:44:16.000Z
mythx_models/response/version.py
ConsenSys/mythx-models
e912c2fc6e7d18041310d3b9f0f95085db47ed9b
[ "MIT" ]
22
2019-08-26T13:14:55.000Z
2021-04-18T14:22:52.000Z
mythx_models/response/version.py
ConsenSys/mythx-models
e912c2fc6e7d18041310d3b9f0f95085db47ed9b
[ "MIT" ]
6
2019-08-29T15:51:38.000Z
2021-04-05T11:41:34.000Z
"""This module contains the VersionResponse domain model.""" from pydantic import BaseModel class VersionResponse(BaseModel): api: str hash: str harvey: str maru: str mythril: str
16.916667
60
0.699507
795eeed4c359fcdd3bdcd864e9715fdc5e6135cc
78
py
Python
ketomenu_py/application/appsettings.py
RobbieS82/ketomenu
70aa9b5c4b220ec7e57b78d19c45883d0ce23376
[ "CC0-1.0" ]
null
null
null
ketomenu_py/application/appsettings.py
RobbieS82/ketomenu
70aa9b5c4b220ec7e57b78d19c45883d0ce23376
[ "CC0-1.0" ]
null
null
null
ketomenu_py/application/appsettings.py
RobbieS82/ketomenu
70aa9b5c4b220ec7e57b78d19c45883d0ce23376
[ "CC0-1.0" ]
null
null
null
SECRET_KEY = "whatever_you_want" SQLALCHEMY_DATABASE_URI = "sqlite:///keto.db"
39
45
0.794872
795eef20281b050104b8307eb723e72711efa115
153
py
Python
example/blueprints/testblueprint.py
MaayanLab/jupyter-template
dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5
[ "Apache-2.0" ]
null
null
null
example/blueprints/testblueprint.py
MaayanLab/jupyter-template
dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5
[ "Apache-2.0" ]
24
2020-04-07T17:04:47.000Z
2020-05-27T00:51:25.000Z
example/blueprints/testblueprint.py
MaayanLab/jupyter-template
dd05bfcb95c9eafb1a9df845b5d8fecae1d6b9d5
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint testblueprint = Blueprint('testblueprint', __name__) @testblueprint.route('/') def testroute(): return 'Test Blueprint!'
19.125
52
0.75817